vendor: 4,582 bytes, line 1
1function Zg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function Ah(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q6(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var a=!1;try{a=this instanceof r}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Eb={exports:{}},cf={};var _5;function Lq(){if(_5)return cf;_5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return cf.Fragment=t,cf.jsx=n,cf.jsxs=n,cf}var O5;function $q(){return O5||(O5=1,Eb.exports=Lq()),Eb.exports}var i=$q();const Bq=Ah(i),Fq=Zg({__proto__:null,default:Bq},[i]);var Tb={exports:{}},uf={},_b={exports:{}},Ob={};var P5;function Uq(){return P5||(P5=1,(function(e){function t(B,K){var Q=B.length;B.push(K);e:for(;0<Q;){var ce=Q-1>>>1,I=B[ce];if(0<a(I,K))B[ce]=K,B[Q]=I,Q=ce;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var K=B[0],Q=B.pop();if(Q!==K){B[0]=Q;e:for(var ce=0,I=B.length,J=I>>>1;ce<J;){var fe=2*(ce+1)-1,ue=B[fe],ve=fe+1,Se=B[ve];if(0>a(ue,Q))ve<I&&0>a(Se,ue)?(B[ce]=Se,B[ve]=Q,ce=ve):(B[ce]=ue,B[fe]=Q,ce=fe);else if(ve<I&&0>a(Se,Q))B[ce]=Se,B[ve]=Q,ce=ve;else break e}}return K}function a(B,K){var Q=B.sortIndex-K.sortIndex;return Q!==0?Q:B.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],m=1,p=null,g=3,y=!1,w=!1,b=!1,N=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function E(B){for(var K=n(f);K!==null;){if(K.callback===null)r(f);else if(K.startTime<=B)r(f),K.sortIndex=K.expirationTime,t(d,K);else break;K=n(f)}}function _(B){if(b=!1,E(B),!w)if(n(d)!==null)w=!0,T||(T=!0,$());else{var K=n(f);K!==null&&V(_,K.startTime-B)}}var T=!1,M=-1,P=5,D=-1;function U(){return N?!0:!(e.unstable_now()-D<P)}function L(){if(N=!1,T){var B=e.unstable_now();D=B;var K=!0;try{e:{w=!1,b&&(b=!1,C(M),M=-1),y=!0;var Q=g;try{t:{for(E(B),p=n(d);p!==null&&!(p.expirationTime>B&&U());){var ce=p.callback;if(typeof ce=="function"){p.callback=null,g=p.priorityLevel;var I=ce(p.expirationTime<=B);if(B=e.unstable_now(),typeof I=="function"){p.callback=I,E(B),K=!0;break t}p===n(d)&&r(d),E(B)}else r(d);p=n(d)}if(p!==null)K=!0;else{var J=n(f);J!==null&&V(_,J.startTime-B),K=!1}}break e}finally{p=null,g=Q,y=!1}K=void 0}}finally{K?$():T=!1}}}var $;if(typeof A=="function")$=function(){A(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,H=G.port2;G.port1.onmessage=L,$=function(){H.postMessage(null)}}else $=function(){k(L,0)};function V(B,K){M=k(function(){B(e.unstable_now())},K)}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(B){B.
vendor: 10,470 bytes, line 1
1callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var K=3;break;default:K=g}var Q=g;g=K;try{return B()}finally{g=Q}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(B,K){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Q=g;g=B;try{return K()}finally{g=Q}},e.unstable_scheduleCallback=function(B,K,Q){var ce=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ce+Q:ce):Q=ce,B){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=Q+I,B={id:m++,callback:K,priorityLevel:B,startTime:Q,expirationTime:I,sortIndex:-1},Q>ce?(B.sortIndex=Q,t(f,B),n(d)===null&&B===n(f)&&(b?(C(M),M=-1):b=!0,V(_,Q-ce))):(B.sortIndex=I,t(d,B),w||y||(w=!0,T||(T=!0,$()))),B},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(B){var K=g;return function(){var Q=g;g=K;try{return B.apply(this,arguments)}finally{g=Q}}}})(Ob)),Ob}var M5;function zq(){return M5||(M5=1,_b.exports=Uq()),_b.exports}var Pb={exports:{}},Ze={};var R5;function Vq(){if(R5)return Ze;R5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function g(I){return I===null||typeof I!="object"?null:(I=p&&I[p]||I["@@iterator"],typeof I=="function"?I:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function N(I,J,fe){this.props=I,this.context=J,this.refs=b,this.updater=fe||y}N.prototype.isReactComponent={},N.prototype.setState=function(I,J){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,J,"setState")},N.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=N.prototype;function C(I,J,fe){this.props=I,this.context=J,this.refs=b,this.updater=fe||y}var A=C.prototype=new k;A.constructor=C,w(A,N.prototype),A.isPureReactComponent=!0;var E=Array.isArray,_={H:null,A:null,T:null,S:null,V:null},T=Object.prototype.hasOwnProperty;function M(I,J,fe,ue,ve,Se){return fe=Se.ref,{$$typeof:e,type:I,key:J,ref:fe!==void 0?fe:null,props:Se}}function P(I,J){return M(I.type,J,void 0,void 0,void 0,I.props)}function D(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function U(I){var J={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(fe){return J[fe]})}var L=/\/+/g;function $(I,J){return typeof I=="object"&&I!==null&&I.key!=null?U(""+I.key):J.toString(36)}function G(){}function H(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(G,G):(I.status="pending",I.then(function(J){I.status==="pending"&&(I.status="fulfilled",I.value=J)},function(J){I.status==="pending"&&(I.status="rejected",I.reason=J)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function V(I,J,fe,ue,ve){var Se=typeof I;(Se==="undefined"||Se==="boolean")&&(I=null);var Ne=!1;if(I===null)Ne=!0;else switch(Se){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(I.$$typeof){case e:case t:Ne=!0;break;case m:return Ne=I._init,V(Ne(I._payload),J,fe,ue,ve)}}if(Ne)return ve=ve(I),Ne=ue===""?"."+$(I,0):ue,E(ve)?(fe="",Ne!=null&&(fe=Ne.replace(L,"$&/")+"/"),V(ve,J,fe,"",function(le){return le})):ve!=null&&(D(ve)&&(ve=P(ve,fe+(ve.key==null||I&&I.key===ve.key?"":(""+ve.key).replace(L,"$&/")+"/")+Ne)),J.push(ve)),1;Ne=0;var ge=ue===""?".":ue+":";if(E(I))for(var ke=0;ke<I.length;ke++)ue=I[ke],Se=ge+$(ue,ke),Ne+=V(ue,J,fe,Se,ve);else if(ke=g(I),typeof ke=="function")for(I=ke.call(I),ke=0;!(ue=I.next()).done;)ue=ue.value,Se=ge+$(ue,ke++),Ne+=V(ue,J,fe,Se,ve);else if(Se==="object"){if(typeof I.then=="function")return V(H(I),J,fe,ue,ve);throw J=String(I),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function B(I,J,fe){if(I==null)return I;var ue=[],ve=0;return V(I,ue,"","",function(Se){return J.call(fe,Se,ve++)}),ue}function K(I){if(I._status===-1){var J=I._result;J=J(),J.then(function(fe){(I._status===0||I._status===-1)&&(I._status=1,I._result=fe)},function(fe){(I._status===0||I._status===-1)&&(I._status=2,I._result=fe)}),I._status===-1&&(I._status=0,I._result=J)}if(I._status===1)return I._result.default;throw I._result}var Q=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function ce(){}return Ze.Children={map:B,forEach:function(I,J,fe){B(I,function(){J.apply(this,arguments)},fe)},count:function(I){var J=0;return B(I,function(){J++}),J},toArray:function(I){return B(I,function(J){return J})||[]},only:function(I){if(!D(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Ze.Component=N,Ze.Fragment=n,Ze.Profiler=a,Ze.PureComponent=C,Ze.StrictMode=r,Ze.Suspense=d,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(I){return _.H.useMemoCache(I)}},Ze.cache=function(I){return function(){return I.apply(null,arguments)}},Ze.cloneElement=function(I,J,fe){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ue=w({},I.props),ve=I.key,Se=void 0;if(J!=null)for(Ne in J.ref!==void 0&&(Se=void 0),J.key!==void 0&&(ve=""+J.key),J)!T.call(J,Ne)||Ne==="key"||Ne==="__self"||Ne==="__source"||Ne==="ref"&&J.ref===void 0||(ue[Ne]=J[Ne]);var Ne=arguments.length-2;if(Ne===1)ue.children=fe;else if(1<Ne){for(var ge=Array(Ne),ke=0;ke<Ne;ke++)ge[ke]=arguments[ke+2];ue.children=ge}return M(I.type,ve,void 0,void 0,Se,ue)},Ze.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:s,_context:I},I},Ze.createElement=function(I,J,fe){var ue,ve={},Se=null;if(J!=null)for(ue in J.key!==void 0&&(Se=""+J.key),J)T.call(J,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=J[ue]);var Ne=arguments.length-2;if(Ne===1)ve.children=fe;else if(1<Ne){for(var ge=Array(Ne),ke=0;ke<Ne;ke++)ge[ke]=arguments[ke+2];ve.children=ge}if(I&&I.defaultProps)for(ue in Ne=I.defaultProps,Ne)ve[ue]===void 0&&(ve[ue]=Ne[ue]);return M(I,Se,void 0,void 0,null,ve)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(I){return{$$typeof:u,render:I}},Ze.isValidElement=D,Ze.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:K}},Ze.memo=function(I,J){return{$$typeof:f,type:I,compare:J===void 0?null:J}},Ze.startTransition=function(I){var J=_.T,fe={};_.T=fe;try{var ue=I(),ve=_.S;ve!==null&&ve(fe,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(ce,Q)}catch(Se){Q(Se)}finally{_.T=J}},Ze.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},Ze.use=function(I){return _.H.use(I)},Ze.useActionState=function(I,J,fe){return _.H.useActionState(I,J,fe)},Ze.useCallback=function(I,J){return _.H.useCallback(I,J)},Ze.useContext=function(I){return _.H.useContext(I)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(I,J){return _.H.useDeferredValue(I,J)},Ze.useEffect=function(I,J,fe){var ue=_.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ue.useEffect(I,J)},Ze.useId=function(){return _.H.useId()},Ze.useImperativeHandle=function(I,J,fe){return _.H.useImperativeHandle(I,J,fe)},Ze.useInsertionEffect=function(I,J){return _.H.useInsertionEffect(I,J)},Ze.useLayoutEffect=function(I,J){return _.H.useLayoutEffect(I,J)},Ze.useMemo=function(I,J){return _.H.useMemo(I,J)},Ze.useOptimistic=function(I,J){return _.H.useOptimistic(I,J)},Ze.useReducer=function(I,J,fe){return _.H.useReducer(I,J,fe)},Ze.useRef=function(I){return _.H.useRef(I)},Ze.useState=function(I){return _.H.useState(I)},Ze.useSyncExternalStore=function(I,J,fe){return _.H.useSyncExternalStore(I,J,fe)},Ze.useTransition=function(){return _.H.useTransition()},Ze.version="19.1.0",Ze}var D5;function Iu(){return D5||(D5=1,Pb.exports=Vq()),Pb.exports}var Mb={exports:{}},rr={};var I5;function Wq(){if(I5)return rr;I5=1;var e=Iu();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return rr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,rr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},rr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}}
vendor: 4,759 bytes, line 1
1,rr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},rr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},rr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},rr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},rr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},rr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},rr.requestFormReset=function(d){r.d.r(d)},rr.unstable_batchedUpdates=function(d,f){return d(f)},rr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},rr.useFormStatus=function(){return l.H.useHostTransitionStatus()},rr.version="19.1.0",rr}var L5;function H6(){if(L5)return Mb.exports;L5=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mb.exports=Wq(),Mb.exports}var $5;function qq(){if($5)return uf;$5=1;var e=zq(),t=Iu(),n=H6();function r(o){var c="https://react.dev/errors/"+o;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+o+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var c=o,h=o;if(o.alternate)for(;c.return;)c=c.return;else{o=c;do c=o,(c.flags&4098)!==0&&(h=c.return),o=c.return;while(o)}return c.tag===3?h:null}function l(o){if(o.tag===13){var c=o.memoizedState;if(c===null&&(o=o.alternate,o!==null&&(c=o.memoizedState)),c!==null)return c.dehydrated}return null}function u(o){if(s(o)!==o)throw Error(r(188))}function d(o){var c=o.alternate;if(!c){if(c=s(o),c===null)throw Error(r(188));return c!==o?null:o}for(var h=o,x=c;;){var j=h.return;if(j===null)break;var S=j.alternate;if(S===null){if(x=j.return,x!==null){h=x;continue}break}if(j.child===S.child){for(S=j.child;S;){if(S===h)return u(j),o;if(S===x)return u(j),c;S=S.sibling}throw Error(r(188))}if(h.return!==x.return)h=j,x=S;else{for(var O=!1,R=j.child;R;){if(R===h){O=!0,h=j,x=S;break}if(R===x){O=!0,x=j,h=S;break}R=R.sibling}if(!O){for(R=S.child;R;){if(R===h){O=!0,h=S,x=j;break}if(R===x){O=!0,x=S,h=j;break}R=R.sibling}if(!O)throw Error(r(189))}}if(h.alternate!==x)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?o:c}function f(o){var c=o.tag;if(c===5||c===26||c===27||c===6)return o;for(o=o.child;o!==null;){if(c=f(o),c!==null)return c;o=o.sibling}return null}var m=Object.assign,p=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function $(o){return o===null||typeof o!="object"?null:(o=L&&o[L]||o["@@iterator"],typeof o=="function"?o:null)}var G=Symbol.for("react.client.reference");
vendor: 19,035 bytes, lines 1-8
1function H(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===G?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case N:return"Profiler";case b:return"StrictMode";case _:return"Suspense";case T:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case A:return(o.displayName||"Context")+".Provider";case C:return(o._context.displayName||"Context")+".Consumer";case E:var c=o.render;return o=o.displayName,o||(o=c.displayName||c.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return c=o.displayName||null,c!==null?c:H(o.type)||"Memo";case P:c=o._payload,o=o._init;try{return H(o(c))}catch{}}return null}var V=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ce=[],I=-1;function J(o){return{current:o}}function fe(o){0>I||(o.current=ce[I],ce[I]=null,I--)}function ue(o,c){I++,ce[I]=o.current,o.current=c}var ve=J(null),Se=J(null),Ne=J(null),ge=J(null);function ke(o,c){switch(ue(Ne,c),ue(Se,o),ue(ve,null),c.nodeType){case 9:case 11:o=(o=c.documentElement)&&(o=o.namespaceURI)?i5(o):0;break;default:if(o=c.tagName,c=c.namespaceURI)c=i5(c),o=a5(c,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}fe(ve),ue(ve,o)}function le(){fe(ve),fe(Se),fe(Ne)}function we(o){o.memoizedState!==null&&ue(ge,o);var c=ve.current,h=a5(c,o.type);c!==h&&(ue(Se,o),ue(ve,h))}function he(o){Se.current===o&&(fe(ve),fe(Se)),ge.current===o&&(fe(ge),rf._currentValue=Q)}var X=Object.prototype.hasOwnProperty,F=e.unstable_scheduleCallback,xe=e.unstable_cancelCallback,je=e.unstable_shouldYield,He=e.unstable_requestPaint,Qe=e.unstable_now,er=e.unstable_getCurrentPriorityLevel,hr=e.unstable_ImmediatePriority,un=e.unstable_UserBlockingPriority,q=e.unstable_NormalPriority,te=e.unstable_LowPriority,oe=e.unstable_IdlePriority,Ce=e.log,Ae=e.unstable_setDisableYieldValue,ye=null,Te=null;function Xe(o){if(typeof Ce=="function"&&Ae(o),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(ye,o)}catch{}}var We=Math.clz32?Math.clz32:Ye,Ee=Math.log,tt=Math.LN2;function Ye(o){return o>>>=0,o===0?32:31-(Ee(o)/tt|0)|0}var mr=256,Mn=4194304;function pr(o){var c=o&42;if(c!==0)return c;switch(o&-o){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 o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function dn(o,c,h){var x=o.pendingLanes;if(x===0)return 0;var j=0,S=o.suspendedLanes,O=o.pingedLanes;o=o.warmLanes;var R=x&134217727;return R!==0?(x=R&~S,x!==0?j=pr(x):(O&=R,O!==0?j=pr(O):h||(h=R&~o,h!==0&&(j=pr(h))))):(R=x&~S,R!==0?j=pr(R):O!==0?j=pr(O):h||(h=x&~o,h!==0&&(j=pr(h)))),j===0?0:c!==0&&c!==j&&(c&S)===0&&(S=j&-j,h=c&-c,S>=h||S===32&&(h&4194048)!==0)?c:j}function si(o,c){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&c)===0}function dd(o,c){switch(o){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 Ms(){var o=mr;return mr<<=1,(mr&4194048)===0&&(mr=256),o}function dm(){var o=Mn;return Mn<<=1,(Mn&62914560)===0&&(Mn=4194304),o}function nc(o){for(var c=[],h=0;31>h;h++)c.push(o);return c}function Rs(o,c){o.pendingLanes|=c,c!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function fm(o,c,h,x,j,S){var O=o.pendingLanes;o.pendingLanes=h,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=h,o.entangledLanes&=h,o.errorRecoveryDisabledLanes&=h,o.shellSuspendCounter=0;var R=o.entanglements,W=o.expirationTimes,re=o.hiddenUpdates;for(h=O&~h;0<h;){var de=31-We(h),pe=1<<de;R[de]=0,W[de]=-1;var ae=re[de];if(ae!==null)for(re[de]=null,de=0;de<ae.length;de++){var se=ae[de];se!==null&&(se.lane&=-536870913)}h&=~pe}x!==0&&hm(o,x,0),S!==0&&j===0&&o.tag!==0&&(o.suspendedLanes|=S&~(O&~c))}function hm(o,c,h){o.pendingLanes|=c,o.suspendedLanes&=~c;var x=31-We(c);o.entangledLanes|=c,o.entanglements[x]=o.entanglements[x]|1073741824|h&4194090}function fd(o,c){var h=o.entangledLanes|=c;for(o=o.entanglements;h;){var x=31-We(h),j=1<<x;j&c|o[x]&c&&(o[x]|=c),h&=~j}}function rc(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function hd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function qk(){var o=K.p;return o!==0?o:(o=window.event,o===void 0?32:S5(o.type))}function AV(o,c){var h=K.p;try{return K.p=o,c()}finally{K.p=h}}var Ds=Math.random().toString(36).slice(2),tr="__reactFiber$"+Ds,Er="__reactProps$"+Ds,ic="__reactContainer$"+Ds,by="__reactEvents$"+Ds,CV="__reactListeners$"+Ds,EV="__reactHandles$"+Ds,Hk="__reactResources$"+Ds,md="__reactMarker$"+Ds;function wy(o){delete o[tr],delete o[Er],delete o[by],delete o[CV],delete o[EV]}function ac(o){var c=o[tr];if(c)return c;for(var h=o.parentNode;h;){if(c=h[ic]||h[tr]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(o=c5(o);o!==null;){if(h=o[tr])return h;o=c5(o)}return c}o=h,h=o.parentNode}return null}function sc(o){if(o=o[tr]||o[ic]){var c=o.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return o}return null}function pd(o){var c=o.tag;if(c===5||c===26||c===27||c===6)return o.stateNode;throw Error(r(33))}function oc(o){var c=o[Hk];return c||(c=o[Hk]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Rn(o){o[md]=!0}var Gk=new Set,Kk={};function $o(o,c){lc(o,c),lc(o+"Capture",c)}function lc(o,c){for(Kk[o]=c,o=0;o<c.length;o++)Gk.add(c[o])}var TV=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]*$"),Yk={},Qk={};function _V(o){return X.call(Qk,o)?!0:X.call(Yk,o)?!1:TV.test(o)?Qk[o]=!0:(Yk[o]=!0,!1)}function mm(o,c,h){if(_V(c))if(h===null)o.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":o.removeAttribute(c);return;case"boolean":var x=c.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){o.removeAttribute(c);return}}o.setAttribute(c,""+h)}}function pm(o,c,h){if(h===null)o.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttribute(c,""+h)}}function Ma(o,c,h,x){if(x===null)o.removeAttribute(h);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(h);return}o.setAttributeNS(c,h,""+x)}}var jy,Xk;function cc(o){if(jy===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);jy=c&&c[1]||"",Xk=-1<h.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+jy+o+Xk}var Ny=!1;function Sy(o,c){if(!o||Ny)return"";Ny=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(c){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(se){var ae=se}Reflect.construct(o,[],pe)}else{try{pe.call()}catch(se){ae=se}o.call(pe.prototype)}}else{try{throw Error()}catch(se){ae=se}(pe=o())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(se){if(se&&ae&&typeof se.stack=="string")return[se.stack,ae.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=x.DetermineComponentFrameRoot(),O=S[0],R=S[1];if(O&&R){var W=O.split(` 4`),re=R.split(` 5`);for(j=x=0;x<W.length&&!W[x].includes("DetermineComponentFrameRoot");)x++;for(;j<re.length&&!re[j].includes("DetermineComponentFrameRoot");)j++;if(x===W.length||j===re.length)for(x=W.length-1,j=re.length-1;1<=x&&0<=j&&W[x]!==re[j];)j--;for(;1<=x&&0<=j;x--,j--)if(W[x]!==re[j]){if(x!==1||j!==1)do if(x--,j--,0>j||W[x]!==re[j]){var de=` 6`+W[x].replace(" at new "," at ");return o.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",o.displayName)),de}while(1<=x&&0<=j);break}}}finally{Ny=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?cc(h):""}function OV(o){switch(o.tag){case 26:case 27:case 5:return cc(o.type);case 16:return cc("Lazy");case 13:return cc("Suspense");case 19:return cc("SuspenseList");case 0:case 15:return Sy(o.type,!1);case 11:return Sy(o.type.render,!1);case 1:return Sy(o.type,!0);case 31:return cc("Activity");default:return""}}function Zk(o){try{var c="";do c+=OV(o),o=o.return;while(o);return c}catch(h){return` 7Error generating stack: `+h.message+` 8`+h.stack}}function oi(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Jk(o){var c=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function PV(o){var c=Jk(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,c),x=""+o[c];if(!o.hasOwnProperty(c)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var j=h.get,S=h.set;return Object.defineProperty(o,c,{configurable:!0,get:function(){return j.call(this)},set:function(O){x=""+O,S.call(this,O)}}),Object.defineProperty(o,c,{enumerable:h.enumerable}),{getValue:function(){return x},setValue:function(O){x=""+O},stopTracking:function(){o._valueTracker=null,delete o[c]}}}}function xm(o){o._valueTracker||(o._valueTracker=PV(o))}function eA(o){if(!o)return!1;var c=o._valueTracker;if(!c)return!0;var h=c.getValue(),x="";return o&&(x=Jk(o)?o.checked?"true":"false":o.value),o=x,o!==h?(c.setValue(o),!0):!1}function gm(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var MV=/[\n"\\]/g;function li(o){return o.replace(MV,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function ky(o,c,h,x,j,S,O,R){o.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?o.type=O:o.removeAttribute("type"),c!=null?O==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+oi(c)):o.value!==""+oi(c)&&(o.value=""+oi(c)):O!=="submit"&&O!=="reset"||o.removeAttribute("value"),c!=null?Ay(o,O,oi(c)):h!=null?Ay(o,O,oi(h)):x!=null&&o.removeAttribute("value"),j==null&&S!=null&&(o.defaultChecked=!!S),j!=null&&(o.checked=j&&typeof j!="function"&&typeof j!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?o.name=""+oi(R):o.removeAttribute("name")}function tA(o,c,h,x,j,S,O,R){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(o.type=S),c!=null||h!=null){if(!(S!=="submit"&&S!=="reset"||c!=null))return;h=h!=null?""+oi(h):"",c=c!=null?""+oi(c):h,R||c===o.value||(o.value=c),o.defaultValue=c}x=x??j,x=typeof x!="function"&&typeof x!="symbol"&&!!x,o.checked=R?o.checked:!!x,o.defaultChecked=!!x,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(o.name=O)}function Ay(o,c,h){c==="number"&&gm(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function uc(o,c,h,x){if(o=o.options,c){c={};for(var j=0;j<h.length;j++)c["$"+h[j]]=!0;for(h=0;h<o.length;h++)j=c.hasOwnProperty("$"+o[h].value),o[h].selected!==j&&(o[h].selected=j),j&&x&&(o[h].defaultSelected=!0)}else{for(h=""+oi(h),c=null,j=0;j<o.length;j++){if(o[j].value===h){o[j].selected=!0,x&&(o[j].defaultSelected=!0);return}c!==null||o[j].disabled||(c=o[j])}c!==null&&(c.selected=!0)}}function nA(o,c,h){if(c!=null&&(c=""+oi(c),c!==o.value&&(o.value=c),h==null)){o.defaultValue!==c&&(o.defaultValue=c);return}o.defaultValue=h!=null?""+oi(h):""}function rA(o,c,h,x){if(c==null){if(x!=null){if(h!=null)throw Error(r(92));if(V(x)){if(1<x.length)throw Error(r(93));x=x[0]}h=x}h==null&&(h=""),c=h}h=oi(c),o.defaultValue=h,x=o.textContent,x===h&&x!==""&&x!==null&&(o.value=x)}function dc(o,c){if(c){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=c;return}}o.textContent=c}var RV=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 iA(o,c,h){var x=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?x?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="":x?o.setProperty(c,h):typeof h!="number"||h===0||RV.has(c)?c==="float"?o.cssFloat=h:o[c]=(""+h).trim():o[c]=h+"px"}function aA(o,c,h){if(c!=null&&typeof c!="object")throw Error(r(62));if(o=o.style,h!=null){for(var x in h)!h.hasOwnProperty(x)||c!=null&&c.hasOwnProperty(x)||(x.indexOf("--")===0?o.setProperty(x,""):x==="float"?o.cssFloat="":o[x]="");for(var j in c)x=c[j],c.hasOwnProperty(j)&&h[j]!==x&&iA(o,j,x)}else for(var S in c)c.hasOwnProperty(S)&&iA(o,S,c[S])}function Cy(o){if(o.indexOf("-")===-1)return!1;switch(o){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 DV=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"]]),IV=/^[\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 ym(o){return IV.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Ey=null;function Ty(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var fc=null,hc=null;function sA(o){var c=sc(o);if(c&&(o=c.stateNode)){var h=o[Er]||null;e:switch(o=c.stateNode,c.type){case"input":if(ky(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),c=h.name,h.type==="radio"&&c!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+li(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var x=h[c];if(x!==o&&x.form===o.form){var j=x[Er]||null;if(!j)throw Error(r(90));ky(x,j.value,j.defaultValue,j.defaultValue,j.checked,j.defaultChecked,j.type,j.name)}}for(c=0;c<h.length;c++)x=h[c],x.form===o.form&&eA(x)}break e;case"textarea":nA(o,h.value,h.defaultValue);break e;case"select":c=h.value,c!=null&&uc(o,!!h.multiple,c,!1)}}}var _y=!1;function oA(o,c,h){if(_y)return o(c,h);_y=!0;try{var x=o(c);return x}finally{if(_y=!1,(fc!==null||hc!==null)&&(rp(),fc&&(c=fc,o=hc,hc=fc=null,
vendor: 9,143 bytes, line 8
8sA(c),o)))for(c=0;c<o.length;c++)sA(o[c])}}function xd(o,c){var h=o.stateNode;if(h===null)return null;var x=h[Er]||null;if(x===null)return null;h=x[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(o=o.type,x=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!x;break e;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(r(231,c,typeof h));return h}var Ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oy=!1;if(Ra)try{var gd={};Object.defineProperty(gd,"passive",{get:function(){Oy=!0}}),window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch{Oy=!1}var Is=null,Py=null,vm=null;function lA(){if(vm)return vm;var o,c=Py,h=c.length,x,j="value"in Is?Is.value:Is.textContent,S=j.length;for(o=0;o<h&&c[o]===j[o];o++);var O=h-o;for(x=1;x<=O&&c[h-x]===j[S-x];x++);return vm=j.slice(o,1<x?1-x:void 0)}function bm(o){var c=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&c===13&&(o=13)):o=c,o===10&&(o=13),32<=o||o===13?o:0}function wm(){return!0}function cA(){return!1}function Tr(o){function c(h,x,j,S,O){this._reactName=h,this._targetInst=j,this.type=x,this.nativeEvent=S,this.target=O,this.currentTarget=null;for(var R in o)o.hasOwnProperty(R)&&(h=o[R],this[R]=h?h(S):S[R]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?wm:cA,this.isPropagationStopped=cA,this}return m(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=wm)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=wm)},persist:function(){},isPersistent:wm}),c}var Bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jm=Tr(Bo),yd=m({},Bo,{view:0,detail:0}),LV=Tr(yd),My,Ry,vd,Nm=m({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iy,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==vd&&(vd&&o.type==="mousemove"?(My=o.screenX-vd.screenX,Ry=o.screenY-vd.screenY):Ry=My=0,vd=o),My)},movementY:function(o){return"movementY"in o?o.movementY:Ry}}),uA=Tr(Nm),$V=m({},Nm,{dataTransfer:0}),BV=Tr($V),FV=m({},yd,{relatedTarget:0}),Dy=Tr(FV),UV=m({},Bo,{animationName:0,elapsedTime:0,pseudoElement:0}),zV=Tr(UV),VV=m({},Bo,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),WV=Tr(VV),qV=m({},Bo,{data:0}),dA=Tr(qV),HV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GV={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"},KV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YV(o){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(o):(o=KV[o])?!!c[o]:!1}function Iy(){return YV}var QV=m({},yd,{key:function(o){if(o.key){var c=HV[o.key]||o.key;if(c!=="Unidentified")return c}return o.type==="keypress"?(o=bm(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?GV[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iy,charCode:function(o){return o.type==="keypress"?bm(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?bm(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),XV=Tr(QV),ZV=m({},Nm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fA=Tr(ZV),JV=m({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iy}),eW=Tr(JV),tW=m({},Bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),nW=Tr(tW),rW=m({},Nm,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),iW=Tr(rW),aW=m({},Bo,{newState:0,oldState:0}),sW=Tr(aW),oW=[9,13,27,32],Ly=Ra&&"CompositionEvent"in window,bd=null;Ra&&"documentMode"in document&&(bd=document.documentMode);var lW=Ra&&"TextEvent"in window&&!bd,hA=Ra&&(!Ly||bd&&8<bd&&11>=bd),mA=" ",pA=!1;function xA(o,c){switch(o){case"keyup":return oW.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gA(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var mc=!1;function cW(o,c){switch(o){case"compositionend":return gA(c);case"keypress":return c.which!==32?null:(pA=!0,mA);case"textInput":return o=c.data,o===mA&&pA?null:o;default:return null}}function uW(o,c){if(mc)return o==="compositionend"||!Ly&&xA(o,c)?(o=lA(),vm=Py=Is=null,mc=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return hA&&c.locale!=="ko"?null:c.data;default:return null}}var dW={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 yA(o){var c=o&&o.nodeName&&o.nodeName.toLowerCase();return c==="input"?!!dW[o.type]:c==="textarea"}function vA(o,c,h,x){fc?hc?hc.push(x):hc=[x]:fc=x,c=cp(c,"onChange"),0<c.length&&(h=new jm("onChange","change",null,h,x),o.push({event:h,listeners:c}))}var wd=null,jd=null;function fW(o){JE(o,0)}function Sm(o){var c=pd(o);if(eA(c))return o}function bA(o,c){if(o==="change")return c}var wA=!1;if(Ra){var $y;if(Ra){var By="oninput"in document;if(!By){var jA=document.createElement("div");jA.setAttribute("oninput","return;"),By=typeof jA.oninput=="function"}$y=By}else $y=!1;wA=$y&&(!document.documentMode||9<document.documentMode)}function NA(){wd&&(wd.detachEvent("onpropertychange",SA),jd=wd=null)}function SA(o){if(o.propertyName==="value"&&Sm(jd)){var c=[];vA(c,jd,o,Ty(o)),oA(fW,c)}}function hW(o,c,h){o==="focusin"?(NA(),wd=c,jd=h,wd.attachEvent("onpropertychange",SA)):o==="focusout"&&NA()}function mW(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Sm(jd)}function pW(o,c){if(o==="click")return Sm(c)}function xW(o,c){if(o==="input"||o==="change")return Sm(c)}function gW(o,c){return o===c&&(o!==0||1/o===1/c)||o!==o&&c!==c}var Vr=typeof Object.is=="function"?Object.is:gW;function Nd(o,c){if(Vr(o,c))return!0;if(typeof o!="object"||o===null||typeof c!="object"||c===null)return!1;var h=Object.keys(o),x=Object.keys(c);if(h.length!==x.length)return!1;for(x=0;x<h.length;x++){var j=h[x];if(!X.call(c,j)||!Vr(o[j],c[j]))return!1}return!0}function kA(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function AA(o,c){var h=kA(o);o=0;for(var x;h;){if(h.nodeType===3){if(x=o+h.textContent.length,o<=c&&x>=c)return{node:h,offset:c-o};o=x}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=kA(h)}}function CA(o,c){return o&&c?o===c?!0:o&&o.nodeType===3?!1:c&&c.nodeType===3?CA(o,c.parentNode):"contains"in o?o.contains(c):o.compareDocumentPosition?!!(o.compareDocumentPosition(c)&16):!1:!1}function EA(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var c=gm(o.document);c instanceof o.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string"}catch{h=!1}if(h)o=c.contentWindow;else break;c=gm(o.document)}return c}function Fy(o){var c=o&&o.nodeName&&o.nodeName.toLowerCase();return c&&(c==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||c==="textarea"||o.contentEditable==="true")}var yW=Ra&&"documentMode"in document&&11>=document.documentMode,pc=null,Uy=null,Sd=null,zy=!1;function TA(o,c,h){var x=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;zy||pc==null||pc!==gm(x)||(x=pc,"selectionStart"in x&&Fy(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focu
vendor: 27,016 bytes, line 8
8sNode:x.focusNode,focusOffset:x.focusOffset}),Sd&&Nd(Sd,x)||(Sd=x,x=cp(Uy,"onSelect"),0<x.length&&(c=new jm("onSelect","select",null,c,h),o.push({event:c,listeners:x}),c.target=pc)))}function Fo(o,c){var h={};return h[o.toLowerCase()]=c.toLowerCase(),h["Webkit"+o]="webkit"+c,h["Moz"+o]="moz"+c,h}var xc={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionrun:Fo("Transition","TransitionRun"),transitionstart:Fo("Transition","TransitionStart"),transitioncancel:Fo("Transition","TransitionCancel"),transitionend:Fo("Transition","TransitionEnd")},Vy={},_A={};Ra&&(_A=document.createElement("div").style,"AnimationEvent"in window||(delete xc.animationend.animation,delete xc.animationiteration.animation,delete xc.animationstart.animation),"TransitionEvent"in window||delete xc.transitionend.transition);function Uo(o){if(Vy[o])return Vy[o];if(!xc[o])return o;var c=xc[o],h;for(h in c)if(c.hasOwnProperty(h)&&h in _A)return Vy[o]=c[h];return o}var OA=Uo("animationend"),PA=Uo("animationiteration"),MA=Uo("animationstart"),vW=Uo("transitionrun"),bW=Uo("transitionstart"),wW=Uo("transitioncancel"),RA=Uo("transitionend"),DA=new Map,Wy="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(" ");Wy.push("scrollEnd");function Oi(o,c){DA.set(o,c),$o(c,[o])}var IA=new WeakMap;function ci(o,c){if(typeof o=="object"&&o!==null){var h=IA.get(o);return h!==void 0?h:(c={value:o,source:c,stack:Zk(c)},IA.set(o,c),c)}return{value:o,source:c,stack:Zk(c)}}var ui=[],gc=0,qy=0;function km(){for(var o=gc,c=qy=gc=0;c<o;){var h=ui[c];ui[c++]=null;var x=ui[c];ui[c++]=null;var j=ui[c];ui[c++]=null;var S=ui[c];if(ui[c++]=null,x!==null&&j!==null){var O=x.pending;O===null?j.next=j:(j.next=O.next,O.next=j),x.pending=j}S!==0&&LA(h,j,S)}}function Am(o,c,h,x){ui[gc++]=o,ui[gc++]=c,ui[gc++]=h,ui[gc++]=x,qy|=x,o.lanes|=x,o=o.alternate,o!==null&&(o.lanes|=x)}function Hy(o,c,h,x){return Am(o,c,h,x),Cm(o)}function yc(o,c){return Am(o,null,null,c),Cm(o)}function LA(o,c,h){o.lanes|=h;var x=o.alternate;x!==null&&(x.lanes|=h);for(var j=!1,S=o.return;S!==null;)S.childLanes|=h,x=S.alternate,x!==null&&(x.childLanes|=h),S.tag===22&&(o=S.stateNode,o===null||o._visibility&1||(j=!0)),o=S,S=S.return;return o.tag===3?(S=o.stateNode,j&&c!==null&&(j=31-We(h),o=S.hiddenUpdates,x=o[j],x===null?o[j]=[c]:x.push(c),c.lane=h|536870912),S):null}function Cm(o){if(50<Yd)throw Yd=0,Zv=null,Error(r(185));for(var c=o.return;c!==null;)o=c,c=o.return;return o.tag===3?o.stateNode:null}var vc={};function jW(o,c,h,x){this.tag=o,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wr(o,c,h,x){return new jW(o,c,h,x)}function Gy(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Da(o,c){var h=o.alternate;return h===null?(h=Wr(o.tag,c,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=c,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&65011712,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,c=o.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h.refCleanup=o.refCleanup,h}function $A(o,c){o.flags&=65011714;var h=o.alternate;return h===null?(o.childLanes=0,o.lanes=c,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=h.childLanes,o.lanes=h.lanes,o.child=h.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=h.memoizedProps,o.memoizedState=h.memoizedState,o.updateQueue=h.updateQueue,o.type=h.type,c=h.dependencies,o.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),o}function Em(o,c,h,x,j,S){var O=0;if(x=o,typeof o=="function")Gy(o)&&(O=1);else if(typeof o=="string")O=Sq(o,h,ve.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=Wr(31,h,c,j),o.elementType=D,o.lanes=S,o;case w:return zo(h.children,j,S,c);case b:O=8,j|=24;break;case N:return o=Wr(12,h,c,j|2),o.elementType=N,o.lanes=S,o;case _:return o=Wr(13,h,c,j),o.elementType=_,o.lanes=S,o;case T:return o=Wr(19,h,c,j),o.elementType=T,o.lanes=S,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:case A:O=10;break e;case C:O=9;break e;case E:O=11;break e;case M:O=14;break e;case P:O=16,x=null;break e}O=29,h=Error(r(130,o===null?"null":typeof o,"")),x=null}return c=Wr(O,h,c,j),c.elementType=o,c.type=x,c.lanes=S,c}function zo(o,c,h,x){return o=Wr(7,o,x,c),o.lanes=h,o}function Ky(o,c,h){return o=Wr(6,o,null,c),o.lanes=h,o}function Yy(o,c,h){return c=Wr(4,o.children!==null?o.children:[],o.key,c),c.lanes=h,c.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},c}var bc=[],wc=0,Tm=null,_m=0,di=[],fi=0,Vo=null,Ia=1,La="";function Wo(o,c){bc[wc++]=_m,bc[wc++]=Tm,Tm=o,_m=c}function BA(o,c,h){di[fi++]=Ia,di[fi++]=La,di[fi++]=Vo,Vo=o;var x=Ia;o=La;var j=32-We(x)-1;x&=~(1<<j),h+=1;var S=32-We(c)+j;if(30<S){var O=j-j%5;S=(x&(1<<O)-1).toString(32),x>>=O,j-=O,Ia=1<<32-We(c)+j|h<<j|x,La=S+o}else Ia=1<<S|h<<j|x,La=o}function Qy(o){o.return!==null&&(Wo(o,1),BA(o,1,0))}function Xy(o){for(;o===Tm;)Tm=bc[--wc],bc[wc]=null,_m=bc[--wc],bc[wc]=null;for(;o===Vo;)Vo=di[--fi],di[fi]=null,La=di[--fi],di[fi]=null,Ia=di[--fi],di[fi]=null}var xr=null,Zt=null,vt=!1,qo=null,ra=!1,Zy=Error(r(519));function Ho(o){var c=Error(r(418,""));throw Cd(ci(c,o)),Zy}function FA(o){var c=o.stateNode,h=o.type,x=o.memoizedProps;switch(c[tr]=o,c[Er]=x,h){case"dialog":lt("cancel",c),lt("close",c);break;case"iframe":case"object":case"embed":lt("load",c);break;case"video":case"audio":for(h=0;h<Xd.length;h++)lt(Xd[h],c);break;case"source":lt("error",c);break;case"img":case"image":case"link":lt("error",c),lt("load",c);break;case"details":lt("toggle",c);break;case"input":lt("invalid",c),tA(c,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0),xm(c);break;case"select":lt("invalid",c);break;case"textarea":lt("invalid",c),rA(c,x.value,x.defaultValue,x.children),xm(c)}h=x.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||c.textContent===""+h||x.suppressHydrationWarning===!0||r5(c.textContent,h)?(x.popover!=null&&(lt("beforetoggle",c),lt("toggle",c)),x.onScroll!=null&<("scroll",c),x.onScrollEnd!=null&<("scrollend",c),x.onClick!=null&&(c.onclick=up),c=!0):c=!1,c||Ho(o)}function UA(o){for(xr=o.return;xr;)switch(xr.tag){case 5:case 13:ra=!1;return;case 27:case 3:ra=!0;return;default:xr=xr.return}}function kd(o){if(o!==xr)return!1;if(!vt)return UA(o),vt=!0,!1;var c=o.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=o.type,h=!(h!=="form"&&h!=="button")||mb(o.type,o.memoizedProps)),h=!h),h&&Zt&&Ho(o),UA(o),c===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,c=0;o;){if(o.nodeType===8)if(h=o.data,h==="/$"){if(c===0){Zt=Mi(o.nextSibling);break e}c--}else h!=="$"&&h!=="$!"&&h!=="$?"||c++;o=o.nextSibling}Zt=null}}else c===27?(c=Zt,Zs(o.type)?(o=yb,yb=null,Zt=o):Zt=c):Zt=xr?Mi(o.stateNode.nextSibling):null;return!0}function Ad(){Zt=xr=null,vt=!1}function zA(){var o=qo;return o!==null&&(Pr===null?Pr=o:Pr.push.apply(Pr,o),qo=null),o}function Cd(o){qo===null?qo=[o]:qo.push(o)}var Jy=J(null),Go=null,$a=null;function Ls(o,c,h){ue(Jy,c._currentValue),c._currentValue=h}function Ba(o){o._currentValue=Jy.current,fe(Jy)}function ev(o,c,h){for(;o!==null;){var x=o.alternate;if((o.childLanes&c)!==c?(o.childLanes|=c,x!==null&&(x.childLanes|=c)):x!==null&&(x.childLanes&c)!==c&&(x.childLanes|=c),o===h)break;o=o.return}}function tv(o,c,h,x){var j=o.child;for(j!==null&&(j.return=o);j!==null;){var S=j.dependencies;if(S!==null){var O=j.child;S=S.firstContext;e:for(;S!==null;){var R=S;S=j;for(var W=0;W<c.length;W++)if(R.context===c[W]){S.lanes|=h,R=S.alternate,R!==null&&(R.lanes|=h),ev(S.return,h,o),x||(O=null);break e}S=R.next}}else if(j.tag===18){if(O=j.return,O===null)throw Error(r(341));O.lanes|=h,S=O.alternate,S!==null&&(S.lanes|=h),ev(O,h,o),O=null}else O=j.child;if(O!==null)O.return=j;else for(O=j;O!==null;){if(O===o){O=null;break}if(j=O.sibling,j!==null){j.return=O.return,O=j;break}O=O.return}j=O}}function Ed(o,c,h,x){o=null;for(var j=c,S=!1;j!==null;){if(!S){if((j.flags&524288)!==0)S=!0;else if((j.flags&262144)!==0)break}if(j.tag===10){var O=j.alternate;if(O===null)throw Error(r(387));if(O=O.memoizedProps,O!==null){var R=j.type;Vr(j.pendingProps.value,O.value)||(o!==null?o.push(R):o=[R])}}else if(j===ge.current){if(O=j.alternate,O===null)throw Error(r(387));O.memoizedState.memoizedState!==j.memoizedState.memoizedState&&(o!==null?o.push(rf):o=[rf])}j=j.return}o!==null&&tv(c,o,h,x),c.flags|=262144}function Om(o){for(o=o.firstContext;o!==null;){if(!Vr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ko(o){Go=o,$a=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function nr(o){return VA(Go,o)}function Pm(o,c){return Go===null&&Ko(o),VA(o,c)}function VA(o,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},$a===null){if(o===null)throw Error(r(308));$a=c,o.dependencies={lanes:0,firstContext:c},o.flags|=524288}else $a=$a.next=c;return h}var NW=typeof AbortController<"u"?AbortController:function(){var o=[],c=this.signal={aborted:!1,addEventListener:function(h,x){o.push(x)}};this.abort=function(){c.aborted=!0,o.forEach(function(h){return h()})}},SW=e.unstable_scheduleCallback,kW=e.unstable_NormalPriority,vn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nv(){return{controller:new NW,data:new Map,refCount:0}}function Td(o){o.refCount--,o.refCount===0&&SW(kW,function(){o.controller.abort()})}var _d=null,rv=0,jc=0,Nc=null;function AW(o,c){if(_d===null){var h=_d=[];rv=0,jc=ab(),Nc={status:"pending",value:void 0,then:function(x){h.push(x)}}}return rv++,c.then(WA,WA),c}function WA(){if(--rv===0&&_d!==null){Nc!==null&&(Nc.status="fulfilled");var o=_d;_d=null,jc=0,Nc=null;for(var c=0;c<o.length;c++)(0,o[c])()}}function CW(o,c){var h=[],x={status:"pending",value:null,reason:null,then:function(j){h.push(j)}};return o.then(function(){x.status="fulfilled",x.value=c;for(var j=0;j<h.length;j++)(0,h[j])(c)},function(j){for(x.status="rejected",x.reason=j,j=0;j<h.length;j++)(0,h[j])(void 0)}),x}var qA=B.S;B.S=function(o,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&AW(o,c),qA!==null&&qA(o,c)};var Yo=J(null);function iv(){var o=Yo.current;return o!==null?o:Pt.pooledCache}function Mm(o,c){c===null?ue(Yo,Yo.current):ue(Yo,c.pool)}function HA(){var o=iv();return o===null?null:{parent:vn._currentValue,pool:o}}var Od=Error(r(460)),GA=Error(r(474)),Rm=Error(r(542)),av={then:function(){}};function KA(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Dm(){}function YA(o,c,h){switch(h=o[h],h===void 0?o.push(c):h!==c&&(c.then(Dm,Dm),c=h),c.status){case"fulfilled":return c.value;case"rejected":throw o=c.reason,XA(o),o;default:if(typeof c.status=="string")c.then(Dm,Dm);else{if(o=Pt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=c,o.status="pending",o.then(function(x){if(c.status==="pending"){var j=c;j.status="fulfilled",j.value=x}},function(x){if(c.status==="pending"){var j=c;j.status="rejected",j.reason=x}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw o=c.reason,XA(o),o}throw Pd=c,Od}}var Pd=null;function QA(){if(Pd===null)throw Error(r(459));var o=Pd;return Pd=null,o}function XA(o){if(o===Od||o===Rm)throw Error(r(483))}var $s=!1;function sv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ov(o,c){o=o.updateQueue,c.updateQueue===o&&(c.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Bs(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Fs(o,c,h){var x=o.updateQueue;if(x===null)return null;if(x=x.shared,(wt&2)!==0){var j=x.pending;return j===null?c.next=c:(c.next=j.next,j.next=c),x.pending=c,c=Cm(o),LA(o,null,h),c}return Am(o,x,c,h),Cm(o)}function Md(o,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var x=c.lanes;x&=o.pendingLanes,h|=x,c.lanes=h,fd(o,h)}}function lv(o,c){var h=o.updateQueue,x=o.alternate;if(x!==null&&(x=x.updateQueue,h===x)){var j=null,S=null;if(h=h.firstBaseUpdate,h!==null){do{var O={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};S===null?j=S=O:S=S.next=O,h=h.next}while(h!==null);S===null?j=S=c:S=S.next=c}else j=S=c;h={baseState:x.baseState,firstBaseUpdate:j,lastBaseUpdate:S,shared:x.shared,callbacks:x.callbacks},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=c:o.next=c,h.lastBaseUpdate=c}var cv=!1;function Rd(){if(cv){var o=Nc;if(o!==null)throw o}}function Dd(o,c,h,x){cv=!1;var j=o.updateQueue;$s=!1;var S=j.firstBaseUpdate,O=j.lastBaseUpdate,R=j.shared.pending;if(R!==null){j.shared.pending=null;var W=R,re=W.next;W.next=null,O===null?S=re:O.next=re,O=W;var de=o.alternate;de!==null&&(de=de.updateQueue,R=de.lastBaseUpdate,R!==O&&(R===null?de.firstBaseUpdate=re:R.next=re,de.lastBaseUpdate=W))}if(S!==null){var pe=j.baseState;O=0,de=re=W=null,R=S;do{var ae=R.lane&-536870913,se=ae!==R.lane;if(se?(mt&ae)===ae:(x&ae)===ae){ae!==0&&ae===jc&&(cv=!0),de!==null&&(de=de.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Ke=o,qe=R;ae=c;var Ct=h;switch(qe.tag){case 1:if(Ke=qe.payload,typeof Ke=="function"){pe=Ke.call(Ct,pe,ae);break e}pe=Ke;break e;case 3:Ke.flags=Ke.flags&-65537|128;case 0:if(Ke=qe.payload,ae=typeof Ke=="function"?Ke.call(Ct,pe,ae):Ke,ae==null)break e;pe=m({},pe,ae);break e;case 2:$s=!0}}ae=R.callback,ae!==null&&(o.flags|=64,se&&(o.flags|=8192),se=j.callbacks,se===null?j.callbacks=[ae]:se.push(ae))}else se={lane:ae,tag:R.tag,payload:R.payload,callback:R.callback,next:null},de===null?(re=de=se,W=pe):de=de.next=se,O|=ae;if(R=R.next,R===null){if(R=j.shared.pending,R===null)break;se=R,R=se.next,se.next=null,j.lastBaseUpdate=se,j.shared.pending=null}}while(!0);de===null&&(W=pe),j.baseState=W,j.firstBaseUpdate=re,j.lastBaseUpdate=de,S===null&&(j.shared.lanes=0),Ks|=O,o.lanes=O,o.memoizedState=pe}}function ZA(o,c){if(typeof o!="function")throw Error(r(191,o));o.call(c)}function JA(o,c){var h=o.callbacks;if(h!==null)for(o.callbacks=null,o=0;o<h.length;o++)ZA(h[o],c)}var Sc=J(null),Im=J(0);function eC(o,c){o=Ha,ue(Im,o),ue(Sc,c),Ha=o|c.baseLanes}function uv(){ue(Im,Ha),ue(Sc,Sc.current)}function dv(){Ha=Im.current,fe(Sc),fe(Im)}var Us=0,nt=null,kt=null,fn=null,Lm=!1,kc=!1,Qo=!1,$m=0,Id=0,Ac=null,EW=0;function sn(){throw Error(r(321))}function fv(o,c){if(c===null)return!1;for(var h=0;h<c.length&&h<o.length;h++)if(!Vr(o[h],c[h]))return!1;return!0}function hv(o,c,h,x,j,S){return Us=S,nt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,B.H=o===null||o.memoizedState===null?LC:$C,Qo=!1,S=h(x,j),Qo=!1,kc&&(S=nC(c,h,x,j)),tC(o),S}function tC(o){B.H=Wm;var c=kt!==null&&kt.next!==null;if(Us=0,fn=kt=nt=null,Lm=!1,Id=0,Ac=null,c)throw Error(r(300));o===null||Dn||(o=o.dependencies,o!==null&&Om(o)&&(Dn=!0))}function nC(o,c,h,x){nt=o;var j=0;do{if(kc&&(Ac=null),Id=0,kc=!1,25<=j)throw Error(r(301));if(j+=1,fn=kt=null,o.updateQueue!=null){var S=o.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}B.H=DW,S=c(h,x)}while(kc);return S}function TW(){var o=B.H,c=o.useState()[0];return c=typeof c.then=="function"?Ld(c):c,o=o.useState()[0],(kt!==null?kt.memoizedState:null)!==o&&(nt.flags|=1024),c}function mv(){var o=$m!==0;return $m=0,o}function pv(o,c,h){c.updateQueue=o.updateQueue,c.flags&=-2053,o.lanes&=~h}function xv(o){if(Lm){for(o=o.memoizedState;o!==null;){var c=o.queue;c!==null&&(c.pending=null),o=o.next}Lm=!1}Us=0,fn=kt=nt=null,kc=!1,Id=$m=0,Ac=null}function _r(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?nt.memoizedState=fn=o:fn=fn.next=o,fn}function hn(){if(kt===null){var o=nt.alternate;o=o!==null?o.memoizedState:null}else o=kt.next;var c=fn===null?nt.memoizedState:fn.next;if(c!==null)fn=c,kt=o;else{if(o===null)throw nt.alternate===null?Error(r(467)):Error(r(310));kt=o,o={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},fn===null?nt.memoizedState=fn=o:fn=fn.next=o}return fn}function gv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ld(o){var c=Id;return Id+=1,Ac===null&&(Ac=[]),o=YA(Ac,o,c),c=nt,(fn===null?c.memoizedState:fn.next)===null&&(c=c.alternate,B.H=c===null||c.memoizedState===null?LC:$C),o}function Bm(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Ld(o);if(o.$$typeof===A)return nr(o)}throw Error(r(438,String(o)))}function yv(o){var c=null,h=nt.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var x=nt.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(c={data:x.data.map(function(j){return j.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),h===null&&(h=gv(),nt.updateQueue=h),h.memoCache=c,h=c.data[c.index],h===void 0)for(h=c.data[c.index]=Array(o),x=0;x<o;x++)h[x]=U;return c.index++,h}function Fa(o,c){return typeof c=="function"?c(o):c}function Fm(o){var c=hn();return vv(c,kt,o)}function vv(o,c,h){var x=o.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=h;var j=o.baseQueue,S=x.pending;if(S!==null){if(j!==null){var O=j.next;j.next=S.next,S.next=O}c.baseQueue=j=S,x.pending=null}if(S=o.baseState,j===null)o.memoizedState=S;else{c=j.next;var R=O=null,W=null,re=c,de=!1;do{var pe=re.lane&-536870913;if(pe!==re.lane?(mt&pe)===pe:(Us&pe)===pe){var ae=re.revertLane;if(ae===0)W!==null&&(W=W.next={lane:0,revertLane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),pe===jc&&(de=!0);else if((Us&ae)===ae){re=re.next,ae===jc&&(de=!0);continue}else pe={lane:0,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(R=W=pe,O=S):W=W.next=pe,nt.lanes|=ae,Ks|=ae;pe=re.action,Qo&&h(S,pe),S=re.hasEagerState?re.eagerState:h(S,pe)}else ae={lane:pe,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(R=W=ae,O=S):W=W.next=ae,nt.lanes|=pe,Ks|=pe;re=re.next}while(re!==null&&re!==c);if(W===null?O=S:W.next=R,!Vr(S,o.memoizedState)&&(Dn=!0,de&&(h=Nc,h!==null)))throw h;o.memoizedState=S,o.baseState=O,o.baseQueue=W,x.lastRenderedState=S}return j===null&&(x.lanes=0),[o.memoizedState,x.dispatch]}function bv(o){var c=hn(),h=c.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=o;var x=h.dispatch,j=h.pending,S=c.memoizedState;if(j!==null){h.pending=null;var O=j=j.next;do S=o(S,O.action),O=O.next;while(O!==j);Vr(S,c.memoizedState)||(Dn=!0),c.memoizedState=S,c.baseQueue===null&&(c.baseState=S),h.lastRenderedState=S}return[S,x]}function rC(o,c,h){var x=nt,j=hn(),S=vt;if(S){if(h===void 0)throw Error(r(407));h=h()}else h=c();var O=!Vr((kt||j).memoizedState,h);O&&(j.memoizedState=h,Dn=!0),j=j.queue;var R=sC.bind(null,x,j,o);if($d(2048,8,R,[o]),j.getSnapshot!==c||O||fn!==null&&fn.memoizedState.tag&1){if(x.flags|=2048,Cc(9,Um(),aC.bind(null,x,j,h,c),null),Pt===null)throw Error(r(349));S||(Us&124)!==0||iC(x,c,h)}return h}function iC(o,c,h){o.flags|=16384,o={getSnapshot:c,value:h},c=nt.updateQueue,c===null?(c=gv(),nt.updateQueue=c,c.stores=[o]):(h=c.stores,h===null?c.stores=[o]:h.push(o))}function aC(o,c,h,x){c.value=h,c.getSnapshot=x,oC(c)&&lC(o)}function sC(o,c,h){return h(function(){oC(c)&&lC(o)})}function oC(o){var c=o.getSnapshot;o=o.value;try{var h=c();return!Vr(o,h)}catch{return!0}}function lC(o){var c=yc(o,2);c!==null&&Yr(c,o,2)}function wv(o){var c=_r();if(typeof o=="function"){var h=o;if(o=h(),Qo){Xe(!0);try{h()}finally{Xe(!1)}}}return c.memoizedState=c.baseState=o,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:o},c}function cC(o,c,h,x){return o.baseState=h,vv(o,kt,typeof x=="function"?x:Fa)}function _W(o,c,h,x,j){if(Vm(o))throw Error(r(485));if(o=c.action,o!==null){var S={payload:j,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){S.listeners.push(O)}};B.T!==null?h(!0):S.isTransition=!1,x(S),h=c.pending,h===null?(S.next=c.pending=S,uC(c,S)):(S.next=h.next,c.pending=h.next=S)}}function uC(o,c){var h=c.action,x=c.payload,j=o.state;if(c.isTransition){var S=B.T,O={};B.T=O;try{var R=h(j,x),W=B.S;W!==null&&W(O,R),dC(o,c,R)}catch(re){jv(o,c,re)}finally{B.T=S}}else try{S=h(j,x),dC(o,c,S)}catch(re){jv(o,c,re)}}function dC(o,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(x){fC(o,c,x)},function(x){return jv(o,c,x)}):fC(o,c,h)}function fC(o,c,h){c.status="fulfilled",c.value=h,hC(c),o.state=h,c=o.pending,c!==null&&(h=c.next,h===c?o.pending=null:(h=h.next,c.next=h,uC(o,h)))}function jv(o,c,h){var x=o.pending;if(o.pending=null,x!==null){x=x.next;do c.status="rejected",c.reason=h,hC(c),c=c.next;while(c!==x)}o.action=null}function hC(o){o=o.listeners;for(var c=0;c<o.length;c++)(0,o[c])()}function mC(o,c){return c}function pC(o,c){if(vt){var h=Pt.formState;if(h!==null){e:{var x=nt;if(vt){if(Zt){t:{for(var j=Zt,S=ra;j.nodeType!==8;){if(!S){j=null;break t}if(j=Mi(j.nextSibling),j===null){j=null;break t}}S=j.data,j=S==="F!"||S==="F"?j:null}if(j){Zt=Mi(j.nextSibling),x=j.data==="F!";break e}}Ho(x)}x=!1}x&&(c=h[0])}}return h=_r(),h.memoizedState=h.baseState=c,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mC,lastRenderedState:c},h.queue=x,h=RC.bind(null,nt,x),x.dispatch=h,x=wv(!1),S=Cv.bind(null,nt,!1,x.queue),x=_r(),j={state:c,dispatch:null,action:o,pending:null},x.queue=j,h=_W.bind(null,nt,j,S,h),j.dispatch=h,x.memoizedState=o,[c,h,!1]}function xC(o){var c=hn();return gC(c,kt,o)}function gC(o,c,h){if(c=vv(o,c,mC)[0],o=Fm(Fa)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var x=Ld(c)}catch(O){throw O===Od?Rm:O}else x=c;c=hn();var j=c.queue,S=j.dispatch;return h!==c.memoizedState&&(nt.flags|=2048,Cc(9,Um(),OW.bind(null,j,h),null)),[x,S,o]}function OW(o,c){o.action=c}function yC(o){var c=hn(),h=kt;if(h!==null)return gC(c,h,o);hn(),c=c.memoizedState,h=hn();var x=h.queue.dispatch;return h.memoizedState=o,[c,x,!1]}function Cc(o,c,h,x){return o={tag:o,create:h,deps:x,inst:c,next:null},c=nt.updateQueue,c===null&&(c=gv(),nt.updateQueue=c),h=c.lastEffect,h===null?c.lastEffect=o.next=o:(x=h.next,h.next=o,o.next=x,c.lastEffect=o),o}function Um(){return{destroy:void 0,resource:void 0}}function vC(){return hn().memoizedState}function zm(o,c,h,x){var j=_r();x=x===void 0?null:x,nt.flags|=o,j.memoizedState=Cc(1|c,Um(),h,x)}function $d(o,c,h,x){var j=hn();x=x===void 0?null:x;var S=j.memoizedState.inst;kt!==null&&x!==null&&fv(x,kt.memoizedState.deps)?j.memoizedState=Cc(c,S,h,x):(nt.flags|=o,j.memoizedState=Cc(1|c,S,h,x))}function bC(o,c){zm(8390656,8,o,c)}function wC(o,c){$d(2048,8,o,c)}function jC(o,c){return $d(4,2,o,c)}function NC(o,c){return $d(4,4,o,c)}function SC(o,c){if(typeof c=="function"){o=o();var h=c(o);return function(){typeof h=="function"?h():c(null)}}if(c!=null)return o=o(),c.current=o,function(){c.current=null}}function kC(o,c,h){h=h!=null?h.concat([o]):null,$d(4,4,SC.bind(null,c,o),h)}function Nv(){}function AC(o,c){var h=hn();c=c===void 0?null:c;var x=h.memoizedState;return c!==null&&fv(c,x[1])?x[0]:(h.memoizedState=[o,c],o)}function CC(o,c){var h=hn();c=c===void 0?null:c;var x=h.memoizedState;if(c!==null&&fv(c,x[1]))return x[0];if(x=o(),Qo){Xe(!0);try{o()}finally{Xe(!1)}}return h.memoizedState=[x,c],x}function Sv(o,c,h){return h===void 0||(Us&1073741824)!==0?o.memoizedState=c:(o.memoizedState=h,o=_E(),nt.lanes|=o,Ks|=o,h)}function EC(o,c,h,x){return Vr(h,c)?h:Sc.current!==null?(o=Sv(o,h,x),Vr(o,c)||(Dn=!0),o):(Us&42)===0?(Dn=!0,o.memoizedState=h):(o=_E(),nt.lanes|=o,Ks|=o,c)}function TC(o,c,h,x,j){var S=K.p;K.p=S!==0&&8>S?S:8;var O=B.T,R={};B.T=R,Cv(o,!1,c,h);try{var W=j(),re=B.S;if(re!==null&&re(R,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var de=CW(W,x);Bd(o,c,de,Kr(o))}else Bd(o,c,x,Kr(o))}catch(pe){Bd(o,c,{then:function(){},status:"rejected",reason:pe},Kr())}finally{K.p=S,B.T=O}}function PW(){}function kv(o,c,h,x){if(o.tag!==5)throw Error(r(476));var j=_C(o).queue;TC(o,j,c,Q,h===null?PW:function(){return OC(o),h(x)})}function _C(o){var c=o.memoizedState;if(c!==null)return c;c={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:Q},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:h},next:null},o.memoizedState=c,o=o.alternate,o!==null&&(o.memoizedState=c),c}function OC(o){var c=_C(o).next.queue;Bd(o,c,{},Kr())}function Av(){return nr(rf)}function PC(){return hn().memoizedState}function MC(){return hn().memoizedState}function MW(o){for(var c=o.return;c!==null;){switch(c.tag){case 24:case 3:var h=Kr();o=Bs(h);var x=Fs(c,o,h);x!==null&&(Yr(x,c,h),Md(x,c,h)),c={cache:nv()},o.payload=c;return}c=c.return}}function RW(o,c,h){var x=Kr();h={lane:x,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Vm(o)?DC(c,h):(h=Hy(o,c,h,x),h!==null&&(Yr(h,o,x),IC(h,c,x)))}function RC(o,c,h){var x=Kr();Bd(o,c,h,x)}function Bd(o,c,h,x){var j={lane:x,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Vm(o))DC(c,j);else{var S=o.alternate;if(o.lanes===0&&(S===null||S.lanes===0)&&(S=c.lastRenderedReducer,S!==null))try{var O=c.lastRenderedState,R=S(O,h);if(j.hasEagerState=!0,j.eagerState=R,Vr(R,O))return Am(o,c,j,0),Pt===null&&km(),!1}catch{}if(h=Hy(o,c,j,x),h!==null)return Yr(h,o,x),IC(h,c,x),!0}return!1}function Cv(o,c,h,x){if(x={lane:2,revertLane:ab(),action:x,hasEagerState:!1,eagerState:null,next:null},Vm(o)){if(c)throw Error(r(479))}else c=Hy(o,h,x,2),c!==null&&Yr(c,o,2)}function Vm(o){var c=o.alternate;return o===nt||c!==null&&c===nt}
vendor: 1,334 bytes, line 8
8function DC(o,c){kc=Lm=!0;var h=o.pending;h===null?c.next=c:(c.next=h.next,h.next=c),o.pending=c}function IC(o,c,h){if((h&4194048)!==0){var x=c.lanes;x&=o.pendingLanes,h|=x,c.lanes=h,fd(o,h)}}var Wm={readContext:nr,use:Bm,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useLayoutEffect:sn,useInsertionEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useSyncExternalStore:sn,useId:sn,useHostTransitionStatus:sn,useFormState:sn,useActionState:sn,useOptimistic:sn,useMemoCache:sn,useCacheRefresh:sn},LC={readContext:nr,use:Bm,useCallback:function(o,c){return _r().memoizedState=[o,c===void 0?null:c],o},useContext:nr,useEffect:bC,useImperativeHandle:function(o,c,h){h=h!=null?h.concat([o]):null,zm(4194308,4,SC.bind(null,c,o),h)},useLayoutEffect:function(o,c){return zm(4194308,4,o,c)},useInsertionEffect:function(o,c){zm(4,2,o,c)},useMemo:function(o,c){var h=_r();c=c===void 0?null:c;var x=o();if(Qo){Xe(!0);try{o()}finally{Xe(!1)}}return h.memoizedState=[x,c],x},useReducer:function(o,c,h){var x=_r();if(h!==void 0){var j=h(c);if(Qo){Xe(!0);try{h(c)}finally{Xe(!1)}}}else j=c;return x.memoizedState=x.baseState=j,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:j},x.queue=o,o=o.dispatch=RW.bind(null,nt,o),[x.memoizedState,o]}
vendor: 70,020 bytes, line 8
8,useRef:function(o){var c=_r();return o={current:o},c.memoizedState=o},useState:function(o){o=wv(o);var c=o.queue,h=RC.bind(null,nt,c);return c.dispatch=h,[o.memoizedState,h]},useDebugValue:Nv,useDeferredValue:function(o,c){var h=_r();return Sv(h,o,c)},useTransition:function(){var o=wv(!1);return o=TC.bind(null,nt,o.queue,!0,!1),_r().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,c,h){var x=nt,j=_r();if(vt){if(h===void 0)throw Error(r(407));h=h()}else{if(h=c(),Pt===null)throw Error(r(349));(mt&124)!==0||iC(x,c,h)}j.memoizedState=h;var S={value:h,getSnapshot:c};return j.queue=S,bC(sC.bind(null,x,S,o),[o]),x.flags|=2048,Cc(9,Um(),aC.bind(null,x,S,h,c),null),h},useId:function(){var o=_r(),c=Pt.identifierPrefix;if(vt){var h=La,x=Ia;h=(x&~(1<<32-We(x)-1)).toString(32)+h,c="«"+c+"R"+h,h=$m++,0<h&&(c+="H"+h.toString(32)),c+="»"}else h=EW++,c="«"+c+"r"+h.toString(32)+"»";return o.memoizedState=c},useHostTransitionStatus:Av,useFormState:pC,useActionState:pC,useOptimistic:function(o){var c=_r();c.memoizedState=c.baseState=o;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=Cv.bind(null,nt,!0,h),h.dispatch=c,[o,c]},useMemoCache:yv,useCacheRefresh:function(){return _r().memoizedState=MW.bind(null,nt)}},$C={readContext:nr,use:Bm,useCallback:AC,useContext:nr,useEffect:wC,useImperativeHandle:kC,useInsertionEffect:jC,useLayoutEffect:NC,useMemo:CC,useReducer:Fm,useRef:vC,useState:function(){return Fm(Fa)},useDebugValue:Nv,useDeferredValue:function(o,c){var h=hn();return EC(h,kt.memoizedState,o,c)},useTransition:function(){var o=Fm(Fa)[0],c=hn().memoizedState;return[typeof o=="boolean"?o:Ld(o),c]},useSyncExternalStore:rC,useId:PC,useHostTransitionStatus:Av,useFormState:xC,useActionState:xC,useOptimistic:function(o,c){var h=hn();return cC(h,kt,o,c)},useMemoCache:yv,useCacheRefresh:MC},DW={readContext:nr,use:Bm,useCallback:AC,useContext:nr,useEffect:wC,useImperativeHandle:kC,useInsertionEffect:jC,useLayoutEffect:NC,useMemo:CC,useReducer:bv,useRef:vC,useState:function(){return bv(Fa)},useDebugValue:Nv,useDeferredValue:function(o,c){var h=hn();return kt===null?Sv(h,o,c):EC(h,kt.memoizedState,o,c)},useTransition:function(){var o=bv(Fa)[0],c=hn().memoizedState;return[typeof o=="boolean"?o:Ld(o),c]},useSyncExternalStore:rC,useId:PC,useHostTransitionStatus:Av,useFormState:yC,useActionState:yC,useOptimistic:function(o,c){var h=hn();return kt!==null?cC(h,kt,o,c):(h.baseState=o,[o,h.queue.dispatch])},useMemoCache:yv,useCacheRefresh:MC},Ec=null,Fd=0;function qm(o){var c=Fd;return Fd+=1,Ec===null&&(Ec=[]),YA(Ec,o,c)}function Ud(o,c){c=c.props.ref,o.ref=c!==void 0?c:null}function Hm(o,c){throw c.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(c),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":o)))}function BC(o){var c=o._init;return c(o._payload)}function FC(o){function c(Z,Y){if(o){var ne=Z.deletions;ne===null?(Z.deletions=[Y],Z.flags|=16):ne.push(Y)}}function h(Z,Y){if(!o)return null;for(;Y!==null;)c(Z,Y),Y=Y.sibling;return null}function x(Z){for(var Y=new Map;Z!==null;)Z.key!==null?Y.set(Z.key,Z):Y.set(Z.index,Z),Z=Z.sibling;return Y}function j(Z,Y){return Z=Da(Z,Y),Z.index=0,Z.sibling=null,Z}function S(Z,Y,ne){return Z.index=ne,o?(ne=Z.alternate,ne!==null?(ne=ne.index,ne<Y?(Z.flags|=67108866,Y):ne):(Z.flags|=67108866,Y)):(Z.flags|=1048576,Y)}function O(Z){return o&&Z.alternate===null&&(Z.flags|=67108866),Z}function R(Z,Y,ne,me){return Y===null||Y.tag!==6?(Y=Ky(ne,Z.mode,me),Y.return=Z,Y):(Y=j(Y,ne),Y.return=Z,Y)}function W(Z,Y,ne,me){var Me=ne.type;return Me===w?de(Z,Y,ne.props.children,me,ne.key):Y!==null&&(Y.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===P&&BC(Me)===Y.type)?(Y=j(Y,ne.props),Ud(Y,ne),Y.return=Z,Y):(Y=Em(ne.type,ne.key,ne.props,null,Z.mode,me),Ud(Y,ne),Y.return=Z,Y)}function re(Z,Y,ne,me){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==ne.containerInfo||Y.stateNode.implementation!==ne.implementation?(Y=Yy(ne,Z.mode,me),Y.return=Z,Y):(Y=j(Y,ne.children||[]),Y.return=Z,Y)}function de(Z,Y,ne,me,Me){return Y===null||Y.tag!==7?(Y=zo(ne,Z.mode,me,Me),Y.return=Z,Y):(Y=j(Y,ne),Y.return=Z,Y)}function pe(Z,Y,ne){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=Ky(""+Y,Z.mode,ne),Y.return=Z,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case g:return ne=Em(Y.type,Y.key,Y.props,null,Z.mode,ne),Ud(ne,Y),ne.return=Z,ne;case y:return Y=Yy(Y,Z.mode,ne),Y.return=Z,Y;case P:var me=Y._init;return Y=me(Y._payload),pe(Z,Y,ne)}if(V(Y)||$(Y))return Y=zo(Y,Z.mode,ne,null),Y.return=Z,Y;if(typeof Y.then=="function")return pe(Z,qm(Y),ne);if(Y.$$typeof===A)return pe(Z,Pm(Z,Y),ne);Hm(Z,Y)}return null}function ae(Z,Y,ne,me){var Me=Y!==null?Y.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return Me!==null?null:R(Z,Y,""+ne,me);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case g:return ne.key===Me?W(Z,Y,ne,me):null;case y:return ne.key===Me?re(Z,Y,ne,me):null;case P:return Me=ne._init,ne=Me(ne._payload),ae(Z,Y,ne,me)}if(V(ne)||$(ne))return Me!==null?null:de(Z,Y,ne,me,null);if(typeof ne.then=="function")return ae(Z,Y,qm(ne),me);if(ne.$$typeof===A)return ae(Z,Y,Pm(Z,ne),me);Hm(Z,ne)}return null}function se(Z,Y,ne,me,Me){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return Z=Z.get(ne)||null,R(Y,Z,""+me,Me);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case g:return Z=Z.get(me.key===null?ne:me.key)||null,W(Y,Z,me,Me);case y:return Z=Z.get(me.key===null?ne:me.key)||null,re(Y,Z,me,Me);case P:var at=me._init;return me=at(me._payload),se(Z,Y,ne,me,Me)}if(V(me)||$(me))return Z=Z.get(ne)||null,de(Y,Z,me,Me,null);if(typeof me.then=="function")return se(Z,Y,ne,qm(me),Me);if(me.$$typeof===A)return se(Z,Y,ne,Pm(Y,me),Me);Hm(Y,me)}return null}function Ke(Z,Y,ne,me){for(var Me=null,at=null,$e=Y,Ge=Y=0,Ln=null;$e!==null&&Ge<ne.length;Ge++){$e.index>Ge?(Ln=$e,$e=null):Ln=$e.sibling;var pt=ae(Z,$e,ne[Ge],me);if(pt===null){$e===null&&($e=Ln);break}o&&$e&&pt.alternate===null&&c(Z,$e),Y=S(pt,Y,Ge),at===null?Me=pt:at.sibling=pt,at=pt,$e=Ln}if(Ge===ne.length)return h(Z,$e),vt&&Wo(Z,Ge),Me;if($e===null){for(;Ge<ne.length;Ge++)$e=pe(Z,ne[Ge],me),$e!==null&&(Y=S($e,Y,Ge),at===null?Me=$e:at.sibling=$e,at=$e);return vt&&Wo(Z,Ge),Me}for($e=x($e);Ge<ne.length;Ge++)Ln=se($e,Z,Ge,ne[Ge],me),Ln!==null&&(o&&Ln.alternate!==null&&$e.delete(Ln.key===null?Ge:Ln.key),Y=S(Ln,Y,Ge),at===null?Me=Ln:at.sibling=Ln,at=Ln);return o&&$e.forEach(function(ro){return c(Z,ro)}),vt&&Wo(Z,Ge),Me}function qe(Z,Y,ne,me){if(ne==null)throw Error(r(151));for(var Me=null,at=null,$e=Y,Ge=Y=0,Ln=null,pt=ne.next();$e!==null&&!pt.done;Ge++,pt=ne.next()){$e.index>Ge?(Ln=$e,$e=null):Ln=$e.sibling;var ro=ae(Z,$e,pt.value,me);if(ro===null){$e===null&&($e=Ln);break}o&&$e&&ro.alternate===null&&c(Z,$e),Y=S(ro,Y,Ge),at===null?Me=ro:at.sibling=ro,at=ro,$e=Ln}if(pt.done)return h(Z,$e),vt&&Wo(Z,Ge),Me;if($e===null){for(;!pt.done;Ge++,pt=ne.next())pt=pe(Z,pt.value,me),pt!==null&&(Y=S(pt,Y,Ge),at===null?Me=pt:at.sibling=pt,at=pt);return vt&&Wo(Z,Ge),Me}for($e=x($e);!pt.done;Ge++,pt=ne.next())pt=se($e,Z,Ge,pt.value,me),pt!==null&&(o&&pt.alternate!==null&&$e.delete(pt.key===null?Ge:pt.key),Y=S(pt,Y,Ge),at===null?Me=pt:at.sibling=pt,at=pt);return o&&$e.forEach(function(Iq){return c(Z,Iq)}),vt&&Wo(Z,Ge),Me}function Ct(Z,Y,ne,me){if(typeof ne=="object"&&ne!==null&&ne.type===w&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case g:e:{for(var Me=ne.key;Y!==null;){if(Y.key===Me){if(Me=ne.type,Me===w){if(Y.tag===7){h(Z,Y.sibling),me=j(Y,ne.props.children),me.return=Z,Z=me;break e}}else if(Y.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===P&&BC(Me)===Y.type){h(Z,Y.sibling),me=j(Y,ne.props),Ud(me,ne),me.return=Z,Z=me;break e}h(Z,Y);break}else c(Z,Y);Y=Y.sibling}ne.type===w?(me=zo(ne.props.children,Z.mode,me,ne.key),me.return=Z,Z=me):(me=Em(ne.type,ne.key,ne.props,null,Z.mode,me),Ud(me,ne),me.return=Z,Z=me)}return O(Z);case y:e:{for(Me=ne.key;Y!==null;){if(Y.key===Me)if(Y.tag===4&&Y.stateNode.containerInfo===ne.containerInfo&&Y.stateNode.implementation===ne.implementation){h(Z,Y.sibling),me=j(Y,ne.children||[]),me.return=Z,Z=me;break e}else{h(Z,Y);break}else c(Z,Y);Y=Y.sibling}me=Yy(ne,Z.mode,me),me.return=Z,Z=me}return O(Z);case P:return Me=ne._init,ne=Me(ne._payload),Ct(Z,Y,ne,me)}if(V(ne))return Ke(Z,Y,ne,me);if($(ne)){if(Me=$(ne),typeof Me!="function")throw Error(r(150));return ne=Me.call(ne),qe(Z,Y,ne,me)}if(typeof ne.then=="function")return Ct(Z,Y,qm(ne),me);if(ne.$$typeof===A)return Ct(Z,Y,Pm(Z,ne),me);Hm(Z,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,Y!==null&&Y.tag===6?(h(Z,Y.sibling),me=j(Y,ne),me.return=Z,Z=me):(h(Z,Y),me=Ky(ne,Z.mode,me),me.return=Z,Z=me),O(Z)):h(Z,Y)}return function(Z,Y,ne,me){try{Fd=0;var Me=Ct(Z,Y,ne,me);return Ec=null,Me}catch($e){if($e===Od||$e===Rm)throw $e;var at=Wr(29,$e,null,Z.mode);return at.lanes=me,at.return=Z,at}}}var Tc=FC(!0),UC=FC(!1),hi=J(null),ia=null;function zs(o){var c=o.alternate;ue(bn,bn.current&1),ue(hi,o),ia===null&&(c===null||Sc.current!==null||c.memoizedState!==null)&&(ia=o)}function zC(o){if(o.tag===22){if(ue(bn,bn.current),ue(hi,o),ia===null){var c=o.alternate;c!==null&&c.memoizedState!==null&&(ia=o)}}else Vs()}function Vs(){ue(bn,bn.current),ue(hi,hi.current)}function Ua(o){fe(hi),ia===o&&(ia=null),fe(bn)}var bn=J(0);function Gm(o){for(var c=o;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||gb(h)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function Ev(o,c,h,x){c=o.memoizedState,h=h(x,c),h=h==null?c:m({},c,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var Tv={enqueueSetState:function(o,c,h){o=o._reactInternals;var x=Kr(),j=Bs(x);j.payload=c,h!=null&&(j.callback=h),c=Fs(o,j,x),c!==null&&(Yr(c,o,x),Md(c,o,x))},enqueueReplaceState:function(o,c,h){o=o._reactInternals;var x=Kr(),j=Bs(x);j.tag=1,j.payload=c,h!=null&&(j.callback=h),c=Fs(o,j,x),c!==null&&(Yr(c,o,x),Md(c,o,x))},enqueueForceUpdate:function(o,c){o=o._reactInternals;var h=Kr(),x=Bs(h);x.tag=2,c!=null&&(x.callback=c),c=Fs(o,x,h),c!==null&&(Yr(c,o,h),Md(c,o,h))}};function VC(o,c,h,x,j,S,O){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(x,S,O):c.prototype&&c.prototype.isPureReactComponent?!Nd(h,x)||!Nd(j,S):!0}function WC(o,c,h,x){o=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,x),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,x),c.state!==o&&Tv.enqueueReplaceState(c,c.state,null)}function Xo(o,c){var h=c;if("ref"in c){h={};for(var x in c)x!=="ref"&&(h[x]=c[x])}if(o=o.defaultProps){h===c&&(h=m({},h));for(var j in o)h[j]===void 0&&(h[j]=o[j])}return h}var Km=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function qC(o){Km(o)}function HC(o){console.error(o)}function GC(o){Km(o)}function Ym(o,c){try{var h=o.onUncaughtError;h(c.value,{componentStack:c.stack})}catch(x){setTimeout(function(){throw x})}}function KC(o,c,h){try{var x=o.onCaughtError;x(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(j){setTimeout(function(){throw j})}}function _v(o,c,h){return h=Bs(h),h.tag=3,h.payload={element:null},h.callback=function(){Ym(o,c)},h}function YC(o){return o=Bs(o),o.tag=3,o}function QC(o,c,h,x){var j=h.type.getDerivedStateFromError;if(typeof j=="function"){var S=x.value;o.payload=function(){return j(S)},o.callback=function(){KC(c,h,x)}}var O=h.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(o.callback=function(){KC(c,h,x),typeof j!="function"&&(Ys===null?Ys=new Set([this]):Ys.add(this));var R=x.stack;this.componentDidCatch(x.value,{componentStack:R!==null?R:""})})}function IW(o,c,h,x,j){if(h.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(c=h.alternate,c!==null&&Ed(c,h,j,!0),h=hi.current,h!==null){switch(h.tag){case 13:return ia===null?eb():h.alternate===null&&Jt===0&&(Jt=3),h.flags&=-257,h.flags|=65536,h.lanes=j,x===av?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([x]):c.add(x),nb(o,x,j)),!1;case 22:return h.flags|=65536,x===av?h.flags|=16384:(c=h.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([x])},h.updateQueue=c):(h=c.retryQueue,h===null?c.retryQueue=new Set([x]):h.add(x)),nb(o,x,j)),!1}throw Error(r(435,h.tag))}return nb(o,x,j),eb(),!1}if(vt)return c=hi.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=j,x!==Zy&&(o=Error(r(422),{cause:x}),Cd(ci(o,h)))):(x!==Zy&&(c=Error(r(423),{cause:x}),Cd(ci(c,h))),o=o.current.alternate,o.flags|=65536,j&=-j,o.lanes|=j,x=ci(x,h),j=_v(o.stateNode,x,j),lv(o,j),Jt!==4&&(Jt=2)),!1;var S=Error(r(520),{cause:x});if(S=ci(S,h),Kd===null?Kd=[S]:Kd.push(S),Jt!==4&&(Jt=2),c===null)return!0;x=ci(x,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,o=j&-j,h.lanes|=o,o=_v(h.stateNode,x,o),lv(h,o),!1;case 1:if(c=h.type,S=h.stateNode,(h.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Ys===null||!Ys.has(S))))return h.flags|=65536,j&=-j,h.lanes|=j,j=YC(j),QC(j,o,h,x),lv(h,j),!1}h=h.return}while(h!==null);return!1}var XC=Error(r(461)),Dn=!1;function Wn(o,c,h,x){c.child=o===null?UC(c,null,h,x):Tc(c,o.child,h,x)}function ZC(o,c,h,x,j){h=h.render;var S=c.ref;if("ref"in x){var O={};for(var R in x)R!=="ref"&&(O[R]=x[R])}else O=x;return Ko(c),x=hv(o,c,h,O,S,j),R=mv(),o!==null&&!Dn?(pv(o,c,j),za(o,c,j)):(vt&&R&&Qy(c),c.flags|=1,Wn(o,c,x,j),c.child)}function JC(o,c,h,x,j){if(o===null){var S=h.type;return typeof S=="function"&&!Gy(S)&&S.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=S,eE(o,c,S,x,j)):(o=Em(h.type,null,x,c,c.mode,j),o.ref=c.ref,o.return=c,c.child=o)}if(S=o.child,!$v(o,j)){var O=S.memoizedProps;if(h=h.compare,h=h!==null?h:Nd,h(O,x)&&o.ref===c.ref)return za(o,c,j)}return c.flags|=1,o=Da(S,x),o.ref=c.ref,o.return=c,c.child=o}function eE(o,c,h,x,j){if(o!==null){var S=o.memoizedProps;if(Nd(S,x)&&o.ref===c.ref)if(Dn=!1,c.pendingProps=x=S,$v(o,j))(o.flags&131072)!==0&&(Dn=!0);else return c.lanes=o.lanes,za(o,c,j)}return Ov(o,c,h,x,j)}function tE(o,c,h){var x=c.pendingProps,j=x.children,S=o!==null?o.memoizedState:null;if(x.mode==="hidden"){if((c.flags&128)!==0){if(x=S!==null?S.baseLanes|h:h,o!==null){for(j=c.child=o.child,S=0;j!==null;)S=S|j.lanes|j.childLanes,j=j.sibling;c.childLanes=S&~x}else c.childLanes=0,c.child=null;return nE(o,c,x,h)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},o!==null&&Mm(c,S!==null?S.cachePool:null),S!==null?eC(c,S):uv(),zC(c);else return c.lanes=c.childLanes=536870912,nE(o,c,S!==null?S.baseLanes|h:h,h)}else S!==null?(Mm(c,S.cachePool),eC(c,S),Vs(),c.memoizedState=null):(o!==null&&Mm(c,null),uv(),Vs());return Wn(o,c,j,h),c.child}function nE(o,c,h,x){var j=iv();return j=j===null?null:{parent:vn._currentValue,pool:j},c.memoizedState={baseLanes:h,cachePool:j},o!==null&&Mm(c,null),uv(),zC(c),o!==null&&Ed(o,c,x,!0),null}function Qm(o,c){var h=c.ref;if(h===null)o!==null&&o.ref!==null&&(c.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(o===null||o.ref!==h)&&(c.flags|=4194816)}}function Ov(o,c,h,x,j){return Ko(c),h=hv(o,c,h,x,void 0,j),x=mv(),o!==null&&!Dn?(pv(o,c,j),za(o,c,j)):(vt&&x&&Qy(c),c.flags|=1,Wn(o,c,h,j),c.child)}function rE(o,c,h,x,j,S){return Ko(c),c.updateQueue=null,h=nC(c,x,h,j),tC(o),x=mv(),o!==null&&!Dn?(pv(o,c,S),za(o,c,S)):(vt&&x&&Qy(c),c.flags|=1,Wn(o,c,h,S),c.child)}function iE(o,c,h,x,j){if(Ko(c),c.stateNode===null){var S=vc,O=h.contextType;typeof O=="object"&&O!==null&&(S=nr(O)),S=new h(x,S),c.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=Tv,c.stateNode=S,S._reactInternals=c,S=c.stateNode,S.props=x,S.state=c.memoizedState,S.refs={},sv(c),O=h.contextType,S.context=typeof O=="object"&&O!==null?nr(O):vc,S.state=c.memoizedState,O=h.getDerivedStateFromProps,typeof O=="function"&&(Ev(c,h,O,x),S.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(O=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),O!==S.state&&Tv.enqueueReplaceState(S,S.state,null),Dd(c,x,S,j),Rd(),S.state=c.memoizedState),typeof S.componentDidMount=="function"&&(c.flags|=4194308),x=!0}else if(o===null){S=c.stateNode;var R=c.memoizedProps,W=Xo(h,R);S.props=W;var re=S.context,de=h.contextType;O=vc,typeof de=="object"&&de!==null&&(O=nr(de));var pe=h.getDerivedStateFromProps;de=typeof pe=="function"||typeof S.getSnapshotBeforeUpdate=="function",R=c.pendingProps!==R,de||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(R||re!==O)&&WC(c,S,x,O),$s=!1;var ae=c.memoizedState;S.state=ae,Dd(c,x,S,j),Rd(),re=c.memoizedState,R||ae!==re||$s?(typeof pe=="function"&&(Ev(c,h,pe,x),re=c.memoizedState),(W=$s||VC(c,h,W,x,ae,re,O))?(de||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(c.flags|=4194308)):(typeof S.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=x,c.memoizedState=re),S.props=x,S.state=re,S.context=O,x=W):(typeof S.componentDidMount=="function"&&(c.flags|=4194308),x=!1)}else{S=c.stateNode,ov(o,c),O=c.memoizedProps,de=Xo(h,O),S.props=de,pe=c.pendingProps,ae=S.context,re=h.contextType,W=vc,typeof re=="object"&&re!==null&&(W=nr(re)),R=h.getDerivedStateFromProps,(re=typeof R=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O!==pe||ae!==W)&&WC(c,S,x,W),$s=!1,ae=c.memoizedState,S.state=ae,Dd(c,x,S,j),Rd();var se=c.memoizedState;O!==pe||ae!==se||$s||o!==null&&o.dependencies!==null&&Om(o.dependencies)?(typeof R=="function"&&(Ev(c,h,R,x),se=c.memoizedState),(de=$s||VC(c,h,de,x,ae,se,W)||o!==null&&o.dependencies!==null&&Om(o.dependencies))?(re||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(x,se,W),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(x,se,W)),typeof S.componentDidUpdate=="function"&&(c.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof S.componentDidUpdate!="function"||O===o.memoizedProps&&ae===o.memoizedState||(c.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&ae===o.memoizedState||(c.flags|=1024),c.memoizedProps=x,c.memoizedState=se),S.props=x,S.state=se,S.context=W,x=de):(typeof S.componentDidUpdate!="function"||O===o.memoizedProps&&ae===o.memoizedState||(c.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&ae===o.memoizedState||(c.flags|=1024),x=!1)}return S=x,Qm(o,c),x=(c.flags&128)!==0,S||x?(S=c.stateNode,h=x&&typeof h.getDerivedStateFromError!="function"?null:S.render(),c.flags|=1,o!==null&&x?(c.child=Tc(c,o.child,null,j),c.child=Tc(c,null,h,j)):Wn(o,c,h,j),c.memoizedState=S.state,o=c.child):o=za(o,c,j),o}function aE(o,c,h,x){return Ad(),c.flags|=256,Wn(o,c,h,x),c.child}var Pv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mv(o){return{baseLanes:o,cachePool:HA()}}function Rv(o,c,h){return o=o!==null?o.childLanes&~h:0,c&&(o|=mi),o}function sE(o,c,h){var x=c.pendingProps,j=!1,S=(c.flags&128)!==0,O;if((O=S)||(O=o!==null&&o.memoizedState===null?!1:(bn.current&2)!==0),O&&(j=!0,c.flags&=-129),O=(c.flags&32)!==0,c.flags&=-33,o===null){if(vt){if(j?zs(c):Vs(),vt){var R=Zt,W;if(W=R){e:{for(W=R,R=ra;W.nodeType!==8;){if(!R){R=null;break e}if(W=Mi(W.nextSibling),W===null){R=null;break e}}R=W}R!==null?(c.memoizedState={dehydrated:R,treeContext:Vo!==null?{id:Ia,overflow:La}:null,retryLane:536870912,hydrationErrors:null},W=Wr(18,null,null,0),W.stateNode=R,W.return=c,c.child=W,xr=c,Zt=null,W=!0):W=!1}W||Ho(c)}if(R=c.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return gb(R)?c.lanes=32:c.lanes=536870912,null;Ua(c)}return R=x.children,x=x.fallback,j?(Vs(),j=c.mode,R=Xm({mode:"hidden",children:R},j),x=zo(x,j,h,null),R.return=c,x.return=c,R.sibling=x,c.child=R,j=c.child,j.memoizedState=Mv(h),j.childLanes=Rv(o,O,h),c.memoizedState=Pv,x):(zs(c),Dv(c,R))}if(W=o.memoizedState,W!==null&&(R=W.dehydrated,R!==null)){if(S)c.flags&256?(zs(c),c.flags&=-257,c=Iv(o,c,h)):c.memoizedState!==null?(Vs(),c.child=o.child,c.flags|=128,c=null):(Vs(),j=x.fallback,R=c.mode,x=Xm({mode:"visible",children:x.children},R),j=zo(j,R,h,null),j.flags|=2,x.return=c,j.return=c,x.sibling=j,c.child=x,Tc(c,o.child,null,h),x=c.child,x.memoizedState=Mv(h),x.childLanes=Rv(o,O,h),c.memoizedState=Pv,c=j);else if(zs(c),gb(R)){if(O=R.nextSibling&&R.nextSibling.dataset,O)var re=O.dgst;O=re,x=Error(r(419)),x.stack="",x.digest=O,Cd({value:x,source:null,stack:null}),c=Iv(o,c,h)}else if(Dn||Ed(o,c,h,!1),O=(h&o.childLanes)!==0,Dn||O){if(O=Pt,O!==null&&(x=h&-h,x=(x&42)!==0?1:rc(x),x=(x&(O.suspendedLanes|h))!==0?0:x,x!==0&&x!==W.retryLane))throw W.retryLane=x,yc(o,x),Yr(O,o,x),XC;R.data==="$?"||eb(),c=Iv(o,c,h)}else R.data==="$?"?(c.flags|=192,c.child=o.child,c=null):(o=W.treeContext,Zt=Mi(R.nextSibling),xr=c,vt=!0,qo=null,ra=!1,o!==null&&(di[fi++]=Ia,di[fi++]=La,di[fi++]=Vo,Ia=o.id,La=o.overflow,Vo=c),c=Dv(c,x.children),c.flags|=4096);return c}return j?(Vs(),j=x.fallback,R=c.mode,W=o.child,re=W.sibling,x=Da(W,{mode:"hidden",children:x.children}),x.subtreeFlags=W.subtreeFlags&65011712,re!==null?j=Da(re,j):(j=zo(j,R,h,null),j.flags|=2),j.return=c,x.return=c,x.sibling=j,c.child=x,x=j,j=c.child,R=o.child.memoizedState,R===null?R=Mv(h):(W=R.cachePool,W!==null?(re=vn._currentValue,W=W.parent!==re?{parent:re,pool:re}:W):W=HA(),R={baseLanes:R.baseLanes|h,cachePool:W}),j.memoizedState=R,j.childLanes=Rv(o,O,h),c.memoizedState=Pv,x):(zs(c),h=o.child,o=h.sibling,h=Da(h,{mode:"visible",children:x.children}),h.return=c,h.sibling=null,o!==null&&(O=c.deletions,O===null?(c.deletions=[o],c.flags|=16):O.push(o)),c.child=h,c.memoizedState=null,h)}function Dv(o,c){return c=Xm({mode:"visible",children:c},o.mode),c.return=o,o.child=c}function Xm(o,c){return o=Wr(22,o,null,c),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Iv(o,c,h){return Tc(c,o.child,null,h),o=Dv(c,c.pendingProps.children),o.flags|=2,c.memoizedState=null,o}function oE(o,c,h){o.lanes|=c;var x=o.alternate;x!==null&&(x.lanes|=c),ev(o.return,c,h)}function Lv(o,c,h,x,j){var S=o.memoizedState;S===null?o.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:x,tail:h,tailMode:j}:(S.isBackwards=c,S.rendering=null,S.renderingStartTime=0,S.last=x,S.tail=h,S.tailMode=j)}function lE(o,c,h){var x=c.pendingProps,j=x.revealOrder,S=x.tail;if(Wn(o,c,x.children,h),x=bn.current,(x&2)!==0)x=x&1|2,c.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=c.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&oE(o,h,c);else if(o.tag===19)oE(o,h,c);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===c)break e;for(;o.sibling===null;){if(o.return===null||o.return===c)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}x&=1}switch(ue(bn,x),j){case"forwards":for(h=c.child,j=null;h!==null;)o=h.alternate,o!==null&&Gm(o)===null&&(j=h),h=h.sibling;h=j,h===null?(j=c.child,c.child=null):(j=h.sibling,h.sibling=null),Lv(c,!1,j,h,S);break;case"backwards":for(h=null,j=c.child,c.child=null;j!==null;){if(o=j.alternate,o!==null&&Gm(o)===null){c.child=j;break}o=j.sibling,j.sibling=h,h=j,j=o}Lv(c,!0,h,null,S);break;case"together":Lv(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function za(o,c,h){if(o!==null&&(c.dependencies=o.dependencies),Ks|=c.lanes,(h&c.childLanes)===0)if(o!==null){if(Ed(o,c,h,!1),(h&c.childLanes)===0)return null}else return null;if(o!==null&&c.child!==o.child)throw Error(r(153));if(c.child!==null){for(o=c.child,h=Da(o,o.pendingProps),c.child=h,h.return=c;o.sibling!==null;)o=o.sibling,h=h.sibling=Da(o,o.pendingProps),h.return=c;h.sibling=null}return c.child}function $v(o,c){return(o.lanes&c)!==0?!0:(o=o.dependencies,!!(o!==null&&Om(o)))}function LW(o,c,h){switch(c.tag){case 3:ke(c,c.stateNode.containerInfo),Ls(c,vn,o.memoizedState.cache),Ad();break;case 27:case 5:we(c);break;case 4:ke(c,c.stateNode.containerInfo);break;case 10:Ls(c,c.type,c.memoizedProps.value);break;case 13:var x=c.memoizedState;if(x!==null)return x.dehydrated!==null?(zs(c),c.flags|=128,null):(h&c.child.childLanes)!==0?sE(o,c,h):(zs(c),o=za(o,c,h),o!==null?o.sibling:null);zs(c);break;case 19:var j=(o.flags&128)!==0;if(x=(h&c.childLanes)!==0,x||(Ed(o,c,h,!1),x=(h&c.childLanes)!==0),j){if(x)return lE(o,c,h);c.flags|=128}if(j=c.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),ue(bn,bn.current),x)break;return null;case 22:case 23:return c.lanes=0,tE(o,c,h);case 24:Ls(c,vn,o.memoizedState.cache)}return za(o,c,h)}function cE(o,c,h){if(o!==null)if(o.memoizedProps!==c.pendingProps)Dn=!0;else{if(!$v(o,h)&&(c.flags&128)===0)return Dn=!1,LW(o,c,h);Dn=(o.flags&131072)!==0}else Dn=!1,vt&&(c.flags&1048576)!==0&&BA(c,_m,c.index);switch(c.lanes=0,c.tag){case 16:e:{o=c.pendingProps;var x=c.elementType,j=x._init;if(x=j(x._payload),c.type=x,typeof x=="function")Gy(x)?(o=Xo(x,o),c.tag=1,c=iE(null,c,x,o,h)):(c.tag=0,c=Ov(null,c,x,o,h));else{if(x!=null){if(j=x.$$typeof,j===E){c.tag=11,c=ZC(null,c,x,o,h);break e}else if(j===M){c.tag=14,c=JC(null,c,x,o,h);break e}}throw c=H(x)||x,Error(r(306,c,""))}}return c;case 0:return Ov(o,c,c.type,c.pendingProps,h);case 1:return x=c.type,j=Xo(x,c.pendingProps),iE(o,c,x,j,h);case 3:e:{if(ke(c,c.stateNode.containerInfo),o===null)throw Error(r(387));x=c.pendingProps;var S=c.memoizedState;j=S.element,ov(o,c),Dd(c,x,null,h);var O=c.memoizedState;if(x=O.cache,Ls(c,vn,x),x!==S.cache&&tv(c,[vn],h,!0),Rd(),x=O.element,S.isDehydrated)if(S={element:x,isDehydrated:!1,cache:O.cache},c.updateQueue.baseState=S,c.memoizedState=S,c.flags&256){c=aE(o,c,x,h);break e}else if(x!==j){j=ci(Error(r(424)),c),Cd(j),c=aE(o,c,x,h);break e}else for(o=c.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Zt=Mi(o.firstChild),xr=c,vt=!0,qo=null,ra=!0,h=UC(c,null,x,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Ad(),x===j){c=za(o,c,h);break e}Wn(o,c,x,h)}c=c.child}return c;case 26:return Qm(o,c),o===null?(h=h5(c.type,null,c.pendingProps,null))?c.memoizedState=h:vt||(h=c.type,o=c.pendingProps,x=dp(Ne.current).createElement(h),x[tr]=c,x[Er]=o,Hn(x,h,o),Rn(x),c.stateNode=x):c.memoizedState=h5(c.type,o.memoizedProps,c.pendingProps,o.memoizedState),null;case 27:return we(c),o===null&&vt&&(x=c.stateNode=u5(c.type,c.pendingProps,Ne.current),xr=c,ra=!0,j=Zt,Zs(c.type)?(yb=j,Zt=Mi(x.firstChild)):Zt=j),Wn(o,c,c.pendingProps.children,h),Qm(o,c),o===null&&(c.flags|=4194304),c.child;case 5:return o===null&&vt&&((j=x=Zt)&&(x=dq(x,c.type,c.pendingProps,ra),x!==null?(c.stateNode=x,xr=c,Zt=Mi(x.firstChild),ra=!1,j=!0):j=!1),j||Ho(c)),we(c),j=c.type,S=c.pendingProps,O=o!==null?o.memoizedProps:null,x=S.children,mb(j,S)?x=null:O!==null&&mb(j,O)&&(c.flags|=32),c.memoizedState!==null&&(j=hv(o,c,TW,null,null,h),rf._currentValue=j),Qm(o,c),Wn(o,c,x,h),c.child;case 6:return o===null&&vt&&((o=h=Zt)&&(h=fq(h,c.pendingProps,ra),h!==null?(c.stateNode=h,xr=c,Zt=null,o=!0):o=!1),o||Ho(c)),null;case 13:return sE(o,c,h);case 4:return ke(c,c.stateNode.containerInfo),x=c.pendingProps,o===null?c.child=Tc(c,null,x,h):Wn(o,c,x,h),c.child;case 11:return ZC(o,c,c.type,c.pendingProps,h);case 7:return Wn(o,c,c.pendingProps,h),c.child;case 8:return Wn(o,c,c.pendingProps.children,h),c.child;case 12:return Wn(o,c,c.pendingProps.children,h),c.child;case 10:return x=c.pendingProps,Ls(c,c.type,x.value),Wn(o,c,x.children,h),c.child;case 9:return j=c.type._context,x=c.pendingProps.children,Ko(c),j=nr(j),x=x(j),c.flags|=1,Wn(o,c,x,h),c.child;case 14:return JC(o,c,c.type,c.pendingProps,h);case 15:return eE(o,c,c.type,c.pendingProps,h);case 19:return lE(o,c,h);case 31:return x=c.pendingProps,h=c.mode,x={mode:x.mode,children:x.children},o===null?(h=Xm(x,h),h.ref=c.ref,c.child=h,h.return=c,c=h):(h=Da(o.child,x),h.ref=c.ref,c.child=h,h.return=c,c=h),c;case 22:return tE(o,c,h);case 24:return Ko(c),x=nr(vn),o===null?(j=iv(),j===null&&(j=Pt,S=nv(),j.pooledCache=S,S.refCount++,S!==null&&(j.pooledCacheLanes|=h),j=S),c.memoizedState={parent:x,cache:j},sv(c),Ls(c,vn,j)):((o.lanes&h)!==0&&(ov(o,c),Dd(c,null,null,h),Rd()),j=o.memoizedState,S=c.memoizedState,j.parent!==x?(j={parent:x,cache:x},c.memoizedState=j,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=j),Ls(c,vn,x)):(x=S.cache,Ls(c,vn,x),x!==j.cache&&tv(c,[vn],h,!0))),Wn(o,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Va(o){o.flags|=4}function uE(o,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!y5(c)){if(c=hi.current,c!==null&&((mt&4194048)===mt?ia!==null:(mt&62914560)!==mt&&(mt&536870912)===0||c!==ia))throw Pd=av,GA;o.flags|=8192}}function Zm(o,c){c!==null&&(o.flags|=4),o.flags&16384&&(c=o.tag!==22?dm():536870912,o.lanes|=c,Mc|=c)}function zd(o,c){if(!vt)switch(o.tailMode){case"hidden":c=o.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var x=null;h!==null;)h.alternate!==null&&(x=h),h=h.sibling;x===null?c||o.tail===null?o.tail=null:o.tail.sibling=null:x.sibling=null}}function qt(o){var c=o.alternate!==null&&o.alternate.child===o.child,h=0,x=0;if(c)for(var j=o.child;j!==null;)h|=j.lanes|j.childLanes,x|=j.subtreeFlags&65011712,x|=j.flags&65011712,j.return=o,j=j.sibling;else for(j=o.child;j!==null;)h|=j.lanes|j.childLanes,x|=j.subtreeFlags,x|=j.flags,j.return=o,j=j.sibling;return o.subtreeFlags|=x,o.childLanes=h,c}function $W(o,c,h){var x=c.pendingProps;switch(Xy(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(c),null;case 1:return qt(c),null;case 3:return h=c.stateNode,x=null,o!==null&&(x=o.memoizedState.cache),c.memoizedState.cache!==x&&(c.flags|=2048),Ba(vn),le(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(kd(c)?Va(c):o===null||o.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,zA())),qt(c),null;case 26:return h=c.memoizedState,o===null?(Va(c),h!==null?(qt(c),uE(c,h)):(qt(c),c.flags&=-16777217)):h?h!==o.memoizedState?(Va(c),qt(c),uE(c,h)):(qt(c),c.flags&=-16777217):(o.memoizedProps!==x&&Va(c),qt(c),c.flags&=-16777217),null;case 27:he(c),h=Ne.current;var j=c.type;if(o!==null&&c.stateNode!=null)o.memoizedProps!==x&&Va(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return qt(c),null}o=ve.current,kd(c)?FA(c):(o=u5(j,x,h),c.stateNode=o,Va(c))}return qt(c),null;case 5:if(he(c),h=c.type,o!==null&&c.stateNode!=null)o.memoizedProps!==x&&Va(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return qt(c),null}if(o=ve.current,kd(c))FA(c);else{switch(j=dp(Ne.current),o){case 1:o=j.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:o=j.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":o=j.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":o=j.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":o=j.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof x.is=="string"?j.createElement("select",{is:x.is}):j.createElement("select"),x.multiple?o.multiple=!0:x.size&&(o.size=x.size);break;default:o=typeof x.is=="string"?j.createElement(h,{is:x.is}):j.createElement(h)}}o[tr]=c,o[Er]=x;e:for(j=c.child;j!==null;){if(j.tag===5||j.tag===6)o.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===c)break e;for(;j.sibling===null;){if(j.return===null||j.return===c)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}c.stateNode=o;e:switch(Hn(o,h,x),h){case"button":case"input":case"select":case"textarea":o=!!x.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Va(c)}}return qt(c),c.flags&=-16777217,null;case 6:if(o&&c.stateNode!=null)o.memoizedProps!==x&&Va(c);else{if(typeof x!="string"&&c.stateNode===null)throw Error(r(166));if(o=Ne.current,kd(c)){if(o=c.stateNode,h=c.memoizedProps,x=null,j=xr,j!==null)switch(j.tag){case 27:case 5:x=j.memoizedProps}o[tr]=c,o=!!(o.nodeValue===h||x!==null&&x.suppressHydrationWarning===!0||r5(o.nodeValue,h)),o||Ho(c)}else o=dp(o).createTextNode(x),o[tr]=c,c.stateNode=o}return qt(c),null;case 13:if(x=c.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(j=kd(c),x!==null&&x.dehydrated!==null){if(o===null){if(!j)throw Error(r(318));if(j=c.memoizedState,j=j!==null?j.dehydrated:null,!j)throw Error(r(317));j[tr]=c}else Ad(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;qt(c),j=!1}else j=zA(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=j),j=!0;if(!j)return c.flags&256?(Ua(c),c):(Ua(c),null)}if(Ua(c),(c.flags&128)!==0)return c.lanes=h,c;if(h=x!==null,o=o!==null&&o.memoizedState!==null,h){x=c.child,j=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(j=x.alternate.memoizedState.cachePool.pool);var S=null;x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(S=x.memoizedState.cachePool.pool),S!==j&&(x.flags|=2048)}return h!==o&&h&&(c.child.flags|=8192),Zm(c,c.updateQueue),qt(c),null;case 4:return le(),o===null&&cb(c.stateNode.containerInfo),qt(c),null;case 10:return Ba(c.type),qt(c),null;case 19:if(fe(bn),j=c.memoizedState,j===null)return qt(c),null;if(x=(c.flags&128)!==0,S=j.rendering,S===null)if(x)zd(j,!1);else{if(Jt!==0||o!==null&&(o.flags&128)!==0)for(o=c.child;o!==null;){if(S=Gm(o),S!==null){for(c.flags|=128,zd(j,!1),o=S.updateQueue,c.updateQueue=o,Zm(c,o),c.subtreeFlags=0,o=h,h=c.child;h!==null;)$A(h,o),h=h.sibling;return ue(bn,bn.current&1|2),c.child}o=o.sibling}j.tail!==null&&Qe()>tp&&(c.flags|=128,x=!0,zd(j,!1),c.lanes=4194304)}else{if(!x)if(o=Gm(S),o!==null){if(c.flags|=128,x=!0,o=o.updateQueue,c.updateQueue=o,Zm(c,o),zd(j,!0),j.tail===null&&j.tailMode==="hidden"&&!S.alternate&&!vt)return qt(c),null}else 2*Qe()-j.renderingStartTime>tp&&h!==536870912&&(c.flags|=128,x=!0,zd(j,!1),c.lanes=4194304);j.isBackwards?(S.sibling=c.child,c.child=S):(o=j.last,o!==null?o.sibling=S:c.child=S,j.last=S)}return j.tail!==null?(c=j.tail,j.rendering=c,j.tail=c.sibling,j.renderingStartTime=Qe(),c.sibling=null,o=bn.current,ue(bn,x?o&1|2:o&1),c):(qt(c),null);case 22:case 23:return Ua(c),dv(),x=c.memoizedState!==null,o!==null?o.memoizedState!==null!==x&&(c.flags|=8192):x&&(c.flags|=8192),x?(h&536870912)!==0&&(c.flags&128)===0&&(qt(c),c.subtreeFlags&6&&(c.flags|=8192)):qt(c),h=c.updateQueue,h!==null&&Zm(c,h.retryQueue),h=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),x=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(x=c.memoizedState.cachePool.pool),x!==h&&(c.flags|=2048),o!==null&&fe(Yo),null;case 24:return h=null,o!==null&&(h=o.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),Ba(vn),qt(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function BW(o,c){switch(Xy(c),c.tag){case 1:return o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 3:return Ba(vn),le(),o=c.flags,(o&65536)!==0&&(o&128)===0?(c.flags=o&-65537|128,c):null;case 26:case 27:case 5:return he(c),null;case 13:if(Ua(c),o=c.memoizedState,o!==null&&o.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Ad()}return o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 19:return fe(bn),null;case 4:return le(),null;case 10:return Ba(c.type),null;case 22:case 23:return Ua(c),dv(),o!==null&&fe(Yo),o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 24:return Ba(vn),null;case 25:return null;default:return null}}function dE(o,c){switch(Xy(c),c.tag){case 3:Ba(vn),le();break;case 26:case 27:case 5:he(c);break;case 4:le();break;case 13:Ua(c);break;case 19:fe(bn);break;case 10:Ba(c.type);break;case 22:case 23:Ua(c),dv(),o!==null&&fe(Yo);break;case 24:Ba(vn)}}function Vd(o,c){try{var h=c.updateQueue,x=h!==null?h.lastEffect:null;if(x!==null){var j=x.next;h=j;do{if((h.tag&o)===o){x=void 0;var S=h.create,O=h.inst;x=S(),O.destroy=x}h=h.next}while(h!==j)}}catch(R){Tt(c,c.return,R)}}function Ws(o,c,h){try{var x=c.updateQueue,j=x!==null?x.lastEffect:null;if(j!==null){var S=j.next;x=S;do{if((x.tag&o)===o){var O=x.inst,R=O.destroy;if(R!==void 0){O.destroy=void 0,j=c;var W=h,re=R;try{re()}catch(de){Tt(j,W,de)}}}x=x.next}while(x!==S)}}catch(de){Tt(c,c.return,de)}}function fE(o){var c=o.updateQueue;if(c!==null){var h=o.stateNode;try{JA(c,h)}catch(x){Tt(o,o.return,x)}}}function hE(o,c,h){h.props=Xo(o.type,o.memoizedProps),h.state=o.memoizedState;try{h.componentWillUnmount()}catch(x){Tt(o,c,x)}}function Wd(o,c){try{var h=o.ref;if(h!==null){switch(o.tag){case 26:case 27:case 5:var x=o.stateNode;break;case 30:x=o.stateNode;break;default:x=o.stateNode}typeof h=="function"?o.refCleanup=h(x):h.current=x}}catch(j){Tt(o,c,j)}}function aa(o,c){var h=o.ref,x=o.refCleanup;if(h!==null)if(typeof x=="function")try{x()}catch(j){Tt(o,c,j)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(j){Tt(o,c,j)}else h.current=null}function mE(o){var c=o.type,h=o.memoizedProps,x=o.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":h.autoFocus&&x.focus();break e;case"img":h.src?x.src=h.src:h.srcSet&&(x.srcset=h.srcSet)}}catch(j){Tt(o,o.return,j)}}function Bv(o,c,h){try{var x=o.stateNode;sq(x,o.type,h,c),x[Er]=c}catch(j){Tt(o,o.return,j)}}function pE(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Zs(o.type)||o.tag===4}function Fv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||pE(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Zs(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Uv(o,c,h){var x=o.tag;if(x===5||x===6)o=o.stateNode,c?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(o,c):(c=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,c.appendChild(o),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=up));else if(x!==4&&(x===27&&Zs(o.type)&&(h=o.stateNode,c=null),o=o.child,o!==null))for(Uv(o,c,h),o=o.sibling;o!==null;)Uv(o,c,h),o=o.sibling}function Jm(o,c,h){var x=o.tag;if(x===5||x===6)o=o.stateNode,c?h.insertBefore(o,c):h.appendChild(o);else if(x!==4&&(x===27&&Zs(o.type)&&(h=o.stateNode),o=o.child,o!==null))for(Jm(o,c,h),o=o.sibling;o!==null;)Jm(o,c,h),o=o.sibling}function xE(o){var c=o.stateNode,h=o.memoizedProps;try{for(var x=o.type,j=c.attributes;j.length;)c.removeAttributeNode(j[0]);Hn(c,x,h),c[tr]=o,c[Er]=h}catch(S){Tt(o,o.return,S)}}var Wa=!1,on=!1,zv=!1,gE=typeof WeakSet=="function"?WeakSet:Set,In=null;function FW(o,c){if(o=o.containerInfo,fb=gp,o=EA(o),Fy(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else e:{h=(h=o.ownerDocument)&&h.defaultView||window;var x=h.getSelection&&h.getSelection();if(x&&x.rangeCount!==0){h=x.anchorNode;var j=x.anchorOffset,S=x.focusNode;x=x.focusOffset;try{h.nodeType,S.nodeType}catch{h=null;break e}var O=0,R=-1,W=-1,re=0,de=0,pe=o,ae=null;t:for(;;){for(var se;pe!==h||j!==0&&pe.nodeType!==3||(R=O+j),pe!==S||x!==0&&pe.nodeType!==3||(W=O+x),pe.nodeType===3&&(O+=pe.nodeValue.length),(se=pe.firstChild)!==null;)ae=pe,pe=se;for(;;){if(pe===o)break t;if(ae===h&&++re===j&&(R=O),ae===S&&++de===x&&(W=O),(se=pe.nextSibling)!==null)break;pe=ae,ae=pe.parentNode}pe=se}h=R===-1||W===-1?null:{start:R,end:W}}else h=null}h=h||{start:0,end:0}}else h=null;for(hb={focusedElem:o,selectionRange:h},gp=!1,In=c;In!==null;)if(c=In,o=c.child,(c.subtreeFlags&1024)!==0&&o!==null)o.return=c,In=o;else for(;In!==null;){switch(c=In,S=c.alternate,o=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&S!==null){o=void 0,h=c,j=S.memoizedProps,S=S.memoizedState,x=h.stateNode;try{var Ke=Xo(h.type,j,h.elementType===h.type);o=x.getSnapshotBeforeUpdate(Ke,S),x.__reactInternalSnapshotBeforeUpdate=o}catch(qe){Tt(h,h.return,qe)}}break;case 3:if((o&1024)!==0){if(o=c.stateNode.containerInfo,h=o.nodeType,h===9)xb(o);else if(h===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":xb(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=c.sibling,o!==null){o.return=c.return,In=o;break}In=c.return}}function yE(o,c,h){var x=h.flags;switch(h.tag){case 0:case 11:case 15:qs(o,h),x&4&&Vd(5,h);break;case 1:if(qs(o,h),x&4)if(o=h.stateNode,c===null)try{o.componentDidMount()}catch(O){Tt(h,h.return,O)}else{var j=Xo(h.type,c.memoizedProps);c=c.memoizedState;try{o.componentDidUpdate(j,c,o.__reactInternalSnapshotBeforeUpdate)}catch(O){Tt(h,h.return,O)}}x&64&&fE(h),x&512&&Wd(h,h.return);break;case 3:if(qs(o,h),x&64&&(o=h.updateQueue,o!==null)){if(c=null,h.child!==null)switch(h.child.tag){case 27:case 5:c=h.child.stateNode;break;case 1:c=h.child.stateNode}try{JA(o,c)}catch(O){Tt(h,h.return,O)}}break;case 27:c===null&&x&4&&xE(h);case 26:case 5:qs(o,h),c===null&&x&4&&mE(h),x&512&&Wd(h,h.return);break;case 12:qs(o,h);break;case 13:qs(o,h),x&4&&wE(o,h),x&64&&(o=h.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(h=YW.bind(null,h),hq(o,h))));break;case 22:if(x=h.memoizedState!==null||Wa,!x){c=c!==null&&c.memoizedState!==null||on,j=Wa;var S=on;Wa=x,(on=c)&&!S?Hs(o,h,(h.subtreeFlags&8772)!==0):qs(o,h),Wa=j,on=S}break;case 30:break;default:qs(o,h)}}function vE(o){var c=o.alternate;c!==null&&(o.alternate=null,vE(c)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(c=o.stateNode,c!==null&&wy(c)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Ft=null,Or=!1;function qa(o,c,h){for(h=h.child;h!==null;)bE(o,c,h),h=h.sibling}function bE(o,c,h){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(ye,h)}catch{}switch(h.tag){case 26:on||aa(h,c),qa(o,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:on||aa(h,c);var x=Ft,j=Or;Zs(h.type)&&(Ft=h.stateNode,Or=!1),qa(o,c,h),Jd(h.stateNode),Ft=x,Or=j;break;case 5:on||aa(h,c);case 6:if(x=Ft,j=Or,Ft=null,qa(o,c,h),Ft=x,Or=j,Ft!==null)if(Or)try{(Ft.nodeType===9?Ft.body:Ft.nodeName==="HTML"?Ft.ownerDocument.body:Ft).removeChild(h.stateNode)}catch(S){Tt(h,c,S)}else try{Ft.removeChild(h.stateNode)}catch(S){Tt(h,c,S)}break;case 18:Ft!==null&&(Or?(o=Ft,l5(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,h.stateNode),lf(o)):l5(Ft,h.stateNode));break;case 4:x=Ft,j=Or,Ft=h.stateNode.containerInfo,Or=!0,qa(o,c,h),Ft=x,Or=j;break;case 0:case 11:case 14:case 15:on||Ws(2,h,c),on||Ws(4,h,c),qa(o,c,h);break;case 1:on||(aa(h,c),x=h.stateNode,typeof x.componentWillUnmount=="function"&&hE(h,c,x)),qa(o,c,h);break;case 21:qa(o,c,h);break;case 22:on=(x=on)||h.memoizedState!==null,qa(o,c,h),on=x;break;default:qa(o,c,h)}}function wE(o,c){if(c.memoizedState===null&&(o=c.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{lf(o)}catch(h){Tt(c,c.return,h)}}function UW(o){switch(o.tag){case 13:case 19:var c=o.stateNode;return c===null&&(c=o.stateNode=new gE),c;case 22:return o=o.stateNode,c=o._retryCache,c===null&&(c=o._retryCache=new gE),c;default:throw Error(r(435,o.tag))}}function Vv(o,c){var h=UW(o);c.forEach(function(x){var j=QW.bind(null,o,x);h.has(x)||(h.add(x),x.then(j,j))})}function qr(o,c){var h=c.deletions;if(h!==null)for(var x=0;x<h.length;x++){var j=h[x],S=o,O=c,R=O;e:for(;R!==null;){switch(R.tag){case 27:if(Zs(R.type)){Ft=R.stateNode,Or=!1;break e}break;case 5:Ft=R.stateNode,Or=!1;break e;case 3:case 4:Ft=R.stateNode.containerInfo,Or=!0;break e}R=R.return}if(Ft===null)throw Error(r(160));bE(S,O,j),Ft=null,Or=!1,S=j.alternate,S!==null&&(S.return=null),j.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)jE(c,o),c=c.sibling}var Pi=null;function jE(o,c){var h=o.alternate,x=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:qr(c,o),Hr(o),x&4&&(Ws(3,o,o.return),Vd(3,o),Ws(5,o,o.return));break;case 1:qr(c,o),Hr(o),x&512&&(on||h===null||aa(h,h.return)),x&64&&Wa&&(o=o.updateQueue,o!==null&&(x=o.callbacks,x!==null&&(h=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=h===null?x:h.concat(x))));break;case 26:var j=Pi;if(qr(c,o),Hr(o),x&512&&(on||h===null||aa(h,h.return)),x&4){var S=h!==null?h.memoizedState:null;if(x=o.memoizedState,h===null)if(x===null)if(o.stateNode===null){e:{x=o.type,h=o.memoizedProps,j=j.ownerDocument||j;t:switch(x){case"title":S=j.getElementsByTagName("title")[0],(!S||S[md]||S[tr]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=j.createElement(x),j.head.insertBefore(S,j.querySelector("head > title"))),Hn(S,x,h),S[tr]=o,Rn(S),x=S;break e;case"link":var O=x5("link","href",j).get(x+(h.href||""));if(O){for(var R=0;R<O.length;R++)if(S=O[R],S.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&S.getAttribute("rel")===(h.rel==null?null:h.rel)&&S.getAttribute("title")===(h.title==null?null:h.title)&&S.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){O.splice(R,1);break t}}S=j.createElement(x),Hn(S,x,h),j.head.appendChild(S);break;case"meta":if(O=x5("meta","content",j).get(x+(h.content||""))){for(R=0;R<O.length;R++)if(S=O[R],S.getAttribute("content")===(h.content==null?null:""+h.content)&&S.getAttribute("name")===(h.name==null?null:h.name)&&S.getAttribute("property")===(h.property==null?null:h.property)&&S.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&S.getAttribute("charset")===(h.charSet==null?null:h.charSet)){O.splice(R,1);break t}}S=j.createElement(x),Hn(S,x,h),j.head.appendChild(S);break;default:throw Error(r(468,x))}S[tr]=o,Rn(S),x=S}o.stateNode=x}else g5(j,o.type,o.stateNode);else o.stateNode=p5(j,x,o.memoizedProps);else S!==x?(S===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):S.count--,x===null?g5(j,o.type,o.stateNode):p5(j,x,o.memoizedProps)):x===null&&o.stateNode!==null&&Bv(o,o.memoizedProps,h.memoizedProps)}break;case 27:qr(c,o),Hr(o),x&512&&(on||h===null||aa(h,h.return)),h!==null&&x&4&&Bv(o,o.memoizedProps,h.memoizedProps);break;case 5:if(qr(c,o),Hr(o),x&512&&(on||h===null||aa(h,h.return)),o.flags&32){j=o.stateNode;try{dc(j,"")}catch(se){Tt(o,o.return,se)}}x&4&&o.stateNode!=null&&(j=o.memoizedProps,Bv(o,j,h!==null?h.memoizedProps:j)),x&1024&&(zv=!0);break;case 6:if(qr(c,o),Hr(o),x&4){if(o.stateNode===null)throw Error(r(162));x=o.memoizedProps,h=o.stateNode;try{h.nodeValue=x}catch(se){Tt(o,o.return,se)}}break;case 3:if(mp=null,j=Pi,Pi=fp(c.containerInfo),qr(c,o),Pi=j,Hr(o),x&4&&h!==null&&h.memoizedState.isDehydrated)try{lf(c.containerInfo)}catch(se){Tt(o,o.return,se)}zv&&(zv=!1,NE(o));break;case 4:x=Pi,Pi=fp(o.stateNode.containerInfo),qr(c,o),Hr(o),Pi=x;break;case 12:qr(c,o),Hr(o);break;case 13:qr(c,o),Hr(o),o.child.flags&8192&&o.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Yv=Qe()),x&4&&(x=o.updateQueue,x!==null&&(o.updateQueue=null,Vv(o,x)));break;case 22:j=o.memoizedState!==null;var W=h!==null&&h.memoizedState!==null,re=Wa,de=on;if(Wa=re||j,on=de||W,qr(c,o),on=de,Wa=re,Hr(o),x&8192)e:for(c=o.stateNode,c._visibility=j?c._visibility&-2:c._visibility|1,j&&(h===null||W||Wa||on||Zo(o)),h=null,c=o;;){if(c.tag===5||c.tag===26){if(h===null){W=h=c;try{if(S=W.stateNode,j)O=S.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{R=W.stateNode;var pe=W.memoizedProps.style,ae=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;R.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(se){Tt(W,W.return,se)}}}else if(c.tag===6){if(h===null){W=c;try{W.stateNode.nodeValue=j?"":W.memoizedProps}catch(se){Tt(W,W.return,se)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===o)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break e;for(;c.sibling===null;){if(c.return===null||c.return===o)break e;h===c&&(h=null),c=c.return}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling}x&4&&(x=o.updateQueue,x!==null&&(h=x.retryQueue,h!==null&&(x.retryQueue=null,Vv(o,h))));break;case 19:qr(c,o),Hr(o),x&4&&(x=o.updateQueue,x!==null&&(o.updateQueue=null,Vv(o,x)));break;case 30:break;case 21:break;default:qr(c,o),Hr(o)}}function Hr(o){var c=o.flags;if(c&2){try{for(var h,x=o.return;x!==null;){if(pE(x)){h=x;break}x=x.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var j=h.stateNode,S=Fv(o);Jm(o,S,j);break;case 5:var O=h.stateNode;h.flags&32&&(dc(O,""),h.flags&=-33);var R=Fv(o);Jm(o,R,O);break;case 3:case 4:var W=h.stateNode.containerInfo,re=Fv(o);Uv(o,re,W);break;default:throw Error(r(161))}}catch(de){Tt(o,o.return,de)}o.flags&=-3}c&4096&&(o.flags&=-4097)}function NE(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var c=o;NE(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),o=o.sibling}}function qs(o,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)yE(o,c.alternate,c),c=c.sibling}function Zo(o){for(o=o.child;o!==null;){var c=o;switch(c.tag){case 0:case 11:case 14:case 15:Ws(4,c,c.return),Zo(c);break;case 1:aa(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&hE(c,c.return,h),Zo(c);break;case 27:Jd(c.stateNode);case 26:case 5:aa(c,c.return),Zo(c);break;case 22:c.memoizedState===null&&Zo(c);break;case 30:Zo(c);break;default:Zo(c)}o=o.sibling}}function Hs(o,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var x=c.alternate,j=o,S=c,O=S.flags;switch(S.tag){case 0:case 11:case 15:Hs(j,S,h),Vd(4,S);break;case 1:if(Hs(j,S,h),x=S,j=x.stateNode,typeof j.componentDidMount=="function")try{j.componentDidMount()}catch(re){Tt(x,x.return,re)}if(x=S,j=x.updateQueue,j!==null){var R=x.stateNode;try{var W=j.shared.hiddenCallbacks;if(W!==null)for(j.shared.hiddenCallbacks=null,j=0;j<W.length;j++)ZA(W[j],R)}catch(re){Tt(x,x.return,re)}}h&&O&64&&fE(S),Wd(S,S.return);break;case 27:xE(S);case 26:case 5:Hs(j,S,h),h&&x===null&&O&4&&mE(S),Wd(S,S.return);break;case 12:Hs(j,S,h);break;case 13:Hs(j,S,h),h&&O&4&&wE(j,S);break;case 22:S.memoizedState===null&&Hs(j,S,h),Wd(S,S.return);break;case 30:break;default:Hs(j,S,h)}c=c.sibling}}function Wv(o,c){var h=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),o=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(o=c.memoizedState.cachePool.pool),o!==h&&(o!=null&&o.refCount++,h!=null&&Td(h))}function qv(o,c){o=null,c.alternate!==null&&(o=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==o&&(c.refCount++,o!=null&&Td(o))}function sa(o,c,h,x){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)SE(o,c,h,x),c=c.sibling}function SE(o,c,h,x){var j=c.flags;switch(c.tag){case 0:case 11:case 15:sa(o,c,h,x),j&2048&&Vd(9,c);break;case 1:sa(o,c,h,x);break;case 3:sa(o,c,h,x),j&2048&&(o=null,c.alternate!==null&&(o=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==o&&(c.refCount++,o!=null&&Td(o)));break;case 12:if(j&2048){sa(o,c,h,x),o=c.stateNode;try{var S=c.memoizedProps,O=S.id,R=S.onPostCommit;typeof R=="function"&&R(O,c.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(W){Tt(c,c.return,W)}}else sa(o,c,h,x);break;case 13:sa(o,c,h,x);break;case 23:break;case 22:S=c.stateNode,O=c.alternate,c.memoizedState!==null?S._visibility&2?sa(o,c,h,x):qd(o,c):S._visibility&2?sa(o,c,h,x):(S._visibility|=2,_c(o,c,h,x,(c.subtreeFlags&10256)!==0)),j&2048&&Wv(O,c);break;case 24:sa(o,c,h,x),j&2048&&qv(c.alternate,c);break;default:sa(o,c,h,x)}}function _c(o,c,h,x,j){for(j=j&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var S=o,O=c,R=h,W=x,re=O.flags;switch(O.tag){case 0:case 11:case 15:_c(S,O,R,W,j),Vd(8,O);break;case 23:break;case 22:var de=O.stateNode;O.memoizedState!==null?de._visibility&2?_c(S,O,R,W,j):qd(S,O):(de._visibility|=2,_c(S,O,R,W,j)),j&&re&2048&&Wv(O.alternate,O);break;case 24:_c(S,O,R,W,j),j&&re&2048&&qv(O.alternate,O);break;default:_c(S,O,R,W,j)}c=c.sibling}}function qd(o,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=o,x=c,j=x.flags;switch(x.tag){case 22:qd(h,x),j&2048&&Wv(x.alternate,x);break;case 24:qd(h,x),j&2048&&qv(x.alternate,x);break;default:qd(h,x)}c=c.sibling}}var Hd=8192;function Oc(o){if(o.subtreeFlags&Hd)for(o=o.child;o!==null;)kE(o),o=o.sibling}function kE(o){switch(o.tag){case 26:Oc(o),o.flags&Hd&&o.memoizedState!==null&&Aq(Pi,o.memoizedState,o.memoizedProps);break;case 5:Oc(o);break;case 3:case 4:var c=Pi;Pi=fp(o.stateNode.containerInfo),Oc(o),Pi=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=Hd,Hd=16777216,Oc(o),Hd=c):Oc(o));break;default:Oc(o)}}function AE(o){var c=o.alternate;if(c!==null&&(o=c.child,o!==null)){c.child=null;do c=o.sibling,o.sibling=null,o=c;while(o!==null)}}function Gd(o){var c=o.deletions;if((o.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var x=c[h];In=x,EE(x,o)}AE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)CE(o),o=o.sibling}function CE(o){switch(o.tag){case 0:case 11:case 15:Gd(o),o.flags&2048&&Ws(9,o,o.return);break;case 3:Gd(o);break;case 12:Gd(o);break;case 22:var c=o.stateNode;o.memoizedState!==null&&c._visibility&2&&(o.return===null||o.return.tag!==13)?(c._visibility&=-3,ep(o)):Gd(o);break;default:Gd(o)}}function ep(o){var c=o.deletions;if((o.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var x=c[h];In=x,EE(x,o)}AE(o)}for(o=o.child;o!==null;){switch(c=o,c.tag){case 0:case 11:case 15:Ws(8,c,c.return),ep(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,ep(c));break;default:ep(c)}o=o.sibling}}function EE(o,c){for(;In!==null;){var h=In;switch(h.tag){case 0:case 11:case 15:Ws(8,h,c);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var x=h.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Td(h.memoizedState.cache)}if(x=h.child,x!==null)x.return=h,In=x;else e:for(h=o;In!==null;){x=In;var j=x.sibling,S=x.return;if(vE(x),x===h){In=null;break e}if(j!==null){j.return=S,In=j;break e}In=S}}}var zW={getCacheForType:function(o){var c=nr(vn),h=c.data.get(o);return h===void 0&&(h=o(),c.data.set(o,h)),h}},VW=typeof WeakMap=="function"?WeakMap:Map,wt=0,Pt=null,ot=null,mt=0,jt=0,Gr=null,Gs=!1,Pc=!1,Hv=!1,Ha=0,Jt=0,Ks=0,Jo=0,Gv=0,mi=0,Mc=0,Kd=null,Pr=null,Kv=!1,Yv=0,tp=1/0,np=null,Ys=null,qn=0,Qs=null,Rc=null,Dc=0,Qv=0,Xv=null,TE=null,Yd=0,Zv=null;function Kr(){if((wt&2)!==0&&mt!==0)return mt&-mt;if(B.T!==null){var o=jc;return o!==0?o:ab()}return qk()}function _E(){mi===0&&(mi=(mt&536870912)===0||vt?Ms():536870912);var o=hi.current;return o!==null&&(o.flags|=32),mi}function Yr(o,c,h){(o===Pt&&(jt===2||jt===9)||o.cancelPendingCommit!==null)&&(Ic(o,0),Xs(o,mt,mi,!1)),Rs(o,h),((wt&2)===0||o!==Pt)&&(o===Pt&&((wt&2)===0&&(Jo|=h),Jt===4&&Xs(o,mt,mi,!1)),oa(o))}function OE(o,c,h){if((wt&6)!==0)throw Error(r(327));var x=!h&&(c&124)===0&&(c&o.expiredLanes)===0||si(o,c),j=x?HW(o,c):tb(o,c,!0),S=x;do{if(j===0){Pc&&!x&&Xs(o,c,0,!1);break}else{if(h=o.current.alternate,S&&!WW(h)){j=tb(o,c,!1),S=!1;continue}if(j===2){if(S=c,o.errorRecoveryDisabledLanes&S)var O=0;else O=o.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){c=O;e:{var R=o;j=Kd;var W=R.current.memoizedState.isDehydrated;if(W&&(Ic(R,O).flags|=256),O=tb(R,O,!1),O!==2){if(Hv&&!W){R.errorRecoveryDisabledLanes|=S,Jo|=S,j=4;break e}S=Pr,Pr=j,S!==null&&(Pr===null?Pr=S:Pr.push.apply(Pr,S))}j=O}if(S=!1,j!==2)continue}}if(j===1){Ic(o,0),Xs(o,c,0,!0);break}e:{switch(x=o,S=j,S){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:Xs(x,c,mi,!Gs);break e;case 2:Pr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(j=Yv+300-Qe(),10<j)){if(Xs(x,c,mi,!Gs),dn(x,0,!0)!==0)break e;x.timeoutHandle=s5(PE.bind(null,x,h,Pr,np,Kv,c,mi,Jo,Mc,Gs,S,2,-0,0),j);break e}PE(x,h,Pr,np,Kv,c,mi,Jo,Mc,Gs,S,0,-0,0)}}break}while(!0);oa(o)}function PE(o,c,h,x,j,S,O,R,W,re,de,pe,ae,se){if(o.timeoutHandle=-1,pe=c.subtreeFlags,(pe&8192||(pe&16785408)===16785408)&&(nf={stylesheets:null,count:0,unsuspend:kq},kE(c),pe=Cq(),pe!==null)){o.cancelPendingCommit=pe(BE.bind(null,o,c,S,h,x,j,O,R,W,de,1,ae,se)),Xs(o,S,O,!re);return}BE(o,c,S,h,x,j,O,R,W)}function WW(o){for(var c=o;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var x=0;x<h.length;x++){var j=h[x],S=j.getSnapshot;j=j.value;try{if(!Vr(S(),j))return!1}catch{return!1}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else{if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Xs(o,c,h,x){c&=~Gv,c&=~Jo,o.suspendedLanes|=c,o.pingedLanes&=~c,x&&(o.warmLanes|=c),x=o.expirationTimes;for(var j=c;0<j;){var S=31-We(j),O=1<<S;x[S]=-1,j&=~O}h!==0&&hm(o,h,c)}function rp(){return(wt&6)===0?(Qd(0),!1):!0}function Jv(){if(ot!==null){if(jt===0)var o=ot.return;else o=ot,$a=Go=null,xv(o),Ec=null,Fd=0,o=ot;for(;o!==null;)dE(o.alternate,o),o=o.return;ot=null}}function Ic(o,c){var h=o.timeoutHandle;h!==-1&&(o.timeoutHandle=-1,lq(h)),h=o.cancelPendingCommit,h!==null&&(o.cancelPendingCommit=null,h()),Jv(),Pt=o,ot=h=Da(o.current,null),mt=c,jt=0,Gr=null,Gs=!1,Pc=si(o,c),Hv=!1,Mc=mi=Gv=Jo=Ks=Jt=0,Pr=Kd=null,Kv=!1,(c&8)!==0&&(c|=c&32);var x=o.entangledLanes;if(x!==0)for(o=o.entanglements,x&=c;0<x;){var j=31-We(x),S=1<<j;c|=o[j],x&=~S}return Ha=c,km(),h}function ME(o,c){nt=null,B.H=Wm,c===Od||c===Rm?(c=QA(),jt=3):c===GA?(c=QA(),jt=4):jt=c===XC?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Gr=c,ot===null&&(Jt=1,Ym(o,ci(c,o.current)))}function RE(){var o=B.H;return B.H=Wm,o===null?Wm:o}function DE(){var o=B.A;return B.A=zW,o}function eb(){Jt=4,Gs||(mt&4194048)!==mt&&hi.current!==null||(Pc=!0),(Ks&134217727)===0&&(Jo&134217727)===0||Pt===null||Xs(Pt,mt,mi,!1)}function tb(o,c,h){var x=wt;wt|=2;var j=RE(),S=DE();(Pt!==o||mt!==c)&&(np=null,Ic(o,c)),c=!1;var O=Jt;e:do try{if(jt!==0&&ot!==null){var R=ot,W=Gr;switch(jt){case 8:Jv(),O=6;break e;case 3:case 2:case 9:case 6:hi.current===null&&(c=!0);var re=jt;if(jt=0,Gr=null,Lc(o,R,W,re),h&&Pc){O=0;break e}break;default:re=jt,jt=0,Gr=null,Lc(o,R,W,re)}}qW(),O=Jt;break}catch(de){ME(o,de)}while(!0);return c&&o.shellSuspendCounter++,$a=Go=null,wt=x,B.H=j,B.A=S,ot===null&&(Pt=null,mt=0,km()),O}function qW(){for(;ot!==null;)IE(ot)}function HW(o,c){var h=wt;wt|=2;var x=RE(),j=DE();Pt!==o||mt!==c?(np=null,tp=Qe()+500,Ic(o,c)):Pc=si(o,c);e:do try{if(jt!==0&&ot!==null){c=ot;var S=Gr;t:switch(jt){case 1:jt=0,Gr=null,Lc(o,c,S,1);break;case 2:case 9:if(KA(S)){jt=0,Gr=null,LE(c);break}c=function(){jt!==2&&jt!==9||Pt!==o||(jt=7),oa(o)},S.then(c,c);break e;case 3:jt=7;break e;case 4:jt=5;break e;case 7:KA(S)?(jt=0,Gr=null,LE(c)):(jt=0,Gr=null,Lc(o,c,S,7));break;case 5:var O=null;switch(ot.tag){case 26:O=ot.memoizedState;case 5:case 27:var R=ot;if(!O||y5(O)){jt=0,Gr=null;var W=R.sibling;if(W!==null)ot=W;else{var re=R.return;re!==null?(ot=re,ip(re)):ot=null}break t}}jt=0,Gr=null,Lc(o,c,S,5);break;case 6:jt=0,Gr=null,Lc(o,c,S,6);break;case 8:Jv(),Jt=6;break e;default:throw Error(r(462))}}GW();break}catch(de){ME(o,de)}while(!0);return $a=Go=null,B.H=x,B.A=j,wt=h,ot!==null?0:(Pt=null,mt=0,km(),Jt)}function GW(){for(;ot!==null&&!je();)IE(ot)}function IE(o){var c=cE(o.alternate,o,Ha);o.memoizedProps=o.pendingProps,c===null?ip(o):ot=c}function LE(o){var c=o,h=c.alternate;switch(c.tag){case 15:case 0:c=rE(h,c,c.pendingProps,c.type,void 0,mt);break;case 11:c=rE(h,c,c.pendingProps,c.type.render,c.ref,mt);break;case 5:xv(c);default:dE(h,c),c=ot=$A(c,Ha),c=cE(h,c,Ha)}o.memoizedProps=o.pendingProps,c===null?ip(o):ot=c}function Lc(o,c,h,x){$a=Go=null,xv(c),Ec=null,Fd=0;var j=c.return;try{if(IW(o,j,c,h,mt)){Jt=1,Ym(o,ci(h,o.current)),ot=null;return}}catch(S){if(j!==null)throw ot=j,S;Jt=1,Ym(o,ci(h,o.current)),ot=null;return}c.flags&32768?(vt||x===1?o=!0:Pc||(mt&536870912)!==0?o=!1:(Gs=o=!0,(x===2||x===9||x===3||x===6)&&(x=hi.current,x!==null&&x.tag===13&&(x.flags|=16384))),$E(c,o)):ip(c)}function ip(o){var c=o;do{if((c.flags&32768)!==0){$E(c,Gs);return}o=c.return;var h=$W(c.alternate,c,Ha);if(h!==null){ot=h;return}if(c=c.sibling,c!==null){ot=c;return}ot=c=o}while(c!==null);Jt===0&&(Jt=5)}function $E(o,c){do{var h=BW(o.alternate,o);if(h!==null){h.flags&=32767,ot=h;return}if(h=o.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(o=o.sibling,o!==null)){ot=o;return}ot=o=h}while(o!==null);Jt=6,ot=null}function BE(o,c,h,x,j,S,O,R,W){o.cancelPendingCommit=null;do ap();while(qn!==0);if((wt&6)!==0)throw Error(r(327));if(c!==null){if(c===o.current)throw Error(r(177));if(S=c.lanes|c.childLanes,S|=qy,fm(o,h,S,O,R,W),o===Pt&&(ot=Pt=null,mt=0),Rc=c,Qs=o,Dc=h,Qv=S,Xv=j,TE=x,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,XW(q,function(){return WE(),null})):(o.callbackNode=null,o.callbackPriority=0),x=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||x){x=B.T,B.T=null,j=K.p,K.p=2,O=wt,wt|=4;try{FW(o,c,h)}finally{wt=O,K.p=j,B.T=x}}qn=1,FE(),UE(),zE()}}function FE(){if(qn===1){qn=0;var o=Qs,c=Rc,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=B.T,B.T=null;var x=K.p;K.p=2;var j=wt;wt|=4;try{jE(c,o);var S=hb,O=EA(o.containerInfo),R=S.focusedElem,W=S.selectionRange;if(O!==R&&R&&R.ownerDocument&&CA(R.ownerDocument.documentElement,R)){if(W!==null&&Fy(R)){var re=W.start,de=W.end;if(de===void 0&&(de=re),"selectionStart"in R)R.selectionStart=re,R.selectionEnd=Math.min(de,R.value.length);else{var pe=R.ownerDocument||document,ae=pe&&pe.defaultView||window;if(ae.getSelection){var se=ae.getSelection(),Ke=R.textContent.length,qe=Math.min(W.start,Ke),Ct=W.end===void 0?qe:Math.min(W.end,Ke);!se.extend&&qe>Ct&&(O=Ct,Ct=qe,qe=O);var Z=AA(R,qe),Y=AA(R,Ct);if(Z&&Y&&(se.rangeCount!==1||se.anchorNode!==Z.node||se.anchorOffset!==Z.offset||se.focusNode!==Y.node||se.focusOffset!==Y.offset)){var ne=pe.createRange();ne.setStart(Z.node,Z.offset),se.removeAllRanges(),qe>Ct?(se.addRange(ne),se.extend(Y.node,Y.offset)):(ne.setEnd(Y.node,Y.offset),se.addRange(ne))}}}}for(pe=[],se=R;se=se.parentNode;)se.nodeType===1&&pe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<pe.length;R++){var me=pe[R];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}gp=!!fb,hb=fb=null}finally{wt=j,K.p=x,B.T=h}}o.current=c,qn=2}}function UE(){if(qn===2){qn=0;var o=Qs,c=Rc,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=B.T,B.T=null;var x=K.p;K.p=2;var j=wt;wt|=4;try{yE(o,c.alternate,c)}finally{wt=j,K.p=x,B.T=h}}qn=3}}function zE(){if(qn===4||qn===3){qn=0,He();var o=Qs,c=Rc,h=Dc,x=TE;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?qn=5:(qn=0,Rc=Qs=null,VE(o,o.pendingLanes));var j=o.pendingLanes;if(j===0&&(Ys=null),hd(h),c=c.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(ye,c,void 0,(c.current.flags&128)===128)}catch{}if(x!==null){c=B.T,j=K.p,K.p=2,B.T=null;try{for(var S=o.onRecoverableError,O=0;O<x.length;O++){var R=x[O];S(R.value,{componentStack:R.stack})}}finally{B.T=c,K.p=j}}(Dc&3)!==0&&ap(),oa(o),j=o.pendingLanes,(h&4194090)!==0&&(j&42)!==0?o===Zv?Yd++:(Yd=0,Zv=o):Yd=0,Qd(0)}}function VE(o,c){(o.pooledCacheLanes&=c)===0&&(c=o.pooledCache,c!=null&&(o.pooledCache=null,Td(c)))}function ap(o){return FE(),UE(),zE(),WE()}function WE(){if(qn!==5)return!1;var o=Qs,c=Qv;Qv=0;var h=hd(Dc),x=B.T,j=K.p;try{K.p=32>h?32:h,B.T=null,h=Xv,Xv=null;var S=Qs,O=Dc;if(qn=0,Rc=Qs=null,Dc=0,(wt&6)!==0)throw Error(r(331));var R=wt;if(wt|=4,CE(S.current),SE(S,S.current,O,h),wt=R,Qd(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(ye,S)}catch{}return!0}finally{K.p=j,B.T=x,VE(o,c)}}function qE(o,c,h){c=ci(h,c),c=_v(o.stateNode,c,2),o=Fs(o,c,2),o!==null&&(Rs(o,2),oa(o))}function Tt(o,c,h){if(o.tag===3)qE(o,o,h);else for(;c!==null;){if(c.tag===3){qE(c,o,h);break}else if(c.tag===1){var x=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(Ys===null||!Ys.has(x))){o=ci(h,o),h=YC(2),x=Fs(c,h,2),x!==null&&(QC(h,x,c,o),Rs(x,2),oa(x));break}}c=c.return}}function nb(o,c,h){var x=o.pingCache;if(x===null){x=o.pingCache=new VW;var j=new Set;x.set(c,j)}else j=x.get(c),j===void 0&&(j=new Set,x.set(c,j));j.has(h)||(Hv=!0,j.add(h),o=KW.bind(null,o,c,h),c.then(o,o))}function KW(o,c,h){var x=o.pingCache;x!==null&&x.delete(c),o.pingedLanes|=o.suspendedLanes&h,o.warmLanes&=~h,Pt===o&&(mt&h)===h&&(Jt===4||Jt===3&&(mt&62914560)===mt&&300>Qe()-Yv?(wt&2)===0&&Ic(o,0):Gv|=h,Mc===mt&&(Mc=0)),oa(o)}function HE(o,c){c===0&&(c=dm()),o=yc(o,c),o!==null&&(Rs(o,c),oa(o))}function YW(o){var c=o.memoizedState,h=0;c!==null&&(h=c.retryLane),HE(o,h)}function QW(o,c){var h=0;switch(o.tag){case 13:var x=o.stateNode,j=o.memoizedState;j!==null&&(h=j.retryLane);break;case 19:x=o.stateNode;break;case 22:x=o.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(c),HE(o,h)}function XW(o,c){return F(o,c)}var sp=null,$c=null,rb=!1,op=!1,ib=!1,el=0;function oa(o){o!==$c&&o.next===null&&($c===null?sp=$c=o:$c=$c.next=o),op=!0,rb||(rb=!0,JW())}function Qd(o,c){if(!ib&&op){ib=!0;do for(var h=!1,x=sp;x!==null;){if(o!==0){var j=x.pendingLanes;if(j===0)var S=0;else{var O=x.suspendedLanes,R=x.pingedLanes;S=(1<<31-We(42|o)+1)-1,S&=j&~(O&~R),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(h=!0,QE(x,S))}else S=mt,S=dn(x,x===Pt?S:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(S&3)===0||si(x,S)||(h=!0,QE(x,S));x=x.next}while(h);ib=!1}}function ZW(){GE()}function GE(){op=rb=!1;var o=0;el!==0&&(oq()&&(o=el),el=0);for(var c=Qe(),h=null,x=sp;x!==null;){var j=x.next,S=KE(x,c);S===0?(x.next=null,h===null?sp=j:h.next=j,j===null&&($c=h)):(h=x,(o!==0||(S&3)!==0)&&(op=!0)),x=j}Qd(o)}function KE(o,c){for(var h=o.suspendedLanes,x=o.pingedLanes,j=o.expirationTimes,S=o.pendingLanes&-62914561;0<S;){var O=31-We(S),R=1<<O,W=j[O];W===-1?((R&h)===0||(R&x)!==0)&&(j[O]=dd(R,c)):W<=c&&(o.expiredLanes|=R),S&=~R}if(c=Pt,h=mt,h=dn(o,o===c?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),x=o.callbackNode,h===0||o===c&&(jt===2||jt===9)||o.cancelPendingCommit!==null)return x!==null&&x!==null&&xe(x),o.callbackNode=null,o.callbackPriority=0;if((h&3)===0||si(o,h)){if(c=h&-h,c===o.callbackPriority)return c;switch(x!==null&&xe(x),hd(h)){case 2:case 8:h=un;break;case 32:h=q;break;case 268435456:h=oe;break;default:h=q}return x=YE.bind(null,o),h=F(h,x),o.callbackPriority=c,o.callbackNode=h,c}return x!==null&&x!==null&&xe(x),o.callbackPriority=2,o.callbackNode=null,2}function YE(o,c){if(qn!==0&&qn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var h=o.callbackNode;if(ap()&&o.callbackNode!==h)return null;var x=mt;return x=dn(o,o===Pt?x:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),x===0?null:(OE(o,x,c),KE(o,Qe()),o.callbackNode!=null&&o.callbackNode===h?YE.bind(null,o):null)}function QE(o,c){if(ap())return null;OE(o,c,!0)}function JW(){cq(function(){(wt&6)!==0?F(hr,ZW):GE()})}function ab(){return el===0&&(el=Ms()),el}function XE(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:ym(""+o)}function ZE(o,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,o.id&&h.setAttribute("form",o.id),c.parentNode.insertBefore(h,c),o=new FormData(o),h.parentNode.removeChild(h),o}function eq(o,c,h,x,j){if(c==="submit"&&h&&h.stateNode===j){var S=XE((j[Er]||null).action),O=x.submitter;O&&(c=(c=O[Er]||null)?XE(c.formAction):O.getAttribute("formAction"),c!==null&&(S=c,O=null));var R=new jm("action","action",null,x,j);o.push({event:R,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(el!==0){var W=O?ZE(j,O):new FormData(j);kv(h,{pending:!0,data:W,method:j.method,action:S},null,W)}}else typeof S=="function"&&(R.preventDefault(),W=O?ZE(j,O):new FormData(j),kv(h,{pending:!0,data:W,method:j.method,action:S},S,W))},currentTarget:j}]})}}for(var sb=0;sb<Wy.length;sb++){var ob=Wy[sb],tq=ob.toLowerCase(),nq=ob[0].toUpperCase()+ob.slice(1);Oi(tq,"on"+nq)}Oi(OA,"onAnimationEnd"),Oi(PA,"onAnimationIteration"),Oi(MA,"onAnimationStart"),Oi("dblclick","onDoubleClick"),Oi("focusin","onFocus"),Oi("focusout","onBlur"),Oi(vW,"onTransitionRun"),Oi(bW,"onTransitionStart"),Oi(wW,"onTransitionCancel"),Oi(RA,"onTransitionEnd"),lc("onMouseEnter",["mouseout","mouseover"]),lc("onMouseLeave",["mouseout","mouseover"]),lc("onPointerEnter",["pointerout","pointerover"]),lc("onPointerLeave",["pointerout","pointerover"]),$o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$o("onSelect","focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange".split(" ")),$o("onBeforeInput",["compositionend","keypress","textInput","paste"]),$o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xd="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(" "),rq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xd));function JE(o,c){c=(c&4)!==0;for(var h=0;h<o.length;h++){var x=o[h],j=x.event;x=x.listeners;e:{var S=void 0;if(c)for(var O=x.length-1;0<=O;O--){var R=x[O],W=R.instance,re=R.currentTarget;if(R=R.listener,W!==S&&j.isPropagationStopped())break e;S=R,j.currentTarget=re;try{S(j)}catch(de){Km(de)}j.currentTarget=null,S=W}else for(O=0;O<x.length;O++){if(R=x[O],W=R.instance,re=R.currentTarget,R=R.listener,W!==S&&j.isPropagationStopped())break e;S=R,j.currentTarget=re;try{S(j)}catch(de){Km(de)}j.currentTarget=null,S=W}}}}function lt(o,c){var h=c[by];h===void 0&&(h=c[by]=new Set);var x=o+"__bubble";h.has(x)||(e5(c,o,2,!1),h.add(x))}function lb(o,c,h){var x=0;c&&(x|=4),e5(h,o,x,c)}var lp="_reactListening"+Math.random().toString(36).slice(2);
vendor: 9,654 bytes, lines 8-9
8function cb(o){if(!o[lp]){o[lp]=!0,Gk.forEach(function(h){h!=="selectionchange"&&(rq.has(h)||lb(h,!1,o),lb(h,!0,o))});var c=o.nodeType===9?o:o.ownerDocument;c===null||c[lp]||(c[lp]=!0,lb("selectionchange",!1,c))}}function e5(o,c,h,x){switch(S5(c)){case 2:var j=_q;break;case 8:j=Oq;break;default:j=Nb}h=j.bind(null,c,h,o),j=void 0,!Oy||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(j=!0),x?j!==void 0?o.addEventListener(c,h,{capture:!0,passive:j}):o.addEventListener(c,h,!0):j!==void 0?o.addEventListener(c,h,{passive:j}):o.addEventListener(c,h,!1)}function ub(o,c,h,x,j){var S=x;if((c&1)===0&&(c&2)===0&&x!==null)e:for(;;){if(x===null)return;var O=x.tag;if(O===3||O===4){var R=x.stateNode.containerInfo;if(R===j)break;if(O===4)for(O=x.return;O!==null;){var W=O.tag;if((W===3||W===4)&&O.stateNode.containerInfo===j)return;O=O.return}for(;R!==null;){if(O=ac(R),O===null)return;if(W=O.tag,W===5||W===6||W===26||W===27){x=S=O;continue e}R=R.parentNode}}x=x.return}oA(function(){var re=S,de=Ty(h),pe=[];e:{var ae=DA.get(o);if(ae!==void 0){var se=jm,Ke=o;switch(o){case"keypress":if(bm(h)===0)break e;case"keydown":case"keyup":se=XV;break;case"focusin":Ke="focus",se=Dy;break;case"focusout":Ke="blur",se=Dy;break;case"beforeblur":case"afterblur":se=Dy;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=uA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=BV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=eW;break;case OA:case PA:case MA:se=zV;break;case RA:se=nW;break;case"scroll":case"scrollend":se=LV;break;case"wheel":se=iW;break;case"copy":case"cut":case"paste":se=WV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=fA;break;case"toggle":case"beforetoggle":se=sW}var qe=(c&4)!==0,Ct=!qe&&(o==="scroll"||o==="scrollend"),Z=qe?ae!==null?ae+"Capture":null:ae;qe=[];for(var Y=re,ne;Y!==null;){var me=Y;if(ne=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||ne===null||Z===null||(me=xd(Y,Z),me!=null&&qe.push(Zd(Y,me,ne))),Ct)break;Y=Y.return}0<qe.length&&(ae=new se(ae,Ke,null,h,de),pe.push({event:ae,listeners:qe}))}}if((c&7)===0){e:{if(ae=o==="mouseover"||o==="pointerover",se=o==="mouseout"||o==="pointerout",ae&&h!==Ey&&(Ke=h.relatedTarget||h.fromElement)&&(ac(Ke)||Ke[ic]))break e;if((se||ae)&&(ae=de.window===de?de:(ae=de.ownerDocument)?ae.defaultView||ae.parentWindow:window,se?(Ke=h.relatedTarget||h.toElement,se=re,Ke=Ke?ac(Ke):null,Ke!==null&&(Ct=s(Ke),qe=Ke.tag,Ke!==Ct||qe!==5&&qe!==27&&qe!==6)&&(Ke=null)):(se=null,Ke=re),se!==Ke)){if(qe=uA,me="onMouseLeave",Z="onMouseEnter",Y="mouse",(o==="pointerout"||o==="pointerover")&&(qe=fA,me="onPointerLeave",Z="onPointerEnter",Y="pointer"),Ct=se==null?ae:pd(se),ne=Ke==null?ae:pd(Ke),ae=new qe(me,Y+"leave",se,h,de),ae.target=Ct,ae.relatedTarget=ne,me=null,ac(de)===re&&(qe=new qe(Z,Y+"enter",Ke,h,de),qe.target=ne,qe.relatedTarget=Ct,me=qe),Ct=me,se&&Ke)t:{for(qe=se,Z=Ke,Y=0,ne=qe;ne;ne=Bc(ne))Y++;for(ne=0,me=Z;me;me=Bc(me))ne++;for(;0<Y-ne;)qe=Bc(qe),Y--;for(;0<ne-Y;)Z=Bc(Z),ne--;for(;Y--;){if(qe===Z||Z!==null&&qe===Z.alternate)break t;qe=Bc(qe),Z=Bc(Z)}qe=null}else qe=null;se!==null&&t5(pe,ae,se,qe,!1),Ke!==null&&Ct!==null&&t5(pe,Ct,Ke,qe,!0)}}e:{if(ae=re?pd(re):window,se=ae.nodeName&&ae.nodeName.toLowerCase(),se==="select"||se==="input"&&ae.type==="file")var Me=bA;else if(yA(ae))if(wA)Me=xW;else{Me=mW;var at=hW}else se=ae.nodeName,!se||se.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?re&&Cy(re.elementType)&&(Me=bA):Me=pW;if(Me&&(Me=Me(o,re))){vA(pe,Me,h,de);break e}at&&at(o,ae,re),o==="focusout"&&re&&ae.type==="number"&&re.memoizedProps.value!=null&&Ay(ae,"number",ae.value)}switch(at=re?pd(re):window,o){case"focusin":(yA(at)||at.contentEditable==="true")&&(pc=at,Uy=re,Sd=null);break;case"focusout":Sd=Uy=pc=null;break;case"mousedown":zy=!0;break;case"contextmenu":case"mouseup":case"dragend":zy=!1,TA(pe,h,de);break;case"selectionchange":if(yW)break;case"keydown":case"keyup":TA(pe,h,de)}var $e;if(Ly)e:{switch(o){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else mc?xA(o,h)&&(Ge="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(Ge="onCompositionStart");Ge&&(hA&&h.locale!=="ko"&&(mc||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&mc&&($e=lA()):(Is=de,Py="value"in Is?Is.value:Is.textContent,mc=!0)),at=cp(re,Ge),0<at.length&&(Ge=new dA(Ge,o,null,h,de),pe.push({event:Ge,listeners:at}),$e?Ge.data=$e:($e=gA(h),$e!==null&&(Ge.data=$e)))),($e=lW?cW(o,h):uW(o,h))&&(Ge=cp(re,"onBeforeInput"),0<Ge.length&&(at=new dA("onBeforeInput","beforeinput",null,h,de),pe.push({event:at,listeners:Ge}),at.data=$e)),eq(pe,o,re,h,de)}JE(pe,c)})}function Zd(o,c,h){return{instance:o,listener:c,currentTarget:h}}function cp(o,c){for(var h=c+"Capture",x=[];o!==null;){var j=o,S=j.stateNode;if(j=j.tag,j!==5&&j!==26&&j!==27||S===null||(j=xd(o,h),j!=null&&x.unshift(Zd(o,j,S)),j=xd(o,c),j!=null&&x.push(Zd(o,j,S))),o.tag===3)return x;o=o.return}return[]}function Bc(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function t5(o,c,h,x,j){for(var S=c._reactName,O=[];h!==null&&h!==x;){var R=h,W=R.alternate,re=R.stateNode;if(R=R.tag,W!==null&&W===x)break;R!==5&&R!==26&&R!==27||re===null||(W=re,j?(re=xd(h,S),re!=null&&O.unshift(Zd(h,re,W))):j||(re=xd(h,S),re!=null&&O.push(Zd(h,re,W)))),h=h.return}O.length!==0&&o.push({event:c,listeners:O})}var iq=/\r\n?/g,aq=/\u0000|\uFFFD/g;function n5(o){return(typeof o=="string"?o:""+o).replace(iq,` 9`).replace(aq,"")}function r5(o,c){return c=n5(c),n5(o)===c}function up(){}function At(o,c,h,x,j,S){switch(h){case"children":typeof x=="string"?c==="body"||c==="textarea"&&x===""||dc(o,x):(typeof x=="number"||typeof x=="bigint")&&c!=="body"&&dc(o,""+x);break;case"className":pm(o,"class",x);break;case"tabIndex":pm(o,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":pm(o,h,x);break;case"style":aA(o,x,S);break;case"data":if(c!=="object"){pm(o,"data",x);break}case"src":case"href":if(x===""&&(c!=="a"||h!=="href")){o.removeAttribute(h);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){o.removeAttribute(h);break}x=ym(""+x),o.setAttribute(h,x);break;case"action":case"formAction":if(typeof x=="function"){o.setAttribute(h,"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 S=="function"&&(h==="formAction"?(c!=="input"&&At(o,c,"name",j.name,j,null),At(o,c,"formEncType",j.formEncType,j,null),At(o,c,"formMethod",j.formMethod,j,null),At(o,c,"formTarget",j.formTarget,j,null)):(At(o,c,"encType",j.encType,j,null),At(o,c,"method",j.method,j,null),At(o,c,"target",j.target,j,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){o.removeAttribute(h);break}x=ym(""+x),o.setAttribute(h,x);break;case"onClick":x!=null&&(o.onclick=up);break;case"onScroll":x!=null&<("scroll",o);break;case"onScrollEnd":x!=null&<("scrollend",o);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(h=x.__html,h!=null){if(j.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"multiple":o.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":o.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){o.removeAttribute("xlink:href");break}h=ym(""+x),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?o.setAttribute(h,""+x):o.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":x===!0?o.setAttribute(h,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?o.setAttribute(h,x):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?o.setAttribute(h,x):o.removeAttribute(h);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?o.removeAttribute(h):o.setAttribute(h,x);break;case"popover":lt("beforetoggle",o),lt("toggle",o),mm(o,"popover",x);break;case"xlinkActuate":Ma(o,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Ma(o,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Ma(o,"http://www.w3.org/1999/xlink","xlink:role",x);break;
vendor: 8,478 bytes, line 9
9case"xlinkShow":Ma(o,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Ma(o,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Ma(o,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Ma(o,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Ma(o,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Ma(o,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":mm(o,"is",x);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=DV.get(h)||h,mm(o,h,x))}}function db(o,c,h,x,j,S){switch(h){case"style":aA(o,x,S);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(h=x.__html,h!=null){if(j.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"children":typeof x=="string"?dc(o,x):(typeof x=="number"||typeof x=="bigint")&&dc(o,""+x);break;case"onScroll":x!=null&<("scroll",o);break;case"onScrollEnd":x!=null&<("scrollend",o);break;case"onClick":x!=null&&(o.onclick=up);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kk.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(j=h.endsWith("Capture"),c=h.slice(2,j?h.length-7:void 0),S=o[Er]||null,S=S!=null?S[h]:null,typeof S=="function"&&o.removeEventListener(c,S,j),typeof x=="function")){typeof S!="function"&&S!==null&&(h in o?o[h]=null:o.hasAttribute(h)&&o.removeAttribute(h)),o.addEventListener(c,x,j);break e}h in o?o[h]=x:x===!0?o.setAttribute(h,""):mm(o,h,x)}}}function Hn(o,c,h){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",o),lt("load",o);var x=!1,j=!1,S;for(S in h)if(h.hasOwnProperty(S)){var O=h[S];if(O!=null)switch(S){case"src":x=!0;break;case"srcSet":j=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:At(o,c,S,O,h,null)}}j&&At(o,c,"srcSet",h.srcSet,h,null),x&&At(o,c,"src",h.src,h,null);return;case"input":lt("invalid",o);var R=S=O=j=null,W=null,re=null;for(x in h)if(h.hasOwnProperty(x)){var de=h[x];if(de!=null)switch(x){case"name":j=de;break;case"type":O=de;break;case"checked":W=de;break;case"defaultChecked":re=de;break;case"value":S=de;break;case"defaultValue":R=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(r(137,c));break;default:At(o,c,x,de,h,null)}}tA(o,S,R,W,re,O,j,!1),xm(o);return;case"select":lt("invalid",o),x=O=S=null;for(j in h)if(h.hasOwnProperty(j)&&(R=h[j],R!=null))switch(j){case"value":S=R;break;case"defaultValue":O=R;break;case"multiple":x=R;default:At(o,c,j,R,h,null)}c=S,h=O,o.multiple=!!x,c!=null?uc(o,!!x,c,!1):h!=null&&uc(o,!!x,h,!0);return;case"textarea":lt("invalid",o),S=j=x=null;for(O in h)if(h.hasOwnProperty(O)&&(R=h[O],R!=null))switch(O){case"value":x=R;break;case"defaultValue":j=R;break;case"children":S=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:At(o,c,O,R,h,null)}rA(o,x,j,S),xm(o);return;case"option":for(W in h)h.hasOwnProperty(W)&&(x=h[W],x!=null)&&(W==="selected"?o.selected=x&&typeof x!="function"&&typeof x!="symbol":At(o,c,W,x,h,null));return;case"dialog":lt("beforetoggle",o),lt("toggle",o),lt("cancel",o),lt("close",o);break;case"iframe":case"object":lt("load",o);break;case"video":case"audio":for(x=0;x<Xd.length;x++)lt(Xd[x],o);break;case"image":lt("error",o),lt("load",o);break;case"details":lt("toggle",o);break;case"embed":case"source":case"link":lt("error",o),lt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in h)if(h.hasOwnProperty(re)&&(x=h[re],x!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:At(o,c,re,x,h,null)}return;default:if(Cy(c)){for(de in h)h.hasOwnProperty(de)&&(x=h[de],x!==void 0&&db(o,c,de,x,h,void 0));return}}for(R in h)h.hasOwnProperty(R)&&(x=h[R],x!=null&&At(o,c,R,x,h,null))}function sq(o,c,h,x){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var j=null,S=null,O=null,R=null,W=null,re=null,de=null;for(se in h){var pe=h[se];if(h.hasOwnProperty(se)&&pe!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":W=pe;default:x.hasOwnProperty(se)||At(o,c,se,null,x,pe)}}for(var ae in x){var se=x[ae];if(pe=h[ae],x.hasOwnProperty(ae)&&(se!=null||pe!=null))switch(ae){case"type":S=se;break;case"name":j=se;break;case"checked":re=se;break;case"defaultChecked":de=se;break;case"value":O=se;break;case"defaultValue":R=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,c));break;default:se!==pe&&At(o,c,ae,se,x,pe)}}ky(o,O,R,W,re,de,S,j);return;case"select":se=O=R=ae=null;for(S in h)if(W=h[S],h.hasOwnProperty(S)&&W!=null)switch(S){case"value":break;case"multiple":se=W;default:x.hasOwnProperty(S)||At(o,c,S,null,x,W)}for(j in x)if(S=x[j],W=h[j],x.hasOwnProperty(j)&&(S!=null||W!=null))switch(j){case"value":ae=S;break;case"defaultValue":R=S;break;case"multiple":O=S;default:S!==W&&At(o,c,j,S,x,W)}c=R,h=O,x=se,ae!=null?uc(o,!!h,ae,!1):!!x!=!!h&&(c!=null?uc(o,!!h,c,!0):uc(o,!!h,h?[]:"",!1));return;case"textarea":se=ae=null;for(R in h)if(j=h[R],h.hasOwnProperty(R)&&j!=null&&!x.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:At(o,c,R,null,x,j)}for(O in x)if(j=x[O],S=h[O],x.hasOwnProperty(O)&&(j!=null||S!=null))switch(O){case"value":ae=j;break;case"defaultValue":se=j;break;case"children":break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:j!==S&&At(o,c,O,j,x,S)}nA(o,ae,se);return;case"option":for(var Ke in h)ae=h[Ke],h.hasOwnProperty(Ke)&&ae!=null&&!x.hasOwnProperty(Ke)&&(Ke==="selected"?o.selected=!1:At(o,c,Ke,null,x,ae));for(W in x)ae=x[W],se=h[W],x.hasOwnProperty(W)&&ae!==se&&(ae!=null||se!=null)&&(W==="selected"?o.selected=ae&&typeof ae!="function"&&typeof ae!="symbol":At(o,c,W,ae,x,se));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 qe in h)ae=h[qe],h.hasOwnProperty(qe)&&ae!=null&&!x.hasOwnProperty(qe)&&At(o,c,qe,null,x,ae);for(re in x)if(ae=x[re],se=h[re],x.hasOwnProperty(re)&&ae!==se&&(ae!=null||se!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,c));break;default:At(o,c,re,ae,x,se)}return;default:if(Cy(c)){for(var Ct in h)ae=h[Ct],h.hasOwnProperty(Ct)&&ae!==void 0&&!x.hasOwnProperty(Ct)&&db(o,c,Ct,void 0,x,ae);for(de in x)ae=x[de],se=h[de],!x.hasOwnProperty(de)||ae===se||ae===void 0&&se===void 0||db(o,c,de,ae,x,se);return}}for(var Z in h)ae=h[Z],h.hasOwnProperty(Z)&&ae!=null&&!x.hasOwnProperty(Z)&&At(o,c,Z,null,x,ae);for(pe in x)ae=x[pe],se=h[pe],!x.hasOwnProperty(pe)||ae===se||ae==null&&se==null||At(o,c,pe,ae,x,se)}var fb=null,hb=null;function dp(o){return o.nodeType===9?o:o.ownerDocument}function i5(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function a5(o,c){if(o===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&c==="foreignObject"?0:o}function mb(o,c){return o==="textarea"||o==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var pb=null;function oq(){var o=window.event;return o&&o.type==="popstate"?o===pb?!1:(pb=o,!0):(pb=null,!1)}var s5=typeof setTimeout=="function"?setTimeout:void 0,lq=typeof clearTimeout=="function"?clearTimeout:void 0,o5=typeof Promise=="function"?Promise:void 0,cq=typeof queueMicrotask=="function"?queueMicrotask:typeof o5<"u"?function(o){return o5.resolve(null).then(o).catch(uq)}:s5;function uq(o){setTimeout(function(){throw o})}function Zs(o){return o==="head"}function l5(o,c){var h=c,x=0,j=0;do{var S=h.nextSibling;if(o.removeChild(h),S&&S.nodeType===8)if(h=S.data,h==="/$"){if(0<x&&8>x){h=x;var O=o.ownerDocument;if(h&1&&Jd(O.documentElement),h&2&&Jd(O.body),h&4)for(h=O.head,Jd(h),O=h.firstChild;O;){var R=O.nextSibling,W=O.nodeName;O[md]||W==="SCRIPT"||W==="STYLE"||W==="LINK"&&O.rel.toLowerCase()==="stylesheet"||h.removeChild(O),O=R}}if(j===0){o.removeChild(S),lf(c);return}j--}
vendor: 6,544 bytes, line 9
9else h==="$"||h==="$?"||h==="$!"?j++:x=h.charCodeAt(0)-48;else x=0;h=S}while(h);lf(c)}function xb(o){var c=o.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var h=c;switch(c=c.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":xb(h),wy(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}o.removeChild(h)}}function dq(o,c,h,x){for(;o.nodeType===1;){var j=h;if(o.nodeName.toLowerCase()!==c.toLowerCase()){if(!x&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(x){if(!o[md])switch(c){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(S=o.getAttribute("rel"),S==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(S!==j.rel||o.getAttribute("href")!==(j.href==null||j.href===""?null:j.href)||o.getAttribute("crossorigin")!==(j.crossOrigin==null?null:j.crossOrigin)||o.getAttribute("title")!==(j.title==null?null:j.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(S=o.getAttribute("src"),(S!==(j.src==null?null:j.src)||o.getAttribute("type")!==(j.type==null?null:j.type)||o.getAttribute("crossorigin")!==(j.crossOrigin==null?null:j.crossOrigin))&&S&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(c==="input"&&o.type==="hidden"){var S=j.name==null?null:""+j.name;if(j.type==="hidden"&&o.getAttribute("name")===S)return o}else return o;if(o=Mi(o.nextSibling),o===null)break}return null}function fq(o,c,h){if(c==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!h||(o=Mi(o.nextSibling),o===null))return null;return o}function gb(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function hq(o,c){var h=o.ownerDocument;if(o.data!=="$?"||h.readyState==="complete")c();else{var x=function(){c(),h.removeEventListener("DOMContentLoaded",x)};h.addEventListener("DOMContentLoaded",x),o._reactRetry=x}}function Mi(o){for(;o!=null;o=o.nextSibling){var c=o.nodeType;if(c===1||c===3)break;if(c===8){if(c=o.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return o}var yb=null;function c5(o){o=o.previousSibling;for(var c=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"){if(c===0)return o;c--}else h==="/$"&&c++}o=o.previousSibling}return null}function u5(o,c,h){switch(c=dp(h),o){case"html":if(o=c.documentElement,!o)throw Error(r(452));return o;case"head":if(o=c.head,!o)throw Error(r(453));return o;case"body":if(o=c.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Jd(o){for(var c=o.attributes;c.length;)o.removeAttributeNode(c[0]);wy(o)}var pi=new Map,d5=new Set;function fp(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Ga=K.d;K.d={f:mq,r:pq,D:xq,C:gq,L:yq,m:vq,X:wq,S:bq,M:jq};function mq(){var o=Ga.f(),c=rp();return o||c}function pq(o){var c=sc(o);c!==null&&c.tag===5&&c.type==="form"?OC(c):Ga.r(o)}var Fc=typeof document>"u"?null:document;function f5(o,c,h){var x=Fc;if(x&&typeof c=="string"&&c){var j=li(c);j='link[rel="'+o+'"][href="'+j+'"]',typeof h=="string"&&(j+='[crossorigin="'+h+'"]'),d5.has(j)||(d5.add(j),o={rel:o,crossOrigin:h,href:c},x.querySelector(j)===null&&(c=x.createElement("link"),Hn(c,"link",o),Rn(c),x.head.appendChild(c)))}}function xq(o){Ga.D(o),f5("dns-prefetch",o,null)}function gq(o,c){Ga.C(o,c),f5("preconnect",o,c)}function yq(o,c,h){Ga.L(o,c,h);var x=Fc;if(x&&o&&c){var j='link[rel="preload"][as="'+li(c)+'"]';c==="image"&&h&&h.imageSrcSet?(j+='[imagesrcset="'+li(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(j+='[imagesizes="'+li(h.imageSizes)+'"]')):j+='[href="'+li(o)+'"]';var S=j;switch(c){case"style":S=Uc(o);break;case"script":S=zc(o)}pi.has(S)||(o=m({rel:"preload",href:c==="image"&&h&&h.imageSrcSet?void 0:o,as:c},h),pi.set(S,o),x.querySelector(j)!==null||c==="style"&&x.querySelector(ef(S))||c==="script"&&x.querySelector(tf(S))||(c=x.createElement("link"),Hn(c,"link",o),Rn(c),x.head.appendChild(c)))}}function vq(o,c){Ga.m(o,c);var h=Fc;if(h&&o){var x=c&&typeof c.as=="string"?c.as:"script",j='link[rel="modulepreload"][as="'+li(x)+'"][href="'+li(o)+'"]',S=j;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=zc(o)}if(!pi.has(S)&&(o=m({rel:"modulepreload",href:o},c),pi.set(S,o),h.querySelector(j)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(tf(S)))return}x=h.createElement("link"),Hn(x,"link",o),Rn(x),h.head.appendChild(x)}}}function bq(o,c,h){Ga.S(o,c,h);var x=Fc;if(x&&o){var j=oc(x).hoistableStyles,S=Uc(o);c=c||"default";var O=j.get(S);if(!O){var R={loading:0,preload:null};if(O=x.querySelector(ef(S)))R.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":c},h),(h=pi.get(S))&&vb(o,h);var W=O=x.createElement("link");Rn(W),Hn(W,"link",o),W._p=new Promise(function(re,de){W.onload=re,W.onerror=de}),W.addEventListener("load",function(){R.loading|=1}),W.addEventListener("error",function(){R.loading|=2}),R.loading|=4,hp(O,c,x)}O={type:"stylesheet",instance:O,count:1,state:R},j.set(S,O)}}}function wq(o,c){Ga.X(o,c);var h=Fc;if(h&&o){var x=oc(h).hoistableScripts,j=zc(o),S=x.get(j);S||(S=h.querySelector(tf(j)),S||(o=m({src:o,async:!0},c),(c=pi.get(j))&&bb(o,c),S=h.createElement("script"),Rn(S),Hn(S,"link",o),h.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},x.set(j,S))}}function jq(o,c){Ga.M(o,c);var h=Fc;if(h&&o){var x=oc(h).hoistableScripts,j=zc(o),S=x.get(j);S||(S=h.querySelector(tf(j)),S||(o=m({src:o,async:!0,type:"module"},c),(c=pi.get(j))&&bb(o,c),S=h.createElement("script"),Rn(S),Hn(S,"link",o),h.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},x.set(j,S))}}function h5(o,c,h,x){var j=(j=Ne.current)?fp(j):null;if(!j)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(c=Uc(h.href),h=oc(j).hoistableStyles,x=h.get(c),x||(x={type:"style",instance:null,count:0,state:null},h.set(c,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){o=Uc(h.href);var S=oc(j).hoistableStyles,O=S.get(o);if(O||(j=j.ownerDocument||j,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(o,O),(S=j.querySelector(ef(o)))&&!S._p&&(O.instance=S,O.state.loading=5),pi.has(o)||
vendor: 4,141 bytes, line 9
9(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},pi.set(o,h),S||Nq(j,o,h,O.state))),c&&x===null)throw Error(r(528,""));return O}if(c&&x!==null)throw Error(r(529,""));return null;case"script":return c=h.async,h=h.src,typeof h=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=zc(h),h=oc(j).hoistableScripts,x=h.get(c),x||(x={type:"script",instance:null,count:0,state:null},h.set(c,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Uc(o){return'href="'+li(o)+'"'}function ef(o){return'link[rel="stylesheet"]['+o+"]"}function m5(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function Nq(o,c,h,x){o.querySelector('link[rel="preload"][as="style"]['+c+"]")?x.loading=1:(c=o.createElement("link"),x.preload=c,c.addEventListener("load",function(){return x.loading|=1}),c.addEventListener("error",function(){return x.loading|=2}),Hn(c,"link",h),Rn(c),o.head.appendChild(c))}function zc(o){return'[src="'+li(o)+'"]'}function tf(o){return"script[async]"+o}function p5(o,c,h){if(c.count++,c.instance===null)switch(c.type){case"style":var x=o.querySelector('style[data-href~="'+li(h.href)+'"]');if(x)return c.instance=x,Rn(x),x;var j=m({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return x=(o.ownerDocument||o).createElement("style"),Rn(x),Hn(x,"style",j),hp(x,h.precedence,o),c.instance=x;case"stylesheet":j=Uc(h.href);var S=o.querySelector(ef(j));if(S)return c.state.loading|=4,c.instance=S,Rn(S),S;x=m5(h),(j=pi.get(j))&&vb(x,j),S=(o.ownerDocument||o).createElement("link"),Rn(S);var O=S;return O._p=new Promise(function(R,W){O.onload=R,O.onerror=W}),Hn(S,"link",x),c.state.loading|=4,hp(S,h.precedence,o),c.instance=S;case"script":return S=zc(h.src),(j=o.querySelector(tf(S)))?(c.instance=j,Rn(j),j):(x=h,(j=pi.get(S))&&(x=m({},h),bb(x,j)),o=o.ownerDocument||o,j=o.createElement("script"),Rn(j),Hn(j,"link",x),o.head.appendChild(j),c.instance=j);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(x=c.instance,c.state.loading|=4,hp(x,h.precedence,o));return c.instance}function hp(o,c,h){for(var x=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),j=x.length?x[x.length-1]:null,S=j,O=0;O<x.length;O++){var R=x[O];if(R.dataset.precedence===c)S=R;else if(S!==j)break}S?S.parentNode.insertBefore(o,S.nextSibling):(c=h.nodeType===9?h.head:h,c.insertBefore(o,c.firstChild))}function vb(o,c){o.crossOrigin==null&&(o.crossOrigin=c.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=c.referrerPolicy),o.title==null&&(o.title=c.title)}function bb(o,c){o.crossOrigin==null&&(o.crossOrigin=c.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=c.referrerPolicy),o.integrity==null&&(o.integrity=c.integrity)}var mp=null;function x5(o,c,h){if(mp===null){var x=new Map,j=mp=new Map;j.set(h,x)}else j=mp,x=j.get(h),x||(x=new Map,j.set(h,x));if(x.has(o))return x;for(x.set(o,null),h=h.getElementsByTagName(o),j=0;j<h.length;j++){var S=h[j];if(!(S[md]||S[tr]||o==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var O=S.getAttribute(c)||"";O=o+O;var R=x.get(O);R?R.push(S):x.set(O,[S])}}return x}function g5(o,c,h){o=o.ownerDocument||o,o.head.insertBefore(h,c==="title"?o.querySelector("head > title"):null)}function Sq(o,c,h){if(h===1||c.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;return c.rel==="stylesheet"?(o=c.disabled,typeof c.precedence=="string"&&o==null):!0;case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function y5(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var nf=null;function kq(){}function Aq(o,c,h){if(nf===null)throw Error(r(475));var x=nf;
vendor: 9,053 bytes, line 9
9if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var j=Uc(h.href),S=o.querySelector(ef(j));if(S){o=S._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(x.count++,x=pp.bind(x),o.then(x,x)),c.state.loading|=4,c.instance=S,Rn(S);return}S=o.ownerDocument||o,h=m5(h),(j=pi.get(j))&&vb(h,j),S=S.createElement("link"),Rn(S);var O=S;O._p=new Promise(function(R,W){O.onload=R,O.onerror=W}),Hn(S,"link",h),c.instance=S}x.stylesheets===null&&(x.stylesheets=new Map),x.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(x.count++,c=pp.bind(x),o.addEventListener("load",c),o.addEventListener("error",c))}}function Cq(){if(nf===null)throw Error(r(475));var o=nf;return o.stylesheets&&o.count===0&&wb(o,o.stylesheets),0<o.count?function(c){var h=setTimeout(function(){if(o.stylesheets&&wb(o,o.stylesheets),o.unsuspend){var x=o.unsuspend;o.unsuspend=null,x()}},6e4);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(h)}}:null}function pp(){if(this.count--,this.count===0){if(this.stylesheets)wb(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var xp=null;function wb(o,c){o.stylesheets=null,o.unsuspend!==null&&(o.count++,xp=new Map,c.forEach(Eq,o),xp=null,pp.call(o))}function Eq(o,c){if(!(c.state.loading&4)){var h=xp.get(o);if(h)var x=h.get(null);else{h=new Map,xp.set(o,h);for(var j=o.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<j.length;S++){var O=j[S];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(h.set(O.dataset.precedence,O),x=O)}x&&h.set(null,x)}j=c.instance,O=j.getAttribute("data-precedence"),S=h.get(O)||x,S===x&&h.set(null,j),h.set(O,j),this.count++,x=pp.bind(this),j.addEventListener("load",x),j.addEventListener("error",x),S?S.parentNode.insertBefore(j,S.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(j,o.firstChild)),c.state.loading|=4}}var rf={$$typeof:A,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Tq(o,c,h,x,j,S,O,R){this.tag=1,this.containerInfo=o,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=nc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.hiddenUpdates=nc(null),this.identifierPrefix=x,this.onUncaughtError=j,this.onCaughtError=S,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function v5(o,c,h,x,j,S,O,R,W,re,de,pe){return o=new Tq(o,c,h,O,R,W,re,pe),c=1,S===!0&&(c|=24),S=Wr(3,null,null,c),o.current=S,S.stateNode=o,c=nv(),c.refCount++,o.pooledCache=c,c.refCount++,S.memoizedState={element:x,isDehydrated:h,cache:c},sv(S),o}function b5(o){return o?(o=vc,o):vc}function w5(o,c,h,x,j,S){j=b5(j),x.context===null?x.context=j:x.pendingContext=j,x=Bs(c),x.payload={element:h},S=S===void 0?null:S,S!==null&&(x.callback=S),h=Fs(o,x,c),h!==null&&(Yr(h,o,c),Md(h,o,c))}function j5(o,c){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<c?h:c}}function jb(o,c){j5(o,c),(o=o.alternate)&&j5(o,c)}function N5(o){if(o.tag===13){var c=yc(o,67108864);c!==null&&Yr(c,o,67108864),jb(o,67108864)}}var gp=!0;function _q(o,c,h,x){var j=B.T;B.T=null;var S=K.p;try{K.p=2,Nb(o,c,h,x)}finally{K.p=S,B.T=j}}function Oq(o,c,h,x){var j=B.T;B.T=null;var S=K.p;try{K.p=8,Nb(o,c,h,x)}finally{K.p=S,B.T=j}}function Nb(o,c,h,x){if(gp){var j=Sb(x);if(j===null)ub(o,c,x,yp,h),k5(o,x);else if(Mq(j,o,c,h,x))x.stopPropagation();else if(k5(o,x),c&4&&-1<Pq.indexOf(o)){for(;j!==null;){var S=sc(j);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var O=pr(S.pendingLanes);if(O!==0){var R=S;for(R.pendingLanes|=2,R.entangledLanes|=2;O;){var W=1<<31-We(O);R.entanglements[1]|=W,O&=~W}oa(S),(wt&6)===0&&(tp=Qe()+500,Qd(0))}}break;case 13:R=yc(S,2),R!==null&&Yr(R,S,2),rp(),jb(S,2)}if(S=Sb(x),S===null&&ub(o,c,x,yp,h),S===j)break;j=S}j!==null&&x.stopPropagation()}else ub(o,c,x,null,h)}}function Sb(o){return o=Ty(o),kb(o)}var yp=null;function kb(o){if(yp=null,o=ac(o),o!==null){var c=s(o);if(c===null)o=null;else{var h=c.tag;if(h===13){if(o=l(c),o!==null)return o;o=null}else if(h===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;o=null}else c!==o&&(o=null)}}return yp=o,null}function S5(o){switch(o){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(er()){case hr:return 2;case un:return 8;case q:case te:return 32;case oe:return 268435456;default:return 32}default:return 32}}var Ab=!1,Js=null,eo=null,to=null,af=new Map,sf=new Map,no=[],Pq="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 k5(o,c){switch(o){case"focusin":case"focusout":Js=null;break;case"dragenter":case"dragleave":eo=null;break;case"mouseover":case"mouseout":to=null;break;case"pointerover":case"pointerout":af.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":sf.delete(c.pointerId)}}function of(o,c,h,x,j,S){return o===null||o.nativeEvent!==S?(o={blockedOn:c,domEventName:h,eventSystemFlags:x,nativeEvent:S,targetContainers:[j]},c!==null&&(c=sc(c),c!==null&&N5(c)),o):(o.eventSystemFlags|=x,c=o.targetContainers,j!==null&&c.indexOf(j)===-1&&c.push(j),o)}function Mq(o,c,h,x,j){switch(c){case"focusin":return Js=of(Js,o,c,h,x,j),!0;case"dragenter":return eo=of(eo,o,c,h,x,j),!0;case"mouseover":return to=of(to,o,c,h,x,j),!0;case"pointerover":var S=j.pointerId;return af.set(S,of(af.get(S)||null,o,c,h,x,j)),!0;case"gotpointercapture":return S=j.pointerId,sf.set(S,of(sf.get(S)||null,o,c,h,x,j)),!0}return!1}function A5(o){var c=ac(o.target);if(c!==null){var h=s(c);if(h!==null){if(c=h.tag,c===13){if(c=l(h),c!==null){o.blockedOn=c,AV(o.priority,function(){if(h.tag===13){var x=Kr();x=rc(x);var j=yc(h,x);j!==null&&Yr(j,h,x),jb(h,x)}});return}}else if(c===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function vp(o){if(o.blockedOn!==null)return!1;for(var c=o.targetContainers;0<c.length;){var h=Sb(o.nativeEvent);if(h===null){h=o.nativeEvent;var x=new h.constructor(h.type,h);Ey=x,h.target.dispatchEvent(x),Ey=null}else return c=sc(h),c!==null&&N5(c),o.blockedOn=h,!1;c.shift()}return!0}function C5(o,c,h){vp(o)&&h.delete(c)}function Rq(){Ab=!1,Js!==null&&vp(Js)&&(Js=null),eo!==null&&vp(eo)&&(eo=null),to!==null&&vp(to)&&(to=null),af.forEach(C5),sf.forEach(C5)}function bp(o,c){o.blockedOn===c&&(o.blockedOn=null,Ab||(Ab=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Rq)))}var wp=null;function E5(o){wp!==o&&(wp=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){wp===o&&(wp=null);for(var c=0;c<o.length;c+=3){var h=o[c],x=o[c+1],j=o[c+2];if(typeof x!="function"){if(kb(x||h)===null)continue;break}var S=sc(h);S!==null&&(o.splice(c,3),c-=3,kv(S,{pending:!0,data:j,method:h.method,action:x},x,j))}}))}function lf(o){function c(W){return bp(W,o)}Js!==null&&bp(Js,o),eo!==null&&bp(eo,o),to!==null&&bp(to,o),af.forEach(c),sf.forEach(c);for(var h=0;h<no.length;h++){var x=no[h];x.blockedOn===o&&(x.blockedOn=null)}for(;0<no.length&&(h=no[0],h.blockedOn===null);)A5(h),h.blockedOn===null&&no.shift();if(h=(o.ownerDocument||o).$$reactFormReplay,h!=null)for(x=0;x<h.length;x+=3){var j=h[x],S=h[x+1],O=j[Er]||null;if(typeof S=="function")O||E5(h);else if(O){var R=null;if(S&&S.hasAttribute("formAction")){if(j=S,O=S[Er]||null)R=O.formAction;else if(kb(j)!==null)continue}else R=O.action;
9typeof R=="function"?h[x+1]=R:(h.splice(x,3),x-=3),E5(h)}}}function Cb(o){this._internalRoot=o}jp.prototype.render=Cb.prototype.render=function(o){var c=this._internalRoot;if(c===null)throw Error(r(409));var h=c.current,x=Kr();w5(h,x,o,c,null,null)},jp.prototype.unmount=Cb.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var c=o.containerInfo;w5(o.current,2,null,o,null,null),rp(),c[ic]=null}};function jp(o){this._internalRoot=o}jp.prototype.unstable_scheduleHydration=function(o){if(o){var c=qk();o={blockedOn:null,target:o,priority:c};for(var h=0;h<no.length&&c!==0&&c<no[h].priority;h++);no.splice(h,0,o),h===0&&A5(o)}};var T5=t.version;if(T5!=="19.1.0")throw Error(r(527,T5,"19.1.0"));K.findDOMNode=function(o){var c=o._reactInternals;if(c===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(c),o=o!==null?f(o):null,o=o===null?null:o.stateNode,o};var Dq={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Np=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Np.isDisabled&&Np.supportsFiber)try{ye=Np.inject(Dq),Te=Np}catch{}}return uf.createRoot=function(o,c){if(!a(o))throw Error(r(299));var h=!1,x="",j=qC,S=HC,O=GC,R=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onUncaughtError!==void 0&&(j=c.onUncaughtError),c.onCaughtError!==void 0&&(S=c.onCaughtError),c.onRecoverableError!==void 0&&(O=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(R=c.unstable_transitionCallbacks)),c=v5(o,1,!1,null,null,h,x,j,S,O,R,null),o[ic]=c.current,cb(o),new Cb(c)},uf.hydrateRoot=function(o,c,h){if(!a(o))throw Error(r(299));var x=!1,j="",S=qC,O=HC,R=GC,W=null,re=null;return h!=null&&(h.unstable_strictMode===!0&&(x=!0),h.identifierPrefix!==void 0&&(j=h.identifierPrefix),h.onUncaughtError!==void 0&&(S=h.onUncaughtError),h.onCaughtError!==void 0&&(O=h.onCaughtError),h.onRecoverableError!==void 0&&(R=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(W=h.unstable_transitionCallbacks),h.formState!==void 0&&(re=h.formState)),c=v5(o,1,!0,c,h??null,x,j,S,O,R,W,re),c.context=b5(null),h=c.current,x=Kr(),x=rc(x),j=Bs(x),j.callback=null,Fs(h,j,x),h=x,c.current.lanes=h,Rs(c,h),oa(c),o[ic]=c.current,cb(o),new jp(c)},uf.version="19.1.0",uf}var B5;function Hq(){if(B5)return Tb.exports;B5=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Tb.exports=qq(),Tb.exports}var pj=Hq();const Gq=Ah(pj),Kq=Zg({__proto__:null,default:Gq},[pj]);var v=Iu();const z=Ah(v),Lu=Zg({__proto__:null,default:z},[v]);var Yq=class G6 extends Error{static kind="ClerkError";clerkError=!0;code;longMessage;docsUrl;cause;get name(){return this.constructor.name}constructor(t){super(new.target.formatMessage(new.target.kind,t.message,t.code,t.docsUrl),{cause:t.cause}),Object.setPrototypeOf(this,G6.prototype),this.code=t.code,this.docsUrl=t.docsUrl,this.longMessage=t.longMessage,this.cause=t.cause}toString(){return`[${this.name}] 10Message:${this.message}`}static formatMessage(t,n,r,a){const s="Clerk:",l=new RegExp(s.replace(" ","\\s*"),"i");return n=n.replace(l,""),n=`${s} ${n.trim()} 11 12(code="${r}") 13 14`,a&&(n+=` 15 16Docs: ${a}`),n}},K6=class Y6 extends Yq{static kind="ClerkRuntimeError";clerkRuntimeError=!0;constructor(t,n){super({...n,message:t}),Object.setPrototypeOf(this,Y6.prototype)}};const Qq=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invali
16d. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingSecretKeyErrorMessage:"Missing secretKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function Q6({packageName:e,customMessages:t}){let n=e;function r(s,l){if(!l)return`${n}: ${s}`;let u=s;const d=s.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const f of d){const m=(l[f[1]]||"").toString();u=u.replace(`{{${f[1]}}}`,m)}return`${n}: ${u}`}const a={...Qq,...t};return{setPackageName({packageName:s}){return typeof s=="string"&&(n=s),this},setMessages({customMessages:s}){return Object.assign(a,s||{}),this},throwInvalidPublishableKeyError(s){throw new Error(r(a.InvalidPublishableKeyErrorMessage,s))},throwInvalidProxyUrl(s){throw new Error(r(a.InvalidProxyUrlErrorMessage,s))},throwMissingPublishableKeyError(){throw new Error(r(a.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(r(a.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(s){throw new Error(r(a.MissingClerkProvider,s))},throw(s){throw new Error(r(s))}}}
16const Xq=[".lcl.dev",".lclstage.dev",".lclclerk.com"],Zq=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],X6=e=>typeof atob<"u"&&typeof atob=="function"?atob(e):typeof globalThis.Buffer<"u"?globalThis.Buffer.from(e,"base64").toString():e,Jq=e=>typeof btoa<"u"&&typeof btoa=="function"?btoa(e):typeof globalThis.Buffer<"u"?globalThis.Buffer.from(e).toString("base64"):e,xj="pk_live_",Z6="pk_test_",eH=/^(([a-z]+)-){2}([0-9]{1,2})\.clerk\.accounts([a-z.]*)(dev|com)$/i;function tH(e){return`${eH.test(e)||e.startsWith("clerk.")&&Xq.some(t=>e.endsWith(t))?Z6:xj}${Jq(`${e}$`).replace(/=+$/,"")}`}function nH(e,t){if(iH(t))return t;const n=e.toLowerCase().replace(/:\d+$/,"");if(!n)throw new Error("Host must not be empty.");return tH(`clerk.${n}`)}function J6(e){if(!e.endsWith("$"))return!1;const t=e.slice(0,-1);return t.includes("$")?!1:t.includes(".")}function Rb(e,t={}){if(e=e||"",!e||!F5(e)){if(t.fatal&&!e)throw new Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(t.fatal&&!F5(e))throw new Error("Publishable key not valid.");return null}const n=e.startsWith(xj)?"production":"development";let r;try{r=X6(e.split("_")[2])}catch{if(t.fatal)throw new Error("Publishable key not valid: Failed to decode key.");return null}if(!J6(r)){if(t.fatal)throw new Error("Publishable key not valid: Decoded key has invalid format.");return null}let a=r.slice(0,-1);return t.proxyUrl?a=t.proxyUrl:n!=="development"&&t.domain&&t.isSatellite&&(a=`clerk.${t.domain}`),{instanceType:n,frontendApi:a}}function F5(e=""){try{if(!(e.startsWith(xj)||e.startsWith(Z6)))return!1;const t=e.split("_");if(t.length!==3)return!1;const n=t[2];return n?J6(X6(n)):!1}catch{return!1}}function rH(){const e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;const n=typeof t=="string"?t:t.hostname;let r=e.get(n);return r===void 0&&(r=Zq.some(a=>n.endsWith(a)),e.set(n,r)),r}}}function iH(e){return e.startsWith("test_")||e.startsWith("pk_test_")}const Db={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_CLERK_PROXY_URL:"/api/__clerk",VITE_CLERK_PUBLISHABLE_KEY:"pk_live_Y2xlcmsudG9vbHMucmVmcmFtZXlvdXRoLmNvbSQ"};var Ib={};const U5=(e,t)=>{if(typeof process<"u"&&Ib&&typeof Ib[e]=="string")return Ib[e];if(typeof import.meta<"u"&&Db&&typeof Db[e]=="string")return Db[e];try{return globalThis[e]}catch{}return""},aH=()=>{try{return!1}catch{}return!1},sH=()=>{try{return!1}catch{}return!1},oH=()=>{try{return!0}catch{}return!1},lH="METHOD_CALLED",cH=.1;function uH(e,t){return{event:lH,eventSamplingRate:cH,payload:{method:e,...t}}}const dH="ClerkJS:";function fH(){throw new Error(`${dH} Clerk instance not found. Make sure Clerk is initialized before using any Clerk components.`)}var z5=Object.prototype.hasOwnProperty;
16function V5(e,t,n){for(n of e.keys())if(Bf(n,t))return n}function Bf(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Bf(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=V5(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=V5(t,a),!a)||!Bf(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(z5.call(e,n)&&++r&&!z5.call(t,n)||!(n in t)||!Bf(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function hH(e,t){if(!e)throw typeof t=="string"?new Error(t):new Error(`${t.displayName} not found`)}const $u=(e,t)=>{const{assertCtxFn:n=hH}={},r=z.createContext(void 0);return r.displayName=e,[r,()=>{const l=z.useContext(r);return n(l,`${e} not found`),l.value},()=>{const l=z.useContext(r);return l?l.value:{}}]},[gj,Jg]=$u("ClerkInstanceContext"),[mH,pH]=$u("InitialStateContext");function xH({children:e,initialState:t}){const[n]=v.useState(t),r=z.useMemo(()=>({value:n}),[n]);return z.createElement(mH.Provider,{value:r},e)}function gH(){const e=pH();if(e instanceof Promise){if("use"in z&&typeof z.use=="function")return z.use(e);throw new Error("initialState cannot be a promise if React version is less than 19")}return e}z.createContext({});const[yH]=$u("CheckoutContext"),vH=({children:e,...t})=>z.createElement(yH.Provider,{value:{value:t}},e);function yj(e){if(!z.useContext(gj)){if(typeof e=="function"){e();return}throw new Error(`${e} can only be used within the <ClerkProvider /> component. 17 18Possible fixes: 191. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used. 202. Check for multiple versions of the \`@clerk/shared\` package in your project. Use a tool like \`npm ls @clerk/shared\` to identify multiple versions, and update your dependencies to only rely on one. 21 22Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}function bH(e){const t=function(){};let n;return n=new Proxy(t,{get(r,a){if(a!=="then")return a==="toString"?()=>`[${e}]`:a===Symbol.toPrimitive?()=>0:n},apply(){return n},construct(){return n},has(){return!1},set(){return!1}}),n}bH("ClerkMockQueryClient");function wH(){const e=Jg(),t=gH(),n=v.useCallback(()=>t?.user,[t?.user]);return v.useSyncExternalStore(v.useCallback(r=>e.addListener(r,{skipInitialEmit:!0}),[e]),v.useCallback(()=>!e.loaded||!e.__internal_lastEmittedResources?n():e.__internal_lastEmittedResources.user,[e,n]),n)}const vj=()=>(yj("useClerk"),Jg());typeof window<"u"?z.useLayoutEffect:z.useEffect;const W5="useUser";function Vt(){yj(W5);const e=wH();return Jg().telemetry?.record(uH(W5)),e===void 0?{isLoaded:!1,isSignedIn:void 0,user:void 0}:e===null?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}const q5=Bf;function jH(e){e||fH()}function NH(e){const t=e.clerk;if(jH(t),e.initialState instanceof Promise&&!("use"in z&&typeof z.use=="function"))throw new Error("initialState cannot be a promise if React version is less than 19");const n=z.useMemo(()=>({value:t}),[e.clerkStatus]);return z.createElement(xH,{initialState:e.initialState},z.createElement(gj.Provider,{value:n},z.createElement(vH,{value:void 0},e.children)))}const SH=e=>{const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t.current},Qr=(e,t,n)=>{const r=!!n,a=v.useRef(n);v.useEffect(()=>{a.current=n},[n]),v.useEffect(()=>{if(!r||!e)return()=>{};const s=(...l)=>{a.current&&a.current(...l)};return e.on(t,s),()=>{e.off(t,s)}},[r,t,e,a])},eR=z.createContext(null);eR.displayName="ElementsContext";const kH=(e,t)=>{if(!e)throw new Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e},Ex=e=>e!==null&&typeof e=="object",AH=(e,t,n)=>Ex(e)?Object.keys(e).reduce((r,a)=>{const s=!Ex(t)||!tR(e[a],t[a]);return n.includes(a)?(s&&console.warn(`Unsupported prop change: options.${a} is not a mutable property.`),r):s?{...r||{},[a]:e[a]}:r},null):null,H5="[object Object]",tR=(e,t)=>{if(!Ex(e)||!Ex(t))return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;const r=Object.prototype.toString.call(e)===H5;if(r!==(Object.prototype.toString.call(t)===H5))return!1;if(!r&&!n)return e===t;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;const l={};for(let p=0;p<a.length;p+=1)l[a[p]]=!0;for(let p=0;p<s.length;p+=1)l[s[p]]=!0;const u=Object.keys(l);if(u.length!==a.length)return!1;const d=e,f=t,m=p=>tR(d[p],f[p]);return u.every(m)},G5=e=>kH(z.useContext(eR),e),CH=e=>e.charAt(0).toUpperCase()+e.slice(1),EH=(e,t)=>{const n=`${CH(e)}Element`,s=t?l=>{G5(`mounts <${n}>`);const{id:u,className:d}=l;return z.createElement("div",{id:u,className:d})}:({id:l,className:u,fallback:d,options:f={},onBlur:m,onFocus:p,onReady:g,onChange:y,onEscape:w,onClick:b,onLoadError:N,onLoaderStart:k,onNetworksChange:C,onConfirm:A,onCancel:E,onShippingAddressChange:_,onShippingRateChange:T})=>{const M=G5(`mounts <${n}>`),P="elements"in M?M.elements:null,[D,U]=z.useState(null),L=z.useRef(null),$=z.useRef(null),[G,H]=v.useState(!1);Qr(D,"blur",m),Qr(D,"focus",p),Qr(D,"escape",w),Qr(D,"click",b),Qr(D,"loaderror",N),Qr(D,"loaderstart",k),Qr(D,"networksch
22ange",C),Qr(D,"confirm",A),Qr(D,"cancel",E),Qr(D,"shippingaddresschange",_),Qr(D,"shippingratechange",T),Qr(D,"change",y);let V;g&&(V=()=>{H(!0),g(D)}),Qr(D,"ready",V),z.useLayoutEffect(()=>{if(L.current===null&&$.current!==null&&P){let K=null;P&&(K=P.create(e,f)),L.current=K,U(K),K&&K.mount($.current)}},[P,f]);const B=SH(f);return z.useEffect(()=>{if(!L.current)return;const K=AH(f,B,["paymentRequest"]);K&&"update"in L.current&&L.current.update(K)},[f,B]),z.useLayoutEffect(()=>()=>{if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}},[]),z.createElement(z.Fragment,null,!G&&d,z.createElement("div",{id:l,style:{height:G?"unset":"0px",visibility:G?"visible":"hidden"},className:u,ref:$}))};return s.displayName=n,s.__elementType=e,s};EH("payment",typeof window>"u");$u("PaymentElementContext");$u("StripeUtilsContext");const[E4e,,TH]=$u("PortalProvider"),_H=()=>{const e=TH();return e&&"getContainer"in e&&e.getContainer?e.getContainer:()=>null},vo=Q6({packageName:"@clerk/react"});function OH(e){vo.setMessages(e).setPackageName(e)}const PH=Jg,MH=e=>{yj(()=>{vo.throwMissingClerkProviderError({source:e})})};var Ss=H6();const nR=Ah(Ss),RH=Zg({__proto__:null,default:nR},[Ss]);
22function Lb(e,t,n){if(typeof e=="function")return e(t);if(typeof e<"u")return e;if(typeof n<"u")return n}const wr=e=>{aH()&&console.error(`Clerk: ${e}`)},K5=(e,...t)=>{const n={...e};for(const r of t)delete n[r];return n};function Ff(){return typeof window<"u"}const DH="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",IH=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,$b="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",LH="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",$H="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",BH="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",FH="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",UH=e=>`<${e} /> can only accept <${e}.Page /> and <${e}.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.`,zH=e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,VH=e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`,WH="<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",qH="<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",HH="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",GH="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",KH="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`.",YH="Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.",QH="Missing props. <UserButton.Action /> component requires the following props: label.",Ch=e=>t=>{try{return z.Children.only(e)}catch{const n=z.Children.toArray(e);return n.length===1&&z.isValidElement(n[0])?n[0]:vo.throw(IH(t))}},Eh=(e,t)=>(e||(e=t),typeof e=="string"&&(e=z.createElement("button",null,e)),e),Th=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)},XH=e=>U5(`VITE_${e}`)||U5(e),ZH=(e,t)=>e!==void 0?e:XH(t)||void 0,JH=e=>{const t=ZH(e.publishableKey,"CLERK_PUBLISHABLE_KEY");return{...e,...t!==void 0&&{publishableKey:t}}};function Y5(e){return typeof e=="function"}const Uf=e=>{const[t,n]=v.useState(new Map),r=v.useRef(t),a=v.useRef(new Map),s=v.useRef(new Map);r.current=t,a.current=new Map(e.map(u=>[u.id,u.component]));const l=new Set(e.map(u=>u.id));return s.current.forEach((u,d)=>{l.has(d)||s.current.delete(d)}),e.map(u=>{const d=u.id,f=s.current.get(d);if(f)return f;const m=()=>{const g=r.current.get(d),y=a.current.get(d);return g?Ss.createPortal(y,g):null},p={id:u.id,mount:g=>n(y=>new Map(y).set(d,g)),unmount:()=>n(g=>{const y=new Map(g);return y.set(d,null),y}),portal:m};return s.current.set(d,p),p})},vr=(e,t)=>!!e&&z.isValidElement(e)&&e?.type===t,rR=(e,t)=>sR({children:e,reorderItemsLabels:["account","security","billing","apiKeys"],LinkComponent:Oh,PageComponent:_h,MenuItemsComponent:t0,componentName:"UserProfile"},t),iR=(e,t)=>sR({children:e,reorderItemsLabels:["general","members","billing","apiKeys"],LinkComponent:r0,PageComponent:n0,componentName:"OrganizationProfile"},t),aR=e=>{const t=[],n=[r0,n0,t0,_h,Oh];
22return z.Children.forEach(e,r=>{n.some(a=>vr(r,a))||t.push(r)}),t},sR=(e,t)=>{const{children:n,LinkComponent:r,PageComponent:a,MenuItemsComponent:s,reorderItemsLabels:l,componentName:u}=e,{allowForAnyChildren:d=!1}=t||{},f=[],m=new Map;z.Children.forEach(n,A=>{if(!vr(A,a)&&!vr(A,r)&&!vr(A,s)){A&&!d&&wr(UH(u));return}const{props:E}=A,{children:_,label:T,url:M,labelIcon:P}=E,D=A.key;if(vr(A,a))if(X5(E,l))f.push({label:T});else if(Bb(E))f.push({label:T,labelIcon:P,children:_,url:M,portalId:Q5("page",E,D,m)});else{wr(zH(u));return}if(vr(A,r))if(Fb(E))f.push({label:T,labelIcon:P,url:M,portalId:Q5("link",E,D,m)});else{wr(VH(u));return}});const p=[],g=[],y=[];f.forEach((A,E)=>{if(Bb(A)){p.push({component:A.children,id:A.portalId||E}),g.push({component:A.labelIcon,id:A.portalId||E});return}Fb(A)&&y.push({component:A.labelIcon,id:A.portalId||E})});const w=Uf(p),b=Uf(g),N=Uf(y),k=[],C=[];return f.forEach((A,E)=>{if(X5(A,l)){k.push({label:A.label});return}if(Bb(A)){const{portal:_,mount:T,unmount:M}=w.find(L=>L.id===(A.portalId||E)),{portal:P,mount:D,unmount:U}=b.find(L=>L.id===(A.portalId||E));k.push({label:A.label,url:A.url,mount:T,unmount:M,mountIcon:D,unmountIcon:U}),C.push({key:`content:${A.portalId||E}`,portal:_}),C.push({key:`label:${A.portalId||E}`,portal:P});return}if(Fb(A)){const{portal:_,mount:T,unmount:M}=N.find(P=>P.id===(A.portalId||E));k.push({label:A.label,url:A.url,mountIcon:T,unmountIcon:M}),C.push({key:`label:${A.portalId||E}`,portal:_});return}}),{customPages:k,customPagesPortals:C}},Q5=(e,t,n,r)=>{if(n!=null)return`${e}:key:${n}`;const a=`${e}:${t.label}:${t.url}`,s=r.get(a)??0;return r.set(a,s+1),`${a}:${s}`},X5=(e,t)=>{const{children:n,label:r,url:a,labelIcon:s}=e;return!n&&!a&&!s&&t.some(l=>l===r)},Bb=e=>{const{children:t,label:n,url:r,labelIcon:a}=e;return!!t&&!!r&&!!a&&!!n},Fb=e=>{const{children:t,label:n,url:r,labelIcon:a}=e;return!t&&!!r&&!!a&&!!n},eG=(e,t)=>tG({children:e,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:t0,MenuActionComponent:lR,MenuLinkComponent:cR,UserProfileLinkComponent:Oh,UserProfilePageComponent:_h,allowForAnyChildren:t?.allowForAnyChildren??!1}),tG=({children:e,MenuItemsComponent:t,MenuActionComponent:n,MenuLinkComponent:r,UserProfileLinkComponent:a,UserProfilePageComponent:s,reorderItemsLabels:l,allowForAnyChildren:u=!1})=>{const d=[],f=[],m=[],p=new Map;z.Children.forEach(e,N=>{if(!vr(N,t)&&!vr(N,a)&&!vr(N,s)){N&&!u&&wr(WH);return}if(vr(N,a)||vr(N,s))return;const{props:k}=N;z.Children.forEach(k.children,C=>{if(!vr(C,n)&&!vr(C,r)){C&&wr(qH);return}const{props:A}=C,E=C.key,{label:_,labelIcon:T,href:M,onClick:P,open:D}=A;if(vr(C,n))if(Z5(A,l))d.push({label:_});else if(zb(A)){const U={label:_,labelIcon:T};if(P!==void 0)d.push({...U,onClick:P,portalId:Ub("action",A,E,p)});else if(D!==void 0)d.push({...U,open:D.startsWith("/")?D:`/${D}`,portalId:Ub("action",A,E,p)});else{wr("Custom menu item must have either onClick or open property");return}}else{wr(QH);return}if(vr(C,r))if(Vb(A))d.push({label:_,labelIcon:T,href:M,portalId:Ub("link",A,E,p)});else{wr(YH);return}})});const g=[],y=[];d.forEach((N,k)=>{zb(N)&&g.push({component:N.labelIcon,id:N.portalId||k}),Vb(N)&&y.push({component:N.labelIcon,id:N.portalId||k})});const w=Uf(g),b=Uf(y);return d.forEach((N,k)=>{if(Z5(N,l)&&f.push({label:N.label}),zb(N)){const{portal:C,mount:A,unmount:E}=w.find(T=>T.id===(N.portalId||k)),_={label:N.label,mountIcon:A,unmountIcon:E};"onClick"in N?_.onClick=N.onClick:"open"in N&&(_.open=N.open),f.push(_),m.push({key:`icon:${N.portalId||k}`,portal:C})}if(Vb(N)){const{portal:C,mount:A,unmount:E}=b.find(_=>_.id===(N.portalId||k));f.push({label:N.label,href:N.href,mountIcon:A,unmountIcon:E}),m.push({key:`icon:${N.portalId||k}`,portal:C})}}),{customMenuItems:f,customMenuItemsPortals:m}},Ub=(e,t,n,r)=>{if(n!=null)return`${e}:key:${n}`;const a=t.href||t.open||"",s=`${e}:${t.label}:${a}`,l=r.get(s)??0;return r.set(s,l+1),`${s}:${l}`},Z5=(e,t)=>{const{children:n,label:r,onClick:a,labelIcon:s}=e;return!n&&!a&&!s&&t.some(l=>l===r)},zb=e=>{const{label:t,labelIcon:n,onClick:r,open:a}=e;
22return!!n&&!!t&&(typeof r=="function"||typeof a=="string")},Vb=e=>{const{label:t,href:n,labelIcon:r}=e;return!!n&&!!r&&!!t},nG=e=>{const t=e?.isReady;return n=>new Promise((r,a)=>{const{root:s=document?.body,selector:l,timeout:u=0}=n;if(!s){a(new Error("No root element provided"));return}let d=s;if(l&&(d=s?.querySelector(l)),t(d,l)){r();return}const f=new MutationObserver(m=>{for(const p of m)if(!d&&l&&(d=s?.querySelector(l)),(e.childList&&p.type==="childList"||e.attributes&&p.type==="attributes")&&t(d,l)){f.disconnect(),r();return}});f.observe(s,e),u>0&&setTimeout(()=>{f.disconnect(),a(new Error(`Timeout waiting for ${l}`))},u)})},rG=nG({childList:!0,subtree:!0,isReady:(e,t)=>!!e?.childElementCount&&e?.matches?.(t)&&e.childElementCount>0});function Jn(e,t){const n=v.useRef(),[r,a]=v.useState("rendering");return v.useEffect(()=>{if(!e)throw new Error("Clerk: no component name provided, unable to detect mount.");if(typeof window<"u"&&!n.current){const s=`[data-clerk-component="${e}"]`,l=t?.selector;n.current=rG({selector:l?s+l:s}).then(()=>{a("rendered")}).catch(()=>{a("error")})}},[e,t?.selector]),r}const Sp=e=>"mount"in e,J5=e=>"open"in e,eT=e=>e?.map(({mountIcon:t,unmountIcon:n,...r})=>r);var _n=class extends z.PureComponent{constructor(...e){super(...e),this.rootRef=z.createRef()}componentDidUpdate(e){if(!Sp(e)||!Sp(this.props))return;const t=K5(e.props||{},"customPages","customMenuItems","children"),n=K5(this.props.props||{},"customPages","customMenuItems","children"),r=e.props?.customPages?.length!==this.props.props?.customPages?.length,a=e.props?.customMenuItems?.length!==this.props.props?.customMenuItems?.length,s=eT(e.props?.customMenuItems),l=eT(this.props.props?.customMenuItems);(!q5(t,n)||!q5(s,l)||r||a)&&this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&(Sp(this.props)&&this.props.mount(this.rootRef.current,this.props.props),J5(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&(Sp(this.props)&&this.props.unmount(this.rootRef.current),J5(this.props)&&this.props.close())}render(){const{hideRootHtmlElement:e=!1}=this.props,t={ref:this.rootRef,...this.props.rootProps,...this.props.component&&{"data-clerk-component":this.props.component}};return z.createElement(z.Fragment,null,!e&&z.createElement("div",t),this.props.children)}};const St=(e,t)=>{const n=(typeof t=="string"?t:t?.component)||e.displayName||e.name||"Component";e.displayName=n;const r=typeof t=="string"?void 0:t,a=s=>{MH(n||"withClerk");const l=PH(),u=_H();return!l.loaded&&!r?.renderWhileLoading?null:z.createElement(e,{getContainer:u,...s,component:n,clerk:l})};return a.displayName=`withClerk(${n})`,a},e0=e=>z.createElement(z.Fragment,null,e?.customPagesPortals?.map(({key:t,portal:n})=>v.createElement(n,{key:t})),e?.customMenuItemsPortals?.map(({key:t,portal:n})=>v.createElement(n,{key:t}))),iG=St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"SignIn",renderWhileLoading:!0}),aG=St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"SignUp",renderWhileLoading:!0});function _h({children:e}){return wr(LH),z.createElement(z.Fragment,null,e)}function Oh({children:e}){return wr($H),z.createElement(z.Fragment,null,e)}const sG=St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}},{customPages:l,customPagesPortals:u}=rR(r.children);return z.createElement(z.Fragment,null,a&&n,z.createElement(_n,{component:t,mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__internal_updateProps,props:{...r,customPages:l},rootProps:s},z.createElement(e0,{customPagesPortals:u})))},{component:"UserProfile",renderWhileLoading:!0});Object.assign(sG,{Page:_h,Link:Oh});const oR=v.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),oG=St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}},{customPages:l,customPagesPortals:u}=rR(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),d={...r.userProfileProps,customPages:l},{customMenuItems:f,customMenuItemsPortals:m}=eG(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),p=aR(r.children),g={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__internal_updateProps,props:{...r,userProfileProps:d,customMenuItems:f}},y={customPagesPortals:u,customMenuItemsPortals:m};return z.createElement(oR.Provider,{value:g},a&&n,e.loaded&&z.createElement(_n,{component:t,...g,hideRootHtmlElement:!!r.__experimental_asProvider,rootProps:s},r.__experimental_asProvider?p:null,z.createElement(e0,y)))},{component:"UserButton",renderWhileLoading:!0});function t0({children:e}){return wr(HH),z.createElement(z.Fragment,null,e)}function lR({children:e}){return wr(GH),z.createElement(z.Fragment,null,e)}function cR({children:e}){return wr(KH),z.createElement(z.Fragment,null,e)}function lG(e){const t=v.useContext(oR),n={...t,props:{...t.props,...e}};return z.createElement(_n,n)}const cG=Object.assign(oG,{UserProfilePage:_h,UserProfileLink:Oh,MenuItems:t0,Action:lR,Link:cR,__experimental_Outlet:lG});function n0({children:e}){return wr(BH),z.createElement(z.Fragment,null,e)}function r0({children:e}){return wr(FH),z.createElement(z.Fragment,null,e)}const uG=St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}},{customPages:l,customPagesPortals:u}=iR(r.children);return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__internal_updateProps,props:{...r,customPages:l},rootProps:s},z.createElement(e0,{customPagesPortals:u})))},{component:"OrganizationProfile",renderWhileLoading:!0});Object.assign(uG,{Page:n0,Link:r0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"CreateOrganization",renderWhileLoading:!0});const uR=v.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),dG=St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}},{customPages:l,customPagesPortals:u}=iR(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),d={...r.organizationProfileProps,customPages:l},f=aR(r.children),m={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__internal_updateProps,props:{...r,organizationProfileProps:d},rootProps:s,component:t};return e.__experimental_prefetchOrganizationSwitcher(),z.createElement(uR.Provider,{value:m},z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{...m,hideRootHtmlElement:!!r.__experimental_asProvider},r.__experimental_asProvider?f:null,z.createElement(e0,{customPagesPortals:u}))))},{component:"OrganizationSwitcher",renderWhileLoading:!0});function fG(e){const t=v.useContext(uR),n={...t,props:{...t.props,...e}};return z.createElement(_n,n)}Object.assign(dG,{OrganizationProfilePage:n0,OrganizationProfileLink:r0,__experimental_Outlet:fG});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"OrganizationList",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,open:e.openGoogleOneTap,close:e.closeGoogleOneTap,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"GoogleOneTap",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountWaitlist,unmount:e.unmountWaitlist,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"Waitlist",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t,{selector:'[data-component-status="ready"]'})==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountPricingTable,unmount:e.unmountPricingTable,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"PricingTable",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountAPIKeys,unmount:e.unmountAPIKeys,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"ApiKeys",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.__internal_mountOAuthConsent,unmount:e.__internal_unmountOAuthConsent,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"OAuthConsent",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountUserAvatar,unmount:e.unmountUserAvatar,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"UserAvatar",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountTaskChooseOrganization,unmount:e.unmountTaskChooseOrganization,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"TaskChooseOrganization",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountTaskResetPassword,unmount:e.unmountTaskResetPassword,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"TaskResetPassword",renderWhileLoading:!0});St(({clerk:e,component:t,fallback:n,...r})=>{const a=Jn(t)==="rendering"||!e.loaded,s={...a&&n&&{style:{display:"none"}}};return z.createElement(z.Fragment,null,a&&n,e.loaded&&z.createElement(_n,{component:t,mount:e.mountTaskSetupMFA,unmount:e.unmountTaskSetupMFA,updateProps:e.__internal_updateProps,props:r,rootProps:s}))},{component:"TaskSetupMFA",renderWhileLoading:!0});const hG={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},mG=100,dR=async e=>new Promise(t=>setTimeout(t,e)),fR=(e,t)=>t?e*(1+Math.random()):e,pG=e=>{let t=0;const n=()=>{const r=e.initialDelay,a=e.factor;let s=r*Math.pow(a,t);return s=fR(s,e.jitter),Math.min(e.maxDelayBetweenRetries||s,s)};return async()=>{await dR(n()),t++}},xG=async(e,t={})=>{let n=0;const{shouldRetry:r,initialDelay:a,maxDelayBetweenRetries:s,factor:l,retryImmediately:u,jitter:d,onBeforeRetry:f}={...hG,...t},m=pG({initialDelay:a,maxDelayBetweenRetries:s,factor:l,jitter:d});for(;;)try{return await e()}catch(p){if(n++,!r(p,n))throw p;f&&await f(n),u&&n===1?await dR(fR(mG,d)):await m()}},gG="loadScript cannot be called when document does not exist",yG="loadScript cannot be called without a src";async function hR(e="",t){const{async:n,defer:r,beforeLoad:a,crossOrigin:s,nonce:l}=t||{};return xG(()=>new Promise((d,f)=>{e||f(new Error(yG)),(!document||!document.body)&&f(new Error(gG));
22const m=document.createElement("script");s&&m.setAttribute("crossorigin",s),m.async=n||!1,m.defer=r||!1,m.addEventListener("load",()=>{m.remove(),d(m)}),m.addEventListener("error",p=>{m.remove(),f(p.error??new Error(`failed to load script: ${e}`))}),m.src=e,l&&(m.nonce=l),a?.(m),document.body.appendChild(m)}),{shouldRetry:(d,f)=>f<=5})}function vG(e){return e?bG(e)||Ph(e):!0}function bG(e){return/^http(s)?:\/\//.test(e||"")}function Ph(e){return e.startsWith("/")}function wG(e){return e?!Ph(e)||typeof window>"u"||!window.location?.origin?e:new URL(e,window.location.origin).toString():""}function jG(e){if(!e)return"";let t;if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}return`clerk.${e.replace(t,"")}`}const mR=(e,t="6.27.1")=>{if(e)return e;const n=NG(t);return n?n==="snapshot"?t:n:SG(t)},NG=e=>e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/)?.[1],SG=e=>e.trim().replace(/^v/,"").split(".")[0],{isDevOrStagingUrl:kG}=rH(),bj=Q6({packageName:"@clerk/shared"});function pR(e){return typeof window>"u"||!window[e]?!1:!!window[e]}const Wb=()=>pR("Clerk"),qb=()=>pR("__internal_ClerkUICtor");function xR(e){if(typeof window>"u"||!window.performance)return!1;const t=performance.getEntriesByName(e,"resource");if(t.length===0)return!1;const n=t[t.length-1];return n.transferSize===0&&n.decodedBodySize===0&&(n.responseEnd===0||n.responseEnd>0&&n.responseStart>0||"responseStatus"in n&&(n.responseStatus>=400||n.responseStatus===0))}const AG=async e=>{const t=e?.scriptLoadTimeout??15e3,n=l=>new K6("Failed to load Clerk JS"+(l?.message?`, ${l.message}`:""),{code:"failed_to_load_clerk_js",cause:l});if(Wb())return null;if(!e?.publishableKey)return bj.throwMissingPublishableKeyError(),null;const r=EG(e),a=document.querySelector("script[data-clerk-js-script]");if(a)if(xR(r))a.remove();else try{return await Tx(t,Wb,n(),a),null}catch{a.remove()}const s=Tx(t,Wb,n());return hR(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:yR(gR(e))}).catch(l=>{throw n(l)}),s},CG=async e=>{const t=e?.scriptLoadTimeout??15e3,n=l=>new K6("Failed to load Clerk UI"+(l?.message?`, ${l.message}`:""),{code:"failed_to_load_clerk_ui",cause:l});if(qb())return null;if(!e?.publishableKey)return bj.throwMissingPublishableKeyError(),null;const r=TG(e),a=document.querySelector("script[data-clerk-ui-script]");if(a)if(xR(r))a.remove();else try{return await Tx(t,qb,n(),a),null}catch{a.remove()}const s=Tx(t,qb,n());return hR(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:yR(_G(e))}).catch(l=>{throw n(l)}),s},EG=e=>{const{__internal_clerkJSUrl:t,__internal_clerkJSVersion:n,proxyUrl:r,domain:a,publishableKey:s}=e;if(t)return t;const l=mR(n);return r&&Ph(r)?vR(r,"clerk-js",l,"clerk.browser.js"):`https://${bR({publishableKey:s,proxyUrl:r,domain:a})}/npm/@clerk/clerk-js@${l}/dist/clerk.browser.js`},TG=e=>{const{__internal_clerkUIUrl:t,__internal_clerkUIVersion:n,proxyUrl:r,domain:a,publishableKey:s}=e;if(t)return t;const l=mR(n,"1.29.1");return r&&Ph(r)?vR(r,"ui",l,"ui.browser.js"):`https://${bR({publishableKey:s,proxyUrl:r,domain:a})}/npm/@clerk/ui@${l}/dist/ui.browser.js`},gR=e=>{const t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},_G=e=>gR(e),yR=e=>t=>{for(const n in e)t.setAttribute(n,e[n])},OG=e=>{for(;e.endsWith("/");)e=e.slice(0,-1);return e},vR=(e,t,n,r)=>`${OG(e)}/npm/@clerk/${t}@${n}/dist/${r}`,bR=e=>{const{proxyUrl:t,domain:n,publishableKey:r}=e;if(t&&vG(t)){const a=wG(t);return Ph(a)?Rb(r)?.frontendApi||"":a.replace(/http(s)?:\/\//,"")}else return n&&!kG(Rb(r)?.frontendApi||"")?jG(n):Rb(r)?.frontendApi||""};function Tx(e,t,n,r){return new Promise((a,s)=>{let l=!1;const u=(g,y)=>{clearTimeout(g),clearInterval(y)};r?.addEventListener("error",()=>{u(m,p),s(n)});const d=()=>{l||t()&&(l=!0,u(m,p),a(null))},m=setTimeout(()=>{l||(l=!0,u(m,p),t()?a(null):s(n))},e);d();const p=setInterval(()=>{if(l){clearInterval(p);return}d()},100)})}function PG(e){bj.setPackageName({packageName:e})}
22const tT=new Set,i0=(e,t,n)=>{const r=sH()||oH(),a=e;tT.has(a)||r||(tT.add(a),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release. 23${t}`))},nT=(e,t,n,r,a)=>{const{notify:s}=a||{};let l=e.get(n);l||(l=[],e.set(n,l)),l.push(r),s&&t.has(n)&&r(t.get(n))},rT=(e,t,n)=>(e.get(t)||[]).map(r=>r(n)),iT=(e,t,n)=>{const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},MG=()=>{const e=new Map,t=new Map,n=new Map;return{on:(...a)=>nT(e,t,...a),prioritizedOn:(...a)=>nT(n,t,...a),emit:(a,s)=>{t.set(a,s),rT(n,a,s),rT(e,a,s)},off:(...a)=>iT(e,...a),prioritizedOff:(...a)=>iT(n,...a),internal:{retrieveListeners:a=>e.get(a)||[]}}},Vc={Status:"status"},RG=()=>MG(),DG="clerk:beforeunload",mw=["http:","https:","wails:","chrome-extension:"],IG=/^[/\\][/\\]/;function LG(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;let n="";for(let r=t;r<e.length;r++){const a=e.charCodeAt(r);a!==9&&a!==10&&a!==13&&(n+=e[r])}return n}function $G(e,t){if(typeof e=="string"&&IG.test(LG(e))){console.warn(`Clerk: scheme-relative navigation to "${e}" is not allowed. Provide a same-origin path or an absolute URL.`);return}const n=new URL(e,window.location.href);if(!(t?.allowedProtocols??mw).includes(n.protocol)){console.warn(`Clerk: "${n.protocol}" is not a valid navigation protocol. Aborting navigation. If you think this is a mistake, please open an issue.`);return}window.dispatchEvent(new CustomEvent(DG)),window.location.href=n.href}function BG(e){const t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(!t)return null;const[,n,r,a]=t;return{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(a,10)}}function FG(e,t){const{major:n,minor:r,patch:a}=e;return t.some(([s,l,u,d])=>n!==s?!1:u===-1?r>l||r===l&&a>=d:r===u&&a>=d)}function UG(e,t){const n=BG(e);return n?FG(n,t):!1}St(({clerk:e,...t})=>{const{client:n,session:r}=e,a=(n.signedInSessions?.length??0)>0;return z.useEffect(()=>{r===null&&a?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");St(({clerk:e,...t})=>(z.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");St(({clerk:e,...t})=>(z.useEffect(()=>{e.redirectToTasks(t)},[]),null),"RedirectToTasks");St(({clerk:e})=>(z.useEffect(()=>{i0("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");St(({clerk:e})=>(z.useEffect(()=>{i0("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");St(({clerk:e})=>(z.useEffect(()=>{i0("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");St(({clerk:e,...t})=>(z.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");const zG=()=>({fields:{identifier:null,password:null,code:null},raw:null,global:null}),VG=()=>({fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null}),WG=()=>({fields:{emailAddress:null},raw:null,global:null}),aT=()=>({pathRoot:"",attempts:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient(){return!1},reload(){throw new Error("reload() called before Clerk is loaded")},__internal_toSnapshot(){return{object:"verification",id:"",attempts:null,error:{code:"",message:""},expire_at:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verified_at_client:null}}}),kp=()=>({...aT(),supportedStrategies:[],nextAction:"",reload(){throw new Error("reload() called before Clerk is loaded")},__internal_toSnapshot(){return{...aT().__internal_toSnapshot(),next_action:this.nextAction,supported_strategies:this.supportedStrategies}}});var qG=class{constructor(e){this.isomorphicClerk=e,this.signInSignalProxy=this.buildSignInProxy(),this.signUpSignalProxy=this.buildSignUpProxy(),this.waitlistSignalProxy=this.buildWaitlistProxy()}signInSignal(){return this.signInSignalProxy}signUpSignal(){return this.signUpSignalProxy}waitlistSignal(){return this.waitlistSignalProxy}get __internal_waitlist(){return this.state.__internal_waitlist}checkoutSignal(e){return this.buildCheckoutProxy(e)}buildSignInProxy(){const e=this.gateProperty.bind(this),t=()=>this.client.signIn.__internal_future;return{errors:zG(),fetchStatus:"idle",signIn:{status:"needs_identifier",availableStrategies:[],get isTransferable(){return e(t,"isTransferable",!1)},get id(){return e(t,"id",void 0)}
23,get supportedFirstFactors(){return e(t,"supportedFirstFactors",[])},get supportedSecondFactors(){return e(t,"supportedSecondFactors",[])},get secondFactorVerification(){return e(t,"secondFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},get identifier(){return e(t,"identifier",null)},get createdSessionId(){return e(t,"createdSessionId",null)},get userData(){return e(t,"userData",{})},get firstFactorVerification(){return e(t,"firstFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},get canBeDiscarded(){return e(t,"canBeDiscarded",!1)},get protectCheck(){return e(t,"protectCheck",null)},create:this.gateMethod(t,"create"),password:this.gateMethod(t,"password"),sso:this.gateMethod(t,"sso"),finalize:this.gateMethod(t,"finalize"),reset:this.gateMethod(t,"reset"),submitProtectCheck:this.gateMethod(t,"submitProtectCheck"),emailCode:this.wrapMethods(()=>t().emailCode,["sendCode","verifyCode"]),emailLink:this.wrapStruct(()=>t().emailLink,["sendLink","waitForVerification"],["verification"],{verification:null}),resetPasswordEmailCode:this.wrapMethods(()=>t().resetPasswordEmailCode,["sendCode","verifyCode","submitPassword"]),resetPasswordPhoneCode:this.wrapMethods(()=>t().resetPasswordPhoneCode,["sendCode","verifyCode","submitPassword"]),phoneCode:this.wrapMethods(()=>t().phoneCode,["sendCode","verifyCode"]),mfa:this.wrapMethods(()=>t().mfa,["sendPhoneCode","verifyPhoneCode","sendEmailCode","verifyEmailCode","verifyTOTP","verifyBackupCode"]),ticket:this.gateMethod(t,"ticket"),passkey:this.gateMethod(t,"passkey"),web3:this.gateMethod(t,"web3")}}}buildSignUpProxy(){const e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),n=()=>this.client.signUp.__internal_future;return{errors:VG(),fetchStatus:"idle",signUp:{get id(){return e(n,"id",void 0)},get requiredFields(){return e(n,"requiredFields",[])},get optionalFields(){return e(n,"optionalFields",[])},get missingFields(){return e(n,"missingFields",[])},get username(){return e(n,"username",null)},get firstName(){return e(n,"firstName",null)},get lastName(){return e(n,"lastName",null)},get emailAddress(){return e(n,"emailAddress",null)},get phoneNumber(){return e(n,"phoneNumber",null)},get web3Wallet(){return e(n,"web3Wallet",null)},get hasPassword(){return e(n,"hasPassword",!1)},get unsafeMetadata(){return e(n,"unsafeMetadata",{})},get createdSessionId(){return e(n,"createdSessionId",null)},get createdUserId(){return e(n,"createdUserId",null)},get abandonAt(){return e(n,"abandonAt",null)},get legalAcceptedAt(){return e(n,"legalAcceptedAt",null)},get locale(){return e(n,"locale",null)},get status(){return e(n,"status","missing_requirements")},get unverifiedFields(){return e(n,"unverifiedFields",[])},get isTransferable(){return e(n,"isTransferable",!1)},get canBeDiscarded(){return e(n,"canBeDiscarded",!1)},get protectCheck(){return e(n,"protectCheck",null)},create:t(n,"create"),update:t(n,"update"),sso:t(n,"sso"),password:t(n,"password"),ticket:t(n,"ticket"),web3:t(n,"web3"),finalize:t(n,"finalize"),reset:t(n,"reset"),submitProtectCheck:t(n,"submitProtectCheck"),verifications:this.wrapStruct(()=>n().verifications,["sendEmailCode","verifyEmailCode","sendEmailLink","waitForEmailLinkVerification","sendPhoneCode","verifyPhoneCode"],["emailAddress","phoneNumber","web3Wallet","externalAccount","emailLinkVerification"],{emailAddress:kp(),phoneNumber:kp(),web3Wallet:kp(),externalAccount:kp(),emailLinkVerification:null})}}}buildWaitlistProxy(){const e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),n=()=>this.state.__internal_waitlist;return{errors:WG(),fetchStatus:"idle",waitlist:{pathRoot:"/waitlist",get id(){return e(n,"id","")},get createdAt(){return e(n,"createdAt",null)},get updatedAt(){return e(n,"updatedAt",null)},join:t(n,"join"),reload:t(n,"reload")}}}buildCheckoutProxy(e){const t=this.gateProperty.bind(this),n=()=>this.checkout(e),r=()=>n().checkout;return{errors:{raw:null,global:null},fetchStatus:"idle",checkout:{get status(){return t(r,"status","needs_initialization")},get externalClientSecret(){return t(r,"externalClientSecret",null)},get externalGatewayId(){return t(r,"externalGatewayId",null)},get paymentMethod(){return t(r,"paymentMethod",null)},get plan(){return t(r,"plan",null)},get planPeriod(){return t(r,"planPeriod",null)},get totals(){return t(r,"totals",null)},get isImmediatePlanChange(){return t(r,"isImmediatePlanChange",!1)},get freeTrialEndsAt(){return t(r,"freeTrialEndsAt",null)},get payer(){return t(r,"payer",null)},get planPeriodStart(){return t(r,"planPeriodStart",null)},get needsPaymentMethod(){return t(r,"needsPaymentMethod",null)},start:this.gateMethod(r,"start"),confirm:this.gateMethod(r,"confirm"),finalize:this.gateMethod(r,"finalize")}}}__internal_effect(e){throw new Error("__internal_effect called before Clerk is loaded")}__internal_computed(e){throw new Error("__internal_computed called before Clerk is loaded")}get state(){const e=this.isomorphicClerk.__internal_state;if(!e)throw new Error("Clerk state not ready");return e}get client(){const e=this.isomorphicClerk.client;if(!e)throw new Error("Clerk client not ready");return e}get checkout(){const e=this.isomorphicClerk.__experimental_checkout;if(!e)throw new Error("Clerk checkout not ready");return e}gateProperty(e,t,n){return!Ff()||!this.isomorphicClerk.loaded?n:e()[t]}gateMethod(e,t){return(async(...n)=>{if(!Ff())return vo.throw(`Attempted to call a method (${t}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(a=>this.isomorphicClerk.addOnLoaded(a));const r=e();return r[t].apply(r,n)})}wrapMethods(e,t){return Object.fromEntries(t.map(n=>[n,this.gateMethod(e,n)]))}wrapStruct(e,t,n,r){const a={};for(const s of t)a[s]=this.gateMethod(e,s);for(const s of n)Object.defineProperty(a,s,{get:()=>this.gateProperty(e,s,r[s]),enumerable:!0});return a}};typeof globalThis.__BUILD_DISABLE_RHC__>"u"&&(globalThis.__BUILD_DISABLE_RHC__=!1);const HG={name:"@clerk/react",version:"6.13.1",environment:"production"};var sT=class wR{#e;#t;#n;#i;#r;#o;get publishableKey(){return this.#i}get loaded(){return this.clerkjs?.loaded||!1}get status(){return this.clerkjs?this.clerkjs?.status||(this.clerkjs.loaded?"ready":"loading"):this.#e}static#a;static getOrCreateInstance(t){return(!Ff()||!this.#a||t.Clerk&&this.#a.Clerk!==t.Clerk||this.#a.publishableKey!==t.publishableKey)&&(this.#a=new wR(t)),this.#a}static clearInstance(){this.#a=null}get domain(){return typeof window<"u"&&window.location?Lb(this.#t,new URL(window.location.href),""):typeof this.#t=="function"?vo.throw($b):this.#t||""}get proxyUrl(){return typeof window<"u"&&window.location?Lb(this.#n,new URL(window.location.href),""):typeof this.#n=="function"?vo.throw($b):this.#n||""}__internal_getOption(t){return this.clerkjs?.__internal_getOption?this.clerkjs?.__internal_getOption(t):this.options[t]}get __internal_moduleManager(){return this.clerkjs?.__internal_moduleManager}constructor(t){this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenEnableOrganizationsPrompt=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSubscriptionDetail
23s=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenInviteMembers=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSignInNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserAvatarNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountAPIKeysNodes=new Map,this.premountConfigureSSONodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountTaskChooseOrganizationNodes=new Map,this.premountTaskResetPasswordNodes=new Map,this.premountTaskSetupMFANodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],this.#e="loading",this.#r=RG(),this.__internal_windowNavigate=(n,r)=>{const a=this.clerkjs;if(typeof a?.__internal_windowNavigate=="function"){a.__internal_windowNavigate(n,r);return}Ff()&&$G(n,{allowedProtocols:r?.useStaticAllowlistOnly?mw:[...mw,...this.options.allowedRedirectProtocols??[]]})},this.buildSignInUrl=n=>{const r=()=>this.clerkjs?.buildSignInUrl(n)||"";if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("buildSignInUrl",r)},this.buildSignUpUrl=n=>{const r=()=>this.clerkjs?.buildSignUpUrl(n)||"";if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("buildSignUpUrl",r)},this.buildAfterSignInUrl=(...n)=>{const r=()=>this.clerkjs?.buildAfterSignInUrl(...n)||"";if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("buildAfterSignInUrl",r)},this.buildAfterSignUpUrl=(...n)=>{const r=()=>this.clerkjs?.buildAfterSignUpUrl(...n)||"";if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("buildAfterSignUpUrl",r)},this.buildAfterSignOutUrl=()=>{const n=()=>this.clerkjs?.buildAfterSignOutUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildAfterSignOutUrl",n)},this.buildNewSubscriptionRedirectUrl=()=>{const n=()=>this.clerkjs?.buildNewSubscriptionRedirectUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",n)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{const n=()=>this.clerkjs?.buildAfterMultiSessionSingleSignOutUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",n)},this.buildUserProfileUrl=()=>{const n=()=>this.clerkjs?.buildUserProfileUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildUserProfileUrl",n)},this.buildCreateOrganizationUrl=()=>{const n=()=>this.clerkjs?.buildCreateOrganizationUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildCreateOrganizationUrl",n)},this.buildOrganizationProfileUrl=()=>{const n=()=>this.clerkjs?.buildOrganizationProfileUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildOrganizationProfileUrl",n)},this.buildWaitlistUrl=()=>{const n=()=>this.clerkjs?.buildWaitlistUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildWaitlistUrl",n)},this.buildTasksUrl=()=>{const n=()=>this.clerkjs?.buildTasksUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildTasksUrl",n)},this.buildUrlWithAuth=n=>{const r=()=>this.clerkjs?.buildUrlWithAuth(n)||"";if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("buildUrlWithAuth",r)},this.handleUnauthenticated=async()=>{const n=()=>this.clerkjs?.handleUnauthenticated();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("handleUnauthenticated",n)},this.on=(...n)=>{if(this.clerkjs?.on)return this.clerkjs.on(...n);this.#r.on(...n)},this.off=(...n)=>{if(this.clerkjs?.off)return this.clerkjs.off(...n);this.#r.off(...n)},this.addOnLoaded=n=>{this.loadedListeners.push(n),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>
23{this.loadedListeners.forEach(n=>n()),this.loadedListeners=[]},this.beforeLoad=n=>{if(!n)throw new Error("Failed to hydrate latest Clerk JS")},this.replayInterceptedInvocations=n=>{if(!n)throw new Error("Failed to hydrate latest Clerk JS");return this.clerkjs=n,this.premountMethodCalls.forEach(r=>r()),this.premountAddListenerCalls.forEach((r,a)=>{r.handlers.nativeUnsubscribe=n.addListener(a,r.options)}),this.#r.internal.retrieveListeners("status")?.forEach(r=>{this.on("status",r,{notify:!0})}),this.preopenSignIn!==null&&n.openSignIn(this.preopenSignIn),this.preopenCheckout!==null&&n.__internal_openCheckout(this.preopenCheckout),this.preopenPlanDetails!==null&&n.__internal_openPlanDetails(this.preopenPlanDetails),this.preopenSubscriptionDetails!==null&&n.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),this.preopenSignUp!==null&&n.openSignUp(this.preopenSignUp),this.preopenUserProfile!==null&&n.openUserProfile(this.preopenUserProfile),this.preopenUserVerification!==null&&n.__internal_openReverification(this.preopenUserVerification),this.preopenOneTap!==null&&n.openGoogleOneTap(this.preopenOneTap),this.preopenOrganizationProfile!==null&&n.openOrganizationProfile(this.preopenOrganizationProfile),this.preopenInviteMembers!==null&&n.openInviteMembers(this.preopenInviteMembers),this.preopenCreateOrganization!==null&&n.openCreateOrganization(this.preopenCreateOrganization),this.preOpenWaitlist!==null&&n.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&n.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((r,a)=>{n.mountSignIn(a,r)}),this.premountSignUpNodes.forEach((r,a)=>{n.mountSignUp(a,r)}),this.premountUserProfileNodes.forEach((r,a)=>{n.mountUserProfile(a,r)}),this.premountUserAvatarNodes.forEach((r,a)=>{n.mountUserAvatar(a,r)}),this.premountUserButtonNodes.forEach((r,a)=>{n.mountUserButton(a,r)}),this.premountOrganizationListNodes.forEach((r,a)=>{n.mountOrganizationList(a,r)}),this.premountWaitlistNodes.forEach((r,a)=>{n.mountWaitlist(a,r)}),this.premountPricingTableNodes.forEach((r,a)=>{n.mountPricingTable(a,r)}),this.premountAPIKeysNodes.forEach((r,a)=>{n.mountAPIKeys(a,r)}),this.premountConfigureSSONodes.forEach((r,a)=>{n.__internal_mountConfigureSSO(a,r)}),this.premountOAuthConsentNodes.forEach((r,a)=>{n.__internal_mountOAuthConsent(a,r)}),this.premountTaskChooseOrganizationNodes.forEach((r,a)=>{n.mountTaskChooseOrganization(a,r)}),this.premountTaskResetPasswordNodes.forEach((r,a)=>{n.mountTaskResetPassword(a,r)}),this.premountTaskSetupMFANodes.forEach((r,a)=>{n.mountTaskSetupMFA(a,r)}),typeof this.clerkjs.status>"u"&&this.#r.emit(Vc.Status,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...n)=>this.loaded&&this.clerkjs?this.clerkjs.__experimental_checkout(...n):this.#o.checkoutSignal(...n),this.__internal_updateProps=async n=>{const r=await this.#s();if(r&&"__internal_updateProps"in r)return r.__internal_updateProps(n)},this.setActive=n=>this.clerkjs?this.clerkjs.setActive(n):Promise.reject(),this.openSignIn=n=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(n):this.preopenSignIn=n},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(n):this.preopenCheckout=n},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(n):this.preopenPlanDetails=n},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openSubscriptionDetails=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(n):this.preopenSubscriptionDetails=n??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetails():this.preopenSubscriptionDetail
23s=null},this.__internal_openReverification=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(n):this.preopenUserVerification=n},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(n):this.preopenEnableOrganizationsPrompt=n},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=n=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(n):this.preopenOneTap=n},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(n):this.preopenUserProfile=n},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(n):this.preopenOrganizationProfile=n},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openInviteMembers=n=>{this.clerkjs&&this.loaded?this.clerkjs.openInviteMembers(n):this.preopenInviteMembers=n},this.closeInviteMembers=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeInviteMembers():this.preopenInviteMembers=null},this.openCreateOrganization=n=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(n):this.preopenCreateOrganization=n},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=n=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(n):this.preOpenWaitlist=n},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=n=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(n):this.preopenSignUp=n},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(n,r):this.premountSignInNodes.set(n,r)},this.unmountSignIn=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(n):this.premountSignInNodes.delete(n)},this.mountSignUp=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(n,r):this.premountSignUpNodes.set(n,r)},this.unmountSignUp=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(n):this.premountSignUpNodes.delete(n)},this.mountUserAvatar=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(n,r):this.premountUserAvatarNodes.set(n,r)},this.unmountUserAvatar=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(n):this.premountUserAvatarNodes.delete(n)},this.mountUserProfile=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(n,r):this.premountUserProfileNodes.set(n,r)},this.unmountUserProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(n):this.premountUserProfileNodes.delete(n)},this.mountOrganizationProfile=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(n,r):this.premountOrganizationProfileNodes.set(n,r)},this.unmountOrganizationProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(n):this.premountOrganizationProfileNodes.delete(n)},this.mountCreateOrganization=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(n,r):this.premountCreateOrganizationNodes.set(n,r)},this.unmountCreateOrganization=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(n):this.premountCreateOrganizationNodes.delete(n)},this.mountOrganizationSwitcher=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(n,r):this.premountOrganizationSwitcherNodes.set(n,r)},this.unmountOrganizationSwitcher=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(n):this.premountOrganizationSwitcherNodes.delete(n)},this.__experimental_prefetchOrganizationSwitcher=()=>{const n=()=>this.clerkjs?.__experimental_prefetchOrganizationSwitcher();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",n)},this.mountOrganizationList=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(n,r):this.premountOrganizationListNodes.set(n,r)},this.unmountOrganizationList=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(n):this.premountOrganizationListNodes.delete(n)},this.mountUserButton=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(n,r):this.premountUserButtonNodes.set(n,r)},this.unmountUserButton=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(n):this.premountUserButtonNodes.delete(n)},this.mountWaitlist=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(n,r):this.premountWaitlistNodes.set(n,r)},this.unmountWaitlist=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(n):this.premountWaitlistNodes.delete(n)},this.mountPricingTable=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(n,r):this.premountPricingTableNodes.set(n,r)},this.unmountPricingTable=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(n):this.premountPricingTableNodes.delete(n)},this.mountAPIKeys=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(n,r):this.premountAPIKeysNodes.set(n,r)},this.unmountAPIKeys=n=>
23{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(n):this.premountAPIKeysNodes.delete(n)},this.__internal_mountConfigureSSO=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountConfigureSSO(n,r):this.premountConfigureSSONodes.set(n,r)},this.__internal_unmountConfigureSSO=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountConfigureSSO(n):this.premountConfigureSSONodes.delete(n)},this.__internal_mountOAuthConsent=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(n,r):this.premountOAuthConsentNodes.set(n,r)},this.__internal_unmountOAuthConsent=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(n):this.premountOAuthConsentNodes.delete(n)},this.mountOAuthConsent=(n,r)=>{this.__internal_mountOAuthConsent(n,r)},this.unmountOAuthConsent=n=>{this.__internal_unmountOAuthConsent(n)},this.mountTaskChooseOrganization=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(n,r):this.premountTaskChooseOrganizationNodes.set(n,r)},this.unmountTaskChooseOrganization=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(n):this.premountTaskChooseOrganizationNodes.delete(n)},this.mountTaskResetPassword=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(n,r):this.premountTaskResetPasswordNodes.set(n,r)},this.unmountTaskResetPassword=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(n):this.premountTaskResetPasswordNodes.delete(n)},this.mountTaskSetupMFA=(n,r)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskSetupMFA(n,r):this.premountTaskSetupMFANodes.set(n,r)},this.unmountTaskSetupMFA=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskSetupMFA(n):this.premountTaskSetupMFANodes.delete(n)},this.addListener=(n,r)=>{if(this.clerkjs)return this.clerkjs.addListener(n,r);{const a=()=>{const s=this.premountAddListenerCalls.get(n);s?.handlers&&(s?.handlers.nativeUnsubscribe?.(),this.premountAddListenerCalls.delete(n))};return this.premountAddListenerCalls.set(n,{options:r,handlers:{unsubscribe:a,nativeUnsubscribe:void 0}}),a}},this.navigate=n=>{const r=()=>this.clerkjs?.navigate(n);this.clerkjs&&this.loaded?r():this.premountMethodCalls.set("navigate",r)},this.redirectWithAuth=async(...n)=>{const r=()=>this.clerkjs?.redirectWithAuth(...n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("redirectWithAuth",r)},this.redirectToSignIn=async n=>{const r=()=>this.clerkjs?.redirectToSignIn(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("redirectToSignIn",r)},this.redirectToSignUp=async n=>{const r=()=>this.clerkjs?.redirectToSignUp(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("redirectToSignUp",r)},this.redirectToUserProfile=async()=>{const n=()=>this.clerkjs?.redirectToUserProfile();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToUserProfile",n)},this.redirectToAfterSignUp=()=>{const n=()=>this.clerkjs?.redirectToAfterSignUp();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToAfterSignUp",n)},this.redirectToAfterSignIn=()=>{const n=()=>this.clerkjs?.redirectToAfterSignIn();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("redirectToAfterSignIn",n)},this.redirectToAfterSignOut=()=>{const n=()=>this.clerkjs?.redirectToAfterSignOut();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("redirectToAfterSignOut",n)},this.redirectToOrganizationProfile=async()=>{const n=()=>this.clerkjs?.redirectToOrganizationProfile();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToOrganizationProfile",n)},this.redirectToCreateOrganization=async()=>{const n=()=>this.clerkjs?.redirectToCreateOrganization();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToCreateOrganization",n)},this.redirectToWaitlist=async()=>{const n=()=>this.clerkjs?.redirectToWaitlist();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToWaitlist",n)},this.redirectToTasks=async n=>{const r=()=>this.clerkjs?.redirectToTasks(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("redirectToTasks",r)},this.handleRedirectCallback=async n=>{const r=()=>this.clerkjs?.handleRedirectCallback(n);this.clerkjs&&this.loaded?r()?.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",r)},this.handleGoogleOneTapCallback=async(n,r)=>{const a=()=>this.clerkjs?.handleGoogleOneTapCallback(n,r);this.clerkjs&&this.loaded?a()?.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",a)},this.__internal_handleResourceCallback=async(n,r,a)=>{const s=()=>this.clerkjs?.__internal_handleResourceCallback(n,r,a);if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("__internal_handleResourceCallback",s)},this.handleEmailLinkVerification=async n=>{const r=()=>this.clerkjs?.handleEmailLinkVerification(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("handleEmailLinkVerification",r)},this.authenticateWithMetamask=async n=>{const r=()=>this.clerkjs?.authenticateWithMetamask(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("authenticateWithMetamask",r)},this.authenticateWithCoinbaseWallet=async n=>{const r=()=>this.clerkjs?.authenticateWithCoinbaseWallet(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",r)},this.authenticateWithBase=async n=>{const r=()=>this.clerkjs?.authenticateWithBase(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("authenticateWithBase",r)},this.authenticateWithOKXWallet=async n=>{const r=()=>this.clerkjs?.authenticateWithOKXWallet(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("authenticateWithOKXWallet",r)},this.authenticateWithSolana=async n=>{const r=()=>this.clerkjs?.authenticateWithSolana(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("authenticateWithSolana",r)},this.authenticateWithWeb3=async n=>{const r=()=>this.clerkjs?.authenticateWithWeb3(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("authenticateWithWeb3",r)},this.authenticateWithGoogleOneTap=async n=>(await this.#s()).authenticateWithGoogleOneTap(n),this.__internal_loadStripeJs=async()=>(await this.#s()).__internal_loadStripeJs(),this.createOrganization=async n=>{const r=()=>this.clerkjs?.createOrganization(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("createOrganization",r)},this.getOrganization=async n=>{const r=()=>this.clerkjs?.getOrganization(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("getOrganization",r)},this.joinWaitlist=async n=>{const r=()=>
23this.clerkjs?.joinWaitlist(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("joinWaitlist",r)},this.signOut=async(...n)=>{const r=()=>this.clerkjs?.signOut(...n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("signOut",r)},this.__internal_attemptToEnableEnvironmentSetting=n=>{const r=()=>this.clerkjs?.__internal_attemptToEnableEnvironmentSetting(n);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",r)},this.#i=t?.publishableKey,this.#n=t?.proxyUrl,this.#t=t?.domain,this.options=t,this.Clerk=t?.Clerk||null,this.mode=Ff()?"browser":"server",this.#o=new qG(this),this.options.sdkMetadata||(this.options.sdkMetadata=HG),this.#r.emit(Vc.Status,"loading"),this.#r.prioritizedOn(Vc.Status,n=>this.#e=n),this.#i&&this.options.experimental?.runtimeEnvironment==="headless"&&this.options.Clerk?this.loadHeadlessClerk():this.#i&&this.getEntryChunks()}loadHeadlessClerk(){const t=Y5(this.options.Clerk)?new this.options.Clerk(this.#i,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk;if(!t){this.#r.emit(Vc.Status,"error");return}const n=()=>{this.replayInterceptedInvocations(t)};t.loaded?n():t.load(this.options).then(()=>n()).catch(r=>{this.#r.emit(Vc.Status,"error"),this.emitLoaded()})}get sdkMetadata(){return this.clerkjs?.sdkMetadata||this.options.sdkMetadata||void 0}get instanceType(){return this.clerkjs?.instanceType}get frontendApi(){return this.clerkjs?.frontendApi||""}get isStandardBrowser(){return this.clerkjs?.isStandardBrowser||this.options.standardBrowser||!1}get isSatellite(){return typeof window<"u"&&window.location?Lb(this.options.isSatellite,new URL(window.location.href),!1):typeof this.options.isSatellite=="function"?vo.throw($b):!1}#s(){return new Promise(t=>{this.addOnLoaded(()=>t(this.clerkjs))})}async getEntryChunks(){if(!(this.mode!=="browser"||this.loaded)){typeof window<"u"&&(window.__clerk_publishable_key=this.#i,window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{const t=await this.getClerkJsEntryChunk();if(!t.loaded){this.beforeLoad(t);const n=this.options.standardBrowser!==!1&&!this.options.Clerk||this.options.ui?.ClerkUI?await this.getClerkUIEntryChunk():void 0;await t.load({...this.options,ui:{...this.options.ui,ClerkUI:n}})}t.loaded&&this.replayInterceptedInvocations(t)}catch(t){const n=t;this.#r.emit(Vc.Status,"error"),console.error(n.stack||n.message||n);return}}}async getClerkJsEntryChunk(){if((!this.options.Clerk||this.options.__internal_clerkJSUrl)&&!__BUILD_DISABLE_RHC__&&await AG({...this.options,publishableKey:this.#i,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),this.options.Clerk&&!this.options.__internal_clerkJSUrl&&(globalThis.Clerk=Y5(this.options.Clerk)?new this.options.Clerk(this.#i,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk),!globalThis.Clerk)throw new Error("Failed to download latest ClerkJS. Contact [email protected].");return globalThis.Clerk}async getClerkUIEntryChunk(){const t=this.options.ui,n=!!this.options.__internal_clerkUIUrl;if(t?.ClerkUI&&!n)return t.ClerkUI;if(!((t||this.options.prefetchUI===!1)&&!n)&&!__BUILD_DISABLE_RHC__){if(await CG({...this.options,publishableKey:this.#i,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!globalThis.__internal_ClerkUICtor)throw new Error("Failed to download latest Clerk UI. Contact [email protected].");return globalThis.__internal_ClerkUICtor}}get version(){return this.clerkjs?.version}get uiVersion(){return this.clerkjs?.uiVersion}get client(){if(this.clerkjs)return this.clerkjs.client}get session(){if(this.clerkjs)return this.clerkjs.session}get user(){if(this.clerkjs)return this.clerkjs.user}get organization(){if(this.clerkjs)return this.clerkjs.organization}get telemetry(){if(this.clerkjs)return this.clerkjs.telemetry}get __internal_environment(){if(this.clerkjs)return this.clerkjs.__internal_environment}get isSignedIn(){return this.clerkjs?this.clerkjs.isSignedIn:!1}get billing(){return this.clerkjs?.billing}get __internal_state(){return this.loaded&&this.clerkjs?this.clerkjs.__internal_state:this.#o}get apiKeys(){return this.clerkjs?.apiKeys}get oauthApplication(){return this.clerkjs?.oauthApplication}__internal_setEnvironment(...t){if(this.clerkjs&&"__internal_setEnvironment"in this.clerkjs)this.clerkjs.__internal_setEnvironment(t);else return}get __internal_lastEmittedResources(){return this.clerkjs?.__internal_lastEmittedResources}get __internal_hasOAuthTransport(){return this.clerkjs?.__internal_hasOAuthTransport||!1}get __internal_oauthTransport(){return this.clerkjs?.__internal_oauthTransport||null}};function GG(){try{return UG(z.version,[[18,0,-1,0],[19,0,0,3],[19,1,1,4],[19,2,2,3],[19,3,3,0]])}catch{return!1}}const KG=GG();function YG(e){const{initialState:t,children:n,...r}=e,{isomorphicClerk:a,clerkStatus:s}=ZG(JH(r));return z.createElement(NH,{initialState:t,clerk:a,clerkStatus:s},n)}function QG(e){return z.useContext(gj)&&vo.throw(DH),z.createElement(YG,e)}const jR=QG;jR.displayName="ClerkProvider";const XG=KG?"shared":"",ZG=e=>{const t=z.useMemo(()=>({clerkUIVariant:XG,...e}),[e]),n=z.useRef(sT.getOrCreateInstance(t)),[r,a]=z.useState(n.current.status);return z.useEffect(()=>{n.current.__internal_updateProps({appearance:e.appearance})},[e.appearance]),z.useEffect(()=>{n.current.__internal_updateProps({options:e})},[e.localization]),z.useEffect(()=>(n.current.on("status",a),()=>{n.current&&n.current.off("status",a),sT.clearInstance()}),[]),{isomorphicClerk:n.current,clerkStatus:r}};typeof window<"u"&&!window.global&&(window.global=typeof global>"u"?window:global);if(globalThis.__clerkSharedModules){const e=globalThis.__clerkSharedModules.react?.ver
23sion;e&&e!==v.version&&console.warn(`[@clerk/ui/register] React version mismatch detected. Already registered: ${e}, current import: ${v.version}. This may cause issues with the shared @clerk/ui variant.`)}else globalThis.__clerkSharedModules={react:Lu,"react-dom":RH,"react-dom/client":Kq,"react/jsx-runtime":Fq};St(({clerk:e,children:t,...n})=>{const{appearance:r,getContainer:a,component:s,...l}=n;t=Eh(t,"Invite members");const u=Ch(t)("InviteMembersButton"),d=()=>e.openInviteMembers({appearance:r,getContainer:a}),m={...l,onClick:async p=>(u&&typeof u=="object"&&"props"in u&&await Th(u.props.onClick)(p),d())};return z.cloneElement(u,m)},{component:"InviteMembersButton",renderWhileLoading:!0});St(({clerk:e,children:t,...n})=>{const{appearance:r,getContainer:a,component:s,signUpFallbackRedirectUrl:l,forceRedirectUrl:u,fallbackRedirectUrl:d,signUpForceRedirectUrl:f,mode:m,initialValues:p,withSignUp:g,oauthFlow:y,...w}=n;t=Eh(t,"Sign in");const b=Ch(t)("SignInButton"),N=()=>{const A={forceRedirectUrl:u,fallbackRedirectUrl:d,signUpFallbackRedirectUrl:l,signUpForceRedirectUrl:f,initialValues:p,withSignUp:g,oauthFlow:y};return m==="modal"?e.openSignIn({...A,appearance:r,getContainer:a}):e.redirectToSignIn({...A,signInFallbackRedirectUrl:d,signInForceRedirectUrl:u})},C={...w,onClick:async A=>(b&&typeof b=="object"&&"props"in b&&await Th(b.props.onClick)(A),N())};return z.cloneElement(b,C)},{component:"SignInButton",renderWhileLoading:!0});St(({clerk:e,children:t,...n})=>{const{redirectUrl:r,getContainer:a,component:s,...l}=n;t=Eh(t,"Sign in with Metamask");const u=Ch(t)("SignInWithMetamaskButton"),d=async()=>{async function p(){await e.authenticateWithMetamask({redirectUrl:r||void 0})}p()},m={...l,onClick:async p=>(await Th(u.props.onClick)(p),d())};return z.cloneElement(u,m)},{component:"SignInWithMetamask",renderWhileLoading:!0});St(({clerk:e,children:t,...n})=>{const{redirectUrl:r="/",sessionId:a,signOutOptions:s,getContainer:l,component:u,...d}=n;s&&i0("SignOutButton `signOutOptions`","Use the `redirectUrl` and `sessionId` props directly instead."),t=Eh(t,"Sign out");const f=Ch(t)("SignOutButton"),m=()=>e.signOut({redirectUrl:r,...a!==void 0&&{sessionId:a},...s}),g={...d,onClick:async y=>(await Th(f.props.onClick)(y),m())};return z.cloneElement(f,g)},{component:"SignOutButton",renderWhileLoading:!0});St(({clerk:e,children:t,...n})=>{const{appearance:r,unsafeMetadata:a,getContainer:s,component:l,fallbackRedirectUrl:u,forceRedirectUrl:d,signInFallbackRedirectUrl:f,signInForceRedirectUrl:m,mode:p,initialValues:g,oauthFlow:y,...w}=n;t=Eh(t,"Sign up");const b=Ch(t)("SignUpButton"),N=()=>{const A={fallbackRedirectUrl:u,forceRedirectUrl:d,signInFallbackRedirectUrl:f,signInForceRedirectUrl:m,initialValues:g,oauthFlow:y};return p==="modal"?e.openSignUp({...A,appearance:r,unsafeMetadata:a,getContainer:s}):e.redirectToSignUp({...A,signUpFallbackRedirectUrl:u,signUpForceRedirectUrl:d})},C={...w,onClick:async A=>(b&&typeof b=="object"&&"props"in b&&await Th(b.props.onClick)(A),N())};return z.cloneElement(b,C)},{component:"SignUpButton",renderWhileLoading:!0});OH({packageName:"@clerk/react"});PG("@clerk/react");var Hb={exports:{}};const Bu=e=>({...e,__type:"prebuilt_appearance"}),JG=Object.freeze(Object.defineProperty({__proto__:null,experimental_createTheme:Bu},Symbol.toStringTag,{value:"Module"})),eK=q6(JG),NR=Bu({name:"dark",variables:{colorBackground:"#212126",colorNeutral:"white",colorPrimary:"#ffffff",colorPrimaryForeground:"black",colorForeground:"white",colorInputForeground:"white",colorInput:"#26262B"},elements:{providerIcon__apple:{filter:"invert(1)"},providerIcon__github:{filter:"invert(1)"},providerIcon__okx_wallet:{filter:"invert(1)"},providerIcon__vercel:{filter:"invert(1)"},activeDeviceIcon:{"--cl-chassis-bottom":"#d2d2d2","--cl-chassis-back":"#e6e6e6","--cl-chassis-screen":"#e6e6e6","--cl-screen":"#111111"}}}),tK=Bu({name:"shadesOfPurple",baseTheme:NR,variables:{colorBackground:"#3f3c77",colorPrimary:"#f8d80d",colorPrimaryForeground:"#38375f",colorInputForeground:"#a1fdfe",colorShimmer:"rgba(161,253,254,0.36)"}}
23),io={boxShadow:"3px 3px 0px #000",border:"2px solid #000","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"},"&:active":{boxShadow:"2px 2px 0px #000",transform:"translate(1px)"}},tl={boxShadow:"3px 3px 0px #000",border:"2px solid #000"},nK=Bu({name:"neobrutalism",simpleStyles:!0,variables:{colorPrimary:"#DF1B1B",colorShimmer:"rgba(255,255,255,0.64)",fontWeight:{normal:500,medium:600,bold:700}},elements:{cardBox:{boxShadow:"7px 7px 0px #000",border:"3px solid #000"},card:{borderRadius:"0"},headerSubtitle:{color:"#212126"},alternativeMethodsBlockButton:io,socialButtonsIconButton:{...io},selectButton:{...io,...tl,transition:"all 0.2s ease-in-out","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"}},socialButtonsBlockButton:{...io,color:"#212126"},profileSectionPrimaryButton:io,profileSectionItem:{color:"#212126"},avatarImageActionsUpload:io,menuButton:tl,menuList:tl,formButtonPrimary:io,navbarButton:io,formFieldAction:{fontWeight:"700"},formFieldInput:{...tl,transition:"all 0.2s ease-in-out","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"},"&:hover":{...tl,transform:"scale(1.01)"}},table:tl,tableHead:{color:"#212126"},dividerLine:{background:"#000"},dividerText:{fontWeight:"700",color:"#212126"},footer:{background:"#fff","& div":{color:"#212126"}},footerActionText:{color:"#212126"},footerActionLink:{fontWeight:"700",borderBottom:"3px solid","&:focus":{boxShadow:"none"}},actionCard:{...tl},badge:{border:"1px solid #000",background:"#fff",color:"#212126"}}}),rK=Bu({name:"shadcn",cssLayerName:"components",variables:{colorBackground:"var(--card)",colorDanger:"var(--destructive)",colorForeground:"var(--card-foreground)",colorInput:"var(--input)",colorInputForeground:"var(--card-foreground)",colorModalBackdrop:"var(--color-black)",colorMuted:"var(--muted)",colorMutedForeground:"var(--muted-foreground)",colorNeutral:"var(--foreground)",colorPrimary:"var(--primary)",colorPrimaryForeground:"var(--primary-foreground)",colorRing:"var(--ring)",fontWeight:{normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-semibold)"}},elements:{input:"bg-transparent dark:bg-input/30",cardBox:"shadow-sm border",popoverBox:"shadow-sm border",button:{'&[data-variant="solid"]::after':{display:"none"}},providerIcon__apple:"dark:invert",providerIcon__github:"dark:invert",providerIcon__okx_wallet:"dark:invert",providerIcon__vercel:"dark:invert"}}),iK=Bu({name:"simple",simpleStyles:!0}),aK=Object.freeze(Object.defineProperty({__proto__:null,dark:NR,experimental__simple:iK,neobrutalism:nK,shadcn:rK,shadesOfPurple:tK},Symbol.toStringTag,{value:"Module"})),sK=q6(aK);var oT;function oK(){return oT||(oT=1,(function(e){var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(f,m,p,g)=>{if(m&&typeof m=="object"||typeof m=="function")for(let y of r(m))!a.call(f,y)&&y!==p&&t(f,y,{get:()=>m[y],enumerable:!(g=n(m,y))||g.enumerable});return f},l=(f,m,p)=>(s(f,m,"default"),p&&s(p,m,"default")),u=f=>s(t({},"__esModule",{value:!0}),f),d={};e.exports=u(d),l(d,eK,e.exports),l(d,sK,e.exports)})(Hb)),Hb.exports}var lK=oK();function cK(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,s,l=[],u="",d=e.split("/");for(d[0]||d.shift();a=d.shift();)n=a[0],n==="*"?(l.push(n),u+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),s=a.indexOf(".",1),l.push(a.substring(1,~r?r:~s?s:a.length)),u+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(u+=(~r?"?":"")+"\\"+a.substring(s))):u+="/"+a;return{keys:l,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var Gb={exports:{}},Kb={};var lT;function uK(){if(lT)return Kb;lT=1;var e=Iu();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(p,g){var y=g(),w=r({inst:{value:y,getSnapshot:g}}),b=w[0].inst,N=w[1];return s(function(){b.value=y,b.getSnapshot=g,d(b)&&N({inst:b})},[p,y,g]),a(function(){return d(b)&&N({inst:b}),p(function(){d(b)&&N({inst:b})})},[p]),l(y),y}function d(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!n(p,y)}catch{return!0}}function f(p,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Kb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Kb}var cT;function SR(){return cT||(cT=1,Gb.exports=uK()),Gb.exports}var dK=SR();const fK=Lu.useInsertionEffect,hK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kR=hK?v.useLayoutEffect:v.useEffect,mK=fK||kR,wj=e=>{const t=v.useRef([e,(...n)=>t[0](...n)]).current;return mK(()=>{t[0]=e}),t[1]},pK="popstate",jj="pushState",Nj="replaceState",xK="hashchange",uT=[pK,jj,Nj,xK],gK=e=>{for(const t of uT)addEventListener(t,e);return()=>{for(const t of uT)removeEventListener(t,e)}},AR=(e,t)=>dK.useSyncExternalStore(gK,e,t),dT=()=>location.search,yK=({ssrSearch:e}={})=>AR(dT,e!=null?()=>e:dT),fT=()=>location.pathname,vK=({ssrPath:e}={})=>AR(fT,e!=null?()=>e:fT),bK=(e,{replace:t=!1,state:n=null}={})=>history[t?Nj:jj](n,"",e),wK=(e={})=>[vK(e),bK],hT=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[hT]>"u"){for(const e of[jj,Nj]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,hT,{value:!0})}const jK=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",CR=(e="")=>e==="/"?"":e,NK=(e,t)=>e[0]==="~"?e.slice(1):CR(t)+e,SK=(e="",t)=>jK(mT(CR(e)),mT(t)),mT=e=>{try{return decodeURI(e)}catch{return e}},ER={hook:wK,searchHook:yK,parser:cK,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,n)=>e(t,n)},TR=v.createContext(ER),Gl=()=>v.useContext(TR),_R={},OR=v.createContext(_R),Mh=()=>v.useContext(OR),Rh=e=>{const[t,n]=e.hook(e);return[SK(e.base,t),wj((r,a)=>e.aroundNav(n,NK(r,e.base),a))]},et=()=>Rh(Gl()),Sj=(e,t,n,r)=>{const{pattern:a,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(n)||[],[u,...d]=l;return u!==void 0?[!0,(()=>{const f=s!==!1?Object.fromEntries(s.map((p,g)=>[p,d[g]])):l.groups;let m={...d};return f&&Object.assign(m,f),m})(),...r?[u]:[]]:[!1,null]},kK=e=>Sj(Gl().parser,e,et()[0]),PR=({children:e,...t})=>{const n=Gl(),r=t.hook?ER:n;let a=r;const[s,l=t.ssrSearch??""]=t.ssrPath?.split("?")??[];s&&(t.ssrSearch=l,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let u=v.useRef({}),d=u.current,f=d;for(let m in r){const p=m==="base"?r[m]+(t[m]??""):t[m]??r[m];d===f&&p!==f[m]&&(u.current=f={...f}),f[m]=p,(p!==r[m]||p!==a[m])&&(a=f)}return v.createElement(TR.Provider,{value:a,children:e})},pT=({children:e,component:t},n)=>t?v.createElement(t,{params:n}):typeof e=="function"?e(n):e,AK=e=>{let t=v.useRef(_R);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},Ue=({path:e,nest:t,match:n,...r})=>{const a=Gl(),[s]=Rh(a),[l,u,d]=n??Sj(a.parser,e,s,t),f=AK({...Mh(),...u});if(!l)return null;const m=d?v.createElement(PR,{base:d},pT(r,f)):pT(r,f);return v.createElement(OR.Provider,{value:f,children:m})},Be=v.forwardRef((e,t)=>
23{const n=Gl(),[r,a]=Rh(n),{to:s="",href:l=s,onClick:u,asChild:d,children:f,className:m,replace:p,state:g,transition:y,...w}=e,b=wj(k=>{k.ctrlKey||k.metaKey||k.altKey||k.shiftKey||k.button!==0||(u?.(k),k.defaultPrevented||(k.preventDefault(),a(l,e)))}),N=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return d&&v.isValidElement(f)?v.cloneElement(f,{onClick:b,href:N}):v.createElement("a",{...w,onClick:b,href:N,className:m?.call?m(r===l):m,children:f,ref:t})}),MR=e=>Array.isArray(e)?e.flatMap(t=>MR(t&&t.type===v.Fragment?t.props.children:t)):[e],CK=({children:e,location:t})=>{const n=Gl(),[r]=Rh(n);for(const a of MR(e)){let s=0;if(v.isValidElement(a)&&(s=Sj(n.parser,a.props.path,t||r,a.props.nest))[0])return v.cloneElement(a,{match:s})}return null},Si=e=>{const{to:t,href:n=t}=e,r=Gl(),[,a]=Rh(r),s=wj(()=>a(t||n,e)),{ssrContext:l}=r;return kR(()=>{s()},[]),l&&(l.redirectTo=t),null};var Fu=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(){}},EK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},TK=class{#e=EK;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},pl=new TK;function _K(e){setTimeout(e,0)}var Tl=typeof window>"u"||"Deno"in globalThis;function br(){}function OK(e,t){return typeof e=="function"?e(t):e}function pw(e){return typeof e=="number"&&e>=0&&e!==1/0}function RR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bo(e,t){return typeof e=="function"?e(t):e}function bi(e,t){return typeof e=="function"?e(t):e}function xT(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==kj(l,t.options))return!1}else if(!eh(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function gT(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(_l(t.options.mutationKey)!==_l(s))return!1}else if(!eh(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function kj(e,t){return(t?.queryKeyHashFn||_l)(e)}function _l(e){return JSON.stringify(e,(t,n)=>xw(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function eh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>eh(e[n],t[n])):!1}var PK=Object.prototype.hasOwnProperty;function DR(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=yT(e)&&yT(t);if(!r&&!(xw(e)&&xw(t)))return t;const s=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,d=r?new Array(u):{};let f=0;for(let m=0;m<u;m++){const p=r?m:l[m],g=e[p],y=t[p];if(g===y){d[p]=g,(r?m<s:PK.call(e,p))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){d[p]=y;continue}const w=DR(g,y,n+1);d[p]=w,w===g&&f++}return s===u&&f===s?e:d}function _x(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function yT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xw(e){if(!vT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vT(e){return Object.prototype.toString.call(e)==="[object Object]"}function MK(e){return new Promise(t=>{pl.setTimeout(t,e)})}function gw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?DR(e,t):t}function RK(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function DK(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Aj=Symbol();function IR(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Aj?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Cj(e,t){return typeof e=="function"?e(...t):!!e}function IK(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var LK=class extends Fu{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Tl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 21,146 bytes, line 23
23this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ej=new LK;function yw(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var $K=_K;function BK(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=$K;const s=u=>{t?e.push(u):a(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{s(()=>{u(...d)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var Cn=BK(),FK=class extends Fu{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Tl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ox=new FK;function UK(e){return Math.min(1e3*2**e,3e4)}function LR(e){return(e??"online")==="online"?Ox.isOnline():!0}var vw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function $R(e){let t=!1,n=0,r;const a=yw(),s=()=>a.status!=="pending",l=b=>{if(!s()){const N=new vw(b);g(N),e.onCancel?.(N)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Ej.isFocused()&&(e.networkMode==="always"||Ox.isOnline())&&e.canRun(),m=()=>LR(e.networkMode)&&e.canRun(),p=b=>{s()||(r?.(),a.resolve(b))},g=b=>{s()||(r?.(),a.reject(b))},y=()=>new Promise(b=>{r=N=>{(s()||f())&&b(N)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let b;const N=n===0?e.initialPromise:void 0;try{b=N??e.fn()}catch(k){b=Promise.reject(k)}Promise.resolve(b).then(p).catch(k=>{if(s())return;const C=e.retry??(Tl?0:3),A=e.retryDelay??UK,E=typeof A=="function"?A(n,k):A,_=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,k);if(t||!_){g(k);return}n++,e.onFail?.(n,k),MK(E).then(()=>f()?void 0:y()).then(()=>{t?g(k):w()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?w():y().then(w),a)}}var BR=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pw(this.gcTime)&&(this.#e=pl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(pl.clearTimeout(this.#e),this.#e=void 0)}},zK=class extends BR{#e;#t;#n;#i;#r;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=wT(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=wT(this.options);t.data!==void 0&&(this.setState(bT(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=gw(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>bi(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Aj||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>bo(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:!RR(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.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,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},a=()=>{const u=IR(this.options,t),f=(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#a=!1,this.options.persister?this.options.persister(u,f,this):u(f)},l=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#s({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=$R({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof vw&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#s({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof vw){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#s({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...FR(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...bT(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Cn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function FR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:LR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bT(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var VK=class extends Fu{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#a=yw(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#a;#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),jT(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof bi(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),t._defaulted&&!_x(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&NT(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||bi(this.options.enabled,this.#t)!==bi(t.enabled,this.#t)||bo(this.options.staleTime,this.#t)!==bo(t.staleTime,this.#t))&&this.#x();const a=this.#g();r&&(this.#t!==n||bi(this.options.enabled,this.#t)!==bi(t.enabled,this.#t)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return qK(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#j();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(br)),t}#x(){this.#b();const e=bo(this.options.staleTime,this.#t);if(Tl||this.#i.isStale||!pw(e))return;const n=RR(this.#i.dataUpdatedAt,e)+1;this.#c=pl.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(Tl||bi(this.options.enabled,this.#t)===!1||!pw(this.#l)||this.#l===0)&&(this.#u=pl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ej.isFocused())&&this.#d()},this.#l))}#v(){this.#x(),this.#y(this.#g())}#b(){this.#c&&(pl.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(pl.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#i,s=this.#r,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let m={...f},p=!1,g;if(t._optimisticResults){const P=this.hasListeners(),D=!P&&jT(e,t),U=P&&NT(e,n,t,r);(D||U)&&(m={...m,...FR(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:w,status:b}=m;g=m.data;let N=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let P;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=a.data,N=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,P!==void 0&&(b="success",g=gw(a?.data,P,t),p=!0)}if(t.select&&g!==void 0&&!N)if(a&&g===s?.data&&t.select===this.#p)g=this.#f;else try{this.#p=t.select,g=t.select(g),g=gw(a?.data,g,t),this.#f=g,this.#s=null}catch(P){this.#s=P}this.#s&&(y=this.#s,g=this.#f,w=Date.now(),b="error");const k=m.fetchStatus==="fetching",C=b==="pending",A=b==="error",E=C&&k,_=g!==void 0,M={status:b,fetchStatus:m.fetchStatus,isPending:C,isSuccess:b==="success",isError:A,isInitialLoading:E,isLoading:E,data:g,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!C,isLoadingError:A&&!_,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:A&&_,isStale:Tj(e,t),refetch:this.refetch,promise:this.#a,isEnabled:bi(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=M.data!==void 0,D=M.status==="error"&&!P,U=G=>{D?G.reject(M.error):P&&G.resolve(M.data)},L=()=>{const G=this.#a=M.promise=yw();U(G)},$=this.#a;switch($.status){case"pending":e.queryHash===n.queryHash&&U($);break;case"fulfilled":(D||M.data!==$.value)&&L();break;case"rejected":(!D||M.error!==$.reason)&&L();break}}return M}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),_x(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const s=new Set(a??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(l=>{const u=l;return this.#i[u]!==e[u]&&s.has(u)})};this.#N({listeners:n()})}#j(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#N(e){Cn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function WK(e,t){return bi(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function jT(e,t){return WK(e,t)||e.state.data!==void 0&&bw(e,t,t.refetchOnMount)}function bw(e,t,n){if(bi(t.enabled,e)!==!1&&bo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Tj(e,t)}return!1}function NT(e,t,n,r){return(e!==t||bi(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Tj(e,n)}function Tj(e,t){return bi(t.enabled,e)!==!1&&e.isStaleByTime(bo(t.staleTime,e))}function qK(e,t){return!_x(e.getCurrentResult(),t)}function ST(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let m=!1;const p=w=>{IK(w,()=>t.signal,()=>m=!0)},g=IR(t.options,t.fetchOptions),y=async(w,b,N)=>{if(m)return Promise.reject();if(b==null&&w.pages.length)return Promise.resolve(w);const C=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:b,direction:N?"backward":"forward",meta:t.options.meta};return p(T),T})(),A=await g(C),{maxPages:E}=t.options,_=N?DK:RK;return{pages:_(w.pages,A,E),pageParams:_(w.pageParams,b,E)}};if(a&&s.length){const w=a==="backward",b=w?HK:kT,N={pages:s,pageParams:l},k=b(r,N);u=await y(N,k,w)}else{const w=e??s.length;do{const b=d===0?l[0]??r.initialPageParam:kT(r,u);if(d>0&&b==null)break;u=await y(u,b),d++}while(d<w)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function kT(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function HK(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var GK=class extends BR{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||UR(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=$R({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#r({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#r({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Cn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function UR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var KK=class extends Fu{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new GK({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Ap(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ap(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ap(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Ap(e);return typeof t=="string"?this.#t.get(t)?.find(r=>
23r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Cn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>gT(t,n))}findAll(e={}){return this.getAll().filter(t=>gT(e,t))}notify(e){Cn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Cn.batch(()=>Promise.all(e.map(t=>t.continue().catch(br))))}};function Ap(e){return e.options.scope?.id}var YK=class extends Fu{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),_x(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&_l(n.mutationKey)!==_l(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??UR();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Cn.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,n,r,a)}catch(s){Promise.reject(s)}
vendor: 5,802 bytes, line 23
23try{this.#i.onSettled?.(t.data,null,n,r,a)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,n,r,a)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(void 0,t.error,n,r,a)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},QK=class extends Fu{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??kj(r,t);let s=this.get(a);return s||(s=new zK({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>xT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>xT(e,n)):t}notify(e){Cn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Cn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Cn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},XK=class{#e;#t;#n;#i;#r;#o;#a;#s;constructor(e={}){this.#e=e.queryCache||new QK,this.#t=e.mutationCache||new KK,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#a=Ej.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ox.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=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 t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(bo(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=OK(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Cn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Cn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Cn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Cn.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(br).catch(br)}invalidateQueries(e,t={}){return Cn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Cn.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(br)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(br)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(bo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(br).catch(br)}fetchInfiniteQuery(e){return e.behavior=ST(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(br).catch(br)}ensureInfiniteQueryData(e){return e.behavior=ST(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ox.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(_l(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{eh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(_l(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{eh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=kj(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Aj&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},zR=v.createContext(void 0),ur=e=>{const t=v.useContext(zR);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ZK=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(zR.Provider,{value:e,children:t})),VR=v.createContext(!1),JK=()=>v.useContext(VR);VR.Provider;function eY(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
23var tY=v.createContext(eY()),nY=()=>v.useContext(tY),rY=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?Cj(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},iY=e=>{v.useEffect(()=>{e.clearReset()},[e])},aY=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Cj(n,[e.error,r])),sY=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},oY=(e,t)=>e.isLoading&&e.isFetching&&!t,lY=(e,t)=>e?.suspense&&t.isPending,AT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function cY(e,t,n){const r=JK(),a=nY(),s=ur(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const u=s.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",sY(l),rY(l,a,u),iY(a);const d=!s.getQueryCache().get(l.queryHash),[f]=v.useState(()=>new t(s,l)),m=f.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(g=>{const y=p?f.subscribe(Cn.batchCalls(g)):br;return f.updateResult(),y},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),v.useEffect(()=>{f.setOptions(l)},[l,f]),lY(l,m))throw AT(l,f,a);if(aY({result:m,errorResetBoundary:a,throwOnError:l.throwOnError,query:u,suspense:l.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,m),l.experimental_prefetchInRender&&!Tl&&oY(m,r)&&(d?AT(l,f,a):u?.promise)?.catch(br).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?m:f.trackResult(m)}function bt(e,t){return cY(e,VK)}function $t(e,t){const n=ur(),[r]=v.useState(()=>new YK(n,e));v.useEffect(()=>{r.setOptions(e)},[r,e]);const a=v.useSyncExternalStore(v.useCallback(l=>r.subscribe(Cn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=v.useCallback((l,u)=>{r.mutate(l,u).catch(br)},[r]);if(a.error&&Cj(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const _j=v.createContext({});function Oj(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const uY=typeof window<"u",WR=uY?v.useLayoutEffect:v.useEffect,a0=v.createContext(null);function Pj(e,t){e.indexOf(t)===-1&&e.push(t)}function Px(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Na=(e,t,n)=>n>t?t:n<e?e:n;let Mj=()=>{};const fs={},qR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function HR(e){return typeof e=="object"&&e!==null}const GR=e=>/^0[^.\s]+$/u.test(e);function KR(e){let t;return()=>(t===void 0&&(t=e()),t)}const ki=e=>e,dY=(e,t)=>n=>t(e(n)),Dh=(...e)=>e.reduce(dY),th=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Rj{constructor(){this.subscriptions=[]}add(t){return Pj(this.subscriptions,t),()=>Px(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wi=e=>e*1e3,wi=e=>e/1e3;function YR(e,t){return t?e*(1e3/t):0}const QR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fY=1e-7,hY=12;function mY(e,t,n,r,a){let s,l,u=0;do l=t+(n-t)/2,s=QR(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>fY&&++u<hY);return l}function Ih(e,t,n,r){if(e===t&&n===r)return ki;const a=s=>mY(s,0,1,e,n);return s=>s===0||s===1?s:QR(a(s),t,r)}const XR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZR=e=>t=>1-e(1-t),JR=Ih(.33,1.53,.69,.99),Dj=ZR(JR),eD=XR(Dj),tD=e=>(e*=2)<1?.5*Dj(e):.5*(2-Math.pow(2,-10*(e-1))),Ij=e=>1-Math.sin(Math.acos(e)),nD=ZR(Ij),rD=XR(Ij),pY=Ih(.42,0,1,1),xY=Ih(0,0,.58,1),iD=Ih(.42,0,.58,1),gY=e=>Array.isArray(e)&&typeof e[0]!="number",aD=e=>Array.isArray(e)&&typeof e[0]=="number",yY={linear:ki,easeIn:pY,easeInOut:iD,easeOut:xY,circIn:Ij,circInOut:rD,circOut:nD,backIn:Dj,backInOut:eD,backOut:JR,anticipate:tD},vY=e=>typeof e=="string",CT=e=>{if(aD(e)){Mj(e.length===4);const[t,n,r,a]=e;return Ih(t,n,r,a)}else if(vY(e))return yY[e];return e},Cp=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bY(e,t){let n=new Set,r=new Set,a=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(f.schedule(m),e()),m(u)}const f={schedule:(m,p=!1,g=!1)=>{const w=g&&a?n:r;return p&&l.add(m),w.has(m)||w.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(u=m,a){s=!0;return}
vendor: 20,822 bytes, line 23
23a=!0,[n,r]=[r,n],n.forEach(d),n.clear(),a=!1,s&&(s=!1,f.process(m))}};return f}const wY=40;function sD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Cp.reduce((A,E)=>(A[E]=bY(s),A),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:m,update:p,preRender:g,render:y,postRender:w}=l,b=()=>{const A=fs.useManualTiming?a.timestamp:performance.now();n=!1,fs.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(A-a.timestamp,wY),1)),a.timestamp=A,a.isProcessing=!0,u.process(a),d.process(a),f.process(a),m.process(a),p.process(a),g.process(a),y.process(a),w.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(b))},N=()=>{n=!0,r=!0,a.isProcessing||e(b)};return{schedule:Cp.reduce((A,E)=>{const _=l[E];return A[E]=(T,M=!1,P=!1)=>(n||N(),_.schedule(T,M,P)),A},{}),cancel:A=>{for(let E=0;E<Cp.length;E++)l[Cp[E]].cancel(A)},state:a,steps:l}}const{schedule:Dt,cancel:No,state:Kn,steps:Yb}=sD(typeof requestAnimationFrame<"u"?requestAnimationFrame:ki,!0);let fx;function jY(){fx=void 0}const Nr={now:()=>(fx===void 0&&Nr.set(Kn.isProcessing||fs.useManualTiming?Kn.timestamp:performance.now()),fx),set:e=>{fx=e,queueMicrotask(jY)}},oD=e=>t=>typeof t=="string"&&t.startsWith(e),lD=oD("--"),NY=oD("var(--"),Lj=e=>NY(e)?SY.test(e.split("/*")[0].trim()):!1,SY=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ET(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Uu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nh={...Uu,transform:e=>Na(0,1,e)},Ep={...Uu,default:1},zf=e=>Math.round(e*1e5)/1e5,$j=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kY(e){return e==null}const AY=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bj=(e,t)=>n=>!!(typeof n=="string"&&AY.test(n)&&n.startsWith(e)||t&&!kY(n)&&Object.prototype.hasOwnProperty.call(n,t)),cD=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,u]=r.match($j);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},CY=e=>Na(0,255,e),Qb={...Uu,transform:e=>Math.round(CY(e))},xl={test:Bj("rgb","red"),parse:cD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qb.transform(e)+", "+Qb.transform(t)+", "+Qb.transform(n)+", "+zf(nh.transform(r))+")"};function EY(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const ww={test:Bj("#"),parse:EY,transform:xl.transform},Lh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uo=Lh("deg"),ya=Lh("%"),De=Lh("px"),TY=Lh("vh"),_Y=Lh("vw"),TT={...ya,parse:e=>ya.parse(e)/100,transform:e=>ya.transform(e*100)},cu={test:Bj("hsl","hue"),parse:cD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ya.transform(zf(t))+", "+ya.transform(zf(n))+", "+zf(nh.transform(r))+")"},xn={test:e=>xl.test(e)||ww.test(e)||cu.test(e),parse:e=>xl.test(e)?xl.parse(e):cu.test(e)?cu.parse(e):ww.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xl.transform(e):cu.transform(e),getAnimatableNone:e=>{const t=xn.parse(e);return t.alpha=0,xn.transform(t)}},OY=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function PY(e){return isNaN(e)&&typeof e=="string"&&(e.match($j)?.length||0)+(e.match(OY)?.length||0)>0}const uD="number",dD="color",MY="var",RY="var(",_T="${}",DY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function rh(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const u=t.replace(DY,d=>(xn.test(d)?(r.color.push(s),a.push(dD),n.push(xn.parse(d))):d.startsWith(RY)?(r.var.push(s),a.push(MY),n.push(d)):(r.number.push(s),a.push(uD),n.push(parseFloat(d))),++s,_T)).split(_T);return{values:n,split:u,indexes:r,types:a}}function fD(e){return rh(e).values}function hD(e){const{split:t,types:n}=rh(e),r=t.length;return a=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],a[l]!==void 0){const u=n[l];u===uD?s+=zf(a[l]):u===dD?s+=xn.transform(a[l]):s+=a[l]}return s}}const IY=e=>typeof e=="number"?0:xn.test(e)?xn.getAnimatableNone(e):e;function LY(e){const t=fD(e);return hD(e)(t.map(IY))}const qi={test:PY,parse:fD,createTransformer:hD,getAnimatableNone:LY};function Xb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $Y({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;a=Xb(d,u,e+1/3),s=Xb(d,u,e),l=Xb(d,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Mx(e,t){return n=>n>0?t:e}const Yt=(e,t,n)=>e+(t-e)*n,Zb=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},BY=[ww,xl,cu],FY=e=>BY.find(t=>t.test(e));function OT(e){const t=FY(e);if(!t)return!1;let n=t.parse(e);return t===cu&&(n=$Y(n)),n}const PT=(e,t)=>{const n=OT(e),r=OT(t);if(!n||!r)return Mx(e,t);const a={...n};return s=>(a.red=Zb(n.red,r.red,s),a.green=Zb(n.green,r.green,s),a.blue=Zb(n.blue,r.blue,s),a.alpha=Yt(n.alpha,r.alpha,s),xl.transform(a))},jw=new Set(["none","hidden"]);function UY(e,t){return jw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zY(e,t){return n=>Yt(e,t,n)}function Fj(e){return typeof e=="number"?zY:typeof e=="string"?Lj(e)?Mx:xn.test(e)?PT:qY:Array.isArray(e)?mD:typeof e=="object"?xn.test(e)?PT:VY:Mx}function mD(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Fj(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function VY(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Fj(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function WY(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],u=e.values[l]??0;n[a]=u,r[s]++}return n}const qY=(e,t)=>{const n=qi.createTransformer(t),r=rh(e),a=rh(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?jw.has(e)&&!a.values.length||jw.has(t)&&!r.values.length?UY(e,t):Dh(mD(WY(r,a),a.values),n):Mx(e,t)};function pD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Yt(e,t,n):Fj(e)(e,t)}const HY=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Dt.update(t,n),stop:()=>No(t),now:()=>Kn.isProcessing?Kn.timestamp:Nr.now()}},xD=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Rx=2e4;function Uj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rx;)t+=n,r=e.next(t);return t>=Rx?1/0:t}function GY(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Uj(r),Rx);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:wi(a)}}const KY=5;function gD(e,t,n){const r=Math.max(t-KY,0);return YR(n-e(r),t-r)}const an={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Jb=.001;function YY({duration:e=an.duration,bounce:t=an.bounce,velocity:n=an.velocity,mass:r=an.mass}){let a,s,l=1-t;l=Na(an.minDamping,an.maxDamping,l),e=Na(an.minDuration,an.maxDuration,wi(e)),l<1?(a=f=>{const m=f*l,p=m*e,g=m-n,y=Nw(f,l),w=Math.exp(-p);return Jb-g/y*w},s=f=>{const p=f*l*e,g=p*n+n,y=Math.pow(l,2)*Math.pow(f,2)*e,w=Math.exp(-p),b=Nw(Math.pow(f,2),l);return(-a(f)+Jb>0?-1:1)*((g-y)*w)/b}):(a=f=>{const m=Math.exp(-f*e),p=(f-n)*e+1;return-Jb+m*p},s=f=>{const m=Math.exp(-f*e),p=(n-f)*(e*e);return m*p});const u=5/e,d=XY(a,s,u);if(e=Wi(e),isNaN(d))return{stiffness:an.stiffness,damping:an.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const QY=12;function XY(e,t,n){let r=n;for(let a=1;a<QY;a++)r=r-e(r)/t(r);return r}function Nw(e,t){return e*Math.sqrt(1-t*t)}const ZY=["duration","bounce"],JY=["stiffness","damping","mass"];function MT(e,t){return t.some(n=>e[n]!==void 0)}function eQ(e){let t={velocity:an.velocity,stiffness:an.stiffness,damping:an.damping,mass:an.mass,isResolvedFromDuration:!1,...e};if(!MT(e,JY)&&MT(e,ZY))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Na(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:an.mass,stiffness:a,damping:s}}else{const n=YY({...e,velocity:0});t={...t,...n,mass:an.mass},t.isResolvedFromDuration=!0}return t}function Dx(e=an.visualDuration,t=an.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:m,duration:p,velocity:g,isResolvedFromDuration:y}=eQ({...n,velocity:-wi(n.velocity||0)}),w=g||0,b=f/(2*Math.sqrt(d*m)),N=l-s,k=wi(Math.sqrt(d/m)),C=Math.abs(N)<5;r||(r=C?an.restSpeed.granular:an.restSpeed.default),a||(a=C?an.restDelta.granular:an.restDelta.default);let A;if(b<1){const _=Nw(k,b);A=T=>{const M=Math.exp(-b*k*T);return l-M*((w+b*k*N)/_*Math.sin(_*T)+N*Math.cos(_*T))}}else if(b===1)A=_=>l-Math.exp(-k*_)*(N+(w+k*N)*_);else{const _=k*Math.sqrt(b*b-1);A=T=>{const M=Math.exp(-b*k*T),P=Math.min(_*T,300);return l-M*((w+b*k*N)*Math.sinh(P)+_*N*Math.cosh(P))/_}}const E={calculatedDuration:y&&p||null,next:_=>{const T=A(_);if(y)u.done=_>=p;else{let M=_===0?w:0;b<1&&(M=_===0?Wi(w):gD(A,_,T));const P=Math.abs(M)<=r,D=Math.abs(l-T)<=a;u.done=P&&D}return u.value=u.done?l:T,u},toString:()=>{const _=Math.min(Uj(E),Rx),T=xD(M=>E.next(_*M).value,_,30);return _+"ms "+T},toTransition:()=>{}};return E}Dx.applyToOptions=e=>{const t=GY(e,100,Dx);return e.ease=t.ease,e.duration=Wi(t.duration),e.type="keyframes",e};function Sw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:m}){const p=e[0],g={done:!1,value:p},y=P=>u!==void 0&&P<u||d!==void 0&&P>d,w=P=>u===void 0?d:d===void 0||Math.abs(u-P)<Math.abs(d-P)?u:d;let b=n*t;const N=p+b,k=l===void 0?N:l(N);k!==N&&(b=k-p);const C=P=>-b*Math.exp(-P/r),A=P=>k+C(P),E=P=>{const D=C(P),U=A(P);g.done=Math.abs(D)<=f,g.value=g.done?k:U};let _,T;const M=P=>{y(g.value)&&(_=P,T=Dx({keyframes:[g.value,w(g.value)],velocity:gD(A,P,g.value),damping:a,stiffness:s,restDelta:f,restSpeed:m}))};return M(0),{calculatedDuration:null,next:P=>{let D=!1;return!T&&_===void 0&&(D=!0,E(P),M(P)),_!==void 0&&P>=_?T.next(P-_):(!D&&E(P),g)}}}function tQ(e,t,n){const r=[],a=n||fs.mix||pD,s=e.length-1;for(let l=0;l<s;l++){let u=a(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||ki:t;u=Dh(d,u)}r.push(u)}return r}function nQ(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(Mj(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tQ(t,r,a),d=u.length,f=m=>{if(l&&m<e[0])return t[0];let p=0;if(d>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const g=th(e[p],e[p+1],m);return u[p](g)};return n?m=>f(Na(e[0],e[s-1],m)):f}function rQ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=th(0,t,r);e.push(Yt(n,1,a))}}function iQ(e){const t=[0];return rQ(t,e.length-1),t}function aQ(e,t){return e.map(n=>n*t)}function sQ(e,t){return e.map(()=>t||iD).splice(0,e.length-1)}function Vf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=gY(r)?r.map(CT):CT(r),s={done:!1,value:t[0]},l=aQ(n&&n.length===t.length?n:iQ(t),e),u=nQ(l,t,{ease:Array.isArray(a)?a:sQ(t,a)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const oQ=e=>e!==null;function zj(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(oQ),u=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const lQ={decay:Sw,inertia:Sw,tween:Vf,keyframes:Vf,spring:Dx};function yD(e){typeof e.type=="string"&&(e.type=lQ[e.type])}class Vj{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const cQ=e=>e/100;class Wj extends Vj{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Nr.now()&&this.tick(Nr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;yD(t);const{type:n=Vf,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||Vf;d!==Vf&&typeof u[0]!="number"&&(this.mixKeyframes=Dh(cQ,pD(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=Uj(f));const{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:m,repeat:p,repeatType:g,repeatDelay:y,type:w,onUpdate:b,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const k=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let A=this.currentTime,E=r;if(p){const P=Math.min(this.currentTime,a)/u;let D=Math.floor(P),U=P%1;!U&&P>=1&&(U=1),U===1&&D--,D=Math.min(D,p+1),D%2&&(g==="reverse"?(U=1-U,y&&(U-=y/u)):g==="mirror"&&(E=l)),A=Na(0,1,U)*u}const _=C?{done:!1,value:m[0]}:E.next(A);s&&!C&&(_.value=s(_.value));let{done:T}=_;!C&&d!==null&&(T=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return M&&w!==Sw&&(_.value=zj(m,this.options,N,this.speed)),b&&b(_.value),M&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return wi(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wi(t)}get time(){return wi(this.currentTime)}set time(t){t=Wi(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Nr.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=wi(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=HY,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Nr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function uQ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gl=e=>e*180/Math.PI,kw=e=>{const t=gl(Math.atan2(e[1],e[0]));return Aw(t)},dQ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:kw,rotateZ:kw,skewX:e=>gl(Math.atan(e[1])),skewY:e=>gl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Aw=e=>(e=e%360,e<0&&(e+=360),e),RT=kw,DT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),IT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fQ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:DT,scaleY:IT,scale:e=>(DT(e)+IT(e))/2,rotateX:e=>Aw(gl(Math.atan2(e[6],e[5]))),rotateY:e=>Aw(gl(Math.atan2(-e[2],e[0]))),rotateZ:RT,rotate:RT,skewX:e=>gl(Math.atan(e[4])),skewY:e=>gl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Cw(e){return e.includes("scale")?1:0}function Ew(e,t){if(!e||e==="none")return Cw(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=fQ,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=dQ,a=u}if(!a)return Cw(t);const s=r[t],l=a[1].split(",").map(mQ);return typeof s=="function"?s(l):l[s]}const hQ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ew(n,t)};function mQ(e){return parseFloat(e.trim())}const zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vu=new Set(zu),LT=e=>e===Uu||e===De,pQ=new Set(["x","y","z"]),xQ=zu.filter(e=>!pQ.has(e));function gQ(e){const t=[];return xQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const go={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ew(t,"x"),y:(e,{transform:t})=>Ew(t,"y")};go.translateX=go.x;go.translateY=go.y;const Sl=new Set;let Tw=!1,_w=!1,Ow=!1;function vD(){if(_w){const e=Array.from(Sl).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=gQ(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_w=!1,Tw=!1,Sl.forEach(e=>e.complete(Ow)),Sl.clear()}function bD(){Sl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_w=!0)})}function yQ(){Ow=!0,bD(),vD(),Ow=!1}class qj{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Sl.add(this),Tw||(Tw=!0,Dt.read(bD),Dt.resolveKeyframes(vD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}uQ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Sl.delete(this)}cancel(){this.state==="scheduled"&&(Sl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vQ=e=>e.startsWith("--");function wD(e,t,n){vQ(t)?e.style.setProperty(t,n):e.style[t]=n}const bQ={};function jD(e,t){const n=KR(e);return()=>bQ[t]??n()}const wQ=jD(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ND=jD(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 4,909 bytes, line 23
23,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_f=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$T={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_f([0,.65,.55,1]),circOut:_f([.55,0,1,.45]),backIn:_f([.31,.01,.66,-.59]),backOut:_f([.33,1.53,.69,.99])};function SD(e,t){if(e)return typeof e=="function"?ND()?xD(e,t):"ease-out":aD(e)?_f(e):Array.isArray(e)?e.map(n=>SD(n,t)||$T.easeOut):$T[e]}function jQ(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const m={[t]:n};d&&(m.offset=d);const p=SD(u,a);Array.isArray(p)&&(m.easing=p);const g={delay:r,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(m,g)}function kD(e){return typeof e=="function"&&"applyToOptions"in e}function NQ({type:e,...t}){return kD(e)&&ND()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class AD extends Vj{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,Mj(typeof t.type!="string");const f=NQ(t);this.animation=jQ(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=zj(a,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(m),wD(n,r,m),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return wi(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wi(t)}get time(){return wi(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Wi(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&wQ()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ki):a(this)}}const CD={anticipate:tD,backInOut:eD,circInOut:rD};function SQ(e){return e in CD}function kQ(e){typeof e.ease=="string"&&SQ(e.ease)&&(e.ease=CD[e.ease])}const e1=10;class AQ extends AD{constructor(t){kQ(t),yD(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new Wj({...l,autoplay:!1}),d=Math.max(e1,Nr.now()-this.startTime),f=Na(0,e1,d-e1),m=u.sample(d).value,{name:p}=this.options;s&&p&&wD(s,p,m),n.setWithVelocity(u.sample(Math.max(0,d-f)).value,m,f),u.stop()}}const BT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qi.test(e)||e==="0")&&!e.startsWith("url("));function CQ(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function EQ(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=BT(a,t),u=BT(s,t);return!l||!u?!1:CQ(e)||(n==="spring"||kD(n))&&r}function Pw(e){e.duration=0,e.type="keyframes"}const TQ=new Set(["opacity","clipPath","filter","transform"]),_Q=KR(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function OQ(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return _Q()&&n&&TQ.has(n)&&(n!=="transform"||!f)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const PQ=40;class MQ extends Vj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,n
vendor: 4,175 bytes, line 23
23ame:d,motionValue:f,element:m,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Nr.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:m,...p},y=m?.KeyframeResolver||qj;this.keyframeResolver=new y(u,(w,b,N)=>this.onKeyframesResolved(w,b,g,!N),d,f,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:m}=r;this.resolvedAt=Nr.now(),EQ(t,s,l,u)||((fs.instantAnimations||!d)&&m?.(zj(t,r,n)),t[0]=t[t.length-1],Pw(r),r.repeat=0);const g={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>PQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!f&&OQ(g),w=g.motionValue?.owner?.current,b=y?new AQ({...g,element:w}):new Wj(g);b.finished.then(()=>{this.notifyFinished()}).catch(ki),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yQ()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function ED(e,t,n,r=0,a=1){const s=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(s,l):a===1?s*r:u-s*r}const RQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DQ(e){const t=RQ.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function TD(e,t,n=1){const[r,a]=DQ(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return qR(l)?parseFloat(l):l}return Lj(a)?TD(a,t,n+1):a}const IQ={type:"spring",stiffness:500,damping:25,restSpeed:10},LQ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$Q={type:"keyframes",duration:.8},BQ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FQ=(e,{keyframes:t})=>t.length>2?$Q:Vu.has(e)?e.startsWith("scale")?LQ(t[1]):IQ:BQ,UQ=e=>e!==null;function zQ(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(UQ),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}function _D(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Hj(e,t){const n=e?.[t]??e?.default??e;return n!==e?_D(n,e):n}function VQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...m}){return!!Object.keys(m).length}const Gj=(e,t,n,r={},a,s)=>l=>{const u=Hj(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Wi(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};VQ(u)||Object.assign(m,FQ(e,m)),m.duration&&(m.duration=Wi(m.duration)),m.repeatDelay&&(m.repeatDelay=Wi(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Pw(m),m.delay===0&&(p=!0)),(fs.instantAnimations||fs.skipAnimations||a?.shouldSkipAnimations)&&(p=!0,Pw(m),m.delay=0),m.allowFlatten=!u.type&&!u.ease,p&&!s&&t.get()!==void 0){const g=zQ(m.keyframes,u);if(g!==void 0){Dt.update(()=>{m.onUpdate(g),m.onComplete()});return}}return u.isSync?new Wj(m):new MQ(m)};function FT(e){const t=[{},{}];
vendor: 19,044 bytes, line 23
23return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kj(e,t,n,r){if(typeof t=="function"){const[a,s]=FT(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=FT(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function xu(e,t,n){const r=e.getProps();return Kj(r,t,n!==void 0?n:r.custom,e)}const OD=new Set(["width","height","top","left","right","bottom",...zu]),UT=30,WQ=e=>!isNaN(parseFloat(e));class qQ{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Nr.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=WQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Rj);const r=this.events[t].add(n);return t==="change"?()=>{r(),Dt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>UT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,UT);return YR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Su(e,t){return new qQ(e,t)}const Mw=e=>Array.isArray(e);function HQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Su(n))}function GQ(e){return Mw(e)?e[e.length-1]||0:e}function KQ(e,t){const n=xu(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const u=GQ(s[l]);HQ(e,l,u)}}const or=e=>!!(e&&e.getVelocity);function YQ(e){return!!(or(e)&&e.add)}function Rw(e,t){const n=e.getValue("willChange");if(YQ(n))return n.add(t);if(!n&&fs.WillChange){const r=new fs.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Yj(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const QQ="framerAppearId",PD="data-"+Yj(QQ);function MD(e){return e.props[PD]}function XQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function RD(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s,transitionEnd:l,...u}=t;const d=e.getDefaultTransition();s=s?_D(s,d):d;const f=s?.reduceMotion;r&&(s=r);const m=[],p=a&&e.animationState&&e.animationState.getState()[a];for(const g in u){const y=e.getValue(g,e.latestValues[g]??null),w=u[g];if(w===void 0||p&&XQ(p,g))continue;const b={delay:n,...Hj(s||{},g)},N=y.get();if(N!==void 0&&!y.isAnimating&&!Array.isArray(w)&&w===N&&!b.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const E=MD(e);if(E){const _=window.MotionHandoffAnimation(E,g,Dt);_!==null&&(b.startTime=_,k=!0)}}Rw(e,g);const C=f??e.shouldReduceMotion;y.start(Gj(g,y,w,C&&OD.has(g)?{type:!1}:b,e,k));const A=y.animation;A&&m.push(A)}if(l){const g=()=>Dt.update(()=>{l&&KQ(e,l)});m.length?Promise.all(m).then(g):g()}return m}function Dw(e,t,n={}){const r=xu(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(RD(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:m,staggerDirection:p}=a;return ZQ(e,t,d,f,m,p,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function ZQ(e,t,n=0,r=0,a=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(Dw(d,t,{...l,delay:n+(typeof r=="function"?0:r)+ED(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function JQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>Dw(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=Dw(e,t,n);else{const a=typeof t=="function"?xu(e,t,n.custom):t;r=Promise.all(RD(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const eX={test:e=>e==="auto",parse:e=>e},DD=e=>t=>t.test(e),ID=[Uu,De,ya,uo,_Y,TY,eX],zT=e=>ID.find(DD(e));function tX(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GR(e):!0}const nX=new Set(["brightness","contrast","saturate","opacity"]);function rX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match($j)||[];if(!r)return e;const a=n.replace(r,"");let s=nX.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const iX=/\b([a-z-]*)\(.*?\)/gu,Iw={...qi,getAnimatableNone:e=>{const t=e.match(iX);return t?t.map(rX).join(" "):e}},Lw={...qi,getAnimatableNone:e=>{const t=qi.parse(e);return qi.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},VT={...Uu,transform:Math.round},aX={rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scale:Ep,scaleX:Ep,scaleY:Ep,scaleZ:Ep,skew:uo,skewX:uo,skewY:uo,distance:De,translateX:De,translateY:De,translateZ:De,x:De,y:De,z:De,perspective:De,transformPerspective:De,opacity:nh,originX:TT,originY:TT,originZ:De},Qj={borderWidth:De,borderTopWidth:De,borderRightWidth:De,borderBottomWidth:De,borderLeftWidth:De,borderRadius:De,borderTopLeftRadius:De,borderTopRightRadius:De,borderBottomRightRadius:De,borderBottomLeftRadius:De,width:De,maxWidth:De,height:De,maxHeight:De,top:De,right:De,bottom:De,left:De,inset:De,insetBlock:De,insetBlockStart:De,insetBlockEnd:De,insetInline:De,insetInlineStart:De,insetInlineEnd:De,padding:De,paddingTop:De,paddingRight:De,paddingBottom:De,paddingLeft:De,paddingBlock:De,paddingBlockStart:De,paddingBlockEnd:De,paddingInline:De,paddingInlineStart:De,paddingInlineEnd:De,margin:De,marginTop:De,marginRight:De,marginBottom:De,marginLeft:De,marginBlock:De,marginBlockStart:De,marginBlockEnd:De,marginInline:De,marginInlineStart:De,marginInlineEnd:De,fontSize:De,backgroundPositionX:De,backgroundPositionY:De,...aX,zIndex:VT,fillOpacity:nh,strokeOpacity:nh,numOctaves:VT},sX={...Qj,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:Iw,WebkitFilter:Iw,mask:Lw,WebkitMask:Lw},LD=e=>sX[e],oX=new Set([Iw,Lw]);function $D(e,t){let n=LD(e);return oX.has(n)||(n=qi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lX=new Set(["auto","none","0"]);function cX(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!lX.has(s)&&rh(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=$D(n,a)}class uX extends qj{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),Lj(p))){const g=TD(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!OD.has(r)||t.length!==2)return;const[a,s]=t,l=zT(a),u=zT(s),d=ET(a),f=ET(s);if(d!==f&&go[r]){this.needsMeasurement=!0;return}if(l!==u)if(LT(l)&<(u))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p))}else go[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||tX(t[a]))&&r.push(a);r.length&&cX(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=go[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=go[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,d])=>{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const dX=new Set(["opacity","clipPath","filter","transform"]);function BD(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const FD=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $w(e){return HR(e)&&"offsetHeight"in e}const{schedule:Xj}=sD(queueMicrotask,!1),Ii={x:!1,y:!1};function UD(){return Ii.x||Ii.y}function fX(e){return e==="x"||e==="y"?Ii[e]?null:(Ii[e]=!0,()=>{Ii[e]=!1}):Ii.x||Ii.y?null:(Ii.x=Ii.y=!0,()=>{Ii.x=Ii.y=!1})}function zD(e,t){const n=BD(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function hX(e){return!(e.pointerType==="touch"||UD())}function mX(e,t,n={}){const[r,a,s]=zD(e,n);return r.forEach(l=>{let u=!1,d=!1,f;const m=()=>{l.removeEventListener("pointerleave",w)},p=N=>{f&&(f(N),f=void 0),m()},g=N=>{u=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),d&&(d=!1,p(N))},y=()=>{u=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},w=N=>{if(N.pointerType!=="touch"){if(u){d=!0;return}p(N)}},b=N=>{if(!hX(N))return;d=!1;const k=t(l,N);typeof k=="function"&&(f=k,l.addEventListener("pointerleave",w,a))};l.addEventListener("pointerenter",b,a),l.addEventListener("pointerdown",y,a)}),s}const VD=(e,t)=>t?e===t?!0:VD(e,t.parentElement):!1,Zj=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xX(e){return pX.has(e.tagName)||e.isContentEditable===!0}const gX=new Set(["INPUT","SELECT","TEXTAREA"]);function yX(e){return gX.has(e.tagName)||e.isContentEditable===!0}const hx=new WeakSet;function WT(e){return t=>{t.key==="Enter"&&e(t)}}function t1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vX=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=WT(()=>{if(hx.has(n))return;t1(n,"down");const a=WT(()=>{t1(n,"up")}),s=()=>t1(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function qT(e){return Zj(e)&&!UD()}const HT=new WeakSet;function bX(e,t,n={}){const[r,a,s]=zD(e,n),l=u=>{const d=u.currentTarget;if(!qT(u)||HT.has(u))return;hx.add(d),n.stopPropagation&&HT.add(u);const f=t(d,u),m=(y,w)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),hx.has(d)&&hx.delete(d),qT(y)&&typeof f=="function"&&f(y,{success:w})},p=y=>{m(y,d===window||d===document||n.useGlobalTarget||VD(d,y.target))},g=y=>{m(y,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",g,a)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,a),$w(u)&&(u.addEventListener("focus",f=>vX(f,a)),!xX(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function Jj(e){return HR(e)&&"ownerSVGElement"in e}const mx=new WeakMap;let px;const WD=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:Jj(r)&&"getBBox"in r?r.getBBox()[t]:r[n],wX=WD("inline","width","offsetWidth"),jX=WD("block","height","offsetHeight");function NX({target:e,borderBoxSize:t}){mx.get(e)?.forEach(n=>{n(e,{get width(){return wX(e,t)},get height(){return jX(e,t)}})})}function SX(e){e.forEach(NX)}function kX(){typeof ResizeObserver>"u"||(px=new ResizeObserver(SX))}function AX(e,t){px||kX();const n=BD(e);return n.forEach(r=>{let a=mx.get(r);a||(a=new Set,mx.set(r,a)),a.add(t),px?.observe(r)}),()=>{n.forEach(r=>{const a=mx.get(r);a?.delete(t),a?.size||px?.unobserve(r)})}}const xx=new Set;let uu;function CX(){uu=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};xx.forEach(t=>t(e))},window.addEventListener("resize",uu)}function EX(e){return xx.add(e),uu||CX(),()=>{xx.delete(e),!xx.size&&typeof uu=="function"&&(window.removeEventListener("resize",uu),uu=void 0)}}function GT(e,t){return typeof e=="function"?EX(e):AX(e,t)}function TX(e){return Jj(e)&&e.tagName==="svg"}const _X=[...ID,xn,qi],OX=e=>_X.find(DD(e)),KT=()=>({translate:0,scale:1,origin:0,originPoint:0}),du=()=>({x:KT(),y:KT()}),YT=()=>({min:0,max:0}),kn=()=>({x:YT(),y:YT()}),PX=new WeakMap;function s0(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ih(e){return typeof e=="string"||Array.isArray(e)}const eN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tN=["initial",...eN];function o0(e){return s0(e.animate)||tN.some(t=>ih(e[t]))}function qD(e){return!!(o0(e)||e.variants)}function MX(e,t,n){for(const r in t){const a=t[r],s=n[r];if(or(a))e.addValue(r,a);else if(or(s))e.addValue(r,Su(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,Su(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ix={current:null},nN={current:!1},RX=typeof window<"u";function HD(){if(nN.current=!0,!!RX)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ix.current=e.matches;e.addEventListener("change",t),t()}else Ix.current=!1}const QT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Lx={};function GD(e){Lx=e}function DX(){return Lx}class IX{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Nr.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Dt.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=o0(n),this.isVariantNode=qD(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const w=g[y];f[y]!==void 0&&or(w)&&w.set(f[y])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,PX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(nN.current||HD(),this.shouldReduceMotion=Ix.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),No(this.notifyUpdate),No(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&dX.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:u,times:d,ease:f,duration:m}=n.accelerate,p=new AD({element:this.current,name:t,keyframes:u,times:d,ease:f,duration:Wi(m)}),g=l(p);this.valueSubscriptions.set(t,()=>{g(),p.cancel()});return}const r=Vu.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Dt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Lx){const n=Lx[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;
vendor: 5,922 bytes, line 23
23if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<QT.length;r++){const a=QT[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=MX(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Su(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(qR(r)||GR(r))?r=parseFloat(r):!OX(r)&&qi.test(n)&&(r=$D(t,n)),this.setBaseTarget(t,or(r)?r.get():r)),or(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Kj(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!or(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Rj),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Xj.render(this.render)}}class KD extends IX{constructor(){super(...arguments),this.KeyframeResolver=uX}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;or(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class To{constructor(t){this.isMounted=!1,this.node=t}update(){}}function YD({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $X(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function n1(e){return e===void 0||e===1}function Bw({scale:e,scaleX:t,scaleY:n}){return!n1(e)||!n1(t)||!n1(n)}function dl(e){return Bw(e)||QD(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function QD(e){return XT(e.x)||XT(e.y)}function XT(e){return e&&e!=="0%"}function $x(e,t,n){const r=e-n,a=t*r;return n+a}function ZT(e,t,n,r,a){return a!==void 0&&(e=$x(e,a,r)),$x(e,n,r)+t}function Fw(e,t=0,n=1,r,a){e.min=ZT(e.min,t,n,r,a),e.max=ZT(e.max,t,n,r,a)}function XD(e,{x:t,y:n}){Fw(e.x,t.translate,t.scale,t.originPoint),Fw(e.y,n.translate,n.scale,n.originPoint)}const JT=.999999999999,e4=1.0000000000001;function BX(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u<a;u++){s=n[u],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&hu(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,XD(e,l)),r&&dl(s.latestValues)&&hu(e,s.latestValues))}t.x<e4&&t.x>JT&&(t.x=1),t.y<e4&&t.y>JT&&(t.y=1)}function fu(e,t){e.min=e.min+t,e.max=e.max+t}function t4(e,t,n,r,a=.5){const s=Yt(e.min,e.max,a);Fw(e,t,n,s,r)}function n4(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function hu(e,t){t4(e.x,n4(t.x,e.x),t.scaleX,t.scale,t.originX),t4(e.y,n4(t.y,e.y),t.scaleY,t.scale,t.originY)}function ZD(e,t){return YD($X(e.getBoundingClientRect(),t))}function FX(e,t,n){const r=ZD(e,n),{scroll:a}=t;return a&&(fu(r.x,a.offset.x),fu(r.y,a.offset.y)),r}const UX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zX=zu.length;function VX(e,t,n){let r="",a=!0;for(let s=0;s<zX;s++){const l=zu[s],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number")d=u===(l.startsWith("scale")?1:0);else{const f=parseFloat(u);d=l.startsWith("scale")?f===1:f===0}if(!d||n){const f=FD(u,Qj[l]);if(!d){a=!1;const m=UX[l]||l;r+=`${m}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function rN(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,u=!1;
vendor: 9,736 bytes, line 23
23for(const d in t){const f=t[d];if(Vu.has(d)){l=!0;continue}else if(lD(d)){a[d]=f;continue}else{const m=FD(f,Qj[d]);d.startsWith("origin")?(u=!0,s[d]=m):r[d]=m}}if(t.transform||(l||n?r.transform=VX(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;r.transformOrigin=`${d} ${f} ${m}`}}function JD(e,{style:t,vars:n},r,a){const s=e.style;let l;for(l in t)s[l]=t[l];a?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function r4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const df={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(De.test(e))e=parseFloat(e);else return e;const n=r4(e,t.target.x),r=r4(e,t.target.y);return`${n}% ${r}%`}},WX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=qi.parse(e);if(a.length>5)return r;const s=qi.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=d;const f=Yt(u,d,.5);return typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f),s(a)}},Uw={borderRadius:{...df,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:df,borderTopRightRadius:df,borderBottomLeftRadius:df,borderBottomRightRadius:df,boxShadow:WX};function eI(e,{layout:t,layoutId:n}){return Vu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uw[e]||e==="opacity")}function iN(e,t,n){const r=e.style,a=t?.style,s={};if(!r)return s;for(const l in r)(or(r[l])||a&&or(a[l])||eI(l,e)||n?.getValue(l)?.liveStyle!==void 0)&&(s[l]=r[l]);return s}function qX(e){return window.getComputedStyle(e)}class HX extends KD{constructor(){super(...arguments),this.type="html",this.renderInstance=JD}readValueFromInstance(t,n){if(Vu.has(n))return this.projection?.isProjecting?Cw(n):hQ(t,n);{const r=qX(t),a=(lD(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ZD(t,n)}build(t,n,r){rN(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return iN(t,n,r)}}const GX={offset:"stroke-dashoffset",array:"stroke-dasharray"},KX={offset:"strokeDashoffset",array:"strokeDasharray"};function YX(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?GX:KX;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const QX=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tI(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},d,f,m){if(rN(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g}=e;p.transform&&(g.transform=p.transform,delete p.transform),(g.transform||p.transformOrigin)&&(g.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),g.transform&&(g.transformBox=m?.transformBox??"fill-box",delete p.transformBox);for(const y of QX)p[y]!==void 0&&(g[y]=p[y],delete p[y]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&YX(p,a,s,l,!1)}const nI=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),rI=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XX(e,t,n,r){JD(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(nI.has(a)?a:Yj(a),t.attrs[a])}function iI(e,t,n){const r=iN(e,t,n);for(const a in e)if(or(e[a])||or(t[a])){const s=zu.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}class ZX extends KD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vu.has(n)){const r=LD(n);return r&&r.default||0}return n=nI.has(n)?n:Yj(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return iI(t,n,r)}build(t,n,r){tI(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){XX(t,n,r,a)}mount(t){this.isSVGTag=rI(t.tagName),super.mount(t)}}const JX=tN.length;function aI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?aI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<JX;n++){const r=tN[n],a=e.props[r];(ih(a)||a===!1)&&(t[r]=a)}return t}function sI(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const eZ=[...eN].reverse(),tZ=eN.length;function nZ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>JQ(e,n,r)))}function rZ(e){let t=nZ(e),n=i4(),r=!0,a=!1;const s=f=>(m,p)=>{const g=xu(e,p,f==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:y,transitionEnd:w,...b}=g;m={...m,...b,...w}}return m};function l(f){t=f(e)}function u(f){const{props:m}=e,p=aI(e.parent)||{},g=[],y=new Set;let w={},b=1/0;for(let k=0;k<tZ;k++){const C=eZ[k],A=n[C],E=m[C]!==void 0?m[C]:p[C],_=ih(E),T=C===f?A.isActive:null;T===!1&&(b=k);let M=E===p[C]&&E!==m[C]&&_;if(M&&(r||a)&&e.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...w},!A.isActive&&T===null||!E&&!A.prevProp||s0(E)||typeof E=="boolean")continue;if(C==="exit"&&A.isActive&&T!==!0){A.prevResolvedValues&&(w={...w,...A.prevResolvedValues});continue}const P=iZ(A.prevProp,E);let D=P||C===f&&A.isActive&&!M&&_||k>b&&_,U=!1;const L=Array.isArray(E)?E:[E];let $=L.reduce(s(C),{});T===!1&&($={});const{prevResolvedValues:G={}}=A,H={...G,...$},V=Q=>{D=!0,y.has(Q)&&(U=!0,y.delete(Q)),A.needsAnimating[Q]=!0;const ce=e.getValue(Q);ce&&(ce.liveStyle=!1)};for(const Q in H){const ce=$[Q],I=G[Q];if(w.hasOwnProperty(Q))continue;let J=!1;Mw(ce)&&Mw(I)?J=!sI(ce,I):J=ce!==I,J?ce!=null?V(Q):y.add(Q):ce!==void 0&&y.has(Q)?V(Q):A.protectedKeys[Q]=!0}A.prevProp=E,A.prevResolvedValues=$,A.isActive&&(w={...w,...$}),(r||a)&&e.blockInitialAnimation&&(D=!1);const B=M&&P;D&&(!B||U)&&g.push(...L.map(Q=>{const ce={type:C};if(typeof Q=="string"&&(r||a)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,J=xu(I,Q);if(I.enteringChildren&&J){const{delayChildren:fe}=J.transition||{};ce.delay=ED(I.enteringChildren,e,fe)}}return{animation:Q,options:ce}}))}if(y.size){const k={};if(typeof m.initial!="boolean"){const C=xu(e,Array.isArray(m.initial)?m.initial[0]:m.initial);C&&C.transition&&(k.transition=C.transition)}y.forEach(C=>{const A=e.getBaseTarget(C),E=e.getValue(C);E&&(E.liveStyle=!0),k[C]=A??null}),g.push({animation:k})}let N=!!g.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(N=!1),r=!1,a=!1,N?t(g):Promise.resolve()}function d(f,m){if(n[f].isActive===m)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(f,m)),n[f].isActive=m;const p=u(f);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=i4(),a=!0}}}function iZ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sI(t,e):!1}function nl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i4(){return{animate:nl(!0),whileInView:nl(),whileHover:nl(),whileTap:nl(),whileDrag:nl(),whileFocus:nl(),exit:nl()}}function a4(e,t){e.min=t.min,e.max=t.max}function Ri(e,t){a4(e.x,t.x),a4(e.y,t.y)}function s4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const oI=1e-4,aZ=1-oI,sZ=1+oI,lI=.01,oZ=0-lI,lZ=0+lI;function Sr(e){return e.max-e.min}function cZ(e,t,n){return Math.abs(e-t)<=n}function o4(e,t,n,r=.5){e.origin=r,e.originPoint=Yt(t.min,t.max,e.origin),e.scale=Sr(n)/Sr(t),e.translate=Yt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aZ&&e.scale<=sZ||isNaN(e.scale))&&(e.scale=1),(e.translate>=oZ&&e.translate<=lZ||isNaN(e.translate))&&(e.translate=0)}function Wf(e,t,n,r){o4(e.x,t.x,n.x,r?r.originX:void 0),o4(e.y,t.y,n.y,r?r.originY:void 0)}function l4(e,t,n){e.min=n.min+t.min,e.max=e.min+Sr(t)}function uZ(e,t,n){l4(e.x,t.x,n.x),l4(e.y,t.y,n.y)}function c4(e,t,n){e.min=t.min-n.min,e.max=e.min+Sr(t)}function Bx(e,t,n){c4(e.x,t.x,n.x),c4(e.y,t.y,n.y)}function u4(e,t,n,r,a){return e-=t,e=$x(e,1/n,r),a!==void 0&&(e=$x(e,1/a,r)),e}function dZ(e,t=0,n=1,r=.5,a,s=e,l=e){if(ya.test(t)&&(t=parseFloat(t),t=Yt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=Yt(s.min,s.max,r);e===s&&(u-=t),e.min=u4(e.min,t,n,u,a),e.max=u4(e.max,t,n,u,a)}function d4(e,t,[n,r,a],s,l){dZ(e,t[n],t[r],t[a],t.scale,s,l)}const fZ=["x","scaleX","originX"],hZ=["y","scaleY","originY"];function f4(e,t,n,r){d4(e.x,t,fZ,n?n.x:void 0,r?r.x:void 0),d4(e.y,t,hZ,n?n.y:void 0,r?r.y:void 0)}function h4(e){return e.translate===0&&e.scale===1}function cI(e){return h4(e.x)&&h4(e.y)}function m4(e,t){return e.min===t.min&&e.max===t.max}function mZ(e,t){return m4(e.x,t.x)&&m4(e.y,t.y)}function p4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uI(e,t){return p4(e.x,t.x)&&p4(e.y,t.y)}function x4(e){return Sr(e.x)/Sr(e.y)}function g4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function da(e){return[e("x"),e("y")]}function pZ(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,rotateX:p,rotateY:g,skewX:y,skewY:w}=n;f&&(r=`perspective(${f}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotateX(${p}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),w&&(r+=`skewY(${w}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d}
23)`),r||"none"}const dI=["TopLeft","TopRight","BottomLeft","BottomRight"],xZ=dI.length,y4=e=>typeof e=="string"?parseFloat(e):e,v4=e=>typeof e=="number"||De.test(e);function gZ(e,t,n,r,a,s){a?(e.opacity=Yt(0,n.opacity??1,yZ(r)),e.opacityExit=Yt(t.opacity??1,0,vZ(r))):s&&(e.opacity=Yt(t.opacity??1,n.opacity??1,r));for(let l=0;l<xZ;l++){const u=`border${dI[l]}Radius`;let d=b4(t,u),f=b4(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||v4(d)===v4(f)?(e[u]=Math.max(Yt(y4(d),y4(f),r),0),(ya.test(f)||ya.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Yt(t.rotate||0,n.rotate||0,r))}function b4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yZ=fI(0,.5,nD),vZ=fI(.5,.95,ki);function fI(e,t,n){return r=>r<e?0:r>t?1:n(th(e,t,r))}function bZ(e,t,n){const r=or(e)?e:Su(e);return r.start(Gj("",r,t,n)),r.animation}function ah(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const wZ=(e,t)=>e.depth-t.depth;class jZ{constructor(){this.children=[],this.isDirty=!1}add(t){Pj(this.children,t),this.isDirty=!0}remove(t){Px(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wZ),this.isDirty=!1,this.children.forEach(t)}}function NZ(e,t){const n=Nr.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(No(r),e(s-t))};return Dt.setup(r,!0),()=>No(r)}function gx(e){return or(e)?e.get():e}class SZ{constructor(){this.members=[]}add(t){Pj(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(Px(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Px(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=r.options,{layoutDependency:s}=t.options;(a===void 0||a!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const yx={hasAnimatedSinceResize:!0,hasEverUpdated:!1},r1=["","X","Y","Z"],kZ=1e3;let AZ=0;function i1(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=MD(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Dt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hI(r)}function mI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},u=t?.()){this.id=AZ++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 10,421 bytes, line 23
23{this.projectionUpdateScheduled=!1,this.nodes.forEach(TZ),this.nodes.forEach(MZ),this.nodes.forEach(RZ),this.nodes.forEach(_Z)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new jZ)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Rj),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=Jj(l)&&!TX(l),this.instance=l;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let m,p=0;const g=()=>this.root.updateBlockedByResize=!1;Dt.read(()=>{p=window.innerWidth}),e(l,()=>{const y=window.innerWidth;y!==p&&(p=y,this.root.updateBlockedByResize=!0,m&&m(),m=NZ(g,250),yx.hasAnimatedSinceResize&&(yx.hasAnimatedSinceResize=!1,this.nodes.forEach(N4)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||f.getDefaultTransition()||BZ,{onLayoutAnimationStart:b,onLayoutAnimationComplete:N}=f.getProps(),k=!this.targetLayout||!uI(this.targetLayout,y),C=!p&&g;if(this.options.layoutRoot||this.resumeFrom||C||p&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...Hj(w,"layout"),onPlay:b,onComplete:N};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(m,C)}else p||N4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),No(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(DZ),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(w4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(j4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(PZ),this.nodes.forEach(CZ),this.nodes.forEach(EZ)):this.nodes.forEach(j4),this.clearAllSnapshots();const u=Nr.now();Kn.delta=Na(0,1e3/60,u-Kn.timestamp),Kn.timestamp=u,Kn.isProcessing=!0,Yb.update.process(Kn),Yb.preRender.process(Kn),Yb.render.process(Kn),Kn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OZ),this.sharedNodes.forEach(IZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Sr(this.snapshot.measuredBox.x)&&!Sr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=kn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!cI(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||dl(this.latestValues)||m)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),FZ(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return kn();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(UZ))){const{scroll:f}=this.root;f&&(fu(u.x,f.offset.x),fu(u.y,f.offset.y))}return u}removeElementScroll(l){const u=kn();if(Ri(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:m,options:p}=f;f!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&Ri(u,l),fu(u.x,m.offset.x),fu(u.y,m.offset.y))}return u}applyTransform(l,u=!1){const d=kn();Ri(d,l);for(let f=0;f<this.path.length;f++){const m=this.path[f];!u&&m.options.layoutScroll&&m.scroll&&m!==m.root&&hu(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),dl(m.latestValues)&&hu(d,m.latestValues)}return dl(this.latestValues)&&hu(d,this.latestValues),d}removeTransform(l){const u=kn();Ri(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!dl(f.latestValues))continue;Bw(f.latestValues)&&f.updateSnapshot();const m=kn(),p=f.measurePageBox();Ri(m,p),f4(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,m)}return dl(this.latestValues)&&f4(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Kn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=Kn.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kn(),this.targetWithTransforms=kn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uZ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ri(this.target,this.layout.layoutBox),XD(this.target,this.targetDelta)):Ri(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Bw(this.parent.latestValues)||QD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,u,d){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kn(),this.relativeTargetOrigin=kn(),Bx(this.relativeTargetOrigin,u,d),Ri(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;
vendor: 4,768 bytes, line 23
23if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Kn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;Ri(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;BX(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=kn());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(s4(this.prevProjectionDelta.x,this.projectionDelta.x),s4(this.prevProjectionDelta.y,this.projectionDelta.y)),Wf(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!g4(this.projectionDelta.x,this.prevProjectionDelta.x)||!g4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=du(),this.projectionDelta=du(),this.projectionDeltaWithTransform=du()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},m={...this.latestValues},p=du();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=kn(),y=d?d.source:void 0,w=this.layout?this.layout.source:void 0,b=y!==w,N=this.getStack(),k=!N||N.members.length<=1,C=!!(b&&!k&&this.options.crossfade===!0&&!this.path.some($Z));this.animationProgress=0;let A;this.mixTargetDelta=E=>{const _=E/1e3;S4(p.x,l.x,_),S4(p.y,l.y,_),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bx(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LZ(this.relativeTarget,this.relativeTargetOrigin,g,_),A&&mZ(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=kn()),Ri(A,this.relativeTarget)),b&&(this.animationValues=m,gZ(m,f,this.latestValues,_,C,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(No(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dt.update(()=>{yx.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Su(0)),this.motionValue.jump(0,!1),this.currentAnimation=bZ(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kZ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:m}=l;if(!(!u||!d||!f)){if(this!==l&&this.layout&&f&&pI(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||kn();const p=Sr(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+p;const g=Sr(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+g}Ri(u,d),hu(u,m),Wf(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new SZ),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;
vendor: 7,659 bytes, lines 23-28
23return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&i1("z",l,f,this.animationValues);for(let m=0;m<r1.length;m++)i1(`rotate${r1[m]}`,l,f,this.animationValues),i1(`skew${r1[m]}`,l,f,this.animationValues);l.render();for(const m in f)l.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=gx(u?.pointerEvents)||"",l.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=gx(u?.pointerEvents)||""),this.hasProjected&&!dl(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let p=pZ(this.projectionDeltaWithTransform,this.treeScale,m);d&&(p=d(m,p)),l.transform=p;const{x:g,y}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,f.animationValues?l.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const w in Uw){if(m[w]===void 0)continue;const{correct:b,applyTo:N,isCSSVariable:k}=Uw[w],C=p==="none"?m[w]:b(m[w],f);if(N){const A=N.length;for(let E=0;E<A;E++)l[N[E]]=C}else k?this.options.visualElement.renderState.vars[w]=C:l[w]=C}this.options.layoutId&&(l.pointerEvents=f===this?gx(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(w4),this.root.sharedNodes.clear()}}}function CZ(e){e.updateLayout()}function EZ(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?da(m=>{const p=s?t.measuredBox[m]:t.layoutBox[m],g=Sr(p);p.min=n[m].min,p.max=p.min+g}):pI(a,t.layoutBox,n)&&da(m=>{const p=s?t.measuredBox[m]:t.layoutBox[m],g=Sr(n[m]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+g)});const l=du();Wf(l,n,t.layoutBox);const u=du();s?Wf(u,e.applyTransform(r,!0),t.measuredBox):Wf(u,n,t.layoutBox);const d=!cI(l);let f=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const y=kn();Bx(y,t.layoutBox,p.layoutBox);const w=kn();Bx(w,n,g.layoutBox),uI(y,w)||(f=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function TZ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _Z(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OZ(e){e.clearSnapshot()}function w4(e){e.clearMeasurements()}function j4(e){e.isLayoutDirty=!1}function PZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function N4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function MZ(e){e.resolveTargetDelta()}function RZ(e){e.calcProjection()}function DZ(e){e.resetSkewAndRotation()}function IZ(e){e.removeLeadSnapshot()}function S4(e,t,n){e.translate=Yt(t.translate,0,n),e.scale=Yt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function k4(e,t,n,r){e.min=Yt(t.min,n.min,r),e.max=Yt(t.max,n.max,r)}function LZ(e,t,n,r){k4(e.x,t.x,n.x,r),k4(e.y,t.y,n.y,r)}function $Z(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BZ={duration:.45,ease:[.4,0,.1,1]},A4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),C4=A4("applewebkit/")&&!A4("chrome/")?Math.round:ki;function E4(e){e.min=C4(e.min),e.max=C4(e.max)}function FZ(e){E4(e.x),E4(e.y)}function pI(e,t,n){return e==="position"||e==="preserve-aspect"&&!cZ(x4(t),x4(n),.2)}function UZ(e){return e!==e.root&&e.scroll?.wasRoot}const zZ=mI({attachResizeListener:(e,t)=>ah(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),a1={current:void 0},xI=mI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!a1.current){const e=new zZ({});e.mount(window),e.setOptions({layoutScroll:!0}),a1.current=e}return a1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),aN=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function T4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function VZ(...e){return t=>{let n=!1;const r=e.map(a=>{const s=T4(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():T4(e[a],null)}}}}function WZ(...e){return v.useCallback(VZ(...e),e)}class qZ extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=$w(r)&&r.offsetWidth||0,s=$w(r)&&r.offsetHeight||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=a-l.width-l.left,l.bottom=s-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function HZ({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:s}){const l=v.useId(),u=v.useRef(null),d=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=v.useContext(aN),m=e.props?.ref??e?.ref,p=WZ(u,m);return v.useInsertionEffect(()=>{const{width:g,height:y,top:w,left:b,right:N,bottom:k}=d.current;if(t||s===!1||!u.current||!g||!y)return;const C=n==="left"?`left: ${b}`:`right: ${N}`,A=r==="bottom"?`bottom: ${k}`:`top: ${w}`;u.current.dataset.motionPopId=l;const E=document.createElement("style");f&&(E.nonce=f);const _=a??document.head;return _.appendChild(E),E.sheet&&E.sheet.insertRule(` 24 [data-motion-pop-id="${l}"] { 25 position: absolute !important; 26 width: ${g}px !important; 27 height: ${y}px !important; 28 ${C}
28px !important; 29 ${A}px !important; 30 } 31 `),()=>{_.contains(E)&&_.removeChild(E)}},[t]),i.jsx(qZ,{isPresent:t,childRef:u,sizeRef:d,pop:s,children:s===!1?e:v.cloneElement(e,{ref:p})})}const GZ=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:d,root:f})=>{const m=Oj(KZ),p=v.useId();let g=!0,y=v.useMemo(()=>(g=!1,{id:p,initial:t,isPresent:n,custom:a,onExitComplete:w=>{m.set(w,!0);for(const b of m.values())if(!b)return;r&&r()},register:w=>(m.set(w,!1),()=>m.delete(w))}),[n,m,r]);return s&&g&&(y={...y}),v.useMemo(()=>{m.forEach((w,b)=>m.set(b,!1))},[n]),v.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=i.jsx(HZ,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:d,root:f,children:e}),i.jsx(a0.Provider,{value:y,children:e})};function KZ(){return new Map}function gI(e=!0){const t=v.useContext(a0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=v.useId();v.useEffect(()=>{if(e)return a(s)},[e]);const l=v.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Tp=e=>e.key||"";function _4(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const cn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",anchorY:d="top",root:f})=>{const[m,p]=gI(l),g=v.useMemo(()=>_4(e),[e]),y=l&&!m?[]:g.map(Tp),w=v.useRef(!0),b=v.useRef(g),N=Oj(()=>new Map),k=v.useRef(new Set),[C,A]=v.useState(g),[E,_]=v.useState(g);WR(()=>{w.current=!1,b.current=g;for(let P=0;P<E.length;P++){const D=Tp(E[P]);y.includes(D)?(N.delete(D),k.current.delete(D)):N.get(D)!==!0&&N.set(D,!1)}},[E,y.length,y.join("-")]);const T=[];if(g!==C){let P=[...g];for(let D=0;D<E.length;D++){const U=E[D],L=Tp(U);y.includes(L)||(P.splice(D,0,U),T.push(U))}return s==="wait"&&T.length&&(P=T),_(_4(P)),A(g),null}const{forceRender:M}=v.useContext(_j);return i.jsx(i.Fragment,{children:E.map(P=>{const D=Tp(P),U=l&&!m?!1:g===E||y.includes(D),L=()=>{if(k.current.has(D))return;if(k.current.add(D),N.has(D))N.set(D,!0);else return;let $=!0;N.forEach(G=>{G||($=!1)}),$&&(M?.(),_(b.current),l&&p?.(),r&&r())};return i.jsx(GZ,{isPresent:U,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:f,onExitComplete:U?void 0:L,anchorX:u,anchorY:d,children:P},D)})})},yI=v.createContext({strict:!1}),O4={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let P4=!1;function YZ(){if(P4)return;const e={};for(const t in O4)e[t]={isEnabled:n=>O4[t].some(r=>!!n[r])};GD(e),P4=!0}function vI(){return YZ(),DX()}function QZ(e){const t=vI();for(const n in e)t[n]={...t[n],...e[n]};GD(t)}const XZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Fx(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XZ.has(e)}let bI=e=>!Fx(e);function ZZ(e){typeof e=="function"&&(bI=t=>t.startsWith("on")?!Fx(t):e(t))}try{ZZ(require("@emotion/is-prop-valid").default)}catch{}function JZ(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(bI(a)||n===!0&&Fx(a)||!t&&!Fx(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const l0=v.createContext({});function eJ(e,t){if(o0(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ih(n)?n:void 0,animate:ih(r)?r:void 0}}return e.inherit!==!1?t:{}}function tJ(e){const{initial:t,animate:n}=eJ(e,v.useContext(l0));return v.useMemo(()=>({initial:t,animate:n}),[M4(t),M4(n)])}function M4(e){return Array.isArray(e)?e.join(" "):e}const sN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wI(e,t,n){for(const r in t)!or(t[r])&&!eI(r,n)&&(e[r]=t[r])}function nJ({transformTemplate:e},t){return v.useMemo(()=>{const n=sN();return rN(n,t,e),Object.assign({},n.vars,n.style)},[t])}function rJ(e,t){const n=e.style||{},r={};return wI(r,n,e),Object.assign(r,nJ(e,t)),r}function iJ(e,t){const n={},r=rJ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
31`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const jI=()=>({...sN(),attrs:{}});function aJ(e,t,n,r){const a=v.useMemo(()=>{const s=jI();return tI(s,t,rI(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wI(s,e.style,e),a.style={...s,...a.style}}return a}const sJ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function oN(e){return typeof e!="string"||e.includes("-")?!1:!!(sJ.indexOf(e)>-1||/[A-Z]/u.test(e))}function oJ(e,t,n,{latestValues:r},a,s=!1,l){const d=(l??oN(e)?aJ:iJ)(t,r,a,e),f=JZ(t,typeof e=="string",s),m=e!==v.Fragment?{...f,...d,ref:n}:{},{children:p}=t,g=v.useMemo(()=>or(p)?p.get():p,[p]);return v.createElement(e,{...m,children:g})}function lJ({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:cJ(n,r,a,e),renderState:t()}}function cJ(e,t,n,r){const a={},s=r(e,{});for(const g in s)a[g]=gx(s[g]);let{initial:l,animate:u}=e;const d=o0(e),f=qD(e);t&&f&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const p=m?u:l;if(p&&typeof p!="boolean"&&!s0(p)){const g=Array.isArray(p)?p:[p];for(let y=0;y<g.length;y++){const w=Kj(e,g[y]);if(w){const{transitionEnd:b,transition:N,...k}=w;for(const C in k){let A=k[C];if(Array.isArray(A)){const E=m?A.length-1:0;A=A[E]}A!==null&&(a[C]=A)}for(const C in b)a[C]=b[C]}}}return a}const NI=e=>(t,n)=>{const r=v.useContext(l0),a=v.useContext(a0),s=()=>lJ(e,t,r,a);return n?s():Oj(s)},uJ=NI({scrapeMotionValuesFromProps:iN,createRenderState:sN}),dJ=NI({scrapeMotionValuesFromProps:iI,createRenderState:jI}),fJ=Symbol.for("motionComponentSymbol");function hJ(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const a=v.useRef(null);return v.useCallback(s=>{s&&e.onMount?.(s);const l=r.current;if(typeof l=="function")if(s){const u=l(s);typeof u=="function"&&(a.current=u)}else a.current?(a.current(),a.current=null):l(s);else l&&(l.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const SI=v.createContext({});function au(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mJ(e,t,n,r,a,s){const{visualElement:l}=v.useContext(l0),u=v.useContext(yI),d=v.useContext(a0),f=v.useContext(aN),m=f.reducedMotion,p=f.skipAnimations,g=v.useRef(null),y=v.useRef(!1);r=r||u.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m,skipAnimations:p,isSVG:s}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const w=g.current,b=v.useContext(SI);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&pJ(g.current,n,a,b);const N=v.useRef(!1);v.useInsertionEffect(()=>{w&&N.current&&w.update(n,d)});const k=n[PD],C=v.useRef(!!k&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return WR(()=>{y.current=!0,w&&(N.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),C.current&&w.animationState&&w.animationState.animateChanges())}),v.useEffect(()=>{w&&(!C.current&&w.animationState&&w.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),C.current=!1),w.enteringChildren=void 0)}),w}function pJ(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kI(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||u&&au(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:d,layoutRoot:f})}function kI(e){if(e)return e.options.allowProjection!==!1?e.projection:kI(e.parent)}function s1(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&QZ(r);const s=n?n==="svg":oN(e),l=s?dJ:uJ;function u(f,m){let p;const g={...v.useContext(aN),...f,layoutId:xJ(f)},{isStatic:y}=g,w=tJ(f),b=l(f,y);
vendor: 17,879 bytes, line 31
31if(!y&&typeof window<"u"){gJ();const N=yJ(g);p=N.MeasureLayout,w.visualElement=mJ(e,b,g,a,N.ProjectionNode,s)}return i.jsxs(l0.Provider,{value:w,children:[p&&w.visualElement?i.jsx(p,{visualElement:w.visualElement,...g}):null,oJ(e,f,hJ(b,w.visualElement,m),b,y,t,s)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=v.forwardRef(u);return d[fJ]=e,d}function xJ({layoutId:e}){const t=v.useContext(_j).id;return t&&e!==void 0?t+"-"+e:e}function gJ(e,t){v.useContext(yI).strict}function yJ(e){const t=vI(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function vJ(e,t){if(typeof Proxy>"u")return s1;const n=new Map,r=(s,l)=>s1(s,l,e,t),a=(s,l)=>r(s,l);return new Proxy(a,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,s1(l,void 0,e,t)),n.get(l))})}const bJ=(e,t)=>t.isSVG??oN(e)?new ZX(t):new HX(t,{allowProjection:e!==v.Fragment});class wJ extends To{constructor(t){super(t),t.animationState||(t.animationState=rZ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();s0(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let jJ=0;class NJ extends To{constructor(){super(...arguments),this.id=jJ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const SJ={animation:{Feature:wJ},exit:{Feature:NJ}};function $h(e){return{point:{x:e.pageX,y:e.pageY}}}const kJ=e=>t=>Zj(t)&&e(t,$h(t));function qf(e,t,n,r){return ah(e,t,kJ(n),r)}const AI=({current:e})=>e?e.ownerDocument.defaultView:null,R4=(e,t)=>Math.abs(e-t);function AJ(e,t){const n=R4(e.x,t.x),r=R4(e.y,t.y);return Math.sqrt(n**2+r**2)}const D4=new Set(["auto","scroll"]);class CI{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=l1(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=AJ(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!b)return;const{point:N}=y,{timestamp:k}=Kn;this.history.push({...N,timestamp:k});const{onStart:C,onMove:A}=this.handlers;w||(C&&C(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=o1(w,this.transformPagePoint),Dt.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:b,onSessionEnd:N,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=l1(y.type==="pointercancel"?this.lastMoveEventInfo:o1(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,C),N&&N(y,C)},!Zj(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const d=$h(t),f=o1(d,this.transformPagePoint),{point:m}=f,{timestamp:p}=Kn;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,l1(f,this.history)),this.removeListeners=Dh(qf(this.contextWindow,"pointermove",this.handlePointerMove),qf(this.contextWindow,"pointerup",this.handlePointerUp),qf(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(D4.has(r.overflowX)||D4.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:a.x-n.x,y:a.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,a),Dt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),No(this.updatePoint)}}function o1(e,t){return t?{point:t(e.point)}:e}function I4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function l1({point:e},t){return{point:e,delta:I4(e,EI(t)),offset:I4(e,CJ(t)),velocity:EJ(t,.1)}}function CJ(e){return e[0]}function EI(e){return e[e.length-1]}function EJ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=EI(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Wi(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Wi(t)*2&&(r=e[1]);const s=wi(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function TJ(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Yt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Yt(n,e,r.max):Math.min(e,n)),e}function L4(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function _J(e,{top:t,left:n,bottom:r,right:a}){return{x:L4(e.x,n,a),y:L4(e.y,t,r)}}function $4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function OJ(e,t){return{x:$4(e.x,t.x),y:$4(e.y,t.y)}}function PJ(e,t){let n=.5;const r=Sr(e),a=Sr(t);return a>r?n=th(t.min,t.max-r,e.min):r>a&&(n=th(e.min,e.max-a,t.min)),Na(0,1,n)}function MJ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const zw=.35;function RJ(e=zw){return e===!1?e=0:e===!0&&(e=zw),{x:B4(e,"left","right"),y:B4(e,"top","bottom")}}function B4(e,t,n){return{min:F4(e,t),max:F4(e,n)}}function F4(e,t){return typeof e=="number"?e:e[t]||0}const DJ=new WeakMap;class IJ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=p=>{n&&this.snapToCursor($h(p).point),this.stopAnimation()},l=(p,g)=>{const{drag:y,dragPropagation:w,onDragStart:b}=this.getProps();if(y&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fX(y),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),da(k=>{let C=this.getAxisMotionValue(k).get()||0;if(ya.test(C)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[k];E&&(C=Sr(E)*(parseFloat(C)/100))}}this.originPoint[k]=C}),b&&Dt.update(()=>b(p,g),!1,!0),Rw(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},u=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g;const{dragPropagation:y,dragDirectionLock:w,onDirectionLock:b,onDrag:N}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:k}=g;if(w&&this.currentDirection===null){this.currentDirection=$J(k),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,k),this.updateAxis("y",g.point,k),this.visualElement.render(),N&&Dt.update(()=>N(p,g),!1,!0)},d=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g,this.stop(p,g),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new CI(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:AI(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&Dt.postRender(()=>u(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!_p(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=TJ(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&au(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=_J(r.layoutBox,t):this.constraints=!1,this.elastic=RJ(n),a!==this.constraints&&!au(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&da(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=MJ(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!au(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=FX(r,a.root,this.visualElement.getTransformPagePoint());let l=OJ(a.layout.layoutBox,s);if(n){const u=n(LX(l));this.hasMutatedConstraints=!!u,u&&(l=YD(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=da(m=>{if(!_p(m,n,this.currentDirection))return;let p=d&&d[m]||{};l&&(p={min:0,max:0});const g=a?200:1e6,y=a?40:1e7,w={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(m,w)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rw(this.visualElement,t),r.start(Gj(t,r,0,n,this.visualElement,!1))}stopAnimation(){da(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){da(n=>{const{drag:r}=this.getProps();if(!_p(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:u}=a.layout.layoutBox[n],d=s.get()||0;s.set(t[n]-Yt(l,u,.5)+d)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!au(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};da(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();a[l]=PJ({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),da(l=>{if(!_p(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(Yt(d,f,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;DJ.set(this.visualElement,this);const t=this.visualElement.current,n=qf(t,"pointerdown",f=>{const{drag:m,dragListener:p=!0}=this.getProps(),g=f.target,y=g!==t&&yX(g);m&&p&&!y&&this.start(f)});let r;const a=()=>{const{dragConstraints:f}=this.getProps();au(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),r||(r=LJ(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Dt.read(a);const u=ah(window,"resize",()=>this.scalePositionWithinConstraints()),d=s.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(da(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=zw,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function U4(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function LJ(e,t,n){const r=GT(e,U4(n)),a=GT(t,U4(n));return()=>{r(),a()}}function _p(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $J(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class BJ extends To{constructor(t){super(t),this.removeGroupControls=ki,this.removeListeners=ki,this.controls=new IJ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ki}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const c1=e=>(t,n)=>{e&&Dt.update(()=>e(t,n),!1,!0)};class FJ extends To{constructor(){super(...arguments),this.removePointerDownListener=ki}onPointerDown(t){this.session=new CI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:AI(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:c1(t),onStart:c1(n),onMove:c1(r),onEnd:(s,l)=>{delete this.session,a&&Dt.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=qf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let u1=!1;class UJ extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),u1&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),yx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),u1=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||Dt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xj.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;u1=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function TI(e){const[t,n]=gI(),r=v.useContext(_j);return i.jsx(UJ,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(SI),isPresent:t,safeToRemove:n})}const zJ={pan:{Feature:FJ},drag:{Feature:BJ,ProjectionNode:xI,MeasureLayout:TI}};function z4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&Dt.postRender(()=>s(t,$h(t)))}class VJ extends To{mount(){const{current:t}=this.node;t&&(this.unmount=mX(t,(n,r)=>(z4(this.node,r,"Start"),a=>z4(this.node,a,"End"))))}unmount(){}}class WJ extends To{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}
31mount(){this.unmount=Dh(ah(this.node.current,"focus",()=>this.onFocus()),ah(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function V4(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&Dt.postRender(()=>s(t,$h(t)))}class qJ extends To{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=bX(t,(a,s)=>(V4(this.node,s,"Start"),(l,{success:u})=>V4(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Vw=new WeakMap,d1=new WeakMap,HJ=e=>{const t=Vw.get(e.target);t&&t(e)},GJ=e=>{e.forEach(HJ)};function KJ({root:e,...t}){const n=e||document;d1.has(n)||d1.set(n,{});const r=d1.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(GJ,{root:e,...t})),r[a]}function YJ(e,t,n){const r=KJ(t);return Vw.set(e,n),r.observe(e),()=>{Vw.delete(e),r.unobserve(e)}}const QJ={some:0,all:1};class XJ extends To{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:QJ[a]},u=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:m,onViewportLeave:p}=this.node.getProps(),g=f?m:p;g&&g(d)};return YJ(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ZJ(t,n))&&this.startObserver()}unmount(){}}function ZJ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const JJ={inView:{Feature:XJ},tap:{Feature:qJ},focus:{Feature:WJ},hover:{Feature:VJ}},eee={layout:{ProjectionNode:xI,MeasureLayout:TI}},tee={...SJ,...JJ,...zJ,...eee},be=vJ(tee,bJ);function _I(){!nN.current&&HD();const[e]=v.useState(Ix.current);return e}const OI=new XK({defaultOptions:{queries:{retry:1,staleTime:3e4}}}),nee=new Set([204,205,304]),ree="application/json, application/problem+json";function PI(e){return typeof Request<"u"&&e instanceof Request}function iee(e,t){return t?t.toUpperCase():PI(e)?e.method.toUpperCase():"GET"}function aee(e){return typeof URL<"u"&&e instanceof URL}function see(e){return typeof e=="string"?e:aee(e)?e.toString():e.url}function oee(...e){const t=new Headers;for(const n of e)n&&new Headers(n).forEach((r,a)=>{t.set(a,r)});return t}function MI(e){const t=e.get("content-type");return t?t.split(";",1)[0].trim().toLowerCase():null}function Ww(e){return e==="application/json"||!!e?.endsWith("+json")}function RI(e){return!!(e&&(e.startsWith("text/")||e==="application/xml"||e==="text/xml"||e.endsWith("+xml")||e==="application/x-www-form-urlencoded"))}function DI(e,t){return!!(t==="HEAD"||nee.has(e.status)||e.headers.get("content-length")==="0"||e.body===null)}function II(e){return e.charCodeAt(0)===65279?e.slice(1):e}function LI(e){const t=e.trimStart();return t.startsWith("{")||t.startsWith("[")}function ff(e,t){if(!e||typeof e!="object")return;const n=e[t];if(typeof n!="string")return;const r=n.trim();return r===""?void 0:r}function lee(e,t=300){return e.length>t?`${e.slice(0,t-1)}â¦`:e}function cee(e,t){const n=`HTTP ${e.status} ${e.statusText}`;if(typeof t=="string"){const l=t.trim();return l?`${n}: ${lee(l)}`:n}const r=ff(t,"title"),a=ff(t,"detail"),s=ff(t,"message")??ff(t,"error_description")??ff(t,"error");return r&&a?`${n}: ${r} â ${a}`:a?`${n}: ${a}`:s?`${n}: ${s}`:r?`${n}: ${r}`:n}class uee extends Error{name="ApiError";status;statusText;data;headers;response;method;url;constructor(t,n,r){super(cee(t,n)),Object.setPrototypeOf(this,new.target.prototype),this.status=t.status,this.statusText=t.statusText,this.data=n,this.headers=t.headers,this.response=t,this.method=r.method,this.url=t.url||r.url}}
31class dee extends Error{name="ResponseParseError";status;statusText;headers;response;method;url;rawBody;cause;constructor(t,n,r,a){super(`Failed to parse response from ${a.method} ${t.url||a.url} (${t.status} ${t.statusText}) as JSON`),Object.setPrototypeOf(this,new.target.prototype),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers,this.response=t,this.method=a.method,this.url=t.url||a.url,this.rawBody=n,this.cause=r}}async function fee(e,t){const n=await e.text(),r=II(n);if(r.trim()==="")return null;try{return JSON.parse(r)}catch(a){throw new dee(e,n,a,t)}}async function hee(e,t){if(DI(e,t))return null;const n=MI(e.headers);if(n&&!Ww(n)&&!RI(n))return typeof e.blob=="function"?e.blob():e.text();const r=await e.text(),a=II(r);if(a.trim()==="")return null;if(Ww(n)||LI(a))try{return JSON.parse(a)}catch{return r}return r}function mee(e){const t=MI(e.headers);return Ww(t)?"json":RI(t)||t==null?"text":"blob"}async function pee(e,t,n){if(DI(e,n.method))return null;switch(t==="auto"?mee(e):t){case"json":return fee(e,n);case"text":{const a=await e.text();return a===""?null:a}case"blob":if(typeof e.blob!="function")throw new TypeError('Blob responses are not supported in this runtime. Use responseType "json" or "text" instead.');return e.blob()}}async function st(e,t={}){e=e;const{responseType:n="auto",headers:r,...a}=t,s=iee(e,a.method);if(a.body!=null&&(s==="GET"||s==="HEAD"))throw new TypeError(`customFetch: ${s} requests cannot have a body.`);const l=oee(PI(e)?e.headers:void 0,r);typeof a.body=="string"&&!l.has("content-type")&&LI(a.body)&&l.set("content-type","application/json"),n==="json"&&!l.has("accept")&&l.set("accept",ree);const u={method:s,url:see(e)},d=await fetch(e,{...a,method:s,headers:l});if(!d.ok){const f=await hee(d,s);throw new uee(d,f,u)}return await pee(d,n,u)}const Wu=(e,t)=>{const n={queryKey:t};for(const r of Object.keys(e))r!=="queryKey"&&Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get:()=>e[r]});return n},xee=()=>"/api/ministries/me",$I=async e=>st(xee(),{...e,method:"GET"}),gee=()=>"/api/ministries",yee=async(e,t)=>st(gee(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),vee=e=>{const t=new URLSearchParams;Object.entries(e||{}).forEach(([r,a])=>{a!==void 0&&t.append(r,a===null?"null":String(a))});const n=t.toString();return n.length>0?`/api/ministries/me/responses?${n}`:"/api/ministries/me/responses"},bee=async(e,t)=>st(vee(e),{...t,method:"GET"}),wee=()=>"/api/ministries/me/campaigns",jee=async e=>st(wee(),{...e,method:"GET"}),Nee=()=>"/api/ministries/me/campaigns",See=async(e,t)=>st(Nee(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),kee=e=>`/api/ministries/me/campaigns/${e}`,Aee=async(e,t)=>st(kee(e),{...t,method:"DELETE"}),Cee=e=>`/api/survey/${e}`,Eee=async(e,t)=>st(Cee(e),{...t,method:"GET"}),Tee=e=>`/api/survey/${e}`,_ee=async(e,t,n)=>st(Tee(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),Oee=()=>"/api/admin/stats",Pee=async e=>st(Oee(),{...e,method:"GET"}),Mee=()=>"/api/admin/ministries",Ree=async e=>st(Mee(),{...e,method:"GET"}),Dee=e=>`/api/admin/ministries/${e}`,Iee=async(e,t)=>st(Dee(e),{...t,method:"DELETE"}),Lee=()=>"/api/admin/assessments",$ee=async e=>st(Lee(),{...e,method:"GET"}),Bee=e=>{const t=new URLSearchParams;Object.entries(e||{}).forEach(([r,a])=>{a!==void 0&&t.append(r,a===null?"null":String(a))});const n=t.toString();return n.length>0?`/api/admin/responses?${n}`:"/api/admin/responses"},Fee=async(e,t)=>st(Bee(e),{...t,method:"GET"}),Uee=()=>"/api/bundle/checkout",BI=async(e,t)=>st(Uee(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),zee=()=>"/api/admin/setup",Vee=async(e,t)=>st(zee(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Wee=()=>"/api/training/courses",qee=async e=>st(Wee(),{...e,method:"GET"}),ha=()=>["/api/training/courses"],Hee=e=>{const{query:t,request:n}=e??{};return{queryKey:t?.queryKey??ha(),queryFn:({signal:s})=>qee({signal:s,...n}),...t}};function FI(e){const t=Hee(e),n=bt(t);return Wu(n,t.queryKey)}const Gee=()=>"/api/training/preferences",Kee=async e=>st(Gee(),{...e,method:"GET"}),lN=()=>["/api/training/preferences"],Yee=e=>{const{query:t,request:n}=e??{};return{queryKey:t?.queryKey??lN(),queryFn:({signal:s})=>Kee({signal:s,...n}),...t}};function Qee(e){const t=Yee(e),n=bt(t);return Wu(n,t.queryKey)}const Xee=()=>"/api/training/preferences",Zee=async(e,t)=>st(Xee(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Jee=e=>{const t=["saveTrainingPreferences"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{data:l}=s??{};return Zee(l,r)},...n}},ete=e=>$t(Jee()),tte=e=>`/api/training/courses/${e}/responses`,nte=async(e,t)=>st(tte(e),{...t,method:"GET"}),cN=e=>[`/api/training/courses/${e}/responses`],rte=(e,t)=>
31{const{query:n,request:r}=t??{};return{queryKey:n?.queryKey??cN(e),queryFn:({signal:l})=>nte(e,{signal:l,...r}),enabled:e!=null,...n}};function ite(e,t){const n=rte(e,t),r=bt(n);return Wu(r,n.queryKey)}const ate=e=>`/api/training/lessons/${e}/responses`,ste=async(e,t,n)=>st(ate(e),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),ote=e=>{const t=["saveTrainingLessonResponse"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{lessonId:l,data:u}=s??{};return ste(l,u,r)},...n}},lte=e=>$t(ote()),uN=()=>["/api/training/course-summaries"],cte=()=>"/api/admin/training/courses",ute=async e=>st(cte(),{...e,method:"GET"}),is=()=>["/api/admin/training/courses"],dte=e=>{const{query:t,request:n}=e??{};return{queryKey:t?.queryKey??is(),queryFn:({signal:s})=>ute({signal:s,...n}),...t}};function UI(e){const t=dte(e),n=bt(t);return Wu(n,t.queryKey)}const fte=()=>"/api/admin/training/courses",hte=async(e,t)=>st(fte(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),mte=e=>{const t=["createTrainingCourse"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{data:l}=s??{};return hte(l,r)},...n}},pte=e=>$t(mte()),xte=()=>"/api/admin/training/analytics",gte=async e=>st(xte(),{...e,method:"GET"}),yte=e=>`/api/admin/training/courses/${e}`,vte=async(e,t,n)=>st(yte(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),bte=e=>{const t=["updateTrainingCourse"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l,data:u}=s??{};return vte(l,u,r)},...n}},wte=e=>$t(bte()),jte=e=>`/api/admin/training/courses/${e}`,Nte=async(e,t)=>st(jte(e),{...t,method:"DELETE"}),Ste=e=>{const t=["deleteTrainingCourse"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l}=s??{};return Nte(l,r)},...n}},kte=e=>$t(Ste()),Ate=e=>`/api/admin/training/courses/${e}/publish-all`,Cte=async(e,t)=>st(Ate(e),{...t,method:"POST"}),Ete=e=>{const t=["publishAllTrainingCourseContent"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l}=s??{};return Cte(l,r)},...n}},Tte=e=>$t(Ete()),_te=e=>`/api/admin/training/courses/${e}/lessons`,Ote=async(e,t,n)=>st(_te(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),Pte=e=>{const t=["createTrainingLesson"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{courseId:l,data:u}=s??{};return Ote(l,u,r)},...n}},Mte=e=>$t(Pte()),Rte=e=>`/api/admin/training/lessons/${e}`,Dte=async(e,t,n)=>st(Rte(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),Ite=e=>{const t=["updateTrainingLesson"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l,data:u}=s??{};return Dte(l,u,r)},...n}},Lte=e=>$t(Ite()),$te=e=>`/api/admin/training/lessons/${e}`,Bte=async(e,t)=>st($te(e),{...t,method:"DELETE"}),Fte=e=>{const t=["deleteTrainingLesson"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l}=s??{};return Bte(l,r)},...n}},Ute=e=>$t(Fte()),zte=()=>"/api/admin/training/upload-url",Vte=async(e,t)=>st(zte(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Wte=e=>{const t=["createTrainingUpload"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{data:l}=s??{};return Vte(l,r)},...n}},qte=e=>$t(Wte()),Hte=e=>`/api/admin/training/lessons/${e}/assets`,Gte=async(e,t,n)=>st(Hte(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),Kte=e=>{const t=["createTrainingAsset"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{lessonId:l,data:u}=s??{};return Gte(l,u,r)},...n}},Yte=e=>$t(Kte()),Qte=e=>`/api/admin/training/assets/${e}`,Xte=async(e,t)=>st(Qte(e),{...t,method:"DELETE"}),Zte=e=>{const t=["deleteTrainingAsset"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l}=s??{};return Xte(l,r)},...n}},Jte=e=>$t(Zte()),ene=()=>"/api/video-reviews",tne=async e=>st(ene(),{...e,method:"GET"}),Ux=()=>["/api/video-reviews"],nne=e=>{const{query:t,request:n}={};return{queryKey:t?.queryKey??Ux(),queryFn:({signal:s})=>tne({signal:s,...n}),...t}};function rne(e){const t=nne(),n=bt(t);return Wu(n,t.queryKey)}const ine=()=>"/api/admin/video-reviews",ane=async e=>st(ine(),{...e,method:"GET"}),zx=()=>["/api/admin/video-reviews"],sne=e=>{const{query:t,request:n}={};return{queryKey:t?.queryKey??zx(),queryFn:({signal:s})=>ane({signal:s,...n}),...t}};function one(e){const t=sne(),n=bt(t);return Wu(n,t.queryKey)}const lne=()=>"/api/admin/video-reviews",cne=async(e,t)=>st(lne(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),une=e=>{const t=["createVideoReview"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{data:l}=s??{};return cne(l,r)},...n}},dne=e=>$t(une()),fne=()=>"/api/admin/video-reviews/upload-url",hne=async(e,t)=>st(fne(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),mne=e=>{const t=["createVideoReviewUpload"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{data:l}=s??{};return hne(l,r)},...n}},pne=e=>$t(mne()),xne=e=>`/api/admin/video-reviews/${e}`,gne=async(e,t,n)=>st(xne(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),yne=e=>{const t=["updateVideoReview"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l,data:u}=s??{};return gne(l,u,r)},...n}},zI=e=>$t(yne()),vne=e=>`/api/admin/video-reviews/${e}`,bne=async(e,t)=>st(vne(e),{...t,method:"DELETE"}),wne=e=>{const t=["deleteVideoReview"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:s=>{const{id:l}=s??{};return bne(l,r)},...n}},jne=e=>$t(wne());function W4(e,t){if(typeof e=="function")return e(t);
vendor: 11,466 bytes, line 31
31e!=null&&(e.current=t)}function dN(...e){return t=>{let n=!1;const r=e.map(a=>{const s=W4(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():W4(e[a],null)}}}}function Nt(...e){return v.useCallback(dN(...e),e)}var Nne=Symbol.for("react.lazy"),Vx=Lu[" use ".trim().toString()];function Sne(e){return typeof e=="object"&&e!==null&&"then"in e}function VI(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Nne&&"_payload"in e&&Sne(e._payload)}function WI(e){const t=Ane(e),n=v.forwardRef((r,a)=>{let{children:s,...l}=r;VI(s)&&typeof Vx=="function"&&(s=Vx(s._payload));const u=v.Children.toArray(s),d=u.find(Ene);if(d){const f=d.props.children,m=u.map(p=>p===d?v.Children.count(f)>1?v.Children.only(null):v.isValidElement(f)?f.props.children:null:p);return i.jsx(t,{...l,ref:a,children:v.isValidElement(f)?v.cloneElement(f,void 0,m):null})}return i.jsx(t,{...l,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var kne=WI("Slot");function Ane(e){const t=v.forwardRef((n,r)=>{let{children:a,...s}=n;if(VI(a)&&typeof Vx=="function"&&(a=Vx(a._payload)),v.isValidElement(a)){const l=_ne(a),u=Tne(s,a.props);return a.type!==v.Fragment&&(u.ref=r?dN(r,l):l),v.cloneElement(a,u)}return v.Children.count(a)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cne=Symbol("radix.slottable");function Ene(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cne}function Tne(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...u)=>{const d=s(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function _ne(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function qI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=qI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=qI(e))&&(r&&(r+=" "),r+=t);return r}const q4=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,H4=Bt,HI=(e,t)=>n=>{var r;if(t?.variants==null)return H4(e,n?.class,n?.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(f=>{const m=n?.[f],p=s?.[f];if(m===null)return null;const g=q4(m)||q4(p);return a[f][g]}),u=n&&Object.entries(n).reduce((f,m)=>{let[p,g]=m;return g===void 0||(f[p]=g),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:p,className:g,...y}=m;return Object.entries(y).every(w=>{let[b,N]=w;return Array.isArray(N)?N.includes({...s,...u}[b]):{...s,...u}[b]===N})?[...f,p,g]:f},[]);return H4(e,l,d,n?.class,n?.className)},One=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Pne=(e,t)=>({classGroupId:e,validator:t}),GI=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wx="-",G4=[],Mne="arbitrary..",Rne=e=>{const t=Ine(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Dne(l);const u=l.split(Wx),d=u[0]===""&&u.length>1?1:0;return KI(u,d,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const d=r[l],f=n[l];return d?f?One(f,d):d:f||G4}return n[l]||G4}}},KI=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],s=n.nextPart.get(a);if(s){const f=KI(e,t+1,s);if(f)return f}const l=n.validators;if(l===null)return;const u=t===0?e.join(Wx):e.slice(t).join(Wx),d=l.length;for(let f=0;f<d;f++){const m=l[f];if(m.validator(u))return m.classGroupId}},Dne=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Mne+r:void 0})(),Ine=e=>{const{theme:t,classGroups:n}=e;return Lne(n,t)},Lne=(e,t)=>{const n=GI();for(const r in e){const a=e[r];fN(a,n,r,t)}return n},fN=(e,t,n,r)=>{const a=e.length;for(let s=0;s<a;s++){const l=e[s];$ne(l,t,n,r)}},$ne=(e,t,n,r)=>{if(typeof e=="string"){Bne(e,t,n);return}if(typeof e=="function"){Fne(e,t,n,r);return}Une(e,t,n,r)},Bne=(e,t,n)=>{const r=e===""?t:YI(t,e);r.classGroupId=n},Fne=(e,t,n,r)=>{if(zne(e)){fN(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Pne(n,e))},Une=(e,t,n,r)=>{const a=Object.entries(e),s=a.length;for(let l=0;l<s;l++){const[u,d]=a[l];fN(d,YI(t,u),n,r)}},YI=(e,t)=>{let n=e;const r=t.split(Wx),a=r.length;for(let s=0;s<a;s++){const l=r[s];let u=n.nextPart.get(l);u||(u=GI(),n.nextPart.set(l,u)),n=u}return n},zne=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Vne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return a(s,l),l},set(s,l){s in n?n[s]=l:a(s,l)}}},qw="!",K4=":",Wne=[],Y4=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),qne=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let l=0,u=0,d=0,f;const m=a.length;for(let b=0;b<m;b++){const N=a[b];if(l===0&&u===0){if(N===K4){s.push(a.slice(d,b)),d=b+1;continue}if(N==="/"){f=b;continue}}N==="["?l++:N==="]"?l--:N==="("?u++:N===")"&&u--}const p=s.length===0?a:a.slice(d);let g=p,y=!1;p.endsWith(qw)?(g=p.slice(0,-1),y=!0):p.startsWith(qw)&&(g=p.slice(1),y=!0);const w=f&&f>d?f-d:void 0;return Y4(s,y,g,w)};if(t){const a=t+K4,s=r;r=l=>l.startsWith(a)?s(l.slice(a.length)):Y4(Wne,!1,l,void 0,!0)}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},Hne=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let s=0;s<n.length;s++){const l=n[s],u=l[0]==="[",d=t.has(l);u||d?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(l)):a.push(l)}return a.length>0&&(a.sort(),r.push(...a)),r}},Gne=e=>({cache:Vne(e.cacheSize),parseClassName:qne(e),sortModifiers:Hne(e),...Rne(e)}),Kne=/\s+/,Yne=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,l=[],u=e.trim().split(Kne);let d="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:p,modifiers:g,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:b}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let N=!!b,k=r(N?w.substring(0,b):w);if(!k){if(!N){d=m+(d.length>0?" "+d:d);continue}if(k=r(w),!k){d=m+(d.length>0?" "+d:d);continue}N=!1}const C=g.length===0?"":g.length===1?g[0]:s(g).join(":"),A=y?C+qw:C,E=A+k;if(l.indexOf(E)>-1)continue;l.push(E);const _=a(k,N);for(let T=0;T<_.length;++T){const M=_[T];l.push(A+M)}d=m+(d.length>0?" "+d:d)}return d},Qne=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=QI(n))&&(a&&(a+=" "),a+=r);return a},QI=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=QI(e[r]))&&(n&&(n+=" "),n+=t);return n},Xne=(e,...t)=>{let n,r,a,s;const l=d=>{const f=t.reduce((m,p)=>p(m),e());return n=Gne(f),r=n.cache.get,a=n.cache.set,s=u,u(d)},u=d=>{const f=r(d);if(f)return f;const m=Yne(d,n);return a(d,m),m};return s=l,(...d)=>s(Qne(...d))},Zne=[],wn=e=>{const t=n=>n[e]||Zne;return t.isThemeGetter=!0,t},XI=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ZI=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jne=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ere=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tre=/\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$/,nre=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rre=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ire=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ao=e=>Jne.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),so=e=>!!e&&Number.isInteger(Number(e)),f1=e=>e.endsWith("%")&&rt(e.slice(0,-1)),Ka=e=>ere.test(e),JI=()=>!0,are=e=>tre.test(e)&&!nre.test(e),hN=()=>!1,sre=e=>rre.test(e),ore=e=>ire.test(e),lre=e=>!Re(e)&&!Ie(e),cre=e=>_o(e,n8,hN),Re=e=>XI.test(e),rl=e=>_o(e,r8,are),Q4=e=>_o(e,gre,rt),ure=e=>_o(e,a8,JI),dre=e=>_o(e,i8,hN),X4=e=>_o(e,e8,hN),fre=e=>_o(e,t8,ore),Op=e=>_o(e,s8,sre),Ie=e=>ZI.test(e),hf=e=>Kl(e,r8),hre=e=>Kl(e,i8),Z4=e=>Kl(e,e8),mre=e=>Kl(e,n8),pre=e=>Kl(e,t8),Pp=e=>Kl(e,s8,!0),xre=e=>Kl(e,a8,!0),_o=(e,t,n)=>{const r=XI.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Kl=(e,t,n=!1)=>{const r=ZI.exec(e);return r?r[1]?t(r[1]):n:!1},e8=e=>e==="position"||e==="percentage",t8=e=>e==="image"||e==="url",n8=e=>e==="length"||e==="size"||e==="bg-size",r8=e=>e==="length",gre=e=>e==="number",i8=e=>e==="family-name",a8=e=>e==="number"||e==="weight",s8=e=>e==="shadow",yre=()=>{const e=wn("color"),t=wn("font"),n=wn("text"),r=wn("font-weight"),a=wn("tracking"),s=wn("leading"),l=wn("breakpoint"),u=wn("container"),d=wn("spacing"),f=wn("radius"),m=wn("shadow"),p=wn("inset-shadow"),g=wn("text-shadow"),y=wn("drop-shadow"),w=wn("blur"),b=wn("perspective"),N=wn("aspect"),k=wn("ease"),C=wn("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...E(),Ie,Re],T=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],P=()=>[Ie,Re,d],D=()=>[ao,"full","auto",...P()],U=()=>[so,"none","subgrid",Ie,Re],L=()=>["auto",{span:["full",so,Ie,Re]},so,Ie,Re],$=()=>[so,"auto",Ie,Re],G=()=>["auto","min","max","fr",Ie,Re],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...P()],K=()=>[ao,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[ao,"screen","full","dvw","lvw","svw","min","max","fit",...P()],ce=()=>[ao,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],I=()=>[e,Ie,Re],J=()=>[...E(),Z4,X4,{position:[Ie,Re]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",mre,cre,{size:[Ie,Re]}],ve=()=>[f1,hf,rl],Se=()=>["","none","full",f,Ie,Re],Ne=()=>["",rt,hf,rl],ge=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[rt,f1,Z4,X4],we=()=>["","none",w,Ie,Re],he=()=>["none",rt,Ie,Re],X=()=>["none",rt,Ie,Re],F=()=>[rt,Ie,Re],xe=()=>[ao,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ka],breakpoint:[Ka],color:[JI],container:[Ka],"drop-shadow":[Ka],ease:["in","out","in-out"],font:[lre],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ka],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ka],shadow:[Ka],spacing:["px",rt],text:[Ka],"text-shadow":[Ka],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ao,Re,Ie,N]}
vendor: 6,103 bytes, line 31
31],container:["container"],columns:[{columns:[rt,Re,Ie,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:_()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[so,"auto",Ie,Re]}],basis:[{basis:[ao,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,ao,"auto","initial","none",Re]}],grow:[{grow:["",rt,Ie,Re]}],shrink:[{shrink:["",rt,Ie,Re]}],order:[{order:[so,"first","last","none",Ie,Re]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[u,"screen",...K()]}],"min-w":[{"min-w":[u,"screen","none",...K()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,hf,rl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xre,ure]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",f1,Re]}],"font-family":[{font:[hre,dre,t]}],"font-features":[{"font-features":[Re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ie,Re]}],"line-clamp":[{"line-clamp":[rt,"none",Ie,Q4]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",Ie,Re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ie,Re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",Ie,rl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[rt,"auto",Ie,Re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ie,Re]}],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",Ie,Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},so,Ie,Re],radial:["",Ie,Re],conic:[so,Ie,Re]},pre,fre]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ve()}
31],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],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:Ne()}],"border-w-x":[{"border-x":Ne()}],"border-w-y":[{"border-y":Ne()}],"border-w-s":[{"border-s":Ne()}],"border-w-e":[{"border-e":Ne()}],"border-w-bs":[{"border-bs":Ne()}],"border-w-be":[{"border-be":Ne()}],"border-w-t":[{"border-t":Ne()}],"border-w-r":[{"border-r":Ne()}],"border-w-b":[{"border-b":Ne()}],"border-w-l":[{"border-l":Ne()}],"divide-x":[{"divide-x":Ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}
vendor: 5,254 bytes, line 31
31],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,Ie,Re]}],"outline-w":[{outline:["",rt,hf,rl]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",m,Pp,Op]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,Pp,Op]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[rt,rl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":Ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",g,Pp,Op]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[rt,Ie,Re]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"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":[rt]}],"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":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Ie,Re]}],"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":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"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":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ie,Re]}],filter:[{filter:["","none",Ie,Re]}],blur:[{blur:we()}],brightness:[{brightness:[rt,Ie,Re]}],contrast:[{contrast:[rt,Ie,Re]}],"drop-shadow":[{"drop-shadow":["","none",y,Pp,Op]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",rt,Ie,Re]}],"hue-rotate":[{"hue-rotate":[rt,Ie,Re]}],invert:[{invert:["",rt,Ie,Re]}],saturate:[{saturate:[rt,Ie,Re]}],sepia:[{sepia:["",rt,Ie,Re]}],"backdrop-filter":[{"backdrop-filter":["","none",Ie,Re]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[rt,Ie,Re]}],"backdrop-contrast":[{"backdrop-contrast":[rt,Ie,Re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,Ie,Re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,Ie,Re]}],"backdrop-invert":[{"backdrop-invert":["",rt,Ie,Re]}],"backdrop-opacity":[{"backdrop-opacity":[rt,Ie,Re]}],"backdrop-saturate":[{"backdrop-saturate":[rt,Ie,Re]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,Ie,Re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ie,Re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",Ie,Re]}],ease:[{ease:["linear","initial",k,Ie,Re]}],delay:[{delay:[rt,Ie,Re]}],animate:[{animate:["none",C,Ie,Re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Ie,Re]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}
vendor: 6,575 bytes, line 31
31],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Ie,Re,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",Ie,Re]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Ie,Re]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[rt,hf,rl,Q4]}],stroke:[{stroke:["none",...I()]}],"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"]}},vre=Xne(yre);function Je(...e){return vre(Bt(e))}const bre=HI("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ee=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},s)=>{const l=r?kne:"button";return i.jsx(l,{className:Je(bre({variant:t,size:n,className:e})),ref:s,...a})});ee.displayName="Button";const ze=v.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Je("rounded-xl border bg-card text-card-foreground shadow",e),...t}));
31ze.displayName="Card";const wre=v.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Je("flex flex-col space-y-1.5 p-6",e),...t}));wre.displayName="CardHeader";const jre=v.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Je("font-semibold leading-none tracking-tight",e),...t}));jre.displayName="CardTitle";const Nre=v.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Je("text-sm text-muted-foreground",e),...t}));Nre.displayName="CardDescription";const Ve=v.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Je("p-6 pt-0",e),...t}));Ve.displayName="CardContent";const Sre=v.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:Je("flex items-center p-6 pt-0",e),...t}));Sre.displayName="CardFooter";function kre(e,t=[]){let n=[];function r(s,l){const u=v.createContext(l);u.displayName=s+"Context";const d=n.length;n=[...n,l];const f=p=>{const{scope:g,children:y,...w}=p,b=g?.[e]?.[d]||u,N=v.useMemo(()=>w,Object.values(w));return i.jsx(b.Provider,{value:N,children:y})};f.displayName=s+"Provider";function m(p,g){const y=g?.[e]?.[d]||u,w=v.useContext(y);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[f,m]}const a=()=>{const s=n.map(l=>v.createContext(l));return function(u){const d=u?.[e]||s;return v.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,Are(a,...t)]}function Are(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const p=d(s)[`__scope${f}`];return{...u,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Cre=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],c0=Cre.reduce((e,t)=>{const n=WI(`Primitive.${t}`),r=v.forwardRef((a,s)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),mN="Progress",pN=100,[Ere]=kre(mN),[Tre,_re]=Ere(mN),o8=v.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:a,getValueLabel:s=Ore,...l}=e;(a||a===0)&&!J4(a)&&console.error(Pre(`${a}`,"Progress"));const u=J4(a)?a:pN;r!==null&&!e3(r,u)&&console.error(Mre(`${r}`,"Progress"));const d=e3(r,u)?r:null,f=qx(d)?s(d,u):void 0;return i.jsx(Tre,{scope:n,value:d,max:u,children:i.jsx(c0.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":qx(d)?d:void 0,"aria-valuetext":f,role:"progressbar","data-state":u8(d,u),"data-value":d??void 0,"data-max":u,...l,ref:t})})});o8.displayName=mN;var l8="ProgressIndicator",c8=v.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,a=_re(l8,n);return i.jsx(c0.div,{"data-state":u8(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...r,ref:t})});c8.displayName=l8;function Ore(e,t){return`${Math.round(e/t*100)}%`}function u8(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function qx(e){return typeof e=="number"}function J4(e){return qx(e)&&!isNaN(e)&&e>0}function e3(e,t){return qx(e)&&!isNaN(e)&&e<=t&&e>=0}function Pre(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${pN}\`.`}function Mre(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 32 - a positive number 33 - less than the value passed to \`max\` (or ${pN} if no \`max\` prop is set) 34 - \`null\` or \`undefined\` if the progress is indeterminate. 35 36Defaulting to \`null\`.`}var d8=o8,Rre=c8;const Sa=v.forwardRef(({className:e,value:t,...n},r)=>i.jsx(d8,{ref:r,className:Je("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:i.jsx(Rre,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Sa.displayName=d8.displayName;function ut(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function Dre(e,t){const n=v.createContext(t),r=s=>{const{children:l,...u}=s,d=v.useMemo(()=>u,Object.values(u));return i.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(s){const l=v.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,a]}function _a(e,t=[]){let n=[];function r(s,l){const u=v.createContext(l),d=n.length;n=[...n,l];const f=p=>{const{scope:g,children:y,...w}=p,b=g?.[e]?.[d]||u,N=v.useMemo(()=>w,Object.values(w));return i.jsx(b.Provider,{value:N,children:y})};f.displayName=s+"Provider";function m(p,g){const y=g?.[e]?.[d]||u,w=v.useContext(y);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[f,m]}const a=()=>{const s=n.map(l=>v.createContext(l));return function(u){const d=u?.[e]||s;return v.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,Ire(a,...t)]}function Ire(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const p=d(s)[`__scope${f}`];return{...u,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function sh(e){const t=Lre(e),n=v.forwardRef((r,a)=>{const{children:s,...l}=r,u=v.Children.toArray(s),d=u.find(Bre);if(d){const f=d.props.children,m=u.map(p=>p===d?v.Children.count(f)>1?v.Children.only(null):v.isValidElement(f)?f.props.children:null:p);return i.jsx(t,{...l,ref:a,children:v.isValidElement(f)?v.cloneElement(f,void 0,m):null})}return i.jsx(t,{...l,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}function Lre(e){const t=v.forwardRef((n,r)=>{const{children:a,...s}=n;
vendor: 4,100 bytes, line 36
36if(v.isValidElement(a)){const l=Ure(a),u=Fre(s,a.props);return a.type!==v.Fragment&&(u.ref=r?dN(r,l):l),v.cloneElement(a,u)}return v.Children.count(a)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $re=Symbol("radix.slottable");function Bre(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$re}function Fre(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...u)=>{const d=s(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function Ure(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zre=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],it=zre.reduce((e,t)=>{const n=sh(`Primitive.${t}`),r=v.forwardRef((a,s)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vre(e,t){e&&Ss.flushSync(()=>e.dispatchEvent(t))}function xN(e){const t=e+"CollectionProvider",[n,r]=_a(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:N,children:k}=b,C=z.useRef(null),A=z.useRef(new Map).current;return i.jsx(a,{scope:N,itemMap:A,collectionRef:C,children:k})};l.displayName=t;const u=e+"CollectionSlot",d=sh(u),f=z.forwardRef((b,N)=>{const{scope:k,children:C}=b,A=s(u,k),E=Nt(N,A.collectionRef);return i.jsx(d,{ref:E,children:C})});f.displayName=u;const m=e+"CollectionItemSlot",p="data-radix-collection-item",g=sh(m),y=z.forwardRef((b,N)=>{const{scope:k,children:C,...A}=b,E=z.useRef(null),_=Nt(N,E),T=s(m,k);return z.useEffect(()=>(T.itemMap.set(E,{ref:E,...A}),()=>{T.itemMap.delete(E)})),i.jsx(g,{[p]:"",ref:_,children:C})});y.displayName=m;function w(b){const N=s(e+"CollectionConsumer",b);return z.useCallback(()=>{const C=N.collectionRef.current;if(!C)return[];const A=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(N.itemMap.values()).sort((T,M)=>A.indexOf(T.ref.current)-A.indexOf(M.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:l,Slot:f,ItemSlot:y},w,r]}var Zn=globalThis?.document?v.useLayoutEffect:()=>{},Wre=Lu[" useId ".trim().toString()]||(()=>{}),qre=0;function cs(e){const[t,n]=v.useState(Wre());return Zn(()=>{n(r=>r??String(qre++))},[e]),t?`radix-${t}`:""}function So(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>t.current?.(...n),[])}var Hre=Lu[" useInsertionEffect ".trim().toString()]||Zn;function hs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,l]=Gre({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const m=v.useRef(e!==void 0);v.useEffect(()=>{const p=m.current;p!==u&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,r])}const f=v.useCallback(m=>{if(u){const p=Kre(m)?m(e):m;p!==e&&l.current?.(p)}else s(m)},[u,e,s,l]);return[d,f]}function Gre({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),a=v.useRef(n),s=v.useRef(t);return Hre(()=>{s.current=t},[t]),v.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}function Kre(e){return typeof e=="function"}var Yre=v.createContext(void 0);function u0(e){const t=v.useContext(Yre);return e||t||"ltr"}var h1="rovingFocusGroup.onEntryFocus",Qre={bubbles:!1,cancelable:!0},Bh="RovingFocusGroup",[Hw,f8,Xre]=xN(Bh),[Zre,h8]=_a(Bh,[Xre]),[Jre,eie]=Zre(Bh),m8=v.forwardRef((e,t)=>i.jsx(Hw.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Hw.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(tie,{...e,ref:t})})}));m8.displayName=Bh;var tie=v.forwardRef((e,t)=>
vendor: 4,504 bytes, line 36
36{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...p}=e,g=v.useRef(null),y=Nt(t,g),w=u0(s),[b,N]=hs({prop:l,defaultProp:u??null,onChange:d,caller:Bh}),[k,C]=v.useState(!1),A=So(f),E=f8(n),_=v.useRef(!1),[T,M]=v.useState(0);return v.useEffect(()=>{const P=g.current;if(P)return P.addEventListener(h1,A),()=>P.removeEventListener(h1,A)},[A]),i.jsx(Jre,{scope:n,orientation:r,dir:w,loop:a,currentTabStopId:b,onItemFocus:v.useCallback(P=>N(P),[N]),onItemShiftTab:v.useCallback(()=>C(!0),[]),onFocusableItemAdd:v.useCallback(()=>M(P=>P+1),[]),onFocusableItemRemove:v.useCallback(()=>M(P=>P-1),[]),children:i.jsx(it.div,{tabIndex:k||T===0?-1:0,"data-orientation":r,...p,ref:y,style:{outline:"none",...e.style},onMouseDown:ut(e.onMouseDown,()=>{_.current=!0}),onFocus:ut(e.onFocus,P=>{const D=!_.current;if(P.target===P.currentTarget&&D&&!k){const U=new CustomEvent(h1,Qre);if(P.currentTarget.dispatchEvent(U),!U.defaultPrevented){const L=E().filter(B=>B.focusable),$=L.find(B=>B.active),G=L.find(B=>B.id===b),V=[$,G,...L].filter(Boolean).map(B=>B.ref.current);g8(V,m)}}_.current=!1}),onBlur:ut(e.onBlur,()=>C(!1))})})}),p8="RovingFocusGroupItem",x8=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:s,children:l,...u}=e,d=cs(),f=s||d,m=eie(p8,n),p=m.currentTabStopId===f,g=f8(n),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:b}=m;return v.useEffect(()=>{if(r)return y(),()=>w()},[r,y,w]),i.jsx(Hw.ItemSlot,{scope:n,id:f,focusable:r,active:a,children:i.jsx(it.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:ut(e.onMouseDown,N=>{r?m.onItemFocus(f):N.preventDefault()}),onFocus:ut(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:ut(e.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){m.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const k=iie(N,m.orientation,m.dir);if(k!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let A=g().filter(E=>E.focusable).map(E=>E.ref.current);if(k==="last")A.reverse();else if(k==="prev"||k==="next"){k==="prev"&&A.reverse();const E=A.indexOf(N.currentTarget);A=m.loop?aie(A,E+1):A.slice(E+1)}setTimeout(()=>g8(A))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:b!=null}):l})})});x8.displayName=p8;var nie={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rie(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iie(e,t,n){const r=rie(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return nie[r]}function g8(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function aie(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var sie=m8,oie=x8;function gN(e){const[t,n]=v.useState(void 0);return Zn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function yN(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function lie(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var qu=e=>{const{present:t,children:n}=e,r=cie(t),a=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),s=Nt(r.ref,uie(a));return typeof n=="function"||r.isPresent?v.cloneElement(a,{ref:s}):null};qu.displayName="Presence";function cie(e){const[t,n]=v.useState(),r=v.useRef(null),a=v.useRef(e),s=v.useRef("none"),l=e?"mounted":"unmounted",[u,d]=lie(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const f=Mp(r.current);s.current=u==="mounted"?f:"none"},[u]),Zn(()=>{const f=r.current,m=a.current;if(m!==e){const g=s.current,y=Mp(f);e?d("MOUNT"):y==="none"||f?.display==="none"?d("UNMOUNT"):d(m&&g!==y?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),Zn(()=>
vendor: 3,967 bytes, line 36
36{if(t){let f;const m=t.ownerDocument.defaultView??window,p=y=>{const b=Mp(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&b&&(d("ANIMATION_END"),!a.current)){const N=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},g=y=>{y.target===t&&(s.current=Mp(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:v.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Mp(e){return e?.animationName||"none"}function uie(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vN="Radio",[die,y8]=_a(vN),[fie,hie]=die(vN),v8=v.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:s,disabled:l,value:u="on",onCheck:d,form:f,...m}=e,[p,g]=v.useState(null),y=Nt(t,N=>g(N)),w=v.useRef(!1),b=p?f||!!p.closest("form"):!0;return i.jsxs(fie,{scope:n,checked:a,disabled:l,children:[i.jsx(it.button,{type:"button",role:"radio","aria-checked":a,"data-state":N8(a),"data-disabled":l?"":void 0,disabled:l,value:u,...m,ref:y,onClick:ut(e.onClick,N=>{a||d?.(),b&&(w.current=N.isPropagationStopped(),w.current||N.stopPropagation())})}),b&&i.jsx(j8,{control:p,bubbles:!w.current,name:r,value:u,checked:a,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});v8.displayName=vN;var b8="RadioIndicator",w8=v.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,s=hie(b8,n);return i.jsx(qu,{present:r||s.checked,children:i.jsx(it.span,{"data-state":N8(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})})});w8.displayName=b8;var mie="RadioBubbleInput",j8=v.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...a},s)=>{const l=v.useRef(null),u=Nt(l,s),d=yN(n),f=gN(t);return v.useEffect(()=>{const m=l.current;if(!m)return;const p=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==n&&y){const w=new Event("click",{bubbles:r});y.call(m,n),m.dispatchEvent(w)}},[d,n,r]),i.jsx(it.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:u,style:{...a.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});j8.displayName=mie;function N8(e){return e?"checked":"unchecked"}var pie=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],d0="RadioGroup",[xie]=_a(d0,[h8,y8]),S8=h8(),k8=y8(),[gie,yie]=xie(d0),A8=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:s,required:l=!1,disabled:u=!1,orientation:d,dir:f,loop:m=!0,onValueChange:p,...g}=e,y=S8(n),w=u0(f),[b,N]=hs({prop:s,defaultProp:a??null,onChange:p,caller:d0});return i.jsx(gie,{scope:n,name:r,required:l,disabled:u,value:b,onValueChange:N,children:i.jsx(sie,{asChild:!0,...y,orientation:d,dir:w,loop:m,children:i.jsx(it.div,{role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":u?"":void 0,dir:w,...g,ref:t})})})});A8.displayName=d0;var C8="RadioGroupItem",E8=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,s=yie(C8,n),l=s.disabled||r,u=S8(n),d=k8(n),f=v.useRef(null),m=Nt(t,f),p=s.value===a.value,g=v.useRef(!1);return v.useEffect(()=>{const y=b=>{pie.includes(b.key)&&(g.current=!0)},w=()=>g.current=!1;return document.addEventListener("keydown",y),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",y),document.removeEventListener("keyup",w)}},[]),i.jsx(oie,{asChild:!0,...u,focusable:!l,active:p,children:i.jsx(v8,{disabled:l,required:s.required,
36checked:p,...d,...a,name:s.name,ref:m,onCheck:()=>s.onValueChange(a.value),onKeyDown:ut(y=>{y.key==="Enter"&&y.preventDefault()}),onFocus:ut(a.onFocus,()=>{g.current&&f.current?.click()})})})});E8.displayName=C8;var vie="RadioGroupIndicator",T8=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=k8(n);return i.jsx(w8,{...a,...r,ref:t})});T8.displayName=vie;var _8=A8,O8=E8,bie=T8;const wie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jie=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),t3=e=>{const t=jie(e);return t.charAt(0).toUpperCase()+t.slice(1)},P8=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Nie=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Sie={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 kie=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...u},d)=>v.createElement("svg",{ref:d,...Sie,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P8("lucide",a),...!s&&!Nie(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,m])=>v.createElement(f,m)),...Array.isArray(s)?s:[s]]));const Oe=(e,t)=>{const n=v.forwardRef(({className:r,...a},s)=>v.createElement(kie,{ref:s,iconNode:t,className:P8(`lucide-${wie(t3(e))}`,`lucide-${e}`,r),...a}));return n.displayName=t3(e),n};const Aie=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ii=Oe("arrow-left",Aie);const Cie=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],gt=Oe("arrow-right",Cie);const Eie=[["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"}]],Tie=Oe("award",Eie);const _ie=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Oie=Oe("badge-check",_ie);const Pie=[["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"}]],Fr=Oe("book-open",Pie);const Mie=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Rie=Oe("brain",Mie);const Die=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],Iie=Oe("building",Die);const Lie=[["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"}]],$ie=Oe("calendar-days",Lie);const Bie=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}
36]],Fie=Oe("chart-column",Bie);const Uie=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ko=Oe("check",Uie);const zie=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gi=Oe("chevron-down",zie);const Vie=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Hx=Oe("chevron-right",Vie);const Wie=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],bN=Oe("chevron-up",Wie);const qie=[["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"}]],Hu=Oe("circle-alert",qie);const Hie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],va=Oe("circle-check",Hie);const Gie=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M8=Oe("circle-play",Gie);const Kie=[["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"}]],Yie=Oe("circle-question-mark",Kie);const Qie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xie=Oe("circle",Qie);const Zie=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],R8=Oe("clock",Zie);const Jie=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],oh=Oe("coins",Jie);const eae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],tae=Oe("crosshair",eae);const nae=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],f0=Oe("download",nae);const rae=[["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"}]],iae=Oe("external-link",rae);const aae=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sae=Oe("eye",aae);const oae=[["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"}]],h0=Oe("file-text",oae);const lae=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],cae=Oe("flame",lae);const uae=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],dae=Oe("folder",uae);const fae=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],hae=Oe("gamepad-2",fae);const mae=[["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"}]],pae=Oe("globe",mae);const xae=[["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"}]],gae=Oe("graduation-cap",xae);const yae=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2
360 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],D8=Oe("heart-handshake",yae);const vae=[["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"}]],Gw=Oe("heart",vae);const bae=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],wae=Oe("image",bae);const jae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],I8=Oe("info",jae);const Nae=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Sae=Oe("layout-dashboard",Nae);const kae=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Aae=Oe("leaf",kae);const Cae=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],L8=Oe("library",Cae);const Eae=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],wN=Oe("lightbulb",Eae);const Tae=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],_ae=Oe("link",Tae);const Oae=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Xt=Oe("loader-circle",Oae);const Pae=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Mae=Oe("lock",Pae);const Rae=[["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"}]],$8=Oe("mail",Rae);const Dae=[["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"}]],Iae=Oe("map-pin",Dae);const Lae=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],$ae=Oe("megaphone",Lae);const Bae=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],jN=Oe("menu",Bae);const Fae=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Uae=Oe("message-circle",Fae);const zae=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],NN=Oe("moon",zae);const Vae=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Wae=Oe("pencil-line",Vae);const qae=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],B8=Oe("play",qae);const Hae=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gu=Oe("plus",Hae);const Gae=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],Kae=Oe("presentation",Gae);const Yae=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],Qae=Oe("printer",Yae);const Xae=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],F8=Oe("qr-code",Xae);const Zae=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Jae=Oe("refresh-cw",Zae);const ese=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],n3=Oe("rotate-ccw",ese);const tse=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
36],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],nse=Oe("scale",tse);const rse=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],SN=Oe("search",rse);const ise=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ase=Oe("settings",ise);const sse=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],U8=Oe("share-2",sse);const ose=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],lse=Oe("shield-check",ose);const cse=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],z8=Oe("shopping-cart",cse);const use=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],dse=Oe("smile",use);const fse=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
36],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Gu=Oe("sparkles",fse);const hse=[["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"}]],Kw=Oe("square-pen",hse);const mse=[["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"}]],m0=Oe("star",mse);const pse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],r3=Oe("target",pse);const xse=[["path",{d:"M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"1l48ns"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]],i3=Oe("ticket-percent",xse);const gse=[["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"}]],yu=Oe("trash-2",gse);const yse=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Yw=Oe("users-round",yse);const vse=[["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"}]],Yl=Oe("users",vse);const bse=[["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"}]],kN=Oe("video",bse);const wse=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oa=Oe("x",wse);const jse=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Nse=Oe("zap",jse),V8=v.forwardRef(({className:e,...t},n)=>i.jsx(_8,{className:Je("grid gap-2",e),...t,ref:n}));V8.displayName=_8.displayName;const W8=v.forwardRef(({className:e,...t},n)=>i.jsx(O8,{ref:n,className:Je("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsx(bie,{className:"flex items-center justify-center",children:i.jsx(Xie,{className:"h-3.5 w-3.5 fill-primary"})})}));W8.displayName=O8.displayName;var Sse="Label",q8=v.forwardRef((e,t)=>i.jsx(c0.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));q8.displayName=Sse;var H8=q8;
36const kse=HI("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ln=v.forwardRef(({className:e,...t},n)=>i.jsx(H8,{ref:n,className:Je(kse(),e),...t}));ln.displayName=H8.displayName;var Ase="Separator",a3="horizontal",Cse=["horizontal","vertical"],G8=v.forwardRef((e,t)=>{const{decorative:n,orientation:r=a3,...a}=e,s=Ese(r)?r:a3,u=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(c0.div,{"data-orientation":s,...u,...a,ref:t})});G8.displayName=Ase;function Ese(e){return Cse.includes(e)}var K8=G8;const Qw=v.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},a)=>i.jsx(K8,{ref:a,decorative:n,orientation:t,className:Je("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Qw.displayName=K8.displayName;function Tse({onComplete:e}){const[,t]=et(),[n,r]=v.useState({ministryName:"",pastorName:"",churchName:"",city:"",state:"",researchConsent:!0}),a=$t({mutationFn:()=>yee(n),onSuccess:()=>{e?e():t("/dashboard")}}),s=n.ministryName.trim()&&n.pastorName.trim()&&n.churchName.trim(),l=u=>{const{name:d,value:f,type:m,checked:p}=u.target;r(g=>({...g,[d]:m==="checkbox"?p:f}))};return i.jsxs("div",{className:"min-h-screen bg-white flex flex-col",children:[i.jsx("header",{className:"border-b border-slate-200 px-4 py-4",children:i.jsx("div",{className:"max-w-2xl mx-auto flex items-center justify-between",children:i.jsxs("button",{onClick:()=>t("/"),className:"flex items-center gap-3 hover:opacity-80 transition-opacity",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"w-8 h-8"}),i.jsx("span",{className:"font-bold text-slate-900 text-lg",children:"Reframe Youth"})]})})}),i.jsx("main",{className:"flex-1 flex items-start justify-center px-4 py-10",children:i.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-lg",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-2",children:"Set Up Your Ministry"}),i.jsx("p",{className:"text-slate-600",children:"Tell us about your youth ministry so we can generate your unique student survey link and QR code."})]}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-6 space-y-5",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:["Ministry Name ",i.jsx("span",{className:"text-primary",children:"*"})]}),i.jsx("input",{name:"ministryName",value:n.ministryName,onChange:l,placeholder:"e.g. Crossroads Youth",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-slate-50 text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:["Your Name ",i.jsx("span",{className:"text-primary",children:"*"})]}),i.jsx("input",{name:"pastorName",value:n.pastorName,onChange:l,placeholder:"e.g. Pastor Mike",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-slate-50 text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:["Church Name ",i.jsx("span",{className:"text-primary",children:"*"})]}),i.jsx("input",{name:"churchName",value:n.churchName,onChange:l,placeholder:"e.g. First Baptist Church",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-slate-50 text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:"City"}),i.jsx("input",{name:"city",value:n.city,onChange:l,placeholder:"e.g. Nashville",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-slate-50 text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:"State"}),i.jsx("input",{name:"state",value:n.state,onChange:l,placeholder:"e.g. TN",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-slate-50 text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"})]})]}),i.jsx("div",{className:"pt-2 border-t border-slate-100",children:i.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[i.jsx("input",{type:"checkbox",name:"researchConsent",checked:n.researchConsent,onChange:l,className:"mt-0.5 w-
365 h-5 rounded border-slate-300 text-primary focus:ring-primary shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-slate-900 text-sm",children:"Include my ministry's data in Reframe research"}),i.jsx("p",{className:"text-slate-500 text-xs mt-0.5 leading-relaxed",children:"By keeping this checked, you allow Reframe Youth to use your ministry's anonymous, aggregated survey results to improve youth ministry health nationally. You can uncheck this to opt out."})]})]})})]})}),a.isError&&i.jsx("p",{className:"mt-3 text-sm text-red-600 text-center",children:"Something went wrong. Please try again."}),i.jsx("div",{className:"mt-6",children:i.jsx(ee,{size:"lg",className:"w-full rounded-full text-base",disabled:!s||a.isPending,onClick:()=>a.mutate(),children:a.isPending?"Saving...":"Create My Ministry Profile"})})]})})]})}var _se=Object.defineProperty,Gx=Object.getOwnPropertySymbols,Y8=Object.prototype.hasOwnProperty,Q8=Object.prototype.propertyIsEnumerable,s3=(e,t,n)=>t in e?_se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xw=(e,t)=>{for(var n in t||(t={}))Y8.call(t,n)&&s3(e,n,t[n]);if(Gx)for(var n of Gx(t))Q8.call(t,n)&&s3(e,n,t[n]);return e},Zw=(e,t)=>{var n={};for(var r in e)Y8.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gx)for(var r of Gx(e))t.indexOf(r)<0&&Q8.call(e,r)&&(n[r]=e[r]);return n};var Ol;(e=>{const t=class ct{constructor(d,f,m,p){if(this.version=d,this.errorCorrectionLevel=f,this.modules=[],this.isFunction=[],d<ct.MIN_VERSION||d>ct.MAX_VERSION)throw new RangeError("Version value out of range");if(p<-1||p>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let g=[];for(let w=0;w<this.size;w++)g.push(!1);for(let w=0;w<this.size;w++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();const y=this.addEccAndInterleave(m);if(this.drawCodewords(y),p==-1){let w=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const N=this.getPenaltyScore();N<w&&(p=b,w=N),this.applyMask(b)}}a(0<=p&&p<=7),this.mask=p,this.applyMask(p),this.drawFormatBits(p),this.isFunction=[]}static encodeText(d,f){const m=e.QrSegment.makeSegments(d);return ct.encodeSegments(m,f)}static encodeBinary(d,f){const m=e.QrSegment.makeBytes(d);return ct.encodeSegments([m],f)}static encodeSegments(d,f,m=1,p=40,g=-1,y=!0){if(!(ct.MIN_VERSION<=m&&m<=p&&p<=ct.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");let w,b;for(w=m;;w++){const A=ct.getNumDataCodewords(w,f)*8,E=l.getTotalBits(d,w);if(E<=A){b=E;break}if(w>=p)throw new RangeError("Data too long")}for(const A of[ct.Ecc.MEDIUM,ct.Ecc.QUARTILE,ct.Ecc.HIGH])y&&b<=ct.getNumDataCodewords(w,A)*8&&(f=A);let N=[];for(const A of d){n(A.mode.modeBits,4,N),n(A.numChars,A.mode.numCharCountBits(w),N);for(const E of A.getData())N.push(E)}a(N.length==b);const k=ct.getNumDataCodewords(w,f)*8;a(N.length<=k),n(0,Math.min(4,k-N.length),N),n(0,(8-N.length%8)%8,N),a(N.length%8==0);for(let A=236;N.length<k;A^=253)n(A,8,N);let C=[];for(;C.length*8<N.length;)C.push(0);return N.forEach((A,E)=>C[E>>>3]|=A<<7-(E&7)),new ct(w,f,C,g)}getModule(d,f){return 0<=d&&d<this.size&&0<=f&&f<this.size&&this.modules[f][d]}getModules(){return this.modules}drawFunctionPatterns(){for(let m=0;m<this.size;m++)this.setFunctionModule(6,m,m%2==0),this.setFunctionModule(m,6,m%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const d=this.getAlignmentPatternPositions(),f=d.length;for(let m=0;m<f;m++)for(let p=0;p<f;p++)m==0&&p==0||m==0&&p==f-1||m==f-1&&p==0||this.drawAlignmentPattern(d[m],d[p]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(d){const f=this.errorCorrectionLevel.formatBits<<3|d;let m=f;for(let g=0;g<10;g++)m=m<<1^(m>>>9)*1335;const p=(f<<10|m)^21522;a(p>>>15==0);for(let g=0;g<=5;g++)this.setFunctionModule(8,g,r(p,g));this.setFunctionModule(8,7,r(p,6)),this.setFunctionModule(8,8,r(p,7)),this.setFunctionModule(7,8,r(p,8));for(let g=9;g<15;g++)this.setFunctionModule(14-g,8,r(p,g));for(let g=0;g<8;g++)this.setFunctionModule(this.size-1-g,8,r(p,g));for(let g=8;g<15;g++)this.setFunctionModule(8,this.size-15+g,r(p,g));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let m=0;m<12;m++)d=d<<1^(d>>>11)*7973;const f=this.version<<12|d;a(f>>>18==0);for(let m=0;m<18;m++){const p=r(f,m),g=this.size-11+m%3,y=Math.floor(m/3);this.setFunctionModule(g,y,p),this.setFunctionModule(y,g,p)}}drawFinderPattern(d,f){for(let m=-4;m<=4;m++)for(let p=-4;p<=4;p++){const g=Math.max(Math.abs(p),Math.abs(m)),y=d+p,w=f+m;0<=y&&y<this.size&&0<=w&&w<this.size&&this.setFunctionModule(y,w,g!=2&&g!=4)}}drawAlignmentPattern(d,f){for(let m=-2;m<=2;m++)for(let p=-2;p<=2;p++)this.setFunctionModule(d+p,f+m,Math.max(Math.abs(p),Math.abs(m))!=1)}setFunctionModule(d,f,m){this.modules[f][d]=m,this.isFunction[f][d]=!0}addEccAndInterleave(d){const f=this.version,m=this.errorCorrectionLevel;if(d.length!=ct.getNumDataCodewords(f,m))throw new RangeError("Invalid argument");const p=ct.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][f],g=ct.ECC_CODEWORDS_PER_BLOCK[m.ordinal][f],y=Math.floor(ct.getNumRawDataModules(f)/8),w=p-y%p,b=Math.floor(y/p);let N=[];const k=ct.reedSolomonComputeDivisor(g);for(let A=0,E=0;A<p;A++){let _=d.slice(E,E+b-g+(A<w?0:1));E+=_.length;const T=ct.reedSolomonComputeRemainder(_,k);A<w&&_.push(0),N.push(_.concat(T))}let C=[];for(let A=0;A<N[0].length;A++)N.forEach((E,_)=>{(A!=b-g||_>=w)&&C.push(E[A])});return a(C.length==y),C}
36drawCodewords(d){if(d.length!=Math.floor(ct.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let f=0;for(let m=this.size-1;m>=1;m-=2){m==6&&(m=5);for(let p=0;p<this.size;p++)for(let g=0;g<2;g++){const y=m-g,b=(m+1&2)==0?this.size-1-p:p;!this.isFunction[b][y]&&f<d.length*8&&(this.modules[b][y]=r(d[f>>>3],7-(f&7)),f++)}}a(f==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let f=0;f<this.size;f++)for(let m=0;m<this.size;m++){let p;switch(d){case 0:p=(m+f)%2==0;break;case 1:p=f%2==0;break;case 2:p=m%3==0;break;case 3:p=(m+f)%3==0;break;case 4:p=(Math.floor(m/3)+Math.floor(f/2))%2==0;break;case 5:p=m*f%2+m*f%3==0;break;case 6:p=(m*f%2+m*f%3)%2==0;break;case 7:p=((m+f)%2+m*f%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[f][m]&&p&&(this.modules[f][m]=!this.modules[f][m])}}getPenaltyScore(){let d=0;for(let g=0;g<this.size;g++){let y=!1,w=0,b=[0,0,0,0,0,0,0];for(let N=0;N<this.size;N++)this.modules[g][N]==y?(w++,w==5?d+=ct.PENALTY_N1:w>5&&d++):(this.finderPenaltyAddHistory(w,b),y||(d+=this.finderPenaltyCountPatterns(b)*ct.PENALTY_N3),y=this.modules[g][N],w=1);d+=this.finderPenaltyTerminateAndCount(y,w,b)*ct.PENALTY_N3}for(let g=0;g<this.size;g++){let y=!1,w=0,b=[0,0,0,0,0,0,0];for(let N=0;N<this.size;N++)this.modules[N][g]==y?(w++,w==5?d+=ct.PENALTY_N1:w>5&&d++):(this.finderPenaltyAddHistory(w,b),y||(d+=this.finderPenaltyCountPatterns(b)*ct.PENALTY_N3),y=this.modules[N][g],w=1);d+=this.finderPenaltyTerminateAndCount(y,w,b)*ct.PENALTY_N3}for(let g=0;g<this.size-1;g++)for(let y=0;y<this.size-1;y++){const w=this.modules[g][y];w==this.modules[g][y+1]&&w==this.modules[g+1][y]&&w==this.modules[g+1][y+1]&&(d+=ct.PENALTY_N2)}let f=0;for(const g of this.modules)f=g.reduce((y,w)=>y+(w?1:0),f);const m=this.size*this.size,p=Math.ceil(Math.abs(f*20-m*10)/m)-1;return a(0<=p&&p<=9),d+=p*ct.PENALTY_N4,a(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,f=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let m=[6];for(let p=this.size-7;m.length<d;p-=f)m.splice(1,0,p);return m}}static getNumRawDataModules(d){if(d<ct.MIN_VERSION||d>ct.MAX_VERSION)throw new RangeError("Version number out of range");let f=(16*d+128)*d+64;if(d>=2){const m=Math.floor(d/7)+2;f-=(25*m-10)*m-55,d>=7&&(f-=36)}return a(208<=f&&f<=29648),f}static getNumDataCodewords(d,f){return Math.floor(ct.getNumRawDataModules(d)/8)-ct.ECC_CODEWORDS_PER_BLOCK[f.ordinal][d]*ct.NUM_ERROR_CORRECTION_BLOCKS[f.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let f=[];for(let p=0;p<d-1;p++)f.push(0);f.push(1);let m=1;for(let p=0;p<d;p++){for(let g=0;g<f.length;g++)f[g]=ct.reedSolomonMultiply(f[g],m),g+1<f.length&&(f[g]^=f[g+1]);m=ct.reedSolomonMultiply(m,2)}return f}static reedSolomonComputeRemainder(d,f){let m=f.map(p=>0);for(const p of d){const g=p^m.shift();m.push(0),f.forEach((y,w)=>m[w]^=ct.reedSolomonMultiply(y,g))}return m}static reedSolomonMultiply(d,f){if(d>>>8||f>>>8)throw new RangeError("Byte out of range");let m=0;for(let p=7;p>=0;p--)m=m<<1^(m>>>7)*285,m^=(f>>
36>p&1)*d;return a(m>>>8==0),m}finderPenaltyCountPatterns(d){const f=d[1];a(f<=this.size*3);const m=f>0&&d[2]==f&&d[3]==f*3&&d[4]==f&&d[5]==f;return(m&&d[0]>=f*4&&d[6]>=f?1:0)+(m&&d[6]>=f*4&&d[0]>=f?1:0)}finderPenaltyTerminateAndCount(d,f,m){return d&&(this.finderPenaltyAddHistory(f,m),f=0),f+=this.size,this.finderPenaltyAddHistory(f,m),this.finderPenaltyCountPatterns(m)}finderPenaltyAddHistory(d,f){f[0]==0&&(d+=this.size),f.pop(),f.unshift(d)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(u,d,f){if(d<0||d>31||u>>>d)throw new RangeError("Value out of range");for(let m=d-1;m>=0;m--)f.push(u>>>m&1)}function r(u,d){return(u>>>d&1)!=0}function a(u){if(!u)throw new Error("Assertion error")}const s=class tn{constructor(d,f,m){if(this.mode=d,this.numChars=f,this.bitData=m,f<0)throw new RangeError("Invalid argument");this.bitData=m.slice()}static makeBytes(d){let f=[];for(const m of d)n(m,8,f);return new tn(tn.Mode.BYTE,d.length,f)}static makeNumeric(d){if(!tn.isNumeric(d))throw new RangeError("String contains non-numeric characters");let f=[];for(let m=0;m<d.length;){const p=Math.min(d.length-m,3);n(parseInt(d.substring(m,m+p),10),p*3+1,f),m+=p}return new tn(tn.Mode.NUMERIC,d.length,f)}static makeAlphanumeric(d){if(!tn.isAlphanumeric(d))throw new RangeError("String contains unencodable characters in alphanumeric mode");let f=[],m;for(m=0;m+2<=d.length;m+=2){let p=tn.ALPHANUMERIC_CHARSET.indexOf(d.charAt(m))*45;p+=tn.ALPHANUMERIC_CHARSET.indexOf(d.charAt(m+1)),n(p,11,f)}return m<d.length&&n(tn.ALPHANUMERIC_CHARSET.indexOf(d.charAt(m)),6,f),new tn(tn.Mode.ALPHANUMERIC,d.length,f)}static makeSegments(d){return d==""?[]:tn.isNumeric(d)?[tn.makeNumeric(d)]:tn.isAlphanumeric(d)?[tn.makeAlphanumeric(d)]:[tn.makeBytes(tn.toUtf8ByteArray(d))]}static makeEci(d){let f=[];if(d<0)throw new RangeError("ECI assignment value out of range");if(d<128)n(d,8,f);else if(d<16384)n(2,2,f),n(d,14,f);else if(d<1e6)n(6,3,f),n(d,21,f);else throw new RangeError("ECI assignment value out of range");return new tn(tn.Mode.ECI,0,f)}static isNumeric(d){return tn.NUMERIC_REGEX.test(d)}static isAlphanumeric(d){return tn.ALPHANUMERIC_REGEX.test(d)}getData(){return this.bitData.slice()}static getTotalBits(d,f){let m=0;for(const p of d){const g=p.mode.numCharCountBits(f);if(p.numChars>=1<<g)return 1/0;m+=4+g+p.bitData.length}return m}static toUtf8ByteArray(d){d=encodeURI(d);let f=[];for(let m=0;m<d.length;m++)d.charAt(m)!="%"?f.push(d.charCodeAt(m)):(f.push(parseInt(d.substring(m+1,m+3),16)),m+=2);return f}};s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let l=s;e.QrSegment=s})(Ol||(Ol={}));(e=>{(t=>{const n=class{constructor(a,s){this.ordinal=a,this.formatBits=s}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Ol||(Ol={}));(e=>{(t=>{const n=class{constructor(a,s){this.modeBits=a,this.numBitsCharCount=s}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Ol||(Ol={}));var mu=Ol;var Ose={L:mu.QrCode.Ecc.LOW,M:mu.QrCode.Ecc.MEDIUM,Q:mu.QrCode.Ecc.QUARTILE,H:mu.QrCode.Ecc.HIGH},X8=128,Z8="L",J8="#FFFFFF",e9="#000000",t9=!1,n9=1,Pse=4,Mse=0,Rse=.1;function r9(e,t=0){const n=[];return e.forEach(function(r,a){let s=null;r.forEach(function(l,u){if(!l&&s!==null){n.push(`M${s+t} ${a+t}h${u-s}v1H${s+t}z`),s=null;return}if(u===r.length-1){if(!l)return;s===null?n.push(`M${u+t},${a+t} h1v1H${u+t}z`):n.push(`M${s+t},${a+t} h${u+1-s}v1H${s+t}z`);return}l&&s===null&&(s=u)})}),n.join("")}function i9(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((a,s)=>s<t.x||s>=t.x+t.w?a:!1))}function Dse(e,t,n,r){if(r==null)return null;const a=e.length+n*2,s=Math.floor(t*Rse),l=a/t,u=(r.width||s)*l,d=(r.height||s)*l,f=r.x==null?e.length/2-u/2:r.x*l,m=r.y==null?e.length/2-d/2:r.y*l,p=r.opacity==null?1:r.opacity;let g=null;if(r.excavate){let w=Math.floor(f),b=Math.floor(m),N=Math.ceil(u+f-w),k=Math.ceil(d+m-b);g={x:w,y:b,w:N,h:k}}const y=r.crossOrigin;return{x:f,y:m,h:d,w:u,excavation:g,opacity:p,crossOrigin:y}}function Ise(e,t){return t!=null?Math.max(Math.floor(t),0):e?Pse:Mse}function a9({value:e,level:t,minVersion:n,includeMargin:r,marginSize:a,imageSettings:s,size:l,boostLevel:u}){let d=z.useMemo(()=>{const w=(Array.isArray(e)?e:[e]).reduce((b,N)=>(b.push(...mu.QrSegment.makeSegments(N)),b),[]);return mu.QrCode.encodeSegments(w,Ose[t],n,void 0,void 0,u)},[e,t,n,u]);const{cells:f,margin:m,numCells:p,calculatedImageSettings:g}=z.useMemo(()=>{let y=d.getModules();const w=Ise(r,a),b=y.length+w*2,N=Dse(y,l,w,s);return{cells:y,margin:w,numCells:b,calculatedImageSettings:N}},[d,l,s,r,a]);return{qrcode:d,margin:m,cells:f,numCells:p,calculatedImageSettings:g}}var Lse=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),$se=z.forwardRef(function(t,n){const r=t,{value:a,size:s=X8,level:l=Z8,bgColor:u=J8,fgColor:d=e9,includeMargin:f=t9,minVersion:m=n9,boostLevel:p,marginSize:g,imageSettings:y}=r,b=Zw(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:N}=b,k=Zw(b,["style"]),C=y?.src,A=z.useRef(null),E=z.useRef(null),_=z.useCallback(H=>{A.current=H,typeof n=="function"?n(H):n&&(n.current=H)},[n]),[T,M]=z.useState(!1),{margin:P,cells:D,numCells:U,calculatedImageSettings:L}=a9({value:a,level:l,minVersion:m,boostLevel:p,includeMargin:f,marginSize:g,imageSettings:y,size:s});z.useEffect(()=>{if(A.current!=null){const H=A.current,V=H.getContext("2d");if(!V)return;let B=D;const K=E.current,Q=L!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWi
36dth!==0;Q&&L.excavation!=null&&(B=i9(D,L.excavation));const ce=window.devicePixelRatio||1;H.height=H.width=s*ce;const I=s/U*ce;V.scale(I,I),V.fillStyle=u,V.fillRect(0,0,U,U),V.fillStyle=d,Lse?V.fill(new Path2D(r9(B,P))):D.forEach(function(J,fe){J.forEach(function(ue,ve){ue&&V.fillRect(ve+P,fe+P,1,1)})}),L&&(V.globalAlpha=L.opacity),Q&&V.drawImage(K,L.x+P,L.y+P,L.w,L.h)}}),z.useEffect(()=>{M(!1)},[C]);const $=Xw({height:s,width:s},N);let G=null;return C!=null&&(G=z.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{M(!0)},ref:E,crossOrigin:L?.crossOrigin})),z.createElement(z.Fragment,null,z.createElement("canvas",Xw({style:$,height:s,width:s,ref:_,role:"img"},k)),G)});$se.displayName="QRCodeCanvas";var AN=z.forwardRef(function(t,n){const r=t,{value:a,size:s=X8,level:l=Z8,bgColor:u=J8,fgColor:d=e9,includeMargin:f=t9,minVersion:m=n9,boostLevel:p,title:g,marginSize:y,imageSettings:w}=r,b=Zw(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:N,cells:k,numCells:C,calculatedImageSettings:A}=a9({value:a,level:l,minVersion:m,boostLevel:p,includeMargin:f,marginSize:y,imageSettings:w,size:s});let E=k,_=null;w!=null&&A!=null&&(A.excavation!=null&&(E=i9(k,A.excavation)),_=z.createElement("image",{href:w.src,height:A.h,width:A.w,x:A.x+N,y:A.y+N,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));const T=r9(E,N);return z.createElement("svg",Xw({height:s,width:s,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!g&&z.createElement("title",null,g),z.createElement("path",{fill:u,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),z.createElement("path",{fill:d,d:T,shapeRendering:"crispEdges"}),_)});AN.displayName="QRCodeSVG";const Kx="/".replace(/\/$/,""),Bse={safety:{reflectionPersonal:["Do I lead in a way that makes students feel calm and cared for, or rushed and guarded?","How do I respond when a student shares something messy, surprising, or hard?","Am I emotionally steady enough to be a safe presence, or do my moods set the tone for the room?"],reflectionMinistry:["Do students experience our ministry as a place where they can ask questions and be honest without getting shut down?","Are our leaders trained to handle conflict, disclosures, and student concerns with wisdom and care?","Do students from different backgrounds, personalities, and stories feel equally respected here?"],implementationPersonal:["Build a habit of slowing down before youth gatherings. Pray for a non-anxious presence and ask God to help you be attentive, gentle, and aware.","Practice responding before reacting. When students share something hard, lead with calm, curiosity, and care instead of quick fixes."],implementationMinistry:["Review your safety systems. Make sure policies for supervision, transportation, communication, reporting concerns, and follow-up are clear and up to date.","Train your volunteer team in emotional safety, not just physical safety. Teach them how to listen well, avoid shaming language, and respond wisely when students open up.","Create simple group norms students hear often: respect others, no mocking, confidentiality with safety limits, and room for honest questions."]},trust:{reflectionPersonal:["Am I the same person on stage, in meetings, and in private?","Do I follow through on what I tell students and leaders I will do?","Have I been asking students to trust me without taking time to actually earn that trust?"],reflectionMinistry:["Do students know that leaders here will listen, follow up, and take them seriously?","Are our expectations, communication, and leadership culture consistent?","Have we built a ministry that feels relational, or does it mostly feel like event management with snacks?"],implementationPersonal:["Start doing small acts of consistency. Show up on time, follow up when you say you will, and remember what students share. Trust is often built in the boring stuff.","Invite honest feedback from a trusted adult leader or mentor about blind spots in your leadership. Humility builds credibility."],implementationMinistry:["Create a clear follow-up rhythm for student conversations, parent communication, and volunteer care so people are not left wondering what happened.","Make leader expectations simple and visible. Students trust ministries where adults are consistent, not chaotic.","Build in relational touchpoints outside the program: texts, check-ins, birthday notes, post-event follow-up, and intentional one-on-one conversations."]},vulnerability:{reflectionPersonal:["Am I honest with God and trusted people about my own struggles, or am I leading from a mask?","Do I confuse vulnerability with weakness, or do I see it as part of faithful leadership?","Am I asking students to be real in ways I am unwilling to model appropriately myself?"],reflectionMinistry:["Do students feel pressure to perform spiritually, or do they feel freedom to be honest?","When someone shares pain, doubt, or failure, does our ministry respond with compassion or awkward silence?","Have we created spaces where hard questions can be asked without students feeling like they broke the Christian version of club rules?"],implementationPersonal:["Practice appropriate honesty with trusted peers, mentors, or pastors. You do not need to overshare with students, but you do need a real life with real support.","In your teaching, model healthy honesty. Share age-appropriate stories of God meeting you in weakness, confusion, or pain."],implementationMinistry:["Build discu
36ssion moments into gatherings where students can reflect and respond, not just listen passively.","Train leaders to respond to vulnerability with presence, compassion, and wise follow-up instead of quick spiritual clichés.",`Normalize honest language from the front. Say things like, "It's okay to bring your real self to Jesus," and then actually act like that is true.`]},truth:{reflectionPersonal:["Am I personally rooted in Scripture, or am I mostly teaching from leftover sermon fumes and ministry adrenaline?","Do I let God's truth shape my own decisions, emotions, and priorities?","Am I more committed to being impressive, relevant, or biblically faithful?"],reflectionMinistry:["Are we helping students understand Scripture in context, or mostly giving them motivational thoughts with a Bible verse attached?","Does our teaching connect biblical truth to the real pressures students face, including anxiety, identity, relationships, and digital life?","Are students being formed into critical thinkers and disciples, or just regular attenders who can win Bible trivia sometimes?"],implementationPersonal:["Set a steady rhythm of personal Scripture reading and prayer that is not tied to prepping a talk. Your soul needs food too.",'Before teaching, ask: "What is true about God here, and how does that truth reframe real life?" Let that shape your message.'],implementationMinistry:["Audit your teaching calendar. Make sure it includes both biblical depth and real-life application, not one without the other.","Use a simple teaching framework that helps students move from passage to meaning to practice. Help them see how truth speaks to actual life.","Create space for questions and discussion so students learn how to wrestle with truth, not just nod at it."]},ownership:{reflectionPersonal:["Do I genuinely believe students can lead, or do I mostly trust adults to do the meaningful work?","Have I built a ministry that depends on my control?","Am I willing to let students try, fail, learn, and grow, or do I step in too fast to keep things polished?"],reflectionMinistry:["Do students have real ownership in our ministry, or just token jobs that make adults feel inclusive?","Are we helping students discover and use their gifts in meaningful ways?","Do students help shape the culture, direction, and mission of the ministry?"],implementationPersonal:["Pick one part of ministry you usually control too tightly and begin handing off real responsibility with coaching.",'Start asking students better questions: "What do you see?" "What do you care about?" "How do you think God wants to use you?"'],implementationMinistry:["Create clear student leadership opportunities with training, support, and real responsibility: welcoming, prayer, discussion leading, service planning, or peer discipleship.","Build a rhythm for student input. Use student teams, feedback circles, or leadership huddles to hear their ideas and observations.","Celebrate faithfulness, not just charisma. Healthy ownership grows when students know leadership is about service, not being the main character."]},belonging:{reflectionPersonal:["Do I know students beyond surface-level facts, or mostly by attendance patterns and whether they stack chairs?","Am I making space in my life for relational presence, or only for program output?","Do I notice who gets overlooked, left out, or stuck on the edges?"],reflectionMinistry:["Can a new student enter our group and find connection, or do they need a social miracle and three extroverts?","Are students forming genuine friendships here across different backgrounds and personalities?","Does our ministry help students feel connected to the larger church, not just the youth room?"],implementationPersonal:["Set a goal to learn one deeper thing about several students each week. Not just their sport or schedule, but their world.","Practice presence. Put your phone down, stay after, linger in conversations, and notice who is alone."],implementationMinistry:["Build intentional connection points into every gathering: small groups, shared meals, discussion circles, mentoring, and leader follow-up.","Create a plan for noticing absences and checking in. Students feel belonging when their presence matters and their absence is felt.","Strengthen intergenerational connection in the church by involving adults, testimonies, service opportunities, and shared worship experiences."]},mentalHealth:{reflectionPersonal:["How do I handle my own stress and anxiety? Do I bring it to God and trusted people, or just power through until I become a human smoke alarm?","Am I comfortable talking about mental health in a biblically grounded and emotionally mature way?","Do I know my limits as a leader, including when a student needs care beyond what I can provide?"],reflectionMinistry:["Have we created a culture where students can talk about anxiety, fear, sadness, and overwhelm without shame?","Do our leaders know how to respond when a student seems emotionally distressed or mentally unwell?","Are we helping students focus on God, prayer, gratitude, and wise thinking while also honoring the role of counselors, doctors, and therapists?"],implementationPersonal:["Develop your own rhythms of prayer, gratitude, rest, and emotional awareness. You cannot lead students toward peace while living in constant internal
36chaos.","Learn the difference between spiritual care and clinical care. Know when to listen, when to involve parents or supervisors, and when to refer to professionals."],implementationMinistry:["Train leaders to recognize signs of ongoing anxiety, emotional distress, and crisis, and give them a clear response pathway for what to do next.","Normalize conversations about mental health in teaching, small groups, and leader conversations. Speak about anxiety and struggle with both compassion and hope.","Teach students practical responses to overwhelm: prayer, gratitude, focusing on what is true and good, staying present, asking for help, and trusting God in uncertainty."]}};function Fse({amount:e,successPath:t}){const[n,r]=z.useState(!1),a=async()=>{r(!0);try{const s=window.location.origin+Kx,u=await(await fetch(`${Kx}/api/stripe/tip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:e,successUrl:`${s}${t}?tip=thanks`,cancelUrl:`${s}${t}`})})).json();u.url&&(window.location.href=u.url)}catch{r(!1)}};return i.jsx(ee,{variant:"outline",size:"lg",onClick:a,disabled:n,className:"rounded-full min-w-[80px] border-primary/30 hover:bg-primary hover:text-white hover:border-primary transition-all",children:n?"â¦":`$${e}`})}function Use(){const[e,t]=z.useState(""),[n,r]=z.useState(!1),a="/dashboard",s=async()=>{const l=parseFloat(e);if(!(!l||l<1)){r(!0);try{const u=window.location.origin+Kx,f=await(await fetch(`${Kx}/api/stripe/tip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:String(Math.round(l)),successUrl:`${u}${a}?tip=thanks`,cancelUrl:`${u}${a}`})})).json();f.url&&(window.location.href=f.url)}catch{r(!1)}}};return i.jsxs("div",{className:"bg-gradient-to-br from-primary/5 to-primary/10 rounded-3xl p-8 border border-primary/20 text-center",children:[i.jsx("div",{className:"text-3xl mb-3",children:"â"}),i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2",children:"Enjoying the dashboard?"}),i.jsx("p",{className:"text-slate-600 mb-6 text-sm leading-relaxed max-w-md mx-auto",children:"This tool is completely free. If it's helping your ministry, consider leaving a tip. It helps us keep building resources for youth workers like you."}),i.jsx("div",{className:"flex flex-wrap gap-3 justify-center mb-4",children:["5","10","15"].map(l=>i.jsx(Fse,{amount:l,successPath:a},l))}),i.jsxs("div",{className:"flex items-center gap-2 justify-center max-w-xs mx-auto",children:[i.jsxs("div",{className:"relative flex-1",children:[i.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500 font-medium",children:"$"}),i.jsx("input",{type:"number",min:"1",placeholder:"Custom amount",value:e,onChange:l=>t(l.target.value),onKeyDown:l=>l.key==="Enter"&&s(),className:"w-full pl-7 pr-3 py-2.5 rounded-full border border-primary/30 bg-white text-slate-900 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"})]}),i.jsx(ee,{variant:"outline",onClick:s,disabled:n||!e||parseFloat(e)<1,className:"rounded-full border-primary/30 hover:bg-primary hover:text-white hover:border-primary transition-all shrink-0",children:n?"â¦":"Tip"})]}),i.jsx("p",{className:"text-xs text-slate-400 mt-4",children:"Secure checkout via Stripe. One-time, no subscription."})]})}const zse=[{key:"safety",label:"Safety"},{key:"trust",label:"Trust"},{key:"vulnerability",label:"Vulnerability"},{key:"truth",label:"Truth"},{key:"ownership",label:"Youth Ownership"},{key:"belonging",label:"Belonging"},{key:"mentalHealth",label:"Mental Health"}],o3=["6th Grade","7th Grade","8th Grade","9th Grade","10th Grade","11th Grade","12th Grade"];function Jw(e){return e>=21?"text-green-600":e>=16?"text-blue-600":e>=11?"text-yellow-600":"text-red-600"}function s9(e){return e>=21?"Very Healthy":e>=16?"Healthy":e>=11?"Needs Attention":"Significant Growth Needed"}function Vse({sectionKey:e,label:t,score:n}){const[r,a]=v.useState(!1),s=(n-5)/20*100,l=n<16,u=Bse[e];return i.jsxs("div",{className:`rounded-xl border overflow-hidden transition-all ${l?"border-amber-200 bg-amber-50/40":"border-slate-100 bg-slate-50"}`,children:[i.jsxs("div",{className:"p-4",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("p",{className:"text-sm font-semibold text-slate-700",children:t}),i.jsxs("span",{className:`text-sm font-bold ${Jw(n)}`,children:[n.toFixed(1),"/25"]})]}),i.jsx(Sa,{value:Math.max(0,s),className:"h-2 mb-1.5"}),i.jsxs("div",{className:"flex items-center justify-between mt-1.5",children:[i.jsx("p",{className:`text-xs font-medium ${Jw(n)}`,children:s9(Math.round(n))}),l&&u&&i.jsxs("button",{onClick:()=>a(d=>!d),className:"flex items-center gap-1 text-[10px] font-bold text-amber-700 hover:text-amber-900 transition-colors ml-2 shrink-0",children:["Implementation Guide",i.jsx(Gi,{className:`w-3 h-3 transition-transform ${r?"rotate-180":""}`})]})]})]}),i.jsx(cn,{initial:!1,children:r&&u&&i.jsx(be.div,{initial:{height:0,opacity:0}
36,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:i.jsxs("div",{className:"px-4 pb-5 border-t border-amber-200 pt-4 space-y-4",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-[10px] font-black text-amber-700 uppercase tracking-widest mb-2",children:"Reflect: Personally"}),i.jsx("ul",{className:"space-y-1.5",children:u.reflectionPersonal.map((d,f)=>i.jsxs("li",{className:"flex gap-2 text-xs text-slate-700 leading-snug",children:[i.jsx("span",{className:"mt-0.5 shrink-0 w-1 h-1 rounded-full bg-amber-400 mt-1.5"}),d]},f))})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-[10px] font-black text-amber-700 uppercase tracking-widest mb-2",children:"Reflect: Ministry"}),i.jsx("ul",{className:"space-y-1.5",children:u.reflectionMinistry.map((d,f)=>i.jsxs("li",{className:"flex gap-2 text-xs text-slate-700 leading-snug",children:[i.jsx("span",{className:"mt-0.5 shrink-0 w-1 h-1 rounded-full bg-amber-400 mt-1.5"}),d]},f))})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-[10px] font-black text-amber-700 uppercase tracking-widest mb-2",children:"Practical Steps: Personal"}),i.jsx("ul",{className:"space-y-1.5",children:u.implementationPersonal.map((d,f)=>i.jsxs("li",{className:"flex gap-2 text-xs text-slate-700 leading-snug",children:[i.jsxs("span",{className:"shrink-0 font-black text-amber-500 mt-0.5",children:[f+1,"."]}),d]},f))})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-[10px] font-black text-amber-700 uppercase tracking-widest mb-2",children:"Practical Steps: Ministry"}),i.jsx("ul",{className:"space-y-1.5",children:u.implementationMinistry.map((d,f)=>i.jsxs("li",{className:"flex gap-2 text-xs text-slate-700 leading-snug",children:[i.jsxs("span",{className:"shrink-0 font-black text-amber-500 mt-0.5",children:[f+1,"."]}),d]},f))})]})]})},"guide")})]})}function l3({label:e,surveyUrl:t,isSelected:n,onSelect:r,onDelete:a,badge:s}){const[l,u]=v.useState(!1),[d,f]=v.useState(!1),[m,p]=v.useState(!1),g=()=>{navigator.clipboard.writeText(t),f(!0),setTimeout(()=>f(!1),2e3)};return i.jsxs("div",{className:`rounded-xl border transition-all ${n?"border-primary bg-primary/5 shadow-sm":"border-slate-200 bg-white hover:border-slate-300"}`,children:[i.jsxs("div",{className:"p-4",children:[i.jsxs("div",{className:"flex items-start justify-between gap-2 mb-3",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("p",{className:"font-semibold text-slate-900 text-sm truncate",children:e}),s&&i.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider px-1.5 py-0.5 rounded-full bg-slate-100 text-slate-500",children:s})]}),i.jsx("p",{className:"text-[11px] text-slate-400 font-mono mt-0.5 truncate",children:t.replace(/^https?:\/\//,"")})]}),a&&(m?i.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[i.jsx("button",{type:"button",onClick:()=>{a(),p(!1)},className:"text-[10px] font-bold text-red-600 hover:text-red-800 px-2 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"}),i.jsx("button",{type:"button",onClick:()=>p(!1),className:"p-1 text-slate-400 hover:text-slate-600",children:i.jsx(Oa,{className:"w-3 h-3"})})]}):i.jsx("button",{type:"button",onClick:()=>p(!0),className:"shrink-0 p-1.5 rounded-lg text-slate-300 hover:text-red-400 hover:bg-red-50 transition-colors",title:"Delete survey",children:i.jsx(yu,{className:"w-3.5 h-3.5"})}))]}),i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("button",{type:"button",onClick:r,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${n?"bg-primary text-white border-primary":"bg-white text-slate-600 border-slate-200 hover:border-primary/40 hover:text-primary"}`,children:n?"Viewing Results":"View Results"}),i.jsxs("button",{type:"button",onClick:()=>u(y=>!y),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-semibold border border-slate-200 bg-white text-slate-600 hover:border-slate-400 transition-all",children:[i.jsx(F8,{className:"w-3 h-3"}),l?"Hide QR":"QR Code"]}),i.jsxs("button",{type:"button",onClick:g,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-semibold border border-slate-200 bg-white text-slate-600 hover:border-slate-400 transition-all",children:[i.jsx(_ae,{className:"w-3 h-3"}),d?"Copied!":"Copy Link"]})]})]}),i.jsx(cn,{initial:!1,children:l&&i.jsx(be.div,{initial:{height:0,opacity:0}
36,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:i.jsx("div",{className:"border-t border-slate-100 p-4 flex justify-center",children:i.jsx("div",{className:"bg-white p-4 rounded-2xl border border-slate-200 shadow-sm inline-block",children:i.jsx(AN,{value:t,size:180,bgColor:"#ffffff",fgColor:"#1e293b",level:"H",imageSettings:{src:"/reframe-logo.png",height:32,width:32,excavate:!0}})})})},"qr")})]})}function Wse(){const{user:e}=Vt(),{signOut:t}=vj(),[,n]=et(),r=ur(),[a,s]=v.useState(""),[l,u]=v.useState(""),[d,f]=v.useState(null),[m,p]=v.useState(!1),[g,y]=v.useState(""),[w,b]=v.useState(!1),N="/".replace(/\/$/,""),{data:k,isLoading:C}=bt({queryKey:["ministry"],queryFn:()=>$I()}),{data:A=[]}=bt({queryKey:["campaigns"],queryFn:()=>jee(),enabled:!!k}),{data:E,isLoading:_}=bt({queryKey:["responses",a,l,d],queryFn:()=>bee({gender:a||void 0,grade:l||void 0,campaignId:d||void 0}),enabled:!!k}),T=k?`${window.location.origin}${N}/survey/${k.surveyCode}`:"",M=V=>`${window.location.origin}${N}/survey/${V.surveyCode}`,P=()=>t(()=>n("/")),D=async()=>{if(g.trim()){b(!0);try{await See({name:g.trim()}),r.invalidateQueries({queryKey:["campaigns"]}),y(""),p(!1)}finally{b(!1)}}},U=async V=>{await Aee(V),r.invalidateQueries({queryKey:["campaigns"]}),r.invalidateQueries({queryKey:["responses"]}),d===String(V)&&f(null)},L=Object.keys(E?.byGender||{}),$=Object.keys(E?.byGrade||{}).sort((V,B)=>o3.indexOf(V)-o3.indexOf(B)),G=E?.averageScores,H=d===null?"All Surveys":d==="primary"?"Primary Survey":A.find(V=>String(V.id)===d)?.name??"Survey";return k?.isAdmin?i.jsx(Si,{to:"/admin"}):C?i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx("p",{className:"text-slate-500",children:"Loading your dashboard..."})}):i.jsxs("div",{className:"min-h-screen bg-slate-50",children:[i.jsx("header",{className:"bg-white border-b border-slate-200 sticky top-0 z-40",children:i.jsxs("div",{className:"max-w-5xl mx-auto px-4 h-16 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3 cursor-pointer",onClick:()=>n("/"),children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"w-8 h-8"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-bold text-slate-900 text-sm leading-tight",children:k?.ministryName}),i.jsx("p",{className:"text-xs text-slate-500 leading-tight",children:k?.churchName})]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"text-sm text-slate-600 hidden sm:block",children:e?.firstName||k?.pastorName}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:P,children:"Sign Out"})]})]})}),i.jsx(cn,{children:m&&i.jsx(be.div,{initial:{opacity:0}
36,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",onClick:V=>{V.target===V.currentTarget&&p(!1)},children:i.jsxs(be.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.15},className:"bg-white rounded-2xl shadow-xl p-6 w-full max-w-sm",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"font-bold text-slate-900 text-lg",children:"New Survey Group"}),i.jsx("button",{type:"button",onClick:()=>p(!1),className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-600 hover:bg-slate-100",children:i.jsx(Oa,{className:"w-4 h-4"})})]}),i.jsx("p",{className:"text-sm text-slate-500 mb-4 leading-relaxed",children:"Give this survey group a name, like a campus location, season, or year. Each group gets its own QR code and keeps data separate."}),i.jsx("input",{autoFocus:!0,type:"text",placeholder:"e.g. Main Campus, North Campus, Fall 2025â¦",value:g,onChange:V=>y(V.target.value),onKeyDown:V=>V.key==="Enter"&&D(),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 text-sm text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary mb-4"}),i.jsxs("div",{className:"flex gap-2 justify-end",children:[i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>p(!1),children:"Cancel"}),i.jsx(ee,{size:"sm",className:"rounded-full bg-primary hover:bg-primary/90",disabled:!g.trim()||w,onClick:D,children:w?"Creatingâ¦":"Create Survey"})]})]})})}),i.jsxs("main",{className:"max-w-5xl mx-auto px-4 py-8 space-y-8",children:[i.jsx(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},children:i.jsxs(ze,{className:"border-slate-200 shadow-sm overflow-hidden",children:[i.jsxs("div",{className:"bg-primary px-6 py-4 flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-white font-bold text-lg",children:"Survey Groups"}),i.jsx("p",{className:"text-red-100 text-sm mt-0.5",children:"Each group has its own QR code, so data from different campuses or seasons stays separate"})]}),i.jsxs(ee,{size:"sm",onClick:()=>p(!0),className:"rounded-full bg-white/20 hover:bg-white/30 text-white border-white/30 border shrink-0",children:[i.jsx(gu,{className:"w-3.5 h-3.5 mr-1"}),"New Survey"]})]}),i.jsxs(Ve,{className:"p-4",children:[i.jsxs("div",{className:"space-y-3",children:[k&&i.jsx(l3,{label:k.ministryName,surveyUrl:T,badge:"Primary",isSelected:d==="primary",onSelect:()=>f(d==="primary"?null:"primary")}),A.map(V=>i.jsx(l3,{label:V.name,surveyUrl:M(V),isSelected:d===String(V.id),onSelect:()=>f(d===String(V.id)?null:String(V.id)),onDelete:()=>U(V.id)},V.id)),A.length===0&&i.jsxs("button",{type:"button",onClick:()=>p(!0),className:"w-full rounded-xl border border-dashed border-slate-300 p-4 text-center text-sm text-slate-500 hover:border-primary/40 hover:text-primary transition-colors",children:[i.jsx(gu,{className:"w-4 h-4 mx-auto mb-1 opacity-50"}),"Add a second campus or start a new assessment period"]})]}),i.jsx("p",{className:"text-xs text-slate-400 mt-3 px-1",children:'Click "View Results" on any group to filter the data below. Leave all unselected to see combined data.'}),i.jsx("div",{className:"mt-3 pt-3 border-t border-slate-100",children:i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:()=>n("/setup"),children:"Edit Ministry Info"})})]})]})}),i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.1},children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx("p",{className:"text-sm font-semibold text-slate-600",children:"Results for:"}),i.jsx("span",{className:`text-sm font-bold px-3 py-1 rounded-full ${d?"bg-primary text-white":"bg-slate-100 text-slate-700"}`,children:H}),d&&i.jsx("button",{type:"button",onClick:()=>f(null),className:"text-xs text-slate-400 hover:text-slate-600 underline",children:"Clear"})]}),i.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-primary",children:E?.totalResponses??0}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Students Surveyed"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:G?G.total.toFixed(0):"â"}),i.jsxs("p",{className:"text-sm text-slate-600 mt-1",children:["Avg Total Score ",i.jsx("span",{className:"text-slate-400",children:"/ 175"})]})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm col-span-2 sm:col-span-1",children:i.jsx(Ve,{className:"p-5 text-center",children:G&&E&&E.totalResponses>0?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:`text-2xl font-bold ${Jw(Math.round(G.total/7))}`,children:s9(Math.round(G.total/7))}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Overall Health"})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-2xl font-bold text-slate-400",children:"No Data"}),i.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"Overall Health"})]})})})]})]}),E&&E.totalResponses>0&&i.jsxs(be.div,{initial:{opacity:0,y:16}
36,animate:{opacity:1,y:0},transition:{delay:.2},children:[i.jsx("div",{className:"flex flex-wrap gap-2 mb-5",children:i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wide",children:"Filter:"}),["",...L].map(V=>i.jsx("button",{type:"button",onClick:()=>s(V),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${a===V?"bg-primary text-white border-primary":"bg-white text-slate-600 border-slate-200 hover:border-primary/40"}`,children:V||"All Genders"},V||"all-gender")),$.map(V=>i.jsx("button",{type:"button",onClick:()=>u(l===V?"":V),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${l===V?"bg-slate-800 text-white border-slate-800":"bg-white text-slate-600 border-slate-200 hover:border-slate-400"}`,children:V},V))]})}),G&&i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"Section Scores"}),i.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:[_?"Loading...":`Based on ${E.totalResponses} response${E.totalResponses!==1?"s":""}`,(a||l)&&" (filtered)"]})]}),i.jsxs(Ve,{className:"p-6",children:[i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:zse.map(({key:V,label:B})=>i.jsx(Vse,{sectionKey:V,label:B,score:G[V]},V))}),i.jsx("div",{className:"mt-4 pt-4 border-t border-slate-100 flex items-center justify-between",children:i.jsxs("div",{className:"flex gap-4 text-xs text-slate-500",children:[i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-green-600",children:"21â25"})," Very Healthy"]}),i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-blue-600",children:"16â20"})," Healthy"]}),i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-yellow-600",children:"11â15"})," Needs Attention"]}),i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-red-600",children:"5â10"})," Growth Needed"]})]})})]})]})]}),(!E||E.totalResponses===0)&&!_&&i.jsx(ze,{className:"border-slate-200 shadow-sm border-dashed",children:i.jsxs(Ve,{className:"p-10 text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-4",children:i.jsx("svg",{className:"w-8 h-8 text-slate-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})}),i.jsx("h3",{className:"font-bold text-slate-900 text-lg mb-2",children:"No responses yet"}),i.jsx("p",{className:"text-slate-500 text-sm max-w-sm mx-auto",children:"Share a QR code above with your students to start collecting survey data."})]})}),i.jsx(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.3},children:i.jsx(Use,{})})]})]})}const mf=[{id:"safety",title:"Safety",definition:"Safety means this ministry feels like a place where you are cared for, respected, and protected.",questions:["I feel physically safe when I am at youth group events and gatherings.","I feel emotionally safe sharing my thoughts and questions in this ministry.","Leaders in this ministry respond seriously when something harmful or inappropriate happens.","I am treated with respect here, even when I disagree with others.","This ministry creates a safe environment for students from different backgrounds and experiences."]},{id:"trust",title:"Trust",definition:"Trust means students believe their leaders and peers are honest, consistent, and dependable.",questions:["I trust the leaders in this ministry to care about me, not just run programs.","The adults in this ministry are consistent in what they say and how they act.","I believe I can talk to a leader here and be taken seriously.","This ministry helps me know who I can turn to when life feels uncertain or over
36whelming.","I trust this ministry to guide me toward what is wise, true, and healthy."]},{id:"vulnerability",title:"Vulnerability",definition:"Vulnerability means students and leaders can be honest about struggles, doubts, emotions, and real life without pretending everything is fine.",questions:["I feel like I can be honest in this ministry about what I am really going through.","Leaders model honesty about challenges, emotions, or struggles in a healthy way.","Students in this ministry are encouraged to ask hard questions rather than hide them.","I do not feel pressure here to pretend I have everything together.","When someone opens up about something hard, this ministry responds with care instead of judgment."]},{id:"truth",title:"Truth",definition:"Truth means this ministry helps students know and follow Jesus through biblical teaching that connects to real life.",questions:["This ministry teaches the Bible in a way that makes sense for real life.","I am challenged here to think deeply about what is true, not just believe whatever I hear online.","This ministry helps me connect my faith to issues I actually face in real life.","The teaching in this ministry helps me better understand who God is and how He cares for me.","This ministry helps students grow in wisdom, not just knowledge."]},{id:"ownership",title:"Youth Ownership",definition:"Youth ownership means students are not just spectators. They are invited to lead, serve, contribute, and use their gifts.",questions:["Students in this ministry are given real opportunities to lead and serve.","My ideas and input matter in this ministry.","This ministry helps me discover gifts and strengths I can use to serve others.","I am encouraged to take responsibility for my faith here.","Students here are trusted with meaningful roles, not just small tasks."]},{id:"belonging",title:"Belonging",definition:"Belonging means students experience real community, not just attendance.",questions:["I feel like I belong in this ministry.","There are people in this ministry who know me beyond surface-level stuff.","This ministry helps students build genuine friendships and community.","I feel connected to the larger church, not just the youth group.","If I missed a few weeks, people here would notice and care."]},{id:"mentalHealth",title:"Mental Health",definition:"Mental health means this ministry cares about what students are carrying emotionally and mentally.",questions:["This ministry makes it okay to talk about anxiety, stress, and mental health struggles.","I have learned healthy ways to respond when life feels overwhelming or uncertain because of this ministry.","This ministry encourages students to trust God even when life feels out of control.","This ministry helps students focus on what is good, true, and helpful instead of getting lost in fear or mental overload.","If a student needed extra help for mental health, this ministry would support them in getting it."]}],c3=[{value:1,label:"Strongly Disagree"},{value:2,label:"Disagree"},{value:3,label:"Not Sure"},{value:4,label:"Agree"},{value:5,label:"Strongly Agree"}],qse=["Male","Female","Prefer not to say"],Hse=["6th Grade","7th Grade","8th Grade","9th Grade","10th Grade","11th Grade","12th Grade"];function Gse(){const t=Mh().code,[n,r]=v.useState("demographics"),[a,s]=v.useState(""),[l,u]=v.useState(""),[d,f]=v.useState({}),{data:m,isLoading:p,isError:g}=bt({queryKey:["survey",t],queryFn:()=>Eee(t),enabled:!!t}),y=$t({mutationFn:()=>{const T=M=>{const P=d[M]||{};return Object.values(P).reduce((D,U)=>D+U,0)};return _ee(t,{gender:a,grade:l,safetyScore:T("safety"),trustScore:T("trust"),vulnerabilityScore:T("vulnerability"),truthScore:T("truth"),ownershipScore:T("ownership"),belongingScore:T("belonging"),mentalHealthScore:T("mentalHealth")})},onSuccess:()=>r("done")});if(p)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx("p",{className:"text-slate-500",children:"Loading survey..."})});if(g||!m)return i.jsx("div",{className:"min-h-screen flex items-center justify-center px-4",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Survey Not Found"}),i.jsx("p",{className:"text-slate-600",children:"This survey link is invali
36d or has expired. Please ask your youth leader for a new link."})]})});const w=typeof n=="number"?n:-1,b=w>=0?mf[w]:null,N=mf.length,k=typeof n=="number"?(n+1)/(N+1)*100:n==="done"?100:5,C=T=>{const M=mf[T],P=d[M.id]||{};return M.questions.every((D,U)=>P[U]!==void 0)},A=(T,M,P)=>{f(D=>({...D,[T]:{...D[T]||{},[M]:P}}))},E=()=>{n==="demographics"?r(0):typeof n=="number"&&(n<mf.length-1?r(n+1):y.mutate()),window.scrollTo(0,0)},_=()=>{typeof n=="number"&&r(n===0?"demographics":n-1),window.scrollTo(0,0)};return n==="done"?i.jsxs("div",{className:"min-h-screen bg-white flex flex-col",children:[i.jsx("header",{className:"bg-white border-b border-slate-200 px-4 py-4",children:i.jsxs("div",{className:"max-w-2xl mx-auto flex items-center gap-3",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"w-8 h-8"}),i.jsx("span",{className:"font-bold text-slate-900",children:"Reframe Youth"})]})}),i.jsx(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex-1 flex items-center justify-center px-4 py-16",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("div",{className:"w-20 h-20 rounded-full bg-green-100 flex items-center justify-center mx-auto mb-6",children:i.jsx("svg",{className:"w-10 h-10 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),i.jsx("h1",{className:"text-3xl font-bold mb-4 text-slate-900",children:"Thank You!"}),i.jsx("p",{className:"text-lg text-slate-600 leading-relaxed mb-4",children:"Your anonymous response has been recorded. Your pastor will use this to help make your ministry even healthier."}),i.jsx("p",{className:"text-slate-500 text-sm",children:"You can close this tab now."})]})})]}):i.jsxs("div",{className:"min-h-screen bg-white flex flex-col",children:[i.jsxs("header",{className:"sticky top-0 z-50 bg-white border-b border-slate-200",children:[i.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-3 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"w-7 h-7"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-xs text-slate-500 leading-none",children:"Youth Ministry Health Survey"}),i.jsx("p",{className:"text-sm font-semibold text-slate-900 leading-tight",children:m.ministryName})]})]}),typeof n=="number"&&i.jsxs("span",{className:"text-xs text-slate-500 font-medium",children:["Section ",n+1," of ",N]})]}),i.jsx(Sa,{value:k,className:"h-1 rounded-none"})]}),i.jsx("main",{className:"flex-1 max-w-2xl mx-auto w-full px-4 py-8 pb-24",children:i.jsxs(cn,{mode:"wait",children:[n==="demographics"&&i.jsxs(be.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-2",children:"Before We Begin"}),i.jsx("p",{className:"text-slate-600",children:"This survey is completely anonymous, no names are collected. Please answer a few quick questions to help us analyze the results."})]}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-slate-900 mb-3",children:"What is your gender?"}),i.jsx("div",{className:"grid grid-cols-1 gap-2",children:qse.map(T=>i.jsx("button",{type:"button",onClick:()=>s(T),className:`py-3 px-4 rounded-xl border-2 text-left font-medium transition-all ${a===T?"border-primary bg-primary text-white":"border-slate-200 bg-slate-50 text-slate-700 hover:border-primary/40"}`,children:T},T))})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-slate-900 mb-3",children:"What grade are you in?"}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:Hse.map(T=>i.jsx("button",{type:"button",onClick:()=>u(T),className:`py-3 px-4 rounded-xl border-2 text-center font-medium transition-all ${l===T?"border-primary bg-primary text-white":"border-slate-200 bg-slate-50 text-slate-700 hover:border-primary/40"}`,children:T},T))})]})]}),i.jsx("div",{className:"mt-10",children:i.jsx(ee,{size:"lg",className:"w-full rounded-full text-base",disabled:!a||!l,onClick:E,children:"Start Survey"})})]},"demo"),typeof n=="number"&&b&&i.jsxs(be.div,{initial:{opacity:0,x:20}
36,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("span",{className:"text-xs font-semibold text-primary uppercase tracking-wider",children:["Section ",n+1," of ",N]}),i.jsx("h2",{className:"text-2xl font-bold text-slate-900 mt-1 mb-2",children:b.title}),i.jsx("p",{className:"text-slate-600 text-sm leading-relaxed",children:b.definition})]}),i.jsx("p",{className:"text-xs text-slate-500 mb-4 font-medium",children:"1 = Strongly Disagree  · 5 = Strongly Agree"}),i.jsx("div",{className:"space-y-5",children:b.questions.map((T,M)=>{const P=d[b.id]?.[M];return i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-4",children:[i.jsxs("p",{className:"text-sm font-medium text-slate-900 mb-3",children:[M+1,". ",T]}),i.jsx("div",{className:"flex gap-2 flex-wrap",children:c3.map(D=>i.jsx("button",{type:"button",onClick:()=>A(b.id,M,D.value),title:D.label,className:`flex-1 min-w-[2.5rem] py-2.5 rounded-lg border-2 text-sm font-semibold transition-all ${P===D.value?"border-primary bg-primary text-white":"border-slate-200 bg-slate-50 text-slate-600 hover:border-primary/40"}`,children:D.value},D.value))}),P&&i.jsx("p",{className:"text-xs text-slate-400 mt-1.5 text-right",children:c3.find(D=>D.value===P)?.label})]})},M)})}),i.jsxs("div",{className:"mt-8 flex justify-between gap-3",children:[i.jsx(ee,{variant:"outline",size:"lg",onClick:_,className:"rounded-full",children:"Back"}),i.jsx(ee,{size:"lg",onClick:E,disabled:!C(n)||y.isPending,className:"rounded-full flex-1",children:y.isPending?"Submitting...":n===mf.length-1?"Submit Survey":"Next Section"})]})]},`section-${n}`)]})})]})}var Kse=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function CN(e){if(typeof e!="string")return!1;var t=Kse;return t.includes(e)}var Yse=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
36dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Qse=new Set(Yse);function o9(e){return typeof e!="string"?!1:Qse.has(e)}function l9(e){return typeof e=="string"&&e.startsWith("data-")}function ms(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o9(n)||l9(n))&&(t[n]=e[n]);return t}function EN(e){if(e==null)return null;if(v.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ms(t)}return typeof e=="object"&&!Array.isArray(e)?ms(e):null}function ps(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o9(n)||l9(n)||CN(n))&&(t[n]=e[n]);return t}var Xse=["children","width","height","viewBox","className","style","title","desc"];function e2(){return e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e2.apply(null,arguments)}function Zse(e,t){if(e==null)return{};var n,r,a=Jse(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Jse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var c9=v.forwardRef((e,t)=>{var n=e.children,r=e.width,a=e.height,s=e.viewBox,l=e.className,u=e.style,d=e.title,f=e.desc,m=Zse(e,Xse),p=s||{width:r,height:a,x:0,y:0},g=Bt("recharts-surface",l);return v.createElement("svg",e2({},ps(m),{className:g,width:r,height:a,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),v.createElement("title",null,d),v.createElement("desc",null,f),n)}),eoe=["children","className"];function t2(){return t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t2.apply(null,arguments)}function toe(e,t){if(e==null)return{};var n,r,a=noe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function noe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ka=v.forwardRef((e,t)=>
36{var n=e.children,r=e.className,a=toe(e,eoe),s=Bt("recharts-layer",r);return v.createElement("g",t2({className:s},ps(a),{ref:t}),n)});function n2(e){return e==="__proto__"}const roe=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function u9(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e===""||e.startsWith(".")||e.endsWith(".")?!1:roe.test(e);default:return!1}}function TN(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function d9(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(d9).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function _N(e){if(Array.isArray(e))return e.map(TN);if(typeof e=="symbol")return[e];e=d9(e);const t=[],n=e.length;if(n===0)return t;let r=0,a="",s="",l=!1;for(e.charCodeAt(0)===46&&t.push("");r<n;){const u=e[r];if(s)u==="\\"&&r+1<n?(r++,a+=e[r]):u===s?s="":a+=u;else if(l)u==='"'||u==="'"?s=u:u==="]"?(l=!1,t.push(a),a=""):a+=u;else if(u==="[")l=!0,a&&(t.push(a),a="");else if(u==="."){a&&(t.push(a),a="");const d=e[r+1];(d===void 0||d===".")&&t.push("")}else a+=u;r++}return a&&t.push(a),t}function xs(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(n2(t))return n;const r=e[t];return r===void 0?u9(t)&&!Object.hasOwn(e,t)?xs(e,_N(t),n):n:r}case"number":case"symbol":{typeof t=="number"&&(t=TN(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ioe(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),n2(t))return n;const r=e[t];return r===void 0?n:r}}}function ioe(e,t,n){if(t.length===0)return n;let r=e;for(let a=0;a<t.length;a++){if(r==null||n2(t[a]))return n;r=r[t[a]]}return r===void 0?n:r}var aoe=4;function yo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:aoe,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((a,s,l)=>{var u=n[l-1];return typeof u=="string"?a+u+s:u!==void 0?a+yo(u)+s:a+s},"")}var Ir=e=>e===0?0:e>0?1:-1,Aa=e=>typeof e=="number"&&e!=+e,Pl=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,Le=e=>(typeof e=="number"||e instanceof Number)&&!Aa(e),Ca=e=>Le(e)||typeof e=="string",soe=0,lh=e=>{var t=++soe;return"".concat(e||"").concat(t)},Ki=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Le(t)&&typeof t!="string")return r;var s;if(Pl(t)){if(n==null)return r;var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return Aa(s)&&(s=r),a&&n!=null&&s>n&&(s=n),s},f9=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function ir(e,t,n){return Le(e)&&Le(t)?yo(e+n*(t-e)):t}function ooe(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):xs(r,t))===n)}var Tn=e=>e===null||typeof e>"u",ON=e=>Tn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Lr(e){return e!=null}function Ku(){}function PN(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function u3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u3(Object(n),!0).forEach(function(r){loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=uoe(e,"string");return typeof t=="symbol"?t:t+""}function uoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var doe=e=>{var t=e.viewBox,n=e.position,r=e.offset,a=r===void 0?0:r,s=e.parentViewBox,l=PN(t),u=l.x,d=l.y,f=l.height,m=l.upperWidth,p=l.lowerWidth,g=u,y=u+(m-p)/2,w=(g+y)/2,b=(m+p)/2,N=g+m/2,k=f>=0?1:-1,C=k*a,A=k>0?"end":"start",E=k>0?"start":"end",_=m>=0?1:-1,T=_*a,M=_>0?"end":"start",P=_>0?"start":"end",D=s;if(n==="top"){var U={x:g+m/2,y:d-C,horizontalAnchor:"middle",verticalAnchor:A};return D&&(U.height=Math.max(d-D.y,0),U.width=m),U}if(n==="bottom"){var L={x:y+p/2,y:d+f+C,horizontalAnchor:"middle",verticalAnchor:E};return D&&(L.height=Math.max(D.y+D.height-(d+f),0),L.width=p),L}if(n==="left"){var $={x:w-T,y:d+f/2,horizontalAnchor:M,verticalAnchor:"middle"};return D&&($.width=Math.max($.x-D.x,0),$.height=f),$}if(n==="right"){var G={x:w+b+T,y:d+f/2,horizontalAnchor:P,verticalAnchor:"middle"};return D&&(G.width=Math.max(D.x+D.width-G.x,0),G.height=f),G}var H=D?{width:b,height:f}:{};return n==="insideLeft"?la({x:w+T,y:d+f/2,horizontalAnchor:P,verticalAnchor:"middle"},H):n==="insideRight"?la({x:w+b-T,y:d+f/2,horizontalAnchor:M,verticalAnchor:"middle"},H):n==="insideTop"?la({x:g+m/2,y:d+C,horizontalAnchor:"middle",verticalAnchor:E},H):n==="insideBottom"?la({x:y+p/2,y:d+f-C,horizontalAnchor:"middle",verticalAnchor:A},H):n==="insideTopLeft"?la({x:g+T,y:d+C,horizontalAnchor:P,verticalAnchor:E},H):n==="insideTopRight"?la({x:g+m-T,y:d+C,horizontalAnchor:M,verticalAnchor:E},H):n==="insideBottomLeft"?la({x:y+T,y:d+f-C,horizontalAnchor:P,verticalAnchor:A},H):n==="insideBottomRight"?la({x:y+p-T,y:d+f-C,horizontalAnchor:M,verticalAnchor:A},H):n&&typeof n=="object"&&(Le(n.x)||Pl(n.x))&&(Le(n.y)||Pl(n.y))?la({x:u+Ki(n.x,b),y:d+Ki(n.y,f),horizontalAnchor:"end",verticalAnchor:"end"},H):la({x:N,y:d+f/2,horizontalAnchor:"middle",verticalAnchor:"middle"},H)},foe=["top","left","right","bottom"];function hoe(e){return e==null?!1:typeof e=="object"?!0:foe.includes(e)}var moe=v.createContext(null);function nn(e){return function(){return e}}const r2=Math.PI,i2=2*r2,fl=1e-6,poe=i2-fl;function h9(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xoe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return h9;const n=10**t;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class goe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?h9:xoe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,s,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,a,s){if(t=+t,n=+n,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,u=this._y1,d=r-t,f=a-n,m=l-t,p=u-n,g=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>fl)if(!(Math.abs(p*d-f*m)>fl)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-l,w=a-u,b=d*d+f*f,N=y*y+w*w,k=Math.sqrt(b),C=Math.sqrt(g),A=s*Math.tan((r2-Math.acos((b+g-N)/(2*k*C)))
vendor: 4,159 bytes, line 36
36/2),E=A/C,_=A/k;Math.abs(E-1)>fl&&this._append`L${t+E*m},${n+E*p}`,this._append`A${s},${s},0,0,${+(p*y>m*w)},${this._x1=t+_*d},${this._y1=n+_*f}`}}arc(t,n,r,a,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(a),d=r*Math.sin(a),f=t+u,m=n+d,p=1^l,g=l?a-s:s-a;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>fl||Math.abs(this._y1-m)>fl)&&this._append`L${f},${m}`,r&&(g<0&&(g=g%i2+i2),g>poe?this._append`A${r},${r},0,1,${p},${t-u},${n-d}A${r},${r},0,1,${p},${this._x1=f},${this._y1=m}`:g>fl&&this._append`A${r},${r},0,${+(g>=r2)},${p},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function m9(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new goe(t)}function MN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function p9(e){this._context=e}p9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function p0(e){return new p9(e)}function x9(e){return e[0]}function g9(e){return e[1]}function y9(e,t){var n=nn(!0),r=null,a=p0,s=null,l=m9(u);e=typeof e=="function"?e:e===void 0?x9:nn(e),t=typeof t=="function"?t:t===void 0?g9:nn(t);function u(d){var f,m=(d=MN(d)).length,p,g=!1,y;for(r==null&&(s=a(y=l())),f=0;f<=m;++f)!(f<m&&n(p=d[f],f,d))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(p,f,d),+t(p,f,d));if(y)return s=null,y+""||null}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:nn(+d),u):e},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:nn(+d),u):t},u.defined=function(d){return arguments.length?(n=typeof d=="function"?d:nn(!!d),u):n},u.curve=function(d){return arguments.length?(a=d,r!=null&&(s=a(r)),u):a},u.context=function(d){return arguments.length?(d==null?r=s=null:s=a(r=d),u):r},u}function Rp(e,t,n){var r=null,a=nn(!0),s=null,l=p0,u=null,d=m9(f);e=typeof e=="function"?e:e===void 0?x9:nn(+e),t=typeof t=="function"?t:nn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?g9:nn(+n);function f(p){var g,y,w,b=(p=MN(p)).length,N,k=!1,C,A=new Array(b),E=new Array(b);for(s==null&&(u=l(C=d())),g=0;g<=b;++g){if(!(g<b&&a(N=p[g],g,p))===k)if(k=!k)y=g,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),w=g-1;w>=y;--w)u.point(A[w],E[w]);u.lineEnd(),u.areaEnd()}k&&(A[g]=+e(N,g,p),E[g]=+t(N,g,p),u.point(r?+r(N,g,p):A[g],n?+n(N,g,p):E[g]))}if(C)return u=null,C+""||null}function m(){return y9().defined(a).curve(l).context(s)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:nn(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:nn(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:nn(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:nn(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:nn(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:nn(+p),f):n},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(n)},f.lineX1=function(){return m().x(r).y(t)},f.defined=function(p){return arguments.length?(a=typeof p=="function"?p:nn(!!p),f):a},f.curve=function(p){return arguments.length?(l=p,s!=null&&(u=l(s)),f):l},f.context=function(p){return arguments.length?(p==null?s=u=null:u=l(s=p),f):s},f}class v9{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
vendor: 6,728 bytes, line 36
36point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function yoe(e){return new v9(e,!0)}function voe(e){return new v9(e,!1)}function Yx(){}function Qx(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function b9(e){this._context=e}b9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qx(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qx(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function boe(e){return new b9(e)}function w9(e){this._context=e}w9.prototype={areaStart:Yx,areaEnd:Yx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Qx(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function woe(e){return new w9(e)}function j9(e){this._context=e}j9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Qx(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function joe(e){return new j9(e)}function N9(e){this._context=e}N9.prototype={areaStart:Yx,areaEnd:Yx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Noe(e){return new N9(e)}function d3(e){return e<0?-1:1}function f3(e,t,n){var r=e._x1-e._x0,a=t-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),u=(s*a+l*r)/(r+a);return(d3(s)+d3(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(u))||0}function h3(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function m1(e,t,n){var r=e._x0,a=e._y0,s=e._x1,l=e._y1,u=(s-r)/3;e._context.bezierCurveTo(r+u,a+u*t,s-u,l-u*n,s,l)}function Xx(e){this._context=e}Xx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:m1(this,this._t0,h3(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,m1(this,h3(this,n=f3(this,e,t)),n);break;default:m1(this,this._t0,n=f3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function S9(e){this._context=new k9(e)}(S9.prototype=Object.create(Xx.prototype)).point=function(e,t){Xx.prototype.point.call(this,t,e)};function k9(e){this._context=e}k9.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,s){this._context.bezierCurveTo(t,e,r,n,s,a)}};function Soe(e){return new Xx(e)}function koe(e){return new S9(e)}function A9(e){this._context=e}A9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=m3(e),a=m3(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function m3(e){var t,n=e.length-1,r,a=new Array(n),s=new Array(n),l=new Array(n);for(a[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/s[t];for(s[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-a[t+1];return[a,s]}function Aoe(e){return new A9(e)}function x0(e,t){this._context=e,this._t=t}x0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
36default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Coe(e){return new x0(e,.5)}function Eoe(e){return new x0(e,0)}function Toe(e){return new x0(e,1)}function Ml(e,t){if((l=e.length)>1)for(var n=1,r,a,s=e[t[0]],l,u=s.length;n<l;++n)for(a=s,s=e[t[n]],r=0;r<u;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function a2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function _oe(e,t){return e[t]}function Ooe(e){const t=[];return t.key=e,t}function Poe(){var e=nn([]),t=a2,n=Ml,r=_oe;function a(s){var l=Array.from(e.apply(this,arguments),Ooe),u,d=l.length,f=-1,m;for(const p of s)for(u=0,++f;u<d;++u)(l[u][f]=[0,+r(p,l[u].key,f,s)]).data=p;for(u=0,m=MN(t(l));u<d;++u)l[m[u]].index=u;return n(l,m),l}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:nn(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:nn(+s),a):r},a.order=function(s){return arguments.length?(t=s==null?a2:typeof s=="function"?s:nn(Array.from(s)),a):t},a.offset=function(s){return arguments.length?(n=s??Ml,a):n},a}function Moe(e,t){if((r=e.length)>0){for(var n,r,a=0,s=e[0].length,l;a<s;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}Ml(e,t)}}function Roe(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,s=r.length;n<s;++n){for(var l=0,u=0;l<a;++l)u+=e[l][n][1]||0;r[n][1]+=r[n][0]=-u/2}Ml(e,t)}}function Doe(e,t){if(!(!((l=e.length)>0)||!((s=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,s,l;r<s;++r){for(var u=0,d=0,f=0;u<l;++u){for(var m=e[t[u]],p=m[r][1]||0,g=m[r-1][1]||0,y=(p-g)/2,w=0;w<u;++w){var b=e[t[w]],N=b[r][1]||0,k=b[r-1][1]||0;y+=N-k}d+=p,f+=y*p}a[r-1][1]+=a[r-1][0]=n,d&&(n-=f/d)}a[r-1][1]+=a[r-1][0]=n,Ml(e,t)}}var C9=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Ioe=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(v.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(a=>{CN(a)&&typeof n[a]=="function"&&(r[a]=(s=>n[a](n,s)))}),r},Loe=(e,t,n)=>r=>(e(t,n,r),null),RN=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(a=>{var s=e[a];CN(a)&&typeof s=="function"&&(r||(r={}),r[a]=Loe(s,t,n))}),r};function p3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p3(Object(n),!0).forEach(function(r){Boe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Boe(e,t,n){return(t=Foe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Foe(e){var t=Uoe(e,"string");return typeof t=="symbol"?t:t+""}function Uoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ei(e,t){var n=$oe({},e),r=t,a=Object.keys(t),s=a.reduce((l,u)=>(l[u]===void 0&&r[u]!==void 0&&(l[u]=r[u]),l),n);return s}function zoe(e,t){const n=new Map;for(let r=0;r<e.length;r++){const a=e[r],s=t(a,r,e);n.has(s)||n.set(s,a)}return Array.from(n.values())}function Voe(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function E9(e){return e}function Woe(e){return function(t){return xs(t,e)}}function s2(e){return e==null||typeof e!="object"&&typeof e!="function"}function qoe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function o2(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}
36function ch(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const T9="[object RegExp]",DN="[object String]",IN="[object Number]",LN="[object Boolean]",_9="[object Arguments]",O9="[object Symbol]",P9="[object Date]",M9="[object Map]",R9="[object Set]",D9="[object Array]",Hoe="[object Function]",I9="[object ArrayBuffer]",vx="[object Object]",Goe="[object Error]",L9="[object DataView]",$9="[object Uint8Array]",B9="[object Uint8ClampedArray]",F9="[object Uint16Array]",U9="[object Uint32Array]",Koe="[object BigUint64Array]",z9="[object Int8Array]",V9="[object Int16Array]",W9="[object Int32Array]",Yoe="[object BigInt64Array]",q9="[object Float32Array]",H9="[object Float64Array]",x3=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function l2(e){return typeof x3.Buffer<"u"&&x3.Buffer.isBuffer(e)}function Qoe(e,t){return yl(e,void 0,e,new Map,t)}function yl(e,t,n,r=new Map,a=void 0){const s=a?.(e,t,n,r);if(s!==void 0)return s;if(s2(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const l=new Array(e.length);r.set(e,l);for(let u=0;u<e.length;u++)l[u]=yl(e[u],u,n,r,a);return Object.hasOwn(e,"index")&&(l.index=e.index),Object.hasOwn(e,"input")&&(l.input=e.input),l}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const l=new RegExp(e.source,e.flags);return l.lastIndex=e.lastIndex,l}if(e instanceof Map){const l=new Map;r.set(e,l);for(const[u,d]of e)l.set(u,yl(d,u,n,r,a));return l}if(e instanceof Set){const l=new Set;r.set(e,l);for(const u of e)l.add(yl(u,void 0,n,r,a));return l}if(l2(e))return e.subarray();if(qoe(e)){const l=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,l);for(let u=0;u<e.length;u++)l[u]=yl(e[u],u,n,r,a);return l}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const l=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,l),$i(l,e,n,r,a),l}if(typeof File<"u"&&e instanceof File){const l=new File([e],e.name,{type:e.type});return r.set(e,l),$i(l,e,n,r,a),l}if(typeof Blob<"u"&&e instanceof Blob){const l=new Blob([e],{type:e.type});return r.set(e,l),$i(l,e,n,r,a),l}if(e instanceof Error){const l=structuredClone(e);return r.set(e,l),l.message=e.message,l.name=e.name,l.stack=e.stack,l.cause=e.cause,l.constructor=e.constructor,$i(l,e,n,r,a),l}if(e instanceof Boolean){const l=new Boolean(e.valueOf());return r.set(e,l),$i(l,e,n,r,a),l}if(e instanceof Number){const l=new Number(e.valueOf());return r.set(e,l),$i(l,e,n,r,a),l}if(e instanceof String){const l=new String(e.valueOf());return r.set(e,l),$i(l,e,n,r,a),l}if(typeof e=="object"&&Xoe(e)){const l=Object.create(Object.getPrototypeOf(e));return r.set(e,l),$i(l,e,n,r,a),l}return e}function $i(e,t,n=e,r,a){const s=[...Object.keys(t),...o2(t)];for(let l=0;l<s.length;l++){const u=s[l],d=Object.getOwnPropertyDescriptor(e,u);(d==null||d.writable)&&(e[u]=yl(t[u],u,n,r,a))}}function Xoe(e){switch(ch(e)){case _9:case D9:case I9:case L9:case LN:case P9:case q9:case H9:case z9:case V9:case W9:case M9:case IN:case vx:case T9:case R9:case DN:case O9:case $9:case B9:case F9:case U9:return!0;default:return!1}}function Zoe(e){return yl(e,void 0,e,new Map,void 0)}function Hf(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function G9(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function K9(e,t,n){return typeof n!="function"?K9(e,t,()=>{}):c2(e,t,function r(a,s,l,u,d,f){const m=n(a,s,l,u,d,f);return m!==void 0?!!m:c2(a,s,r,f,!1)},new Map,!0)}function c2(e,t,n,r,a=!1){if(t===e)return!0;switch(typeof t){case"object":return Joe(e,t,n,r);case"function":return Object.keys(t).length>0?c2(e,{...t},n,r,a):Hf(e,t);default:return G9(e)&&a?typeof t=="string"?t==="":!0:Hf(e,t)}}function Joe(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return Y9(e,t,n,r);if(t instanceof Map)return ele(e,t,n,r);if(t instanceof Set)return tle(e,t,n,r);const a=Object.keys(t);if(e==null||s2(e))return a.length===0;if(a.length===0)return!0;
36if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let s=0;s<a.length;s++){const l=a[s];if(!s2(e)&&!(l in e)||t[l]===void 0&&e[l]!==void 0||t[l]===null&&e[l]!==null||!n(e[l],t[l],l,e,t,r))return!1}return!0}finally{r?.delete(t)}}function ele(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,s]of t.entries())if(n(e.get(a),s,a,e,t,r)===!1)return!1;return!0}function Y9(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let s=0;s<t.length;s++){const l=t[s];let u=!1;for(let d=0;d<e.length;d++){if(a.has(d))continue;const f=e[d];let m=!1;if(n(f,l,s,e,t,r)&&(m=!0),m){a.add(d),u=!0;break}}if(!u)return!1}return!0}function tle(e,t,n,r){return t.size===0?!0:e instanceof Set?Y9([...e],[...t],n,r):!1}function Q9(e,t){return K9(e,t,()=>{})}function nle(e){return e=Zoe(e),t=>Q9(t,e)}function rle(e,t){return Qoe(e,(n,r,a,s)=>{if(typeof e=="object"){if(ch(e)==="[object Object]"&&typeof e.constructor!="function"){const l={};return s.set(e,l),$i(l,e,a,s),l}switch(Object.prototype.toString.call(e)){case IN:case DN:case LN:{const l=new e.constructor(e?.valueOf());return $i(l,e),l}case _9:{const l={};return $i(l,e),l.length=e.length,l[Symbol.iterator]=e[Symbol.iterator],l}default:return}}})}function ile(e){return rle(e)}const ale=/^(?:0|[1-9]\d*)$/;function X9(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return ale.test(e)}}function sle(e){return e!==null&&typeof e=="object"&&ch(e)==="[object Arguments]"}function ole(e,t){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&u9(t)&&!(t in Object(e))?n=_N(t):n=[t],n.length===0)return!1;let r=e;for(let a=0;a<n.length;a++){const s=n[a];if((r==null||!Object.hasOwn(r,s))&&!((Array.isArray(r)||sle(r))&&X9(s)&&s<r.length))return!1;r=r[s]}return!0}function lle(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=TN(e);break}return t=ile(t),function(n){const r=xs(n,e);return r===void 0?ole(n,e):t===void 0?r===void 0:Q9(r,t)}}function cle(e){if(e==null)return E9;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?lle(e[0],e[1]):nle(e);case"string":case"symbol":case"number":return Woe(e)}}function ule(e){return Number.isSafeInteger(e)&&e>=0}function Z9(e){return e!=null&&typeof e!="function"&&ule(e.length)}function dle(e){return typeof e=="object"&&e!==null}function fle(e){return dle(e)&&Z9(e)}function g3(e,t=E9){return fle(e)?zoe(Array.from(e),Voe(cle(t),1)):[]}function hle(e,t,n){return t===!0?g3(e,n):typeof t=="function"?g3(e,t):e}var p1={exports:{}},x1={};var y3;function mle(){if(y3)return x1;y3=1;var e=Iu(),t=SR();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return x1.useSyncExternalStoreWithSelector=function(f,m,p,g,y){var w=s(null);if(w.current===null){var b={hasValue:!1,value:null};w.current=b}else b=w.current;w=u(function(){function k(T){if(!C){if(C=!0,A=T,T=g(T),y!==void 0&&b.hasValue){var M=b.value;if(y(M,T))return E=M}return E=T}if(M=E,r(A,T))return M;var P=g(T);return y!==void 0&&y(M,P)?(A=T,M):(A=T,E=P)}var C=!1,A,E,_=p===void 0?null:p;return[function(){return k(m())},_===null?void 0:function(){return k(_())}]},[m,p,g,y]);var N=a(f,w[0],w[1]);return l(function(){b.hasValue=!0,b.value=N},[N]),d(N),N},x1}var v3;function ple(){return v3||(v3=1,p1.exports=mle()),p1.exports}var xle=ple(),$N=v.createContext(null),gle=e=>e,Wt=()=>{var e=v.useContext($N);return e?e.store.dispatch:gle},bx=()=>{},yle=()=>bx,vle=(e,t)=>e===t;function Fe(e){var t=v.useContext($N),n=v.useMemo(()=>t?r=>{if(r!=null)return e(r)}:bx,[t,e]);return xle.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:yle,t?t.store.getState:bx,t?t.store.getState:bx,n,vle)}function ble(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function wle(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var b3=e=>Array.isArray(e)?e:[e];function jle(e){const t=Array.isArray(e[0])?e[0]:e;return wle(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Nle(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var Sle=class{constructor(e){this.value=e}deref(){return this.value}},kle=()=>typeof WeakRef>"u"?Sle:WeakRef,J9=kle(),Ale=0,w3=1;function Dp(){return{s:Ale,v:void 0,o:null,p:null}}function Cle(e){return e instanceof J9?e.deref():e}function eL(e,t={}){let n=Dp();const{resultEqualityCheck:r}=t;let a,s=0;function l(){let u=n;const{length:d}=arguments;for(let p=0,g=d;p<g;p++){const y=arguments[p];if(typeof y=="function"||typeof y=="object"&&y!==null){let w=u.o;w===null&&(u.o=w=new WeakMap);const b=w.get(y);b===void 0?(u=Dp(),w.set(y,u)):u=b}else{let w=u.p;w===null&&(u.p=w=new Map);const b=w.get(y);b===void 0?(u=Dp(),w.set(y,u)):u=b}}const f=u;let m;if(u.s===w3)m=u.v;else if(m=e.apply(null,arguments),s++,r){const p=Cle(a);p!=null&&r(p,m)&&(m=p,s!==0&&s--),a=typeof m=="object"&&m!==null||typeof m=="function"?new J9(m):m}return f.s=w3,f.v=m,m}return l.clearCache=()=>{n=Dp(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function Ele(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...a)=>{let s=0,l=0,u,d={},f=a.pop();typeof f=="object"&&(d=f,f=a.pop()),ble(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const m={...n,...d},{memoize:p,memoizeOptions:g=[],argsMemoize:y=eL,argsMemoizeOptions:w=[]}=m,b=b3(g),N=b3(w),k=jle(a),C=p(function(){return s++,f.apply(null,arguments)},...b),A=y(function(){l++;const _=Nle(k,arguments);return u=C.apply(null,_),u},...N);return Object.assign(A,{resultFunc:f,memoizedResultFunc:C,dependencies:k,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>u,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:p,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var ie=Ele(eL);function Tle(e,t=1){const n=[],r=Math.floor(t),a=(s,l)=>{for(let u=0;u<s.length;u++){const d=s[u];Array.isArray(d)&&l<r?a(d,l+1):n.push(d)}};return a(e,0),n}function u2(e,t,n){return G9(n)&&(typeof t=="number"&&Z9(n)&&X9(t)&&t<n.length||typeof t=="string"&&t in n)?Hf(n[t],e):!1}function j3(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}
36const _le=(e,t,n)=>{if(e!==t){const r=j3(e),a=j3(t);if(r===a&&r===0){if(e<t)return n==="desc"?1:-1;if(e>t)return n==="desc"?-1:1}return n==="desc"?a-r:r-a}return 0};function tL(e){return typeof e=="symbol"||e instanceof Symbol}const Ole=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ple=/^\w*$/;function Mle(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||tL(e)?!0:typeof e=="string"&&(Ple.test(e)||!Ole.test(e))||t!=null}function Rle(e,t,n,r){if(e==null)return[];n=n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(u=>String(u));const a=(u,d)=>{let f=u;for(let m=0;m<d.length&&f!=null;++m)f=f[d[m]];return f},s=(u,d)=>d==null||u==null?d:typeof u=="object"&&"key"in u?Object.hasOwn(d,u.key)?d[u.key]:a(d,u.path):typeof u=="function"?u(d):Array.isArray(u)?a(d,u):typeof d=="object"?d[u]:d,l=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||Mle(u)?u:{key:u,path:_N(u)}));return e.map(u=>({original:u,criteria:l.map(d=>s(d,u))})).slice().sort((u,d)=>{for(let f=0;f<l.length;f++){const m=_le(u.criteria[f],d.criteria[f],n[f]);if(m!==0)return m}return 0}).map(u=>u.original)}function g0(e,...t){const n=t.length;return n>1&&u2(e,t[0],t[1])?t=[]:n>2&&u2(t[0],t[1],t[2])&&(t=[t[0]]),Rle(e,Tle(t),["asc"])}var nL=e=>e.legend.settings,Dle=e=>e.legend.size,Ile=e=>e.legend.payload;ie([Ile,nL],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?g0(r,n):r});function Lle(e,t){return Ule(e)||Fle(e,t)||Ble(e,t)||$le()}function $le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 37In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ble(e,t){if(e){if(typeof e=="string")return N3(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N3(e,t):void 0}}function N3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Ule(e){if(Array.isArray(e))return e}var Ip=1;function S3(e,t){return Math.abs(e.height-t.height)>Ip||Math.abs(e.left-t.left)>Ip||Math.abs(e.top-t.top)>Ip||Math.abs(e.width-t.width)>Ip}function k3(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function zle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=v.useState({height:0,left:0,top:0,width:0}),n=Lle(t,2),r=n[0],a=n[1],s=v.useRef(null),l=v.useRef(r);l.current=r;var u=v.useCallback(d=>{if(s.current!=null&&(s.current.disconnect(),s.current=null),d!=null){var f=k3(d);if(S3(f,l.current)&&a(f),typeof ResizeObserver<"u"){var m=new ResizeObserver(()=>{var p=k3(d);S3(p,l.current)&&a(p)});m.observe(d),s.current=m}}},[...e]);return v.useEffect(()=>()=>{var d;(d=s.current)===null||d===void 0||d.disconnect()},[]),[r,u]}function Gn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vle=typeof Symbol=="function"&&Symbol.observable||"@@observable",A3=Vle,g1=()=>Math.random().toString(36).substring(7).split("").join("."),Wle={INIT:`@@redux/INIT${g1()}`,REPLACE:`@@redux/REPLACE${g1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${g1()}`},Zx=Wle;function BN(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function rL(e,t,n){if(typeof e!="function")throw new Error(Gn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Gn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Gn(1));return n(rL)(e,t)}let r=e,a=t,s=new Map,l=s,u=0,d=!1;
37function f(){l===s&&(l=new Map,s.forEach((N,k)=>{l.set(k,N)}))}function m(){if(d)throw new Error(Gn(3));return a}function p(N){if(typeof N!="function")throw new Error(Gn(4));if(d)throw new Error(Gn(5));let k=!0;f();const C=u++;return l.set(C,N),function(){if(k){if(d)throw new Error(Gn(6));k=!1,f(),l.delete(C),s=null}}}function g(N){if(!BN(N))throw new Error(Gn(7));if(typeof N.type>"u")throw new Error(Gn(8));if(typeof N.type!="string")throw new Error(Gn(17));if(d)throw new Error(Gn(9));try{d=!0,a=r(a,N)}finally{d=!1}return(s=l).forEach(C=>{C()}),N}function y(N){if(typeof N!="function")throw new Error(Gn(10));r=N,g({type:Zx.REPLACE})}function w(){const N=p;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(Gn(11));function C(){const E=k;E.next&&E.next(m())}return C(),{unsubscribe:N(C)}},[A3](){return this}}}return g({type:Zx.INIT}),{dispatch:g,subscribe:p,getState:m,replaceReducer:y,[A3]:w}}function qle(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Zx.INIT})>"u")throw new Error(Gn(12));if(typeof n(void 0,{type:Zx.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Gn(13))})}function iL(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const l=t[s];typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let a;try{qle(n)}catch(s){a=s}return function(l={},u){if(a)throw a;let d=!1;const f={};for(let m=0;m<r.length;m++){const p=r[m],g=n[p],y=l[p],w=g(y,u);if(typeof w>"u")throw u&&u.type,new Error(Gn(14));f[p]=w,d=d||w!==y}return d=d||r.length!==Object.keys(l).length,d?f:l}}function Jx(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Hle(...e){return t=>(n,r)=>{const a=t(n,r);let s=()=>{throw new Error(Gn(15))};const l={getState:a.getState,dispatch:(d,...f)=>s(d,...f)},u=e.map(d=>d(l));return s=Jx(...u)(a.dispatch),{...a,dispatch:s}}}function aL(e){return BN(e)&&"type"in e&&typeof e.type=="string"}var sL=Symbol.for("immer-nothing"),C3=Symbol.for("immer-draftable"),cr=Symbol.for("immer-state");function Bi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ti=Object,ku=ti.getPrototypeOf,eg="constructor",y0="prototype",d2="configurable",tg="enumerable",wx="writable",uh="value",gs=e=>!!e&&!!e[cr];function Ai(e){return e?oL(e)||b0(e)||!!e[C3]||!!e[eg]?.[C3]||w0(e)||j0(e):!1}var Gle=ti[y0][eg].toString(),E3=new WeakMap;function oL(e){if(!e||!FN(e))return!1;const t=ku(e);if(t===null||t===ti[y0])return!0;const n=ti.hasOwnProperty.call(t,eg)&&t[eg];if(n===Object)return!0;if(!su(n))return!1;let r=E3.get(n);return r===void 0&&(r=Function.toString.call(n),E3.set(n,r)),r===Gle}function v0(e,t,n=!0){Fh(e)===0?(n?Reflect.ownKeys(e):ti.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Fh(e){const t=e[cr];return t?t.type_:b0(e)?1:w0(e)?2:j0(e)?3:0}var y1=(e,t,n=Fh(e))=>n===2?e.has(t):ti[y0].hasOwnProperty.call(e,t),f2=(e,t,n=Fh(e))=>n===2?e.get(t):e[t],ng=(e,t,n,r=Fh(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Kle(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var b0=Array.isArray,w0=e=>e instanceof Map,j0=e=>e instanceof Set,FN=e=>typeof e=="object",su=e=>typeof e=="function",v1=e=>typeof e=="boolean";function Yle(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ja=e=>e.copy_||e.base_,UN=e=>e.modified_?e.copy_:e.base_;function h2(e,t){if(w0(e))return new Map(e);if(j0(e))return new Set(e);if(b0(e))return Array[y0].slice.call(e);const n=oL(e);if(t===!0||t==="class_only"&&!n){const r=ti.getOwnPropertyDescriptors(e);delete r[cr];let a=Reflect.ownKeys(r);for(let s=0;s<a.length;s++){const l=a[s],u=r[l];u[wx]===!1&&(u[wx]=!0,u[d2]=!0),(u.get||u.set)&&(r[l]={[d2]:!0,[wx]:!0,[tg]:u[tg],[uh]:e[l]})}return ti.create(ku(e),r)}else{const r=ku(e);if(r!==null&&n)return{...e};const a=ti.create(r);return ti.assign(a,e)}}function zN(e,t=!1){return N0(e)||gs(e)||!Ai(e)||(Fh(e)>1&&ti.defineProperties(e,{set:Lp,add:Lp,clear:Lp,delete:Lp}),ti.freeze(e),t&&v0(e,(n,r)=>{zN(r,!0)},!1)),e}function Qle(){Bi(2)}var Lp={[uh]:Qle};function N0(e){return e===null||!FN(e)?!0:ti.isFrozen(e)}var rg="MapSet",m2="Patches",T3="ArrayMethods",lL={};function Rl(e){const t=lL[e];return t||Bi(0,e),t}var _3=e=>!!lL[e],dh,cL=()=>dh,Xle=(e,t)=>
37({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_3(rg)?Rl(rg):void 0,arrayMethodsPlugin_:_3(T3)?Rl(T3):void 0});function O3(e,t){t&&(e.patchPlugin_=Rl(m2),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function p2(e){x2(e),e.drafts_.forEach(Zle),e.drafts_=null}function x2(e){e===dh&&(dh=e.parent_)}var P3=e=>dh=Xle(dh,e);function Zle(e){const t=e[cr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function M3(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[cr].modified_&&(p2(t),Bi(4)),Ai(e)&&(e=R3(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[cr].base_,e,t)}else e=R3(t,n);return Jle(t,e,!0),p2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==sL?e:void 0}function R3(e,t){if(N0(t))return t;const n=t[cr];if(!n)return ig(t,e.handledSet_,e);if(!S0(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);fL(n,e)}return n.copy_}function Jle(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zN(t,n)}function uL(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var S0=(e,t)=>e.scope_===t,ece=[];function dL(e,t,n,r){const a=Ja(e),s=e.type_;if(r!==void 0&&f2(a,r,s)===t){ng(a,r,n,s);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;v0(a,(d,f)=>{if(gs(f)){const m=u.get(f)||[];m.push(d),u.set(f,m)}})}const l=e.draftLocations_.get(t)??ece;for(const u of l)ng(a,u,n,s)}function tce(e,t,n){e.callbacks_.push(function(a){const s=t;if(!s||!S0(s,a))return;a.mapSetPlugin_?.fixSetContents(s);const l=UN(s);dL(e,s.draft_??s,l,n),fL(s,a)})}function fL(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const a=r.getPath(e);a&&r.generatePatches_(e,a,t)}uL(e)}}function nce(e,t,n){const{scope_:r}=e;if(gs(n)){const a=n[cr];S0(a,r)&&a.callbacks_.push(function(){jx(e);const l=UN(a);dL(e,n,l,t)})}else Ai(n)&&e.callbacks_.push(function(){const s=Ja(e);e.type_===3?s.has(n)&&ig(n,r.handledSet_,r):f2(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ig(f2(e.copy_,t,e.type_),r.handledSet_,r)})}function ig(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||gs(e)||t.has(e)||!Ai(e)||N0(e)||(t.add(e),v0(e,(r,a)=>{if(gs(a)){const s=a[cr];if(S0(s,n)){const l=UN(s);ng(e,r,l,e.type_),uL(s)}}else Ai(a)&&ig(a,t,n)})),e}function rce(e,t){const n=b0(e),r={type_:n?1:0,scope_:t?t.scope_:cL(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,s=ag;n&&(a=[r],s=fh);const{revoke:l,proxy:u}=Proxy.revocable(a,s);return r.draft_=u,r.revoke_=l,[u,r]}var ag={get(e,t){if(t===cr)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=Ja(e);if(!y1(a,t,e.type_))return ace(e,a,t);const s=a[t];if(e.finalized_||!Ai(s)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Yle(t))return s;if(s===b1(e.base_,t)||ice(e,t,s)){jx(e);const l=e.type_===1?+t:t,u=y2(e.scope_,s,e,l);return e.copy_[l]=u}return s},has(e,t){return t in Ja(e)},ownKeys(e){return Reflect.ownKeys(Ja(e))},set(e,t,n){const r=hL(Ja(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=b1(Ja(e),t),s=a?.[cr];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Kle(n,a)&&(n!==void 0||y1(e.base_,t,e.type_)))return!0;jx(e),g2(e)}return e.copy_[t]===n&&(n!==void 0||y1(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),nce(e,t,n)),!0},deleteProperty(e,t){return jx(e),b1(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),g2(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ja(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[wx]:!0,[d2]:e.type_!==1||t!=="length",[tg]:r[tg],[uh]:n[t]}},defineProperty(){Bi(11)},getPrototypeOf(e){return ku(e.base_)},setPrototypeOf(){Bi(12)}},fh={};for(let e in ag){let t=ag[e];fh[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}fh.deleteProperty=function(e,t){return fh.set.call(this,e,t,void 0)};fh.set=function(e,t,n){return ag.set.call(this,e[0],t,n,e[0])};function b1(e,t){const n=e[cr];return(n?Ja(n):e)[t]}function ice(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Ai(n)||n[cr]?!1:e.baseRefs_.has(n)}function ace(e,t,n){const r=hL(t,n);
37return r?uh in r?r[uh]:r.get?.call(e.draft_):void 0}function hL(e,t){if(!(t in e))return;let n=ku(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ku(n)}}function g2(e){e.modified_||(e.modified_=!0,e.parent_&&g2(e.parent_))}function jx(e){e.copy_||(e.assigned_=new Map,e.copy_=h2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sce=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(su(t)&&!su(n)){const s=n;n=t;const l=this;return function(d=s,...f){return l.produce(d,m=>n.call(this,m,...f))}}su(n)||Bi(6),r!==void 0&&!su(r)&&Bi(7);let a;if(Ai(t)){const s=P3(this),l=y2(s,t,void 0);let u=!0;try{a=n(l),u=!1}finally{u?p2(s):x2(s)}return O3(s,r),M3(a,s)}else if(!t||!FN(t)){if(a=n(t),a===void 0&&(a=t),a===sL&&(a=void 0),this.autoFreeze_&&zN(a,!0),r){const s=[],l=[];Rl(m2).generateReplacementPatches_(t,a,{patches_:s,inversePatches_:l}),r(s,l)}return a}else Bi(1,t)},this.produceWithPatches=(t,n)=>{if(su(t))return(l,...u)=>this.produceWithPatches(l,d=>t(d,...u));let r,a;return[this.produce(t,n,(l,u)=>{r=l,a=u}),r,a]},v1(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),v1(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),v1(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ai(e)||Bi(8),gs(e)&&(e=ji(e));const t=P3(this),n=y2(t,e,void 0);return n[cr].isManual_=!0,x2(t),n}finishDraft(e,t){const n=e&&e[cr];(!n||!n.isManual_)&&Bi(9);const{scope_:r}=n;return O3(r,t),M3(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=Rl(m2).applyPatches_;return gs(e)?r(e,t):this.produce(e,a=>r(a,t))}};function y2(e,t,n,r){const[a,s]=w0(t)?Rl(rg).proxyMap_(t,n):j0(t)?Rl(rg).proxySet_(t,n):rce(t,n);return(n?.scope_??cL()).drafts_.push(a),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?tce(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:f}=d;s.modified_&&f&&f.generatePatches_(s,[],d)}),a}function ji(e){return gs(e)||Bi(10,e),mL(e)}function mL(e){if(!Ai(e)||N0(e))return e;const t=e[cr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=h2(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=h2(e,!0);return v0(n,(a,s)=>{ng(n,a,mL(s))},r),t&&(t.finalized_=!1),n}var oce=new sce,pL=oce.produce,xt=e=>e;function xL(e){return({dispatch:n,getState:r})=>a=>s=>typeof s=="function"?s(n,r,e):a(s)}var lce=xL(),cce=xL,uce=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jx:Jx.apply(null,arguments)};function ai(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(ni(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>aL(r)&&r.type===e,n}var gL=class Of extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Of.prototype)}static get[Symbol.species](){return Of}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Of(...t[0].concat(this)):new Of(...t.concat(this))}};function D3(e){return Ai(e)?pL(e,()=>{}):e}function $p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function dce(e){return typeof e=="boolean"}var fce=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:s=!0}=t??{};let l=new gL;return n&&(dce(n)?l.push(lce):l.push(cce(n.extraArgument))),l},yL="RTK_autoBatch",It=()=>e=>({payload:e,meta:{[yL]:!0}}),I3=e=>t=>{setTimeout(t,e)},hce=(e,t)=>n=>{let r=!1;const a=()=>{r||(r=!0,cancelAnimationFrame(s),clearTimeout(l),n())},s=e(a),l=setTimeout(a,t)},vL=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,s=!1,l=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?hce(window.requestAnimationFrame,100):I3(10):e.type==="callback"?e.queueNotification:I3(e.timeout),f=()=>{l=!1,s&&(s=!1,u.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>a&&m(),g=r.subscribe(p);return u.add(m),()=>{g(),u.delete(m)}},dispatch(m){try{return a=!m?.meta?.[yL],s=!a,s&&(l||(l=!0,d(f))),r.dispatch(m)}finally{a=!0}}})},mce=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new gL(e);return r&&a.push(vL(typeof r=="object"?r:void 0)),a};function pce(e){const t=fce(),{reducer:n=void 0,middleware:r,devTools:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(BN(n))u=iL(n);else throw new Error(ni(1));let d;typeof r=="function"?d=r(t):d=t();let f=Jx;a&&(f=uce({trace:!1,...typeof a=="object"&&a}));const m=Hle(...d),p=mce(m);let g=typeof l=="function"?l(p):p();const y=f(...g);return rL(u,s,y)}function bL(e){const t={},n=[];let r;const a={addCase(s,l){const u=typeof s=="string"?s:s.type;if(!u)throw new Error(ni(28));if(u in t)throw new Error(ni(29));return t[u]=l,a},addAsyncThunk(s,l){return l.pending&&(t[s.pending.type]=l.pending),l.rejected&&(t[s.rejected.type]=l.rejected),l.fulfilled&&(t[s.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:s.settled,reducer:l.settled}),a},addMatcher(s,l){return n.push({matcher:s,reducer:l}),a},addDefaultCase(s){return r=s,a}};return e(a),[t,n,r]}function xce(e){return typeof e=="function"}function gce(e,t){let[n,r,a]=bL(t),s;if(xce(e))s=()=>D3(e());else{const u=D3(e);s=()=>u}function l(u=s(),d){let f=[n[d.type],...r.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return f.filter(m=>!!m).length===0&&(f=[a]),f.reduce((m,p)=>
37{if(p)if(gs(m)){const y=p(m,d);return y===void 0?m:y}else{if(Ai(m))return pL(m,g=>p(g,d));{const g=p(m,d);if(g===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return m},u)}return l.getInitialState=s,l}var yce="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",vce=(e=21)=>{let t="",n=e;for(;n--;)t+=yce[Math.random()*64|0];return t},bce=Symbol.for("rtk-slice-createasyncthunk");function wce(e,t){return`${e}/${t}`}function jce({creators:e}={}){const t=e?.asyncThunk?.[bce];return function(r){const{name:a,reducerPath:s=a}=r;if(!a)throw new Error(ni(11));const l=(typeof r.reducers=="function"?r.reducers(Sce()):r.reducers)||{},u=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(A,E){const _=typeof A=="string"?A:A.type;if(!_)throw new Error(ni(12));if(_ in d.sliceCaseReducersByType)throw new Error(ni(13));return d.sliceCaseReducersByType[_]=E,f},addMatcher(A,E){return d.sliceMatchers.push({matcher:A,reducer:E}
37),f},exposeAction(A,E){return d.actionCreators[A]=E,f},exposeCaseReducer(A,E){return d.sliceCaseReducersByName[A]=E,f}};u.forEach(A=>{const E=l[A],_={reducerName:A,type:wce(a,A),createNotation:typeof r.reducers=="function"};Ace(E)?Ece(_,E,f,t):kce(_,E,f)});function m(){const[A={},E=[],_=void 0]=typeof r.extraReducers=="function"?bL(r.extraReducers):[r.extraReducers],T={...A,...d.sliceCaseReducersByType};return gce(r.initialState,M=>{for(let P in T)M.addCase(P,T[P]);for(let P of d.sliceMatchers)M.addMatcher(P.matcher,P.reducer);for(let P of E)M.addMatcher(P.matcher,P.reducer);_&&M.addDefaultCase(_)})}const p=A=>A,g=new Map,y=new WeakMap;let w;function b(A,E){return w||(w=m()),w(A,E)}function N(){return w||(w=m()),w.getInitialState()}function k(A,E=!1){function _(M){let P=M[A];return typeof P>"u"&&E&&(P=$p(y,_,N)),P}function T(M=p){const P=$p(g,E,()=>new WeakMap);return $p(P,M,()=>{const D={};for(const[U,L]of Object.entries(r.selectors??{}))D[U]=Nce(L,M,()=>$p(y,M,N),E);return D})}return{reducerPath:A,getSelectors:T,get selectors(){return T(_)},selectSlice:_}}const C={name:a,reducer:b,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:N,...k(s),injectInto(A,{reducerPath:E,..._}={}){const T=E??s;return A.inject({reducerPath:T,reducer:b},_),{...C,...k(T,!0)}}};return C}}function Nce(e,t,n,r){function a(s,...l){let u=t(s);return typeof u>"u"&&r&&(u=n()),e(u,...l)}return a.unwrapped=e,a}var dr=jce();function Sce(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function kce({type:e,reducerName:t,createNotation:n},r,a){let s,l;if("reducer"in r){if(n&&!Cce(r))throw new Error(ni(17));s=r.reducer,l=r.prepare}else s=r;a.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?ai(e,l):ai(e))}function Ace(e){return e._reducerDefinitionType==="asyncThunk"}function Cce(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ece({type:e,reducerName:t},n,r,a){if(!a)throw new Error(ni(18));const{payloadCreator:s,fulfilled:l,pending:u,rejected:d,settled:f,options:m}=n,p=a(e,s,m);r.exposeAction(t,p),l&&r.addCase(p.fulfilled,l),u&&r.addCase(p.pending,u),d&&r.addCase(p.rejected,d),f&&r.addMatcher(p.settled,f),r.exposeCaseReducer(t,{fulfilled:l||Bp,pending:u||Bp,rejected:d||Bp,settled:f||Bp})}function Bp(){}var Tce="task",wL="listener",jL="completed",VN="cancelled",_ce=`task-${VN}`,Oce=`task-${jL}`,v2=`${wL}-${VN}`,Pce=`${wL}-${jL}`,k0=class{constructor(e){this.code=e,this.message=`${Tce} ${VN} (reason: ${e})`}code;name="TaskAbortError";message},WN=(e,t)=>{if(typeof e!="function")throw new TypeError(ni(32))},sg=()=>{},NL=(e,t=sg)=>(e.catch(t),e),SL=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),kl=e=>{if(e.aborted)throw new k0(e.reason)};function kL(e,t){let n=sg;return new Promise((r,a)=>{const s=()=>a(new k0(e.reason));if(e.aborted){s();return}n=SL(e,s),t.finally(()=>n()).then(r,a)}).finally(()=>{n=sg})}var Mce=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof k0?"cancelled":"rejected",error:n}}finally{t?.()}},og=e=>t=>NL(kL(e,t).then(n=>(kl(e),n))),AL=e=>{const t=og(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:vu}=Object,L3={},A0="listenerMiddleware",Rce=(e,t)=>{const n=r=>SL(e,()=>r.abort(e.reason));return(r,a)=>{WN(r);const s=new AbortController;n(s);const l=Mce(async()=>{kl(e),kl(s.signal);const u=await r({pause:og(s.signal),delay:AL(s.signal),signal:s.signal});return kl(s.signal),u},()=>s.abort(Oce));return a?.autoJoin&&t.push(l.catch(sg)),{result:og(e)(l),cancel(){s.abort(_ce)}}}},Dce=(e,t)=>{const n=async(r,a)=>{kl(t);let s=()=>{};const u=[new Promise((d,f)=>{let m=e({predicate:r,effect:(p,g)=>{g.unsubscribe(),d([p,g.getState(),g.getOriginalState()])}});s=()=>{m(),f()}})];a!=null&&u.push(new Promise(d=>setTimeout(d,a,null)));try{const d=await kL(t,Promise.race(u));return kl(t),d}finally{s()}};return((r,a)=>NL(n(r,a)))},CL=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:s}=e;if(t)a=ai(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(ni(21));return WN(s),{predicate:a,type:t,effect:s}},EL=vu(e=>{const{type:t,predicate:n,effect:r}=CL(e);return{id:vce(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ni(22))}}},{withTypes:()=>EL}),$3=(e,t)=>
37{const{type:n,effect:r,predicate:a}=CL(t);return Array.from(e.values()).find(s=>(typeof n=="string"?s.type===n:s.predicate===a)&&s.effect===r)},b2=e=>{e.pending.forEach(t=>{t.abort(v2)})},Ice=(e,t)=>()=>{for(const n of t.keys())b2(n);e.clear()},B3=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},TL=vu(ai(`${A0}/add`),{withTypes:()=>TL}),Lce=ai(`${A0}/removeAll`),_L=vu(ai(`${A0}/remove`),{withTypes:()=>_L}),$ce=(...e)=>{console.error(`${A0}/error`,...e)},Uh=(e={})=>{const t=new Map,n=new Map,r=y=>{const w=n.get(y)??0;n.set(y,w+1)},a=y=>{const w=n.get(y)??1;w===1?n.delete(y):n.set(y,w-1)},{extra:s,onError:l=$ce}=e;WN(l);const u=y=>(y.unsubscribe=()=>t.delete(y.id),t.set(y.id,y),w=>{y.unsubscribe(),w?.cancelActive&&b2(y)}),d=(y=>{const w=$3(t,y)??EL(y);return u(w)});vu(d,{withTypes:()=>d});const f=y=>{const w=$3(t,y);return w&&(w.unsubscribe(),y.cancelActive&&b2(w)),!!w};vu(f,{withTypes:()=>f});const m=async(y,w,b,N)=>{const k=new AbortController,C=Dce(d,k.signal),A=[];try{y.pending.add(k),r(y),await Promise.resolve(y.effect(w,vu({},b,{getOriginalState:N,condition:(E,_)=>C(E,_).then(Boolean),take:C,delay:AL(k.signal),pause:og(k.signal),extra:s,signal:k.signal,fork:Rce(k.signal,A),unsubscribe:y.unsubscribe,subscribe:()=>{t.set(y.id,y)},cancelActiveListeners:()=>{y.pending.forEach((E,_,T)=>{E!==k&&(E.abort(v2),T.delete(E))})},cancel:()=>{k.abort(v2),y.pending.delete(k)},throwIfCancelled:()=>{kl(k.signal)}})))}catch(E){E instanceof k0||B3(l,E,{raisedBy:"effect"})}finally{await Promise.all(A),k.abort(Pce),a(y),y.pending.delete(k)}},p=Ice(t,n);return{middleware:y=>w=>b=>{if(!aL(b))return w(b);if(TL.match(b))return d(b.payload);if(Lce.match(b)){p();return}if(_L.match(b))return f(b.payload);let N=y.getState();const k=()=>{if(N===L3)throw new Error(ni(23));return N};let C;try{if(C=w(b),t.size>0){const A=y.getState(),E=Array.from(t.values());for(const _ of E){let T=!1;try{T=_.predicate(b,A,N)}catch(M){T=!1,B3(l,M,{raisedBy:"predicate"})}T&&m(_,b,y,k)}}}finally{N=L3}return C},startListening:d,stopListening:f,clearListeners:p}};function ni(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Bce={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},OL=dr({name:"chartLayout",initialState:Bce,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,a,s;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(a=t.payload.bottom)!==null&&a!==void 0?a:0,e.margin.left=(s=t.payload.left)!==null&&s!==void 0?s:0},setScale(e,t){e.scale=t.payload}}}),C0=OL.actions,Fce=C0.setMargin,Uce=C0.setLayout,zce=C0.setChartSize,Vce=C0.setScale,Wce=OL.reducer;function PL(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function ht(e){return Number.isFinite(e)}function Ea(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function F3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F3(Object(n),!0).forEach(function(r){qce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qce(e,t,n){return(t=Hce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hce(e){var t=Gce(e,"string");return typeof t=="symbol"?t:t+""}function Gce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bn(e,t,n){return Tn(e)||Tn(t)?n:Ca(t)?xs(e,t,n):typeof t=="function"?t(e):n}var Kce=(e,t,n)=>{if(t&&n){var r=n.width,a=n.height,s=t.align,l=t.verticalAlign,u=t.layout,d=t.position,f=t.offset,m=f===void 0?0:f;if(d!=null){if(hoe(d)){if(d==="top"&&Le(e.top))return Mr(Mr({},e),{},{top:e.top+(a||0)+m});if(d==="bottom"&&Le(e.bottom))return Mr(Mr({},e),{},{bottom:e.bottom+(a||0)+m});if(d==="left"&&Le(e.left))return Mr(Mr({},e),{},{left:e.left+(r||0)+m});if(d==="right"&&Le(e.right))return Mr(Mr({},e),{},{right:e.right+(r||0)+m})}return e}if((u==="vertical"||u==="horizontal"&&l==="middle")&&s!=="center"&&Le(e[s]))return Mr(Mr({},e),{},{[s]:e[s]+(r||0)});if((u==="horizontal"||u==="vertical"&&s==="center")&&l!=="middle"&&Le(e[l]))return Mr(Mr({},e),{},{[l]:e[l]+(a||0)})}return e},Oo=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",ML=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var a,s,l=e.map(u=>
37(u.coordinate===t&&(a=!0),u.coordinate===n&&(s=!0),u.coordinate));return a||l.push(t),s||l.push(n),l},RL=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,a=e.type,s=e.range,l=e.scale,u=e.realScaleType,d=e.isCategorical,f=e.categoricalDomain,m=e.tickCount,p=e.ticks,g=e.niceTicks,y=e.axisType;if(!l)return null;var w=u==="scaleBand"&&l.bandwidth?l.bandwidth()/2:2,b=a==="category"&&l.bandwidth?l.bandwidth()/w:0;if(b=y==="angleAxis"&&s&&s.length>=2?Ir(s[0]-s[1])*2*b:b,p||g){var N=(p||g||[]).map((k,C)=>{var A=r?r.indexOf(k):k,E=l.map(A);return ht(E)?{coordinate:E+b,value:k,offset:b,index:C}:null}).filter(Lr);return N}return d&&f?f.map((k,C)=>{var A=l.map(k);return ht(A)?{coordinate:A+b,value:k,index:C,offset:b}:null}).filter(Lr):l.ticks&&m!=null?l.ticks(m).map((k,C)=>{var A=l.map(k);return ht(A)?{coordinate:A+b,value:k,index:C,offset:b}:null}).filter(Lr):l.domain().map((k,C)=>{var A=l.map(k);return ht(A)?{coordinate:A+b,value:r?r[k]:k,index:C,offset:b}:null}).filter(Lr)},Yce=(e,t)=>{if(!t||t.length!==2||!Le(t[0])||!Le(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!Le(e[0])||e[0]<n)&&(a[0]=n),(!Le(e[1])||e[1]>r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]<n&&(a[1]=n),a},Qce=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var a=0;a<r;++a)for(var s=0,l=0,u=0;u<n;++u){var d=e[u],f=d?.[a];if(f!=null){var m=f[1],p=f[0],g=Aa(m)?p:m;g>=0?(f[0]=s,s+=g,f[1]=s):(f[0]=l,l+=g,f[1]=l)}}}},Xce=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var a=0;a<r;++a)for(var s=0,l=0;l<n;++l){var u=e[l],d=u?.[a];if(d!=null){var f=Aa(d[1])?d[0]:d[1];f>=0?(d[0]=s,s+=f,d[1]=s):(d[0]=0,d[1]=0)}}}},Zce={sign:Qce,expand:Moe,none:Ml,silhouette:Roe,wiggle:Doe,positive:Xce},Jce=(e,t,n)=>{var r,a=(r=Zce[n])!==null&&r!==void 0?r:Ml,s=Poe().keys(t).value((u,d)=>Number(Bn(u,d,0))).order(a2).offset(a),l=s(e);return l.forEach((u,d)=>{u.forEach((f,m)=>{var p=Bn(e[m],t[d],0);Array.isArray(p)&&p.length===2&&Le(p[0])&&Le(p[1])&&(f[0]=p[0],f[1]=p[1])})}),l};function eue(e){return e==null?void 0:String(e)}var U3=e=>{var t=e.axis,n=e.ticks,r=e.offset,a=e.bandSize,s=e.entry,l=e.index;if(t.type==="category")return n[l]?n[l].coordinate+r:null;var u=Bn(s,t.dataKey,t.scale.domain()[l]);if(Tn(u))return null;var d=t.scale.map(u);return Le(d)?d-a/2+r:null},tue=e=>{var t=e.numericAxis,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r<=0&&a>=0?0:a<0?a:r}return n[0]},nue=e=>{var t=e.flat(2).filter(Le);return[Math.min(...t),Math.max(...t)]},rue=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],iue=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return rue(Object.keys(e).reduce((r,a)=>{var s=e[a];if(!s)return r;var l=s.stackedData,u=l.reduce((d,f)=>{var m=PL(f,t,n),p=nue(m);return!ht(p[0])||!ht(p[1])?d:[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},z3=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,V3=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lg=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var a=g0(t,b=>b.coordinate),s=[],l=0,u=1,d=a.length;u<d;u++){var f,m,p=(((f=a[u])===null||f===void 0?void 0:f.coordinate)||0)-(((m=a[u-1])===null||m===void 0?void 0:m.coordinate)||0);s.push(p),l=Math.max(p,l)}var g=l*1e-4,y=1/0;for(var w of s)w>g&&(y=Math.min(w,y));return y===1/0?0:y}return n?void 0:0};function W3(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,a=e.value,s=e.name;return Mr(Mr({},t),{},{dataKey:n,payload:r,value:a,name:s})}function DL(e,t){if(e!=null)return String(e);if(typeof t=="string")return t}var aue=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},sue=(e,t)=>t==="centric"?e.angle:e.radius,ks=e=>e.layout.width,As=e=>e.layout.height,oue=e=>e.layout.scale,IL=e=>e.layout.margin,E0=ie(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),T0=ie(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),lue="data-recharts-item-index",cue="data-recharts-item-id",zh=60,qN=30;function q3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
37t%2?q3(Object(n),!0).forEach(function(r){uue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uue(e,t,n){return(t=due(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function due(e){var t=fue(e,"string");return typeof t=="symbol"?t:t+""}function fue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hue=e=>e.brush.height;function mue(e){var t=T0(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:zh;return n+a}return n},0)}function pue(e){var t=T0(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:zh;return n+a}return n},0)}function xue(e){var t=E0(e);return t.reduce((n,r)=>{if(r.orientation==="top"&&!r.mirror&&!r.hide){var a=typeof r.height=="number"?r.height:qN;return n+a}return n},0)}function gue(e){var t=E0(e);return t.reduce((n,r)=>{if(r.orientation==="bottom"&&!r.mirror&&!r.hide){var a=typeof r.height=="number"?r.height:qN;return n+a}return n},0)}var Fn=ie([ks,As,IL,hue,mue,pue,xue,gue,nL,Dle],(e,t,n,r,a,s,l,u,d,f)=>{var m={left:(n.left||0)+a,right:(n.right||0)+s},p={top:(n.top||0)+l,bottom:(n.bottom||0)+u},g=Fp(Fp({},p),m),y=g.bottom;g.bottom+=r,g=Kce(g,d,f);var w=e-g.left-g.right,b=t-g.top-g.bottom;return Fp(Fp({brushBottom:y},g),{},{width:Math.max(w,0),height:Math.max(b,0)})}),yue=ie(Fn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),HN=ie(ks,As,(e,t)=>({x:0,y:0,width:e,height:t})),vue=v.createContext(null),zr=()=>v.useContext(vue)!=null,_0=e=>e.brush,O0=ie([_0,Fn,IL],(e,t,n)=>({height:e.height,x:Le(e.x)?e.x:t.left,y:Le(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Le(e.width)?e.width:t.width}));function bue(e,t,{signal:n,edges:r}={}){let a,s=null;const l=r!=null&&r.includes("leading"),u=r==null||r.includes("trailing"),d=()=>{s!==null&&(e.apply(a,s),a=void 0,s=null)},f=()=>{u&&d(),y()};let m=null;const p=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,f()},t)},g=()=>{m!==null&&(clearTimeout(m),m=null)},y=()=>{g(),a=void 0,s=null},w=()=>{d()},b=function(...N){if(n?.aborted)return;a=this,s=N;const k=m==null;p(),l&&k&&d()};return b.schedule=p,b.cancel=y,b.flush=w,n?.addEventListener("abort",y,{once:!0}),b}function wue(e,t=0,n={}){typeof n!="object"&&(n={});const{leading:r=!1,trailing:a=!0,maxWait:s}=n,l=Array(2);r&&(l[0]="leading"),a&&(l[1]="trailing");let u,d=null;const f=bue(function(...g){u=e.apply(this,g),d=null},t,{edges:l}),m=function(...g){return s!=null&&(d===null&&(d=Date.now()),Date.now()-d>=s)?(u=e.apply(this,g),d=Date.now(),f.cancel(),f.schedule(),u):(f.apply(this,g),u)},p=()=>(f.flush(),u);return m.cancel=f.cancel,m.flush=p,m}function jue(e,t=0,n={}){const{leading:r=!0,trailing:a=!0}=n;return wue(e,t,{leading:r,maxWait:t,trailing:a})}var cg=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;console.warn(n.replace(/%s/g,()=>a[l++]))}},ma={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},LL=(e,t,n)=>{var r=n.width,a=r===void 0?ma.width:r,s=n.height,l=s===void 0?ma.height:s,u=n.aspect,d=n.maxHeight,f=Pl(
37a)?e:Number(a),m=Pl(l)?t:Number(l);return u&&u>0&&(f?m=f/u:m&&(f=m*u),d&&m!=null&&m>d&&(m=d)),{calculatedWidth:f,calculatedHeight:m}},Nue={width:0,height:0,overflow:"visible"},Sue={width:0,overflowX:"visible"},kue={height:0,overflowY:"visible"},Aue={},Cue=e=>{var t=e.width,n=e.height,r=Pl(t),a=Pl(n);return r&&a?Nue:r?Sue:a?kue:Aue};function Eue(e){var t=e.width,n=e.height,r=e.aspect,a=t,s=n;return a===void 0&&s===void 0?(a=ma.width,s=ma.height):a===void 0?a=r&&r>0?void 0:ma.width:s===void 0&&(s=r&&r>0?void 0:ma.height),{width:a,height:s}}var Tue=["aspect","initialDimension","width","height","minWidth","minHeight","maxHeight","children","debounce","id","className","onResize","style"];function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ug.apply(null,arguments)}function H3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function G3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H3(Object(n),!0).forEach(function(r){_ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ue(e,t,n){return(t=Oue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oue(e){var t=Pue(e,"string");return typeof t=="symbol"?t:t+""}function Pue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mue(e,t){return Lue(e)||Iue(e,t)||Due(e,t)||Rue()}function Rue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 38In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Due(e,t){if(e){if(typeof e=="string")return K3(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K3(e,t):void 0}}function K3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Iue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Lue(e){if(Array.isArray(e))return e}function $ue(e,t){if(e==null)return{};var n,r,a=Bue(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Bue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $L=v.createContext(ma.initialDimension);function Fue(e){return Ea(e.width)&&Ea(e.height)}function BL(e){var t=e.children,n=e.width,r=e.height,a=v.useMemo(()=>({width:n,height:r}),[n,r]);return Fue(a)?v.createElement($L.Provider,{value:a},t):null}var GN=()=>v.useContext($L),Uue=v.forwardRef((e,t)=>{var n=e.aspect,r=e.initialDimension,a=r===void 0?ma.initialDimension:r,s=e.width,l=e.height,u=e.minWidth,d=u===void 0?ma.minWidth:u,f=e.minHeight,m=e.maxHeight,p=e.children,g=e.debounce,y=g===void 0?ma.debounce:g,w=e.id,b=e.className,N=e.onResize,k=e.style,C=k===void 0?{}:k,A=$ue(e,Tue),E=v.useRef(null),_=v.useRef();_.current=N,v.useImperativeHandle(t,()=>E.current);var T=v.useState({containerWidth:a.width,containerHeight:a.height}),M=Mue(T,2),P=M[0],D=M[1],U=v.useCallback((B,K)=>{D(Q=>{var ce=Math.round(B),I=Math.round(K);return Q.containerWidth===ce&&Q.containerHeight===I?Q:{containerWidth:ce,containerHeight:I}})},[]);v.useEffect(()=>{if(E.current==null||typeof ResizeObserver>"u")return Ku;var B=J=>{var fe,ue=J[0];if(ue!=null){var ve=ue.contentRect,Se=ve.width,Ne=ve.height;U(Se,Ne),(fe=_.current)===null||fe===void 0||fe.call(_,Se,Ne)}};y>0&&(B=jue(B,y,{trailing:!0,leading:!1}));var K=new ResizeObserver(B),Q=E.current.getBoundingClientRect(),ce=Q.width,I=Q.height;return U(ce,I),K.observe(E.current),()=>{K.disconnect()}},[U,y]);var L=P.containerWidth,$=P.containerHeight;cg(!n||n>0,"The aspect(%s) must be greater than zero.",n);var G=LL(L,$,{width:s,height:l,aspect:n,maxHeight:m}),H=G.calculatedWidth,V=G.calculatedHeight;return cg(L<0||$<0||H!=null&&H>0||V!=null&&V>0,`The width(%s) and height(%s) of chart should be greater than 0, 39 please check the style of container, or the props width(%s) and height(%s), 40 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 41 height and width.`,H,V,s,l,d,f,n),v.createElement("div",ug({id:w?"".concat(w):void 0,className:Bt("recharts-responsive-container",b),style:G3(G3({},C),{},{width:s,height:l,minWidth:d,minHeight:f,maxHeight:m}),ref:E},A),v.createElement("div",{style:Cue({width:s,height:l})},v.createElement(BL,{width:H,height:V},p)))}),Y3=v.forwardRef((e,t)=>
41{var n=GN();if(Ea(n.width)&&Ea(n.height))return e.children;var r=Eue({width:e.width,height:e.height,aspect:e.aspect}),a=r.width,s=r.height,l=LL(void 0,void 0,{width:a,height:s,aspect:e.aspect,maxHeight:e.maxHeight}),u=l.calculatedWidth,d=l.calculatedHeight;return Le(u)&&Le(d)?v.createElement(BL,{width:u,height:d},e.children):v.createElement(Uue,ug({},e,{width:a,height:s,ref:t}))}),P0=()=>{var e,t=zr(),n=Fe(yue),r=Fe(O0),a=(e=Fe(_0))===null||e===void 0?void 0:e.padding;return!t||!r||!a?n:{width:r.width-a.left-a.right,height:r.height-a.top-a.bottom,x:a.left,y:a.top}},zue={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},FL=()=>{var e;return(e=Fe(Fn))!==null&&e!==void 0?e:zue},UL=()=>Fe(ks),zL=()=>Fe(As),Ot=e=>e.layout.layoutType,Yu=()=>Fe(Ot),VL=()=>{var e=Yu();if(e==="horizontal"||e==="vertical")return e},WL=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},Vue=()=>{var e=Yu();return e!==void 0},Vh=e=>{var t=Wt(),n=zr(),r=e.width,a=e.height,s=GN(),l=r,u=a;return s&&(l=s.width>0?s.width:r,u=s.height>0?s.height:a),v.useEffect(()=>{!n&&Ea(l)&&Ea(u)&&t(zce({width:l,height:u}))},[t,n,l,u]),null},Wue={settings:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemSorter:"value",position:void 0,offset:0},size:{width:0,height:0},payload:[]},qL=dr({name:"legend",initialState:Wue,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter,e.settings.position=t.payload.position,e.settings.offset=t.payload.offset},addLegendPayload:{reducer(e,t){e.payload.push(xt(t.payload))},prepare:It()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=ji(e).payload.indexOf(xt(r));s>-1&&(e.payload[s]=xt(a))},prepare:It()},removeLegendPayload:{reducer(e,t){var n=ji(e).payload.indexOf(xt(t.payload));n>-1&&e.payload.splice(n,1)},prepare:It()}}}),Wh=qL.actions;Wh.setLegendSize;Wh.setLegendSettings;var que=Wh.addLegendPayload,Hue=Wh.replaceLegendPayload,Gue=Wh.removeLegendPayload,Kue=qL.reducer,w1={exports:{}},j1={};var Q3;function Yue(){if(Q3)return j1;Q3=1;var e=Iu();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,s=e.useEffect,l=e.useMemo,u=e.useDebugValue;return j1.useSyncExternalStoreWithSelector=function(d,f,m,p,g){var y=a(null);if(y.current===null){var w={hasValue:!1,value:null};y.current=w}else w=y.current;y=l(function(){function N(_){if(!k){if(k=!0,C=_,_=p(_),g!==void 0&&w.hasValue){var T=w.value;if(g(T,_))return A=T}return A=_}if(T=A,n(C,_))return T;var M=p(_);return g!==void 0&&g(T,M)?(C=_,T):(C=_,A=M)}var k=!1,C,A,E=m===void 0?null:m;return[function(){return N(f())},E===null?void 0:function(){return N(E())}]},[f,m,p,g]);var b=r(d,y[0],y[1]);return s(function(){w.hasValue=!0,w.value=b},[b]),u(b),b},j1}var X3;function Que(){return X3||(X3=1,w1.exports=Yue()),w1.exports}Que();function Xue(e){e()}function Zue(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Xue(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var Z3={notify(){},get:()=>[]};function Jue(e,t){let n,r=Z3,a=0,s=!1;function l(b){m();const N=r.subscribe(b);let k=!1;return()=>{k||(k=!0,N(),p())}}function u(){r.notify()}function d(){w.onStateChange&&w.onStateChange()}function f(){return s}function m(){a++,n||(n=e.subscribe(d),r=Zue())}function p(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=Z3)}function g(){s||(s=!0,m())}function y(){s&&(s=!1,p())}const w={addNestedSub:l,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:f,trySubscribe:g,tryUnsubscribe:y,getListeners:()=>r};return w}var ede=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tde=ede(),nde=()=>typeof navigator<"u"&&navigator.product==="ReactNative",rde=nde(),ide=()=>tde||rde?v.useLayoutEffect:v.useEffect,ade=ide();function J3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function sde(e,t){if(J3(e,t))return!0;
41if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!J3(e[n[a]],t[n[a]]))return!1;return!0}var ode=Symbol.for("react-redux-context"),lde=typeof globalThis<"u"?globalThis:{};function cde(){if(!v.createContext)return{};const e=lde[ode]??=new Map;let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var ude=cde();function dde(e){const{children:t,context:n,serverState:r,store:a}=e,s=v.useMemo(()=>{const d=Jue(a);return{store:a,subscription:d,getServerState:r?()=>r:void 0}},[a,r]),l=v.useMemo(()=>a.getState(),[a]);ade(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==a.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,l]);const u=n||ude;return v.createElement(u.Provider,{value:s},t)}var fde=dde,hde=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function mde(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function M0(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(hde.has(r)){if(e[r]==null&&t[r]==null)continue;if(!sde(e[r],t[r]))return!1}else if(!mde(e[r],t[r]))return!1;return!0}function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(null,arguments)}function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){pde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pde(e,t,n){return(t=xde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xde(e){var t=gde(e,"string");return typeof t=="symbol"?t:t+""}function gde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yde(e,t){return jde(e)||wde(e,t)||bde(e,t)||vde()}function vde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bde(e,t){if(e){if(typeof e=="string")return t_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t_(e,t):void 0}}function t_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function jde(e){if(Array.isArray(e))return e}function Nde(e){return Array.isArray(e)&&Ca(e[0])&&Ca(e[1])?e.join(" ~ "):e}var Wc={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function Sde(e,t){return t==null?e:g0(e,t)}var kde=e=>{var t=e.separator,n=t===void 0?Wc.separator:t,r=e.contentStyle,a=e.itemStyle,s=e.labelStyle,l=s===void 0?Wc.labelStyle:s,u=e.payload,d=e.formatter,f=e.itemSorter,m=e.wrapperClassName,p=e.labelClassName,g=e.label,y=e.labelFormatter,w=e.accessibilityLayer,b=w===void 0?Wc.accessibilityLayer:w,N=()=>
42{if(u&&u.length){var P={padding:0,margin:0},D=Sde(u,f),U=D.map((L,$)=>{if(!L||L.type==="none")return null;var G=L.formatter||d||Nde,H=L.value,V=L.name,B=H,K=V;if(G){var Q=G(H,V,L,$,u);if(Array.isArray(Q)){var ce=yde(Q,2);B=ce[0],K=ce[1]}else if(Q!=null)B=Q;else return null}var I=pf(pf({},Wc.itemStyle),{},{color:L.color||Wc.itemStyle.color},a);return v.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:I},Ca(K)?v.createElement("span",{className:"recharts-tooltip-item-name"},K):null,Ca(K)?v.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,v.createElement("span",{className:"recharts-tooltip-item-value"},B),v.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return v.createElement("ul",{className:"recharts-tooltip-item-list",style:P},U)}return null},k=pf(pf({},Wc.contentStyle),r),C=pf({margin:0},l),A=!Tn(g),E=A?g:"",_=Bt("recharts-default-tooltip",m),T=Bt("recharts-tooltip-label",p);A&&y&&u!==void 0&&u!==null&&(E=y(g,u));var M=b?{role:"status","aria-live":"assertive"}:{};return v.createElement("div",w2({className:_,style:k},M),v.createElement("p",{className:T,style:C},v.isValidElement(E)?E:"".concat(E)),N())},xf="recharts-tooltip-wrapper",Ade={visibility:"hidden"};function Cde(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Bt(xf,{["".concat(xf,"-right")]:Le(n)&&t&&Le(t.x)&&n>=t.x,["".concat(xf,"-left")]:Le(n)&&t&&Le(t.x)&&n<t.x,["".concat(xf,"-bottom")]:Le(r)&&t&&Le(t.y)&&r>=t.y,["".concat(xf,"-top")]:Le(r)&&t&&Le(t.y)&&r<t.y})}function n_(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offset,s=e.position,l=e.reverseDirection,u=e.tooltipDimension,d=e.viewBox,f=e.viewBoxDimension;if(s&&Le(s[r]))return s[r];var m=n[r]-u-(a>0?a:0),p=n[r]+a;if(t[r])return l[r]?m:p;var g=d[r];if(g==null)return 0;if(l[r]){var y=m,w=g;return y<w?Math.max(p,g):Math.max(m,g)}if(f==null)return 0;var b=p+u,N=g+f;return b>N?Math.max(m,g):Math.max(p,g)}function Ede(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Tde(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,a=e.offsetLeft,s=e.position,l=e.reverseDirection,u=e.tooltipBox,d=e.useTranslate3d,f=e.viewBox,m,p,g;return u&&u.height>0&&u.width>0&&n?(p=n_({allowEscapeViewBox:t,coordinate:n,key:"x",offset:a,position:s,reverseDirection:l,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),g=n_({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:s,reverseDirection:l,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),m=Ede({translateX:p,translateY:g,useTranslate3d:d})):m=Ade,{cssProperties:m,cssClasses:Cde({translateX:p,translateY:g,coordinate:n})}}var _de=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),qh={isSsr:_de()};function Ode(e,t){return Dde(e)||Rde(e,t)||Mde(e,t)||Pde()}function Pde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mde(e,t){if(e){if(typeof e=="string")return r_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r_(e,t):void 0}}function r_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Dde(e){if(Array.isArray(e))return e}function HL(){var e=v.useState(()=>qh.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches),t=Ode(e,2),n=t[0],r=t[1];return v.useEffect(()=>{if(window.matchMedia){var a=window.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{r(a.matches)};
43return a.addEventListener("change",s),()=>{a.removeEventListener("change",s)}}},[]),n}function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i_(Object(n),!0).forEach(function(r){Ide(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ide(e,t,n){return(t=Lde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lde(e){var t=$de(e,"string");return typeof t=="symbol"?t:t+""}function $de(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bde(e,t){return Vde(e)||zde(e,t)||Ude(e,t)||Fde()}function Fde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ude(e,t){if(e){if(typeof e=="string")return a_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a_(e,t):void 0}}function a_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Vde(e){if(Array.isArray(e))return e}function Wde(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing=="string"?e.animationEasing:"ease";return"transform ".concat(e.animationDuration,"ms ").concat(t)}}function qde(e){var t,n,r,a,s,l,u=HL(),d=v.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),f=Bde(d,2),m=f[0],p=f[1];v.useEffect(()=>{var k=C=>{if(C.key==="Escape"){var A,E,_,T;p({dismissed:!0,dismissedAtCoordinate:{x:(A=(E=e.coordinate)===null||E===void 0?void 0:E.x)!==null&&A!==void 0?A:0,y:(_=(T=e.coordinate)===null||T===void 0?void 0:T.y)!==null&&_!==void 0?_:0}})}};return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),m.dismissed&&(((r=(a=e.coordinate)===null||a===void 0?void 0:a.x)!==null&&r!==void 0?r:0)!==m.dismissedAtCoordinate.x||((s=(l=e.coordinate)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)!==m.dismissedAtCoordinate.y)&&p(qc(qc({},m),{},{dismissed:!1}));var g=Tde({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),y=g.cssClasses,w=g.cssProperties,b=e.hasPortalFromProps?{}:qc(qc({transition:Wde({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},w),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),N=qc(qc({},b),{},{visibility:!m.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:y,style:N,ref:e.innerRef},e.children)}var Hde=v.memo(qde),GL=()=>{var e;return(e=Fe(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j2.apply(null,arguments)}function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function o_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
44t%2?s_(Object(n),!0).forEach(function(r){Gde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gde(e,t,n){return(t=Kde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kde(e){var t=Yde(e,"string");return typeof t=="symbol"?t:t+""}function Yde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l_={curveBasisClosed:woe,curveBasisOpen:joe,curveBasis:boe,curveBumpX:yoe,curveBumpY:voe,curveLinearClosed:Noe,curveLinear:p0,curveMonotoneX:Soe,curveMonotoneY:koe,curveNatural:Aoe,curveStep:Coe,curveStepAfter:Toe,curveStepBefore:Eoe},dg=e=>ht(e.x)&&ht(e.y),c_=e=>e.base!=null&&dg(e.base)&&dg(e),gf=e=>e.x,yf=e=>e.y,Qde=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(ON(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=l_["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return l_[n]||p0},u_={connectNulls:!1,type:"linear"},Xde=e=>{var t=e.type,n=t===void 0?u_.type:t,r=e.points,a=r===void 0?[]:r,s=e.baseLine,l=e.layout,u=e.connectNulls,d=u===void 0?u_.connectNulls:u,f=Qde(n,l),m=d?a.filter(dg):a;if(Array.isArray(s)){var p,g=a.map((k,C)=>o_(o_({},k),{},{base:s[C]}));l==="vertical"?p=Rp().y(yf).x1(gf).x0(k=>k.base.x):p=Rp().x(gf).y1(yf).y0(k=>k.base.y);var y=p.defined(c_).curve(f),w=d?g.filter(c_):g;return y(w)}var b;l==="vertical"&&Le(s)?b=Rp().y(yf).x1(gf).x0(s):Le(s)?b=Rp().x(gf).y1(yf).y0(s):b=y9().x(gf).y(yf);var N=b.defined(dg).curve(f);return N(m)},Zde=e=>{var t=e.className,n=e.points,r=e.path,a=e.pathRef,s=Yu();if((!n||!n.length)&&!r)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||s,connectNulls:e.connectNulls},u=n&&n.length?Xde(l):r;return v.createElement("path",j2({},ms(e),Ioe(e),{className:Bt("recharts-curve",t),d:u===null?void 0:u,ref:a}))},Jde=["x","y","top","left","width","height","className"];function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N2.apply(null,arguments)}function d_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function efe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(n),!0).forEach(function(r){tfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tfe(e,t,n){return(t=nfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nfe(e){var t=rfe(e,"string");return typeof t=="symbol"?t:t+""}function rfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ife(e,t){if(e==null)return{};var n,r,a=afe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function afe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sfe=(e,t,n,r,a,s)=>"M".concat(e,",").concat(a,"v").concat(r,"M").concat(s,",").concat(t,"h").concat(n),ofe=e=>{var t=e.x,n=t===void 0?0:t,r=e.y,a=r===void 0?0:r,s=e.top,l=s===void 0?0:s,u=e.left,d=u===void 0?0:u,f=e.width,m=f===void 0?0:f,p=e.height,g=p===void 0?0:p,y=e.className,w=ife(e,Jde),b=efe({x:n,y:a,top:l,left:d,width:m,height:g},w);return!Le(n)||!Le(a)||!Le(m)||!Le(g)||!Le(l)||!Le(d)?null:v.createElement("path",N2({},ps(b),{className:Bt("recharts-cross",y),d:sfe(n,a,m,g,l,d)}))};function lfe(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}var fg=1e-4,KL=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],YL=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),f_=(e,t)=>
44n=>{var r=KL(e,t);return YL(r,n)},cfe=(e,t)=>n=>{var r=KL(e,t),a=[...r.map((s,l)=>s*l).slice(1),0];return YL(a,n)},ufe=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var a=r.map(s=>parseFloat(s));return[a[0],a[1],a[2],a[3]]},dfe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var a=ufe(n[0]);if(a)return a}}return n.length===4?n:[0,0,1,1]},ffe=(e,t,n,r)=>{var a=f_(e,n),s=f_(t,r),l=cfe(e,n),u=f=>f>1?1:f<0?0:f,d=f=>{for(var m=f>1?1:f,p=m,g=0;g<8;++g){var y=a(p)-m,w=l(p);if(Math.abs(y-m)<fg||w<fg)return s(p);p=u(p-y/w)}return s(p)};return d.isStepper=!1,d},h_=function(){return ffe(...dfe(...arguments))},hfe=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,s=a===void 0?8:a,l=t.dt,u=l===void 0?16.67:l,d=1,f=[0],m=0,p=0,g=1e4,y=0;y<g;){var w=-(m-d)*r,b=p*s;if(p+=(w-b)*u/1e3,m+=p*u/1e3,f.push(m),Math.abs(m-d)<fg&&Math.abs(p)<fg)break;y++}f[f.length-1]=d;var N=f.length-1;return k=>{var C,A,E;if(k<=0)return 0;if(k>=1)return d;var _=k*N,T=Math.floor(_),M=_-T;return((C=f[T])!==null&&C!==void 0?C:0)+(((A=f[T+1])!==null&&A!==void 0?A:0)-((E=f[T])!==null&&E!==void 0?E:0))*M}},mfe=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return h_(e);case"spring":return hfe();default:if(e.split("(")[0]==="cubic-bezier")return h_(e)}return typeof e=="function"?e:null},pfe=(e,t,n)=>{var r,a=s=>{var l=t.tick(s);if(t.getState()==="active"){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(a,l);return}r=e.setTimeout(a,l)};return r=e.setTimeout(a,0),()=>{var s;return(s=r)===null||s===void 0?void 0:s()}},QL=v.createContext(pfe);QL.Provider;function xfe(e){var t=v.useContext(QL);return v.useMemo(()=>e??t,[e,t])}function gfe(e,t,n){return(t=yfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yfe(e){var t=vfe(e,"string");return typeof t=="symbol"?t:t+""}function vfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m_="init",p_="pending",x_="active",bfe="completed";function N1(e){return Math.max(0,e)}class wfe{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(t){var n;gfe(this,"state",m_),this.animationId=t.animationId,this.onAnimationEnd=t.onAnimationEnd,this.animationDuration=N1(t.animationDuration),this.animationBegin=N1(t.animationBegin),this.progress=0,this.from=t.from,this.to=t.to,this.easing=t.easing,(n=t.onAnimationStart)===null||n===void 0||n.call(t)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(t){if(this.getState()===m_)return this.state=p_,this.beginStartedTime=t,this.animationBegin;if(this.getState()===p_){if(this.beginStartedTime==null)throw new Error;var n=t-this.beginStartedTime;return n>=this.animationBegin?(this.state=x_,this.animationStartedTime=t,this.nextAnimationUpdate(0)):N1(this.animationBegin-n)}if(this.getState()===x_){if(this.animationStartedTime==null)throw new Error;var r=t-this.animationStartedTime;return this.setProgress(r/this.animationDuration),this.nextAnimationUpdate(r)}return 0}setProgress(t){this.progress=Math.min(1,Math.max(0,t))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state==="active"){var t;(t=this.onAnimationEnd)===null||t===void 0||t.call(this)}this.state=bfe}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}}class jfe extends wfe{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(ir(this.getFrom(),this.getTo(),this.getProgress()))}}class Nfe{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),a=null,s=l=>{l-r>=n?t(l):a=requestAnimationFrame(s)};return a=requestAnimationFrame(s),()=>{a!=null&&cancelAnimationFrame(a)}}}function Sfe(e,t){return Efe(e)||Cfe(e,t)||Afe(e,t)||kfe()}
44function kfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Afe(e,t){if(e){if(typeof e=="string")return g_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g_(e,t):void 0}}function g_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Efe(e){if(Array.isArray(e))return e}var Tfe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},y_=0,S1=1;function XL(e){var t=Ei(e,Tfe),n=t.animationId,r=t.isActive,a=t.canBegin,s=t.duration,l=t.easing,u=t.begin,d=t.onAnimationEnd,f=t.onAnimationStart,m=t.children,p=HL(),g=r==="auto"?!qh.isSsr&&!p:r,y=xfe(t.animationController),w=v.useState(g?y_:S1),b=Sfe(w,2),N=b[0],k=b[1];return v.useEffect(()=>{g||k(S1)},[g]),v.useEffect(()=>{var C=mfe(l);if(!g||!a||C==null)return Ku;var A=new Nfe,E=new jfe({animationId:n,easing:C,animationDuration:s,animationBegin:u,onAnimationStart:f,onAnimationEnd:d,from:y_,to:S1});return y(A,E,k)},[y,n,g,a,s,l,u,f,d]),m(Number(N))}function ZL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=v.useRef(lh(t)),r=v.useRef(e);return r.current!==e&&(n.current=lh(t),r.current=e),n.current}var _fe=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Ofe=(e,t,n)=>e.map(r=>"".concat(_fe(r)," ").concat(t,"ms ").concat(n)).join(","),Pfe=["radius"],Mfe=["radius"],v_,b_,w_,j_,N_,S_,k_,A_,C_,E_;function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function __(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(r){Rfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rfe(e,t,n){return(t=Dfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dfe(e){var t=Ife(e,"string");return typeof t=="symbol"?t:t+""}function Ife(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(null,arguments)}function O_(e,t){if(e==null)return{};var n,r,a=Lfe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Lfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $fe(e,t){return zfe(e)||Ufe(e,t)||Ffe(e,t)||Bfe()}function Bfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ffe(e,t){if(e){if(typeof e=="string")return P_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P_(e,t):void 0}}function P_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ufe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;
46!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function zfe(e){if(Array.isArray(e))return e}function ca(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var M_=(e,t,n,r,a)=>{var s=yo(n),l=yo(r),u=Math.min(Math.abs(s)/2,Math.abs(l)/2),d=l>=0?1:-1,f=s>=0?1:-1,m=l>=0&&s>=0||l<0&&s<0?1:0,p;if(u>0&&Array.isArray(a)){for(var g=[0,0,0,0],y=0,w=4;y<w;y++){var b,N=(b=a[y])!==null&&b!==void 0?b:0;g[y]=N>u?u:N}p=Yn(v_||(v_=ca(["M",",",""])),e,t+d*g[0]),g[0]>0&&(p+=Yn(b_||(b_=ca(["A ",",",",0,0,",",",",",""])),g[0],g[0],m,e+f*g[0],t)),p+=Yn(w_||(w_=ca(["L ",",",""])),e+n-f*g[1],t),g[1]>0&&(p+=Yn(j_||(j_=ca(["A ",",",",0,0,",`, 47 `,",",""])),g[1],g[1],m,e+n,t+d*g[1])),p+=Yn(N_||(N_=ca(["L ",",",""])),e+n,t+r-d*g[2]),g[2]>0&&(p+=Yn(S_||(S_=ca(["A ",",",",0,0,",`, 48 `,",",""])),g[2],g[2],m,e+n-f*g[2],t+r)),p+=Yn(k_||(k_=ca(["L ",",",""])),e+f*g[3],t+r),g[3]>0&&(p+=Yn(A_||(A_=ca(["A ",",",",0,0,",`, 49 `,",",""])),g[3],g[3],m,e,t+r-d*g[3])),p+="Z"}else if(u>0&&a===+a&&a>0){var k=Math.min(u,a);p=Yn(C_||(C_=ca(["M ",",",` 50 A `,",",",0,0,",",",",",` 51 L `,",",` 52 A `,",",",0,0,",",",",",` 53 L `,",",` 54 A `,",",",0,0,",",",",",` 55 L `,",",` 56 A `,",",",0,0,",",",","," Z"])),e,t+d*k,k,k,m,e+f*k,t,e+n-f*k,t,k,k,m,e+n,t+d*k,e+n,t+r-d*k,k,k,m,e+n-f*k,t+r,e+f*k,t+r,k,k,m,e,t+r-d*k)}else p=Yn(E_||(E_=ca(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},R_={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JL=e=>{var t=Ei(e,R_),n=v.useRef(null),r=v.useState(-1),a=$fe(r,2),s=a[0],l=a[1];v.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var Q=n.current.getTotalLength();Q&&l(Q)}catch{}},[]);var u=t.x,d=t.y,f=t.width,m=t.height,p=t.radius,g=t.className,y=t.animationEasing,w=t.animationDuration,b=t.animationBegin,N=t.isAnimationActive,k=t.isUpdateAnimationActive,C=v.useRef(f),A=v.useRef(m),E=v.useRef(u),_=v.useRef(d),T=v.useMemo(()=>({x:u,y:d,width:f,height:m,radius:p}),[u,d,f,m,p]),M=ZL(T,"rectangle-");if(u!==+u||d!==+d||f!==+f||m!==+m||f===0||m===0)return null;var P=Bt("recharts-rectangle",g);if(!k){var D=ps(t);D.radius;var U=O_(D,Pfe);return v.createElement("path",hg({},U,{x:yo(u),y:yo(d),width:yo(f),height:yo(m),radius:typeof p=="number"?p:void 0,className:P,d:M_(u,d,f,m,p)}))}var L=C.current,$=A.current,G=E.current,H=_.current,V="0px ".concat(s===-1?1:s,"px"),B="".concat(s,"px ").concat(s,"px"),K=Ofe(["strokeDasharray"],w,typeof y=="string"?y:R_.animationEasing);return v.createElement(XL,{animationId:M,key:M,canBegin:s>0,duration:w,easing:y,isActive:k,begin:b},Q=>{var ce=ir(L,f,Q),I=ir($,m,Q),J=ir(G,u,Q),fe=ir(H,d,Q);n.current&&(C.current=ce,A.current=I,E.current=J,_.current=fe);var ue;N?Q>0?ue={transition:K,strokeDasharray:B}:ue={strokeDasharray:V}:ue={strokeDasharray:B};var ve=ps(t);ve.radius;var Se=O_(ve,Mfe);return v.createElement("path",hg({},Se,{radius:typeof p=="number"?p:void 0,className:P,d:M_(J,fe,ce,I,p),ref:n,style:__(__({},ue),t.style)}))})};function D_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function I_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(n),!0).forEach(function(r){Vfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vfe(e,t,n){return(t=Wfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wfe(e){var t=qfe(e,"string");return typeof t=="symbol"?t:t+""}function qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mg=Math.PI/180,Hfe=e=>e*180/Math.PI,Xn=(e,t,n,r)=>({x:e+Math.cos(-mg*r)*n,y:t+Math.sin(-mg*r)*n}),Gfe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Kfe=(e,t)=>
56{var n=e.x,r=e.y,a=t.x,s=t.y;return Math.sqrt((n-a)**2+(r-s)**2)},Yfe=(e,t)=>{var n=e.x,r=e.y,a=t.cx,s=t.cy,l=Kfe({x:n,y:r},{x:a,y:s});if(l<=0)return{radius:l,angle:0};var u=(n-a)/l,d=Math.acos(u);return r>s&&(d=2*Math.PI-d),{radius:l,angle:Hfe(d),angleInRadian:d}},Qfe=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),a=Math.floor(n/360),s=Math.min(r,a);return{startAngle:t-s*360,endAngle:n-s*360}},Xfe=(e,t)=>{var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(a,s);return e+l*360},Zfe=(e,t)=>{var n=e.relativeX,r=e.relativeY,a=Yfe({x:n,y:r},t),s=a.radius,l=a.angle,u=t.innerRadius,d=t.outerRadius;if(s<u||s>d||s===0)return null;var f=Qfe(t),m=f.startAngle,p=f.endAngle,g=l,y;if(m<=p){for(;g>p;)g-=360;for(;g<m;)g+=360;y=g>=m&&g<=p}else{for(;g>m;)g-=360;for(;g<p;)g+=360;y=g>=p&&g<=m}return y?I_(I_({},t),{},{radius:s,angle:Xfe(g,t)}):null};function e7(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,s=e.endAngle,l=Xn(t,n,r,a),u=Xn(t,n,r,s);return{points:[l,u],cx:t,cy:n,radius:r,startAngle:a,endAngle:s}}var L_,$_,B_,F_,U_,z_,V_;function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S2.apply(null,arguments)}function vl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Jfe=(e,t)=>{var n=Ir(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Up=e=>{var t=e.cx,n=e.cy,r=e.radius,a=e.angle,s=e.sign,l=e.isExternal,u=e.cornerRadius,d=e.cornerIsExternal,f=u*(l?1:-1)+r,m=Math.asin(u/f)/mg,p=d?a:a+s*m,g=Xn(t,n,f,p),y=Xn(t,n,r,p),w=d?a-s*m:a,b=Xn(t,n,f*Math.cos(m*mg),w);return{center:g,circleTangency:y,lineTangency:b,theta:m}},t7=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,a=e.outerRadius,s=e.startAngle,l=e.endAngle,u=Jfe(s,l),d=s+u,f=Xn(t,n,a,s),m=Xn(t,n,a,d),p=Yn(L_||(L_=vl(["M ",",",` 57 A `,",",`,0, 58 `,",",`, 59 `,",",` 60 `])),f.x,f.y,a,a,+(Math.abs(u)>180),+(s>d),m.x,m.y);if(r>0){var g=Xn(t,n,r,s),y=Xn(t,n,r,d);p+=Yn($_||($_=vl(["L ",",",` 61 A `,",",`,0, 62 `,",",`, 63 `,","," Z"])),y.x,y.y,r,r,+(Math.abs(u)>180),+(s<=d),g.x,g.y)}else p+=Yn(B_||(B_=vl(["L ",","," Z"])),t,n);return p},ehe=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,a=e.outerRadius,s=e.cornerRadius,l=e.forceCornerRadius,u=e.cornerIsExternal,d=e.startAngle,f=e.endAngle,m=Ir(f-d),p=Up({cx:t,cy:n,radius:a,angle:d,sign:m,cornerRadius:s,cornerIsExternal:u}),g=p.circleTangency,y=p.lineTangency,w=p.theta,b=Up({cx:t,cy:n,radius:a,angle:f,sign:-m,cornerRadius:s,cornerIsExternal:u}),N=b.circleTangency,k=b.lineTangency,C=b.theta,A=u?Math.abs(d-f):Math.abs(d-f)-w-C;if(A<0)return l?Yn(F_||(F_=vl(["M ",",",` 64 a`,",",",0,0,1,",`,0 65 a`,",",",0,0,1,",`,0 66 `])),y.x,y.y,s,s,s*2,s,s,-s*2):t7({cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:d,endAngle:f});var E=Yn(U_||(U_=vl(["M ",",",` 67 A`,",",",0,0,",",",",",` 68 A`,",",",0,",",",",",",",` 69 A`,",",",0,0,",",",",",` 70 `])),y.x,y.y,s,s,+(m<0),g.x,g.y,a,a,+(A>180),+(m<0),N.x,N.y,s,s,+(m<0),k.x,k.y);if(r>0){var _=Up({cx:t,cy:n,radius:r,angle:d,sign:m,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),T=_.circleTangency,M=_.lineTangency,P=_.theta,D=Up({cx:t,cy:n,radius:r,angle:f,sign:-m,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),U=D.circleTangency,L=D.lineTangency,$=D.theta,G=u?Math.abs(d-f):Math.abs(d-f)-P-$;if(G<0&&s===0)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+=Yn(z_||(z_=vl(["L",",",` 71 A`,",",",0,0,",",",",",` 72 A`,",",",0,",",",",",",",` 73 A`,",",",0,0,",",",",","Z"])),L.x,L.y,s,s,+(m<0),U.x,U.y,r,r,+(G>180),+(m>0),T.x,T.y,s,s,+(m<0),M.x,M.y)}else E+=Yn(V_||(V_=vl(["L",",","Z"])),t,n);return E},the={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nhe=e=>{var t=Ei(e,the),n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,u=t.forceCornerRadius,d=t.cornerIsExternal,f=t.startAngle,m=t.endAngle,p=t.className;if(s<a||f===m)return null;var g=Bt("recharts-sector",p),y=s-a,w=Ki(l,y,0,!0),b;return w>0&&Math.abs(f-m)<360?b=ehe({cx:n,cy:r,innerRadius:a,outerRadius:s,cornerRadius:Math.min(w,y/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m}):b=t7({cx:n,cy:r,innerRadius:a,outerRadius:s,startAngle:f,endAngle:m}),v.createElement("path",S2({},ps(t),{className:g,d:b}))};function rhe(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(C9(t)){if(e==="centric"){var r=t.cx,a=t.cy,s=t.innerRadius,l=t.outerRadius,u=t.angle,d=Xn(r,a,s,u),f=Xn(r,a,l,u);return[{x:d.x,y:d.y},{x:f.x,y:f.y}]}return e7(t)}}function ihe(e){return tL(e)?NaN:Number(e)}function k1(e){return e?(e=ihe(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}
73function n7(e,t,n){n&&typeof n!="number"&&u2(e,t,n)&&(t=n=void 0),e=k1(e),t===void 0?(t=e,e=0):t=k1(t),n=n===void 0?e<t?1:-1:k1(n);const r=Math.max(Math.ceil((t-e)/(n||1)),0),a=new Array(r);for(let s=0;s<r;s++)a[s]=e,e+=n;return a}var Ji=e=>e.chartData,KN=ie([Ji],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),R0=(e,t,n,r)=>r?KN(e):Ji(e),ahe=(e,t,n)=>n?KN(e):Ji(e),she=ie([R0],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});ie([KN],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});var ohe=ie([Ji],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});function YN(e,t){return dhe(e)||uhe(e,t)||che(e,t)||lhe()}function lhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function che(e,t){if(e){if(typeof e=="string")return W_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W_(e,t):void 0}}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function dhe(e){if(Array.isArray(e))return e}function ba(e){if(Array.isArray(e)&&e.length===2){var t=YN(e,2),n=t[0],r=t[1];if(ht(n)&&ht(r))return!0}return!1}function q_(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function r7(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var n=YN(e,2),r=n[0],a=n[1],s,l;if(ht(r))s=r;else if(typeof r=="function")return;if(ht(a))l=a;else if(typeof a=="function")return;var u=[s,l];if(ba(u))return u}}function fhe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ba(r))return q_(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var a=YN(e,2),s=a[0],l=a[1],u,d;if(s==="auto")t!=null&&(u=Math.min(...t));else if(Le(s))u=s;else if(typeof s=="function")try{t!=null&&(u=s(t?.[0]))}catch{}else if(typeof s=="string"&&z3.test(s)){var f=z3.exec(s);if(f==null||f[1]==null||t==null)u=void 0;else{var m=+f[1];u=t[0]-m}}else u=t?.[0];if(l==="auto")t!=null&&(d=Math.max(...t));else if(Le(l))d=l;else if(typeof l=="function")try{t!=null&&(d=l(t?.[1]))}catch{}else if(typeof l=="string"&&V3.test(l)){var p=V3.exec(l);if(p==null||p[1]==null||t==null)d=void 0;else{var g=+p[1];d=t[1]+g}}else d=t?.[1];var y=[u,d];if(ba(y))return t==null?y:q_(y,t,n)}}}var Qu=1e9,hhe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},XN,zt=!0,Ci="[DecimalError] ",Al=Ci+"Invalid argument: ",QN=Ci+"Exponent out of range: ",Xu=Math.floor,hl=Math.pow,mhe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Jr,$n=1e7,Lt=7,i7=9007199254740991,pg=Xu(i7/Lt),Pe={};Pe.absoluteValue=Pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Pe.comparedTo=Pe.cmp=function(e){var t,n,r,a,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===a?0:r>a^s.s<0?1:-1};Pe.decimalPlaces=Pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Lt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};
vendor: 10,560 bytes, line 74
74Pe.dividedBy=Pe.div=function(e){return us(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return _t(us(t,new n(e),0,1),n.precision)};Pe.equals=Pe.eq=function(e){return!this.cmp(e)};Pe.exponent=function(){return gn(this)};Pe.greaterThan=Pe.gt=function(e){return this.cmp(e)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(e){return this.cmp(e)>=0};Pe.isInteger=Pe.isint=function(){return this.e>this.d.length-2};Pe.isNegative=Pe.isneg=function(){return this.s<0};Pe.isPositive=Pe.ispos=function(){return this.s>0};Pe.isZero=function(){return this.s===0};Pe.lessThan=Pe.lt=function(e){return this.cmp(e)<0};Pe.lessThanOrEqualTo=Pe.lte=function(e){return this.cmp(e)<1};Pe.logarithm=Pe.log=function(e){var t,n=this,r=n.constructor,a=r.precision,s=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Jr))throw Error(Ci+"NaN");if(n.s<1)throw Error(Ci+(n.s?"NaN":"-Infinity"));return n.eq(Jr)?new r(0):(zt=!1,t=us(hh(n,s),hh(e,s),s),zt=!0,_t(t,a))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?o7(t,e):a7(t,(e.s=-e.s,e))};Pe.modulo=Pe.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Ci+"NaN");return n.s?(zt=!1,t=us(n,e,0,1).times(e),zt=!0,n.minus(t)):_t(new r(n),a)};Pe.naturalExponential=Pe.exp=function(){return s7(this)};Pe.naturalLogarithm=Pe.ln=function(){return hh(this)};Pe.negated=Pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Pe.plus=Pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?a7(t,e):o7(t,(e.s=-e.s,e))};Pe.precision=Pe.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Al+e);if(t=gn(a)+1,r=a.d.length-1,n=r*Lt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Pe.squareRoot=Pe.sqrt=function(){var e,t,n,r,a,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(Ci+"NaN")}for(e=gn(u),zt=!1,a=Math.sqrt(+u),a==0||a==1/0?(t=pa(u.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Xu((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(a.toString()),n=d.precision,a=l=n+3;;)if(s=r,r=s.plus(us(u,s,l+2)).times(.5),pa(s.d).slice(0,l)===(t=pa(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(_t(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!="9999")break;l+=4}return zt=!0,_t(r,n)};Pe.times=Pe.mul=function(e){var t,n,r,a,s,l,u,d,f,m=this,p=m.constructor,g=m.d,y=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,d=g.length,f=y.length,d<f&&(s=g,g=y,y=s,l=d,d=f,f=l),s=[],l=d+f,r=l;r--;)s.push(0);for(r=f;--r>=0;){for(t=0,a=d+r;a>r;)u=s[a]+y[r]*g[a-r-1]+t,s[a--]=u%$n|0,t=u/$n|0;s[a]=(s[a]+t)%$n|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,zt?_t(e,p.precision):e};Pe.toDecimalPlaces=Pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ta(e,0,Qu),t===void 0?t=r.rounding:Ta(t,0,8),_t(n,e+gn(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Dl(r,!0):(Ta(e,0,Qu),t===void 0?t=a.rounding:Ta(t,0,8),r=_t(new a(r),e+1,t),n=Dl(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?Dl(a):(Ta(e,0,Qu),t===void 0?t=s.rounding:Ta(t,0,8),r=_t(new s(a),e+gn(a)+1,t),n=Dl(r.abs(),!1,e+gn(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Pe.toInteger=Pe.toint=function(){var e=this,t=e.constructor;return _t(new t(e),gn(e)+1,t.rounding)};Pe.toNumber=function(){return+this};Pe.toPower=Pe.pow=function(e){var t,n,r,a,s,l,u=this,d=u.constructor,f=12,m=+(e=new d(e));if(!e.s)return new d(Jr);if(u=new d(u),!u.s){if(e.s<1)throw Error(Ci+"Infinity");return u}if(u.eq(Jr))return u;if(r=d.precision,e.eq(Jr))return _t(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,l){if((n=m<0?-m:m)<=i7){for(a=new d(Jr),t=Math.ceil(r/Lt+4),zt=!1;n%2&&(a=a.times(u),G_(a.d,t)),n=Xu(n/2),n!==0;)u=u.times(u),G_(u.d,t);return zt=!0,e.s<0?new d(Jr).div(a):_t(a,r)}}else if(s<0)throw Error(Ci+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,zt=!1,a=e.times(hh(u,r+f)),zt=!0,a=s7(a),a.s=s,a};Pe.toPrecision=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?(n=gn(a),r=Dl(a,n<=s.toExpNeg||n>=s.toExpPos)):(Ta(e,1,Qu),t===void 0?t=s.rounding:Ta(t,0,8),a=_t(new s(a),e,t),n=gn(a),r=Dl(a,e<=n||n<=s.toExpNeg,e)),r};Pe.toSignificantDigits=Pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ta(e,1,Qu),t===void 0?t=r.rounding:Ta(t,0,8)),_t(new r(n),e,t)};Pe.toString=Pe.valueOf=Pe.val=Pe.toJSON=Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=gn(e),n=e.constructor;return Dl(e,t<=n.toExpNeg||t>=n.toExpPos)};function a7(e,t){var n,r,a,s,l,u,d,f,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),zt?_t(t,p):t;if(d=e.d,f=t.d,l=e.e,a=t.e,d=d.slice(),s=l-a,s){for(s<0?(r=d,s=-s,u=f.length):(r=f,a=l,u=d.length),l=Math.ceil(p/Lt),u=l>u?l+1:u+1,s>u&&(s=u,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(u=d.length,s=f.length,u-s<0&&(s=u,r=f,f=d,d=r),n=0;s;)n=(d[--s]=d[s]+f[s]+n)/$n|0,d[s]%=$n;for(n&&(d.unshift(n),++a),u=d.length;d[--u]==0;)d.pop();return t.d=d,t.e=a,zt?_t(t,p):t}function Ta(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Al+e)}function pa(e){var t,n,r,a=e.length-1,s="",l=e[0];if(a>0){for(s+=l,t=1;t<a;t++)r=e[t]+"",n=Lt-r.length,n&&(s+=ho(n)),s+=r;l=e[t],r=l+"",n=Lt-r.length,n&&(s+=ho(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var us=(function(){function e(r,a){var s,l=0,u=r.length;for(r=r.slice();u--;)s=r[u]*a+l,r[u]=s%$n|0,l=s/$n|0;return l&&r.unshift(l),r}function t(r,a,s,l){var u,d;if(s!=l)d=s>l?1:-1;else for(u=d=0;u<s;u++)if(r[u]!=a[u]){d=r[u]>a[u]?1:-1;break}return d}function n(r,a,s){for(var l=0;s--;)r[s]-=l,l=r[s]<a[s]?1:0,r[s]=l*$n+r[s]-a[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,s,l){var u,d,f,m,p,g,y,w,b,N,k,C,A,E,_,T,M,P,D=r.constructor,U=r.s==a.s?1:-1,L=r.d,$=a.d;if(!r.s)return new D(r);if(!a.s)throw Error(Ci+"Division by zero");for(d=r.e-a.e,M=$.length,_=L.length,y=new D(U),w=y.d=[],f=0;$[f]==(L[f]||0);)++f;if($[f]>(L[f]||0)&&--d,s==null?C=s=D.precision:l?C=s+(gn(r)-gn(a))+1:C=s,C<0)return new D(0);if(C=C/Lt+2|0,f=0,M==1)for(m=0,$=$[0],C++;(f<_||m)&&C--;f++)A=m*$n+(L[f]||0),w[f]=A/$|0,m=A%$|0;else{for(m=$n/($[0]+1)|0,m>1&&($=e($,m),L=e(L,m),M=$.length,_=L.length),E=M,b=L.slice(0,M),N=b.length;N<M;)b[N++]=0;P=$.slice(),P.unshift(0),T=$[0],$[1]>=$n/2&&++T;do m=0,u=t($,b,M,N),u<0?(k=b[0],M!=N&&(k=k*$n+(b[1]||0)),m=k/T|0,m>1?(m>=$n&&(m=$n-1),p=e($,m),g=p.length,N=b.length,u=t(p,b,g,N),u==1&&(m--,n(p,M<g?P:$,g))):(m==0&&(u=m=1),p=$.slice()),g=p.length,g<N&&p.unshift(0),n(b,p,N),u==-1&&(N=b.length,u=t($,b,M,N),u<1&&(m++,n(b,M<N?P:$,N))),N=b.length):u===0&&(m++,b=[0]),w[f++]=m,u&&b[0]?b[N++]=L[E]||0:(b=[L[E]],N=1);while((E++<_||b[0]!==void 0)&&C--)}return w[0]||w.shift(),y.e=d,_t(y,l?s+gn(y)+1:s)}})();function s7(e,t){var n,r,a,s,l,u,d=0,f=0,m=e.constructor,p=m.precision;if(gn(e)>16)throw Error(QN+gn(e));if(!e.s)return new m(Jr);for(zt=!1,u=p,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),f+=5;for(r=Math.log(hl(2,f))/Math.LN10*2+5|0,u+=r,n=a=s=new m(Jr),m.precision=u;;){if(a=_t(a.times(e),u),n=n.times(++d),l=s.plus(us(a,n,u)),pa(l.d).slice(0,u)===pa(s.d).slice(0,u)){for(;f--;)s=_t(s.times(s),u);return m.precision=p,t==null?(zt=!0,_t(s,p)):s}s=l}}function gn(e){for(var t=e.e*Lt,n=e.d[0];n>=10;n/=10)t++;return t}function A1(e,t,n){if(t>e.LN10.sd())throw zt=!0,n&&(e.precision=n),Error(Ci+"LN10 precision limit exceeded");return _t(new e(e.LN10),t)}function ho(e){for(var t="";e--;)t+="0";return t}function hh(e,t){var n,r,a,s,l,u,d,f,m,p=1,g=10,y=e,w=y.d,b=y.constructor,N=b.precision;if(y.s<1)throw Error(Ci+(y.s?"NaN":"-Infinity"));if(y.eq(Jr))return new b(0);if(t==null?(zt=!1,f=N):f=t,y.eq(10))return t==null&&(zt=!0),A1(b,f);if(f+=g,b.precision=f,n=pa(w),r=n.charAt(0),s=gn(y),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)y=y.times(e),n=pa(y.d),r=n.charAt(0),p++;s=gn(y),r>1?(y=new b("0."+n),s++):y=new b(r+"."+n.slice(1))}else return d=A1(b,f+2,N).times(s+""),y=hh(new b(r+"."+n.slice(1)),f-g).plus(d),b.precision=N,t==null?(zt=!0,_t(y,N)):y;for(u=l=y=us(y.minus(Jr),y.plus(Jr),f),m=_t(y.times(y),f),a=3;;){if(l=_t(l.times(m),f),d=u.plus(us(l,new b(a),f)),pa(d.d).slice(0,f)===pa(u.d).slice(0,f))return u=u.times(2),s!==0&&(u=u.plus(A1(b,f+2,N).times(s+""))),u=us(u,new b(p),f),b.precision=N,t==null?(zt=!0,_t(u,N)):u;u=d,a+=2}}function H_(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Xu(n/Lt),e.d=[],r=(n+1)%Lt,n<0&&(r+=Lt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Lt;r<a;)e.d.push(+t.slice(r,r+=Lt));t=t.slice(r),r=Lt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),zt&&(e.e>pg||e.e<-pg))throw Error(QN+n)}else e.s=0,e.e=0,e.d=[0];return e}function _t(e,t,n){var r,a,s,l,u,d,f,m,p=e.d;for(l=1,s=p[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=Lt,a=t,f=p[m=0];else{if(m=Math.ceil((r+1)/Lt),s=p.length,m>=s)return e;for(f=s=p[m],l=1;s>=10;s/=10)l++;r%=Lt,a=r-Lt+l}if(n!==void 0&&(s=hl(10,l-a-1),u=f/s%10|0,d=t<0||p[m+1]!==void 0||f%s,d=n<4?(u||d)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||d||n==6&&(r>0?a>0?f/hl(10,l-a):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return d?(s=gn(e),p.length=1,t=t-s-1,p[0]=hl(10,(Lt-t%Lt)%Lt),e.e=Xu(-t/Lt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,s=1,m--):(p.length=m+1,s=hl(10,Lt-r),p[m]=a>0?(f/hl(10,l-a)%hl(10,a)|0)*s:0),d)for(;;)if(m==0){(p[0]+=s)==$n&&(p[0]=1,++e.e);break}else{if(p[m]+=s,p[m]!=$n)break;p[m--]=0,s=1}for(r=p.length;p[--r]===0;)p.pop();if(zt&&(e.e>pg||e.e<-pg))throw Error(QN+gn(e));return e}function o7(e,t){var n,r,a,s,l,u,d,f,m,p,g=e.constructor,y=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),zt?_t(t,y):t;if(d=e.d,p=t.d,r=t.e,f=e.e,d=d.slice(),l=f-r,l){for(m=l<0,m?(n=d,l=-l,u=p.length):(n=p,r=f,u=d.length),a=Math.max(Math.ceil(y/Lt),u)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=d.length,u=p.length,m=a<u,m&&(u=a),a=0;a<u;a++)if(d[a]!=p[a]){m=d[a]<p[a];break}l=0}for(m&&(n=d,d=p,p=n,t.s=-t.s),u=d.length,a=p.length-u;a>0;--a)d[u++]=0;for(a=p.length;a>l;){if(d[--a]<p[a]){for(s=a;s&&d[--s]===0;)d[s]=$n-1;--d[s],d[a]+=$n}d[a]-=p[a]}for(;d[--u]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,zt?_t(t,y):t):new g(0)}function Dl(e,t,n){var r,a=gn(e),s=pa(e.d),l=s.length;return t?(n&&(r=n-l)>
740?s=s.charAt(0)+"."+s.slice(1)+ho(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(a<0?"e":"e+")+a):a<0?(s="0."+ho(-a-1)+s,n&&(r=n-l)>0&&(s+=ho(r))):a>=l?(s+=ho(a+1-l),n&&(r=n-a-1)>0&&(s=s+"."+ho(r))):((r=a+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(s+="."),s+=ho(r))),e.s<0?"-"+s:s}function G_(e,t){if(e.length>t)return e.length=t,!0}function l7(e){var t,n,r;function a(s){var l=this;if(!(l instanceof a))return new a(s);if(l.constructor=a,s instanceof a){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Al+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return H_(l,s.toString())}else if(typeof s!="string")throw Error(Al+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,mhe.test(s))H_(l,s);else throw Error(Al+s)}if(a.prototype=Pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=l7,a.config=a.set=phe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function phe(e){if(!e||typeof e!="object")throw Error(Ci+"Object expected");var t,n,r,a=["precision",1,Qu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Xu(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Al+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Al+n+": "+r);return this}var XN=l7(hhe);Jr=new XN(1);const ft=XN;function c7(e){var t;return e===0?t=1:t=Math.floor(new ft(e).abs().log(10).toNumber())+1,t}function u7(e,t,n){for(var r=new ft(e),a=0,s=[];r.lt(t)&&a<1e5;)s.push(r.toNumber()),r=r.add(n),a++;return s}function mh(e,t){return vhe(e)||yhe(e,t)||ghe(e,t)||xhe()}function xhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 75In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ghe(e,t){if(e){if(typeof e=="string")return K_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K_(e,t):void 0}}function K_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function vhe(e){if(Array.isArray(e))return e}var d7=e=>{var t=mh(e,2),n=t[0],r=t[1],a=n,s=r;return n>r&&(a=r,s=n),[a,s]},ZN=(e,t,n)=>{if(e.lte(0))return new ft(0);var r=c7(e.toNumber()),a=new ft(10).pow(r),s=e.div(a),l=r!==1?.05:.1,u=new ft(Math.ceil(s.div(l).toNumber())).add(n).mul(l),d=u.mul(a);return t?new ft(d.toNumber()):new ft(Math.ceil(d.toNumber()))},f7=(e,t,n)=>{var r;if(e.lte(0))return new ft(0);var a=[1,2,2.5,5],s=e.toNumber(),l=Math.floor(new ft(s).abs().log(10).toNumber()),u=new ft(10).pow(l),d=e.div(u).toNumber(),f=a.findIndex(y=>y>=d-1e-10);if(f===-1&&(u=u.mul(10),f=0),f+=n,f>=a.length){var m=Math.floor(f/a.length);f%=a.length,u=u.mul(new ft(10).pow(m))}var p=(r=a[f])!==null&&r!==void 0?r:1,g=new ft(p).mul(u);return t?g:new ft(Math.ceil(g.toNumber()))},bhe=(e,t,n)=>{var r=new ft(1),a=new ft(e);if(!a.isint()&&n){var s=Math.abs(e);s<1?(r=new ft(10).pow(c7(e)-1),a=new ft(Math.floor(a.div(r).toNumber())).mul(r)):s>1&&(a=new ft(Math.floor(e)))}else e===0?a=new ft(Math.floor((t-1)/2)):n||(a=new ft(Math.floor(e)));for(var l=Math.floor((t-1)/2),u=[],d=0;d<t;d++)u.push(a.add(new ft(d-l).mul(r)).toNumber());return u},h7=function(t,n,r,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ZN;if(!Number.isFinite((n-t)/(r-1)))return{step:new ft(0),tickMin:new ft(0),tickMax:new ft(0)};var u=l(new ft(n).sub(t).div(r-1),a,s),d;t<=0&&n>=0?d=new ft(0):(d=new ft(t).add(n).div(2),d=d.sub(new ft(d).mod(u)));var f=Math.ceil(d.sub(t).div(u).toNumber()),m=Math.ceil(new ft(n).sub(d).div(u).toNumber()),p=f+m+1;return p>r?h7(t,n,r,a,s+1,l):(p<r&&(m=n>0?m+(r-p):m,f=n>0?f:f+(r-p)),{step:u,tickMin:d.sub(new ft(f).mul(u)),tickMax:d.add(new ft(m).mul(u))})},Y_=function(t){var n=mh(t,2),r=n[0],a=n[1],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",d=Math.max(s,2),f=d7([r,a]),m=mh(f,2),p=m[0],g=m[1];if(p===-1/0||g===1/0){var y=g===1/0?[p,...Array(s-1).fill(1/0)]:[...Array(s-1).fill(-1/0),g];return r>a?y.reverse():y}if(p===g)return bhe(p,s,l);var w=u==="snap125"?f7:ZN,b=h7(p,g,d,l,0,w),N=b.step,k=b.tickMin,C=b.tickMax,A=u7(k,C.add(new ft(.1).mul(N)),N);return r>a?A.reverse():A},Q_=function(t,n){var r=mh(t,2),a=r[0],s=r[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",d=d7([a,s]),f=mh(d,2),m=f[0],p=f[1];if(m===-1/0||p===1/0)return[a,s];if(m===p)return[m];var g=u==="snap125"?f7:ZN,y=Math.max(n,2),w=g(new ft(p).sub(m).div(y-1),l,0),b=[...u7(new ft(m),new ft(p),w),p];if(l===!1){b=b.map(k=>Math.round(k));var N=b.length-1;N>
750&&b[N]===b[N-1]&&(b=b.slice(0,N))}return a>s?b.reverse():b},m7=e=>e.rootProps.maxBarSize,whe=e=>e.rootProps.barGap,p7=e=>e.rootProps.barCategoryGap,jhe=e=>e.rootProps.barSize,D0=e=>e.rootProps.stackOffset,x7=e=>e.rootProps.reverseStackOrder,JN=e=>e.options.chartName,eS=e=>e.rootProps.syncId,g7=e=>e.rootProps.syncMethod,tS=e=>e.options.eventEmitter,kr={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},il={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},ua={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},I0=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function L0(e,t,n){if(n!=="auto")return n;if(e!=null)return Oo(e,t)?"category":"number"}function X_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X_(Object(n),!0).forEach(function(r){Nhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nhe(e,t,n){return(t=She(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function She(e){var t=khe(e,"string");return typeof t=="symbol"?t:t+""}function khe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z_={allowDataOverflow:il.allowDataOverflow,allowDecimals:il.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:il.angleAxisId,includeHidden:!1,name:void 0,reversed:il.reversed,scale:il.scale,tick:il.tick,tickCount:void 0,ticks:void 0,type:il.type,unit:void 0,niceTicks:"auto"},J_={allowDataOverflow:ua.allowDataOverflow,allowDecimals:ua.allowDecimals,allowDuplicatedCategory:ua.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ua.radiusAxisId,includeHidden:ua.includeHidden,name:void 0,reversed:ua.reversed,scale:ua.scale,tick:ua.tick,tickCount:ua.tickCount,ticks:void 0,type:ua.type,unit:void 0,niceTicks:"auto"},Ahe=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},nS=ie([Ahe,WL],(e,t)=>{var n;if(e!=null)return e;var r=(n=L0(t,"angleAxis",Z_.type))!==null&&n!==void 0?n:"category";return xg(xg({},Z_),{},{type:r})}),Che=(e,t)=>e.polarAxis.radiusAxis[t],rS=ie([Che,WL],(e,t)=>{var n;if(e!=null)return e;var r=(n=L0(t,"radiusAxis",J_.type))!==null&&n!==void 0?n:"category";return xg(xg({},J_),{},{type:r})}),$0=e=>e.polarOptions,iS=ie([ks,As,Fn],Gfe),y7=ie([$0,iS],(e,t)=>{if(e!=null)return Ki(e.innerRadius,t,0)}),v7=ie([$0,iS],(e,t)=>{if(e!=null)return Ki(e.outerRadius,t,t*.8)}),Ehe=e=>{if(e==null)return[0,0];var t=e.startAngle,n=e.endAngle;return[t,n]},b7=ie([$0],Ehe);ie([nS,b7],I0);var w7=ie([iS,y7,v7],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});ie([rS,w7],I0);var j7=ie([Ot,$0,y7,v7,ks,As],(e,t,n,r,a,s)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var l=t.cx,u=t.cy,d=t.startAngle,f=t.endAngle;return{cx:Ki(l,a,a/2),cy:Ki(u,s,s/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:f,clockWise:!1}}}),Un=(e,t)=>t,B0=(e,t,n)=>n;function aS(e){return e?.id}function N7(e,t,n){var r=t.chartData,a=r===void 0?[]:r,s=n.allowDuplicatedCategory,l=n.dataKey,u=new Map;return e.forEach(d=>{var f,m=(f=d.data)!==null&&f!==void 0?f:a;if(!(m==null||m.length===0)){var p=aS(d);m.forEach((g,y)=>{var w=l==null||s?y:String(Bn(g,l,null)),b=Bn(g,d.dataKey,0),N;u.has(w)?N=u.get(w):N={},Object.assign(N,{[p]:b}),u.set(w,N)})}}),Array.from(u.values())}function F0(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Hh=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function U0(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function The(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var zn=e=>{var t=Ot(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Zu=e=>e.tooltip.settings.axisId;function sS(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),a=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(s){function l(){return s.apply(this,arguments)}return l.toString=function(){return s.toString()},l})(()=>a),rangeMin:()=>a[0],rangeMax:()=>a[1],isInRange(s){var l=a[0],u=a[1];return l<=u?s>=l&&s<=u:s>=u&&s<=l},bandwidth:n?()=>n.call(e):void 0,ticks:t?s=>t.call(e,s):void 0,map:(s,l)=>{var u=e(s);if(u!=null){if(e.bandwidth&&l!==null&&l!==void 0&&l.position){var d=e.bandwidth();switch(l.position){case"middle":u+=d/2;break;case"end":u+=d;break}}return u}}}}}var _he=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ba(t)){for(var n,r,a=0;a<t.length;a++){var s=t[a];ht(s)&&((n===void 0||s<n)&&(n=s),(r===void 0||s>r)&&(r=s))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function wo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ohe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oS(e){let t,n,r;e.length!==2?(t=wo,n=(u,d)=>wo(e(u),d),r=(u,d)=>e(u)-d):(t=e===wo||e===Ohe?e:Phe,n=e,r=e);function a(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<0?f=p+1:m=p}while(f<m)}return f}function s(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<=0?f=p+1:m=p}while(f<m)}return f}function l(u,d,f=0,m=u.length){const p=a(u,d,f,m-1);return p>f&&r(u[p-1],d)>-r(u[p],d)?p-1:p}return{left:a,center:l,right:s}}function Phe(){return 0}function S7(e){return e===null?NaN:+e}function*Mhe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Rhe=oS(wo),Gh=Rhe.right;
75oS(S7).center;class eO extends Map{constructor(t,n=Lhe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(tO(this,t))}has(t){return super.has(tO(this,t))}set(t,n){return super.set(Dhe(this,t),n)}delete(t){return super.delete(Ihe(this,t))}}function tO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Dhe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ihe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Lhe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function $he(e=wo){if(e===wo)return k7;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function k7(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Bhe=Math.sqrt(50),Fhe=Math.sqrt(10),Uhe=Math.sqrt(2);function gg(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),l=s>=Bhe?10:s>=Fhe?5:s>=Uhe?2:1;let u,d,f;return a<0?(f=Math.pow(10,-a)/l,u=Math.round(e*f),d=Math.round(t*f),u/f<e&&++u,d/f>t&&--d,f=-f):(f=Math.pow(10,a)*l,u=Math.round(e/f),d=Math.round(t/f),u*f<e&&++u,d*f>t&&--d),d<u&&.5<=n&&n<2?gg(e,t,n*2):[u,d,f]}function k2(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,s,l]=r?gg(t,e,n):gg(e,t,n);if(!(s>=a))return[];const u=s-a+1,d=new Array(u);if(r)if(l<0)for(let f=0;f<u;++f)d[f]=(s-f)/-l;else for(let f=0;f<u;++f)d[f]=(s-f)*l;else if(l<0)for(let f=0;f<u;++f)d[f]=(a+f)/-l;else for(let f=0;f<u;++f)d[f]=(a+f)*l;return d}function A2(e,t,n){return t=+t,e=+e,n=+n,gg(e,t,n)[2]}function C2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?A2(t,e,n):A2(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function nO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function rO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function A7(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?k7:$he(a);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,m=Math.log(d),p=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*p*(d-p)/d)*(f-d/2<0?-1:1),y=Math.max(n,Math.floor(t-f*p/d+g)),w=Math.min(r,Math.floor(t+(d-f)*p/d+g));A7(e,t,y,w,a)}const s=e[t];let l=n,u=r;for(vf(e,n,t),a(e[r],s)>0&&vf(e,n,r);l<u;){for(vf(e,l,u),++l,--u;a(e[l],s)<0;)++l;for(;a(e[u],s)>0;)--u}a(e[n],s)===0?vf(e,n,u):(++u,vf(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function vf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function zhe(e,t,n){if(e=Float64Array.from(Mhe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return rO(e);if(t>=1)return nO(e);var r,a=(r-1)*t,s=Math.floor(a),l=nO(A7(e,s).subarray(0,s+1)),u=rO(e.subarray(s+1));return l+(u-l)*(a-s)}}function Vhe(e,t,n=S7){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,s=Math.floor(a),l=+n(e[s],s,e),u=+n(e[s+1],s+1,e);return l+(u-l)*(a-s)}}function Whe(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(a);++r<a;)s[r]=e+r*n;return s}function Ti(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Cs(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const E2=Symbol("implicit");function lS(){var e=new eO,t=[],n=[],r=E2;function a(s){let l=e.get(s);if(l===void 0){if(r!==E2)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return a.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new eO;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(s){return arguments.length?(n=Array.from(s),a):n.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return lS(t,n).unknown(r)},Ti.apply(a,arguments),a}
vendor: 7,479 bytes, line 75
75function cS(){var e=lS().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,s,l,u=!1,d=0,f=0,m=.5;delete e.unknown;function p(){var g=t().length,y=a<r,w=y?a:r,b=y?r:a;s=(b-w)/Math.max(1,g-d+f*2),u&&(s=Math.floor(s)),w+=(b-w-s*(g-d))*m,l=s*(1-d),u&&(w=Math.round(w),l=Math.round(l));var N=Whe(g).map(function(k){return w+s*k});return n(y?N.reverse():N)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,u=!0,p()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(g){return arguments.length?(u=!!g,p()):u},e.padding=function(g){return arguments.length?(d=Math.min(1,f=+g),p()):d},e.paddingInner=function(g){return arguments.length?(d=Math.min(1,g),p()):d},e.paddingOuter=function(g){return arguments.length?(f=+g,p()):f},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),p()):m},e.copy=function(){return cS(t(),[r,a]).round(u).paddingInner(d).paddingOuter(f).align(m)},Ti.apply(p(),arguments)}function C7(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return C7(t())},e}function qhe(){return C7(cS.apply(null,arguments).paddingInner(1))}function uS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function E7(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kh(){}var ph=.7,yg=1/ph,bu="\\s*([+-]?\\d+)\\s*",xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hhe=/^#([0-9a-f]{3,8})$/,Ghe=new RegExp(`^rgb\\(${bu},${bu},${bu}\\)$`),Khe=new RegExp(`^rgb\\(${wa},${wa},${wa}\\)$`),Yhe=new RegExp(`^rgba\\(${bu},${bu},${bu},${xh}\\)$`),Qhe=new RegExp(`^rgba\\(${wa},${wa},${wa},${xh}\\)$`),Xhe=new RegExp(`^hsl\\(${xh},${wa},${wa}\\)$`),Zhe=new RegExp(`^hsla\\(${xh},${wa},${wa},${xh}\\)$`),iO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};uS(Kh,gh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aO,formatHex:aO,formatHex8:Jhe,formatHsl:eme,formatRgb:sO,toString:sO});function aO(){return this.rgb().formatHex()}function Jhe(){return this.rgb().formatHex8()}function eme(){return T7(this).formatHsl()}function sO(){return this.rgb().formatRgb()}function gh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Hhe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?oO(t):n===3?new $r(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ghe.exec(e))?new $r(t[1],t[2],t[3],1):(t=Khe.exec(e))?new $r(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Yhe.exec(e))?zp(t[1],t[2],t[3],t[4]):(t=Qhe.exec(e))?zp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Xhe.exec(e))?uO(t[1],t[2]/100,t[3]/100,1):(t=Zhe.exec(e))?uO(t[1],t[2]/100,t[3]/100,t[4]):iO.hasOwnProperty(e)?oO(iO[e]):e==="transparent"?new $r(NaN,NaN,NaN,0):null}function oO(e){return new $r(e>>16&255,e>>8&255,e&255,1)}function zp(e,t,n,r){return r<=0&&(e=t=n=NaN),new $r(e,t,n,r)}function tme(e){return e instanceof Kh||(e=gh(e)),e?(e=e.rgb(),new $r(e.r,e.g,e.b,e.opacity)):new $r}function T2(e,t,n,r){return arguments.length===1?tme(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}uS($r,T2,E7(Kh,{brighter(e){return e=e==null?yg:Math.pow(yg,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ph:Math.pow(ph,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $r(Cl(this.r),Cl(this.g),Cl(this.b),vg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lO,formatHex:lO,formatHex8:nme,formatRgb:cO,toString:cO}));function lO(){return`#${bl(this.r)}${bl(this.g)}${bl(this.b)}`}function nme(){return`#${bl(this.r)}${bl(this.g)}${bl(this.b)}${bl((isNaN(this.opacity)?1:this.opacity)*255)}`}function cO(){const e=vg(this.opacity);return`${e===1?"rgb(":"rgba("}${Cl(this.r)}, ${Cl(this.g)}, ${Cl(this.b)}${e===1?")":`, ${e})`}`}function vg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bl(e){return e=Cl(e),(e<16?"0":"")+e.toString(16)}function uO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fi(e,t,n,r)}function T7(e){if(e instanceof Fi)return new Fi(e.h,e.s,e.l,e.opacity);if(e instanceof Kh||(e=gh(e)),!e)return new Fi;if(e instanceof Fi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,u=s-a,d=(s+a)/2;return u?(t===s?l=(n-r)/u+(n<r)*6:n===s?l=(r-t)/u+2:l=(t-n)/u+4,u/=d<.5?s+a:2-s-a,l*=60):u
vendor: 5,235 bytes, line 75
75=d>0&&d<1?0:l,new Fi(l,u,d,e.opacity)}function rme(e,t,n,r){return arguments.length===1?T7(e):new Fi(e,t,n,r??1)}function Fi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uS(Fi,rme,E7(Kh,{brighter(e){return e=e==null?yg:Math.pow(yg,e),new Fi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ph:Math.pow(ph,e),new Fi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new $r(C1(e>=240?e-240:e+120,a,r),C1(e,a,r),C1(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Fi(dO(this.h),Vp(this.s),Vp(this.l),vg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vg(this.opacity);return`${e===1?"hsl(":"hsla("}${dO(this.h)}, ${Vp(this.s)*100}%, ${Vp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dO(e){return e=(e||0)%360,e<0?e+360:e}function Vp(e){return Math.max(0,Math.min(1,e||0))}function C1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const dS=e=>()=>e;function ime(e,t){return function(n){return e+n*t}}function ame(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function sme(e){return(e=+e)==1?_7:function(t,n){return n-t?ame(t,n,e):dS(isNaN(t)?n:t)}}function _7(e,t){var n=t-e;return n?ime(e,n):dS(isNaN(e)?t:e)}const fO=(function e(t){var n=sme(t);function r(a,s){var l=n((a=T2(a)).r,(s=T2(s)).r),u=n(a.g,s.g),d=n(a.b,s.b),f=_7(a.opacity,s.opacity);return function(m){return a.r=l(m),a.g=u(m),a.b=d(m),a.opacity=f(m),a+""}}return r.gamma=e,r})(1);function ome(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(s){for(a=0;a<n;++a)r[a]=e[a]*(1-s)+t[a]*s;return r}}function lme(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cme(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)a[l]=Ju(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(u){for(l=0;l<r;++l)s[l]=a[l](u);return s}}function ume(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bg(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dme(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ju(e[a],t[a]):r[a]=t[a];return function(s){for(a in n)r[a]=n[a](s);return r}}var _2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,E1=new RegExp(_2.source,"g");function fme(e){return function(){return e}}function hme(e){return function(t){return e(t)+""}}function mme(e,t){var n=_2.lastIndex=E1.lastIndex=0,r,a,s,l=-1,u=[],d=[];for(e=e+"",t=t+"";(r=_2.exec(e))&&(a=E1.exec(t));)(s=a.index)>n&&(s=t.slice(n,s),u[l]?u[l]+=s:u[++l]=s),(r=r[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,d.push({i:l,x:bg(r,a)})),n=E1.lastIndex;return n<t.length&&(s=t.slice(n),u[l]?u[l]+=s:u[++l]=s),u.length<2?d[0]?hme(d[0].x):fme(t):(t=d.length,function(f){for(var m=0,p;m<t;++m)u[(p=d[m]).i]=p.x(f);return u.join("")})}function Ju(e,t){var n=typeof t,r;return t==null||n==="boolean"?dS(t):(n==="number"?bg:n==="string"?(r=gh(t))?(t=r,fO):mme:t instanceof gh?fO:t instanceof Date?ume:lme(t)?ome:Array.isArray(t)?cme:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dme:bg)(e,t)}function fS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function pme(e,t){t===void 0&&(t=e,e=Ju);for(var n=0,r=t.length-1,a=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(a,a=t[++n]);return function(l){var u=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[u](l-u)}}function xme(e){return function(){return e}}function wg(e){return+e}var hO=[0,1];function Ar(e){return e}function O2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:xme(isNaN(t)?NaN:.5)}function gme(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yme(e,t,n){var r=e[0],a=e[1],s=t[0],l=t[1];return a<r?(r=O2(a,r),s=n(l,s)):(r=O2(r,a),s=n(s,l)),function(u){return s(r(u))}}function vme(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=O2(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(u){var d=Gh(e,u,1,r)-1;return s[d](a[d](u))}}function Yh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function z0(){var e=hO,t=hO,n=Ju,r,a,s,l=Ar,u,d,f;function m(){var g=Math.min(e.length,t.length);return l!==Ar&&(l=gme(e[0],e[g-1])),u=g>2?vme:yme,d=f=null,p}function p(g){return g==null||isNaN(g=+g)?s:(d||(d=u(e.map(r),t,n)))(r(l(g)))}return p.invert=function(g){return l(a((f||(f=u(t,e.map(r),bg)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,wg),m()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=fS,m()},p.clamp=function(g){return arguments.length?(l=g?!0:Ar,m()):l!==Ar},p.interpolate=function(g){return arguments.length?(n=g,m()):n},p.unknown=function(g){return arguments.length?(s=g,p):s},function(g,y){return r=g,a=y,m()}}function hS(){return z0()(Ar,Ar)}
vendor: 5,072 bytes, line 75
75function bme(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function jg(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Au(e){return e=jg(Math.abs(e)),e?e[1]:NaN}function wme(e,t){return function(n,r){for(var a=n.length,s=[],l=0,u=e[0],d=0;a>0&&u>0&&(d+u+1>r&&(u=Math.max(1,r-d)),s.push(n.substring(a-=u,a+u)),!((d+=u+1)>r));)u=e[l=(l+1)%e.length];return s.reverse().join(t)}}function jme(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Nme=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yh(e){if(!(t=Nme.exec(e)))throw new Error("invalid format: "+e);var t;return new mS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}yh.prototype=mS.prototype;function mS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}mS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Sme(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var Ng;function kme(e,t){var n=jg(e,t);if(!n)return Ng=void 0,e.toPrecision(t);var r=n[0],a=n[1],s=a-(Ng=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+jg(e,Math.max(0,t+s-1))[0]}function mO(e,t){var n=jg(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const pO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bme,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mO(e*100,t),r:mO,s:kme,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xO(e){return e}var gO=Array.prototype.map,yO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ame(e){var t=e.grouping===void 0||e.thousands===void 0?xO:wme(gO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?xO:jme(gO.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"â":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(p,g){p=yh(p);var y=p.fill,w=p.align,b=p.sign,N=p.symbol,k=p.zero,C=p.width,A=p.comma,E=p.precision,_=p.trim,T=p.type;T==="n"?(A=!0,T="g"):pO[T]||(E===void 0&&(E=12),_=!0,T="g"),(k||y==="0"&&w==="=")&&(k=!0,y="0",w="=");var M=(g&&g.prefix!==void 0?g.prefix:"")+(N==="$"?n:N==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),P=(N==="$"?r:/[%p]/.test(T)?l:"")+(g&&g.suffix!==void 0?g.suffix:""),D=pO[T],U=/[defgprs%]/.test(T);E=E===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function L($){var G=M,H=P,V,B,K;if(T==="c")H=D($)+H,$="";else{$=+$;var Q=$<0||1/$<0;if($=isNaN($)?d:D(Math.abs($),E),_&&($=Sme($)),Q&&+$==0&&b!=="+"&&(Q=!1),G=(Q?b==="("?b:u:b==="-"||b==="("?"":b)+G,H=(T==="s"&&!isNaN($)&&Ng!==void 0?yO[8+Ng/3]:"")+H+(Q&&b==="("?")":""),U){for(V=-1,B=$.length;++V<B;)if(K=$.charCodeAt(V),48>K||K>57){H=(K===46?a+$.slice(V+1):$.slice(V))+H,$=$.slice(0,V);break}}}A&&!k&&($=t($,1/0));var ce=G.length+$.length+H.length,I=ce<C?new Array(C-ce+1).join(y):"";switch(A&&k&&($=t(I+$,I.length?C-H.length:1/0),I=""),w){case"<":$=G+$+H+I;break;case"=":$=G+I+$+H;break;case"^":$=I.slice(0,ce=I.length>>1)+G+$+H+I.slice(ce);break;default:$=I+G+$+H;break}return s($)}return L.toString=function(){return p+""},L}function m(p,g){var y=Math.max(-8,Math.min(8,Math.floor(Au(g)/3)))*3,w=Math.pow(10,-y),b=f((p=yh(p),p.type="f",p),{suffix:yO[8+y/3]});return function(N){return b(w*N)}}return{format:f,formatPrefix:m}}var Wp,pS,O7;Cme({thousands:",",grouping:[3],currency:["$",""]});function Cme(e){return Wp=Ame(e),pS=Wp.format,O7=Wp.formatPrefix,Wp}function Eme(e){return Math.max(0,-Au(Math.abs(e)))}function Tme(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Au(t)/3)))*3-Au(Math.abs(e)))}function _me(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Au(t)-Au(e))+1}function P7(e,t,n,r){var a=C2(e,t,n),s;switch(r=yh(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));
75return r.precision==null&&!isNaN(s=Tme(a,l))&&(r.precision=s),O7(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=_me(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Eme(a))&&(r.precision=s-(r.type==="%")*2);break}}return pS(r)}function Po(e){var t=e.domain;return e.ticks=function(n){var r=t();return k2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return P7(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,s=r.length-1,l=r[a],u=r[s],d,f,m=10;for(u<l&&(f=l,l=u,u=f,f=a,a=s,s=f);m-- >0;){if(f=A2(l,u,n),f===d)return r[a]=l,r[s]=u,t(r);if(f>0)l=Math.floor(l/f)*f,u=Math.ceil(u/f)*f;else if(f<0)l=Math.ceil(l*f)/f,u=Math.floor(u*f)/f;else break;d=f}return e},e}function M7(){var e=hS();return e.copy=function(){return Yh(e,M7())},Ti.apply(e,arguments),Po(e)}function R7(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,wg),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return R7(e).unknown(t)},e=arguments.length?Array.from(e,wg):[0,1],Po(n)}function D7(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],s=e[r],l;return s<a&&(l=n,n=r,r=l,l=a,a=s,s=l),e[n]=t.floor(a),e[r]=t.ceil(s),e}function vO(e){return Math.log(e)}function bO(e){return Math.exp(e)}function Ome(e){return-Math.log(-e)}function Pme(e){return-Math.exp(-e)}function Mme(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Rme(e){return e===10?Mme:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Dme(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function wO(e){return(t,n)=>-e(-t,n)}function xS(e){const t=e(vO,bO),n=t.domain;let r=10,a,s;function l(){return a=Dme(r),s=Rme(r),n()[0]<0?(a=wO(a),s=wO(s),e(Ome,Pme)):e(vO,bO),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const d=n();let f=d[0],m=d[d.length-1];const p=m<f;p&&([f,m]=[m,f]);let g=a(f),y=a(m),w,b;const N=u==null?10:+u;let k=[];if(!(r%1)&&y-g<N){if(g=Math.floor(g),y=Math.ceil(y),f>0){for(;g<=y;++g)for(w=1;w<r;++w)if(b=g<0?w/s(-g):w*s(g),!(b<f)){if(b>m)break;k.push(b)}}else for(;g<=y;++g)for(w=r-1;w>=1;--w)if(b=g>0?w/s(-g):w*s(g),!(b<f)){if(b>m)break;k.push(b)}k.length*2<N&&(k=k2(f,m,N))}else k=k2(g,y,Math.min(y-g,N)).map(s);return p?k.reverse():k},t.tickFormat=(u,d)=>{if(u==null&&(u=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=yh(d)).precision==null&&(d.trim=!0),d=pS(d)),u===1/0)return d;const f=Math.max(1,r*u/t.ticks().length);return m=>{let p=m/s(Math.round(a(m)));return p*r<r-.5&&(p*=r),p<=f?d(m):""}},t.nice=()=>n(D7(n(),{floor:u=>s(Math.floor(a(u))),ceil:u=>s(Math.ceil(a(u)))})),t}function I7(){const e=xS(z0()).domain([1,10]);return e.copy=()=>Yh(e,I7()).base(e.base()),Ti.apply(e,arguments),e}function jO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gS(e){var t=1,n=e(jO(t),NO(t));return n.constant=function(r){return arguments.length?e(jO(t=+r),NO(t)):t},Po(n)}function L7(){var e=gS(z0());return e.copy=function(){return Yh(e,L7()).constant(e.constant())},Ti.apply(e,arguments)}function SO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ime(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Lme(e){return e<0?-e*e:e*e}function yS(e){var t=e(Ar,Ar),n=1;function r(){return n===1?e(Ar,Ar):n===.5?e(Ime,Lme):e(SO(n),SO(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Po(t)}function vS(){var e=yS(z0());return e.copy=function(){return Yh(e,vS()).exponent(e.exponent())},Ti.apply(e,arguments),e}function $me(){return vS.apply(null,arguments).exponent(.5)}function kO(e){return Math.sign(e)*e*e}function Bme(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $7(){var e=hS(),t=[0,1],n=!1,r;function a(s){var l=Bme(e(s));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(s){return e.invert(kO(s))},a.domain=function(s){return arguments.length?(e.domain(s),a):e.domain()},a.range=function(s){return arguments.length?(e.range((t=Array.from(s,wg)).map(kO)),a):t.slice()}
75,a.rangeRound=function(s){return a.range(s).round(!0)},a.round=function(s){return arguments.length?(n=!!s,a):n},a.clamp=function(s){return arguments.length?(e.clamp(s),a):e.clamp()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return $7(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ti.apply(a,arguments),Po(a)}function B7(){var e=[],t=[],n=[],r;function a(){var l=0,u=Math.max(1,t.length);for(n=new Array(u-1);++l<u;)n[l-1]=Vhe(e,l/u);return s}function s(l){return l==null||isNaN(l=+l)?r:t[Gh(n,l)]}return s.invertExtent=function(l){var u=t.indexOf(l);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let u of l)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(wo),a()},s.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return B7().domain(e).range(t).unknown(r)},Ti.apply(s,arguments)}function F7(){var e=0,t=1,n=1,r=[.5],a=[0,1],s;function l(d){return d!=null&&d<=d?a[Gh(r,d,0,n)]:s}function u(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return l}return l.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,u()):[e,t]},l.range=function(d){return arguments.length?(n=(a=Array.from(d)).length-1,u()):a.slice()},l.invertExtent=function(d){var f=a.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},l.unknown=function(d){return arguments.length&&(s=d),l},l.thresholds=function(){return r.slice()},l.copy=function(){return F7().domain([e,t]).range(a).unknown(s)},Ti.apply(Po(l),arguments)}function U7(){var e=[.5],t=[0,1],n,r=1;function a(s){return s!=null&&s<=s?t[Gh(e,s,0,r)]:n}return a.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return U7().domain(e).range(t).unknown(n)},Ti.apply(a,arguments)}const T1=new Date,_1=new Date;function On(e,t,n,r){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=s=>(e(s=new Date(+s)),s),a.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),a.round=s=>{const l=a(s),u=a.ceil(s);return s-l<u-s?l:u},a.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),a.range=(s,l,u)=>{const d=[];if(s=a.ceil(s),u=u==null?1:Math.floor(u),!(s<l)||!(u>0))return d;let f;do d.push(f=new Date(+s)),t(s,u),e(s);while(f<s&&s<l);return d},a.filter=s=>On(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!s(l););else for(;--u>=0;)for(;t(l,1),!s(l););}),n&&(a.count=(s,l)=>(T1.setTime(+s),_1.setTime(+l),e(T1),e(_1),Math.floor(n(T1,_1))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(r?l=>r(l)%s===0:l=>a.count(0,l)%s===0):a)),a}const Sg=On(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Sg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?On(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Sg);Sg.range;const as=1e3,Ni=as*60,ss=Ni*60,ys=ss*24,bS=ys*7,AO=ys*30,O1=ys*365,wl=On(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*as)},(e,t)=>(t-e)/as,e=>e.getUTCSeconds());wl.range;const wS=On(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*as)},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getMinutes());wS.range;const jS=On(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getUTCMinutes());jS.range;const NS=On(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*as-e.getMinutes()*Ni)},(e,t)=>{e.setTime(+e+t*ss)},(e,t)=>(t-e)/ss,e=>e.getHours());NS.range;const SS=On(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ss)},(e,t)=>(t-e)/ss,e=>e.getUTCHours());SS.range;const Qh=On(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ni)/ys,e=>e.getDate()-1);Qh.range;const V0=On(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ys,e=>e.getUTCDate()-1);V0.range;const z7=On(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ys,e=>Math.floor(e/ys));z7.range;function Ql(e){return On(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ni)/bS)}const W0=Ql(0),kg=Ql(1),Fme=Ql(2),Ume=Ql(3),Cu=Ql(4),zme=Ql(5),Vme=Ql(6);W0.range;kg.range;Fme.range;Ume.range;Cu.range;zme.range;Vme.range;function Xl(e){return On(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/bS)}const q0=Xl(0),Ag=Xl(1),Wme=Xl(2),qme=Xl(3),Eu=Xl(4),Hme=Xl(5),Gme=Xl(6);q0.range;Ag.range;Wme.range;qme.range;Eu.range;Hme.range;Gme.range;
vendor: 5,081 bytes, line 75
75const kS=On(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());kS.range;const AS=On(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());AS.range;const vs=On(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());vs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:On(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});vs.range;const bs=On(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:On(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});bs.range;function V7(e,t,n,r,a,s){const l=[[wl,1,as],[wl,5,5*as],[wl,15,15*as],[wl,30,30*as],[s,1,Ni],[s,5,5*Ni],[s,15,15*Ni],[s,30,30*Ni],[a,1,ss],[a,3,3*ss],[a,6,6*ss],[a,12,12*ss],[r,1,ys],[r,2,2*ys],[n,1,bS],[t,1,AO],[t,3,3*AO],[e,1,O1]];function u(f,m,p){const g=m<f;g&&([f,m]=[m,f]);const y=p&&typeof p.range=="function"?p:d(f,m,p),w=y?y.range(f,+m+1):[];return g?w.reverse():w}function d(f,m,p){const g=Math.abs(m-f)/p,y=oS(([,,N])=>N).right(l,g);if(y===l.length)return e.every(C2(f/O1,m/O1,p));if(y===0)return Sg.every(Math.max(C2(f,m,p),1));const[w,b]=l[g/l[y-1][2]<l[y][2]/g?y-1:y];return w.every(b)}return[u,d]}const[Kme,Yme]=V7(bs,AS,q0,z7,SS,jS),[Qme,Xme]=V7(vs,kS,W0,Qh,NS,wS);function P1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function M1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function bf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Zme(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,s=e.days,l=e.shortDays,u=e.months,d=e.shortMonths,f=wf(a),m=jf(a),p=wf(s),g=jf(s),y=wf(l),w=jf(l),b=wf(u),N=jf(u),k=wf(d),C=jf(d),A={a:K,A:Q,b:ce,B:I,c:null,d:PO,e:PO,f:wpe,g:Ope,G:Mpe,H:ype,I:vpe,j:bpe,L:W7,m:jpe,M:Npe,p:J,q:fe,Q:DO,s:IO,S:Spe,u:kpe,U:Ape,V:Cpe,w:Epe,W:Tpe,x:null,X:null,y:_pe,Y:Ppe,Z:Rpe,"%":RO},E={a:ue,A:ve,b:Se,B:Ne,c:null,d:MO,e:MO,f:$pe,g:Kpe,G:Qpe,H:Dpe,I:Ipe,j:Lpe,L:H7,m:Bpe,M:Fpe,p:ge,q:ke,Q:DO,s:IO,S:Upe,u:zpe,U:Vpe,V:Wpe,w:qpe,W:Hpe,x:null,X:null,y:Gpe,Y:Ype,Z:Xpe,"%":RO},_={a:U,A:L,b:$,B:G,c:H,d:_O,e:_O,f:mpe,g:TO,G:EO,H:OO,I:OO,j:upe,L:hpe,m:cpe,M:dpe,p:D,q:lpe,Q:xpe,s:gpe,S:fpe,u:rpe,U:ipe,V:ape,w:npe,W:spe,x:V,X:B,y:TO,Y:EO,Z:ope,"%":ppe};A.x=T(n,A),A.X=T(r,A),A.c=T(t,A),E.x=T(n,E),E.X=T(r,E),E.c=T(t,E);function T(le,we){return function(he){var X=[],F=-1,xe=0,je=le.length,He,Qe,er;for(he instanceof Date||(he=new Date(+he));++F<je;)le.charCodeAt(F)===37&&(X.push(le.slice(xe,F)),(Qe=CO[He=le.charAt(++F)])!=null?He=le.charAt(++F):Qe=He==="e"?" ":"0",(er=we[He])&&(He=er(he,Qe)),X.push(He),xe=F+1);return X.push(le.slice(xe,F)),X.join("")}}function M(le,we){return function(he){var X=bf(1900,void 0,1),F=P(X,le,he+="",0),xe,je;if(F!=he.length)return null;if("Q"in X)return new Date(X.Q);if("s"in X)return new Date(X.s*1e3+("L"in X?X.L:0));if(we&&!("Z"in X)&&(X.Z=0),"p"in X&&(X.H=X.H%12+X.p*12),X.m===void 0&&(X.m="q"in X?X.q:0),"V"in X){if(X.V<1||X.V>53)return null;"w"in X||(X.w=1),"Z"in X?(xe=M1(bf(X.y,0,1)),je=xe.getUTCDay(),xe=je>4||je===0?Ag.ceil(xe):Ag(xe),xe=V0.offset(xe,(X.V-1)*7),X.y=xe.getUTCFullYear(),X.m=xe.getUTCMonth(),X.d=xe.getUTCDate()+(X.w+6)%7):(xe=P1(bf(X.y,0,1)),je=xe.getDay(),xe=je>4||je===0?kg.ceil(xe):kg(xe),xe=Qh.offset(xe,(X.V-1)*7),X.y=xe.getFullYear(),X.m=xe.getMonth(),X.d=xe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),je="Z"in X?M1(bf(X.y,0,1)).getUTCDay():P1(bf(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(je+5)%7:X.w+X.U*7-(je+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,M1(X)):P1(X)}}function P(le,we,he,X){for(var F=0,xe=we.length,je=he.length,He,Qe;F<xe;){if(X>=je)return-1;if(He=we.charCodeAt(F++),He===37){if(He=we.charAt(F++),Qe=_[He in CO?we.charAt(F++):He],!Qe||(X=Qe(le,he,X))<0)return-1}else if(He!=he.charCodeAt(X++))return-1}return X}function D(le,we,he){var X=f.exec(we.slice(he));return X?(le.p=m.get(X[0].toLowerCase()),he+X[0].length):-1}function U(le,we,he){var X=y.exec(we.slice(he));return X?(le.w=w.get(X[0].toLowerCase()),he+X[0].length):-1}function L(le,we,he){var X=p.exec(we.slice(he));return X?(le.w=g.get(X[0].toLowerCase()),he+X[0].length):-1}function $(le,we,he){var X=k.exec(we.slice(he));return X?(le.m=C.get(X[0].toLowerCase()),he+X[0].length):-1}function G(le,we,he){var X=b.exec(we.slice(he));return X?(le.m=N.get(X[0].toLowerCase()),he+X[0].length):-1}
vendor: 5,679 bytes, line 75
75function H(le,we,he){return P(le,t,we,he)}function V(le,we,he){return P(le,n,we,he)}function B(le,we,he){return P(le,r,we,he)}function K(le){return l[le.getDay()]}function Q(le){return s[le.getDay()]}function ce(le){return d[le.getMonth()]}function I(le){return u[le.getMonth()]}function J(le){return a[+(le.getHours()>=12)]}function fe(le){return 1+~~(le.getMonth()/3)}function ue(le){return l[le.getUTCDay()]}function ve(le){return s[le.getUTCDay()]}function Se(le){return d[le.getUTCMonth()]}function Ne(le){return u[le.getUTCMonth()]}function ge(le){return a[+(le.getUTCHours()>=12)]}function ke(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var we=T(le+="",A);return we.toString=function(){return le},we},parse:function(le){var we=M(le+="",!1);return we.toString=function(){return le},we},utcFormat:function(le){var we=T(le+="",E);return we.toString=function(){return le},we},utcParse:function(le){var we=M(le+="",!0);return we.toString=function(){return le},we}}}var CO={"-":"",_:" ",0:"0"},Vn=/^\s*\d+/,Jme=/^%/,epe=/[\\^$*+?|[\]().{}]/g;function yt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",s=a.length;return r+(s<n?new Array(n-s+1).join(t)+a:a)}function tpe(e){return e.replace(epe,"\\$&")}function wf(e){return new RegExp("^(?:"+e.map(tpe).join("|")+")","i")}function jf(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function npe(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rpe(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ipe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ape(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function spe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function EO(e,t,n){var r=Vn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function TO(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ope(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lpe(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function cpe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _O(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function upe(e,t,n){var r=Vn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function OO(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dpe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function fpe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hpe(e,t,n){var r=Vn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mpe(e,t,n){var r=Vn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ppe(e,t,n){var r=Jme.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xpe(e,t,n){var r=Vn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gpe(e,t,n){var r=Vn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function PO(e,t){return yt(e.getDate(),t,2)}function ype(e,t){return yt(e.getHours(),t,2)}function vpe(e,t){return yt(e.getHours()%12||12,t,2)}function bpe(e,t){return yt(1+Qh.count(vs(e),e),t,3)}function W7(e,t){return yt(e.getMilliseconds(),t,3)}function wpe(e,t){return W7(e,t)+"000"}function jpe(e,t){return yt(e.getMonth()+1,t,2)}function Npe(e,t){return yt(e.getMinutes(),t,2)}function Spe(e,t){return yt(e.getSeconds(),t,2)}function kpe(e){var t=e.getDay();return t===0?7:t}function Ape(e,t){return yt(W0.count(vs(e)-1,e),t,2)}function q7(e){var t=e.getDay();return t>=4||t===0?Cu(e):Cu.ceil(e)}function Cpe(e,t){return e=q7(e),yt(Cu.count(vs(e),e)+(vs(e).getDay()===4),t,2)}function Epe(e){return e.getDay()}function Tpe(e,t){return yt(kg.count(vs(e)-1,e),t,2)}function _pe(e,t){return yt(e.getFullYear()%100,t,2)}function Ope(e,t){return e=q7(e),yt(e.getFullYear()%100,t,2)}function Ppe(e,t){return yt(e.getFullYear()%1e4,t,4)}function Mpe(e,t){var n=e.getDay();return e=n>=4||n===0?Cu(e):Cu.ceil(e),yt(e.getFullYear()%1e4,t,4)}function Rpe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yt(t/60|0,"0",2)+yt(t%60,"0",2)}function MO(e,t){return yt(e.getUTCDate(),t,2)}function Dpe(e,t){return yt(e.getUTCHours(),t,2)}function Ipe(e,t){return yt(e.getUTCHours()%12||12,t,2)}function Lpe(e,t){return yt(1+V0.count(bs(e),e),t,3)}function H7(e,t){return yt(e.getUTCMilliseconds(),t,3)}function $pe(e,t){return H7(e,t)+"000"}function Bpe(e,t){return yt(e.getUTCMonth()+1,t,2)}function Fpe(e,t){return yt(e.getUTCMinutes(),t,2)}function Upe(e,t){return yt(e.getUTCSeconds(),t,2)}function zpe(e){var t=e.getUTCDay();return t===0?7:t}function Vpe(e,t){return yt(q0.count(bs(e)-1,e),t,2)}function G7(e){var t=e.getUTCDay();return t>=4||t===0?Eu(e):Eu.ceil(e)}function Wpe(e,t){return e=G7(e),yt(Eu.count(bs(e),e)+(bs(e).getUTCDay()===4),t,2)}function qpe(e){return e.getUTCDay()}function Hpe(e,t){return yt(Ag.count(bs(e)-1,e),t,2)}function Gpe(e,t){return yt(e.getUTCFullYear()%100,t,2)}function Kpe(e,t){return e=G7(e),yt(e.getUTCFullYear()%100,t,2)}function Ype(e,t){return yt(e.getUTCFullYear()%1e4,t,4)}function Qpe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Eu(e):Eu.ceil(e),yt(e.getUTCFullYear()%1e4,t,4)}function Xpe(){return"+0000"}function RO(){return"%"}function DO(e){return+e}function IO(e){return Math.floor(+e/1e3)}var Hc,K7,Y7;Zpe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
75ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Zpe(e){return Hc=Zme(e),K7=Hc.format,Hc.parse,Y7=Hc.utcFormat,Hc.utcParse,Hc}function Jpe(e){return new Date(e)}function exe(e){return e instanceof Date?+e:+new Date(+e)}function CS(e,t,n,r,a,s,l,u,d,f){var m=hS(),p=m.invert,g=m.domain,y=f(".%L"),w=f(":%S"),b=f("%I:%M"),N=f("%I %p"),k=f("%a %d"),C=f("%b %d"),A=f("%B"),E=f("%Y");function _(T){return(d(T)<T?y:u(T)<T?w:l(T)<T?b:s(T)<T?N:r(T)<T?a(T)<T?k:C:n(T)<T?A:E)(T)}return m.invert=function(T){return new Date(p(T))},m.domain=function(T){return arguments.length?g(Array.from(T,exe)):g().map(Jpe)},m.ticks=function(T){var M=g();return e(M[0],M[M.length-1],T??10)},m.tickFormat=function(T,M){return M==null?_:f(M)},m.nice=function(T){var M=g();return(!T||typeof T.range!="function")&&(T=t(M[0],M[M.length-1],T??10)),T?g(D7(M,T)):m},m.copy=function(){return Yh(m,CS(e,t,n,r,a,s,l,u,d,f))},m}function txe(){return Ti.apply(CS(Qme,Xme,vs,kS,W0,Qh,NS,wS,wl,K7).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nxe(){return Ti.apply(CS(Kme,Yme,bs,AS,q0,V0,SS,jS,wl,Y7).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function H0(){var e=0,t=1,n,r,a,s,l=Ar,u=!1,d;function f(p){return p==null||isNaN(p=+p)?d:l(a===0?.5:(p=(s(p)-n)*a,u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,n=s(e=+e),r=s(t=+t),a=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(l=p,f):l};function m(p){return function(g){var y,w;return arguments.length?([y,w]=g,l=p(y,w),f):[l(0),l(1)]}}return f.range=m(Ju),f.rangeRound=m(fS),f.unknown=function(p){return arguments.length?(d=p,f):d},function(p){return s=p,n=p(e),r=p(t),a=n===r?0:1/(r-n),f}}function Mo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Q7(){var e=Po(H0()(Ar));return e.copy=function(){return Mo(e,Q7())},Cs.apply(e,arguments)}function X7(){var e=xS(H0()).domain([1,10]);return e.copy=function(){return Mo(e,X7()).base(e.base())},Cs.apply(e,arguments)}function Z7(){var e=gS(H0());return e.copy=function(){return Mo(e,Z7()).constant(e.constant())},Cs.apply(e,arguments)}function ES(){var e=yS(H0());return e.copy=function(){return Mo(e,ES()).exponent(e.exponent())},Cs.apply(e,arguments)}function rxe(){return ES.apply(null,arguments).exponent(.5)}function J7(){var e=[],t=Ar;function n(r){if(r!=null&&!isNaN(r=+r))return t((Gh(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(wo),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,s)=>zhe(e,s/r))},n.copy=function(){return J7(t).domain(e)},Cs.apply(n,arguments)}function G0(){var e=0,t=.5,n=1,r=1,a,s,l,u,d,f=Ar,m,p=!1,g;function y(b){return isNaN(b=+b)?g:(b=.5+((b=+m(b))-s)*(r*b<r*s?u:d),f(p?Math.max(0,Math.min(1,b)):b))}y.domain=function(b){return arguments.length?([e,t,n]=b,a=m(e=+e),s=m(t=+t),l=m(n=+n),u=a===s?0:.5/(s-a),d=s===l?0:.5/(l-s),r=s<a?-1:1,y):[e,t,n]},y.clamp=function(b){return arguments.length?(p=!!b,y):p},y.interpolator=function(b){return arguments.length?(f=b,y):f};function w(b){return function(N){var k,C,A;return arguments.length?([k,C,A]=N,f=pme(b,[k,C,A]),y):[f(0),f(.5),f(1)]}}return y.range=w(Ju),y.rangeRound=w(fS),y.unknown=function(b){return arguments.length?(g=b,y):g},function(b){return m=b,a=b(e),s=b(t),l=b(n),u=a===s?0:.5/(s-a),d=s===l?0:.5/(l-s),r=s<a?-1:1,y}}function e$(){var e=Po(G0()(Ar));return e.copy=function(){return Mo(e,e$())},Cs.apply(e,arguments)}function t$(){var e=xS(G0()).domain([.1,1,10]);return e.copy=function(){return Mo(e,t$()).base(e.base())},Cs.apply(e,arguments)}function n$(){var e=gS(G0());return e.copy=function(){return Mo(e,n$()).constant(e.constant())},Cs.apply(e,arguments)}function TS(){var e=yS(G0());return e.copy=function(){return Mo(e,TS()).exponent(e.exponent())},Cs.apply(e,arguments)}function ixe(){return TS.apply(null,arguments).exponent(.5)}const r$=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cS,scaleDiverging:e$,scaleDivergingLog:t$,scaleDivergingPow:TS,scaleDivergingSqrt:ixe,scaleDivergingSymlog:n$,scaleIdentity:R7,scaleImplicit:E2,scaleLinear:M7,scaleLog:I7,scaleOrdinal:lS,scalePoint:qhe,scalePow:vS,scaleQuantile:B7,scaleQuantize:F7,scaleRadial:$7,scaleSequential:Q7,scaleSequentialLog:X7,scaleSequentialPow:ES,scaleSequentialQuantile:J7,scaleSequentialSqrt:rxe,scaleSequentialSymlog:Z7,scaleSqrt:$me,scaleSymlog:L7,scaleThreshold:U7,scaleTime:txe,scaleUtc:nxe,tickFormat:P7},Symbol.toStringTag,{value:"Module"}));function axe(e){var t=r$;if(e in t&&typeof t[e]=="function")return t[e]();var n="scale".concat(ON(e));if(n in t&&typeof t[n]=="function")return t[n]()}function LO(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=axe(e);if(r!=null)return r.domain(t).range(n),r}}function _S(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?LO(e.scale,n,r):LO
75(t,n,r)}function sxe(e){return"scale".concat(ON(e))}function oxe(e){return sxe(e)in r$}var i$=(e,t,n)=>{if(e!=null){var r=e.scale,a=e.type;if(r==="auto")return a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":a==="category"?"band":"linear";if(typeof r=="string")return oxe(r)?r:"point"}};function lxe(e,t){for(var n=0,r=e.length,a=e[0]<e[e.length-1];n<r;){var s=Math.floor((n+r)/2);(a?e[s]<t:e[s]>t)?n=s+1:r=s}return n}function a$(e,t){if(e){var n=t??e.domain(),r=n.map(s=>{var l;return(l=e(s))!==null&&l!==void 0?l:0}),a=e.range();if(!(n.length===0||a.length<2))return s=>{var l,u,d=lxe(r,s);if(d<=0)return n[0];if(d>=n.length)return n[n.length-1];var f=(l=r[d-1])!==null&&l!==void 0?l:0,m=(u=r[d])!==null&&u!==void 0?u:0;return Math.abs(s-f)<=Math.abs(s-m)?n[d-1]:n[d]}}}function cxe(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):a$(e,void 0)}function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(n),!0).forEach(function(r){uxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uxe(e,t,n){return(t=dxe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dxe(e){var t=fxe(e,"string");return typeof t=="symbol"?t:t+""}function fxe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s$(e,t){return xxe(e)||pxe(e,t)||mxe(e,t)||hxe()}function hxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 76In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mxe(e,t){if(e){if(typeof e=="string")return BO(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BO(e,t):void 0}}function BO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function xxe(e){if(Array.isArray(e))return e}var P2=[0,"auto"],Nn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},o$=(e,t)=>e.cartesianAxis.xAxis[t],Es=(e,t)=>{var n=o$(e,t);return n??Nn},Sn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:P2,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:zh},l$=(e,t)=>e.cartesianAxis.yAxis[t],Ts=(e,t)=>{var n=l$(e,t);return n??Sn},gxe={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},OS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??gxe},fr=(e,t,n)=>{switch(t){case"xAxis":return Es(e,n);case"yAxis":return Ts(e,n);case"zAxis":return OS(e,n);case"angleAxis":return nS(e,n);case"radiusAxis":return rS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},yxe=(e,t,n)=>{switch(t){case"xAxis":return Es(e,n);case"yAxis":return Ts(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Xh=(e,t,n)=>{switch(t){case"xAxis":return Es(e,n);case"yAxis":return Ts(e,n);case"angleAxis":return nS(e,n);case"radiusAxis":return rS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},c$=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function u$(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var PS=e=>
76e.graphicalItems.cartesianItems,vxe=ie([Un,B0],u$),d$=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),ed=ie([PS,fr,vxe],d$,{memoizeOptions:{resultEqualityCheck:U0}}),f$=ie([ed],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(F0)),h$=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),bxe=ie([ed],h$),m$=e=>e.map(t=>t.data).filter(Boolean).flat(1),wxe=ie([ed],e=>e.some(t=>!t.data)),p$=ie([ed],m$,{memoizeOptions:{resultEqualityCheck:U0}}),x$=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,a=t.dataStartIndex,s=t.dataEndIndex;return e.length>0?e:r.slice(a,s+1)},MS=ie([p$,R0],x$),jxe=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:Bn(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(a=>({value:Bn(a,r)}))):e.map(r=>({value:r})),g$=(e,t,n,r,a,s)=>{var l=r.chartData,u=l===void 0?[]:l,d=r.dataStartIndex,f=r.dataEndIndex,m=jxe(e,t,n);if(a&&t?.dataKey!=null&&s.length>0){var p=u.slice(d,f+1),g=p.map(y=>({value:Bn(y,t.dataKey)})).filter(y=>y.value!=null);return[...g,...m]}return m},Zh=ie([MS,fr,ed,R0,wxe,p$],g$);function wu(e){if(Ca(e)||e instanceof Date){var t=Number(e);if(ht(t))return t}}function FO(e){if(Array.isArray(e)){var t=[wu(e[0]),wu(e[1])];return ba(t)?t:void 0}var n=wu(e);if(n!=null)return[n,n]}function Yi(e){return e.map(wu).filter(Lr)}function Nxe(e,t){var n=wu(e),r=wu(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var Sxe=ie([Zh],e=>e?.map(t=>t.value).sort(Nxe));function y$(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function kxe(e,t,n){if(!n)return[];if(!n.length)return[];var r;if(typeof t=="number"&&!Aa(t))r=t;else if(Array.isArray(t)){var a=Yi(t);a.length>0&&(r=Math.max(...a))}return r==null?[]:Yi(n.flatMap(s=>{var l=Bn(e,s.dataKey),u,d;if(Array.isArray(l)){var f=s$(l,2);u=f[0],d=f[1]}else u=d=l;if(!(!ht(u)||!ht(d)))return[r-u,r+d]}))}var Pn=e=>{var t=zn(e),n=Zu(e);return Xh(e,t,n)},Tu=ie([Pn],e=>e?.dataKey),Axe=ie([f$,R0,Pn],N7),v$=(e,t,n,r)=>{var a={},s=t.reduce((l,u)=>{if(u.stackId==null)return l;var d=l[u.stackId];return d==null&&(d=[]),d.push(u),l[u.stackId]=d,l},a);return Object.fromEntries(Object.entries(s).map(l=>{var u=s$(l,2),d=u[0],f=u[1],m=r?[...f].reverse():f,p=m.map(aS);return[d,{stackedData:Jce(e,p,n),graphicalItems:m}]}))},M2=ie([Axe,f$,D0,x7],v$),b$=(e,t,n,r)=>{var a=t.dataStartIndex,s=t.dataEndIndex;if(r==null&&n!=="zAxis")return iue(e,a,s)},Cxe=ie([fr],e=>e.allowDataOverflow),RS=e=>{var t;if(e==null||!("domain"in e))return P2;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Yi(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:P2},w$=ie([fr],RS),j$=ie([w$,Cxe],r7),Exe=ie([M2,Ji,Un,j$],b$,{memoizeOptions:{resultEqualityCheck:Hh}}),DS=e=>e.errorBars,Txe=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>y$(n,r)),Eg=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);if(a.length!==0){var s=a.flat(),l=Math.min(...s),u=Math.max(...s);return[l,u]}},N$=function(t,n,r,a,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u,d;if(r.length>0&&r.forEach(f=>{var m,p=f.data!=null?[...f.data]:l,g=(m=a[f.id])===null||m===void 0?void 0:m.filter(y=>y$(s,y));p.forEach(y=>{var w,b=Bn(y,(w=n.dataKey)!==null&&w!==void 0?w:f.dataKey),N=kxe(y,b,g);if(N.length>=2){var k=Math.min(...N),C=Math.max(...N);(u==null||k<u)&&(u=k),(d==null||C>d)&&(d=C)}var A=FO(b);A!=null&&(u=u==null?A[0]:Math.min(u,A[0]),d=d==null?A[1]:Math.max(d,A[1]))})}),n?.dataKey!=null&&r.length===0&&t.forEach(f=>{var m=FO(Bn(f,n.dataKey));m!=null&&(u=u==null?m[0]:Math.min(u,m[0]),d=d==null?m[1]:Math.max(d,m[1]))}),ht(u)&&ht(d))return[u,d]},_xe=ie([MS,fr,bxe,DS,Un,she],N$,{memoizeOptions:{resultEqualityCheck:Hh}});function Oxe(e){var t=e.value;if(Ca(t)||t instanceof Date)return t}var Pxe=(e,t,n)=>{var r=e.map(Oxe).filter(a=>a!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&f9(r))?n7(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},S$=e=>e.referenceElements.dots,td=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Mxe=ie([S$,Un,B0],td),k$=e=>e.referenceElements.areas,Rxe=ie([k$,Un,B0],td),A$=e=>e.referenceElements.lines,Dxe=ie([A$,Un,B0],td),C$=(e,t)=>
76{if(e!=null){var n=Yi(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Ixe=ie(Mxe,Un,C$),E$=(e,t)=>{if(e!=null){var n=Yi(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Lxe=ie([Rxe,Un],E$);function $xe(e){var t;if(e.x!=null)return Yi([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Yi(n)}function Bxe(e){var t;if(e.y!=null)return Yi([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Yi(n)}var T$=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?$xe(r):Bxe(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Fxe=ie([Dxe,Un],T$),Uxe=ie(Ixe,Fxe,Lxe,(e,t,n)=>Eg(e,n,t)),_$=(e,t,n,r,a,s,l,u,d)=>{if(n!=null)return n;var f=l==="vertical"&&u==="xAxis"||l==="horizontal"&&u==="yAxis",m=f?Eg(r,s,a):Eg(s,a),p=fhe(t,m,e.allowDataOverflow);return p??(e.allowDataOverflow&&m==null&&d!=null?d:p)},zxe=e=>{if(!(e==null||e.type!=="number"||!("ticks"in e)||e.ticks==null)){var t=Yi(e.ticks);if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},Vxe=ie([fr],zxe,{memoizeOptions:{resultEqualityCheck:Hh}}),Wxe=ie([fr,w$,j$,Exe,_xe,Uxe,Ot,Un,Vxe],_$,{memoizeOptions:{resultEqualityCheck:Hh}}),qxe=[0,1],O$=(e,t,n,r,a,s,l)=>{if(!((e==null||n==null||n.length===0)&&l===void 0)){var u=e.dataKey,d=e.type,f=Oo(t,s);if(f&&u==null){var m;return n7(0,(m=n?.length)!==null&&m!==void 0?m:0)}return d==="category"?Pxe(r,e,f):a==="expand"&&!f?qxe:l}},IS=ie([fr,Ot,MS,Zh,D0,Un,Wxe],O$),nd=ie([fr,c$,JN],i$),P$=(e,t,n)=>{var r=t.niceTicks;if(r!=="none"){var a=RS(t),s=Array.isArray(a)&&(a[0]==="auto"||a[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&ba(e)){if(s)return Y_(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return Q_(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(s&&ba(e))return Y_(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ba(e))return Q_(e,t.tickCount,t.allowDecimals,"adaptive")}}},LS=ie([IS,Xh,nd],P$),M$=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&ba(t)&&Array.isArray(n)&&n.length>0){var a,s,l=t[0],u=(a=n[0])!==null&&a!==void 0?a:0,d=t[1],f=(s=n[n.length-1])!==null&&s!==void 0?s:0;return[Math.min(l,u),Math.max(d,f)]}return t},Hxe=ie([fr,IS,LS,Un],M$),Gxe=ie(Zh,fr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Yi(e.map(p=>p.value))).sort((p,g)=>p-g),a=r[0],s=r[r.length-1];if(a==null||s==null)return 1/0;var l=s-a;if(l===0)return 1/0;for(var u=0;u<r.length-1;u++){var d=r[u],f=r[u+1];if(!(d==null||f==null)){var m=f-d;n=Math.min(n,m)}}return n/l}}),R$=ie(Gxe,Ot,p7,Fn,(e,t,n,r,a)=>a,(e,t,n,r,a)=>{if(!ht(e))return 0;var s=t==="vertical"?r.height:r.width;if(a==="gap")return e*s/2;if(a==="no-gap"){var l=Ki(n,e*s),u=e*s/2;return u-l-(u-l)/s*l}return 0}),Kxe=(e,t,n)=>{var r=Es(e,t);return r==null||typeof r.padding!="string"?0:R$(e,"xAxis",t,n,r.padding)},Yxe=(e,t,n)=>{var r=Ts(e,t);return r==null||typeof r.padding!="string"?0:R$(e,"yAxis",t,n,r.padding)},Qxe=ie(Es,Kxe,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var a=e.padding;return typeof a=="string"?{left:t,right:t}:{left:((n=a.left)!==null&&n!==void 0?n:0)+t,right:((r=a.right)!==null&&r!==void 0?r:0)+t}}),Xxe=ie(Ts,Yxe,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var a=e.padding;return typeof a=="string"?{top:t,bottom:t}:{top:((n=a.top)!==null&&n!==void 0?n:0)+t,bottom:((r=a.bottom)!==null&&r!==void 0?r:0)+t}}),D$=ie([Fn,Qxe,O0,_0,(e,t,n)=>n],(e,t,n,r,a)=>{var s=r.padding;return a?[s.left,n.width-s.right]:[e.left+t.left,e.left+e.width-t.right]}),I$=ie([Fn,Ot,Xxe,O0,_0,(e,t,n)=>n],(e,t,n,r,a,s)=>{var l=a.padding;return s?[r.height-l.bottom,l.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Jh=(e,t,n,r)=>{var a;switch(t){case"xAxis":return D$(e,n,r);case"yAxis":return I$(e,n,r);case"zAxis":return(a=OS(e,n))===null||a===void 0?void 0:a.range;case"angleAxis":return b7(e);case"radiusAxis":return w7(e,n);default:return}},L$=ie([fr,Jh],I0),Zxe=ie([nd,Hxe],_he),$S=ie([fr,nd,Zxe,L$],_S),$$=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var a=n.type,s=n.scale,l=Oo(e,r);if(l&&(a==="number"||s!=="auto"))return t.map(u=>u.value)}},BS=ie([Ot,Zh,Xh,Un],$$),K0=ie([$S],sS);ie([$S],cxe);ie([$S,Sxe],a$);ie([ed,DS,Un],Txe);function B$(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Y0=(e,t)=>t,Q0=(e,t,n)=>n,Jxe=ie(E0,Y0,Q0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(B$)),ege=ie(T0,Y0,Q0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(B$)),F$=(e,t)=>
76{var n=typeof t.height=="number"?t.height:qN;return{width:e.width,height:n}},tge=(e,t)=>{var n=typeof t.width=="number"?t.width:zh;return{width:n,height:e.height}},U$=ie(Fn,Es,F$),nge=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},rge=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},ige=ie(As,Fn,Jxe,Y0,Q0,(e,t,n,r,a)=>{var s={},l;return n.forEach(u=>{var d=F$(t,u);l==null&&(l=nge(t,r,e));var f=r==="top"&&!a||r==="bottom"&&a;s[u.id]=l-Number(f)*d.height,l+=(f?-1:1)*d.height}),s}),age=ie(ks,Fn,ege,Y0,Q0,(e,t,n,r,a)=>{var s={},l;return n.forEach(u=>{var d=tge(t,u);l==null&&(l=rge(t,r,e));var f=r==="left"&&!a||r==="right"&&a;s[u.id]=l-Number(f)*d.width,l+=(f?-1:1)*d.width}),s}),sge=(e,t)=>{var n=Es(e,t);if(n!=null)return ige(e,n.orientation,n.mirror)},oge=ie([Fn,Es,sge,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n?.[r];return a==null?{x:e.left,y:0}:{x:e.left,y:a}}}),lge=(e,t)=>{var n=Ts(e,t);if(n!=null)return age(e,n.orientation,n.mirror)},cge=ie([Fn,Ts,lge,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n?.[r];return a==null?{x:0,y:e.top}:{x:a,y:e.top}}}),z$=ie(Fn,Ts,(e,t)=>{var n=typeof t.width=="number"?t.width:zh;return{width:n,height:e.height}}),UO=(e,t,n)=>{switch(t){case"xAxis":return U$(e,n).width;case"yAxis":return z$(e,n).height;default:return}},V$=(e,t,n,r)=>{if(n!=null){var a=n.allowDuplicatedCategory,s=n.type,l=n.dataKey,u=Oo(e,r),d=t.map(m=>m.value),f=d.filter(m=>m!=null);if(l&&u&&s==="category"&&a&&f9(f))return d}},FS=ie([Ot,Zh,fr,Un],V$),zO=ie([Ot,yxe,nd,K0,FS,BS,Jh,LS,Un],(e,t,n,r,a,s,l,u,d)=>{if(t!=null){var f=Oo(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:s,duplicateDomain:a,isCategorical:f,niceTicks:u,range:l,realScaleType:n,scale:r}}}),uge=(e,t,n,r,a,s,l,u,d)=>{if(!(t==null||r==null)){var f=Oo(e,d),m=t.type,p=t.ticks,g=t.tickCount,y=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,w=m==="category"&&r.bandwidth?r.bandwidth()/y:0;w=d==="angleAxis"&&s!=null&&s.length>=2?Ir(s[0]-s[1])*2*w:w;var b=p||a;return b?b.map((N,k)=>{var C=l?l.indexOf(N):N,A=r.map(C);return ht(A)?{index:k,coordinate:A+w,value:N,offset:w}:null}).filter(Lr):f&&u?u.map((N,k)=>{var C=r.map(N);return ht(C)?{coordinate:C+w,value:N,index:k,offset:w}:null}).filter(Lr):r.ticks?r.ticks(g).map((N,k)=>{var C=r.map(N);return ht(C)?{coordinate:C+w,value:N,index:k,offset:w}:null}).filter(Lr):r.domain().map((N,k)=>{var C=r.map(N);return ht(C)?{coordinate:C+w,value:l?l[N]:N,index:k,offset:w}:null}).filter(Lr)}},W$=ie([Ot,Xh,nd,K0,LS,Jh,FS,BS,Un],uge),dge=(e,t,n,r,a,s,l)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=Oo(e,l),d=t.tickCount,f=0;return f=l==="angleAxis"&&r?.length>=2?Ir(r[0]-r[1])*2*f:f,u&&s?s.map((m,p)=>{var g=n.map(m);return ht(g)?{coordinate:g+f,value:m,index:p,offset:f}:null}).filter(Lr):n.ticks?n.ticks(d).map((m,p)=>{var g=n.map(m);return ht(g)?{coordinate:g+f,value:m,index:p,offset:f}:null}).filter(Lr):n.domain().map((m,p)=>{var g=n.map(m);return ht(g)?{coordinate:g+f,value:a?a[m]:m,index:p,offset:f}:null}).filter(Lr)}},_u=ie([Ot,Xh,K0,Jh,FS,BS,Un],dge),Ou=ie(fr,K0,(e,t)=>{if(!(e==null||t==null))return Cg(Cg({},e),{},{scale:t})}),fge=ie([fr,nd,IS,L$],_S),hge=ie([fge],sS);
76ie((e,t,n)=>OS(e,n),hge,(e,t)=>{if(!(e==null||t==null))return Cg(Cg({},e),{},{scale:t})});var mge=ie([Ot,E0,T0],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),pge=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};ie([pge],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,a=e[0];for(var s of e){var l=Math.abs(s.coordinate-t);l<r&&(r=l,a=s)}return(n=a)===null||n===void 0?void 0:n.value}});var q$=e=>e.options.defaultTooltipEventType,H$=e=>e.options.validateTooltipEventTypes;function G$(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function em(e,t){var n=q$(e),r=H$(e);return G$(t,n,r)}function xge(e){return Fe(t=>em(t,e))}var K$=(e,t)=>{var n,r=Number(t);if(!(Aa(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},gge=e=>e.tooltip.settings,xo={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0}
76,yge={itemInteraction:{click:xo,hover:xo},axisInteraction:{click:xo,hover:xo},keyboardInteraction:xo,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Y$=dr({name:"tooltip",initialState:yge,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(xt(t.payload))},prepare:It()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=ji(e).tooltipItemPayloads.indexOf(xt(r));s>-1&&(e.tooltipItemPayloads[s]=xt(a))},prepare:It()},removeTooltipEntrySettings:{reducer(e,t){var n=ji(e).tooltipItemPayloads.indexOf(xt(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:It()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),_i=Y$.actions,vge=_i.addTooltipEntrySettings,bge=_i.replaceTooltipEntrySettings,wge=_i.removeTooltipEntrySettings,jge=_i.setTooltipSettingsState,Q$=_i.setActiveMouseOverItemIndex,Nge=_i.mouseLeaveItem,X$=_i.mouseLeaveChart,Sge=_i.setActiveClickItemIndex,Z$=_i.setMouseOverAxisIndex,kge=_i.setMouseClickAxisIndex,Pf=_i.setSyncInteraction,Tg=_i.setKeyboardInteraction,Age=Y$.reducer;function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach(function(r){Cge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cge(e,t,n){return(t=Ege(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ege(e){var t=Tge(e,"string");return typeof t=="symbol"?t:t+""}function Tge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ge(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Oge(e){return e.index!=null}var J$=(e,t,n,r)=>{if(t==null)return xo;var a=_ge(e,t,n);if(a==null)return xo;if(a.active)return a;
76if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var s=e.settings.active===!0;if(Oge(a)){if(s)return qp(qp({},a),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return qp(qp({},xo),{},{coordinate:a.coordinate})};function Pge(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Mge(e,t){var n=Pge(e),r=t[0],a=t[1];if(n===void 0)return!1;var s=Math.min(r,a),l=Math.max(r,a);return n>=s&&n<=l}function Rge(e,t,n){if(n==null||t==null)return!0;var r=Bn(e,t);return r==null||!ba(n)?!0:Mge(r,n)}var Gf=(e,t,n,r)=>{var a=e?.index;if(a==null)return null;var s=Number(a);if(!ht(s))return a;var l=0,u=1/0;t.length>0&&(u=t.length-1);var d=Math.max(l,Math.min(s,u)),f=t[d];return f==null||Rge(f,n,r)?String(d):null},eB=(e,t,n,r,a,s,l)=>{if(s!=null){var u=l[0],d=u?.getPosition(s);if(d!=null)return d;var f=a?.[Number(s)];if(f)return n==="horizontal"?{x:f.coordinate,y:(r.top+t)/2}:{x:(r.left+e)/2,y:f.coordinate}}},tB=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var a;if(n==="hover"?a=e.itemInteraction.hover.graphicalItemId:a=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&a==null)return e.tooltipItemPayloads;if(a==null&&(r!=null||e.keyboardInteraction.active)){var s=e.tooltipItemPayloads[0];return s!=null?[s]:[]}return e.tooltipItemPayloads.filter(l=>{var u;return((u=l.settings)===null||u===void 0?void 0:u.graphicalItemId)===a})},nB=e=>e.options.tooltipPayloadSearcher,rd=e=>e.tooltip;function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){Dge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dge(e,t,n){return(t=Ige(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ige(e){var t=Lge(e,"string");return typeof t=="symbol"?t:t+""}function Lge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ge(e){if(typeof e=="string"||typeof e=="number")return e}function Bge(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function Fge(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function HO(e){if(typeof e=="string")return e}function Uge(e){if(!(e==null||typeof e!="object")){var t="name"in e?$ge(e.name):void 0,n="unit"in e?Bge(e.unit):void 0,r="dataKey"in e?Fge(e.dataKey):void 0,a="payload"in e?e.payload:void 0,s="color"in e?HO(e.color):void 0,l="fill"in e?HO(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:a,color:s,fill:l}}}function zge(e,t){return e??t}var rB=(e,t,n,r,a,s,l)=>{if(!(t==null||s==null)){var u=n.chartData,d=n.computedData,f=n.dataStartIndex,m=n.dataEndIndex,p=[];return e.reduce((g,y)=>{var w,b=y.dataDefinedOnItem,N=y.settings,k=zge(b,u),C=Array.isArray(k)?PL(k,f,m):k,A=(w=N?.dataKey)!==null&&w!==void 0?w:r,E=N?.nameKey,_;if(r&&Array.isArray(C)&&!Array.isArray(C[0])&&l==="axis"?(_=ooe(C,r,a),_==null&&(_=s(C,t,d,E))):_=s(C,t,d,E),Array.isArray(_))_.forEach(M=>{var P,D,U=Uge(M),L=U?.name,$=U?.dataKey,G=U?.payload,H=qO(qO({},N),{},{name:L,unit:U?.unit,color:(P=U?.color)!==null&&P!==void 0?P:N?.color,fill:(D=U?.fill)!==null&&D!==void 0?D:N?.fill});
76g.push(W3({tooltipEntrySettings:H,dataKey:$,payload:G,value:Bn(G,$),name:L==null?void 0:String(L)}))});else{var T;g.push(W3({tooltipEntrySettings:N,dataKey:A,payload:_,value:Bn(_,A),name:(T=Bn(_,E))!==null&&T!==void 0?T:N?.name}))}return g},p)}},US=ie([Pn,c$,JN],i$),Vge=ie([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Wge=ie([zn,Zu],u$),Zl=ie([Vge,Pn,Wge],d$,{memoizeOptions:{resultEqualityCheck:U0}}),qge=ie([Zl],e=>e.filter(F0)),iB=ie([Zl],m$,{memoizeOptions:{resultEqualityCheck:U0}}),Hge=ie([Zl],e=>e.some(t=>!t.data)),Il=ie([iB,Ji],x$),Gge=ie([qge,Ji,Pn],N7),zS=ie([Il,Pn,Zl,Ji,Hge,iB],g$),aB=ie([Pn],RS),Kge=ie([Pn],e=>e.allowDataOverflow),sB=ie([aB,Kge],r7),Yge=ie([Zl],e=>e.filter(F0)),Qge=ie([Gge,Yge,D0,x7],v$),Xge=ie([Qge,Ji,zn,sB],b$),Zge=ie([Zl],h$),Jge=ie([Il,Pn,Zge,DS,zn,ohe],N$,{memoizeOptions:{resultEqualityCheck:Hh}}),e0e=ie([S$,zn,Zu],td),t0e=ie([e0e,zn],C$),n0e=ie([k$,zn,Zu],td),r0e=ie([n0e,zn],E$),i0e=ie([A$,zn,Zu],td),a0e=ie([i0e,zn],T$),s0e=ie([t0e,a0e,r0e],Eg),o0e=ie([Pn,aB,sB,Xge,Jge,s0e,Ot,zn],_$),Pu=ie([Pn,Ot,Il,zS,D0,zn,o0e],O$),l0e=ie([Pu,Pn,US],P$),c0e=ie([Pn,Pu,l0e,zn],M$),oB=e=>{var t=zn(e),n=Zu(e),r=!1;return Jh(e,t,n,r)},lB=ie([Pn,oB],I0),u0e=ie([Pn,US,c0e,lB],_S),cB=ie([u0e],sS),d0e=ie([Ot,zS,Pn,zn],V$),f0e=ie([Ot,zS,Pn,zn],$$),h0e=(e,t,n,r,a,s,l,u)=>{if(t){var d=t.type,f=Oo(e,u);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=d==="category"&&r.bandwidth?r.bandwidth()/m:0;return p=u==="angleAxis"&&a!=null&&a?.length>
76=2?Ir(a[0]-a[1])*2*p:p,f&&l?l.map((g,y)=>{var w=r.map(g);return ht(w)?{coordinate:w+p,value:g,index:y,offset:p}:null}).filter(Lr):r.domain().map((g,y)=>{var w=r.map(g);return ht(w)?{coordinate:w+p,value:s?s[g]:g,index:y,offset:p}:null}).filter(Lr)}}},_s=ie([Ot,Pn,US,cB,oB,d0e,f0e,zn],h0e),VS=ie([q$,H$,gge],(e,t,n)=>G$(n.shared,e,t)),uB=e=>e.tooltip.settings.trigger,WS=e=>e.tooltip.settings.defaultIndex,tm=ie([rd,VS,uB,WS],J$),Mu=ie([tm,Il,Tu,Pu],Gf),dB=ie([_s,Mu],K$),fB=ie([tm],e=>{if(e)return e.dataKey}),m0e=ie([tm],e=>{if(e)return e.graphicalItemId}),hB=ie([rd,VS,uB,WS],tB),p0e=ie([ks,As,Ot,Fn,_s,WS,hB],eB),x0e=ie([tm,p0e],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),g0e=ie([tm],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),y0e=ie([hB,Mu,Ji,Tu,dB,nB,VS],rB);ie([y0e],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function KO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(n),!0).forEach(function(r){v0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v0e(e,t,n){return(t=b0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0e(e){var t=w0e(e,"string");return typeof t=="symbol"?t:t+""}function w0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j0e=()=>Fe(Pn),N0e=()=>{var e=j0e(),t=Fe(_s),n=Fe(cB);return lg(!e||!n?void 0:KO(KO({},e),{},{scale:n}),t)};function YO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(n),!0).forEach(function(r){S0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S0e(e,t,n){return(t=k0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k0e(e){var t=A0e(e,"string");return typeof t=="symbol"?t:t+""}function A0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C0e=(e,t,n,r)=>{var a=t.find(s=>s&&s.index===n);if(a){if(e==="horizontal")return{x:a.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:a.coordinate}}return{x:0,y:0}},E0e=(e,t,n,r)=>{var a=t.find(f=>f&&f.index===n);if(a){if(e==="centric"){var s=a.coordinate,l=r.radius;return Gc(Gc(Gc({},r),Xn(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}var u=a.coordinate,d=r.angle;return Gc(Gc(Gc({},r),Xn(r.cx,r.cy,u,d)),{},{angle:d,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function T0e(e,t){var n=e.relativeX,r=e.relativeY;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var mB=(e,t,n,r,a)=>{var s,l=(s=t?.length)!==null&&s!==void 0?s:0;if(l<=1||e==null)return 0;if(r==="angleAxis"&&a!=null&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var u=a[1]-a[0],d=(V,B,K)=>[e,e+u,e-u].some(Q=>(K?Q>=V:Q>V)&&Q<=B),f=0;f<l;f++){var m,p,g,y,w,b=f>0?(m=n[f-1])===null||m===void 0?void 0:m.coordinate:(p=n[l-1])===null||p===void 0?void 0:p.coordinate,N=(g=n[f])===null||g===void 0?void 0:g.coordinate,k=f>=l-1?(y=n[0])===null||y===void 0?void 0:y.coordinate:(w=n[f+1])===null||w===void 0?void 0:w.coordinate,C=void 0;if(!(b==null||N==null||k==null))if(Ir(N-b)!==Ir(k-N)){var A=[];
76if(Ir(k-N)===Ir(a[1]-a[0])){C=k;var E=N+a[1]-a[0];A[0]=Math.min(E,(E+b)/2),A[1]=Math.max(E,(E+b)/2)}else{C=b;var _=k+a[1]-a[0];A[0]=Math.min(N,(_+N)/2),A[1]=Math.max(N,(_+N)/2)}var T=[Math.min(N,(C+N)/2),Math.max(N,(C+N)/2)];if(d(T[0],T[1],!1)||d(A[0],A[1],!0)){var M;return(M=n[f])===null||M===void 0?void 0:M.index}}else{var P=Math.min(b,k),D=Math.max(b,k);if(d((P+N)/2,(D+N)/2,!1)){var U;return(U=n[f])===null||U===void 0?void 0:U.index}}}else if(t)for(var L=0;L<l;L++){var $=t[L];if($!=null){var G=t[L+1],H=t[L-1];if(L===0&&G!=null&&e<=($.coordinate+G.coordinate)/2||L===l-1&&H!=null&&e>($.coordinate+H.coordinate)/2||L>0&&L<l-1&&H!=null&&G!=null&&e>($.coordinate+H.coordinate)/2&&e<=($.coordinate+G.coordinate)/2)return $.index}}return-1},_0e=()=>Fe(JN),qS=(e,t)=>t,pB=(e,t,n)=>n,HS=(e,t,n,r)=>r,O0e=ie(_s,e=>g0(e,t=>t.coordinate)),GS=ie([rd,qS,pB,HS],J$),KS=ie([GS,Il,Tu,Pu],Gf),P0e=(e,t,n)=>{if(t!=null){var r=rd(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},xB=ie([rd,qS,pB,HS],tB),_g=ie([ks,As,Ot,Fn,_s,HS,xB],eB),M0e=ie([GS,_g],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),gB=ie([_s,KS],K$),R0e=ie([xB,KS,Ji,Tu,gB,nB,qS],rB),D0e=ie([GS,KS],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),I0e=(e,t,n,r,a,s,l)=>{if(!(!e||!n||!r||!a)&&T0e(e,l)){var u=aue(e,t),d=mB(u,s,a,n,r),f=C0e(t,a,d,e);return{activeIndex:String(d),activeCoordinate:f}}},L0e=(e,t,n,r,a,s,l)=>{if(!(!e||!r||!a||!s||!n)){var u=Zfe(e,n);if(u){var d=sue(u,t),f=mB(d,l,s,r,a),m=E0e(t,s,f,u);return{activeIndex:String(f),activeCoordinate:m}}}},$0e=(e,t,n,r,a,s,l,u)=>{if(!(!e||!t||!r||!a||!s))return t==="horizontal"||t==="vertical"?I0e(e,t,r,a,s,l,u):L0e(e,t,n,r,a,s,l)},B0e=ie(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),F0e=ie(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(kr)),n=Array.from(new Set(t));return n.sort((r,a)=>r-a)},{memoizeOptions:{resultEqualityCheck:The}});function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(n),!0).forEach(function(r){U0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U0e(e,t,n){return(t=z0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z0e(e){var t=V0e(e,"string");return typeof t=="symbol"?t:t+""}function V0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W0e={},q0e={zIndexMap:Object.values(kr).reduce((e,t)=>XO(XO({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),W0e)},H0e=new Set(Object.values(kr));function G0e(e){return H0e.has(e)}var yB=dr({name:"zIndex",initialState:q0e,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:It()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!G0e(n)&&delete e.zIndexMap[n])},prepare:It()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,a=n.element,s=n.isPanorama;e.zIndexMap[r]?s?e.zIndexMap[r].panoramaElement=xt(a):e.zIndexMap[r].element=xt(a):e.zIndexMap[r]={consumers:0,element:s?void 0:xt(a),panoramaElement:s?xt(a):void 0}},prepare:It()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:It()}}}),X0=yB.actions,K0e=X0.registerZIndexPortal,R1=X0.unregisterZIndexPortal,Y0e=X0.registerZIndexPortalElement,Q0e=X0.unregisterZIndexPortalElement,X0e=yB.reducer;function Os(e){var t=e.zIndex,n=e.children,r=Vue(),a=r&&t!==void 0&&t!==0,s=zr(),l=v.useRef(void 0),u=v.useRef(new Set),d=Wt(),f=Fe(p=>B0e(p,t,s));if(v.useLayoutEffect(()=>{if(!a){var p=u.current;p.forEach(y=>{d(R1({zIndex:y}))}),p.clear(),l.current=void 0;return}if(u.current.has(t)||(d(K0e({zIndex:t})),u.current.add(t)),f){l.current=f;var g=u.current;g.forEach(y=>{y!==t&&(d(R1({zIndex:y})),g.delete(y))})}},[d,t,a,f]),v.useLayoutEffect(()=>{var p=u.current;return()=>{p.forEach(g=>{d(R1({zIndex:g}))}),p.clear()}},[d]),!a)return n;var m=f??l.current;return m?Ss.createPortal(n,m):null}function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R2.apply(null,arguments)}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
76t%2?ZO(Object(n),!0).forEach(function(r){Z0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z0e(e,t,n){return(t=J0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J0e(e){var t=eye(e,"string");return typeof t=="symbol"?t:t+""}function eye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tye(e){var t=e.cursor,n=e.cursorComp,r=e.cursorProps;return v.isValidElement(t)?v.cloneElement(t,r):v.createElement(n,r)}function nye(e){var t,n=e.coordinate,r=e.payload,a=e.index,s=e.offset,l=e.tooltipAxisBandSize,u=e.layout,d=e.cursor,f=e.tooltipEventType,m=e.chartName,p=n,g=r,y=a;if(!d||!p||m!=="ScatterChart"&&f!=="axis")return null;var w,b,N;if(m==="ScatterChart")w=p,b=ofe,N=kr.cursorLine;else if(m==="BarChart")w=lfe(u,p,s,l),b=JL,N=kr.cursorRectangle;else if(u==="radial"&&C9(p)){var k=e7(p),C=k.cx,A=k.cy,E=k.radius,_=k.startAngle,T=k.endAngle;w={cx:C,cy:A,startAngle:_,endAngle:T,innerRadius:E,outerRadius:E},b=nhe,N=kr.cursorLine}else w={points:rhe(u,p,s)},b=Zde,N=kr.cursorLine;var M=typeof d=="object"&&"className"in d?d.className:void 0,P=Hp(Hp(Hp(Hp({stroke:"#ccc",pointerEvents:"none"},s),w),EN(d)),{},{payload:g,payloadIndex:y,className:Bt("recharts-tooltip-cursor",M)});return v.createElement(Os,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:N},v.createElement(tye,{cursor:d,cursorComp:b,cursorProps:P}))}function rye(e){var t=N0e(),n=FL(),r=Yu(),a=_0e();return t==null||n==null||r==null||a==null?null:v.createElement(nye,R2({}
76,e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:a}))}var vB=v.createContext(null),iye=()=>v.useContext(vB),D1={exports:{}},JO;function aye(){return JO||(JO=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(d,f,m){this.fn=d,this.context=f,this.once=m||!1}function s(d,f,m,p,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var y=new a(m,p||d,g),w=n?n+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],y]:d._events[w].push(y):(d._events[w]=y,d._eventsCount++),d}function l(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)t.call(m,p)&&f.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},u.prototype.listeners=function(f){var m=n?n+f:f,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,y=p.length,w=new Array(y);g<y;g++)w[g]=p[g].fn;return w},u.prototype.listenerCount=function(f){var m=n?n+f:f,p=this._events[m];return p?p.fn?1:p.length:0},u.prototype.emit=function(f,m,p,g,y,w){var b=n?n+f:f;if(!this._events[b])return!1;var N=this._events[b],k=arguments.length,C,A;if(N.fn){switch(N.once&&this.removeListener(f,N.fn,void 0,!0),k){case 1:return N.fn.call(N.context),!0;case 2:return N.fn.call(N.context,m),!0;case 3:return N.fn.call(N.context,m,p),!0;case 4:return N.fn.call(N.context,m,p,g),!0;case 5:return N.fn.call(N.context,m,p,g,y),!0;case 6:return N.fn.call(N.context,m,p,g,y,w),!0}for(A=1,C=new Array(k-1);A<k;A++)C[A-1]=arguments[A];N.fn.apply(N.context,C)}else{var E=N.length,_;for(A=0;A<E;A++)switch(N[A].once&&this.removeListener(f,N[A].fn,void 0,!0),k){case 1:N[A].fn.call(N[A].context);break;case 2:N[A].fn.call(N[A].context,m);break;case 3:N[A].fn.call(N[A].context,m,p);break;case 4:N[A].fn.call(N[A].context,m,p,g);break;default:if(!C)for(_=1,C=new Array(k-1);_<k;_++)C[_-1]=arguments[_];N[A].fn.apply(N[A].context,C)}}return!0},u.prototype.on=function(f,m,p){return s(this,f,m,p,!1)},u.prototype.once=function(f,m,p){return s(this,f,m,p,!0)},u.prototype.removeListener=function(f,m,p,g){var y=n?n+f:f;if(!this._events[y])return this;if(!m)return l(this,y),this;var w=this._events[y];if(w.fn)w.fn===m&&(!g||w.once)&&(!p||w.context===p)&&l(this,y);else{for(var b=0,N=[],k=w.length;b<k;b++)(w[b].fn!==m||g&&!w[b].once||p&&w[b].context!==p)&&N.push(w[b]);N.length?this._events[y]=N.length===1?N[0]:N:l(this,y)}return this},u.prototype.removeAllListeners=function(f){var m;return f?(m=n?n+f:f,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(D1)),D1.exports}var sye=aye();const oye=Ah(sye);var vh=new oye,D2="recharts.syncEvent.tooltip",eP="recharts.syncEvent.brush",lye=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Aa(n))return e[n]}},cye={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},bB=dr({name:"options",initialState:cye,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),uye=bB.reducer,dye=bB.actions.createEventEmitter;function fye(e){return e.tooltip.syncInteraction}var hye={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},wB=dr({name:"chartData",initialState:hye,reducers:{setChartData(e,t){if(e.chartData=xt(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,r=n.startIndex,a=n.endIndex;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),YS=wB.actions,tP=YS.setChartData,mye=YS.setDataStartEndIndexes;YS.setComputedData;var pye=wB.reducer,xye=["x","y"];function nP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
76t%2?nP(Object(n),!0).forEach(function(r){gye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gye(e,t,n){return(t=yye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yye(e){var t=vye(e,"string");return typeof t=="symbol"?t:t+""}function vye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bye(e,t){if(e==null)return{};var n,r,a=wye(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function wye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jye(){var e=Fe(eS),t=Fe(tS),n=Wt(),r=Fe(g7),a=Fe(_s),s=Yu(),l=P0(),u=Fe(d=>d.rootProps.className);v.useEffect(()=>{if(e==null)return Ku;var d=(f,m,p)=>{if(t!==p&&e===f){if(m.payload.active===!1){n(Pf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r==="index"){var g;if(l&&m!==null&&m!==void 0&&(g=m.payload)!==null&&g!==void 0&&g.coordinate&&m.payload.sourceViewBox){var y=m.payload.coordinate,w=y.x,b=y.y,N=bye(y,xye),k=m.payload.sourceViewBox,C=k.x,A=k.y,E=k.width,_=k.height,T=Kc(Kc({},N),{},{x:l.x+(E?(w-C)/E:0)*l.width,y:l.y+(_?(b-A)/_:0)*l.height});n(Kc(Kc({},m),{},{payload:Kc(Kc({},m.payload),{},{coordinate:T})}))}else n(m);return}if(a!=null){var M;if(typeof r=="function"){var P={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},D=r(a,P);M=a[D]}else r==="value"&&(M=a.find(K=>String(K.value)===m.payload.label));var U=m.payload.coordinate;if(U==null||l==null){n(Pf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(M==null){n(Pf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:void 0}));return}var L=U.x,$=U.y,G=Math.min(L,l.x+l.width),H=Math.min($,l.y+l.height),V={x:s==="horizontal"?M.coordinate:G,y:s==="horizontal"?H:M.coordinate},B=Pf({active:m.payload.active,coordinate:V,dataKey:m.payload.dataKey,index:String(M.index),label:m.payload.label,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:m.payload.graphicalItemId});n(B)}}};return vh.on(D2,d),()=>{vh.off(D2,d)}},[u,n,t,e,r,a,s,l])}function Nye(){var e=Fe(eS),t=Fe(tS),n=Wt();v.useEffect(()=>{if(e==null)return Ku;var r=(a,s,l)=>{t!==l&&e===a&&n(mye(s))};return vh.on(eP,r),()=>{vh.off(eP,r)}},[n,t,e])}function Sye(){var e=Wt();v.useEffect(()=>{e(dye())},[e]),jye(),Nye()}function kye(e,t,n,r,a,s){var l=Fe(w=>P0e(w,e,t)),u=Fe(m0e),d=Fe(tS),f=Fe(eS),m=Fe(g7),p=Fe(fye),g=p?.sourceViewBox!=null,y=P0();v.useEffect(()=>{if(!g&&f!=null&&d!=null){var w=Pf({active:s,coordinate:n,dataKey:l,index:a,label:typeof r=="number"?String(r):r,sourceViewBox:y,graphicalItemId:u});vh.emit(D2,f,w,d)}},[g,n,l,u,a,r,d,f,m,s,y])}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(n),!0).forEach(function(r){Aye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aye(e,t,n){return(t=Cye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cye(e){var t=Eye(e,"string");return typeof t=="symbol"?t:t+""}function Eye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tye(e,t){return Mye(e)||Pye(e,t)||Oye(e,t)||_ye()}
76function _ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 77In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oye(e,t){if(e){if(typeof e=="string")return aP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aP(e,t):void 0}}function aP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Mye(e){if(Array.isArray(e))return e}function Rye(e){return e.dataKey}function Dye(e,t){return v.isValidElement(e)?v.cloneElement(e,t):typeof e=="function"?v.createElement(e,t):v.createElement(kde,t)}var sP=[],Iye={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function oP(e){var t,n,r=Ei(e,Iye),a=r.active,s=r.allowEscapeViewBox,l=r.animationDuration,u=r.animationEasing,d=r.content,f=r.filterNull,m=r.isAnimationActive,p=r.offset,g=r.payloadUniqBy,y=r.position,w=r.reverseDirection,b=r.useTranslate3d,N=r.wrapperStyle,k=r.cursor,C=r.shared,A=r.trigger,E=r.defaultIndex,_=r.portal,T=r.axisId,M=Wt(),P=typeof E=="number"?String(E):E;v.useEffect(()=>{M(jge({shared:C,trigger:A,axisId:T,active:a,defaultIndex:P}))},[M,C,A,T,a,P]);var D=P0(),U=GL(),L=xge(C),$=(t=Fe(he=>D0e(he,L,A,P)))!==null&&t!==void 0?t:{},G=$.activeIndex,H=$.isActive,V=Fe(he=>R0e(he,L,A,P)),B=Fe(he=>gB(he,L,A,P)),K=Fe(he=>M0e(he,L,A,P)),Q=V,ce=iye(),I=(n=a??H)!==null&&n!==void 0?n:!1,J=zle([Q,I]),fe=Tye(J,2),ue=fe[0],ve=fe[1],Se=L==="axis"?B:void 0;kye(L,A,K,Se,G,I);var Ne=_??ce;if(Ne==null||D==null||L==null)return null;var ge=Q??sP;I||(ge=sP),f&&ge.length&&(ge=hle(ge.filter(he=>he.value!=null&&(he.hide!==!0||r.includeHidden)),g,Rye));var ke=ge.length>0,le=iP(iP({},r),{},{payload:ge,label:Se,active:I,activeIndex:G,coordinate:K,accessibilityLayer:U}),we=v.createElement(Hde,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:m,active:I,coordinate:K,hasPayload:ke,offset:p,position:y,reverseDirection:w,useTranslate3d:b,viewBox:D,wrapperStyle:N,lastBoundingBox:ue,innerRef:ve,hasPortalFromProps:!!_},Dye(d,le));return v.createElement(v.Fragment,null,Ss.createPortal(we,Ne),I&&v.createElement(rye,{cursor:k,tooltipEventType:L,coordinate:K,payload:ge,index:G}))}var jB=e=>null;jB.displayName="Cell";function Lye(e,t,n){return(t=$ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ye(e){var t=Bye(e,"string");return typeof t=="symbol"?t:t+""}function Bye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Fye{constructor(t){Lye(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
77t%2?lP(Object(n),!0).forEach(function(r){zye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zye(e,t,n){return(t=Vye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vye(e){var t=Wye(e,"string");return typeof t=="symbol"?t:t+""}function Wye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qye={cacheSize:2e3,enableCache:!0},NB=Uye({},qye),cP=new Fye(NB.cacheSize),Hye={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},uP="recharts_measurement_span";function Gye(e,t){var n=t.fontSize||"",r=t.fontFamily||"",a=t.fontWeight||"",s=t.fontStyle||"",l=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(a,"|").concat(s,"|").concat(l,"|").concat(u)}var dP=(e,t)=>{try{var n=document.getElementById(uP);n||(n=document.createElement("span"),n.setAttribute("id",uP),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Hye,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Kf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||qh.isSsr)return{width:0,height:0};if(!NB.enableCache)return dP(t,n);var r=Gye(t,n),a=cP.get(r);if(a)return a;var s=dP(t,n);return cP.set(r,s),s},SB;function Og(e,t){return Xye(e)||Qye(e,t)||Yye(e,t)||Kye()}function Kye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 78In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yye(e,t){if(e){if(typeof e=="string")return fP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fP(e,t):void 0}}function fP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Xye(e){if(Array.isArray(e))return e}function Zye(e,t,n){return(t=Jye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jye(e){var t=eve(e,"string");return typeof t=="symbol"?t:t+""}function eve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tve=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,nve=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,rve={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ive=["cm","mm","pt","pc","in","Q","px"];function ave(e){return ive.includes(e)}var pu="NaN";function sve(e,t){return e*rve[t]}class Qn{static parse(t){var n,r=(n=nve.exec(t))!==null&&n!==void 0?n:[],a=Og(r,3),s=a[1],l=a[2];return s==null?Qn.NaN:new Qn(parseFloat(s),l??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Aa(t)&&(this.unit=""),n!==""&&!tve.test(n)&&(this.num=NaN,this.unit=""),ave(n)&&(this.num=sve(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Aa(this.num)}}SB=Qn;Zye(Qn,"NaN",new SB(NaN,""));function kB(e){if(e==null||e.includes(pu))return pu;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=hP.exec(t))!==null&&n!==void 0?n:[],a=Og(r,4),s=a[1],l=a[2],u=a[3],d=Qn.parse(s??""),f=Qn.parse(u??""),m=l==="*"?d.multiply(f):d.divide(f);if(m.isNaN())return pu;t=t.replace(hP,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,g=(p=mP.exec(t))!==null&&p!==void 0?p:[],y=Og(g,4),w=y[1],b=y[2],N=y[3],k=Qn.parse(w??""),C=Qn.parse(N??""),A=b==="+"?k.add(C):k.subtract(C);if(A.isNaN())return pu;t=t.replace(mP,A.toString())}return t}var pP=/\(([^()]*)\)/;function ove(e){for(var t=e,n;(n=pP.exec(t))!=null;){var r=n,a=Og(r,2),s=a[1];t=t.replace(pP,kB(s))}return t}function lve(e){var t=e.replace(/\s+/g,"");return t=ove(t),t=kB(t),t}function cve(e){try{return lve(e)}catch{return pu}}
78function I1(e){var t=cve(e.slice(5,-1));return t===pu?"":t}var uve=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],dve=["dx","dy","angle","className","breakAll"];function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I2.apply(null,arguments)}function xP(e,t){if(e==null)return{};var n,r,a=fve(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gP(e,t){return xve(e)||pve(e,t)||mve(e,t)||hve()}function hve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 79In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mve(e,t){if(e){if(typeof e=="string")return yP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yP(e,t):void 0}}function yP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function xve(e){if(Array.isArray(e))return e}var AB=/[ \f\n\r\t\v\u2028\u2029]+/,CB=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var a=[];Tn(t)||(n?a=t.toString().split(""):a=t.toString().split(AB));var s=a.map(u=>({word:u,width:Kf(u,r).width})),l=n?0:Kf(" ",r).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}};function EB(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function gve(e){return Tn(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var TB=(e,t,n,r)=>e.reduce((a,s)=>{var l=s.word,u=s.width,d=a[a.length-1];if(d&&u!=null&&(t==null||r||d.width+u+n<Number(t)))d.words.push(l),d.width+=u+n;else{var f={words:[l],width:u};a.push(f)}return a},[]),_B=e=>e.reduce((t,n)=>t.width>n.width?t:n),yve="â¦",vP=(e,t,n,r,a,s,l,u)=>{var d=e.slice(0,t),f=CB({breakAll:n,style:r,children:d+yve});if(!f)return[!1,[]];var m=TB(f.wordsWithComputedWidth,s,l,u),p=m.length>a||_B(m).width>Number(s);return[p,m]},vve=(e,t,n,r,a)=>{var s=e.maxLines,l=e.children,u=e.style,d=e.breakAll,f=Le(s),m=String(l),p=TB(t,r,n,a);if(!f||a)return p;var g=p.length>s||_B(p).width>Number(r);
79if(!g)return p;for(var y=0,w=m.length-1,b=0,N;y<=w&&b<=m.length-1;){var k=Math.floor((y+w)/2),C=k-1,A=vP(m,C,d,u,s,r,n,a),E=gP(A,2),_=E[0],T=E[1],M=vP(m,k,d,u,s,r,n,a),P=gP(M,1),D=P[0];if(!_&&!D&&(y=k+1),_&&D&&(w=k-1),!_&&D){N=T;break}b++}return N||p},bP=e=>{var t=Tn(e)?[]:e.toString().split(AB);return[{words:t,width:void 0}]},bve=e=>{var t=e.width,n=e.scaleToFit,r=e.children,a=e.style,s=e.breakAll,l=e.maxLines;if((t||n)&&!qh.isSsr){var u,d,f=CB({breakAll:s,children:r,style:a});if(f){var m=f.wordsWithComputedWidth,p=f.spaceWidth;u=m,d=p}else return bP(r);return vve({breakAll:s,children:r,maxLines:l,style:a},u,d,t,!!n)}return bP(r)},OB="#808080",wve={angle:0,breakAll:!1,capHeight:"0.71em",fill:OB,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},QS=v.forwardRef((e,t)=>{var n=Ei(e,wve),r=n.x,a=n.y,s=n.lineHeight,l=n.capHeight,u=n.fill,d=n.scaleToFit,f=n.textAnchor,m=n.verticalAnchor,p=xP(n,uve),g=v.useMemo(()=>bve({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:d,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,d,p.style,p.width]),y=p.dx,w=p.dy,b=p.angle,N=p.className,k=p.breakAll,C=xP(p,dve);if(!Ca(r)||!Ca(a)||g.length===0)return null;var A=Number(r)+(Le(y)?y:0),E=Number(a)+(Le(w)?w:0);if(!ht(A)||!ht(E))return null;var _;switch(m){case"start":_=I1("calc(".concat(l,")"));break;case"middle":_=I1("calc(".concat((g.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:_=I1("calc(".concat(g.length-1," * -").concat(s,")"));break}var T=[],M=g[0];if(d&&M!=null){var P=M.width,D=p.width;T.push("scale(".concat(Le(D)&&Le(P)?D/P:1,")"))}return b&&T.push("rotate(".concat(b,", ").concat(A,", ").concat(E,")")),T.length&&(C.transform=T.join(" ")),v.createElement("text",I2({},ps(C),{ref:t,x:A,y:E,className:Bt("recharts-text",N),textAnchor:f,fill:u.includes("url")?OB:u}),g.map((U,L)=>{var $=U.words.join(k?"":" ");return v.createElement("tspan",{x:A,dy:L===0?_:s,key:"".concat($,"-").concat(L)},$)}))});QS.displayName="Text";var jve=["labelRef"],Nve=["content"];function wP(e,t){if(e==null)return{};var n,r,a=Sve(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Sve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ml(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){kve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kve(e,t,n){return(t=Ave(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ave(e){var t=Cve(e,"string");return typeof t=="symbol"?t:t+""}function Cve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},es.apply(null,arguments)}var PB=v.createContext(null),Eve=e=>{var t=e.x,n=e.y,r=e.upperWidth,a=e.lowerWidth,s=e.width,l=e.height,u=e.children,d=v.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:a,width:s,height:l}),[t,n,r,a,s,l]);return v.createElement(PB.Provider,{value:d},u)},MB=()=>{var e=v.useContext(PB),t=P0();return e||(t?PN(t):void 0)},Tve=v.createContext(null),_ve=()=>{var e=v.useContext(Tve),t=Fe(j7);return e||t},Ove=e=>{var t=e.value,n=e.formatter,r=Tn(e.children)?t:e.children;return typeof n=="function"?n(r):r},Z0=e=>e!=null&&typeof e=="function",Pve=(e,t)=>
79{var n=Ir(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Mve=(e,t,n,r,a)=>{var s=e.offset,l=e.className,u=a.cx,d=a.cy,f=a.innerRadius,m=a.outerRadius,p=a.startAngle,g=a.endAngle,y=a.clockWise,w=(f+m)/2,b=Pve(p,g),N=b>=0?1:-1,k,C;switch(t){case"insideStart":k=p+N*s,C=y;break;case"insideEnd":k=g-N*s,C=!y;break;case"end":k=g+N*s,C=y;break;default:throw new Error("Unsupported position ".concat(t))}C=b<=0?C:!C;var A=Xn(u,d,w,k),E=Xn(u,d,w,k+(C?1:-1)*359),_="M".concat(A.x,",").concat(A.y,` 80 A`).concat(w,",").concat(w,",0,1,").concat(C?0:1,`, 81 `).concat(E.x,",").concat(E.y),T=Tn(e.id)?lh("recharts-radial-line-"):e.id;return v.createElement("text",es({},r,{dominantBaseline:"central",className:Bt("recharts-radial-bar-label",l)}),v.createElement("defs",null,v.createElement("path",{id:T,d:_})),v.createElement("textPath",{xlinkHref:"#".concat(T)},n))},Rve=(e,t,n)=>{var r=e.cx,a=e.cy,s=e.innerRadius,l=e.outerRadius,u=e.startAngle,d=e.endAngle,f=(u+d)/2;if(n==="outside"){var m=Xn(r,a,l+t,f),p=m.x,g=m.y;return{x:p,y:g,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"end"};var y=(s+l)/2,w=Xn(r,a,y,f),b=w.x,N=w.y;return{x:b,y:N,textAnchor:"middle",verticalAnchor:"middle"}},ou=e=>e!=null&&"cx"in e&&Le(e.cx),Dve={angle:0,offset:5,zIndex:kr.label,position:"middle",textBreakAll:!1};function Ive(e){if(!ou(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,a=r*2;return{x:t-r,y:n-r,width:a,upperWidth:a,lowerWidth:a,height:a}}function mo(e){var t,n,r=Ei(e,Dve),a=r.viewBox,s=r.parentViewBox,l=r.position,u=r.value,d=r.children,f=r.content,m=r.className,p=m===void 0?"":m,g=r.textBreakAll,y=r.labelRef,w=_ve(),b=MB(),N=l==="center"?b:w??b,k,C,A;a==null?k=N:ou(a)?k=a:k=PN(a);var E=Ive(k);if(!k||Tn(u)&&Tn(d)&&!v.isValidElement(f)&&typeof f!="function")return null;var _=ou(k)&&(l==="insideStart"||l==="insideEnd"||l==="end");if(ou(k))_||(A=Rve(k,r.offset,r.position));else if(E){var T=doe({viewBox:E,position:l,offset:r.offset,parentViewBox:ou(s)?void 0:s});A=ml(ml({x:T.x,y:T.y,textAnchor:T.horizontalAnchor,verticalAnchor:T.verticalAnchor},T.width!==void 0?{width:T.width}:{}),T.height!==void 0?{height:T.height}:{})}var M=ml(ml(ml(ml({},((t=A)===null||t===void 0?void 0:t.x)!==void 0?{x:A.x}:{}),((n=A)===null||n===void 0?void 0:n.y)!==void 0?{y:A.y}:{}),r),{},{viewBox:k});if(v.isValidElement(f)){M.labelRef;var P=wP(M,jve);return v.cloneElement(f,P)}if(typeof f=="function"){M.content;var D=wP(M,Nve);if(C=v.createElement(f,D),v.isValidElement(C))return C}else C=Ove(r);var U=ps(r);return _&&ou(k)?Mve(r,l,C,U,k):A==null?null:v.createElement(Os,{zIndex:r.zIndex},v.createElement(QS,es({ref:y,className:Bt("recharts-label",p)},U,A,{textAnchor:EB(U.textAnchor)?U.textAnchor:A.textAnchor,breakAll:g}),C))}mo.displayName="Label";var Lve=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?v.createElement(mo,es({key:"label-implicit"},r)):Ca(e)?v.createElement(mo,es({key:"label-implicit",value:e},r)):v.isValidElement(e)?e.type===mo?v.cloneElement(e,ml({key:"label-implicit"},r)):v.createElement(mo,es({key:"label-implicit",content:e},r)):Z0(e)?v.createElement(mo,es({key:"label-implicit",content:e},r)):e&&typeof e=="object"?v.createElement(mo,es({},e,{key:"label-implicit"},r)):null};function $ve(e){var t=e.label,n=e.labelRef,r=MB();return Lve(t,r,n)||null}var Bve=["valueAccessor"],Fve=["dataKey","clockWise","id","textBreakAll","zIndex"];function Pg(){return Pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pg.apply(null,arguments)}function NP(e,t){if(e==null)return{};var n,r,a=Uve(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Uve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var zve=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(gve(t))return t},RB=v.createContext(void 0),Vve=RB.Provider,DB=v.createContext(void 0);DB.Provider;function Wve(){return v.useContext(RB)}function qve(){return v.useContext(DB)}function Nx(e){var t=e.valueAccessor,n=t===void 0?zve:t,r=NP(e,Bve),a=r.dataKey;r.clockWise;var s=r.id,l=r.textBreakAll,u=r.zIndex,d=NP(r,Fve),f=Wve(),m=qve(),p=f||m;
81return!p||!p.length?null:v.createElement(Os,{zIndex:u??kr.label},v.createElement(ka,{className:"recharts-label-list"},p.map((g,y)=>{var w,b=Tn(a)?n(g,y):Bn(g.payload,a),N=Tn(s)?{}:{id:"".concat(s,"-").concat(y)};return v.createElement(mo,Pg({key:"label-".concat(y)},ps(g),d,N,{fill:(w=r.fill)!==null&&w!==void 0?w:g.fill,parentViewBox:g.parentViewBox,value:b,textBreakAll:l,viewBox:g.viewBox,index:y,zIndex:0}))})))}Nx.displayName="LabelList";function Hve(e){var t=e.label;return t?t===!0?v.createElement(Nx,{key:"labelList-implicit"}):v.isValidElement(t)||Z0(t)?v.createElement(Nx,{key:"labelList-implicit",content:t}):typeof t=="object"?v.createElement(Nx,Pg({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var Gve={radiusAxis:{},angleAxis:{}},IB=dr({name:"polarAxis",initialState:Gve,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=xt(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=xt(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),J0=IB.actions;J0.addRadiusAxis;J0.removeRadiusAxis;J0.addAngleAxis;J0.removeAngleAxis;var Kve=IB.reducer;function Yve(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var L1={exports:{}},Et={};var SP;function Qve(){if(SP)return Et;SP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function w(b){if(typeof b=="object"&&b!==null){var N=b.$$typeof;switch(N){case e:switch(b=b.type,b){case n:case a:case r:case d:case f:case g:return b;default:switch(b=b&&b.$$typeof,b){case l:case u:case p:case m:return b;case s:return b;default:return N}}case t:return N}}}return Et.ContextConsumer=s,Et.ContextProvider=l,Et.Element=e,Et.ForwardRef=u,Et.Fragment=n,Et.Lazy=p,Et.Memo=m,Et.Portal=t,Et.Profiler=a,Et.StrictMode=r,Et.Suspense=d,Et.SuspenseList=f,Et.isContextConsumer=function(b){return w(b)===s},Et.isContextProvider=function(b){return w(b)===l},Et.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Et.isForwardRef=function(b){return w(b)===u},Et.isFragment=function(b){return w(b)===n},Et.isLazy=function(b){return w(b)===p},Et.isMemo=function(b){return w(b)===m},Et.isPortal=function(b){return w(b)===t},Et.isProfiler=function(b){return w(b)===a},Et.isStrictMode=function(b){return w(b)===r},Et.isSuspense=function(b){return w(b)===d},Et.isSuspenseList=function(b){return w(b)===f},Et.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===m||b.$$typeof===l||b.$$typeof===s||b.$$typeof===u||b.$$typeof===y||b.getModuleId!==void 0)},Et.typeOf=w,Et}var kP;function Xve(){return kP||(kP=1,L1.exports=Qve()),L1.exports}var Zve=Xve(),AP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",CP=null,$1=null,LB=e=>{if(e===CP&&Array.isArray($1))return $1;var t=[];return v.Children.forEach(e,n=>{Tn(n)||(Zve.isFragment(n)?t=t.concat(LB(n.props.children)):t.push(n))}),$1=t,CP=e,t};function Jve(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(a=>AP(a)):r=[AP(t)],LB(e).forEach(a=>{var s=xs(a,"type.displayName")||xs(a,"type.name");s&&r.indexOf(s)!==-1&&n.push(a)}),n}function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function TP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){ebe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEac
81h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ebe(e,t,n){return(t=tbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tbe(e){var t=nbe(e,"string");return typeof t=="symbol"?t:t+""}function nbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $B(e,t){return TP(TP({},t),e)}function rbe(e){return v.isValidElement(e)?e.props:e}function ibe(e,t){return v.cloneElement(e,$B(rbe(e),t))}function abe(e){if("index"in e){var t=e.index;return typeof t=="number"||typeof t=="string"?t:void 0}}function sbe(e){return"isActive"in e&&e.isActive===!0}function obe(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,a=e.activeClassName,s=a===void 0?"recharts-active-shape":a,l=e.inActiveClassName,u=l===void 0?"recharts-shape":l,d=abe(r),f;return v.isValidElement(t)?f=ibe(t,r):t===n?f=v.createElement(n,r):typeof t=="function"?f=t(r,d):typeof t=="object"?f=v.createElement(n,$B(t,r)):f=v.createElement(n,r),sbe(r)?v.createElement(ka,{className:s},f):v.createElement(ka,{className:u},f)}var BB=(e,t,n)=>{var r=Wt();return(a,s)=>l=>{e?.(a,s,l),r(Q$({activeIndex:String(s),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}},FB=e=>{var t=Wt();return(n,r)=>a=>{e?.(n,r,a),t(Nge())}},UB=(e,t,n)=>{var r=Wt();return(a,s)=>l=>{e?.(a,s,l),r(Sge({activeIndex:String(s),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}};function lbe(e){var t=e.tooltipEntrySettings,n=Wt(),r=zr(),a=v.useRef(null);return v.useLayoutEffect(()=>{r||(a.current===null?n(vge(t)):a.current!==t&&n(bge({prev:a.current,next:t})),a.current=t)},[t,n,r]),v.useLayoutEffect(()=>()=>{a.current&&(n(wge(a.current)),a.current=null)},[n]),null}function cbe(e){var t=e.legendPayload,n=Wt(),r=zr(),a=v.useRef(null);return v.useLayoutEffect(()=>{r||(a.current===null?n(que(t)):a.current!==t&&n(Hue({prev:a.current,next:t})),a.current=t)},[n,r,t]),v.useLayoutEffect(()=>()=>{a.current&&(n(Gue(a.current)),a.current=null)},[n]),null}function ube(e,t){return mbe(e)||hbe(e,t)||fbe(e,t)||dbe()}function dbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 82In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fbe(e,t){if(e){if(typeof e=="string")return _P(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_P(e,t):void 0}}function _P(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function mbe(e){if(Array.isArray(e))return e}var zB="index",VB="append";function XS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var a of n)r.push({status:"removed",prev:a});for(var s=0;s<t.length;s++){var l=e[s],u=t[s];l!=null?r.push({status:"matched",prev:l,next:u}):r.push({status:"added",next:u})}return r}function pbe(e,t){var n=e.length/t.length,r=t.map((a,s)=>e[Math.floor(s*n)]);return XS(r,t)}function xbe(e,t){var n=t.map((r,a)=>e[a]);return XS(n,t)}function gbe(e,t){for(var n=new Map,r=0;r<e.length;r++){var a=e[r];if(a!=null){var s=t(a,r);s!=null&&!n.has(s)&&n.set(s,a)}}return n}function ybe(e,t,n){var r=gbe(e,n),a=new Set,s=t.map((p,g)=>{var y=n(p,g);if(y!=null){var w=r.get(y);if(w!==void 0)return a.add(y),w}}),l=[];for(var u of r){var d=ube(u,2),f=d[0],m=d[1];a.has(f)||l.push(m)}return XS(s,t,l)}function vbe(e,t,n){return t==null?null:e==null?t.map(r=>({status:"added",next:r})):n===zB?pbe(e,t):n===VB?xbe(e,t):ybe(e,t,n)}function bbe(e,t){var n=v.useRef(e),r=v.useRef(t.current),a=v.useRef(!0);n.current!==e&&(n.current=e,r.current=t.current,a.current=!1);var s=v.useCallback(function(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(u===0){a.current=!0;return}u===1&&(r.current=l),u>0&&a.current&&d&&(t.current=l)},[t]);return{startValue:r.current,syncStepValue:s}}function wbe(e,t){return kbe(e)||Sbe(e,t)||Nbe(e,t)||jbe()}
82function jbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 83In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nbe(e,t){if(e){if(typeof e=="string")return OP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OP(e,t):void 0}}function OP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function kbe(e){if(Array.isArray(e))return e}function Abe(e,t){var n=v.useState(!1),r=wbe(n,2),a=r[0],s=r[1],l=v.useCallback(()=>{typeof e=="function"&&e(),s(!0)},[e]),u=v.useCallback(()=>{typeof t=="function"&&t(),s(!1)},[t]);return{isAnimating:a,handleAnimationStart:l,handleAnimationEnd:u}}function Cbe(e){var t,n=e.animationInput,r=e.animationIdPrefix,a=e.items,s=e.previousItemsRef,l=e.isAnimationActive,u=e.animationBegin,d=e.animationDuration,f=e.animationEasing,m=e.onAnimationStart,p=e.onAnimationEnd,g=e.animationInterpolateFn,y=e.animationMatchBy,w=e.shouldUpdatePreviousRef,b=e.children,N=e.layout,k=ZL(n,r),C=bbe(k,s),A=(t=C.startValue)!==null&&t!==void 0?t:null,E=vbe(A,a,y??zB);return v.createElement(XL,{animationId:k,begin:u,duration:d,isActive:l,easing:f,onAnimationEnd:p,onAnimationStart:m,key:k},_=>{var T=A==null,M=a==null?a:g(E,_,N),P=w?w(_):_>0;return C.syncStepValue(M,_,P),M==null?null:b(M,_,T)})}var B1;function Ebe(e,t){return Pbe(e)||Obe(e,t)||_be(e,t)||Tbe()}function Tbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _be(e,t){if(e){if(typeof e=="string")return PP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PP(e,t):void 0}}function PP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Obe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Pbe(e){if(Array.isArray(e))return e}var Mbe=()=>{var e=v.useState(()=>lh("uid-")),t=Ebe(e,1),n=t[0];return n},Rbe=(B1=Lu.useId)!==null&&B1!==void 0?B1:Mbe;function Dbe(e,t){var n=Rbe();return t||(e?"".concat(e,"-").concat(n):n)}var Ibe=v.createContext(void 0),Lbe=e=>{var t=e.id,n=e.type,r=e.children,a=Dbe("recharts-".concat(n),t);return v.createElement(Ibe.Provider,{value:a},r(a))},$be={cartesianItems:[],polarItems:[]},WB=dr({name:"graphicalItems",initialState:$be,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(xt(t.payload))},prepare:It()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=ji(e).cartesianItems.indexOf(xt(r));s>-1&&(e.cartesianItems[s]=xt(a))},prepare:It()},removeCartesianGraphicalItem:{reducer(e,t){var n=ji(e).cartesianItems.indexOf(xt(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:It()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(xt(t.payload))},prepare:It()},removePolarGraphicalItem:{reducer(e,t){var n=ji(e).polarItems.indexOf(xt(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:It()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=ji(e).polarItems.indexOf(xt(r));s>-1&&(e.polarItems[s]=xt(a))},prepare:It()}}}),id=WB.actions,Bbe=id.addCartesianGraphicalItem,Fbe=id.replaceCartesianGraphicalItem,Ube=id.removeCartesianGraphicalItem;id.addPolarGraphicalItem;id.removePolarGraphicalItem;id.replacePolarGraphicalItem;var zbe=WB.reducer,Vbe=e=>{var t=Wt(),n=v.useRef(null);return v.useLayoutEffect(()=>{n.current===null?t(Bbe(e)):n.current!==e&&t(Fbe({prev:n.current,next:e})),n.current=e},[t,e]),v.useLayoutEffect(()=>()=>{n.current&&(t(Ube(n.current)),n.current=null)},[t]),null},Wbe=v.memo(Vbe);function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
84t%2?MP(Object(n),!0).forEach(function(r){qbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qbe(e,t,n){return(t=Hbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hbe(e){var t=Gbe(e,"string");return typeof t=="symbol"?t:t+""}function Gbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qB=0,Kbe={xAxis:{},yAxis:{},zAxis:{}},HB=dr({name:"cartesianAxis",initialState:Kbe,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=xt(t.payload)},prepare:It()},replaceXAxis:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next;e.xAxis[r.id]!==void 0&&(r.id!==a.id&&delete e.xAxis[r.id],e.xAxis[a.id]=xt(a))},prepare:It()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:It()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=xt(t.payload)},prepare:It()},replaceYAxis:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next;e.yAxis[r.id]!==void 0&&(r.id!==a.id&&delete e.yAxis[r.id],e.yAxis[a.id]=xt(a))},prepare:It()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:It()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=xt(t.payload)},prepare:It()},replaceZAxis:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next;e.zAxis[r.id]!==void 0&&(r.id!==a.id&&delete e.zAxis[r.id],e.zAxis[a.id]=xt(a))},prepare:It()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:It()},updateYAxisWidth(e,t){var n=t.payload,r=n.id,a=n.width,s=e.yAxis[r];if(s){var l,u=s.widthHistory||[];if(u.length===3&&u[0]===u[2]&&a===u[1]&&a!==s.width&&Math.abs(a-((l=u[0])!==null&&l!==void 0?l:0))<=1)return;var d=[...u,a].slice(-3);e.yAxis[r]=Gp(Gp({},s),{},{width:a,widthHistory:d})}},updateXAxisHeight(e,t){var n=t.payload,r=n.id,a=n.height,s=e.xAxis[r];if(s){var l,u=s.heightHistory||[];if(u.length===3&&u[0]===u[2]&&a===u[1]&&a!==s.height&&Math.abs(a-((l=u[0])!==null&&l!==void 0?l:0))<=1)return;var d=[...u,a].slice(-3);e.xAxis[r]=Gp(Gp({},s),{},{height:a,heightHistory:d})}}}}),ea=HB.actions,Ybe=ea.addXAxis,Qbe=ea.replaceXAxis,Xbe=ea.removeXAxis,Zbe=ea.addYAxis,Jbe=ea.replaceYAxis,e1e=ea.removeYAxis;ea.addZAxis;ea.replaceZAxis;ea.removeZAxis;var t1e=ea.updateYAxisWidth,n1e=ea.updateXAxisHeight,r1e=HB.reducer,i1e=ie([Fn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),a1e=ie([i1e,ks,As],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),GB=()=>Fe(a1e);function s1e(e,t){return u1e(e)||c1e(e,t)||l1e(e,t)||o1e()}function o1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l1e(e,t){if(e){if(typeof e=="string")return RP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RP(e,t):void 0}}function RP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function u1e(e){if(Array.isArray(e))return e}var DP=(e,t,n)=>{var r=n??e;if(!Tn(r))return Ki(r,t,0)},d1e=(e,t,n)=>{var r={},a=e.filter(F0),s=e.filter(f=>f.stackId==null),l=a.reduce((f,m)=>{var p=f[m.stackId];return p==null&&(p=[]),p.push(m),f[m.stackId]=p,f},r),u=Object.entries(l).map(f=>{var m,p=s1e(f,2),g=p[0],y=p[1],w=y.map(N=>N.dataKey),b=DP(t,n,(m=y[0])===null||m===void 0?void 0:m.barSize);return{stackId:g,dataKeys:w,barSize:b}}),d=s.map(f=>{var m=[f.dataKey].filter(g=>g!=null),p=DP(t,n,f.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...u,...d]};function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
85t%2?IP(Object(n),!0).forEach(function(r){f1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f1e(e,t,n){return(t=h1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h1e(e){var t=m1e(e,"string");return typeof t=="symbol"?t:t+""}function m1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p1e(e,t,n,r,a){var s,l=r.length;if(!(l<1)){var u=Ki(e,n,0,!0),d,f=[];if(ht((s=r[0])===null||s===void 0?void 0:s.barSize)){var m=!1,p=n/l,g=r.reduce((C,A)=>C+(A.barSize||0),0);g+=(l-1)*u,g>=n&&(g-=(l-1)*u,u=0),g>=n&&p>0&&(m=!0,p*=.9,g=l*p);var y=Math.round((n-g)/2),w={offset:y-u,size:0};d=r.reduce((C,A)=>{var E,_={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:w.offset+w.size+u,size:m?p:(E=A.barSize)!==null&&E!==void 0?E:0}},T=[...C,_];return w=_.position,T},f)}else{var b=Ki(t,n,0,!0);n-2*b-(l-1)*u<=0&&(u=0);var N=(n-2*b-(l-1)*u)/l;N>1&&(N=Math.round(N));var k=ht(a)?Math.min(N,a):N;d=r.reduce((C,A,E)=>[...C,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:b+l*(N-k)/2+(k+u)*E,size:k}}],f)}return d}}var x1e=(e,t,n,r,a,s,l)=>{var u=Tn(l)?t:l,d=p1e(n,r,a!==s?a:s,e,u);return a!==s&&d!=null&&(d=d.map(f=>Kp(Kp({},f),{},{position:Kp(Kp({},f.position),{},{offset:f.position.offset-a/2})}))),d},g1e=(e,t)=>{var n=aS(t);if(!(!e||n==null||t==null)){var r=t.stackId;if(r!=null){var a=e[r];if(a){var s=a.stackedData;if(s)return s.find(l=>l.key===n)}}}},y1e=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function v1e(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ht(e.zIndex)?e.zIndex:t}var b1e=e=>{var t=e.chartData,n=Wt(),r=zr();return v.useEffect(()=>r?()=>{}:(n(tP(t)),()=>{n(tP(void 0))}),[t,n,r]),null},LP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},KB=dr({name:"brush",initialState:LP,reducers:{setBrushSettings(e,t){return t.payload==null?LP:t.payload}}});KB.actions.setBrushSettings;var w1e=KB.reducer;function j1e(e){return(e%180+180)%180}var N1e=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=j1e(a),l=s*Math.PI/180,u=Math.atan(r/n),d=l>u&&l<Math.PI-u?r/Math.sin(l):n/Math.cos(l);return Math.abs(d)},S1e={dots:[],areas:[],lines:[]},YB=dr({name:"referenceElements",initialState:S1e,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=ji(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=ji(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(xt(t.payload))},removeLine:(e,t)=>{var n=ji(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),ad=YB.actions;ad.addDot;ad.removeDot;ad.addArea;ad.removeArea;ad.addLine;ad.removeLine;var k1e=YB.reducer;function A1e(e,t){return _1e(e)||T1e(e,t)||E1e(e,t)||C1e()}function C1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E1e(e,t){if(e){if(typeof e=="string")return $P(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$P(e,t):void 0}}function $P(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}
86finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function _1e(e){if(Array.isArray(e))return e}var O1e=v.createContext(void 0),P1e=e=>{var t=e.children,n=v.useState("".concat(lh("recharts"),"-clip")),r=A1e(n,1),a=r[0],s=GB();if(s==null)return null;var l=s.x,u=s.y,d=s.width,f=s.height;return v.createElement(O1e.Provider,{value:a},v.createElement("defs",null,v.createElement("clipPath",{id:a},v.createElement("rect",{x:l,y:u,height:f,width:d}))),t)};function M1e(){}function BP(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function R1e(e,t,n){return Mf(e,t,void 0,void 0,void 0,void 0,n)}function Mf(e,t,n,r,a,s,l){const u=l(e,t,n,r,a,s);if(u!==void 0)return u;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Yf(e,t,s,l)}return Yf(e,t,s,l)}function Yf(e,t,n,r){if(Object.is(e,t))return!0;let a=ch(e),s=ch(t);if(a==="[object Arguments]"&&(a=vx),s==="[object Arguments]"&&(s=vx),a!==s)return!1;switch(a){case DN:return e.toString()===t.toString();case IN:return Hf(e.valueOf(),t.valueOf());case LN:case P9:case O9:return Object.is(e.valueOf(),t.valueOf());case T9:return e.source===t.source&&e.flags===t.flags;case Hoe:return e===t}n=n??new Map;const l=n.get(e),u=n.get(t);if(l!=null&&u!=null)return l===t;n.set(e,t),n.set(t,e);try{switch(a){case M9:if(e.size!==t.size)return!1;for(const[d,f]of e.entries())if(!t.has(d)||!Mf(f,t.get(d),d,e,t,n,r))return!1;return!0;case R9:{if(e.size!==t.size)return!1;const d=Array.from(e.values()),f=Array.from(t.values());for(let m=0;m<d.length;m++){const p=d[m],g=f.findIndex(y=>Mf(p,y,void 0,e,t,n,r));if(g===-1)return!1;f.splice(g,1)}return!0}case D9:case $9:case B9:case F9:case U9:case Koe:case z9:case V9:case W9:case Yoe:case q9:case H9:if(l2(e)!==l2(t)||e.length!==t.length)return!1;for(let d=0;d<e.length;d++)if(!Mf(e[d],t[d],d,e,t,n,r))return!1;return!0;case I9:return e.byteLength!==t.byteLength?!1:Yf(new Uint8Array(e),new Uint8Array(t),n,r);case L9:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Yf(new Uint8Array(e),new Uint8Array(t),n,r);case Goe:return e.name===t.name&&e.message===t.message;case vx:{if(!(Yf(e.constructor,t.constructor,n,r)||BP(e)&&BP(t)))return!1;const d=[...Object.keys(e),...o2(e)],f=[...Object.keys(t),...o2(t)];if(d.length!==f.length)return!1;for(let m=0;m<d.length;m++){const p=d[m],g=e[p];if(!Object.hasOwn(t,p))return!1;const y=t[p];if(!Mf(g,y,p,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function D1e(e,t){return R1e(e,t,M1e)}function QB(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var a=e[r];a!==void 0&&n.push(a)}return n}function I1e(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return N1e(r,n)}function L1e(e,t,n){var r=n==="width",a=e.x,s=e.y,l=e.width,u=e.height;return t===1?{start:r?a:s,end:r?a+l:s+u}:{start:r?a+l:s+u,end:r?a:s}}function bh(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-a)<=0}function $1e(e,t){return QB(e,t+1)}function B1e(e,t,n,r,a){for(var s=(r||[]).slice(),l=t.start,u=t.end,d=0,f=1,m=l,p=function(){var w=r?.[d];if(w===void 0)return{v:QB(r,f)};var b=d,N,k=()=>(N===void 0&&(N=n(w,b)),N),C=w.coordinate,A=d===0||bh(e,C,k,m,u);A||(d=0,m=l,f+=1),A&&(m=C+e*(k()/2+a),d+=f)},g;f<=s.length;)if(g=p(),g)return g.v;return[]}function F1e(e,t,n,r,a){var s=(r||[]).slice(),l=s.length;if(l===0)return[];for(var u=t.start,d=t.end,f=1;f<=l;f++){for(var m=(l-1)%f,p=u,g=!0,y=function(){var E=r[b];if(E==null)return 0;var _=b,T,M=()=>(T===void 0&&(T=n(E,_)),T),P=E.coordinate,D=b===m||bh(e,P,M,p,d);if(!D)return g=!1,1;D&&(p=P+e*(M()/2+a))},w,b=m;b<l&&(w=y(),!(w!==0&&w===1));b+=f);if(g){for(var N=[],k=m;k<l;k+=f){var C=r[k];C!=null&&N.push(C)}return N}}return[]}function FP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
86t%2?FP(Object(n),!0).forEach(function(r){U1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U1e(e,t,n){return(t=z1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z1e(e){var t=V1e(e,"string");return typeof t=="symbol"?t:t+""}function V1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W1e(e,t,n,r,a){for(var s=(r||[]).slice(),l=s.length,u=t.start,d=t.end,f=function(g){var y=s[g];if(y==null)return 1;var w=y,b,N=()=>(b===void 0&&(b=n(y,g)),b);if(g===l-1){var k=e*(w.coordinate+e*N()/2-d);s[g]=w=ar(ar({},w),{},{tickCoord:k>0?w.coordinate-k*e:w.coordinate})}else s[g]=w=ar(ar({},w),{},{tickCoord:w.coordinate});if(w.tickCoord!=null){var C=bh(e,w.tickCoord,N,u,d);C&&(d=w.tickCoord-e*(N()/2+a),s[g]=ar(ar({},w),{},{isShow:!0}))}},m=l-1;m>=0;m--)f(m);return s}function q1e(e,t,n,r,a,s){var l=(r||[]).slice(),u=l.length,d=t.start,f=t.end;if(s){var m=r[u-1];if(m!=null){var p=n(m,u-1),g=e*(m.coordinate+e*p/2-f);if(l[u-1]=m=ar(ar({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate}),m.tickCoord!=null){var y=bh(e,m.tickCoord,()=>p,d,f);y&&(f=m.tickCoord-e*(p/2+a),l[u-1]=ar(ar({},m),{},{isShow:!0}))}}}for(var w=s?u-1:u,b=function(C){var A=l[C];if(A==null)return 1;var E=A,_,T=()=>(_===void 0&&(_=n(A,C)),_);if(C===0){var M=e*(E.coordinate-e*T()/2-d);l[C]=E=ar(ar({},E),{},{tickCoord:M<0?E.coordinate-M*e:E.coordinate})}else l[C]=E=ar(ar({},E),{},{tickCoord:E.coordinate});if(E.tickCoord!=null){var P=bh(e,E.tickCoord,T,d,f);P&&(d=E.tickCoord+e*(T()/2+a),l[C]=ar(ar({},E),{},{isShow:!0}))}},N=0;N<w;N++)b(N);return l}function ZS(e,t,n){var r=e.tick,a=e.ticks,s=e.viewBox,l=e.minTickGap,u=e.orientation,d=e.interval,f=e.tickFormatter,m=e.unit,p=e.angle;if(!a||!a.length||!r)return[];if(Le(d)||qh.isSsr){var g;return(g=$1e(a,Le(d)?d:0))!==null&&g!==void 0?g:[]}var y=[],w=u==="top"||u==="bottom"?"width":"height",b=m&&w==="width"?Kf(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},N=(_,T)=>{var M=typeof f=="function"?f(_.value,T):_.value;return w==="width"?I1e(Kf(M,{fontSize:t,letterSpacing:n}),b,p):Kf(M,{fontSize:t,letterSpacing:n})[w]},k=a[0],C=a[1],A=a.length>=2&&k!=null&&C!=null?Ir(C.coordinate-k.coordinate):1,E=L1e(s,A,w);return d==="equidistantPreserveStart"?B1e(A,E,N,a,l):d==="equidistantPreserveEnd"?F1e(A,E,N,a,l):(d==="preserveStart"||d==="preserveStartEnd"?y=q1e(A,E,N,a,l,d==="preserveStartEnd"):y=W1e(A,E,N,a,l),y.filter(_=>_.isShow))}var H1e=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,a=r,s=e.tickSize,l=s===void 0?0:s,u=e.tickMargin,d=u===void 0?0:u,f=0;if(t){Array.from(t).forEach(y=>{if(y){var w=y.getBoundingClientRect();w.width>f&&(f=w.width)}});var m=n?n.getBoundingClientRect().width:0,p=l+d,g=f+p+m+(n?a:0);return Math.round(g)}return 0},G1e=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,a=r,s=e.tickSize,l=s===void 0?0:s,u=e.tickMargin,d=u===void 0?0:u,f=0;if(t){Array.from(t).forEach(y=>{if(y){var w=y.getBoundingClientRect();w.height>f&&(f=w.height)}});var m=n?n.getBoundingClientRect().height:0,p=l+d,g=f+p+m+(n?a:0);return Math.round(g)}return 0},K1e={xAxis:{},yAxis:{}},XB=dr({name:"renderedTicks",initialState:K1e,reducers:{setRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,a=n.axisId,s=n.ticks;e[r][a]=xt(s)},removeRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,a=n.axisId;delete e[r][a]}}}),ZB=XB.actions,Y1e=ZB.setRenderedTicks,Q1e=ZB.removeRenderedTicks,X1e=XB.reducer,Z1e=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function UP(e,t){return nwe(e)||twe(e,t)||ewe(e,t)||J1e()}function J1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ewe(e,t){if(e){if(typeof e=="string")return zP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zP(e,t):void 0}}function zP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function twe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;
87!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function nwe(e){if(Array.isArray(e))return e}function rwe(e,t){if(e==null)return{};var n,r,a=iwe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function iwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ll.apply(null,arguments)}function VP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(n),!0).forEach(function(r){awe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function awe(e,t,n){return(t=swe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function swe(e){var t=owe(e,"string");return typeof t=="symbol"?t:t+""}function owe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ds={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:kr.axis};function lwe(e){var t=e.x,n=e.y,r=e.width,a=e.height,s=e.orientation,l=e.mirror,u=e.axisLine,d=e.otherSvgProps;if(!u)return null;var f=rn(rn(rn({},d),ms(u)),{},{fill:"none"});if(s==="top"||s==="bottom"){var m=+(s==="top"&&!l||s==="bottom"&&l);f=rn(rn({},f),{},{x1:t,y1:n+m*a,x2:t+r,y2:n+m*a})}else{var p=+(s==="left"&&!l||s==="right"&&l);f=rn(rn({},f),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+a})}return v.createElement("line",Ll({},f,{className:Bt("recharts-cartesian-axis-line",xs(u,"className"))}))}function cwe(e,t,n,r,a,s,l,u,d){var f,m,p,g,y,w,b=u?-1:1,N=e.tickSize||l,k=Le(e.tickCoord)?e.tickCoord:e.coordinate;switch(s){case"top":f=m=e.coordinate,g=n+ +!u*a,p=g-b*N,w=p-b*d,y=k;break;case"left":p=g=e.coordinate,m=t+ +!u*r,f=m-b*N,y=f-b*d,w=k;break;case"right":p=g=e.coordinate,m=t+ +u*r,f=m+b*N,y=f+b*d,w=k;break;default:f=m=e.coordinate,g=n+ +u*a,p=g+b*N,w=p+b*d,y=k;break}return{line:{x1:f,y1:p,x2:m,y2:g},tick:{x:y,y:w}}}function uwe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function dwe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function fwe(e){var t=e.option,n=e.tickProps,r=e.value,a,s=Bt(n.className,"recharts-cartesian-axis-tick-value");if(v.isValidElement(t))a=v.cloneElement(t,rn(rn({},n),{},{className:s}));else if(typeof t=="function")a=t(rn(rn({},n),{},{className:s}));else{var l="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(l=Bt(l,Yve(t))),a=v.createElement(QS,Ll({},n,{className:l}),r)}return a}function hwe(e){var t=e.ticks,n=e.axisType,r=e.axisId,a=Wt(),s=v.useRef(null);return v.useEffect(()=>{if(!(r==null||n==null)){var l=t.map(d=>({value:d.value,coordinate:d.coordinate,offset:d.offset,index:d.index})),u=s.current;u!=null&&u.axisId===r&&u.axisType===n&&D1e(u.ticks,l)||(s.current={ticks:l,axisId:r,axisType:n},a(Y1e({ticks:l,axisId:r,axisType:n})))}},[a,t,r,n]),v.useEffect(()=>r==null||n==null?Ku:()=>{a(Q1e({axisId:r,axisType:n}))},[a,r,n]),null}var mwe=v.forwardRef((e,t)=>
87{var n=e.ticks,r=n===void 0?[]:n,a=e.tick,s=e.tickLine,l=e.stroke,u=e.tickFormatter,d=e.unit,f=e.padding,m=e.tickTextProps,p=e.orientation,g=e.mirror,y=e.x,w=e.y,b=e.width,N=e.height,k=e.tickSize,C=e.tickMargin,A=e.fontSize,E=e.letterSpacing,_=e.getTicksConfig,T=e.events,M=e.axisType,P=e.axisId,D=ZS(rn(rn({},_),{},{ticks:r}),A,E),U=ms(_),L=EN(a),$=EB(U.textAnchor)?U.textAnchor:uwe(p,g),G=dwe(p,g),H={};typeof s=="object"&&(H=s);var V=rn(rn({},U),{},{fill:"none"},H),B=D.map(ce=>rn({entry:ce},cwe(ce,y,w,b,N,p,k,g,C))),K=B.map(ce=>{var I=ce.entry,J=ce.line;return v.createElement(ka,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(I.value,"-").concat(I.coordinate,"-").concat(I.tickCoord)},s&&v.createElement("line",Ll({},V,J,{className:Bt("recharts-cartesian-axis-tick-line",xs(s,"className"))})))}),Q=B.map((ce,I)=>{var J,fe,ue=ce.entry,ve=ce.tick,Se=rn(rn(rn(rn({verticalAnchor:G},U),{},{textAnchor:$,stroke:"none",fill:l},ve),{},{index:I,payload:ue,visibleTicksCount:D.length,tickFormatter:u,padding:f},m),{},{angle:(J=(fe=m?.angle)!==null&&fe!==void 0?fe:U.angle)!==null&&J!==void 0?J:0}),Ne=rn(rn({},Se),L);return v.createElement(ka,Ll({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ue.value,"-").concat(ue.coordinate,"-").concat(ue.tickCoord)},RN(T,ue,I)),a&&v.createElement(fwe,{option:a,tickProps:Ne,value:"".concat(typeof u=="function"?u(ue.value,I):ue.value).concat(d||"")}))});return v.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(M,"-ticks")},v.createElement(hwe,{ticks:D,axisId:P,axisType:M}),Q.length>0&&v.createElement(Os,{zIndex:kr.label},v.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(M,"-tick-labels"),ref:t},Q)),K.length>0&&v.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(M,"-tick-lines")},K))}),pwe=v.forwardRef((e,t)=>{var n=e.axisLine,r=e.width,a=e.height,s=e.className,l=e.hide,u=e.ticks,d=e.axisType,f=e.axisId,m=rwe(e,Z1e),p=v.useState(""),g=UP(p,2),y=g[0],w=g[1],b=v.useState(""),N=UP(b,2),k=N[0],C=N[1],A=v.useRef(null);v.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var _;return H1e({ticks:A.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})},getCalculatedHeight:()=>{var _;return G1e({ticks:A.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var E=v.useCallback(_=>{if(_){var T=_.getElementsByClassName("recharts-cartesian-axis-tick-value");A.current=T;var M=T[0];if(M){var P=window.getComputedStyle(M),D=P.fontSize,U=P.letterSpacing;(D!==y||U!==k)&&(w(D),C(U))}}},[y,k]);return l||r!=null&&r<=0||a!=null&&a<=0?null:v.createElement(Os,{zIndex:e.zIndex},v.createElement(ka,{className:Bt("recharts-cartesian-axis",s)},v.createElement(lwe,{x:e.x,y:e.y,width:r,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:ms(e)}),v.createElement(mwe,{ref:E,axisType:d,events:m,fontSize:y,getTicksConfig:e,height:e.height,letterSpacing:k,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:f}),v.createElement(Eve,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},v.createElement($ve,{label:e.label,labelRef:e.labelRef}),e.children)))}),JS=v.forwardRef((e,t)=>{var n=Ei(e,ds);return v.createElement(pwe,Ll({},n,{ref:t}))});JS.displayName="CartesianAxis";var xwe={grid:{stroke:"#ccc",fill:"none"}},JB=v.createContext(xwe);JB.Provider;var gwe=()=>v.useContext(JB),ywe=["x1","y1","x2","y2","key"],vwe=["offset"],bwe=["xAxisId","yAxisId"],wwe=["xAxisId","yAxisId"];function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
87t%2?WP(Object(n),!0).forEach(function(r){jwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jwe(e,t,n){return(t=Nwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nwe(e){var t=Swe(e,"string");return typeof t=="symbol"?t:t+""}function Swe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jl.apply(null,arguments)}function Mg(e,t){if(e==null)return{};var n,r,a=kwe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function kwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Awe=e=>{var t=e.fill;if(!t||t==="none")return null;var n=e.fillOpacity,r=e.x,a=e.y,s=e.width,l=e.height,u=e.ry;return v.createElement("rect",{x:r,y:a,ry:u,width:s,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function eF(e){var t=e.option,n=e.lineItemProps,r;if(v.isValidElement(t))r=v.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var a,s=n.x1,l=n.y1,u=n.x2,d=n.y2,f=n.key,m=Mg(n,ywe),p=(a=ms(m))!==null&&a!==void 0?a:{};p.offset;var g=Mg(p,vwe),y=Array.isArray(g.strokeDasharray)?g.strokeDasharray.join(","):g.strokeDasharray;r=v.createElement("line",jl({},g,{strokeDasharray:y,x1:s,y1:l,x2:u,y2:d,fill:"none",key:f}))}return r}function Cwe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,s=e.horizontalPoints;if(!a||!s||!s.length)return null;e.xAxisId,e.yAxisId;var l=Mg(e,bwe),u=s.map((d,f)=>{var m=sr(sr({},l),{},{x1:t,y1:d,x2:t+n,y2:d,key:"line-".concat(f),index:f});return v.createElement(eF,{key:"line-".concat(f),option:a,lineItemProps:m})});return v.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function Ewe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,s=e.verticalPoints;if(!a||!s||!s.length)return null;e.xAxisId,e.yAxisId;var l=Mg(e,wwe),u=s.map((d,f)=>{var m=sr(sr({},l),{},{x1:d,y1:t,x2:d,y2:t+n,key:"line-".concat(f),index:f});return v.createElement(eF,{option:a,lineItemProps:m,key:"line-".concat(f)})});return v.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function Twe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,s=e.width,l=e.height,u=e.horizontalPoints,d=e.horizontal,f=d===void 0?!0:d;if(!f||!t||!t.length||u==null)return null;var m=u.map(g=>Math.round(g+a-a)).sort((g,y)=>g-y);a!==m[0]&&m.unshift(0);var p=m.map((g,y)=>{var w=m[y+1],b=w==null,N=b?a+l-g:w-g;if(N<=0)return null;var k=y%t.length;return v.createElement("rect",{key:"react-".concat(y),y:g,x:r,height:N,width:s,stroke:"none",fill:t[k],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function _we(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,s=e.x,l=e.y,u=e.width,d=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var m=f.map(g=>Math.round(g+s-s)).sort((g,y)=>g-y);s!==m[0]&&m.unshift(0);var p=m.map((g,y)=>{var w=m[y+1],b=w==null,N=b?s+u-g:w-g;if(N<=0)return null;var k=y%r.length;return v.createElement("rect",{key:"react-".concat(y),x:g,y:l,width:N,height:d,stroke:"none",fill:r[k],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Owe=(e,t)=>{var n=e.xAxis,r=e.width,a=e.height,s=e.offset;return ML(ZS(sr(sr(sr({},ds),n),{}
87,{ticks:RL(n),viewBox:{x:0,y:0,width:r,height:a}})),s.left,s.left+s.width,t)},Pwe=(e,t)=>{var n=e.yAxis,r=e.width,a=e.height,s=e.offset;return ML(ZS(sr(sr(sr({},ds),n),{},{ticks:RL(n),viewBox:{x:0,y:0,width:r,height:a}})),s.top,s.top+s.height,t)},Mwe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:kr.grid};function L2(e){var t,n,r,a,s,l,u=UL(),d=zL(),f=FL(),m=sr(sr({},Ei(e,Mwe)),{},{x:Le(e.x)?e.x:f.left,y:Le(e.y)?e.y:f.top,width:Le(e.width)?e.width:f.width,height:Le(e.height)?e.height:f.height}),p=m.xAxisId,g=m.yAxisId,y=m.x,w=m.y,b=m.width,N=m.height,k=m.syncWithTicks,C=m.horizontalValues,A=m.verticalValues,E=zr(),_=Fe(K=>zO(K,"xAxis",p,E)),T=Fe(K=>zO(K,"yAxis",g,E)),M=gwe(),P={stroke:(t=m.stroke)!==null&&t!==void 0?t:M.grid.stroke,strokeWidth:(n=m.strokeWidth)!==null&&n!==void 0?n:M.grid.strokeWidth,strokeOpacity:(r=m.strokeOpacity)!==null&&r!==void 0?r:M.grid.strokeOpacity,strokeDasharray:(a=m.strokeDasharray)!==null&&a!==void 0?a:M.grid.strokeDasharray};if(!Ea(b)||!Ea(N)||!Le(y)||!Le(w))return null;var D=m.verticalCoordinatesGenerator||Owe,U=m.horizontalCoordinatesGenerator||Pwe,L=m.horizontalPoints,$=m.verticalPoints;if((!L||!L.length)&&typeof U=="function"){var G=C&&C.length,H=U({yAxis:T?sr(sr({},T),{},{ticks:G?C:T.ticks}):void 0,width:u??b,height:d??N,offset:f},G?!0:k);cg(Array.isArray(H),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof H,"]")),Array.isArray(H)&&(L=H)}if((!$||!$.length)&&typeof D=="function"){var V=A&&A.length,B=D({xAxis:_?sr(sr({},_),{},{ticks:V?A:_.ticks}):void 0,width:u??b,height:d??N,offset:f},V?!0:k);cg(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof B,"]")),Array.isArray(B)&&($=B)}return v.createElement(Os,{zIndex:m.zIndex},v.createElement("g",{className:"recharts-cartesian-grid"},v.createElement(Awe,{fill:(s=m.fill)!==null&&s!==void 0?s:M.grid.fill,fillOpacity:(l=m.fillOpacity)!==null&&l!==void 0?l:M.grid.fillOpacity,x:m.x,y:m.
87y,width:m.width,height:m.height,ry:m.ry}),v.createElement(Twe,jl({},m,{horizontalPoints:L})),v.createElement(_we,jl({},m,{verticalPoints:$})),v.createElement(Cwe,jl({},m,P,{offset:f,horizontalPoints:L,xAxis:_,yAxis:T})),v.createElement(Ewe,jl({},m,P,{offset:f,verticalPoints:$,xAxis:_,yAxis:T}))))}L2.displayName="CartesianGrid";var Rwe={},tF=dr({name:"errorBars",initialState:Rwe,reducers:{addErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,a=n.errorBar;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,a=n.prev,s=n.next;e[r]&&(e[r]=e[r].map(l=>l.dataKey===a.dataKey&&l.direction===a.direction?s:l))},removeErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,a=n.errorBar;e[r]&&(e[r]=e[r].filter(s=>s.dataKey!==a.dataKey||s.direction!==a.direction))}}}),ek=tF.actions;ek.addErrorBar;ek.replaceErrorBar;ek.removeErrorBar;var Dwe=tF.reducer,Iwe=["children"];function Lwe(e,t){if(e==null)return{};var n,r,a=$we(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function $we(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bwe={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Fwe=v.createContext(Bwe);function Uwe(e){var t=e.children,n=Lwe(e,Iwe);return v.createElement(Fwe.Provider,{value:n},t)}function nF(e,t){var n,r,a=Fe(f=>Es(f,e)),s=Fe(f=>Ts(f,t)),l=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Nn.allowDataOverflow,u=(r=s?.allowDataOverflow)!==null&&r!==void 0?r:Sn.allowDataOverflow,d=l||u;return{needClip:d,needClipX:l,needClipY:u}}function zwe(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,a=GB(),s=nF(t,n),l=s.needClipX,u=s.needClipY,d=s.needClip,f=Fe(A=>D$(A,t,!1)),m=Fe(A=>I$(A,n,!1));if(!d||!a)return null;var p=a.x,g=a.y,y=a.width,w=a.height,b=l&&f?Math.min(f[0],f[1]):p-y/2,N=u&&m?Math.min(m[0],m[1]):g-w/2,k=l&&f?Math.abs(f[1]-f[0]):y*2,C=u&&m?Math.abs(m[1]-m[0]):w*2;return v.createElement("clipPath",{id:"clipPath-".concat(r)},v.createElement("rect",{x:b,y:N,width:k,height:C}))}function Jl(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:qB}function ec(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:qB}var Vwe="Invariant failed";function Wwe(e,t){throw new Error(Vwe)}var qwe=["option"];function Hwe(e,t){if(e==null)return{};var n,r,a=Gwe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Gwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var tk=JL;function nk(e){var t=e.option,n=Hwe(e,qwe);return v.createElement(obe,{option:t,DefaultShape:tk,shapeProps:n,activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"})}var Kwe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,a)=>{if(Le(t))return t;var s=Le(r)||Tn(r);return s?t(r,a):(s||Wwe(),n)}},Ywe=(e,t,n)=>n,Qwe=(e,t)=>t,nm=ie([PS,Qwe],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Xwe=ie([nm],e=>e?.maxBarSize),Zwe=(e,t,n,r)=>r,Jwe=ie([Ot,PS,Jl,ec,Ywe],(e,t,n,r,a)=>t.filter(s=>e==="horizontal"?s.xAxisId===n:s.yAxisId===r).filter(s=>s.isPanorama===a).filter(s=>s.hide===!1).filter(s=>s.type==="bar")),e2e=(e,t,n)=>{var r=Ot(e),a=Jl(e,t),s=ec(e,t);if(!(a==null||s==null))return r==="horizontal"?M2(e,"yAxis",s,n):M2(e,"xAxis",a,n)},t2e=(e,t)=>{var n=Ot(e),r=Jl(e,t),a=ec(e,t);if(!(r==null||a==null))return n==="horizontal"?UO(e,"xAxis",r):UO(e,"yAxis",a)}
87,n2e=ie([Jwe,jhe,t2e],d1e),r2e=(e,t,n)=>{var r,a,s=nm(e,t);if(s==null)return 0;var l=Jl(e,t),u=ec(e,t);if(l==null||u==null)return 0;var d=Ot(e),f=m7(e),m=s.maxBarSize,p=Tn(m)?f:m,g,y;return d==="horizontal"?(g=Ou(e,"xAxis",l,n),y=_u(e,"xAxis",l,n)):(g=Ou(e,"yAxis",u,n),y=_u(e,"yAxis",u,n)),(r=(a=lg(g,y,!0))!==null&&a!==void 0?a:p)!==null&&r!==void 0?r:0},rF=(e,t,n)=>{var r=Ot(e),a=Jl(e,t),s=ec(e,t);if(!(a==null||s==null)){var l,u;return r==="horizontal"?(l=Ou(e,"xAxis",a,n),u=_u(e,"xAxis",a,n)):(l=Ou(e,"yAxis",s,n),u=_u(e,"yAxis",s,n)),lg(l,u)}},i2e=ie([n2e,m7,whe,p7,r2e,rF,Xwe],x1e),a2e=(e,t,n)=>{var r=Jl(e,t);if(r!=null)return Ou(e,"xAxis",r,n)},s2e=(e,t,n)=>{var r=ec(e,t);if(r!=null)return Ou(e,"yAxis",r,n)},o2e=(e,t,n)=>{var r=Jl(e,t);if(r!=null)return _u(e,"xAxis",r,n)},l2e=(e,t,n)=>{var r=ec(e,t);if(r!=null)return _u(e,"yAxis",r,n)},c2e=ie([i2e,nm],y1e),u2e=ie([e2e,nm],g1e),d2e=ie([Fn,HN,a2e,s2e,o2e,l2e,c2e,Ot,ahe,rF,u2e,nm,Zwe],(e,t,n,r,a,s,l,u,d,f,m,p,g)=>{var y=d.chartData,w=d.dataStartIndex,b=d.dataEndIndex;if(!(p==null||l==null||t==null||u!=="horizontal"&&u!=="vertical"||n==null||r==null||a==null||s==null||f==null)){var N=p.data,k;if(N!=null&&N.length>0?k=N:k=y?.slice(w,b+1),k!=null)return W2e({layout:u,barSettings:p,pos:l,parentViewBox:t,bandSize:f,xAxis:n,yAxis:r,xAxisTicks:a,yAxisTicks:s,stackedData:m,displayedData:k,offset:e,cells:g,dataStartIndex:w})}}),f2e=["index"];function $2(){return $2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$2.apply(null,arguments)}function h2e(e,t){if(e==null)return{};var n,r,a=m2e(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m2e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var iF=v.createContext(void 0),p2e=e=>{var t=v.useContext(iF);if(t!=null)return t.stackId;if(e!=null)return eue(e)},x2e=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),g2e=e=>{var t=v.useContext(iF);if(t!=null){var n=t.stackId;return"url(#".concat(x2e(n,e),")")}},aF=e=>{var t=e.index,n=h2e(e,f2e),r=g2e(t);return v.createElement(ka,$2({className:"recharts-bar-stack-layer",clipPath:r},n))},y2e=["onMouseEnter","onMouseLeave","onClick"],v2e=["value","background","tooltipPosition"],b2e=["id"],w2e=["onMouseEnter","onClick","onMouseLeave"];function qP(e,t){return k2e(e)||S2e(e,t)||N2e(e,t)||j2e()}function j2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N2e(e,t){if(e){if(typeof e=="string")return HP(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HP(e,t):void 0}}function HP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function k2e(e){if(Array.isArray(e))return e}function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(null,arguments)}function GP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
88t%2?GP(Object(n),!0).forEach(function(r){A2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A2e(e,t,n){return(t=C2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C2e(e){var t=E2e(e,"string");return typeof t=="symbol"?t:t+""}function E2e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rg(e,t){if(e==null)return{};var n,r,a=T2e(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function T2e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _2e=e=>{var t=e.dataKey,n=e.name,r=e.fill,a=e.legendType,s=e.hide;return[{inactive:s,dataKey:t,type:a,color:r,value:DL(n,t),payload:e}]},O2e=v.memo(e=>{var t=e.dataKey,n=e.stroke,r=e.strokeWidth,a=e.fill,s=e.name,l=e.hide,u=e.unit,d=e.formatter,f=e.tooltipType,m=e.id,p={dataDefinedOnItem:void 0,getPosition:Ku,settings:{stroke:n,strokeWidth:r,fill:a,dataKey:t,nameKey:void 0,name:DL(s,t),hide:l,type:f,color:a,unit:u,formatter:d,graphicalItemId:m}};return v.createElement(lbe,{tooltipEntrySettings:p})});function P2e(e){var t=Fe(Mu),n=e.data,r=e.dataKey,a=e.background,s=e.allOtherBarProps,l=s.onMouseEnter,u=s.onMouseLeave,d=s.onClick,f=Rg(s,y2e),m=BB(l,r,s.id),p=FB(u),g=UB(d,r,s.id);if(!a||n==null)return null;var y=EN(a);return v.createElement(Os,{zIndex:v1e(a,kr.barBackground)},n.map((w,b)=>{w.value;var N=w.background;w.tooltipPosition;var k=Rg(w,v2e);if(!N)return null;var C=m(w,w.originalDataIndex),A=p(w,w.originalDataIndex),E=g(w,w.originalDataIndex),_=An(An(An(An(An({option:a,isActive:String(w.originalDataIndex)===t},k),{},{fill:"#eee"},N),y),RN(f,w,b)),{},{onMouseEnter:C,onMouseLeave:A,onClick:E,dataKey:r,index:b,className:"recharts-bar-background-rectangle"});return v.createElement(nk,Ao({key:"background-bar-".concat(b)},_))}))}function M2e(e){var t=e.showLabels,n=e.children,r=e.rects,a=r?.map(s=>{var l={x:s.x,y:s.y,width:s.width,lowerWidth:s.width,upperWidth:s.width,height:s.height};return An(An({},l),{},{value:s.value,payload:s.payload,parentViewBox:s.parentViewBox,viewBox:l,fill:s.fill})});return v.createElement(Vve,{value:t?a:void 0},n)}function R2e(e){var t=e.shape,n=e.activeBar,r=e.baseProps,a=e.entry,s=e.index,l=e.dataKey,u=Fe(Mu),d=Fe(fB),f=n&&String(a.originalDataIndex)===u&&(d==null||l===d),m=u!=null&&(String(a.originalDataIndex)!==u||d!=null&&l!==d),p=v.useState(!1),g=qP(p,2),y=g[0],w=g[1],b=v.useState(!1),N=qP(b,2),k=N[0],C=N[1];v.useEffect(()=>{var P;return f?(w(!0),P=requestAnimationFrame(()=>{C(!0)})):(C(!1),m&&w(!1)),()=>{cancelAnimationFrame(P)}},[f,m]);var A=v.useCallback(()=>{f||w(!1)},[f]),E=f&&k,_=f||y,T;f?n===!0?T=t:T=n:T=t;var M=v.createElement(nk,Ao({},r,{name:String(r.name)},a,{isActive:E,option:T,index:s,dataKey:l,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:A}));return _?v.createElement(Os,{zIndex:kr.activeBar},v.createElement(aF,{index:a.originalDataIndex},M)):M}function D2e(e){var t=e.shape,n=e.baseProps,r=e.entry,a=e.index,s=e.dataKey;return v.createElement(nk,Ao({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:a,dataKey:s,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance}))}function I2e(e){var t,n=e.data,r=e.props,a=e.animationElapsedTime,s=e.isAnimating,l=e.isEntrance,u=(t=ms(r))!==null&&t!==void 0?t:{},d=u.id,f=Rg(u,b2e),m=r.shape,p=r.dataKey,g=r.activeBar,y=r.onMouseEnter,w=r.onClick,b=r.onMouseLeave,N=Rg(r,w2e),k=BB(y,p,d),C=FB(b),A=UB(w,p,d);return n?v.createElement(v.Fragment,null,n.map((E,_)=>v.createElement(aF,Ao({index:E.originalDataIndex,key:"rectangle-".concat(E?.x,"-").concat(E?.y,"-").concat(E?.value,"-").concat(_),className:"recharts-bar-rectangle"},RN(N,E,_),{onMouseEnter:k(E,E.originalDataIndex),onMouseLeave:C(E,E.originalDataIndex),onClick:A(E,E.originalDataIndex)}),g?v.createElement(R2e,{shape:m,activeBar:g,baseProps:f,entry:E,index:_,dataKey:p,animationElapsedTime:a,isAnimating:s,isEntrance:l}):v.createElement(D2e,{shape:m,baseProps:f,entry:E,index:_,dataKey:p,animationElapsedTime:a,isAnimating:s,isEntrance:l})))):null}
88var L2e=(e,t,n)=>e==null?[]:t===1?e.flatMap(r=>r.status==="removed"?[]:[r.next]):e.flatMap(r=>{if(r.status==="removed")return n==="horizontal"?[An(An({},r.prev),{},{height:ir(r.prev.height,0,t),y:ir(r.prev.y,r.prev.y+r.prev.height,t)})]:[An(An({},r.prev),{},{width:ir(r.prev.width,0,t)})];if(r.status==="matched")return[An(An({},r.next),{},{x:ir(r.prev.x,r.next.x,t),y:ir(r.prev.y,r.next.y,t),width:ir(r.prev.width,r.next.width,t),height:ir(r.prev.height,r.next.height,t)})];var a=r.next;return n==="horizontal"?[An(An({},a),{},{height:ir(0,a.height,t),y:ir(a.stackedBarStart,a.y,t)})]:[An(An({},a),{},{width:ir(0,a.width,t),x:ir(a.stackedBarStart,a.x,t)})]});function $2e(e){var t=e.props,n=e.previousRectanglesRef,r=t.data,a=t.isAnimationActive,s=t.animationBegin,l=t.animationDuration,u=t.animationEasing,d=t.animationInterpolateFn,f=t.layout,m=Abe(t.onAnimationStart,t.onAnimationEnd),p=m.isAnimating,g=m.handleAnimationStart,y=m.handleAnimationEnd;return v.createElement(M2e,{showLabels:!p,rects:r},v.createElement(Cbe,{animationInput:r,animationIdPrefix:"recharts-bar-",items:r,previousItemsRef:n,isAnimationActive:a,animationBegin:s,animationDuration:l,animationEasing:u,onAnimationStart:g,onAnimationEnd:y,animationInterpolateFn:d,animationMatchBy:t.animationMatchBy,layout:f},(w,b,N)=>v.createElement(ka,null,v.createElement(I2e,{props:t,data:w,animationElapsedTime:b,isAnimating:p||b<1,isEntrance:N}))),v.createElement(Hve,{label:t.label}),t.children)}function B2e(e){var t=v.useRef(null);return v.createElement($2e,{previousRectanglesRef:t,props:e})}var sF=0,F2e=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Bn(e,t)}};class U2e extends v.PureComponent{render(){var t=this.props,n=t.hide,r=t.data,a=t.dataKey,s=t.className,l=t.xAxisId,u=t.yAxisId,d=t.needClip,f=t.background,m=t.id;if(n||r==null)return null;var p=Bt("recharts-bar",s),g=m;return v.createElement(ka,{className:p,id:m},d&&v.createElement("defs",null,v.createElement(zwe,{clipPathId:g,xAxisId:l,yAxisId:u})),v.createElement(ka,{className:"recharts-bar-rectangles",clipPath:d?"url(#clipPath-".concat(g,")"):void 0},v.createElement(P2e,{data:r,dataKey:a,background:f,allOtherBarProps:this.props}),v.createElement(B2e,this.props)))}}var z2e={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",animationInterpolateFn:L2e,animationMatchBy:VB,background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:sF,shape:tk,xAxisId:0,yAxisId:0,zIndex:kr.bar};function V2e(e){var t=e.xAxisId,n=e.yAxisId,r=e.hide,a=e.legendType,s=e.minPointSize,l=e.activeBar,u=e.animationBegin,d=e.animationDuration,f=e.animationEasing,m=e.isAnimationActive,p=nF(t,n),g=p.needClip,y=Yu(),w=zr(),b=Jve(e.children,jB),N=Fe(A=>d2e(A,e.id,w,b));if(y!=="vertical"&&y!=="horizontal")return null;var k,C=N?.[0];return C==null||C.height==null||C.width==null?k=0:k=y==="vertical"?C.height/2:C.width/2,v.createElement(Uwe,{xAxisId:t,yAxisId:n,data:N,dataPointFormatter:F2e,errorBarOffset:k},v.createElement(U2e,Ao({},e,{layout:y,needClip:g,data:N,xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:s,activeBar:l,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m})))}function W2e(e){var t=e.layout,n=e.barSettings,r=n.dataKey,a=n.minPointSize,s=n.hasCustomShape,l=e.pos,u=e.bandSize,d=e.xAxis,f=e.yAxis,m=e.xAxisTicks,p=e.yAxisTicks,g=e.stackedData,y=e.displayedData,w=e.offset,b=e.cells,N=e.parentViewBox,k=e.dataStartIndex,C=t==="horizontal"?f:d,A=g?C.scale.domain():null,E=tue({numericAxis:C}),_=C.scale.map(E);return y.map((T,M)=>{var P,D,U,L,$,G;if(g){var H=g[M+k];if(H==null)return null;P=Yce(H,A)}else P=Bn(T,r),Array.isArray(P)||(P=[E,P]);var V=Kwe(a,sF)(P[1],M);if(t==="horizontal"){var B,K=f.scale.map(P[0]),Q=f.scale.map(P[1]);if(K==null||Q==null)return null;D=U3({axis:d,ticks:m,bandSize:u,offset:l.offset,entry:T,index:M}),U=(B=Q??K)!==null&&B!==void 0?B:void 0,L=l.size;var ce=K-Q;if($=Aa(ce)?0:ce,G={x:D,y:w.top,width:L,height:w.height},Math.abs(V)>0&&Math.abs($)<Math.abs(V)){var I=Ir($||V)*(Math.abs(V)-Math.abs($));U-=I,$+=I}}else{var J=d.scale.map(P[0]),fe=d.scale.map(P[1]);if(J==null||fe==null)return null;if(D=J,U=U3({axis:f,ticks:p,bandSize:u,offset:l.offset,entry:T,index:M}),L=fe-J,$=l.size,G={x:w.left,y:U,width:w.width,height:$},Math.abs(V)>0&&Math.abs(L)<Math.abs(V)){var ue=Ir(L||V)*(Math.abs(V)-Math.abs(L));L+=ue}}if(D==null||U==null||L==null||$==null||!s&&(L===0||$===0))return null;var ve=An(An({},T),{},{stackedBarStart:_,x:D,y:U,width:L,height:$,value:g?P:P[1],payload:T,background:G,tooltipPosition:{x:D+L/2,y:U+$/2},parentViewBox:N,originalDataIndex:M},b&&b[M]&&b[M].props);return ve}
88).filter(Boolean)}function q2e(e){var t=Ei(e,z2e),n=p2e(t.stackId),r=zr();return v.createElement(Lbe,{id:t.id,type:"bar"},a=>v.createElement(v.Fragment,null,v.createElement(cbe,{legendPayload:_2e(t)}),v.createElement(O2e,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:a}),v.createElement(Wbe,{type:"bar",id:a,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null&&t.shape!==tk}),v.createElement(Os,{zIndex:t.zIndex},v.createElement(V2e,Ao({},t,{id:a})))))}var B2=v.memo(q2e,M0);B2.displayName="Bar";var H2e=["domain","range"],G2e=["domain","range"];function KP(e,t){if(e==null)return{};var n,r,a=K2e(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function K2e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function YP(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function oF(e,t){if(e===t)return!0;var n=e.domain,r=e.range,a=KP(e,H2e),s=t.domain,l=t.range,u=KP(t,G2e);return!YP(n,s)||!YP(r,l)?!1:M0(a,u)}var Y2e=["type"],Q2e=["dangerouslySetInnerHTML","ticks","scale"],X2e=["id","scale"];function F2(){return F2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F2.apply(null,arguments)}function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){Z2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z2e(e,t,n){return(t=J2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J2e(e){var t=eje(e,"string");return typeof t=="symbol"?t:t+""}function eje(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U2(e,t){if(e==null)return{};var n,r,a=tje(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function tje(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function nje(e){var t=Wt(),n=v.useRef(null),r=VL(),a=e.type,s=U2(e,Y2e),l=L0(r,"xAxis",a),u=v.useMemo(()=>{if(l!=null)return XP(XP({},s),{},{type:l})},[s,l]);return v.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Ybe(u)):n.current!==u&&t(Qbe({prev:n.current,next:u})),n.current=u)},[u,t]),v.useLayoutEffect(()=>()=>{n.current&&(t(Xbe(n.current)),n.current=null)},[t]),null}var rje=e=>{var t=e.xAxisId,n=e.className,r=e.height,a=e.label,s=v.useRef(null),l=v.useRef(null),u=Fe(HN),d=zr(),f=Wt(),m="xAxis",p=Fe(k=>W$(k,m,t,d)),g=Fe(k=>U$(k,t)),y=Fe(k=>oge(k,t)),w=Fe(k=>o$(k,t));if(v.useLayoutEffect(()=>{if(!(r!=="auto"||!g||Z0(a)||v.isValidElement(a)||w==null)){var k=s.current;if(k){var C=k.getCalculatedHeight();Math.round(g.height)!==Math.round(C)&&f(n1e({id:t,height:C}))}}},[p,g,f,a,t,r,w]),g==null||y==null||w==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var b=U2(e,Q2e);w.id,w.scale;var N=U2(w,X2e);return v.createElement(JS,F2({},b,N,{ref:s,labelRef:l,x:y.x,y:y.y,width:g.width,height:g.height,className:Bt("recharts-".concat(m," ").concat(m),n),viewBox:u,ticks:p,axisType:m,axisId:t}))},ije={allowDataOverflow:Nn.allowDataOverflow,allowDecimals:Nn.allowDecimals,allowDuplicatedCategory:Nn.allowDuplicatedCategory,angle:Nn.angle,axisLine
88:ds.axisLine,height:Nn.height,hide:!1,includeHidden:Nn.includeHidden,interval:Nn.interval,label:!1,minTickGap:Nn.minTickGap,mirror:Nn.mirror,orientation:Nn.orientation,padding:Nn.padding,reversed:Nn.reversed,scale:Nn.scale,tick:Nn.tick,tickCount:Nn.tickCount,tickLine:ds.tickLine,tickSize:ds.tickSize,type:Nn.type,niceTicks:Nn.niceTicks,xAxisId:0},aje=e=>{var t=Ei(e,ije);return v.createElement(v.Fragment,null,v.createElement(nje,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),v.createElement(rje,t))},z2=v.memo(aje,oF);z2.displayName="XAxis";var sje=["type"],oje=["dangerouslySetInnerHTML","ticks","scale"],lje=["id","scale"];function V2(){return V2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V2.apply(null,arguments)}function ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function JP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZP(Object(n),!0).forEach(function(r){cje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cje(e,t,n){return(t=uje(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uje(e){var t=dje(e,"string");return typeof t=="symbol"?t:t+""}function dje(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W2(e,t){if(e==null)return{};var n,r,a=fje(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fje(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hje(e){var t=Wt(),n=v.useRef(null),r=VL(),a=e.type,s=W2(e,sje),l=L0(r,"yAxis",a),u=v.useMemo(()=>{if(l!=null)return JP(JP({},s),{},{type:l})},[l,s]);return v.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Zbe(u)):n.current!==u&&t(Jbe({prev:n.current,next:u})),n.current=u)},[u,t]),v.useLayoutEffect(()=>()=>{n.current&&(t(e1e(n.current)),n.current=null)},[t]),null}function mje(e){var t=e.yAxisId,n=e.className,r=e.width,a=e.label,s=v.useRef(null),l=v.useRef(null),u=Fe(HN),d=zr(),f=Wt(),m="yAxis",p=Fe(k=>z$(k,t)),g=Fe(k=>cge(k,t)),y=Fe(k=>W$(k,m,t,d)),w=Fe(k=>l$(k,t));if(v.useLayoutEffect(()=>{if(!(r!=="auto"||!p||Z0(a)||v.isValidElement(a)||w==null)){var k=s.current;if(k){var C=k.getCalculatedWidth();Math.round(p.width)!==Math.round(C)&&f(t1e({id:t,width:C}))}}},[y,p,f,a,t,r,w]),p==null||g==null||w==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var b=W2(e,oje);w.id,w.scale;var N=W2(w,lje);return v.createElement(JS,V2({},b,N,{ref:s,labelRef:l,x:g.x,y:g.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:Bt("recharts-".concat(m," ").concat(m),n),viewBox:u,ticks:y,axisType:m,axisId:t}))}var pje={allowDataOverflow:Sn.allowDataOverflow,allowDecimals:Sn.allowDecimals,allowDuplicatedCategory:Sn.allowDuplicatedCategory,angle:Sn.angle,axisLine:ds.axisLine,hide:!1,includeHidden:Sn.includeHidden,interval:Sn.interval,label:!1,minTickGap:Sn.minTickGap,mirror:Sn.mirror,orientation:Sn.orientation,padding:Sn.padding,reversed:Sn.reversed,scale:Sn.scale,tick:Sn.tick,tickCount:Sn.tickCount,tickLine:ds.tickLine,tickSize:ds.tickSize,type:Sn.type,niceTicks:Sn.niceTicks,width:Sn.width,yAxisId:0},xje=e=>{var t=Ei(e,pje);return v.createElement(v.Fragment,null,v.createElement(hje,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),v.createElement(mje,t))},q2=v.memo(xje,oF);q2.displayName="YAxis";var gje=(e,t)=>t,rk=ie([gje,Ot,j7,zn,lB,_s,O0e,Fn],$0e);function yje(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function ik(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(yje(e)){var a=e.currentTarget.getBBox();n=a.width>0?t.width/a.width:1,r=a.height>0?t.height/a.height:1}else{var s=e.currentTarget;n=s.offsetWidth>0?t.width/s.offsetWidth:1,r=s.offsetHeight>0?t.height/s.offsetHeight:1}var l=(u,d)=>({relativeX:Math.round((u-t.left)/n),relativeY:Math.round((d-t.top)/r)});return"touches"in e?Array.from(e.touches).map(u=>l(u.clientX,u.clientY)):l(e.clientX,e.clientY)}var lF=ai("mouseClick"),cF=Uh();cF.startListening({actionCreator:lF,effect:(e,t)=>
88{var n=e.payload,r=rk(t.getState(),ik(n));r?.activeIndex!=null&&t.dispatch(kge({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var H2=ai("mouseMove"),uF=Uh(),Yc=null,al=null,F1=null;uF.startListening({actionCreator:H2,effect:(e,t)=>{var n=e.payload,r=t.getState(),a=r.eventSettings,s=a.throttleDelay,l=a.throttledEvents,u=l==="all"||l?.includes("mousemove");Yc!==null&&(cancelAnimationFrame(Yc),Yc=null),al!==null&&(typeof s!="number"||!u)&&(clearTimeout(al),al=null),F1=ik(n);var d=()=>{var f=t.getState(),m=em(f,f.tooltip.settings.shared);if(!F1){Yc=null,al=null;return}if(m==="axis"){var p=rk(f,F1);p?.activeIndex!=null?t.dispatch(Z$({activeIndex:p.activeIndex,activeDataKey:void 0,activeCoordinate:p.activeCoordinate})):t.dispatch(X$())}Yc=null,al=null};if(!u){d();return}s==="raf"?Yc=requestAnimationFrame(d):typeof s=="number"&&al===null&&(al=setTimeout(d,s))}});function vje(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var eM={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},dF=dr({name:"rootProps",initialState:eM,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:eM.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),bje=dF.reducer,wje=dF.actions.updateOptions,jje=null,Nje={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},fF=dr({name:"polarOptions",initialState:jje,reducers:Nje});fF.actions.updatePolarOptions;var Sje=fF.reducer,hF=ai("keyDown"),mF=ai("focus"),pF=ai("blur"),ey=Uh(),Qc=null,sl=null,Yp=null;ey.startListening({actionCreator:hF,effect:(e,t)=>{Yp=e.payload,Qc!==null&&(cancelAnimationFrame(Qc),Qc=null);var n=t.getState(),r=n.eventSettings,a=r.throttleDelay,s=r.throttledEvents,l=s==="all"||s.includes("keydown");sl!==null&&(typeof a!="number"||!l)&&(clearTimeout(sl),sl=null);var u=()=>{try{var d=t.getState(),f=d.rootProps.accessibilityLayer!==!1;if(!f)return;var m=d.tooltip.keyboardInteraction,p=Yp;if(p!=="ArrowRight"&&p!=="ArrowLeft"&&p!=="Enter")return;var g=Gf(m,Il(d),Tu(d),Pu(d)),y=g==null?-1:Number(g),w=!Number.isFinite(y)||y<0,b=_s(d),N=Il(d),k=em(d,d.tooltip.settings.shared);if(p==="Enter"){if(w)return;var C=_g(d,k,"hover",String(m.index));t.dispatch(Tg({active:!m.active,activeIndex:m.index,activeCoordinate:C}));return}var A=mge(d),E=A==="left-to-right"?1:-1,_=p==="ArrowRight"?1:-1,T;if(w){var M=Tu(d),P=Pu(d),D=_*E,U=V=>({active:!1,index:String(V),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(T=-1,D>0){for(var L=0;L<N.length;L++)if(Gf(U(L),N,M,P)!=null){T=L;break}}else for(var $=N.length-1;$>=0;$--)if(Gf(U($),N,M,P)!=null){T=$;break}if(T<0)return}else{T=y+_*E;var G=b?.length||N.length;if(G===0||T>=G||T<0)return}var H=_g(d,k,"hover",String(T));t.dispatch(Tg({active:!0,activeIndex:T.toString(),activeCoordinate:H}))}finally{Qc=null,sl=null}};if(!l){u();return}a==="raf"?Qc=requestAnimationFrame(u):typeof a=="number"&&sl===null&&(u(),Yp=null,sl=setTimeout(()=>{Yp?u():(sl=null,Qc=null)},a))}});ey.startListening({actionCreator:mF,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var a=n.tooltip.keyboardInteraction;if(!a.active&&a.index==null){var s="0",l=em(n,n.tooltip.settings.shared),u=_g(n,l,"hover",String(s));t.dispatch(Tg({active:!0,activeIndex:s,activeCoordinate:u}))}}}});ey.startListening({actionCreator:pF,effect:(e,t)=>
88{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var a=n.tooltip.keyboardInteraction;a.active&&t.dispatch(Tg({active:!1,activeIndex:a.index,activeCoordinate:a.coordinate}))}}});function xF(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var a=Reflect.get(n,r);return typeof a=="function"?a.bind(n):a}})}var yi=ai("externalEvent"),gF=Uh(),Qp=new Map,Nf=new Map,U1=new Map;gF.startListening({actionCreator:yi,effect:(e,t)=>{var n=e.payload,r=n.handler,a=n.reactEvent;if(r!=null){var s=a.type,l=xF(a);U1.set(s,{handler:r,reactEvent:l});var u=Qp.get(s);u!==void 0&&(cancelAnimationFrame(u),Qp.delete(s));var d=t.getState(),f=d.eventSettings,m=f.throttleDelay,p=f.throttledEvents,g=p,y=g==="all"||g?.includes(s),w=Nf.get(s);w!==void 0&&(typeof m!="number"||!y)&&(clearTimeout(w),Nf.delete(s));var b=()=>{var C=U1.get(s);try{if(!C)return;var A=C.handler,E=C.reactEvent,_=t.getState(),T={activeCoordinate:x0e(_),activeDataKey:fB(_),activeIndex:Mu(_),activeLabel:dB(_),activeTooltipIndex:Mu(_),isTooltipActive:g0e(_)};A&&A(T,E)}finally{Qp.delete(s),Nf.delete(s),U1.delete(s)}};if(!y){b();return}if(m==="raf"){var N=requestAnimationFrame(b);Qp.set(s,N)}else if(typeof m=="number"){if(!Nf.has(s)){b();var k=setTimeout(b,m);Nf.set(s,k)}}else b()}}});var kje=ie([rd],e=>e.tooltipItemPayloads),Aje=ie([kje,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(s=>s.settings.graphicalItemId===n);if(r!=null){var a=r.getPosition;if(a!=null)return a(t)}}}),yF=ai("touchMove"),vF=Uh(),ol=null,oo=null,tM=null,Sf=null;vF.startListening({actionCreator:yF,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Sf=xF(n);var r=t.getState(),a=r.eventSettings,s=a.throttleDelay,l=a.throttledEvents,u=l==="all"||l.includes("touchmove");ol!==null&&(cancelAnimationFrame(ol),ol=null),oo!==null&&(typeof s!="number"||!u)&&(clearTimeout(oo),oo=null),tM=Array.from(n.touches).map(f=>ik({clientX:f.clientX,clientY:f.clientY,currentTarget:n.currentTarget}));var d=()=>{if(Sf!=null){var f=t.getState(),m=em(f,f.tooltip.settings.shared);if(m==="axis"){var p,g=(p=tM)===null||p===void 0?void 0:p[0];if(g==null){ol=null,oo=null;return}var y=rk(f,g);y?.activeIndex!=null&&t.dispatch(Z$({activeIndex:y.activeIndex,activeDataKey:void 0,activeCoordinate:y.activeCoordinate}))}else if(m==="item"){var w,b=Sf.touches[0];if(document.elementFromPoint==null||b==null)return;var N=document.elementFromPoint(b.clientX,b.clientY);if(!N||!N.getAttribute)return;var k=N.getAttribute(lue),C=(w=N.getAttribute(cue))!==null&&w!==void 0?w:void 0,A=Zl(f).find(T=>T.id===C);if(k==null||A==null||C==null)return;var E=A.dataKey,_=Aje(f,k,C);t.dispatch(Q$({activeDataKey:E,activeIndex:k,activeCoordinate:_,activeGraphicalItemId:C}))}ol=null,oo=null}};if(!u){d();return}s==="raf"?ol=requestAnimationFrame(d):typeof s=="number"&&oo===null&&(d(),Sf=null,oo=setTimeout(()=>{Sf?d():(oo=null,ol=null)},s))}}});var bF={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},wF=dr({name:"eventSettings",initialState:bF,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=xt(t.payload.throttledEvents))}}}),Cje=wF.actions.setEventSettings,Eje=wF.reducer,Tje=iL({brush:w1e,cartesianAxis:r1e,chartData:pye,errorBars:Dwe,eventSettings:Eje,graphicalItems:zbe,layout:Wce,legend:Kue,options:uye,polarAxis:Kve,polarOptions:Sje,referenceElements:k1e,renderedTicks:X1e,rootProps:bje,tooltip:Age,zIndex:X0e}),_je=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return pce({reducer:Tje,preloadedState:t,middleware:r=>{var a;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([cF.middleware,uF.middleware,ey.middleware,gF.middleware,vF.middleware])},enhancers:r=>{var a=r;return typeof r=="function"&&(a=r()),a.concat(vL({type:"raf"}))},devTools:{serialize:{replacer:vje},name:"recharts-".concat(n)}})};function Oje(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,a=zr(),s=v.useRef(null);if(a)return n;s.current==null&&(s.current=_je(t,r));var l=$N;return v.createElement(fde,{context:l,store:s.current},n)}function Pje(e){var t=e.layout,n=e.margin,r=Wt(),a=zr();return v.useEffect(()=>{a||(r(Uce(t)),r(Fce(n)))},[r,a,t,n]),null}var Mje=v.memo(Pje,M0);function Rje(e){var t=Wt();return v.useEffect(()=>{t(wje(e))},[t,e]),null}var Dje=e=>{var t=Wt();return v.useEffect(()=>{t(Cje(e))},[t,e]),null},Ije=v.memo(Dje,M0);function nM(e){var t=e.zIndex,n=e.isPanorama,r=v.useRef(null),a=Wt();return v.useLayoutEffect(()=>(r.current&&a(Y0e({zIndex:t,element:r.current,isPanorama:n})),()=>{a(Q0e({zIndex:t,isPanorama:n}))}),[a,t,n]),v.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function rM(e){var t=e.children,n=e.isPanorama,r=Fe(F0e);if(!r||r.length===0)return t;var a=r.filter(l=>l<0),s=r.filter(l=>l>0);return v.createElement(v.Fragment,null,a.map(l=>v.createElement(nM,{key:l,zIndex:l,isPanorama:n})),t,s.map(l=>v.createElement(nM,{key:l,zIndex:l,isPanorama:n})))}var Lje=["children"];function $je(e,t){if(e==null)return{};var n,r,a=Bje(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Bje(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dg.apply(null,arguments)}var Fje={width:"100%",height:"100%",display:"block"},Uje=v.forwardRef((e,t)=>
88{var n=UL(),r=zL(),a=GL();if(!Ea(n)||!Ea(r))return null;var s=e.children,l=e.otherAttributes,u=e.title,d=e.desc,f,m;return l!=null&&(typeof l.tabIndex=="number"?f=l.tabIndex:f=a?0:void 0,typeof l.role=="string"?m=l.role:m=a?"application":void 0),v.createElement(c9,Dg({},l,{title:u,desc:d,role:m,tabIndex:f,width:n,height:r,style:Fje,ref:t}),s)}),zje=e=>{var t=e.children,n=Fe(O0);if(!n)return null;var r=n.width,a=n.height,s=n.y,l=n.x;return v.createElement(c9,{width:r,height:a,x:l,y:s},t)},iM=v.forwardRef((e,t)=>{var n=e.children,r=$je(e,Lje),a=zr();return a?v.createElement(zje,null,v.createElement(rM,{isPanorama:!0},n)):v.createElement(Uje,Dg({ref:t},r),v.createElement(rM,{isPanorama:!1},n))});function Vje(e,t){return Gje(e)||Hje(e,t)||qje(e,t)||Wje()}function Wje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qje(e,t){if(e){if(typeof e=="string")return aM(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aM(e,t):void 0}}function aM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hje(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function Gje(e){if(Array.isArray(e))return e}function Kje(){var e=Wt(),t=v.useState(null),n=Vje(t,2),r=n[0],a=n[1],s=Fe(oue);return v.useEffect(()=>{if(r!=null){var l=r.getBoundingClientRect(),u=l.width/r.offsetWidth;ht(u)&&u!==s&&e(Vce(u))}},[r,e,s]),a}function sM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yje(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(r){Qje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qje(e,t,n){return(t=Xje(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xje(e){var t=Zje(e,"string");return typeof t=="symbol"?t:t+""}function Zje(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(null,arguments)}function Ig(e,t){return nNe(e)||tNe(e,t)||eNe(e,t)||Jje()}function Jje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eNe(e,t){if(e){if(typeof e=="string")return oM(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oM(e,t):void 0}}function oM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return u}}function nNe(e){if(Array.isArray(e))return e}var rNe=()=>(Sye(),null);function Lg(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);
90if(!Number.isNaN(t))return t}return 0}var iNe=v.forwardRef((e,t)=>{var n,r,a=v.useRef(null),s=v.useState({containerWidth:Lg((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Lg((r=e.style)===null||r===void 0?void 0:r.height)}),l=Ig(s,2),u=l[0],d=l[1],f=v.useCallback((p,g)=>{d(y=>{var w=Math.round(p),b=Math.round(g);return y.containerWidth===w&&y.containerHeight===b?y:{containerWidth:w,containerHeight:b}})},[]),m=v.useCallback(p=>{if(typeof t=="function"&&t(p),a.current!=null&&(a.current.disconnect(),a.current=null),p!=null&&typeof ResizeObserver<"u"){var g=p.getBoundingClientRect(),y=g.width,w=g.height;f(y,w);var b=k=>{var C=k[0];if(C!=null){var A=C.contentRect,E=A.width,_=A.height;f(E,_)}},N=new ResizeObserver(b);N.observe(p),a.current=N}},[t,f]);return v.useEffect(()=>()=>{var p=a.current;p?.disconnect()},[f]),v.createElement(v.Fragment,null,v.createElement(Vh,{width:u.containerWidth,height:u.containerHeight}),v.createElement("div",jo({ref:m},e)))}),aNe=v.forwardRef((e,t)=>{var n=e.width,r=e.height,a=v.useState({containerWidth:Lg(n),containerHeight:Lg(r)}),s=Ig(a,2),l=s[0],u=s[1],d=v.useCallback((m,p)=>{u(g=>{var y=Math.round(m),w=Math.round(p);return g.containerWidth===y&&g.containerHeight===w?g:{containerWidth:y,containerHeight:w}})},[]),f=v.useCallback(m=>{if(typeof t=="function"&&t(m),m!=null){var p=m.getBoundingClientRect(),g=p.width,y=p.height;d(g,y)}},[t,d]);return v.createElement(v.Fragment,null,v.createElement(Vh,{width:l.containerWidth,height:l.containerHeight}),v.createElement("div",jo({ref:f},e)))}),sNe=v.forwardRef((e,t)=>{var n=e.width,r=e.height;return v.createElement(v.Fragment,null,v.createElement(Vh,{width:n,height:r}),v.createElement("div",jo({ref:t},e)))}),oNe=v.forwardRef((e,t)=>{var n=e.width,r=e.height;return typeof n=="string"||typeof r=="string"?v.createElement(aNe,jo({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?v.createElement(sNe,jo({},e,{width:n,height:r,ref:t})):v.createElement(v.Fragment,null,v.createElement(Vh,{width:n,height:r}),v.createElement("div",jo({ref:t},e)))});function lNe(e){return e?iNe:oNe}var cNe=v.forwardRef((e,t)=>{var n=e.children,r=e.className,a=e.height,s=e.onClick,l=e.onContextMenu,u=e.onDoubleClick,d=e.onMouseDown,f=e.onMouseEnter,m=e.onMouseLeave,p=e.onMouseMove,g=e.onMouseUp,y=e.onTouchEnd,w=e.onTouchMove,b=e.onTouchStart,N=e.style,k=e.width,C=e.responsive,A=e.dispatchTouchEvents,E=A===void 0?!0:A,_=v.useRef(null),T=Wt(),M=v.useState(null),P=Ig(M,2),D=P[0],U=P[1],L=v.useState(null),$=Ig(L,2),G=$[0],H=$[1],V=Kje(),B=GN(),K=B?.width>0?B.width:k,Q=B?.height>0?B.height:a,ce=v.useCallback(je=>{V(je),typeof t=="function"&&t(je),U(je),H(je),je!=null&&(_.current=je)},[V,t,U,H]),I=v.useCallback(je=>{T(lF(je)),T(yi({handler:s,reactEvent:je}))},[T,s]),J=v.useCallback(je=>{T(H2(je)),T(yi({handler:f,reactEvent:je}))},[T,f]),fe=v.useCallback(je=>{T(X$()),T(yi({handler:m,reactEvent:je}))},[T,m]),ue=v.useCallback(je=>{T(H2(je)),T(yi({handler:p,reactEvent:je}))},[T,p]),ve=v.useCallback(()=>{T(mF())},[T]),Se=v.useCallback(()=>{T(pF())},[T]),Ne=v.useCallback(je=>{T(hF(je.key))},[T]),ge=v.useCallback(je=>{T(yi({handler:l,reactEvent:je}))},[T,l]),ke=v.useCallback(je=>{T(yi({handler:u,reactEvent:je}))},[T,u]),le=v.useCallback(je=>{T(yi({handler:d,reactEvent:je}))},[T,d]),we=v.useCallback(je=>{T(yi({handler:g,reactEvent:je}))},[T,g]),he=v.useCallback(je=>{T(yi({handler:b,reactEvent:je}))},[T,b]),X=v.useCallback(je=>{E&&T(yF(je)),T(yi({handler:w,reactEvent:je}))},[T,E,w]),F=v.useCallback(je=>{T(yi({handler:y,reactEvent:je}))},[T,y]),xe=lNe(C);return v.createElement(vB.Provider,{value:D},v.createElement(moe.Provider,{value:G},v.createElement(xe,{width:K??N?.width,height:Q??N?.height,className:Bt("recharts-wrapper",r),style:Yje({position:"relative",cursor:"default",width:K,height:Q},N),onClick:I,onContextMenu:ge,onDoubleClick:ke,onFocus:ve,onBlur:Se,onKeyDown:Ne,onMouseDown:le,onMouseEnter:J,onMouseLeave:fe,onMouseMove:ue,onMouseUp:we,onTouchEnd:F,onTouchMove:X,onTouchStart:he,ref:ce},v.createElement(rNe,null),n)))}),uNe=["width","height","responsive","children","className","style","compact","title","desc"];function dNe(e,t){if(e==null)return{};var n,r,a=fNe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fNe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var hNe=v.forwardRef((e,t)=>
90{var n=e.width,r=e.height,a=e.responsive,s=e.children,l=e.className,u=e.style,d=e.compact,f=e.title,m=e.desc,p=dNe(e,uNe),g=ms(p);return d?v.createElement(v.Fragment,null,v.createElement(Vh,{width:n,height:r}),v.createElement(iM,{otherAttributes:g,title:f,desc:m},s)):v.createElement(cNe,{className:l,style:u,width:n,height:r,responsive:a??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},v.createElement(iM,{otherAttributes:g,title:f,desc:m,ref:t},v.createElement(P1e,null,s)))});function G2(){return G2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G2.apply(null,arguments)}function lM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mNe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lM(Object(n),!0).forEach(function(r){pNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pNe(e,t,n){return(t=xNe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xNe(e){var t=gNe(e,"string");return typeof t=="symbol"?t:t+""}function gNe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yNe={top:5,right:5,bottom:5,left:5},vNe=mNe({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:yNe,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},bF),bNe=v.forwardRef(function(t,n){var r,a=Ei(t.categoricalChartProps,vNe),s=t.chartName,l=t.defaultTooltipEventType,u=t.validateTooltipEventTypes,d=t.tooltipPayloadSearcher,f=t.categoricalChartProps,m={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};return v.createElement(Oje,{preloadedState:{options:m},reduxStoreName:(r=f.id)!==null&&r!==void 0?r:s},v.createElement(b1e,{chartData:f.data}),v.createElement(Mje,{layout:a.layout,margin:a.margin}),v.createElement(Ije,{throttleDelay:a.throttleDelay,throttledEvents:a.throttledEvents}),v.createElement(Rje,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),v.createElement(hNe,G2({},a,{ref:n})))}),wNe=["axis","item"],cM=v.forwardRef((e,t)=>v.createElement(bNe,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wNe,tooltipPayloadSearcher:lye,categoricalChartProps:e,ref:t}));function jNe(e,t=globalThis?.document){const n=So(e);v.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var NNe="DismissableLayer",K2="dismissableLayer.update",SNe="dismissableLayer.pointerDownOutside",kNe="dismissableLayer.focusOutside",uM,jF=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ak=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=v.useContext(jF),[m,p]=v.useState(null),g=m?.ownerDocument??globalThis?.document,[,y]=v.useState({}),w=Nt(t,M=>p(M)),b=Array.from(f.layers),[N]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),k=b.indexOf(N),C=m?b.indexOf(m):-1,A=f.layersWithOutsidePointerEventsDisabled.size>0,E=C>=k,_=ENe(M=>{const P=M.target,D=[...f.branches].some(U=>U.contains(P));!E||D||(a?.(M),l?.(M),M.defaultPrevented||u?.())},g),T=TNe(M=>{const P=M.target;[...f.branches].some(U=>U.contains(P))||(s?.(M),l?.(M),M.defaultPrevented||u?.())},g);return jNe(M=>{C===f.layers.size-1&&(r?.(M),!M.defaultPrevented&&u&&(M.preventDefault(),u()))},g),v.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(uM=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),dM(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=uM)}},[m,g,n,f]),v.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),dM())},[m,f]),v.useEffect(()=>{const M=()=>y({});return document.addEventListener(K2,M),()=>document.removeEventListener(K2,M)},[]),i.jsx(it.div,{...d,ref:w,style:{pointerEvents:A?E?"auto":"none":void 0,...e.style},onFocusCapture:ut(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ut(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ut(e.onPointerDownCapture,_.onPointerDownCapture)})});ak.displayName=NNe;var ANe="DismissableLayerBranch",CNe=v.forwardRef((e,t)=>
vendor: 4,646 bytes, line 90
90{const n=v.useContext(jF),r=v.useRef(null),a=Nt(t,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(it.div,{...e,ref:a})});CNe.displayName=ANe;function ENe(e,t=globalThis?.document){const n=So(e),r=v.useRef(!1),a=v.useRef(()=>{});return v.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){NF(SNe,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function TNe(e,t=globalThis?.document){const n=So(e),r=v.useRef(!1);return v.useEffect(()=>{const a=s=>{s.target&&!r.current&&NF(kNe,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dM(){const e=new CustomEvent(K2);document.dispatchEvent(e)}function NF(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Vre(a,s):a.dispatchEvent(s)}var z1="focusScope.autoFocusOnMount",V1="focusScope.autoFocusOnUnmount",fM={bubbles:!1,cancelable:!0},_Ne="FocusScope",sk=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[u,d]=v.useState(null),f=So(a),m=So(s),p=v.useRef(null),g=Nt(t,b=>d(b)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let b=function(A){if(y.paused||!u)return;const E=A.target;u.contains(E)?p.current=E:fo(p.current,{select:!0})},N=function(A){if(y.paused||!u)return;const E=A.relatedTarget;E!==null&&(u.contains(E)||fo(p.current,{select:!0}))},k=function(A){if(document.activeElement===document.body)for(const _ of A)_.removedNodes.length>0&&fo(u)};document.addEventListener("focusin",b),document.addEventListener("focusout",N);const C=new MutationObserver(k);return u&&C.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",N),C.disconnect()}}},[r,u,y.paused]),v.useEffect(()=>{if(u){mM.add(y);const b=document.activeElement;if(!u.contains(b)){const k=new CustomEvent(z1,fM);u.addEventListener(z1,f),u.dispatchEvent(k),k.defaultPrevented||(ONe(INe(SF(u)),{select:!0}),document.activeElement===b&&fo(u))}return()=>{u.removeEventListener(z1,f),setTimeout(()=>{const k=new CustomEvent(V1,fM);u.addEventListener(V1,m),u.dispatchEvent(k),k.defaultPrevented||fo(b??document.body,{select:!0}),u.removeEventListener(V1,m),mM.remove(y)},0)}}},[u,f,m,y]);const w=v.useCallback(b=>{if(!n&&!r||y.paused)return;const N=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,k=document.activeElement;if(N&&k){const C=b.currentTarget,[A,E]=PNe(C);A&&E?!b.shiftKey&&k===E?(b.preventDefault(),n&&fo(A,{select:!0})):b.shiftKey&&k===A&&(b.preventDefault(),n&&fo(E,{select:!0})):k===C&&b.preventDefault()}},[n,r,y.paused]);return i.jsx(it.div,{tabIndex:-1,...l,ref:g,onKeyDown:w})});sk.displayName=_Ne;function ONe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fo(r,{select:t}),document.activeElement!==n)return}function PNe(e){const t=SF(e),n=hM(t,e),r=hM(t.reverse(),e);return[n,r]}function SF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hM(e,t){for(const n of e)if(!MNe(n,{upTo:t}))return n}function MNe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function RNe(e){return e instanceof HTMLInputElement&&"select"in e}function fo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&RNe(e)&&t&&e.select()}}var mM=DNe();function DNe(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=pM(e,t),e.unshift(t)},remove(t){e=pM(e,t),e[0]?.resume()}}}function pM(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function INe(e){return e.filter(t=>t.tagName!=="A")}var LNe="Portal",ok=v.forwardRef((e,t)=>
vendor: 4,461 bytes, line 90
90{const{container:n,...r}=e,[a,s]=v.useState(!1);Zn(()=>s(!0),[]);const l=n||a&&globalThis?.document?.body;return l?nR.createPortal(i.jsx(it.div,{...r,ref:t}),l):null});ok.displayName=LNe;var W1=0;function kF(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xM()),document.body.insertAdjacentElement("beforeend",e[1]??xM()),W1++,()=>{W1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),W1--}},[])}function xM(){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 fa=function(){return fa=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},fa.apply(this,arguments)};function AF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function $Ne(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Sx="right-scroll-bar-position",kx="width-before-scroll-bar",BNe="with-scroll-bars-hidden",FNe="--removed-body-scroll-bar-size";function q1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function UNe(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var zNe=typeof window<"u"?v.useLayoutEffect:v.useEffect,gM=new WeakMap;function VNe(e,t){var n=UNe(null,function(r){return e.forEach(function(a){return q1(a,r)})});return zNe(function(){var r=gM.get(n);if(r){var a=new Set(r),s=new Set(e),l=n.current;a.forEach(function(u){s.has(u)||q1(u,null)}),s.forEach(function(u){a.has(u)||q1(u,l)})}gM.set(n,e)},[e]),n}function WNe(e){return e}function qNe(e,t){t===void 0&&(t=WNe);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(s),l=n}var d=function(){var m=l;l=[],m.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return a}function HNe(e){e===void 0&&(e={});var t=qNe(null);return t.options=fa({async:!0,ssr:!1},e),t}var CF=function(e){var t=e.sideCar,n=AF(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,fa({},n))};CF.isSideCarExport=!0;function GNe(e,t){return e.useMedium(t),CF}var EF=HNe(),H1=function(){},ty=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:H1,onWheelCapture:H1,onTouchMoveCapture:H1}),a=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,p=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,b=e.inert,N=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,A=e.gapMode,E=AF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=g,T=VNe([n,t]),M=fa(fa({},E),a);return v.createElement(v.Fragment,null,m&&v.createElement(_,{sideCar:EF,removeScrollBar:f,shards:p,noRelative:y,noIsolation:w,inert:b,setCallbacks:s,allowPinchZoom:!!N,lockRef:n,gapMode:A}),l?v.cloneElement(v.Children.only(u),fa(fa({},M),{ref:T})):v.createElement(C,fa({},M,{className:d,ref:T}),u))});ty.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ty.classNames={fullWidth:kx,zeroRight:Sx};var KNe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};
vendor: 5,009 bytes, lines 90-130
90function YNe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KNe();return t&&e.setAttribute("nonce",t),e}function QNe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XNe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ZNe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YNe())&&(QNe(t,n),XNe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JNe=function(){var e=ZNe();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},TF=function(){var e=JNe(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},eSe={left:0,top:0,right:0,gap:0},G1=function(e){return parseInt(e||"",10)||0},tSe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[G1(n),G1(r),G1(a)]},nSe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eSe;var t=tSe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rSe=TF(),ju="data-scroll-locked",iSe=function(e,t,n,r){var a=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),` 91 .`.concat(BNe,` { 92 overflow: hidden `).concat(r,`; 93 padding-right: `).concat(u,"px ").concat(r,`; 94 } 95 body[`).concat(ju,`] { 96 overflow: hidden `).concat(r,`; 97 overscroll-behavior: contain; 98 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 99 padding-left: `.concat(a,`px; 100 padding-top: `).concat(s,`px; 101 padding-right: `).concat(l,`px; 102 margin-left:0; 103 margin-top:0; 104 margin-right: `).concat(u,"px ").concat(r,`; 105 `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` 106 } 107 108 .`).concat(Sx,` { 109 right: `).concat(u,"px ").concat(r,`; 110 } 111 112 .`).concat(kx,` { 113 margin-right: `).concat(u,"px ").concat(r,`; 114 } 115 116 .`).concat(Sx," .").concat(Sx,` { 117 right: 0 `).concat(r,`; 118 } 119 120 .`).concat(kx," .").concat(kx,` { 121 margin-right: 0 `).concat(r,`; 122 } 123 124 body[`).concat(ju,`] { 125 `).concat(FNe,": ").concat(u,`px; 126 } 127`)},yM=function(){var e=parseInt(document.body.getAttribute(ju)||"0",10);return isFinite(e)?e:0},aSe=function(){v.useEffect(function(){return document.body.setAttribute(ju,(yM()+1).toString()),function(){var e=yM()-1;e<=0?document.body.removeAttribute(ju):document.body.setAttribute(ju,e.toString())}},[])},sSe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;aSe();var s=v.useMemo(function(){return nSe(a)},[a]);return v.createElement(rSe,{styles:iSe(s,!t,a,n?"":"!important")})},Y2=!1;if(typeof window<"u")try{var Xp=Object.defineProperty({},"passive",{get:function(){return Y2=!0,!0}});window.addEventListener("test",Xp,Xp),window.removeEventListener("test",Xp,Xp)}catch{Y2=!1}var Xc=Y2?{passive:!1}:!1,oSe=function(e){return e.tagName==="TEXTAREA"},_F=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oSe(e)&&n[t]==="visible")},lSe=function(e){return _F(e,"overflowY")},cSe=function(e){return _F(e,"overflowX")},vM=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=OF(e,r);if(a){var s=PF(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},uSe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dSe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},OF=function(e,t){return e==="v"?lSe(t):cSe(t)},PF=function(e,t){return e==="v"?uSe(t):dSe(t)},fSe=function(e,t){return e==="h"&&t==="rtl"?-1:1},hSe=function(e,t,n,r,a){var s=fSe(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,m=l>0,p=0,g=0;do{if(!u)break;var y=PF(e,u),w=y[0],b=y[1],N=y[2],k=b-N-s*w;(w||k)&&OF(e,u)&&(p+=k,g+=w);var C=u.parentNode;u=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&Math.abs(p)<1||!m&&Math.abs(g)<1)&&(f=!0),f},Zp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bM=function(e){return[e.deltaX,e.deltaY]},wM=function(e){return e&&"current"in e?e.current:e},mSe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pSe=function(e){return` 128 .block-interactivity-`.concat(e,` {pointer-events: none;} 129 .allow-interactivity-`).concat(e,` {pointer-events: all;} 130`)},xSe=0,Zc=[];function gSe(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(xSe++)[0],s=v.useState(TF)[0],l=v.useRef(e);v.useEffect(function(){l.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=$Ne([e.lockRef.current],(e.shards||[]).map(wM),!0).filter(
vendor: 4,675 bytes, line 130
130Boolean);return b.forEach(function(N){return N.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=v.useCallback(function(b,N){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!l.current.allowPinchZoom;var k=Zp(b),C=n.current,A="deltaX"in b?b.deltaX:C[0]-k[0],E="deltaY"in b?b.deltaY:C[1]-k[1],_,T=b.target,M=Math.abs(A)>Math.abs(E)?"h":"v";if("touches"in b&&M==="h"&&T.type==="range")return!1;var P=window.getSelection(),D=P&&P.anchorNode,U=D?D===T||D.contains(T):!1;if(U)return!1;var L=vM(M,T);if(!L)return!0;if(L?_=M:(_=M==="v"?"h":"v",L=vM(M,T)),!L)return!1;if(!r.current&&"changedTouches"in b&&(A||E)&&(r.current=_),!_)return!0;var $=r.current||_;return hSe($,N,b,$==="h"?A:E)},[]),d=v.useCallback(function(b){var N=b;if(!(!Zc.length||Zc[Zc.length-1]!==s)){var k="deltaY"in N?bM(N):Zp(N),C=t.current.filter(function(_){return _.name===N.type&&(_.target===N.target||N.target===_.shadowParent)&&mSe(_.delta,k)})[0];if(C&&C.should){N.cancelable&&N.preventDefault();return}if(!C){var A=(l.current.shards||[]).map(wM).filter(Boolean).filter(function(_){return _.contains(N.target)}),E=A.length>0?u(N,A[0]):!l.current.noIsolation;E&&N.cancelable&&N.preventDefault()}}},[]),f=v.useCallback(function(b,N,k,C){var A={name:b,delta:N,target:k,should:C,shadowParent:ySe(k)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(E){return E!==A})},1)},[]),m=v.useCallback(function(b){n.current=Zp(b),r.current=void 0},[]),p=v.useCallback(function(b){f(b.type,bM(b),b.target,u(b,e.lockRef.current))},[]),g=v.useCallback(function(b){f(b.type,Zp(b),b.target,u(b,e.lockRef.current))},[]);v.useEffect(function(){return Zc.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,Xc),document.addEventListener("touchmove",d,Xc),document.addEventListener("touchstart",m,Xc),function(){Zc=Zc.filter(function(b){return b!==s}),document.removeEventListener("wheel",d,Xc),document.removeEventListener("touchmove",d,Xc),document.removeEventListener("touchstart",m,Xc)}},[]);var y=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(s,{styles:pSe(a)}):null,y?v.createElement(sSe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ySe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vSe=GNe(EF,gSe);var lk=v.forwardRef(function(e,t){return v.createElement(ty,fa({},e,{ref:t,sideCar:vSe}))});lk.classNames=ty.classNames;var bSe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jc=new WeakMap,Jp=new WeakMap,ex={},K1=0,MF=function(e){return e&&(e.host||MF(e.parentNode))},wSe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=MF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},jSe=function(e,t,n,r){var a=wSe(t,Array.isArray(e)?e:[e]);ex[n]||(ex[n]=new WeakMap);var s=ex[n],l=[],u=new Set,d=new Set(a),f=function(p){!p||u.has(p)||(u.add(p),f(p.parentNode))};a.forEach(f);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(g){if(u.has(g))m(g);else try{var y=g.getAttribute(r),w=y!==null&&y!=="false",b=(Jc.get(g)||0)+1,N=(s.get(g)||0)+1;Jc.set(g,b),s.set(g,N),l.push(g),b===1&&w&&Jp.set(g,!0),N===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",g,k)}})};return m(t),u.clear(),K1++,function(){l.forEach(function(p){var g=Jc.get(p)-1,y=s.get(p)-1;Jc.set(p,g),s.set(p,y),g||(Jp.has(p)||p.removeAttribute(r),Jp.delete(p)),y||p.removeAttribute(n)}),K1--,K1||(Jc=new WeakMap,Jc=new WeakMap,Jp=new WeakMap,ex={})}},RF=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=bSe(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),jSe(r,a,n,"aria-hidden")):function(){return null}},ny="Dialog",[DF]=_a(ny),[NSe,ta]=DF(ny),IF=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,u=v.useRef(null),d=v.useRef(null),[f,m]=hs({prop:r,defaultProp:a??!1,onChange:s,caller:ny});return i.jsx(NSe,{scope:t,triggerRef:u,contentRef:d,contentId:cs(),titleId:cs(),descriptionId:cs(),open:f,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(p=>!p),[m]),modal:l,children:n})};IF.displayName=ny;var LF="DialogTrigger",SSe=v.forwardRef((e,t)=>
vendor: 5,413 bytes, lines 130-134
130{const{__scopeDialog:n,...r}=e,a=ta(LF,n),s=Nt(t,a.triggerRef);return i.jsx(it.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":dk(a.open),...r,ref:s,onClick:ut(e.onClick,a.onOpenToggle)})});SSe.displayName=LF;var ck="DialogPortal",[kSe,$F]=DF(ck,{forceMount:void 0}),BF=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=ta(ck,t);return i.jsx(kSe,{scope:t,forceMount:n,children:v.Children.map(r,l=>i.jsx(qu,{present:n||s.open,children:i.jsx(ok,{asChild:!0,container:a,children:l})}))})};BF.displayName=ck;var $g="DialogOverlay",FF=v.forwardRef((e,t)=>{const n=$F($g,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=ta($g,e.__scopeDialog);return s.modal?i.jsx(qu,{present:r||s.open,children:i.jsx(CSe,{...a,ref:t})}):null});FF.displayName=$g;var ASe=sh("DialogOverlay.RemoveScroll"),CSe=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ta($g,n);return i.jsx(lk,{as:ASe,allowPinchZoom:!0,shards:[a.contentRef],children:i.jsx(it.div,{"data-state":dk(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$l="DialogContent",UF=v.forwardRef((e,t)=>{const n=$F($l,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=ta($l,e.__scopeDialog);return i.jsx(qu,{present:r||s.open,children:s.modal?i.jsx(ESe,{...a,ref:t}):i.jsx(TSe,{...a,ref:t})})});UF.displayName=$l;var ESe=v.forwardRef((e,t)=>{const n=ta($l,e.__scopeDialog),r=v.useRef(null),a=Nt(t,n.contentRef,r);return v.useEffect(()=>{const s=r.current;if(s)return RF(s)},[]),i.jsx(zF,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ut(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ut(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:ut(e.onFocusOutside,s=>s.preventDefault())})}),TSe=v.forwardRef((e,t)=>{const n=ta($l,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return i.jsx(zF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),zF=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,u=ta($l,n),d=v.useRef(null),f=Nt(t,d);return kF(),i.jsxs(i.Fragment,{children:[i.jsx(sk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:i.jsx(ak,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":dk(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(_Se,{titleId:u.titleId}),i.jsx(PSe,{contentRef:d,descriptionId:u.descriptionId})]})]})}),uk="DialogTitle",VF=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ta(uk,n);return i.jsx(it.h2,{id:a.titleId,...r,ref:t})});VF.displayName=uk;var WF="DialogDescription",qF=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ta(WF,n);return i.jsx(it.p,{id:a.descriptionId,...r,ref:t})});qF.displayName=WF;var HF="DialogClose",GF=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ta(HF,n);return i.jsx(it.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,()=>a.onOpenChange(!1))})});GF.displayName=HF;function dk(e){return e?"open":"closed"}var KF="DialogTitleWarning",[M4e,YF]=Dre(KF,{contentName:$l,titleName:uk,docsSlug:"dialog"}),_Se=({titleId:e})=>{const t=YF(KF),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 131 132If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 133 134For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},OSe="DialogDescriptionWarning",PSe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${YF(OSe).contentName}}.`;return v.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},MSe=IF,RSe=BF,QF=FF,XF=UF,ZF=VF,JF=qF,DSe=GF;const rm=MSe,ISe=RSe,eU=v.forwardRef(({className:e,...t},n)=>i.jsx(QF,{ref:n,className:Je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));eU.displayName=QF.displayName;const sd=v.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(ISe,{children:[i.jsx(eU,{}),i.jsxs(XF,{ref:r,className:Je("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:rou
134nded-lg",e),...n,children:[t,i.jsxs(DSe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[i.jsx(Oa,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));sd.displayName=XF.displayName;const Bl=({className:e,...t})=>i.jsx("div",{className:Je("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Bl.displayName="DialogHeader";const ry=({className:e,...t})=>i.jsx("div",{className:Je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ry.displayName="DialogFooter";const Fl=v.forwardRef(({className:e,...t},n)=>i.jsx(ZF,{ref:n,className:Je("text-lg font-semibold leading-none tracking-tight",e),...t}));Fl.displayName=ZF.displayName;const Ul=v.forwardRef(({className:e,...t},n)=>i.jsx(JF,{ref:n,className:Je("text-sm text-muted-foreground",e),...t}));Ul.displayName=JF.displayName;const En=v.forwardRef(({className:e,type:t,...n},r)=>i.jsx("input",{type:t,className:Je("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));En.displayName="Input";var iy="Switch",[LSe]=_a(iy),[$Se,BSe]=LSe(iy),tU=v.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:s,required:l,disabled:u,value:d="on",onCheckedChange:f,form:m,...p}=e,[g,y]=v.useState(null),w=Nt(t,A=>y(A)),b=v.useRef(!1),N=g?m||!!g.closest("form"):!0,[k,C]=hs({prop:a,defaultProp:s??!1,onChange:f,caller:iy});return i.jsxs($Se,{scope:n,checked:k,disabled:u,children:[i.jsx(it.button,{type:"button",role:"switch","aria-checked":k,"aria-required":l,"data-state":aU(k),"data-disabled":u?"":void 0,disabled:u,value:d,...p,ref:w,onClick:ut(e.onClick,A=>{C(E=>!E),N&&(b.current=A.isPropagationStopped(),b.current||A.stopPropagation())})}),N&&i.jsx(iU,{control:g,bubbles:!b.current,name:r,value:d,checked:k,required:l,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});tU.displayName=iy;var nU="SwitchThumb",rU=v.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=BSe(nU,n);return i.jsx(it.span,{"data-state":aU(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});rU.displayName=nU;var FSe="SwitchBubbleInput",iU=v.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...a},s)=>{const l=v.useRef(null),u=Nt(l,s),d=yN(n),f=gN(t);return v.useEffect(()=>{const m=l.current;if(!m)return;const p=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==n&&y){const w=new Event("click",{bubbles:r});y.call(m,n),m.dispatchEvent(w)}},[d,n,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:u,style:{...a.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});iU.displayName=FSe;function aU(e){return e?"checked":"unchecked"}var sU=tU,USe=rU;const ay=v.forwardRef(({className:e,...t},n)=>i.jsx(sU,{className:Je("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:i.jsx(USe,{className:Je("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));ay.displayName=sU.displayName;var im=e=>e.type==="checkbox",Nl=e=>e instanceof Date,Dr=e=>e==null;const oU=e=>typeof e=="object";var yn=e=>!Dr(e)&&!Array.isArray(e)&&oU(e)&&!Nl(e),lU=e=>yn(e)&&e.target?im(e.target)?e.target.checked:e.target.value:e,zSe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,cU=(e,t)=>e.has(zSe(t)),VSe=e=>{const t=e.constructor&&e.constructor.prototype;return yn(t)&&t.hasOwnProperty("isPrototypeOf")},fk=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(fk&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(yn(e)&&VSe(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=mn(e[a]));return r}var sy=e=>/^\w*$/.test(e),Ut=e=>e===void 0,hk=e=>Array.isArray(e)?e.filter(Boolean):[],mk=e=>
134hk(e.replace(/["|']|\]/g,"").split(/\.|\[/)),_e=(e,t,n)=>{if(!t||!yn(e))return n;const r=(sy(t)?[t]:mk(t)).reduce((a,s)=>Dr(a)?a:a[s],e);return Ut(r)||r===e?Ut(e[t])?n:e[t]:r},Xr=e=>typeof e=="boolean",jr=e=>typeof e=="function",Rt=(e,t,n)=>{let r=-1;const a=sy(t)?[t]:mk(t),s=a.length,l=s-1;for(;++r<s;){const u=a[r];let d=n;if(r!==l){const f=e[u];d=yn(f)||Array.isArray(f)?f:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Bg={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ui={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ya={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},uU=z.createContext(null);uU.displayName="HookFormControlContext";const pk=()=>z.useContext(uU);var dU=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(a,s,{get:()=>{const l=s;return t._proxyFormState[l]!==Ui.all&&(t._proxyFormState[l]=!r||Ui.all),n&&(n[l]=!0),e[l]}});return a};const xk=typeof window<"u"?z.useLayoutEffect:z.useEffect;function WSe(e){const t=pk(),{control:n=t,disabled:r,name:a,exact:s}=e||{},[l,u]=z.useState(n._formState),d=z.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return xk(()=>n._subscribe({name:a,formState:d.current,exact:s,callback:f=>{!r&&u({...n._formState,...f})}}),[a,r,s]),z.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),z.useMemo(()=>dU(l,n,d.current,!1),[l,n])}var ei=e=>typeof e=="string",Q2=(e,t,n,r,a)=>ei(e)?(r&&t.watch.add(e),_e(n,e,a)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),_e(n,s))):(r&&(t.watchAll=!0),n),X2=e=>Dr(e)||!oU(e);function zi(e,t,n=new WeakSet){if(X2(e)||X2(t))return Object.is(e,t);if(Nl(e)&&Nl(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const l=e[s];if(!a.includes(s))return!1;if(s!=="ref"){const u=t[s];if(Nl(l)&&Nl(u)||yn(l)&&yn(u)||Array.isArray(l)&&Array.isArray(u)?!zi(l,u,n):!Object.is(l,u))return!1}}return!0}function qSe(e){const t=pk(),{control:n=t,name:r,defaultValue:a,disabled:s,exact:l,compute:u}=e||{},d=z.useRef(a),f=z.useRef(u),m=z.useRef(void 0),p=z.useRef(n),g=z.useRef(r);f.current=u;const[y,w]=z.useState(()=>{const E=n._getWatch(r,d.current);return f.current?f.current(E):E}),b=z.useCallback(E=>{const _=Q2(r,n._names,E||n._formValues,!1,d.current);return f.current?f.current(_):_},[n._formValues,n._names,r]),N=z.useCallback(E=>{if(!s){const _=Q2(r,n._names,E||n._formValues,!1,d.current);if(f.current){const T=f.current(_);zi(T,m.current)||(w(T),m.current=T)}else w(_)}},[n._formValues,n._names,s,r]);xk(()=>((p.current!==n||!zi(g.current,r))&&(p.current=n,g.current=r,N()),n._subscribe({name:r,formState:{values:!0},exact:l,callback:E=>{N(E.values)}})),[n,l,r,N]),z.useEffect(()=>n._removeUnmounted());const k=p.current!==n,C=g.current,A=z.useMemo(()=>{if(s)return null;const E=!k&&!zi(C,r);return k||E?b():null},[s,k,r,C,b]);return A!==null?A:y}function HSe(e){const t=pk(),{name:n,disabled:r,control:a=t,shouldUnregister:s,defaultValue:l,exact:u=!0}=e,d=cU(a._names.array,n),f=z.useMemo(()=>_e(a._formValues,n,_e(a._defaultValues,n,l)),[a,n,l]),m=qSe({control:a,name:n,defaultValue:f,exact:u}),p=WSe({control:a,name:n,exact:u}),g=z.useRef(e),y=z.useRef(void 0),w=z.useRef(a.register(n,{...e.rules,value:m,...Xr(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const b=z.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_e(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!_e(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!_e(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!_e(p.validatingFields,n)},error:{enumerable:!0,get:()=>_e(p.errors,n)}}),[p,n]),N=z.useCallback(E=>w.current.onChange({target:{value:lU(E),name:n},type:Bg.CHANGE}),[n]),k=z.useCallback(()=>w.current.onBlur({target:{value:_e(a._formValues,n),name:n},type:Bg.BLUR}),[n,a._formValues]),C=z.useCallback(E=>{const _=_e(a._fields,n);_&&_._f&&E&&(_._f.ref={focus:()=>jr(E.focus)&&E.focus(),select:()=>jr(E.select)&&E.select(),setCustomValidity:T=>jr(E.setCustomValidity)&&E.setCustomValidity(T),reportValidity:()=>jr(E.reportValidity)&&E.reportValidity()})},[a._fields,n]),A=z.useMemo(()=>({name:n,value:m,...Xr(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:N,onBlur:k,ref:C}
134),[n,r,p.disabled,N,k,C,m]);return z.useEffect(()=>{const E=a._options.shouldUnregister||s,_=y.current;_&&_!==n&&!d&&a.unregister(_),a.register(n,{...g.current.rules,...Xr(g.current.disabled)?{disabled:g.current.disabled}:{}});const T=(M,P)=>{const D=_e(a._fields,M);D&&D._f&&(D._f.mount=P)};if(T(n,!0),E){const M=mn(_e(a._options.defaultValues,n,g.current.defaultValue));Rt(a._defaultValues,n,M),Ut(_e(a._formValues,n))&&Rt(a._formValues,n,M)}return!d&&a.register(n),y.current=n,()=>{(d?E&&!a._state.action:E)?a.unregister(n):T(n,!1)}},[n,a,d,s]),z.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),z.useMemo(()=>({field:A,formState:p,fieldState:b}),[A,p,b])}const Z2=e=>e.render(HSe(e)),GSe=z.createContext(null);GSe.displayName="HookFormContext";var KSe=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Qf=e=>Array.isArray(e)?e:[e],jM=()=>{let e=[];return{get observers(){return e},next:a=>{for(const s of e)s.next&&s.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(s=>s!==a)}}),unsubscribe:()=>{e=[]}}};function fU(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],s=t[r];if(a&&yn(a)&&s){const l=fU(a,s);yn(l)&&(n[r]=l)}else e[r]&&(n[r]=s)}return n}var yr=e=>yn(e)&&!Object.keys(e).length,gk=e=>e.type==="file",Fg=e=>{if(!fk)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},hU=e=>e.type==="select-multiple",yk=e=>e.type==="radio",YSe=e=>yk(e)||im(e),Y1=e=>Fg(e)&&e.isConnected;function QSe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ut(e)?r++:e[t[r++]];return e}function XSe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ut(e[t]))return!1;return!0}function pn(e,t){const n=Array.isArray(t)?t:sy(t)?[t]:mk(t),r=n.length===1?e:QSe(e,n),a=n.length-1,s=n[a];return r&&delete r[s],a!==0&&(yn(r)&&yr(r)||Array.isArray(r)&&XSe(r))&&pn(e,n.slice(0,-1)),e}var ZSe=e=>{for(const t in e)if(jr(e[t]))return!0;return!1};function mU(e){return Array.isArray(e)||yn(e)&&!ZSe(e)}function J2(e,t={}){for(const n in e){const r=e[n];mU(r)?(t[n]=Array.isArray(r)?[]:{},J2(r,t[n])):Ut(r)||(t[n]=!0)}return t}function lu(e,t,n){n||(n=J2(t));for(const r in e){const a=e[r];if(mU(a))Ut(t)||X2(n[r])?n[r]=J2(a,Array.isArray(a)?[]:{}):lu(a,Dr(t)?{}:t[r],n[r]);else{const s=t[r];n[r]=!zi(a,s)}}return n}const NM={value:!1,isValid:!1},SM={value:!0,isValid:!0};var pU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ut(e[0].attributes.value)?Ut(e[0].value)||e[0].value===""?SM:{value:e[0].value,isValid:!0}:SM:NM}return NM},xU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ut(e)?e:t?e===""?NaN:e&&+e:n&&ei(e)?new Date(e):r?r(e):e;const kM={isValid:!1,value:null};var gU=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,kM):kM;function AM(e){const t=e.ref;return gk(t)?t.files:yk(t)?gU(e.refs).value:hU(t)?[...t.selectedOptions].map(({value:n})=>n):im(t)?pU(e.refs).value:xU(Ut(t.value)?e.ref.value:t.value,e)}var JSe=(e,t,n,r)=>{const a={};for(const s of e){const l=_e(t,s);l&&Rt(a,s,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Ug=e=>e instanceof RegExp,kf=e=>Ut(e)?e:Ug(e)?e.source:yn(e)?Ug(e.value)?e.value.source:e.value:e,CM=e=>({isOnSubmit:!e||e===Ui.onSubmit,isOnBlur:e===Ui.onBlur,isOnChange:e===Ui.onChange,isOnAll:e===Ui.all,isOnTouch:e===Ui.onTouched});const EM="AsyncFunction";var eke=e=>!!e&&!!e.validate&&!!(jr(e.validate)&&e.validate.constructor.name===EM||yn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===EM)),tke=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),TM=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Xf=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const s=_e(e,a);if(s){const{_f:l,...u}=s;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;
vendor: 4,121 bytes, line 134
134if(Xf(u,t))break}else if(yn(u)&&Xf(u,t))break}}};function _M(e,t,n){const r=_e(e,n);if(r||sy(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const s=a.join("."),l=_e(t,s),u=_e(e,s);if(l&&!Array.isArray(l)&&n!==s)return{name:n};if(u&&u.type)return{name:s,error:u};if(u&&u.root&&u.root.type)return{name:`${s}.root`,error:u.root};a.pop()}return{name:n}}var nke=(e,t,n,r)=>{n(e);const{name:a,...s}=e;return yr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||Ui.all))},rke=(e,t,n)=>!e||!t||e===t||Qf(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),ike=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,ake=(e,t)=>!hk(_e(e,t)).length&&pn(e,t),ske=(e,t,n)=>{const r=Qf(_e(e,n));return Rt(r,"root",t[n]),Rt(e,n,r),e};function OM(e,t,n="validate"){if(ei(e)||Array.isArray(e)&&e.every(ei)||Xr(e)&&!e)return{type:n,message:ei(e)?e:"",ref:t}}var eu=e=>yn(e)&&!Ug(e)?e:{value:e,message:""},PM=async(e,t,n,r,a,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:m,min:p,max:g,pattern:y,validate:w,name:b,valueAsNumber:N,mount:k}=e._f,C=_e(n,b);if(!k||t.has(b))return{};const A=u?u[0]:l,E=$=>{a&&A.reportValidity&&(A.setCustomValidity(Xr($)?"":$||""),A.reportValidity())},_={},T=yk(l),M=im(l),P=T||M,D=(N||gk(l))&&Ut(l.value)&&Ut(C)||Fg(l)&&l.value===""||C===""||Array.isArray(C)&&!C.length,U=KSe.bind(null,b,r,_),L=($,G,H,V=Ya.maxLength,B=Ya.minLength)=>{const K=$?G:H;_[b]={type:$?V:B,message:K,ref:l,...U($?V:B,K)}};if(s?!Array.isArray(C)||!C.length:d&&(!P&&(D||Dr(C))||Xr(C)&&!C||M&&!pU(u).isValid||T&&!gU(u).isValid)){const{value:$,message:G}=ei(d)?{value:!!d,message:d}:eu(d);if($&&(_[b]={type:Ya.required,message:G,ref:A,...U(Ya.required,G)},!r))return E(G),_}if(!D&&(!Dr(p)||!Dr(g))){let $,G;const H=eu(g),V=eu(p);if(!Dr(C)&&!isNaN(C)){const B=l.valueAsNumber||C&&+C;Dr(H.value)||($=B>H.value),Dr(V.value)||(G=B<V.value)}else{const B=l.valueAsDate||new Date(C),K=I=>new Date(new Date().toDateString()+" "+I),Q=l.type=="time",ce=l.type=="week";ei(H.value)&&C&&($=Q?K(C)>K(H.value):ce?C>H.value:B>new Date(H.value)),ei(V.value)&&C&&(G=Q?K(C)<K(V.value):ce?C<V.value:B<new Date(V.value))}if(($||G)&&(L(!!$,H.message,V.message,Ya.max,Ya.min),!r))return E(_[b].message),_}if((f||m)&&!D&&(ei(C)||s&&Array.isArray(C))){const $=eu(f),G=eu(m),H=!Dr($.value)&&C.length>+$.value,V=!Dr(G.value)&&C.length<+G.value;if((H||V)&&(L(H,$.message,G.message),!r))return E(_[b].message),_}if(y&&!D&&ei(C)){const{value:$,message:G}=eu(y);if(Ug($)&&!C.match($)&&(_[b]={type:Ya.pattern,message:G,ref:l,...U(Ya.pattern,G)},!r))return E(G),_}if(w){if(jr(w)){const $=await w(C,n),G=OM($,A);if(G&&(_[b]={...G,...U(Ya.validate,G.message)},!r))return E(G.message),_}else if(yn(w)){let $={};for(const G in w){if(!yr($)&&!r)break;const H=OM(await w[G](C,n),A,G);H&&($={...H,...U(G,H.message)},E(H.message),r&&(_[b]=$))}if(!yr($)&&(_[b]={ref:A,...$},!r))return _}}return E(!0),_};const oke={mode:Ui.onSubmit,reValidateMode:Ui.onChange,shouldFocusError:!0};function lke(e={}){let t={...oke,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:jr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=yn(t.defaultValues)||yn(t.values)?mn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:mn(a),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,f=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...m};let g={...p};const y={array:jM(),state:jM()},w=t.criteriaMode===Ui.all,b=q=>te=>{clearTimeout(f),f=setTimeout(q,te)},N=async q=>{if(!l.keepIsValid&&!t.disabled&&(p.isValid||g.isValid||q)){let te;t.resolver?(te=yr((await P()).errors),k()):te=await U(r,!0),te!==n.isValid&&y.state.next({isValid:te})}},k=(q,te)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((q||Array.from(u.mount)).forEac
134h(oe=>{oe&&(te?Rt(n.validatingFields,oe,te):pn(n.validatingFields,oe))}),y.state.next({validatingFields:n.validatingFields,isValidating:!yr(n.validatingFields)}))},C=(q,te=[],oe,Ce,Ae=!0,ye=!0)=>{if(Ce&&oe&&!t.disabled){if(l.action=!0,ye&&Array.isArray(_e(r,q))){const Te=oe(_e(r,q),Ce.argA,Ce.argB);Ae&&Rt(r,q,Te)}if(ye&&Array.isArray(_e(n.errors,q))){const Te=oe(_e(n.errors,q),Ce.argA,Ce.argB);Ae&&Rt(n.errors,q,Te),ake(n.errors,q)}if((p.touchedFields||g.touchedFields)&&ye&&Array.isArray(_e(n.touchedFields,q))){const Te=oe(_e(n.touchedFields,q),Ce.argA,Ce.argB);Ae&&Rt(n.touchedFields,q,Te)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=lu(a,s)),y.state.next({name:q,isDirty:$(q,te),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Rt(s,q,te)},A=(q,te)=>{Rt(n.errors,q,te),y.state.next({errors:n.errors})},E=q=>{n.errors=q,y.state.next({errors:n.errors,isValid:!1})},_=(q,te,oe,Ce)=>{const Ae=_e(r,q);if(Ae){const ye=_e(s,q,Ut(oe)?_e(a,q):oe);Ut(ye)||Ce&&Ce.defaultChecked||te?Rt(s,q,te?ye:AM(Ae._f)):V(q,ye),l.mount&&!l.action&&N()}},T=(q,te,oe,Ce,Ae)=>{let ye=!1,Te=!1;const Xe={name:q};if(!t.disabled){if(!oe||Ce){(p.isDirty||g.isDirty)&&(Te=n.isDirty,n.isDirty=Xe.isDirty=$(),ye=Te!==Xe.isDirty);const We=zi(_e(a,q),te);Te=!!_e(n.dirtyFields,q),We?pn(n.dirtyFields,q):Rt(n.dirtyFields,q,!0),Xe.dirtyFields=n.dirtyFields,ye=ye||(p.dirtyFields||g.dirtyFields)&&Te!==!We}if(oe){const We=_e(n.touchedFields,q);We||(Rt(n.touchedFields,q,oe),Xe.touchedFields=n.touchedFields,ye=ye||(p.touchedFields||g.touchedFields)&&We!==oe)}ye&&Ae&&y.state.next(Xe)}return ye?Xe:{}},M=(q,te,oe,Ce)=>{const Ae=_e(n.errors,q),ye=(p.isValid||g.isValid)&&Xr(te)&&n.isValid!==te;if(t.delayError&&oe?(d=b(()=>A(q,oe)),d(t.delayError)):(clearTimeout(f),d=null,oe?Rt(n.errors,q,oe):pn(n.errors,q)),(oe?!zi(Ae,oe):Ae)||!yr(Ce)||ye){const Te={...Ce,...ye&&Xr(te)?{isValid:te}:{},errors:n.errors,name:q};n={...n,...Te},y.state.next(Te)}},P=async q=>(k(q,!0),await t.resolver(s,t.context,JSe(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),D=async q=>{const{errors:te}=await P(q);if(k(q),q)for(const oe of q){const Ce=_e(te,oe);Ce?Rt(n.errors,oe,Ce):pn(n.errors,oe)}else n.errors=te;return te},U=async(q,te,oe={valid:!0})=>{for(const Ce in q){const Ae=q[Ce];if(Ae){const{_f:ye,...Te}=Ae;if(ye){const Xe=u.array.has(ye.name),We=Ae._f&&eke(Ae._f);We&&p.validatingFields&&k([ye.name],!0);const Ee=await PM(Ae,u.disabled,s,w,t.shouldUseNativeValidation&&!te,Xe);if(We&&p.validatingFields&&k([ye.name]),Ee[ye.name]&&(oe.valid=!1,te||e.shouldUseNativeValidation))break;!te&&(_e(Ee,ye.name)?Xe?ske(n.errors,Ee,ye.name):Rt(n.errors,ye.name,Ee[ye.name]):pn(n.errors,ye.name))}!yr(Te)&&await U(Te,te,oe)}}return oe.valid},L=()=>{for(const q of u.unMount){const te=_e(r,q);te&&(te._f.refs?te._f.refs.every(oe=>!Y1(oe)):!Y1(te._f.ref))&&ke(q)}u.unMount=new Set},$=(q,te)=>!t.disabled&&(q&&te&&Rt(s,q,te),!zi(J(),a)),G=(q,te,oe)=>Q2(q,u,{...l.mount?s:Ut(te)?a:ei(q)?{[q]:te}:te},oe,te),H=q=>hk(_e(l.mount?s:a,q,t.shouldUnregister?_e(a,q,[]):[])),V=(q,te,oe={})=>{const Ce=_e(r,q);let Ae=te;if(Ce){const ye=Ce._f;ye&&(!ye.disabled&&Rt(s,q,xU(te,ye)),Ae=Fg(ye.ref)&&Dr(te)?"":te,hU(ye.ref)?[...ye.ref.options].forEach(Te=>Te.selected=Ae.includes(Te.value)):ye.refs?im(ye.ref)?ye.refs.forEach(Te=>{(!Te.defaultChecked||!Te.disabled)&&(Array.isArray(Ae)?Te.checked=!!Ae.find(Xe=>Xe===Te.value):Te.checked=Ae===Te.value||!!Ae)}):ye.refs.forEach(Te=>Te.checked=Te.value===Ae):gk(ye.ref)?ye.ref.value="":(ye.ref.value=Ae,ye.ref.type||y.state.next({name:q,values:mn(s)})))}(oe.shouldDirty||oe.shouldTouch)&&T(q,Ae,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&I(q)},B=(q,te,oe)=>{for(const Ce in te){if(!te.hasOwnProperty(Ce))return;const Ae=te[Ce],ye=q+"."+Ce,Te=_e(r,ye);(u.array.has(q)||yn(Ae)||Te&&!Te._f)&&!Nl(Ae)?B(ye,Ae,oe):V(ye,Ae,oe)}},K=(q,te,oe={})=>{const Ce=_e(r,q),Ae=u.array.has(q),ye=mn(te);Rt(s,q,ye),Ae?(y.array.next({name:q,values:mn(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&oe.shouldDirty&&y.state.next({name:q,dirtyFields:lu(a,s),isDirty:$(q,ye)}
134)):Ce&&!Ce._f&&!Dr(ye)?B(q,ye,oe):V(q,ye,oe),TM(q,u)?y.state.next({...n,name:q,values:mn(s)}):y.state.next({name:l.mount?q:void 0,values:mn(s)})},Q=async q=>{l.mount=!0;const te=q.target;let oe=te.name,Ce=!0;const Ae=_e(r,oe),ye=We=>{Ce=Number.isNaN(We)||Nl(We)&&isNaN(We.getTime())||zi(We,_e(s,oe,We))},Te=CM(t.mode),Xe=CM(t.reValidateMode);if(Ae){let We,Ee;const tt=te.type?AM(Ae._f):lU(q),Ye=q.type===Bg.BLUR||q.type===Bg.FOCUS_OUT,mr=!tke(Ae._f)&&!t.resolver&&!_e(n.errors,oe)&&!Ae._f.deps||ike(Ye,_e(n.touchedFields,oe),n.isSubmitted,Xe,Te),Mn=TM(oe,u,Ye);Rt(s,oe,tt),Ye?(!te||!te.readOnly)&&(Ae._f.onBlur&&Ae._f.onBlur(q),d&&d(0)):Ae._f.onChange&&Ae._f.onChange(q);const pr=T(oe,tt,Ye),dn=!yr(pr)||Mn;if(!Ye&&y.state.next({name:oe,type:q.type,values:mn(s)}),mr)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Ye&&N():Ye||N()),dn&&y.state.next({name:oe,...Mn?{}:pr});if(!Ye&&Mn&&y.state.next({...n}),t.resolver){const{errors:si}=await P([oe]);if(k([oe]),ye(tt),Ce){const dd=_M(n.errors,r,oe),Ms=_M(si,r,dd.name||oe);We=Ms.error,oe=Ms.name,Ee=yr(si)}}else k([oe],!0),We=(await PM(Ae,u.disabled,s,w,t.shouldUseNativeValidation))[oe],k([oe]),ye(tt),Ce&&(We?Ee=!1:(p.isValid||g.isValid)&&(Ee=await U(r,!0)));Ce&&(Ae._f.deps&&(!Array.isArray(Ae._f.deps)||Ae._f.deps.length>0)&&I(Ae._f.deps),M(oe,Ee,We,pr))}},ce=(q,te)=>{if(_e(n.errors,te)&&q.focus)return q.focus(),1},I=async(q,te={})=>{let oe,Ce;const Ae=Qf(q);if(t.resolver){const ye=await D(Ut(q)?q:Ae);oe=yr(ye),Ce=q?!Ae.some(Te=>_e(ye,Te)):oe}else q?(Ce=(await Promise.all(Ae.map(async ye=>{const Te=_e(r,ye);return await U(Te&&Te._f?{[ye]:Te}:Te)}))).every(Boolean),!(!Ce&&!n.isValid)&&N()):Ce=oe=await U(r);return y.state.next({...!ei(q)||(p.isValid||g.isValid)&&oe!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:oe}:{},errors:n.errors}),te.shouldFocus&&!Ce&&Xf(r,ce,q?Ae:u.mount),Ce},J=(q,te)=>{let oe={...l.mount?s:a};return te&&(oe=fU(te.dirtyFields?n.dirtyFields:n.touchedFields,oe)),Ut(q)?oe:ei(q)?_e(oe,q):q.map(Ce=>_e(oe,Ce))},fe=(q,te)=>({invalid:!!_e((te||n).errors,q),isDirty:!!_e((te||n).dirtyFields,q),error:_e((te||n).errors,q),isValidating:!!_e(n.validatingFields,q),isTouched:!!_e((te||n).touchedFields,q)}),ue=q=>{const te=q?Qf(q):void 0;te?.forEach(oe=>pn(n.errors,oe)),te?te.forEach(oe=>{y.state.next({name:oe,errors:n.errors})}):y.state.next({errors:{}})},ve=(q,te,oe)=>{const Ce=(_e(r,q,{_f:{}})._f||{}).ref,Ae=_e(n.errors,q)||{},{ref:ye,message:Te,type:Xe,...We}=Ae;Rt(n.errors,q,{...We,...te,ref:Ce}),y.state.next({name:q,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&Ce&&Ce.focus&&Ce.focus()},Se=(q,te)=>jr(q)?y.state.subscribe({next:oe=>"values"in oe&&q(G(void 0,te),oe)}):G(q,te,!0),Ne=q=>y.state.subscribe({next:te=>{rke(q.name,te.name,q.exact)&&nke(te,q.formState||p,er,q.reRenderRoot)&&q.callback({values:{...s},...n,...te,defaultValues:a})}}).unsubscribe,ge=q=>(l.mount=!0,g={...g,...q.formState},Ne({...q,formState:{...m,...q.formState}})),ke=(q,te={})=>{for(const oe of q?Qf(q):u.mount)u.mount.delete(oe),u.array.delete(oe),te.keepValue||(pn(r,oe),pn(s,oe)),!te.keepError&&pn(n.errors,oe),!te.keepDirty&&pn(n.dirtyFields,oe),!te.keepTouched&&pn(n.touchedFields,oe),!te.keepIsValidating&&pn(n.validatingFields,oe),!t.shouldUnregister&&!te.keepDefaultValue&&pn(a,oe);y.state.next({values:mn(s)}),y.state.next({...n,...te.keepDirty?{isDirty:$()}:{}}),!te.keepIsValid&&N()},le=({disabled:q,name:te})=>{if(Xr(q)&&l.mount||q||u.disabled.has(te)){const Ae=u.disabled.has(te)!==!!q;q?u.disabled.add(te):u.disabled.delete(te),Ae&&l.mount&&!l.action&&N()}},we=(q,te={})=>{let oe=_e(r,q);const Ce=Xr(te.disabled)||Xr(t.disabled);return Rt(r,q,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:q}},name:q,mount:!0,...te}}),u.mount.add(q),oe?le({disabled:Xr(te.disabled)?te.disabled:t.disabled,name:q}):_(q,!0,te.value),{...Ce?{disabled:te.disabled||t.disabled}:{},...t.progressive?{required:!!te.required,min:kf(te.min),max:kf(te.max),minLength:kf(te.minLength),maxLength:kf(te.maxLength),pattern:kf(te.pattern)}:{},name:q,onChange:Q,onBlur:Q,ref:Ae=>{if(Ae){we(q,te),oe=_e(r,q);const ye=Ut(Ae.value)&&Ae.querySelectorAll&&Ae.querySelectorAll("input,select,textarea")[0]||Ae,Te=YSe(ye),Xe=oe._f.refs||[];if(Te?Xe.find(We=>We===ye):ye===oe._f.ref)return;Rt(r,q,{_f:{...oe._f,...Te?{refs:[...Xe.filter(Y1),ye,...Array.isArray(_e(a,q))?[{}
vendor: 4,782 bytes, line 134
134]:[]],ref:{type:ye.type,name:q}}:{ref:ye}}}),_(q,!1,void 0,ye)}else oe=_e(r,q,{}),oe._f&&(oe._f.mount=!1),(t.shouldUnregister||te.shouldUnregister)&&!(cU(u.array,q)&&l.action)&&u.unMount.add(q)}}},he=()=>t.shouldFocusError&&Xf(r,ce,u.mount),X=q=>{Xr(q)&&(y.state.next({disabled:q}),Xf(r,(te,oe)=>{const Ce=_e(r,oe);Ce&&(te.disabled=Ce._f.disabled||q,Array.isArray(Ce._f.refs)&&Ce._f.refs.forEach(Ae=>{Ae.disabled=Ce._f.disabled||q}))},0,!1))},F=(q,te)=>async oe=>{let Ce;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let Ae=mn(s);if(y.state.next({isSubmitting:!0}),t.resolver){const{errors:ye,values:Te}=await P();k(),n.errors=ye,Ae=mn(Te)}else await U(r);if(u.disabled.size)for(const ye of u.disabled)pn(Ae,ye);if(pn(n.errors,"root"),yr(n.errors)){y.state.next({errors:{}});try{await q(Ae,oe)}catch(ye){Ce=ye}}else te&&await te({...n.errors},oe),he(),setTimeout(he);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:yr(n.errors)&&!Ce,submitCount:n.submitCount+1,errors:n.errors}),Ce)throw Ce},xe=(q,te={})=>{_e(r,q)&&(Ut(te.defaultValue)?K(q,mn(_e(a,q))):(K(q,te.defaultValue),Rt(a,q,mn(te.defaultValue))),te.keepTouched||pn(n.touchedFields,q),te.keepDirty||(pn(n.dirtyFields,q),n.isDirty=te.defaultValue?$(q,mn(_e(a,q))):$()),te.keepError||(pn(n.errors,q),p.isValid&&N()),y.state.next({...n}))},je=(q,te={})=>{const oe=q?mn(q):a,Ce=mn(oe),Ae=yr(q),ye=Ae?a:Ce;if(te.keepDefaultValues||(a=oe),!te.keepValues){if(te.keepDirtyValues){const Te=new Set([...u.mount,...Object.keys(lu(a,s))]);for(const Xe of Array.from(Te)){const We=_e(n.dirtyFields,Xe),Ee=_e(s,Xe),tt=_e(ye,Xe);We&&!Ut(Ee)?Rt(ye,Xe,Ee):!We&&!Ut(tt)&&K(Xe,tt)}}else{if(fk&&Ut(q))for(const Te of u.mount){const Xe=_e(r,Te);if(Xe&&Xe._f){const We=Array.isArray(Xe._f.refs)?Xe._f.refs[0]:Xe._f.ref;if(Fg(We)){const Ee=We.closest("form");if(Ee){Ee.reset();break}}}}if(te.keepFieldsRef)for(const Te of u.mount)K(Te,_e(ye,Te));else r={}}s=t.shouldUnregister?te.keepDefaultValues?mn(a):{}:mn(ye),y.array.next({values:{...ye}}),y.state.next({values:{...ye}})}u={mount:te.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!te.keepIsValid||!!te.keepDirtyValues||!t.shouldUnregister&&!yr(ye),l.watch=!!t.shouldUnregister,l.keepIsValid=!!te.keepIsValid,l.action=!1,te.keepErrors||(n.errors={}),y.state.next({submitCount:te.keepSubmitCount?n.submitCount:0,isDirty:Ae?!1:te.keepDirty?n.isDirty:!!(te.keepDefaultValues&&!zi(q,a)),isSubmitted:te.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ae?{}:te.keepDirtyValues?te.keepDefaultValues&&s?lu(a,s):n.dirtyFields:te.keepDefaultValues&&q?lu(a,q):te.keepDirty?n.dirtyFields:{},touchedFields:te.keepTouched?n.touchedFields:{},errors:te.keepErrors?n.errors:{},isSubmitSuccessful:te.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},He=(q,te)=>je(jr(q)?q(s):q,{...t.resetOptions,...te}),Qe=(q,te={})=>{const oe=_e(r,q),Ce=oe&&oe._f;if(Ce){const Ae=Ce.refs?Ce.refs[0]:Ce.ref;Ae.focus&&setTimeout(()=>{Ae.focus(),te.shouldSelect&&jr(Ae.select)&&Ae.select()})}},er=q=>{n={...n,...q}},un={control:{register:we,unregister:ke,getFieldState:fe,handleSubmit:F,setError:ve,_subscribe:Ne,_runSchema:P,_updateIsValidating:k,_focusError:he,_getWatch:G,_getDirty:$,_setValid:N,_setFieldArray:C,_setDisabledField:le,_setErrors:E,_getFieldArray:H,_reset:je,_resetDefaultValues:()=>jr(t.defaultValues)&&t.defaultValues().then(q=>{He(q,t.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:X,_subjects:y,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(q){l=q},get _defaultValues(){return a},get _names(){return u},set _names(q){u=q},get _formState(){return n},get _options(){return t},set _options(q){t={...t,...q}}},subscribe:ge,trigger:I,register:we,handleSubmit:F,watch:Se,setValue:K,getValues:J,reset:He,resetField:xe,clearErrors:ue,unregister:ke,setError:ve,setFocus:Qe,getFieldState:fe};return{...un,formControl:un}}function vk(e={}){const t=z.useRef(void 0),n=z.useRef(void 0),[r,a]=z.useState({isDirty:!1,isValidating:!1,isLoading:jr(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:jr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!jr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=lke(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,xk(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState}
134),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),s._formState.isReady=!0,l},[s]),z.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),z.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),z.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),z.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),z.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),z.useEffect(()=>{var l;e.values&&!zi(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((l=s._options.resetOptions)===null||l===void 0)&&l.keepIsValid||s._setValid(),n.current=e.values,a(u=>({...u}))):s._resetDefaultValues()},[s,e.values]),z.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=z.useMemo(()=>dU(r,s),[s,r]),t.current}function cke(e){return new Promise((t,n)=>{const r=URL.createObjectURL(e),a=document.createElement("video");a.preload="metadata";const s=()=>{URL.revokeObjectURL(r),a.removeAttribute("src"),a.load()};a.onloadedmetadata=()=>{const l={width:a.videoWidth,height:a.videoHeight};s(),t(l)},a.onerror=()=>{s(),n(new Error("The video dimensions could not be read."))},a.src=r})}function uke({label:e,accept:t,onUploadSuccess:n,currentPath:r}){const[a,s]=v.useState(!1),[l,u]=v.useState(0),[d,f]=v.useState(""),{mutateAsync:m}=pne(),p=async g=>{const y=g.target.files?.[0];if(y){f(""),s(!0),u(0);try{const{width:w,height:b}=await cke(y),N=w/b;if(!Number.isFinite(N)||Math.abs(N-9/16)>.01)throw new Error("Review videos must be vertical 9:16 files, such as 1080Ã1920 or 720Ã1280.");const{uploadUrl:k,objectPath:C}=await m({data:{kind:"video",name:y.name,contentType:y.type,size:y.size}}),A=new XMLHttpRequest;A.open("PUT",k,!0),A.setRequestHeader("Content-Type",y.type),A.upload.onprogress=E=>{E.lengthComputable&&u(Math.round(E.loaded/E.total*100))},A.onload=()=>{A.status>=200&&A.status<300?n(C,y):f("Upload failed."),s(!1)},A.onerror=()=>{f("Upload failed."),s(!1)},A.send(y)}catch(w){f(w instanceof Error?w.message:"Could not start upload."),s(!1),g.target.value=""}}};return i.jsxs("div",{className:"space-y-2",children:[i.jsx(ln,{className:"font-semibold text-slate-700",children:e}),i.jsx(En,{type:"file",accept:t,onChange:p,disabled:a,className:"bg-white"}),d&&i.jsx("p",{role:"alert",className:"text-xs leading-relaxed font-medium text-red-700",children:d}),i.jsx("p",{className:"text-xs leading-relaxed text-slate-500",children:"Upload a vertical 9:16 MP4, such as 1080Ã1920 or 720Ã1280. For the widest phone and browser support, export it with H.264 video and AAC audio."}),a&&i.jsxs("div",{className:"text-sm text-primary font-bold",children:["Uploading... ",l,"%"]}),r&&!a&&i.jsxs("div",{className:"text-xs font-medium text-emerald-600 truncate break-all bg-emerald-50 p-2 rounded-md border border-emerald-100 mt-2",children:["Ready: ",r]})]})}function dke({review:e,onClose:t}){const n=ur(),r=dne(),a=zI(),[s,l]=v.useState(e?.videoUrl??""),[u,d]=v.useState(!!e),[f,m]=v.useState(""),[p,g]=v.useState("");v.useEffect(()=>()=>{s.startsWith("blob:")&&URL.revokeObjectURL(s)},[s]);const{register:y,handleSubmit:w,watch:b,setValue:N}=vk({defaultValues:{reviewerName:e?.reviewerName||"",reviewerRole:e?.reviewerRole||"",videoPath:e?.videoPath||""}}),k=async A=>{g("");const E={reviewerName:A.reviewerName,reviewerRole:A.reviewerRole,videoPath:A.videoPath};try{e?await a.mutateAsync({id:e.id,data:E}):await r.mutateAsync({data:E}),await Promise.all([n.invalidateQueries({queryKey:zx()}),n.invalidateQueries({queryKey:Ux()})]),t()}catch{g("The review could not be saved. Check the uploaded files and try again.")}},C=b("videoPath");return i.jsxs("form",{onSubmit:w(k),className:"space-y-5",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(ln,{className:"font-semibold",children:"Name *"}),i.jsx(En,{...y("reviewerName",{required:!0}),placeholder:"Jane Doe"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ln,{className:"font-semibold",children:"Organization *"}),i.jsx(En,{...y("reviewerRole",{required:!0}),placeholder:"Grace Church"})]})]}),i.jsx("div",{className:"bg-slate-50 p-5 rounded-xl border border-slate-200",children:i.jsx(uke,{label:"Video File (MP4, 9:16) *",accept:"video/mp4",currentPath:C,onUploadSuccess:(A,E)=>{N("videoPath",A),d(!1),m(""),l(URL.createObjectURL(E))}})}),s&&i.jsxs("div",{className:"space-y-2",children:[i.jsx(ln,{className:"font-semibold",children:"Preview"}
134),i.jsx("video",{controls:!0,playsInline:!0,preload:"metadata",src:s,className:"w-full aspect-[9/16] rounded-xl bg-slate-950 object-contain","aria-label":`Preview of video review by ${b("reviewerName")||"reviewer"}`,onCanPlay:()=>{d(!0),m("")},onError:()=>{d(!1),m("This browser cannot play the uploaded MP4. Re-export it as H.264 video with AAC audio and try again.")}}),f&&i.jsx("p",{role:"alert",className:"text-sm font-medium text-red-700",children:f})]}),p&&i.jsx("p",{role:"alert",className:"rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm font-medium text-red-700",children:p}),i.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[i.jsx(ee,{type:"button",variant:"outline",onClick:t,className:"rounded-full",children:"Cancel"}),i.jsx(ee,{type:"submit",disabled:!C||!u||r.isPending||a.isPending,className:"rounded-full",children:r.isPending||a.isPending?"Saving...":"Save Review"})]})]})}function fke(){const{data:e,isLoading:t}=one(),n=jne(),r=zI(),a=ur(),[s,l]=v.useState(null),[u,d]=v.useState(!1),f=async p=>{confirm("Are you sure you want to delete this video review? This action cannot be undone.")&&(await n.mutateAsync({id:p}),a.invalidateQueries({queryKey:zx()}),a.invalidateQueries({queryKey:Ux()}))},m=async p=>{await r.mutateAsync({id:p.id,data:{isPublished:!p.isPublished}}),a.invalidateQueries({queryKey:zx()}),a.invalidateQueries({queryKey:Ux()})};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-bold text-slate-900",children:"Video Reviews"}),i.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"Manage native video testimonials on the homepage."})]}),i.jsxs(ee,{onClick:()=>{l(null),d(!0)},className:"rounded-full bg-primary hover:bg-primary/90 text-white font-semibold",children:[i.jsx(gu,{className:"w-4 h-4 mr-2"}),"Add Video Review"]})]}),t?i.jsx("div",{className:"py-16 flex justify-center",children:i.jsx(Xt,{className:"w-8 h-8 animate-spin text-primary/50"})}):e?.length===0?i.jsx(ze,{className:"border-dashed border-2 bg-slate-50/50 shadow-none",children:i.jsxs(Ve,{className:"py-24 flex flex-col items-center justify-center text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-white shadow-sm flex items-center justify-center mb-6",children:i.jsx(kN,{className:"w-8 h-8 text-primary/60"})}),i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2",children:"No video reviews yet"}),i.jsx("p",{className:"text-slate-500 mb-8 max-w-md",children:"Upload video testimonials from youth leaders to build trust and show authentic feedback."}),i.jsx(ee,{onClick:()=>{l(null),d(!0)},className:"rounded-full px-8",children:"Create First Review"})]})}):i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e?.map(p=>i.jsxs(ze,{className:`flex flex-col overflow-hidden border-slate-200 shadow-sm transition-opacity duration-200 ${p.isPublished?"":"opacity-75 grayscale-[0.3]"}`,children:[i.jsxs("div",{className:"relative aspect-[9/16] bg-slate-900",children:[i.jsx("video",{src:p.videoUrl,muted:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-cover opacity-60","aria-label":`Preview of video review by ${p.reviewerName}`}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:i.jsx(B8,{className:"w-10 h-10 text-white opacity-90 drop-shadow-md",fill:"currentColor"})}),i.jsxs("div",{className:"absolute top-3 right-3 flex gap-2",children:[i.jsxs("span",{className:"px-2.5 py-1 text-[10px] font-black uppercase tracking-wider rounded-md bg-white/90 text-slate-700 shadow-sm",children:["Order ",p.sortOrder]}),i.jsx("span",{className:`px-2.5 py-1 text-[10px] font-black uppercase tracking-wider rounded-md shadow-sm ${p.isPublished?"bg-green-500 text-white":"bg-slate-700 text-white"}`,children:p.isPublished?"Live":"Draft"})]})]}),i.jsxs(Ve,{className:"p-5 flex-1 flex flex-col",children:[i.jsxs("div",{className:"mb-4",children:[i.jsx("p",{className:"text-[14px] font-bold text-slate-900 uppercase tracking-wide",children:p.reviewerName}),p.reviewerRole&&i.jsx("p",{className:"text-xs font-medium text-slate-500 mt-0.5",children:p.reviewerRole})]}),i.jsxs("div",{className:"mt-auto pt-4 flex items-center justify-between border-t border-slate-100",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(ay,{checked:p.isPublished,onCheckedChange:()=>m(p),disabled:r.isPending}),i.jsx("span",{className:"text-xs font-semibold text-slate-600 uppercase tracking-wider",children:"Pub"})]}),i.jsxs("div",{className:"flex gap-1.5",children:[i.jsx(ee,{variant:"outline",size:"sm",className:"h-8 w-8 p-0 rounded-full",onClick:()=>{l(p),d(!0)},children:i.jsx(Kw,{className:"w-3.5 h-3.5 text-slate-600"})}),i.jsx(ee,{variant:"outline",size:"sm",className:"h-8 w-8 p-0 rounded-full hover:bg-red-50 hover:border-red-200",onClick:()=>f(p.id),disabled:n.isPending,children:i.jsx(yu,{className:"w-3.5 h-3.5 text-red-600"})})]})]})]})]}
134,p.id))}),i.jsx(rm,{open:u,onOpenChange:d,children:i.jsxs(sd,{className:"max-w-3xl max-h-[90vh] overflow-y-auto p-8 rounded-2xl",children:[i.jsxs(Bl,{className:"mb-6",children:[i.jsx(Fl,{className:"text-2xl font-black text-slate-900",children:s?"Edit Video Review":"Add Video Review"}),i.jsx(Ul,{children:"Upload, preview, and choose when this youth pastor story appears on the homepage."})]}),i.jsx(dke,{review:s,onClose:()=>d(!1)})]})})]})}const wh=v.forwardRef(({className:e,...t},n)=>i.jsx("textarea",{className:Je("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));wh.displayName="Textarea";function MM(e,[t,n]){return Math.min(n,Math.max(t,e))}const hke=["top","right","bottom","left"],Co=Math.min,Zr=Math.max,zg=Math.round,tx=Math.floor,ja=e=>({x:e,y:e}),mke={left:"right",right:"left",bottom:"top",top:"bottom"};function ej(e,t,n){return Zr(e,Co(t,n))}function ws(e,t){return typeof e=="function"?e(t):e}function js(e){return e.split("-")[0]}function od(e){return e.split("-")[1]}function bk(e){return e==="x"?"y":"x"}function wk(e){return e==="y"?"height":"width"}function xa(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jk(e){return bk(xa(e))}function pke(e,t,n){n===void 0&&(n=!1);const r=od(e),a=jk(e),s=wk(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Vg(l)),[l,Vg(l)]}function xke(e){const t=Vg(e);return[tj(e),t,tj(t)]}function tj(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const RM=["left","right"],DM=["right","left"],gke=["top","bottom"],yke=["bottom","top"];function vke(e,t,n){switch(e){case"top":case"bottom":return n?t?DM:RM:t?RM:DM;case"left":case"right":return t?gke:yke;default:return[]}}function bke(e,t,n,r){const a=od(e);let s=vke(js(e),n==="start",r);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(tj)))),s}function Vg(e){const t=js(e);return mke[t]+e.slice(t.length)}function wke(e){return{top:0,right:0,bottom:0,left:0,...e}}function yU(e){return typeof e!="number"?wke(e):{top:e,right:e,bottom:e,left:e}}function Wg(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function IM(e,t,n){let{reference:r,floating:a}=e;const s=xa(t),l=jk(t),u=wk(l),d=js(t),f=s==="y",m=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,g=r[u]/2-a[u]/2;let y;switch(d){case"top":y={x:m,y:r.y-a.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-a.width,y:p};break;default:y={x:r.x,y:r.y}}switch(od(t)){case"start":y[l]-=g*(n&&f?-1:1);break;case"end":y[l]+=g*(n&&f?-1:1);break}return y}async function jke(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:g=!1,padding:y=0}=ws(t,e),w=yU(y),N=u[g?p==="floating"?"reference":"floating":p],k=Wg(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(N)))==null||n?N:N.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),C=p==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),E=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},_=Wg(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:A,strategy:d}):C);return{top:(k.top-_.top+w.top)/E.y,bottom:(_.bottom-k.bottom+w.bottom)/E.y,left:(k.left-_.left+w.left)/E.x,right:(_.right-k.right+w.right)/E.x}}const Nke=50,Ske=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:jke},d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=IM(f,r,d),g=r,y=0;const w={};for(let b=0;b<s.length;b++){const N=s[b];if(!N)continue;const{name:k,fn:C}=N,{x:A,y:E,data:_,reset:T}=await C({x:m,y:p,initialPlacement:r,placement:g,strategy:a,middlewareData:w,rects:f,platform:u,elements:{reference:e,floating:t}});m=A??m,p=E??p,w[k]={...w[k],..._},T&&y<Nke&&(y++,typeof T=="object"&&(T.placement&&(g=T.placement),T.rects&&(f=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):T.rects),{x:m,y:p}=IM(f,g,d)),b=-1)}return{x:m,y:p,placement:g,strategy:a,middlewareData:w}}
vendor: 7,937 bytes, line 134
134,kke=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=ws(e,t)||{};if(f==null)return{};const p=yU(m),g={x:n,y:r},y=jk(a),w=wk(y),b=await l.getDimensions(f),N=y==="y",k=N?"top":"left",C=N?"bottom":"right",A=N?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[y]-g[y]-s.floating[w],_=g[y]-s.reference[y],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let M=T?T[A]:0;(!M||!await(l.isElement==null?void 0:l.isElement(T)))&&(M=u.floating[A]||s.floating[w]);const P=E/2-_/2,D=M/2-b[w]/2-1,U=Co(p[k],D),L=Co(p[C],D),$=U,G=M-b[w]-L,H=M/2-b[w]/2+P,V=ej($,H,G),B=!d.arrow&&od(a)!=null&&H!==V&&s.reference[w]/2-(H<$?U:L)-b[w]/2<0,K=B?H<$?H-$:H-G:0;return{[y]:g[y]+K,data:{[y]:V,centerOffset:H-V-K,...B&&{alignmentOffset:K}},reset:B}}}),Ake=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...N}=ws(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const k=js(a),C=xa(u),A=js(u)===u,E=await(d.isRTL==null?void 0:d.isRTL(f.floating)),_=g||(A||!b?[Vg(u)]:xke(u)),T=w!=="none";!g&&T&&_.push(...bke(u,b,w,E));const M=[u,..._],P=await d.detectOverflow(t,N),D=[];let U=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&D.push(P[k]),p){const H=pke(a,l,E);D.push(P[H[0]],P[H[1]])}if(U=[...U,{placement:a,overflows:D}],!D.every(H=>H<=0)){var L,$;const H=(((L=s.flip)==null?void 0:L.index)||0)+1,V=M[H];if(V&&(!(p==="alignment"?C!==xa(V):!1)||U.every(Q=>xa(Q.placement)===C?Q.overflows[0]>0:!0)))return{data:{index:H,overflows:U},reset:{placement:V}};let B=($=U.filter(K=>K.overflows[0]<=0).sort((K,Q)=>K.overflows[1]-Q.overflows[1])[0])==null?void 0:$.placement;if(!B)switch(y){case"bestFit":{var G;const K=(G=U.filter(Q=>{if(T){const ce=xa(Q.placement);return ce===C||ce==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(ce=>ce>0).reduce((ce,I)=>ce+I,0)]).sort((Q,ce)=>Q[1]-ce[1])[0])==null?void 0:G[0];K&&(B=K);break}case"initialPlacement":B=u;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function LM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $M(e){return hke.some(t=>e[t]>=0)}const Cke=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...s}=ws(e,t);switch(a){case"referenceHidden":{const l=await r.detectOverflow(t,{...s,elementContext:"reference"}),u=LM(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:$M(u)}}}case"escaped":{const l=await r.detectOverflow(t,{...s,altBoundary:!0}),u=LM(l,n.floating);return{data:{escapedOffsets:u,escaped:$M(u)}}}default:return{}}}}},vU=new Set(["left","top"]);async function Eke(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=js(n),u=od(n),d=xa(n)==="y",f=vU.has(l)?-1:1,m=s&&d?-1:1,p=ws(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof w=="number"&&(y=u==="end"?w*-1:w),d?{x:y*m,y:g*f}:{x:g*f,y:y*m}}const Tke=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:l,middlewareData:u}=t,d=await Eke(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:l}}}}},_ke=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:k=>{let{x:C,y:A}=k;return{x:C,y:A}}},...f}=ws(e,t),m={x:n,y:r},p=await s.detectOverflow(t,f),g=xa(js(a)),y=bk(g);let w=m[y],b=m[g];if(l){const k=y==="y"?"top":"left",C=y==="y"?"bottom":"right",A=w+p[k],E=w-p[C];w=ej(A,w,E)}if(u){const k=g==="y"?"top":"left",C=g==="y"?"bottom":"right",A=b+p[k],E=b-p[C];b=ej(A,b,E)}const N=d.fn({...t,[y]:w,[g]:b});return{...N,data:{x:N.x-n,y:N.y-r,enabled:{[y]:l,[g]:u}}}}}},Oke=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=ws(e,t),m={x:n,y:r},p=xa(a),g=bk(p);let y=m[g],w=m[p];const b=ws(u,t),N=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const A=g==="y"?"height":"width",E=s.reference[g]-s.floating[A]+N.mainAxis,_=s.reference[g]+s.reference[A]-N.mainAxis;y<E?y=E:y>_&&(y=_)}if(f){var k,C;const A=g==="y"?"width":"height",E=vU.has(js(a)),_=s.reference[p]-s.floating[A]+(E&&((k=l.offset)==null?void 0:k[p])||0)+(E?0:N.crossAxis),T=s.reference[p]+s.reference[A]+(E?0:((C=l.offset)==null?void 0:C[p])||0)-(E?N.crossAxis:0);w<_?w=_:w>T&&(w=T)}return{[g]:y,[p]:w}}}},Pke=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:l,elements:u}=t,{apply:d=()=>{},...f}=ws(e,t),m=await l.detectOverflow(t,f),p=js(a),g=od(a),y=xa(a)==="y",{width:w,height:b}=s.floating;let N,k;p==="top"||p==="bottom"?(N=p,k=g===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(k=p,N=g==="end"?"top":"bottom");const C=b-m.top-m.bottom,A=w-m.left-m.right,E=Co(b-m[N],C),_=Co(w-m[k],A),T=!t.middlewareData.shift;let M=E,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=C),T&&!g){const U=Zr(m.left,0),L=Zr(m.right,0),$=Zr(m.top,0),G=Zr(m.bottom,0);y?P=w-2*(U!==0||L!==0?U+L:Zr(m.left,m.right)):M=b-2*($!==0||G!==0?$+G:Zr(m.top,m.bottom))}await d({...t,availableWidth:P,availableHeight:M});const D=await l.getDimensions(u.floating);return w!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function oy(){return typeof window<"u"}function ld(e){return bU(e)?(e.nodeName||"").toLowerCase():"#document"}function ri(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pa(e){var t;return(t=(bU(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bU(e){return oy()?e instanceof Node||e instanceof ri(e).Node:!1}function Qi(e){return oy()?e instanceof Element||e instanceof ri(e).Element:!1}function Ps(e){return oy()?e instanceof HTMLElement||e instanceof ri(e).HTMLElement:!1}function BM(e){return!oy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ri(e).ShadowRoot}function am(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&a!=="inline"&&a!=="contents"}function Mke(e){return/^(table|td|th)$/.test(ld(e))}function ly(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rke=/transform|translate|scale|rotate|perspective|filter/,Dke=/paint|layout|strict|content/,ll=e=>!!e&&e!=="none";let Q1;function Nk(e){const t=Qi(e)?Xi(e):e;return ll(t.transform)||ll(t.translate)||ll(t.scale)||ll(t.rotate)||ll(t.perspective)||!Sk()&&(ll(t.backdropFilter)||ll(t.filter))||Rke.test(t.willChange||"")||Dke.test(t.contain||"")}function Ike(e){let t=Eo(e);for(;Ps(t)&&!Ru(t);){if(Nk(t))return t;if(ly(t))return null;t=Eo(t)}return null}function Sk(){return Q1==null&&(Q1=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Q1}function Ru(e){return/^(html|body|#document)$/.test(ld(e))}function Xi(e){return ri(e).getComputedStyle(e)}function cy(e){return Qi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Eo(e){if(ld(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BM(e)&&e.host||Pa(e);return BM(t)?t.host:t}function wU(e){const t=Eo(e);return Ru(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ps(t)&&am(t)?t:wU(t)}
vendor: 4,614 bytes, line 134
134function jh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=wU(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),l=ri(a);if(s){const u=nj(l);return t.concat(l,l.visualViewport||[],am(a)?a:[],u&&n?jh(u):[])}else return t.concat(a,jh(a,[],n))}function nj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jU(e){const t=Xi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Ps(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=zg(n)!==s||zg(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function kk(e){return Qi(e)?e:e.contextElement}function Nu(e){const t=kk(e);if(!Ps(t))return ja(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=jU(t);let l=(s?zg(n.width):n.width)/r,u=(s?zg(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const Lke=ja(0);function NU(e){const t=ri(e);return!Sk()||!t.visualViewport?Lke:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $ke(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ri(e)?!1:t}function zl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=kk(e);let l=ja(1);t&&(r?Qi(r)&&(l=Nu(r)):l=Nu(e));const u=$ke(s,n,r)?NU(s):ja(0);let d=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,m=a.width/l.x,p=a.height/l.y;if(s){const g=ri(s),y=r&&Qi(r)?ri(r):r;let w=g,b=nj(w);for(;b&&r&&y!==w;){const N=Nu(b),k=b.getBoundingClientRect(),C=Xi(b),A=k.left+(b.clientLeft+parseFloat(C.paddingLeft))*N.x,E=k.top+(b.clientTop+parseFloat(C.paddingTop))*N.y;d*=N.x,f*=N.y,m*=N.x,p*=N.y,d+=A,f+=E,w=ri(b),b=nj(w)}}return Wg({width:m,height:p,x:d,y:f})}function uy(e,t){const n=cy(e).scrollLeft;return t?t.left+n:zl(Pa(e)).left+n}function SU(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-uy(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function Bke(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",l=Pa(r),u=t?ly(t.floating):!1;if(r===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=ja(1);const m=ja(0),p=Ps(r);if((p||!p&&!s)&&((ld(r)!=="body"||am(l))&&(d=cy(r)),p)){const y=zl(r);f=Nu(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const g=l&&!p&&!s?SU(l,d):ja(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+g.x,y:n.y*f.y-d.scrollTop*f.y+m.y+g.y}}function Fke(e){return Array.from(e.getClientRects())}function Uke(e){const t=Pa(e),n=cy(e),r=e.ownerDocument.body,a=Zr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Zr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+uy(e);const u=-n.scrollTop;return Xi(r).direction==="rtl"&&(l+=Zr(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:l,y:u}}const FM=25;function zke(e,t){const n=ri(e),r=Pa(e),a=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,d=0;if(a){s=a.width,l=a.height;const m=Sk();(!m||m&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}const f=uy(r);if(f<=0){const m=r.ownerDocument,p=m.body,g=getComputedStyle(p),y=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-y);w<=FM&&(s-=w)}else f<=FM&&(s+=f);return{width:s,height:l,x:u,y:d}}function Vke(e,t){const n=zl(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Ps(e)?Nu(e):ja(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,d=a*s.x,f=r*s.y;return{width:l,height:u,x:d,y:f}}function UM(e,t,n){let r;if(t==="viewport")r=zke(e,n);else if(t==="document")r=Uke(Pa(e));else if(Qi(t))r=Vke(t,n);else{const a=NU(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Wg(r)}function kU(e,t){const n=Eo(e);return n===t||!Qi(n)||Ru(n)?!1:Xi(n).position==="fixed"||kU(n,t)}function Wke(e,t){const n=t.get(e);if(n)return n;let r=jh(e,[],!1).filter(u=>Qi(u)&&ld(u)!=="body"),a=null;const s=Xi(e).position==="fixed";let l=s?Eo(e):e;for(;Qi(l)&&!Ru(l);){const u=Xi(l),d=Nk(l);!d&&u.position==="fixed"&&(a=null),(s?!d&&!a:!d&&u.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||am(l)&&!d&&kU(e,l))?r=r.filter(m=>m!==l):a=u,l=Eo(l)}return t.set(e,r),r}function qke(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?ly(t)?[]:Wke(t,this._c):[].concat(n),r],u=UM(t,l[0],a);let d=u.top,f=u.right,m=u.bottom,p=u.left;for(let g=1;g<l.length;g++){const y=UM(t,l[g],a);d=Zr(y.top,d),f=Co(y.right,f),m=Co(y.bottom,m),p=Zr(y.left,p)}return{width:f-p,height:m-d,x:p,y:d}}function Hke(e){const{width:t,height:n}=jU(e);return{width:t,height:n}}function Gke(e,t,n){const r=Ps(t),a=Pa(t),s=n==="fixed",l=zl(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=ja(0);function f(){d.x=uy(a)}
vendor: 9,259 bytes, line 134
134if(r||!r&&!s)if((ld(t)!=="body"||am(a))&&(u=cy(t)),r){const y=zl(t,!0,s,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else a&&f();s&&!r&&a&&f();const m=a&&!r&&!s?SU(a,u):ja(0),p=l.left+u.scrollLeft-d.x-m.x,g=l.top+u.scrollTop-d.y-m.y;return{x:p,y:g,width:l.width,height:l.height}}function X1(e){return Xi(e).position==="static"}function zM(e,t){if(!Ps(e)||Xi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pa(e)===n&&(n=n.ownerDocument.body),n}function AU(e,t){const n=ri(e);if(ly(e))return n;if(!Ps(e)){let a=Eo(e);for(;a&&!Ru(a);){if(Qi(a)&&!X1(a))return a;a=Eo(a)}return n}let r=zM(e,t);for(;r&&Mke(r)&&X1(r);)r=zM(r,t);return r&&Ru(r)&&X1(r)&&!Nk(r)?n:r||Ike(e)||n}const Kke=async function(e){const t=this.getOffsetParent||AU,n=this.getDimensions,r=await n(e.floating);return{reference:Gke(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Yke(e){return Xi(e).direction==="rtl"}const Qke={convertOffsetParentRelativeRectToViewportRelativeRect:Bke,getDocumentElement:Pa,getClippingRect:qke,getOffsetParent:AU,getElementRects:Kke,getClientRects:Fke,getDimensions:Hke,getScale:Nu,isElement:Qi,isRTL:Yke};function CU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xke(e,t){let n=null,r;const a=Pa(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:m,top:p,width:g,height:y}=f;if(u||t(),!g||!y)return;const w=tx(p),b=tx(a.clientWidth-(m+g)),N=tx(a.clientHeight-(p+y)),k=tx(m),A={rootMargin:-w+"px "+-b+"px "+-N+"px "+-k+"px",threshold:Zr(0,Co(1,d))||1};let E=!0;function _(T){const M=T[0].intersectionRatio;if(M!==d){if(!E)return l();M?l(!1,M):r=setTimeout(()=>{l(!1,1e-7)},1e3)}M===1&&!CU(f,e.getBoundingClientRect())&&l(),E=!1}try{n=new IntersectionObserver(_,{...A,root:a.ownerDocument})}catch{n=new IntersectionObserver(_,A)}n.observe(e)}return l(!0),s}function Zke(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=kk(e),m=a||s?[...f?jh(f):[],...t?jh(t):[]]:[];m.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),s&&k.addEventListener("resize",n)});const p=f&&u?Xke(f,n):null;let g=-1,y=null;l&&(y=new ResizeObserver(k=>{let[C]=k;C&&C.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),f&&!d&&y.observe(f),t&&y.observe(t));let w,b=d?zl(e):null;d&&N();function N(){const k=zl(e);b&&!CU(b,k)&&n(),b=k,w=requestAnimationFrame(N)}return n(),()=>{var k;m.forEach(C=>{a&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p?.(),(k=y)==null||k.disconnect(),y=null,d&&cancelAnimationFrame(w)}}const Jke=Tke,eAe=_ke,tAe=Ake,nAe=Pke,rAe=Cke,VM=kke,iAe=Oke,aAe=(e,t,n)=>{const r=new Map,a={platform:Qke,...n},s={...a.platform,_c:r};return Ske(e,t,{...a,platform:s})};var sAe=typeof document<"u",oAe=function(){},Ax=sAe?v.useLayoutEffect:oAe;function qg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!qg(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!qg(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function EU(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function WM(e,t){const n=EU(e);return Math.round(t*n)/n}function Z1(e){const t=v.useRef(e);return Ax(()=>{t.current=e}),t}function lAe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=v.useState(r);qg(g,r)||y(r);const[w,b]=v.useState(null),[N,k]=v.useState(null),C=v.useCallback(Q=>{Q!==T.current&&(T.current=Q,b(Q))},[]),A=v.useCallback(Q=>{Q!==M.current&&(M.current=Q,k(Q))},[]),E=s||w,_=l||N,T=v.useRef(null),M=v.useRef(null),P=v.useRef(m),D=d!=null,U=Z1(d),L=Z1(a),$=Z1(f),G=v.useCallback(()=>{if(!T.current||!M.current)return;const Q={placement:t,strategy:n,middleware:g};L.current&&(Q.platform=L.current),aAe(T.current,M.current,Q).then(ce=>{const I={...ce,isPositioned:$.current!==!1};H.current&&!qg(P.current,I)&&(P.current=I,Ss.flushSync(()=>{p(I)}))})},[g,t,n,L,$]);Ax(()=>{f===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(Q=>({...Q,isPositioned:!1})))},[f]);const H=v.useRef(!1);Ax(()=>(H.current=!0,()=>{H.current=!1}),[]),Ax(()=>{if(E&&(T.current=E),_&&(M.current=_),E&&_){if(U.current)return U.current(E,_,G);G()}},[E,_,G,U,D]);const V=v.useMemo(()=>({reference:T,floating:M,setReference:C,setFloating:A}),[C,A]),B=v.useMemo(()=>({reference:E,floating:_}),[E,_]),K=v.useMemo(()=>{const Q={position:n,left:0,top:0};if(!B.floating)return Q;const ce=WM(B.floating,m.x),I=WM(B.floating,m.y);return u?{...Q,transform:"translate("+ce+"px, "+I+"px)",...EU(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ce,top:I}},[n,u,B.floating,m.x,m.y]);return v.useMemo(()=>({...m,update:G,refs:V,elements:B,floatingStyles:K}),[m,G,V,B,K])}const cAe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?VM({element:r.current,padding:a}).fn(n):{}:r?VM({element:r,padding:a}).fn(n):{}}}},uAe=(e,t)=>{const n=Jke(e);return{name:n.name,fn:n.fn,options:[e,t]}},dAe=(e,t)=>{const n=eAe(e);return{name:n.name,fn:n.fn,options:[e,t]}},fAe=(e,t)=>({fn:iAe(e).fn,options:[e,t]}),hAe=(e,t)=>{const n=tAe(e);return{name:n.name,fn:n.fn,options:[e,t]}},mAe=(e,t)=>{const n=nAe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pAe=(e,t)=>{const n=rAe(e);return{name:n.name,fn:n.fn,options:[e,t]}},xAe=(e,t)=>{const n=cAe(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gAe="Arrow",TU=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return i.jsx(it.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});TU.displayName=gAe;var yAe=TU,Ak="Popper",[_U,OU]=_a(Ak),[vAe,PU]=_U(Ak),MU=e=>{const{__scopePopper:t,children:n}=e,[r,a]=v.useState(null);return i.jsx(vAe,{scope:t,anchor:r,onAnchorChange:a,children:n})};MU.displayName=Ak;var RU="PopperAnchor",DU=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=PU(RU,n),l=v.useRef(null),u=Nt(t,l),d=v.useRef(null);return v.useEffect(()=>{const f=d.current;d.current=r?.current||l.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:i.jsx(it.div,{...a,ref:u})});DU.displayName=RU;var Ck="PopperContent",[bAe,wAe]=_U(Ck),IU=v.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:w,...b}=e,N=PU(Ck,n),[k,C]=v.useState(null),A=Nt(t,ge=>C(ge)),[E,_]=v.useState(null),T=gN(E),M=T?.width??0,P=T?.height??0,D=r+(s!=="center"?"-"+s:""),U=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},L=Array.isArray(f)?f:[f],$=L.length>0,G={padding:U,boundary:L.filter(NAe),altBoundary:$},{refs:H,floatingStyles:V,placement:B,isPositioned:K,middlewareData:Q}=lAe({strategy:"fixed",placement:D,whileElementsMounted:(...ge)=>Zke(...ge,{animationFrame:y==="always"}),elements:{reference:N.anchor},middleware:[uAe({mainAxis:a+P,alignmentAxis:l}),d&&dAe({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?fAe():void 0,...G}),d&&hAe({...G}),mAe({...G,apply:({elements:ge,rects:ke,availableWidth:le,availableHeight:we})=>{const{width:he,height:X}=ke.reference,F=ge.floating.style;F.setProperty("--radix-popper-available-width",`${le}px`),F.setProperty("--radix-popper-available-height",`${we}px`),F.setProperty("--radix-popper-anchor-width",`${he}px`),F.setProperty("--radix-popper-anchor-height",`${X}px`)}}),E&&xAe({element:E,padding:u}),SAe({arrowWidth:M,arrowHeight:P}),g&&pAe({strategy:"referenceHidden",...G})]}),[ce,I]=BU(B),J=So(w);Zn(()=>{K&&J?.()},[K,J]);const fe=Q.arrow?.x,ue=Q.arrow?.y,ve=Q.arrow?.centerOffset!==0,[Se,Ne]=v.useState();return Zn(()=>{k&&Ne(window.getComputedStyle(k).zIndex)},[k]),i.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[Q.transformOrigin?.x,Q.transformOrigin?.y].join(" "),...Q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(bAe,{scope:n,placedSide:ce,onArrowChange:_,arrowX:fe,arrowY:ue,shouldHideArrow:ve,children:i.jsx(it.div,{"data-side":ce,"data-align":I,...b,ref:A,style:{...b.style,animation:K?void 0:"none"}})})})});IU.displayName=Ck;
vendor: 4,316 bytes, line 134
134var LU="PopperArrow",jAe={top:"bottom",right:"left",bottom:"top",left:"right"},$U=v.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=wAe(LU,r),l=jAe[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(yAe,{...a,ref:n,style:{...a.style,display:"block"}})})});$U.displayName=LU;function NAe(e){return e!==null}var SAe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,m]=BU(n),p={start:"0%",center:"50%",end:"100%"}[m],g=(a.arrow?.x??0)+u/2,y=(a.arrow?.y??0)+d/2;let w="",b="";return f==="bottom"?(w=l?p:`${g}px`,b=`${-d}px`):f==="top"?(w=l?p:`${g}px`,b=`${r.floating.height+d}px`):f==="right"?(w=`${-d}px`,b=l?p:`${y}px`):f==="left"&&(w=`${r.floating.width+d}px`,b=l?p:`${y}px`),{data:{x:w,y:b}}}});function BU(e){const[t,n="center"]=e.split("-");return[t,n]}var kAe=MU,AAe=DU,CAe=IU,EAe=$U,FU=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"}),TAe="VisuallyHidden",_Ae=v.forwardRef((e,t)=>i.jsx(it.span,{...e,ref:t,style:{...FU,...e.style}}));_Ae.displayName=TAe;var OAe=[" ","Enter","ArrowUp","ArrowDown"],PAe=[" ","Enter"],Vl="Select",[dy,fy,MAe]=xN(Vl),[cd]=_a(Vl,[MAe,OU]),hy=OU(),[RAe,Ro]=cd(Vl),[DAe,IAe]=cd(Vl),UU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:m,autoComplete:p,disabled:g,required:y,form:w}=e,b=hy(t),[N,k]=v.useState(null),[C,A]=v.useState(null),[E,_]=v.useState(!1),T=u0(f),[M,P]=hs({prop:r,defaultProp:a??!1,onChange:s,caller:Vl}),[D,U]=hs({prop:l,defaultProp:u,onChange:d,caller:Vl}),L=v.useRef(null),$=N?w||!!N.closest("form"):!0,[G,H]=v.useState(new Set),V=Array.from(G).map(B=>B.props.value).join(";");return i.jsx(kAe,{...b,children:i.jsxs(RAe,{required:y,scope:t,trigger:N,onTriggerChange:k,valueNode:C,onValueNodeChange:A,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:cs(),value:D,onValueChange:U,open:M,onOpenChange:P,dir:T,triggerPointerDownPosRef:L,disabled:g,children:[i.jsx(dy.Provider,{scope:t,children:i.jsx(DAe,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(B=>{H(K=>new Set(K).add(B))},[]),onNativeOptionRemove:v.useCallback(B=>{H(K=>{const Q=new Set(K);return Q.delete(B),Q})},[]),children:n})}),$?i.jsxs(dz,{"aria-hidden":!0,required:y,tabIndex:-1,name:m,autoComplete:p,value:D,onChange:B=>U(B.target.value),disabled:g,form:w,children:[D===void 0?i.jsx("option",{value:""}):null,Array.from(G)]},V):null]})})};UU.displayName=Vl;var zU="SelectTrigger",VU=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,s=hy(n),l=Ro(zU,n),u=l.disabled||r,d=Nt(t,l.onTriggerChange),f=fy(n),m=v.useRef("touch"),[p,g,y]=hz(b=>{const N=f().filter(A=>!A.disabled),k=N.find(A=>A.value===l.value),C=mz(N,b,k);C!==void 0&&l.onValueChange(C.value)}),w=b=>{u||(l.onOpenChange(!0),y()),b&&(l.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return i.jsx(AAe,{asChild:!0,...s,children:i.jsx(it.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":fz(l.value)?"":void 0,...a,ref:d,onClick:ut(a.onClick,b=>{b.currentTarget.focus(),m.current!=="mouse"&&w(b)}),onPointerDown:ut(a.onPointerDown,b=>{m.current=b.pointerType;const N=b.target;N.hasPointerCapture(b.pointerId)&&N.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(w(b),b.preventDefault())}),onKeyDown:ut(a.onKeyDown,b=>{const N=p.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&g(b.key),!(N&&b.key===" ")&&OAe.includes(b.key)&&(w(),b.preventDefault())})})})});VU.displayName=zU;var WU="SelectValue",qU=v.forwardRef((e,t)=>
vendor: 13,465 bytes, line 134
134{const{__scopeSelect:n,className:r,style:a,children:s,placeholder:l="",...u}=e,d=Ro(WU,n),{onValueNodeHasChildrenChange:f}=d,m=s!==void 0,p=Nt(t,d.onValueNodeChange);return Zn(()=>{f(m)},[f,m]),i.jsx(it.span,{...u,ref:p,style:{pointerEvents:"none"},children:fz(d.value)?i.jsx(i.Fragment,{children:l}):s})});qU.displayName=WU;var LAe="SelectIcon",HU=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return i.jsx(it.span,{"aria-hidden":!0,...a,ref:t,children:r||"â¼"})});HU.displayName=LAe;var $Ae="SelectPortal",GU=e=>i.jsx(ok,{asChild:!0,...e});GU.displayName=$Ae;var Wl="SelectContent",KU=v.forwardRef((e,t)=>{const n=Ro(Wl,e.__scopeSelect),[r,a]=v.useState();if(Zn(()=>{a(new DocumentFragment)},[]),!n.open){const s=r;return s?Ss.createPortal(i.jsx(YU,{scope:e.__scopeSelect,children:i.jsx(dy.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(QU,{...e,ref:t})});KU.displayName=Wl;var Li=10,[YU,Do]=cd(Wl),BAe="SelectContentImpl",FAe=sh("SelectContent.RemoveScroll"),QU=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:d,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:g,collisionPadding:y,sticky:w,hideWhenDetached:b,avoidCollisions:N,...k}=e,C=Ro(Wl,n),[A,E]=v.useState(null),[_,T]=v.useState(null),M=Nt(t,ge=>E(ge)),[P,D]=v.useState(null),[U,L]=v.useState(null),$=fy(n),[G,H]=v.useState(!1),V=v.useRef(!1);v.useEffect(()=>{if(A)return RF(A)},[A]),kF();const B=v.useCallback(ge=>{const[ke,...le]=$().map(X=>X.ref.current),[we]=le.slice(-1),he=document.activeElement;for(const X of ge)if(X===he||(X?.scrollIntoView({block:"nearest"}),X===ke&&_&&(_.scrollTop=0),X===we&&_&&(_.scrollTop=_.scrollHeight),X?.focus(),document.activeElement!==he))return},[$,_]),K=v.useCallback(()=>B([P,A]),[B,P,A]);v.useEffect(()=>{G&&K()},[G,K]);const{onOpenChange:Q,triggerPointerDownPosRef:ce}=C;v.useEffect(()=>{if(A){let ge={x:0,y:0};const ke=we=>{ge={x:Math.abs(Math.round(we.pageX)-(ce.current?.x??0)),y:Math.abs(Math.round(we.pageY)-(ce.current?.y??0))}},le=we=>{ge.x<=10&&ge.y<=10?we.preventDefault():A.contains(we.target)||Q(!1),document.removeEventListener("pointermove",ke),ce.current=null};return ce.current!==null&&(document.addEventListener("pointermove",ke),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ke),document.removeEventListener("pointerup",le,{capture:!0})}}},[A,Q,ce]),v.useEffect(()=>{const ge=()=>Q(!1);return window.addEventListener("blur",ge),window.addEventListener("resize",ge),()=>{window.removeEventListener("blur",ge),window.removeEventListener("resize",ge)}},[Q]);const[I,J]=hz(ge=>{const ke=$().filter(he=>!he.disabled),le=ke.find(he=>he.ref.current===document.activeElement),we=mz(ke,ge,le);we&&setTimeout(()=>we.ref.current.focus())}),fe=v.useCallback((ge,ke,le)=>{const we=!V.current&&!le;(C.value!==void 0&&C.value===ke||we)&&(D(ge),we&&(V.current=!0))},[C.value]),ue=v.useCallback(()=>A?.focus(),[A]),ve=v.useCallback((ge,ke,le)=>{const we=!V.current&&!le;(C.value!==void 0&&C.value===ke||we)&&L(ge)},[C.value]),Se=r==="popper"?rj:XU,Ne=Se===rj?{side:u,sideOffset:d,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:g,collisionPadding:y,sticky:w,hideWhenDetached:b,avoidCollisions:N}:{};return i.jsx(YU,{scope:n,content:A,viewport:_,onViewportChange:T,itemRefCallback:fe,selectedItem:P,onItemLeave:ue,itemTextRefCallback:ve,focusSelectedItem:K,selectedItemText:U,position:r,isPositioned:G,searchRef:I,children:i.jsx(lk,{as:FAe,allowPinchZoom:!0,children:i.jsx(sk,{asChild:!0,trapped:C.open,onMountAutoFocus:ge=>{ge.preventDefault()},onUnmountAutoFocus:ut(a,ge=>{C.trigger?.focus({preventScroll:!0}),ge.preventDefault()}),children:i.jsx(ak,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:ge=>ge.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:i.jsx(Se,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:ge=>ge.preventDefault(),...k,...Ne,onPlaced:()=>H(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:ut(k.onKeyDown,ge=>{const ke=ge.ctrlKey||ge.altKey||ge.metaKey;if(ge.key==="Tab"&&ge.preventDefault(),!ke&&ge.key.length===1&&J(ge.key),["ArrowUp","ArrowDown","Home","End"].includes(ge.key)){let we=$().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(ge.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(ge.key)){const he=ge.target,X=we.indexOf(he);we=we.slice(X+1)}setTimeout(()=>B(we)),ge.preventDefault()}})})})})})})});QU.displayName=BAe;var UAe="SelectItemAlignedPosition",XU=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,s=Ro(Wl,n),l=Do(Wl,n),[u,d]=v.useState(null),[f,m]=v.useState(null),p=Nt(t,M=>m(M)),g=fy(n),y=v.useRef(!1),w=v.useRef(!0),{viewport:b,selectedItem:N,selectedItemText:k,focusSelectedItem:C}=l,A=v.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&b&&N&&k){const M=s.trigger.getBoundingClientRect(),P=f.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),U=k.getBoundingClientRect();if(s.dir!=="rtl"){const he=U.left-P.left,X=D.left-he,F=M.left-X,xe=M.width+F,je=Math.max(xe,P.width),He=window.innerWidth-Li,Qe=MM(X,[Li,Math.max(Li,He-je)]);u.style.minWidth=xe+"px",u.style.left=Qe+"px"}else{const he=P.right-U.right,X=window.innerWidth-D.right-he,F=window.innerWidth-M.right-X,xe=M.width+F,je=Math.max(xe,P.width),He=window.innerWidth-Li,Qe=MM(X,[Li,Math.max(Li,He-je)]);u.style.minWidth=xe+"px",u.style.right=Qe+"px"}const L=g(),$=window.innerHeight-Li*2,G=b.scrollHeight,H=window.getComputedStyle(f),V=parseInt(H.borderTopWidth,10),B=parseInt(H.paddingTop,10),K=parseInt(H.borderBottomWidth,10),Q=parseInt(H.paddingBottom,10),ce=V+B+G+Q+K,I=Math.min(N.offsetHeight*5,ce),J=window.getComputedStyle(b),fe=parseInt(J.paddingTop,10),ue=parseInt(J.paddingBottom,10),ve=M.top+M.height/2-Li,Se=$-ve,Ne=N.offsetHeight/2,ge=N.offsetTop+Ne,ke=V+B+ge,le=ce-ke;if(ke<=ve){const he=L.length>0&&N===L[L.length-1].ref.current;u.style.bottom="0px";const X=f.clientHeight-b.offsetTop-b.offsetHeight,F=Math.max(Se,Ne+(he?ue:0)+X+K),xe=ke+F;u.style.height=xe+"px"}else{const he=L.length>0&&N===L[0].ref.current;u.style.top="0px";const F=Math.max(ve,V+b.offsetTop+(he?fe:0)+Ne)+le;u.style.height=F+"px",b.scrollTop=ke-ve+b.offsetTop}u.style.margin=`${Li}px 0`,u.style.minHeight=I+"px",u.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>y.current=!0)}},[g,s.trigger,s.valueNode,u,f,b,N,k,s.dir,r]);Zn(()=>A(),[A]);const[E,_]=v.useState();Zn(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const T=v.useCallback(M=>{M&&w.current===!0&&(A(),C?.(),w.current=!1)},[A,C]);return i.jsx(VAe,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:y,onScrollButtonChange:T,children:i.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:i.jsx(it.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});XU.displayName=UAe;var zAe="SelectPopperPosition",rj=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Li,...s}=e,l=hy(n);return i.jsx(CAe,{...l,...s,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...s.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)"}})});rj.displayName=zAe;var[VAe,Ek]=cd(Wl,{}),ij="SelectViewport",ZU=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,s=Do(ij,n),l=Ek(ij,n),u=Nt(t,s.onViewportChange),d=v.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),i.jsx(dy.Slot,{scope:n,children:i.jsx(it.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ut(a.onScroll,f=>{const m=f.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=l;if(g?.current&&p){const y=Math.abs(d.current-m.scrollTop);if(y>0){const w=window.innerHeight-Li*2,b=parseFloat(p.style.minHeight),N=parseFloat(p.style.height),k=Math.max(b,N);if(k<w){const C=k+y,A=Math.min(w,C),E=C-A;p.style.height=A+"px",p.style.bottom==="0px"&&(m.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});ZU.displayName=ij;var JU="SelectGroup",[WAe,qAe]=cd(JU),HAe=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=cs();return i.jsx(WAe,{scope:n,id:a,children:i.jsx(it.div,{role:"group","aria-labelledby":a,...r,ref:t})})});HAe.displayName=JU;var ez="SelectLabel",tz=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=qAe(ez,n);return i.jsx(it.div,{id:a.id,...r,ref:t})});tz.displayName=ez;var Hg="SelectItem",[GAe,nz]=cd(Hg),rz=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...l}=e,u=Ro(Hg,n),d=Do(Hg,n),f=u.value===r,[m,p]=v.useState(s??""),[g,y]=v.useState(!1),w=Nt(t,C=>d.itemRefCallback?.(C,r,a)),b=cs(),N=v.useRef("touch"),k=()=>{a||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(GAe,{scope:n,value:r,disabled:a,textId:b,isSelected:f,onItemTextChange:v.useCallback(C=>{p(A=>A||(C?.textContent??"").trim())},[]),children:i.jsx(dy.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:i.jsx(it.div,{role:"option","aria-labelledby":b,"data-highlighted":g?"":void 0,"aria-selected":f&&g,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:w,onFocus:ut(l.onFocus,()=>y(!0)),onBlur:ut(l.onBlur,()=>y(!1)),onClick:ut(l.onClick,()=>{N.current!=="mouse"&&k()}),onPointerUp:ut(l.onPointerUp,()=>{N.current==="mouse"&&k()}),onPointerDown:ut(l.onPointerDown,C=>{N.current=C.pointerType}),onPointerMove:ut(l.onPointerMove,C=>{N.current=C.pointerType,a?d.onItemLeave?.():N.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ut(l.onPointerLeave,C=>{C.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:ut(l.onKeyDown,C=>{d.searchRef?.current!==""&&C.key===" "||(PAe.includes(C.key)&&k(),C.key===" "&&C.preventDefault())})})})})});rz.displayName=Hg;var Rf="SelectItemText",iz=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...s}=e,l=Ro(Rf,n),u=Do(Rf,n),d=nz(Rf,n),f=IAe(Rf,n),[m,p]=v.useState(null),g=Nt(t,k=>p(k),d.onItemTextChange,k=>u.itemTextRefCallback?.(k,d.value,d.disabled)),y=m?.textContent,w=v.useMemo(()=>i.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:N}=f;return Zn(()=>(b(w),()=>N(w)),[b,N,w]),i.jsxs(i.Fragment,{children:[i.jsx(it.span,{id:d.textId,...s,ref:g}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Ss.createPortal(s.children,l.valueNode):null]})});iz.displayName=Rf;var az="SelectItemIndicator",sz=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return nz(az,n).isSelected?i.jsx(it.span,{"aria-hidden":!0,...r,ref:t}):null});sz.displayName=az;var aj="SelectScrollUpButton",oz=v.forwardRef((e,t)=>{const n=Do(aj,e.__scopeSelect),r=Ek(aj,e.__scopeSelect),[a,s]=v.useState(!1),l=Nt(t,r.onScrollButtonChange);return Zn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?i.jsx(cz,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});oz.displayName=aj;var sj="SelectScrollDownButton",lz=v.forwardRef((e,t)=>{const n=Do(sj,e.__scopeSelect),r=Ek(sj,e.__scopeSelect),[a,s]=v.useState(!1),l=Nt(t,r.onScrollButtonChange);return Zn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<f;s(m)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?i.jsx(cz,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});lz.displayName=sj;var cz=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,s=Do("SelectScrollButton",n),l=v.useRef(null),u=fy(n),d=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>d(),[d]),Zn(()=>{u().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),i.jsx(it.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ut(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:ut(a.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:ut(a.onPointerLeave,()=>{d()})})}),KAe="SelectSeparator",uz=v.forwardRef((e,t)=>
134{const{__scopeSelect:n,...r}=e;return i.jsx(it.div,{"aria-hidden":!0,...r,ref:t})});uz.displayName=KAe;var oj="SelectArrow",YAe=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=hy(n),s=Ro(oj,n),l=Do(oj,n);return s.open&&l.position==="popper"?i.jsx(EAe,{...a,...r,ref:t}):null});YAe.displayName=oj;var QAe="SelectBubbleInput",dz=v.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=v.useRef(null),s=Nt(r,a),l=yN(t);return v.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&m){const p=new Event("change",{bubbles:!0});m.call(u,t),u.dispatchEvent(p)}},[l,t]),i.jsx(it.select,{...n,style:{...FU,...n.style},ref:s,defaultValue:t})});dz.displayName=QAe;function fz(e){return e===""||e===void 0}function hz(e){const t=So(e),n=v.useRef(""),r=v.useRef(0),a=v.useCallback(l=>{const u=n.current+l;t(u),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(u)},[t]),s=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,s]}function mz(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=XAe(e,Math.max(s,0));a.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function XAe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ZAe=UU,pz=VU,JAe=qU,eCe=HU,tCe=GU,xz=KU,nCe=ZU,gz=tz,yz=rz,rCe=iz,iCe=sz,vz=oz,bz=lz,wz=uz;const aCe=ZAe,sCe=JAe,jz=v.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(pz,{ref:r,className:Je("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,i.jsx(eCe,{asChild:!0,children:i.jsx(Gi,{className:"h-4 w-4 opacity-50"})})]}));jz.displayName=pz.displayName;const Nz=v.forwardRef(({className:e,...t},n)=>i.jsx(vz,{ref:n,className:Je("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(bN,{className:"h-4 w-4"})}));Nz.displayName=vz.displayName;const Sz=v.forwardRef(({className:e,...t},n)=>i.jsx(bz,{ref:n,className:Je("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(Gi,{className:"h-4 w-4"})}));Sz.displayName=bz.displayName;const kz=v.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>i.jsx(tCe,{children:i.jsxs(xz,{ref:a,className:Je("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[i.jsx(Nz,{}),i.jsx(nCe,{className:Je("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(Sz,{})]})}));kz.displayName=xz.displayName;const oCe=v.forwardRef(({className:e,...t},n)=>i.jsx(gz,{ref:n,className:Je("px-2 py-1.5 text-sm font-semibold",e),...t}));oCe.displayName=gz.displayName;const lj=v.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(yz,{ref:r,className:Je("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(iCe,{children:i.jsx(ko,{className:"h-4 w-4"})})}),i.jsx(rCe,{children:t})]}));lj.displayName=yz.displayName;const lCe=v.forwardRef(({className:e,...t},n)=>i.jsx(wz,{ref:n,className:Je("-mx-1 my-1 h-px bg-muted",e),...t}));
134lCe.displayName=wz.displayName;var my="Collapsible",[cCe,Az]=_a(my),[uCe,Tk]=cCe(my),Cz=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:l,...u}=e,[d,f]=hs({prop:r,defaultProp:a??!1,onChange:l,caller:my});return i.jsx(uCe,{scope:n,disabled:s,contentId:cs(),open:d,onOpenToggle:v.useCallback(()=>f(m=>!m),[f]),children:i.jsx(it.div,{"data-state":Ok(d),"data-disabled":s?"":void 0,...u,ref:t})})});Cz.displayName=my;var Ez="CollapsibleTrigger",Tz=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=Tk(Ez,n);return i.jsx(it.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Ok(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:ut(e.onClick,a.onOpenToggle)})});Tz.displayName=Ez;var _k="CollapsibleContent",_z=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Tk(_k,e.__scopeCollapsible);return i.jsx(qu,{present:n||a.open,children:({present:s})=>i.jsx(dCe,{...r,ref:t,present:s})})});_z.displayName=_k;var dCe=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...s}=e,l=Tk(_k,n),[u,d]=v.useState(r),f=v.useRef(null),m=Nt(t,f),p=v.useRef(0),g=p.current,y=v.useRef(0),w=y.current,b=l.open||u,N=v.useRef(b),k=v.useRef(void 0);return v.useEffect(()=>{const C=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(C)},[]),Zn(()=>{const C=f.current;if(C){k.current=k.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const A=C.getBoundingClientRect();p.current=A.height,y.current=A.width,N.current||(C.style.transitionDuration=k.current.transitionDuration,C.style.animationName=k.current.animationName),d(r)}},[l.open,r]),i.jsx(it.div,{"data-state":Ok(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!b,...s,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:b&&a})});function Ok(e){return e?"open":"closed"}var fCe=Cz,hCe=Tz,mCe=_z,na="Accordion",pCe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Pk,xCe,gCe]=xN(na),[py]=_a(na,[gCe,Az]),Mk=Az(),Oz=z.forwardRef((e,t)=>{const{type:n,...r}=e,a=r,s=r;return i.jsx(Pk.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?i.jsx(wCe,{...s,ref:t}):i.jsx(bCe,{...a,ref:t})})});Oz.displayName=na;var[Pz,yCe]=py(na),[Mz,vCe]=py(na,{collapsible:!1}),bCe=z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},collapsible:s=!1,...l}=e,[u,d]=hs({prop:n,defaultProp:r??"",onChange:a,caller:na});return i.jsx(Pz,{scope:e.__scopeAccordion,value:z.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:z.useCallback(()=>s&&d(""),[s,d]),children:i.jsx(Mz,{scope:e.__scopeAccordion,collapsible:s,children:i.jsx(Rz,{...l,ref:t})})})}),wCe=z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...s}=e,[l,u]=hs({prop:n,defaultProp:r??[],onChange:a,caller:na}),d=z.useCallback(m=>u((p=[])=>[...p,m]),[u]),f=z.useCallback(m=>u((p=[])=>p.filter(g=>g!==m)),[u]);return i.jsx(Pz,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:f,children:i.jsx(Mz,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(Rz,{...s,ref:t})})})}),[jCe,xy]=py(na),Rz=z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:a,orientation:s="vertical",...l}=e,u=z.useRef(null),d=Nt(u,t),f=xCe(n),p=u0(a)==="ltr",g=ut(e.onKeyDown,y=>{if(!pCe.includes(y.key))return;const w=y.target,b=f().filter(P=>!P.ref.current?.disabled),N=b.findIndex(P=>P.ref.current===w),k=b.length;if(N===-1)return;y.preventDefault();let C=N;const A=0,E=k-1,_=()=>{C=N+1,C>E&&(C=A)},T=()=>{C=N-1,C<A&&(C=E)};switch(y.key){case"Home":C=A;break;case"End":C=E;break;case"ArrowRight":s==="horizontal"&&(p?_():T());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(p?T():_());break;case"ArrowUp":s==="vertical"&&T();break}const M=C%k;b[M].ref.current?.focus()});return i.jsx(jCe,{scope:n,disabled:r,direction:a,orientation:s,children:i.jsx(Pk.Slot,{scope:n,children:i.jsx(it.div,{...l,"data-orientation":s,ref:d,onKeyDown:r?void 0:g})})})}),Gg="AccordionItem",[NCe,Rk]=py(Gg),Dz=z.forwardRef((e,t)=>
134{const{__scopeAccordion:n,value:r,...a}=e,s=xy(Gg,n),l=yCe(Gg,n),u=Mk(n),d=cs(),f=r&&l.value.includes(r)||!1,m=s.disabled||e.disabled;return i.jsx(NCe,{scope:n,open:f,disabled:m,triggerId:d,children:i.jsx(fCe,{"data-orientation":s.orientation,"data-state":Uz(f),...u,...a,ref:t,disabled:m,open:f,onOpenChange:p=>{p?l.onItemOpen(r):l.onItemClose(r)}})})});Dz.displayName=Gg;var Iz="AccordionHeader",Lz=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=xy(na,n),s=Rk(Iz,n);return i.jsx(it.h3,{"data-orientation":a.orientation,"data-state":Uz(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});Lz.displayName=Iz;var cj="AccordionTrigger",$z=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=xy(na,n),s=Rk(cj,n),l=vCe(cj,n),u=Mk(n);return i.jsx(Pk.ItemSlot,{scope:n,children:i.jsx(hCe,{"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...u,...r,ref:t})})});$z.displayName=cj;var Bz="AccordionContent",Fz=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=xy(na,n),s=Rk(Bz,n),l=Mk(n);return i.jsx(mCe,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Fz.displayName=Bz;function Uz(e){return e?"open":"closed"}var SCe=Oz,kCe=Dz,ACe=Lz,zz=$z,Vz=Fz;const gy=SCe,ts=v.forwardRef(({className:e,...t},n)=>i.jsx(kCe,{ref:n,className:Je("border-b",e),...t}));ts.displayName="AccordionItem";const ns=v.forwardRef(({className:e,children:t,...n},r)=>i.jsx(ACe,{className:"flex",children:i.jsxs(zz,{ref:r,className:Je("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),...n,children:[t,i.jsx(Gi,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));ns.displayName=zz.displayName;const rs=v.forwardRef(({className:e,children:t,...n},r)=>i.jsx(Vz,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:i.jsx("div",{className:Je("pb-4 pt-0",e),children:t})}));rs.displayName=Vz.displayName;const Df={"video/mp4":"video/mp4","application/pdf":"application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword":"application/msword","text/plain":"text/plain"},CCe=[Df["application/pdf"],Df["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],Df["application/msword"],Df["text/plain"]];function ECe(e,t=2){if(!+e)return"0 Bytes";const n=1024,r=t<0?0:t,a=["Bytes","KB","MB","GB","TB"],s=Math.floor(Math.log(e)/Math.log(n));return`${parseFloat((e/Math.pow(n,s)).toFixed(r))} ${a[s]}`}function Wz(e){return e.trim().toLowerCase().replace(/['â]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function TCe({course:e,open:t,onClose:n}){const r=ur(),a=pte(),s=wte(),[l,u]=v.useState(""),{register:d,handleSubmit:f,reset:m,control:p}=vk({defaultValues:{title:e?.title??"",slug:e?.slug??"",description:e?.description??"",audience:e?.audience??"leader",sortOrder:e?.sortOrder??0,isPublished:e?.isPublished??!1}});z.useEffect(()=>{t&&(u(""),m({title:e?.title??"",slug:e?.slug??"",description:e?.description??"",audience:e?.audience??"leader",sortOrder:e?.sortOrder??0,isPublished:e?.isPublished??!1}))},[t,e,m]);const g=async y=>{u("");const w=String(y.title??"").trim(),b=Wz(String(y.slug||w));if(!w||!b){u("Enter a course title using at least one letter or number.");return}const N={...y,title:w,slug:b,description:String(y.description??"").trim()||null,sortOrder:Number(y.sortOrder)};try{e?await s.mutateAsync({id:e.id,data:N}):await a.mutateAsync({data:N}),r.invalidateQueries({queryKey:is()}),r.invalidateQueries({queryKey:ha()}),r.invalidateQueries({queryKey:uN()}),n()}catch(k){u(k.message||"Failed to save course.")}};return i.jsx(rm,{open:t,onOpenChange:n,children:i.jsxs(sd,{className:"sm:max-w-[500px] rounded-2xl",children:[i.jsxs(Bl,{children:[i.jsx(Fl,{className:"text-xl font-bold",children:e?"Edit Course":"New Course"}),i.jsx(Ul,{children:"A course contains multiple lessons."})]}),i.jsxs("form",{onSubmit:f(g),className:"space-y-4 pt-4",children:[i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Title *"}),i.jsx(En,{...d("title",{required:!0}),placeholder:"e.g. Leader Basics"})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Slug"}),i.jsx(En,{...d("slug"),placeholder:"Leave blank to create from the title"}),i.jsx("p",{className:"text-xs text-slate-500",children:"Used in the course link. Spaces and capital letters are corrected automatically."})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Description"}),i.jsx(wh,{...d("description"),placeholder:"Optional summary..."})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Audience *"}),i.jsx(Z2,{control:p,name:"audience",render:({field:y})=>i.jsxs(aCe,{onValueChange:y.onChange,value:y.value,children:[i.jsx(jz,{children:i.jsx(sCe,{placeholder:"Select audience"})}),i.jsxs(kz,{children:[i.jsx(lj,{value:"leader",children:"Leader"}),i.jsx(lj,{value:"parent",children:"Parent"})]})]})})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Sort Order"}),i.jsx(En,{type:"number",...d("sortOrder",{required:!0})})]})]}),i.jsxs("div",{className:"flex items-center gap-2 pt-2 border-t mt
134-4 border-slate-100",children:[i.jsx(Z2,{control:p,name:"isPublished",render:({field:y})=>i.jsx(ay,{checked:y.value,onCheckedChange:y.onChange})}),i.jsx(ln,{className:"text-sm font-semibold text-slate-600",children:"Published"})]}),l&&i.jsxs("div",{className:"p-3 bg-red-50 text-red-700 text-sm font-medium rounded-lg border border-red-200 flex gap-2 items-start mt-4",children:[i.jsx(Hu,{className:"w-5 h-5 shrink-0"}),i.jsx("p",{children:l})]}),i.jsxs(ry,{className:"pt-4 border-t border-slate-100",children:[i.jsx(ee,{type:"button",variant:"ghost",onClick:n,children:"Cancel"}),i.jsx(ee,{type:"submit",disabled:a.isPending||s.isPending,className:"rounded-full",children:a.isPending||s.isPending?"Saving...":"Save Course"})]})]})]})})}function _Ce({courseId:e,lesson:t,open:n,onClose:r}){const a=ur(),s=Mte(),l=Lte(),[u,d]=v.useState(""),{register:f,handleSubmit:m,reset:p,control:g}=vk({defaultValues:{title:t?.title??"",slug:t?.slug??"",summary:t?.summary??"",body:t?.body??"",sortOrder:t?.sortOrder??0,isPublished:t?.isPublished??!1}});z.useEffect(()=>{n&&(d(""),p({title:t?.title??"",slug:t?.slug??"",summary:t?.summary??"",body:t?.body??"",sortOrder:t?.sortOrder??0,isPublished:t?.isPublished??!1}))},[n,t,p]);const y=async w=>{d("");const b=String(w.title??"").trim(),N=Wz(String(w.slug||b));if(!b||!N){d("Enter a lesson title using at least one letter or number.");return}const k={...w,title:b,slug:N,summary:String(w.summary??"").trim()||null,body:String(w.body??"").trim()||null,sortOrder:Number(w.sortOrder)};try{t?await l.mutateAsync({id:t.id,data:k}):await s.mutateAsync({courseId:e,data:k}),a.invalidateQueries({queryKey:is()}),a.invalidateQueries({queryKey:ha()}),a.invalidateQueries({queryKey:uN()}),r()}catch(C){d(C.message||"Failed to save lesson.")}};return i.jsx(rm,{open:n,onOpenChange:r,children:i.jsxs(sd,{className:"sm:max-w-[600px] rounded-2xl max-h-[90vh] overflow-y-auto",children:[i.jsxs(Bl,{children:[i.jsx(Fl,{className:"text-xl font-bold",children:t?"Edit Lesson":"New Lesson"}),i.jsx(Ul,{children:"A lesson contains written content and uploaded assets."})]}),i.jsxs("form",{onSubmit:m(y),className:"space-y-4 pt-4",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Title *"}),i.jsx(En,{...f("title",{required:!0}),placeholder:"e.g. Welcome"})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Slug"}),i.jsx(En,{...f("slug"),placeholder:"Leave blank to create from the title"}),i.jsx("p",{className:"text-xs text-slate-500",children:"Spaces and capital letters are corrected automatically."})]})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Summary"}),i.jsx(wh,{...f("summary"),placeholder:"Short preview text...",className:"h-20"})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Body Content"}),i.jsx(wh,{...f("body"),placeholder:"Full lesson markdown or text...",className:"h-40 font-mono text-sm"})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Sort Order"}),i.jsx(En,{type:"number",...f("sortOrder",{required:!0})})]}),i.jsxs("div",{className:"flex items-center gap-2 pt-8",children:[i.jsx(Z2,{control:g,name:"isPublished",render:({field:w})=>i.jsx(ay,{checked:w.value,onCheckedChange:w.onChange})}),i.jsx(ln,{className:"text-sm font-semibold text-slate-600",children:"Published"})]})]}),u&&i.jsxs("div",{className:"p-3 bg-red-50 text-red-700 text-sm font-medium rounded-lg border border-red-200 flex gap-2 items-start mt-4",children:[i.jsx(Hu,{className:"w-5 h-5 shrink-0"}),i.jsx("p",{children:u})]}),i.jsxs(ry,{className:"pt-4 border-t border-slate-100",children:[i.jsx(ee,{type:"button",variant:"ghost",onClick:r,children:"Cancel"}),i.jsx(ee,{type:"submit",disabled:s.isPending||l.isPending,className:"rounded-full",children:s.isPending||l.isPending?"Saving...":"Save Lesson"})]})]})]})})}function OCe({lessonId:e,open:t,onClose:n}){const r=ur(),a=qte(),s=Yte(),[l,u]=v.useState(null),[d,f]=v.useState(""),[m,p]=v.useState("0"),[g,y]=v.useState(!1),[w,b]=v.useState(0),[N,k]=v.useState(""),C=E=>{const _=E.target.files?.[0];_&&(u(_),d||f(_.name.split(".").slice(0,-1).join(".")||_.name),k(""))},A=async E=>{if(E.preventDefault(),!(!l||!d)){y(!0),k(""),b(0);try{const _=l.type===Df["video/mp4"],T=CCe.includes(l.type);if(!_&&!T)throw new Error(`Unsupported file type: "${l.type||"Unknown"}". Must be MP4 video or PDF/DOC/DOCX/TXT document.`);if(_&&l.size>1024*1024*1024)throw new Error("Video file too large (1GB max).");if(T&&l.size>50*1024*1024)throw new Error("Document file too large (50MB max).");const M=_?"video":"document",P=l.type,{uploadUrl:D,objectPath:U}=await a.mutateAsync({data:{kind:M,name:l.name,contentType:P,size:l.size}});await new Promise((L,$)=>{const G=new XMLHttpRequest;G.open("PUT",D,!0),G.setRequestHeader("Content-Type",l.type),G.upload.onprogress=H=>{H.lengthComputable&&b(Math.round(H.loaded/H.total*100))},G.onload=()=>{G.status>=200&&G.status<300?L(null):$(new Error("Upload to storage failed."))},G.onerror=()=>$(new Error("Upload interrupted.")),G.send(l)}),await s.mutateAsync({lessonId:e,data:{kind:M,title:d,originalFilename:l.name,objectPath:U,sortOrder:Number(m)||0}}),r.invalidateQueries({queryKey:is()}
134),r.invalidateQueries({queryKey:ha()}),n(),u(null),f(""),p("0")}catch(_){k(_.message||"An error occurred during upload.")}finally{y(!1)}}};return i.jsx(rm,{open:t,onOpenChange:E=>!g&&n(),children:i.jsxs(sd,{className:"sm:max-w-[500px] rounded-2xl",children:[i.jsxs(Bl,{children:[i.jsx(Fl,{className:"text-xl font-bold",children:"Upload Asset"}),i.jsx(Ul,{children:"Add a video (MP4) or document (PDF, DOCX, TXT) to this lesson."})]}),i.jsxs("form",{onSubmit:A,className:"space-y-4 pt-4",children:[i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"File *"}),i.jsx(En,{type:"file",accept:".mp4,.pdf,.doc,.docx,.txt,video/mp4,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain",onChange:C,disabled:g}),i.jsx("p",{className:"text-xs text-slate-500",children:"Videos up to 1GB must use H.264 video for browser playback. Documents up to 50MB."})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Title *"}),i.jsx(En,{value:d,onChange:E=>f(E.target.value),required:!0,disabled:g,placeholder:"e.g. Session 1 Video"})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(ln,{children:"Sort Order"}),i.jsx(En,{type:"number",value:m,onChange:E=>p(E.target.value),required:!0,disabled:g})]}),N&&i.jsxs("div",{className:"p-3 bg-red-50 text-red-700 text-sm font-medium rounded-lg border border-red-200 flex gap-2 items-start",children:[i.jsx(Hu,{className:"w-5 h-5 shrink-0"}),i.jsx("p",{children:N})]}),g&&i.jsxs("div",{className:"pt-2",children:[i.jsxs("div",{className:"flex justify-between text-sm mb-1 font-medium text-primary",children:[i.jsx("span",{children:"Uploading..."}),i.jsxs("span",{children:[w,"%"]})]}),i.jsx("div",{className:"h-2 w-full bg-slate-100 rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full bg-primary transition-all duration-300",style:{width:`${w}%`}})})]}),i.jsxs(ry,{className:"pt-4 border-t border-slate-100",children:[i.jsx(ee,{type:"button",variant:"ghost",onClick:n,disabled:g,children:"Cancel"}),i.jsx(ee,{type:"submit",disabled:!l||!d||g,className:"rounded-full",children:g?i.jsxs(i.Fragment,{children:[i.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"}),"Uploading..."]}):"Upload Asset"})]})]})]})})}function PCe(){const{data:e,isLoading:t,error:n}=UI(),r=kte(),a=Tte(),s=Ute(),l=Jte(),u=ur(),[d,f]=v.useState(""),[m,p]=v.useState(""),[g,y]=v.useState({open:!1}),[w,b]=v.useState({open:!1,courseId:0}),[N,k]=v.useState({open:!1,lessonId:0}),C=async(T,M)=>{if(window.confirm(`Delete course "${M}" and all its lessons? This cannot be undone.`)){f("");try{await r.mutateAsync({id:T}),u.invalidateQueries({queryKey:is()}),u.invalidateQueries({queryKey:ha()})}catch(P){f(P.message||"Failed to delete course.")}}},A=async T=>{const P=T.lessons.filter(D=>!D.isPublished).length===0?`"${T.title}" is already published. Publish it again?`:`Publish "${T.title}" and all ${T.lessons.length} lesson${T.lessons.length===1?"":"s"}?`;if(window.confirm(P)){f(""),p("");try{await a.mutateAsync({id:T.id}),await Promise.all([u.invalidateQueries({queryKey:is()}),u.invalidateQueries({queryKey:ha()}),u.invalidateQueries({queryKey:uN()})]),p(`"${T.title}" and all of its lessons are now published.`)}catch(D){f(D.message||"Failed to publish the course and its lessons.")}}},E=async(T,M)=>{if(window.confirm(`Delete lesson "${M}"? This cannot be undone.`)){f("");try{await s.mutateAsync({id:T}),u.invalidateQueries({queryKey:is()}),u.invalidateQueries({queryKey:ha()})}catch(P){f(P.message||"Failed to delete lesson.")}}},_=async(T,M)=>{if(window.confirm(`Delete asset "${M}"? This cannot be undone.`)){f("");try{await l.mutateAsync({id:T}),u.invalidateQueries({queryKey:is()}),u.invalidateQueries({queryKey:ha()})}catch(P){f(P.message||"Failed to delete asset.")}}};return t?i.jsx("div",{className:"py-20 flex justify-center",children:i.jsx(Xt,{className:"w-8 h-8 animate-spin text-primary/40"})}):n?i.jsx("div",{className:"py-20 text-center text-red-600 bg-red-50 rounded-2xl border border-red-100 p-8",children:"Failed to load training content."}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-bold text-slate-900",children:"Training Content"}),i.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"Manage courses, lessons, and downloadable assets."})]}),i.jsxs(ee,{onClick:()=>y({open:!0}),className:"rounded-full bg-slate-900 hover:bg-slate-800 text-white font-semibold shadow-sm",children:[i.jsx(gu,{className:"w-4 h-4 mr-2"}),"New Course"]})]}),d&&i.jsxs("div",{className:"p-4 bg-red-50 text-red-700 text-sm font-medium rounded-xl border border-red-200 flex gap-3 items-start",children:[i.jsx(Hu,{className:"w-5 h-5 shrink-0"}),i.jsx("p",{children:d})]}),m&&i.jsxs("div",{className:"p-4 bg-emerald-50 text-emerald-800 text-sm font-medium rounded-xl border border-emerald-200 flex gap-3 items-start",children:[i.jsx(va,{className:"w-5 h-5 shrink-0"}),i.jsx("p",{children:m})]}
134),e?.length?i.jsx("div",{className:"space-y-6",children:e.map(T=>i.jsxs(ze,{className:`overflow-hidden border-slate-200 shadow-sm transition-opacity duration-200 ${T.isPublished?"":"opacity-75"}`,children:[i.jsxs("div",{className:"bg-slate-50 px-6 py-4 flex items-center justify-between border-b border-slate-100",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:i.jsx(Fr,{className:"w-5 h-5 text-primary"})}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("h3",{className:"text-lg font-bold text-slate-900",children:T.title}),i.jsx("span",{className:`px-2 py-0.5 text-[10px] font-black uppercase tracking-wider rounded-md shadow-sm ${T.isPublished?"bg-green-500 text-white":"bg-slate-300 text-slate-700"}`,children:T.isPublished?"Live":"Draft"}),i.jsx("span",{className:"px-2 py-0.5 text-[10px] font-black uppercase tracking-wider rounded-md bg-white border text-slate-600 shadow-sm",children:T.audience})]}),T.description&&i.jsx("p",{className:"text-sm text-slate-600 mt-1 line-clamp-1",children:T.description})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"text-xs font-semibold text-slate-400 mr-4",children:["Order ",T.sortOrder]}),i.jsx(ee,{variant:"outline",size:"sm",className:"h-9 gap-2 rounded-full",asChild:!0,children:i.jsxs("a",{href:`/admin/course-preview/${encodeURIComponent(T.slug)}`,target:"_blank",rel:"noopener noreferrer",children:[i.jsx(sae,{className:"w-3.5 h-3.5"})," Preview as User"]})}),i.jsxs(ee,{variant:"outline",size:"sm",className:"h-9 gap-2 rounded-full border-emerald-300 text-emerald-700 hover:bg-emerald-50 hover:text-emerald-800",onClick:()=>A(T),disabled:a.isPending,children:[a.isPending&&a.variables?.id===T.id?i.jsx(Xt,{className:"w-3.5 h-3.5 animate-spin"}):i.jsx(va,{className:"w-3.5 h-3.5"}),"Publish All"]}),i.jsxs(ee,{variant:"outline",size:"sm",className:"h-9 gap-2 rounded-full",onClick:()=>y({open:!0,course:T}),children:[i.jsx(Kw,{className:"w-3.5 h-3.5"})," Edit"]}),i.jsx(ee,{variant:"outline",size:"sm",className:"h-9 gap-2 rounded-full text-red-600 hover:bg-red-50",onClick:()=>C(T.id,T.title),disabled:r.isPending,children:i.jsx(yu,{className:"w-3.5 h-3.5"})})]})]}),i.jsxs(Ve,{className:"p-0",children:[i.jsxs("div",{className:"p-4 bg-white border-b border-slate-50 flex justify-between items-center",children:[i.jsx("h4",{className:"font-semibold text-slate-800 px-2",children:"Lessons"}),i.jsxs(ee,{variant:"ghost",size:"sm",className:"text-primary hover:text-primary hover:bg-primary/5 rounded-full h-8",onClick:()=>b({open:!0,courseId:T.id}),children:[i.jsx(gu,{className:"w-4 h-4 mr-1"})," Add Lesson"]})]}),T.lessons.length?i.jsx(gy,{type:"multiple",className:"w-full",children:T.lessons.map(M=>i.jsxs(ts,{value:`lesson-${M.id}`,className:"border-b border-slate-100 last:border-0 px-2",children:[i.jsx(ns,{className:"hover:no-underline hover:bg-slate-50/50 px-4 rounded-lg my-1 py-3 group",children:i.jsxs("div",{className:"flex items-center justify-between w-full pr-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"text-sm font-semibold text-slate-400 w-6 text-left",children:M.sortOrder}),i.jsx("span",{className:`font-semibold ${M.isPublished?"text-slate-900":"text-slate-500"}`,children:M.title}),!M.isPublished&&i.jsx("span",{className:"px-2 py-0.5 text-[9px] font-black uppercase tracking-wider rounded-md bg-slate-100 text-slate-500",children:"Draft"})]}),i.jsx("div",{className:"flex items-center gap-4 text-sm text-slate-500 font-medium",children:i.jsxs("span",{children:[M.assets.length," asset",M.assets.length!==1?"s":""]})})]})}),i.jsx(rs,{className:"px-4 pb-4",children:i.jsxs("div",{className:"pl-9 pt-2",children:[M.summary&&i.jsx("p",{className:"text-sm text-slate-600 mb-4",children:M.summary}),i.jsxs("div",{className:"flex gap-2 mb-6",children:[i.jsxs(ee,{variant:"outline",size:"sm",className:"h-8 rounded-full text-xs",onClick:()=>b({open:!0,courseId:T.id,lesson:M}),children:[i.jsx(Kw,{className:"w-3 h-3 mr-1.5"})," Edit Lesson"]}),i.jsxs(ee,{variant:"outline",size:"sm",className:"h-8 rounded-full text-xs text-red-600 hover:bg-red-50",onClick:()=>E(M.id,M.title),disabled:s.isPending,children:[i.jsx(yu,{className:"w-3 h-3 mr-1.5"})," Delete"]})]}),i.jsxs("div",{className:"bg-slate-50 rounded-xl border border-slate-200 overflow-hidden",children:[i.jsxs("div",{className:"px-4 py-3 flex items-center justify-between border-b border-slate-200 bg-slate-100/50",children:[i.jsx("span",{className:"font-semibold text-sm text-slate-800",children:"Assets"}),i.jsxs(ee,{variant:"secondary",size:"sm",className:"h-7 text-xs rounded-full shadow-sm",onClick:()=>k({open:!0,lessonId:M.id}),children:[i.jsx(gu,{className:"w-3 h-3 mr-1"})," Add Asset"]})]}),i.jsx("div",{className:"divide-y divide-slate-100",children:M.assets.length?M.assets.map(P=>i.jsxs("div",{className:"p-4 flex items-center justify-between hover:bg-white transition-colors",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded bg-white border flex items-center justify-center shrink-0 shadow-sm",children:P.kind==="video"?i.jsx(kN,{className:"w-4 h-4 text-blue-500"}):i.jsx(h0,{className:"w-4 h-4 text-emerald-500"})}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-semibold text-slate-900 line-clamp-1",children:P.title}),i.jsxs("p",{className:"text-xs text-slate-500",children:[P.originalFilename," ⢠",P.kind==="video"?"MP4 Video":"Document"," ⢠",ECe(P.sizeBytes)," ⢠Order ",P.sortOrder]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("a",{href:P.downloadUrl,target:"_blank",rel:"noreferrer",className:"p-2 text-slate-400 hover:text-primary transition-colors",children:i.jsx(f0,{className:"w-4 h-4"})}),i.jsx("button",{onClick:()=>_(P.id,P.title),disabled:l.isPending,className:"p-2 text-slate-400 hover:text-red-600 transition-colors disabled:opacity-50",children:i.jsx(yu,{className:"w-4 h-4"})})]})]},P.id)):i.jsx("div",{className:"p-4 text-center text-xs text-slate-500",children:"No assets attached."})})]})]})})]},M.id))}):i.jsx("div",{className:"p-8 text-center text-sm text-slate-500",children:"No lessons in this course."})]})]},T.id))}):i.jsx(ze,{className:"border-dashed border-2 bg-slate-50/50 shadow-none",children:i.jsxs(Ve,{className:"py-24 flex flex-col items-center justify-center text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-white shadow-sm flex items-center justify-center mb-6",children:i.jsx(dae,{className:"w-8 h-8 text-primary/60"})}),i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2",children:"No courses yet"}),i.jsx("p",{className:"text-slate-500 mb-8 max-w-md",children:"Create your first training course to start organizing lessons and assets."}),i.jsx(ee,{onClick:()=>y({open:!0}),className:"rounded-full px-8 bg-slate-900 hover:bg-slate-800",children:"Create First Course"})]})}),i.jsx(TCe,{open:g.open,course:g.course,onClose:()=>y({open:!1})}
134),i.jsx(_Ce,{open:w.open,courseId:w.courseId,lesson:w.lesson,onClose:()=>b({open:!1,courseId:0})}),i.jsx(OCe,{open:N.open,lessonId:N.lessonId,onClose:()=>k({open:!1,lessonId:0})})]})}const tu="/".replace(/\/$/,""),Af=[{key:"safety",label:"Safety"},{key:"trust",label:"Trust"},{key:"vulnerability",label:"Vulnerability"},{key:"truth",label:"Truth"},{key:"ownership",label:"Youth Ownership"},{key:"belonging",label:"Belonging"},{key:"mentalHealth",label:"Mental Health"}],nu=["6th Grade","7th Grade","8th Grade","9th Grade","10th Grade","11th Grade","12th Grade"];function If(e){return e>=21?"text-green-600":e>=16?"text-blue-600":e>=11?"text-yellow-600":"text-red-600"}function qM(e){return e>=21?"Very Healthy":e>=16?"Healthy":e>=11?"Needs Attention":"Growth Needed"}function nx({label:e,score:t}){const n=(t-5)/20*100;return i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("p",{className:"text-sm text-slate-600 w-32 shrink-0",children:e}),i.jsx("div",{className:"flex-1",children:i.jsx(Sa,{value:Math.max(0,n),className:"h-2"})}),i.jsxs("span",{className:`text-sm font-semibold w-16 text-right ${If(t)}`,children:[t.toFixed(1),"/25"]})]})}function J1(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function HM(e,t){const n=new Date(`${e}T12:00:00`);return n.setDate(n.getDate()+t),`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")}`}function GM(e){return`${e%12===0?12:e%12}${e<12?"am":"pm"}`}function rx(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function MCe(){const[,e]=et(),[t,n]=v.useState(""),[r,a]=v.useState(""),[s,l]=v.useState(),[u,d]=v.useState("overview"),[f,m]=v.useState(30),[p,g]=v.useState("range"),[y,w]=v.useState(J1),[b,N]=v.useState(1),[k,C]=v.useState(""),[A,E]=v.useState(""),[_,T]=v.useState(),[M,P]=v.useState(!1),{data:D}=bt({queryKey:["admin-stats"],queryFn:()=>Pee()}),{data:U}=bt({queryKey:["admin-ministries"],queryFn:()=>Ree()}),{data:L}=bt({queryKey:["admin-assessments"],queryFn:()=>$ee(),enabled:u==="wellbeing"}),{data:$,isLoading:G,isError:H}=bt({queryKey:["admin-training-analytics"],queryFn:()=>gte(),enabled:u==="overview"}),V=ur(),[B,K]=v.useState(null),Q=$t({mutationFn:F=>Iee(F),onSuccess:(F,xe)=>{V.invalidateQueries({queryKey:["admin-ministries"]}),V.invalidateQueries({queryKey:["admin-stats"]}),V.invalidateQueries({queryKey:["admin-responses"]}),V.invalidateQueries({queryKey:["admin-individual-responses"]}),s===xe&&l(void 0),_===xe&&T(void 0)},onError:()=>{window.alert("Could not delete this ministry. Please try again.")}}),ce=(F,xe)=>{window.confirm(`Delete "${xe}"? This permanently removes the ministry and all of its survey responses. This cannot be undone.`)&&(K(F),Q.mutate(F,{onSettled:()=>K(null)}))},{data:I}=bt({queryKey:["admin-responses",t,r,s],queryFn:()=>Fee({gender:t||void 0,grade:r||void 0,ministryId:s})}),{data:J,isLoading:fe}=bt({queryKey:["admin-individual-responses",b,k,A,_],queryFn:async()=>{const F=new URLSearchParams({page:String(b),limit:"50"});return k&&F.set("gender",k),A&&F.set("grade",A),_&&F.set("ministryId",String(_)),(await fetch(`${tu}/api/admin/individual-responses?${F.toString()}`,{credentials:"include"})).json()},enabled:u==="responses"}),{data:ue,isLoading:ve}=bt({queryKey:["admin-suggestions"],queryFn:async()=>(await fetch(`${tu}/api/admin/suggestions`,{credentials:"include"})).json(),enabled:u==="suggestions"}),{data:Se,isLoading:Ne}=bt({queryKey:["admin-traffic",f],queryFn:async()=>{const F=await fetch(`${tu}/api/admin/traffic?days=${f}`,{credentials:"include"});if(!F.ok)throw new Error("Failed to load traffic");return F.json()},enabled:u==="traffic"&&p==="range"}),{data:ge}=bt({queryKey:["admin-relay-health"],queryFn:async()=>{const F=await fetch(`${tu}/api/admin/relay-health`,{credentials:"include"});if(!F.ok)throw new Error("Failed to load relay health");return F.json()},enabled:u==="traffic",refetchInterval:6e4}),{data:ke,isLoading:le}=bt({queryKey:["admin-traffic-day",y],queryFn:async()=>{const F=await fetch(`${tu}/api/admin/traffic/day?date=${y}`,{credentials:"include"});if(!F.ok)throw new Error("Failed to load daily traffic");return F.json()},enabled:u==="traffic"&&p==="daily"});Object.keys(I?.byGender||{}),Object.keys(I?.byGrade||{}).sort((F,xe)=>nu.indexOf(F)-nu.indexOf(xe));const we=async()=>{P(!0);try{const xe=await(await fetch(`${tu}/api/admin/export.csv`,{credentials:"include"})).blob(),je=URL.createObjectURL(xe),He=document.createElement("a");He.href=je,He.download=`survey-responses-${Date.now()}.csv`,He.click(),URL.revokeObjectURL(je)}finally{P(!1)}},he=J?Math.ceil(J.total/J.pageSize):1,X=[{id:"overview",label:"Overview"},{id:"ministries",label:"Pastors"},{id:"demographics",label:"Demographics"},{id:"responses",label:"Responses"},{id:"wellbeing",label:"Leader Wellbeing"},{id:"suggestions",label:"Suggestions"},{id:"video-reviews",label:"Video Reviews"},{id:"training-content",label:"Training Content"},{id:"traffic",label:"Traffic"}
134];return i.jsxs("div",{className:"min-h-screen bg-slate-50",children:[i.jsx("header",{className:"bg-white border-b border-slate-200 sticky top-0 z-40",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"w-8 h-8"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-bold text-slate-900 text-sm leading-tight",children:"Reframe Youth"}),i.jsx("p",{className:"text-xs text-primary font-semibold leading-tight",children:"Master Dashboard"})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full gap-1.5",onClick:we,disabled:M,children:M?"Exportingâ¦":"Export CSV"}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>e("/"),children:"Back to Home"})]})]})}),i.jsxs("main",{className:"max-w-7xl mx-auto px-4 py-8 space-y-6",children:[i.jsx(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},children:i.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-4",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-primary",children:D?.totalMinistries??0}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Pastors"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:D?.totalResponses??0}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Responses"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:D?.averageScores?.total?.toFixed(0)??"â"}),i.jsxs("p",{className:"text-sm text-slate-600 mt-1",children:["Avg Total ",i.jsx("span",{className:"text-slate-400",children:"/ 175"})]})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:U?.filter(F=>F.researchConsent).length??0}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Research Consent"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsx(Ve,{className:"p-5 text-center",children:D&&D.totalResponses>0?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:`text-xl font-bold ${If(Math.round(D.averageScores.total/7))}`,children:qM(Math.round(D.averageScores.total/7))}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Platform Health"})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-xl font-bold text-slate-400",children:"No Data"}),i.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"Platform Health"})]})})})]})}),i.jsx("div",{className:"flex gap-1 bg-slate-100 p-1 rounded-xl w-fit flex-wrap",children:X.map(F=>i.jsx("button",{type:"button",onClick:()=>d(F.id),className:`px-4 py-2 rounded-lg text-sm font-semibold capitalize transition-all ${u===F.id?"bg-white text-slate-900 shadow-sm":"text-slate-500 hover:text-slate-700"}`,children:F.label},F.id))}),u==="overview"&&i.jsxs(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-4",children:[i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"Training Participation"}),i.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Assigned users and users who completed every published lesson"})]}),i.jsx(Ve,{className:"p-6",children:G?i.jsx("p",{className:"text-sm text-slate-500",children:"Loading training activityâ¦"}):H?i.jsx("p",{className:"text-sm font-medium text-red-600",children:"Training activity could not be loaded."}):$&&$.length>0?i.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:$.map(F=>i.jsxs("div",{className:"rounded-2xl border border-slate-200 p-5",children:[i.jsxs("div",{className:"flex items-start justify-between gap-4",children:[i.jsxs("div",{children:[i.jsx("h4",{className:"font-bold text-slate-900",children:F.title}),i.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:[F.publishedLessons," published lesson",F.publishedLessons===1?"":"s"]})]}),i.jsxs("div",{className:"text-right",children:[i.jsxs("p",{className:"text-3xl font-black text-primary",children:[F.completionRate,"%"]}),i.jsx("p",{className:"text-xs font-semibold text-slate-500",children:"completion rate"})]})]}),i.jsx("div",{className:"mt-5 h-2 overflow-hidden rounded-full bg-slate-100",children:i.jsx("div",{className:"h-full rounded-full bg-primary transition-all",style:{width:`${Math.min(100,Math.max(0,F.completionRate))}%`}})}),i.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"rounded-xl bg-slate-50 px-4 py-3",children:[i.jsx("p",{className:"text-2xl font-bold text-slate-900",children:F.assignedUsers}),i.jsx("p",{className:"text-xs text-slate-500",children:"Users assigned"})]}),i.jsxs("div",{className:"rounded-xl bg-slate-50 px-4 py-3",children:[i.jsx("p",{className:"text-2xl font-bold text-slate-900",children:F.completedUsers}),i.jsx("p",{className:"text-xs text-slate-500",children:"Users completed"})]})]})]},F.courseId))}):i.jsx("p",{className:"text-sm text-slate-500",children:"No published trainings yet."})})]}),i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"Platform-Wide Section Averages"}),i.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"All ministries, all responses"})]}),i.jsx(Ve,{className:"p-6 space-y-3",children:Af.map(({key:F,label:xe})=>i.jsx(nx,{label:xe,score:D?.averageScores?.[F]??0},F))})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-3 text-xs text-slate-500",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"w-3 h-3 rounded-full bg-green-500 inline-block"}),"21â25 = Very Healthy"]}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"w-3 h-3 rounded-full bg-blue-500 inline-block"}),"16â20 = Healthy"]}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"w-3 h-3 rounded-full bg-yellow-500 inline-block"}),"11â15 = Needs Attention"]}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"w-3 h-3 rounded-full bg-red-500 inline-block"}),"5â10 = Significant Growth Needed"]})]})]}),u==="ministries"&&i.jsx(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-3",children:U&&U.length>0?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"text-sm text-slate-500",children:[U.length," registered pastor",U.length!==1?"s":""]}),U.map(F=>i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5",children:[i.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:F.ministryName}),F.researchConsent?i.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-0.5 rounded-full font-medium",children:"Research Consent â"}):i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-0.5 rounded-full font-medium",children:"No Research Consent"})]}),i.jsxs("p",{className:"text-sm text-slate-600 mt-0.5",children:[i.jsx("span",{className:"font-medium",children:F.pastorName})," · ",F.churchName,(F.city||F.state)&&` · ${[F.city,F.state].filter(Boolean).join(", ")}`]}),i.jsxs("div",{className:"flex flex-wrap gap-4 mt-2 text-xs text-slate-500",children:[i.jsxs("span",{children:["Survey code: ",i.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded font-mono",children:F.surveyCode})]}),i.jsxs("span",{children:["Registered: ",rx(F.createdAt)]}),i.jsxs("span",{className:"font-semibold text-primary",children:[F.responseCount," response",F.responseCount!==1?"s":""]})]})]}),i.jsxs("div",{className:"flex items-start gap-4 shrink-0",children:[F.responseCount>0&&i.jsxs("div",{className:"text-right",children:[i.jsx("p",{className:"text-2xl font-bold text-slate-900",children:F.averageScores.total.toFixed(0)}),i.jsx("p",{className:"text-xs text-slate-500",children:"/ 175"}),i.jsx("p",{className:`text-xs font-semibold mt-0.5 ${If(Math.round(F.averageScores.total/7))}`,children:qM(Math.round(F.averageScores.total/7))})]}),i.jsx(ee,{variant:"ghost",size:"sm",className:"rounded-full text-slate-400 hover:text-red-600 hover:bg-red-50",onClick:()=>ce(F.id,F.ministryName),disabled:B===F.id,children:B===F.id?"Deletingâ¦":"Delete"})]})]}),F.responseCount>0&&i.jsx("div",{className:"mt-4 pt-4 border-t border-slate-100 grid grid-cols-2 sm:grid-cols-4 gap-2",children:Af.map(({key:xe,label:je})=>i.jsxs("div",{className:"text-center",children:[i.jsx("p",{className:`text-sm font-bold ${If(F.averageScores[xe])}`,children:F.averageScores[xe].toFixed(1)}),i.jsx("p",{className:"text-xs text-slate-500",children:je})]},xe))})]})},F.id))]}):i.jsx("div",{className:"text-center py-16 text-slate-500",children:"No pastors registered yet."})}),u==="demographics"&&i.jsxs(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-5",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-4",children:[i.jsx("p",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wide mb-3",children:"Filters"}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsx("span",{className:"text-xs text-slate-400 self-center",children:"Gender:"}),["","Male","Female","Prefer not to say"].map(F=>i.jsx("button",{type:"button",onClick:()=>n(F),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${t===F?"bg-primary text-white border-primary":"bg-white text-slate-600 border-slate-200 hover:border-primary/40"}`,children:F||"All"},F||"all")),i.jsx("span",{className:"text-xs text-slate-400 self-center ml-2",children:"Grade:"}),["",...nu].map(F=>i.jsx("button",{type:"button",onClick:()=>a(F),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${r===F?"bg-slate-800 text-white border-slate-800":"bg-white text-slate-600 border-slate-200 hover:border-slate-400"}`,children:F||"All"},F||"all-grade")),i.jsx("span",{className:"text-xs text-slate-400 self-center ml-2",children:"Ministry:"}),i.jsx("button",{type:"button",onClick:()=>l(void 0),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${s?"bg-white text-slate-600 border-slate-200 hover:border-slate-400":"bg-slate-600 text-white border-slate-600"}`,children:"All"}),U?.map(F=>i.jsx("button",{type:"button",onClick:()=>l(F.id===s?void 0:F.id),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${s===F.id?"bg-slate-600 text-white border-slate-600":"bg-white text-slate-600 border-slate-200 hover:border-slate-400"}`,children:F.ministryName},F.id))]})]})}),I&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"text-sm text-slate-600 font-medium",children:["Showing ",i.jsx("span",{className:"font-bold text-slate-900",children:I.totalResponses})," response",I.totalResponses!==1?"s":"",(t||r||s)&&" (filtered)"]}),i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsx("div",{className:"px-6 py-4 border-b border-slate-100",children:i.jsx("h3",{className:"font-bold text-slate-900",children:"Section Averages (Filtered)"})}),i.jsx(Ve,{className:"p-6 space-y-3",children:Af.map(({key:F,label:xe})=>i.jsx(nx,{label:xe,score:I.averageScores[F]??0},F))})]}),Object.keys(I.byGender).length>1&&i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsx("div",{className:"px-6 py-4 border-b border-slate-100",children:i.jsx("h3",{className:"font-bold text-slate-900",children:"By Gender"})}),i.jsx(Ve,{className:"p-6",children:i.jsx("div",{className:"space-y-6",children:Object.entries(I.byGender).map(([F,xe])=>i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-slate-800 text-sm mb-3",children:F}),i.jsx("div",{className:"space-y-2",children:Af.map(({key:je,label:He})=>i.jsx(nx,{label:He,score:xe[je]??0},je))})]},F))})})]}),Object.keys(I.byGrade).length>1&&i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsx("div",{className:"px-6 py-4 border-b border-slate-100",children:i.jsx("h3",{className:"font-bold text-slate-900",children:"By Grade"})}),i.jsx(Ve,{className:"p-6",children:i.jsx("div",{className:"space-y-6",children:Object.entries(I.byGrade).sort((F,xe)=>nu.indexOf(F[0])-nu.indexOf(xe[0])).map(([F,xe])=>i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-slate-800 text-sm mb-3",children:F}),i.jsx("div",{className:"space-y-2",children:Af.map(({key:je,label:He})=>i.jsx(nx,{label:He,score:xe[je]??0},je))})]},F))})})]})]})]}),u==="responses"&&i.jsxs(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-4",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-4",children:[i.jsx("p",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wide mb-3",children:"Filters"}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsx("span",{className:"text-xs text-slate-400 self-center",children:"Gender:"}),["","Male","Female","Prefer not to say"].map(F=>i.jsx("button",{type:"button",onClick:()=>{C(F),N(1)},className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${k===F?"bg-primary text-white border-primary":"bg-white text-slate-600 border-slate-200 hover:border-primary/40"}`,children:F||"All"},F||"all")),i.jsx("span",{className:"text-xs text-slate-400 self-center ml-2",children:"Grade:"}),["",...nu].map(F=>i.jsx("button",{type:"button",onClick:()=>{E(F),N(1)},className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${A===F?"bg-slate-800 text-white border-slate-800":"bg-white text-slate-600 border-slate-200 hover:border-slate-400"}`,children:F||"All"},F||"all-grade")),i.jsx("span",{className:"text-xs text-slate-400 self-center ml-2",children:"Ministry:"}),i.jsx("button",{type:"button",onClick:()=>{T(void 0),N(1)},className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${_?"bg-white text-slate-600 border-slate-200":"bg-slate-600 text-white border-slate-600"}`,children:"All"}),U?.map(F=>i.jsx("button",{type:"button",onClick:()=>{T(F.id===_?void 0:F.id),N(1)},className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${_===F.id?"bg-slate-600 text-white border-slate-600":"bg-white text-slate-600 border-slate-200"}`,children:F.ministryName},F.id))]})]})}),fe?i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Loading responsesâ¦"}):J&&J.data.length>0?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("p",{className:"text-sm text-slate-600",children:[i.jsx("span",{className:"font-bold text-slate-900",children:J.total})," total responses",(k||A||_)&&" (filtered)"," · ","page ",J.page," of ",he]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",disabled:b<=1,onClick:()=>N(F=>F-1),children:"â Prev"}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",disabled:b>=he,onClick:()=>N(F=>F+1),children:"Next â"})]})]}),i.jsx("div",{className:"overflow-x-auto rounded-2xl border border-slate-200 shadow-sm",children:i.jsxs("table",{className:"w-full text-sm",children:[i.jsx("thead",{className:"bg-slate-50 border-b border-slate-200",children:i.jsxs("tr",{children:[i.jsx("th",{className:"px-4 py-3 text-left font-semibold text-slate-600 text-xs",children:"#"}),i.jsx("th",{className:"px-4 py-3 text-left font-semibold text-slate-600 text-xs",children:"Ministry"}),i.jsx("th",{className:"px-4 py-3 text-left font-semibold text-slate-600 text-xs",children:"Gender"}),i.jsx("th",{className:"px-4 py-3 text-left font-semibold text-slate-600 text-xs",children:"Grade"}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Safety"}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Trust"}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Vuln."}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Truth"}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Own."}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Belong."}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"M.Health"}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-900 text-xs",children:"Total"}),i.jsx("th",{className:"px-4 py-3 text-right font-semibold text-slate-600 text-xs",children:"Date"})]})}),i.jsx("tbody",{className:"divide-y divide-slate-100 bg-white",children:J.data.map(F=>i.jsxs("tr",{className:"hover:bg-slate-50 transition-colors",children:[i.jsx("td",{className:"px-4 py-3 text-slate-400 text-xs",children:F.id}),i.jsxs("td",{className:"px-4 py-3",children:[i.jsx("p",{className:"font-medium text-slate-900 text-xs leading-tight",children:F.ministryName}),i.jsx("p",{className:"text-slate-400 text-xs",children:F.churchName})]}),i.jsx("td",{className:"px-4 py-3 text-slate-700 text-xs",children:F.gender}),i.jsx("td",{className:"px-4 py-3 text-slate-700 text-xs whitespace-nowrap",children:F.grade}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.safetyScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.trustScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.vulnerabilityScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.truthScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.ownershipScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.belongingScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs font-mono",children:F.mentalHealthScore}),i.jsx("td",{className:`px-4 py-3 text-right text-xs font-bold ${If(Math.round(F.totalScore/7))}`,children:F.totalScore}),i.jsx("td",{className:"px-4 py-3 text-right text-xs text-slate-400 whitespace-nowrap",children:rx(F.createdAt)})]},F.id))})]})}),i.jsxs("div",{className:"flex justify-center gap-2 pt-2",children:[i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",disabled:b<=1,onClick:()=>N(F=>F-1),children:"â Prev"}),i.jsxs("span",{className:"text-xs text-slate-500 self-center",children:["Page ",b," of ",he]}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",disabled:b>=he,onClick:()=>N(F=>F+1),children:"Next â"})]})]}):i.jsx("div",{className:"text-center py-16 text-slate-500",children:"No responses found."})]}),u==="wellbeing"&&i.jsx(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-6",children:L?L.total===0?i.jsx("div",{className:"text-center py-16 text-slate-500",children:"No leader self-assessments submitted yet."}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[i.jsx("p",{className:"text-sm text-slate-500 mb-1",children:"Anonymous leader self-assessments"}),i.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[L.total," submission",L.total!==1?"s":""]}),i.jsx("p",{className:"text-xs text-slate-400 mt-2",children:"These results are anonymous by design: no leader identity is stored. Figures below are aggregates only."})]}),i.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[{key:"gad2",label:"Anxiety (GAD-7)",value:L.averages.gad2,max:21},{key:"phq9",label:"Depression (PHQ-9)",value:L.averages.phq9,max:27},{key:"ace",label:"ACE Score",value:L.averages.ace,max:10},{key:"desb",label:"Distress (DESB)",value:L.averages.desb,max:4}].map(F=>i.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-4",children:[i.jsx("p",{className:"text-xs text-slate-500",children:F.label}),i.jsxs("p",{className:"text-xl font-bold text-slate-900 mt-1",children:[F.value,i.jsxs("span",{className:"text-sm font-normal text-slate-400",children:[" / ",F.max," avg"]})]})]},F.key))}),i.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[{key:"gad2",label:"Anxiety (GAD-7)",order:["Minimal","Mild","Moderate","Severe"]},{key:"phq9",label:"Depression (PHQ-9)",order:["Minimal","Mild","Moderate","Moderately Severe","Severe"]},{key:"ace",label:"ACE Score",order:["Low","Moderate","High"]},{key:"desb",label:"Distress (DESB)",order:["None","Mild","Moderate","Severe","Extreme"]}].map(F=>{const xe=L.severity[F.key];return i.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[i.jsx("p",{className:"font-semibold text-slate-900 mb-3",children:F.label}),i.jsx("div",{className:"space-y-2",children:F.order.map(je=>{const He=xe[je]??0,Qe=L.total>0?Math.round(He/L.total*100):0;return i.jsxs("div",{children:[i.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[i.jsx("span",{className:"text-slate-600",children:je}),i.jsxs("span",{className:"text-slate-500",children:[He," (",Qe,"%)"]})]}),i.jsx(Sa,{value:Qe,className:"h-2"})]},je)})})]},F.key)})}),i.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5",children:[i.jsx("p",{className:"font-semibold text-slate-900 mb-4",children:"By Role"}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full text-sm",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"text-left text-slate-500 border-b border-slate-200",children:[i.jsx("th",{className:"pb-2 pr-4 font-medium",children:"Role"}),i.jsx("th",{className:"pb-2 pr-4 font-medium text-right",children:"Count"}),i.jsx("th",{className:"pb-2 pr-4 font-medium text-right",children:"GAD-7"}),i.jsx("th",{className:"pb-2 pr-4 font-medium text-right",children:"PHQ-9"}),i.jsx("th",{className:"pb-2 pr-4 font-medium text-right",children:"ACE"}),i.jsx("th",{className:"pb-2 font-medium text-right",children:"DESB"})]})}),i.jsx("tbody",{children:L.byRole.map(F=>i.jsxs("tr",{className:"border-b border-slate-100 last:border-0",children:[i.jsx("td",{className:"py-2 pr-4 text-slate-900",children:F.label}),i.jsx("td",{className:"py-2 pr-4 text-right text-slate-700",children:F.count}),i.jsx("td",{className:"py-2 pr-4 text-right text-slate-700",children:F.averages.gad2}),i.jsx("td",{className:"py-2 pr-4 text-right text-slate-700",children:F.averages.phq9}),i.jsx("td",{className:"py-2 pr-4 text-right text-slate-700",children:F.averages.ace}),i.jsx("td",{className:"py-2 text-right text-slate-700",children:F.averages.desb})]},F.role))})]})})]})]}):i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Loading leader wellbeingâ¦"})}),u==="suggestions"&&i.jsx(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-3",children:ve?i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Loading suggestionsâ¦"}):ue&&ue.length>0?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"text-sm text-slate-500",children:[ue.length," suggestion",ue.length!==1?"s":""]}),[...ue].sort((F,xe)=>xe.upvotes-xe.downvotes-(F.upvotes-F.downvotes)).map(F=>{const xe=F.upvotes-F.downvotes;return i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsx(Ve,{className:"p-5",children:i.jsxs("div",{className:"flex gap-4 items-start",children:[i.jsxs("div",{className:"shrink-0 text-center w-12",children:[i.jsxs("p",{className:`text-xl font-bold ${xe>0?"text-green-600":xe<0?"text-red-500":"text-slate-400"}`,children:[xe>0?"+":"",xe]}),i.jsx("p",{className:"text-xs text-slate-400",children:"net"})]}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-slate-900 leading-relaxed",children:F.content}),i.jsxs("div",{className:"flex flex-wrap gap-4 mt-2 text-xs text-slate-400",children:[F.authorName&&i.jsxs("span",{children:["by ",F.authorName]}),i.jsx("span",{children:rx(F.createdAt)}),i.jsxs("span",{className:"text-green-600",children:["â² ",F.upvotes]}),i.jsxs("span",{className:"text-red-400",children:["â¼ ",F.downvotes]})]})]})]})})},F.id)})]}):i.jsx("div",{className:"text-center py-16 text-slate-500",children:"No suggestions yet."})}),u==="video-reviews"&&i.jsx(be.div,{initial:{opacity:0}
134,animate:{opacity:1},className:"space-y-4",children:i.jsx(fke,{})}),u==="training-content"&&i.jsx(be.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-4",children:i.jsx(PCe,{})}),u==="traffic"&&i.jsxs(be.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-4",children:[ge&&(()=>{const{sent:F,dropped:xe,pageViews:je}=ge,He=je>=20&&F<je*.5,Qe=xe>0||He;return i.jsxs("div",{className:`flex items-center gap-2 rounded-lg border px-4 py-2.5 text-sm ${Qe?"border-red-200 bg-red-50 text-red-800":"border-emerald-200 bg-emerald-50 text-emerald-800"}`,"data-testid":"relay-health",children:[i.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${Qe?"bg-red-500":"bg-emerald-500"}`}),i.jsxs("span",{children:["Shopify events today: ",i.jsx("strong",{children:F.toLocaleString()})," sent,"," ",i.jsx("strong",{children:xe.toLocaleString()})," dropped",He&&i.jsxs(i.Fragment,{children:[" â well below today's ",je.toLocaleString()," page views; events may be getting lost"]}),!He&&xe>0&&i.jsx(i.Fragment,{children:" â check the analytics relay"})]})]})})(),i.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[i.jsx("p",{className:"text-sm text-slate-500",children:"Page views recorded by this site, using the same visitor IDs Shopify uses. Compare against Shopify Analytics for the same date range."}),i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("div",{className:"flex gap-1 bg-slate-100 p-1 rounded-lg",children:["range","daily"].map(F=>i.jsx("button",{type:"button",onClick:()=>g(F),className:`px-3 py-1.5 rounded-md text-xs font-semibold capitalize transition-all ${p===F?"bg-white text-slate-900 shadow-sm":"text-slate-500 hover:text-slate-700"}`,children:F==="range"?"Trends":"Day by Day"},F))}),p==="range"?i.jsx("div",{className:"flex gap-1 bg-slate-100 p-1 rounded-lg",children:[7,30,90].map(F=>i.jsxs("button",{type:"button",onClick:()=>m(F),className:`px-3 py-1.5 rounded-md text-xs font-semibold transition-all ${f===F?"bg-white text-slate-900 shadow-sm":"text-slate-500 hover:text-slate-700"}`,children:[F," days"]},F))}):i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full px-3",onClick:()=>w(HM(y,-1)),children:"â"}),i.jsx("input",{type:"date",value:y,max:J1(),onChange:F=>F.target.value&&w(F.target.value),className:"border border-slate-200 rounded-lg px-3 py-1.5 text-sm text-slate-700 bg-white"}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full px-3",disabled:y>=J1(),onClick:()=>w(HM(y,1)),children:"â"})]})]})]}),p==="daily"?le?i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Loading daily trafficâ¦"}):ke?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-primary",children:ke.totals.pageViews.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Page Views"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:ke.totals.visitors.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Unique Visitors"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:ke.totals.sessions.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Sessions"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:ke.totals.untracked.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Views w/o Visitor ID"})]})})]}),i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"Hourly Page Views"}),i.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:[rx(`${ke.date}T12:00:00`)," (Eastern time)"]})]}),i.jsx(Ve,{className:"p-6",children:ke.totals.pageViews===0?i.jsx("p",{className:"text-center text-slate-500 py-8",children:"No page views recorded on this day."}):i.jsx("div",{className:"h-64",children:i.jsx(Y3,{width:"100%",height:"100%",children:i.jsxs(cM,{data:ke.hourly,children:[i.jsx(L2,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),i.jsx(z2,{dataKey:"hour",tick:{fontSize:11}
134,tickFormatter:F=>GM(F),interval:2}),i.jsx(q2,{tick:{fontSize:11},allowDecimals:!1}),i.jsx(oP,{labelFormatter:F=>GM(Number(F))}),i.jsx(B2,{dataKey:"pageViews",name:"Page views",fill:"#d82435",radius:[3,3,0,0]})]})})})})]}),i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsx("div",{className:"px-6 py-4 border-b border-slate-100",children:i.jsx("h3",{className:"font-bold text-slate-900",children:"Top Pages That Day"})}),i.jsx(Ve,{className:"p-0",children:ke.topPages.length===0?i.jsx("p",{className:"text-center text-slate-500 py-8",children:"Nothing here yet."}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full text-sm",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"text-left text-xs text-slate-400 border-b border-slate-100",children:[i.jsx("th",{className:"px-6 py-3 font-semibold",children:"Page"}),i.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:"Views"}),i.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:"Visitors"})]})}),i.jsx("tbody",{children:ke.topPages.map(F=>i.jsxs("tr",{className:"border-b border-slate-50",children:[i.jsx("td",{className:"px-6 py-3 font-mono text-xs text-slate-700",children:F.path}),i.jsx("td",{className:"px-6 py-3 text-right font-semibold text-slate-900",children:F.pageViews.toLocaleString()}),i.jsx("td",{className:"px-6 py-3 text-right text-slate-600",children:F.visitors.toLocaleString()})]},F.path))})]})})})]})]}):i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Could not load daily traffic."}):Ne?i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Loading trafficâ¦"}):Se?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-primary",children:Se.totals.pageViews.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Page Views"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:Se.totals.visitors.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Unique Visitors"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:Se.totals.sessions.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Sessions"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:Se.totals.untracked.toLocaleString()}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Views w/o Visitor ID"})]})})]}),i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"Daily Page Views"}),i.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Last ",Se.days," days (Eastern time)"]})]}),i.jsx(Ve,{className:"p-6",children:Se.daily.length===0?i.jsx("p",{className:"text-center text-slate-500 py-8",children:"No page views recorded yet. Data starts collecting once the site is republished."}):i.jsx("div",{className:"h-64",children:i.jsx(Y3,{width:"100%",height:"100%",children:i.jsxs(cM,{data:Se.daily,children:[i.jsx(L2,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),i.jsx(z2,{dataKey:"day",tick:{fontSize:11},tickFormatter:F=>F.slice(5)}),i.jsx(q2,{tick:{fontSize:11},allowDecimals:!1}),i.jsx(oP,{}),i.jsx(B2,{dataKey:"pageViews",name:"Page views",fill:"#d82435",radius:[3,3,0,0]})]})})})})]}),i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsx("div",{className:"px-6 py-4 border-b border-slate-100",children:i.jsx("h3",{className:"font-bold text-slate-900",children:"Top Pages"})}),i.jsx(Ve,{className:"p-0",children:Se.topPages.length===0?i.jsx("p",{className:"text-center text-slate-500 py-8",children:"Nothing here yet."}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full text-sm",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"text-left text-xs text-slate-400 border-b border-slate-100",children:[i.jsx("th",{className:"px-6 py-3 font-semibold",children:"Page"}),i.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:"Views"}),i.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:"Visitors"})]})}),i.jsx("tbody",{children:Se.topPages.map(F=>i.jsxs("tr",{className:"border-b border-slate-50",children:[i.jsx("td",{className:"px-6 py-3 font-mono text-xs text-slate-700",children:F.path}),i.jsx("td",{className:"px-6 py-3 text-right font-semibold text-slate-900",children:F.pageViews.toLocaleStr
134ing()}),i.jsx("td",{className:"px-6 py-3 text-right text-slate-600",children:F.visitors.toLocaleString()})]},F.path))})]})})})]})]}):i.jsx("div",{className:"py-16 text-center text-slate-500",children:"Could not load traffic data."})]})]})]})}function RCe(){const[,e]=et(),[t,n]=v.useState(""),r=$t({mutationFn:()=>Vee({code:t}),onSuccess:()=>{OI.invalidateQueries({queryKey:["ministry"]}),e("/admin")}});return i.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center px-4",children:i.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-sm",children:[i.jsxs("div",{className:"text-center mb-8",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"w-12 h-12 mx-auto mb-4"}),i.jsx("h1",{className:"text-2xl font-bold text-slate-900",children:"Admin Access"}),i.jsx("p",{className:"text-slate-600 mt-2 text-sm",children:"Enter the Reframe admin code to access the admin dashboard."})]}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-6 space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:"Admin Code"}),i.jsx("input",{type:"password",value:t,onChange:a=>n(a.target.value),placeholder:"Enter admin code",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-slate-50 text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"})]}),r.isError&&i.jsx("p",{className:"text-sm text-red-600",children:"Invalid code. Please try again."}),i.jsx(ee,{size:"lg",className:"w-full rounded-full",disabled:!t.trim()||r.isPending,onClick:()=>r.mutate(),children:r.isPending?"Verifying...":"Access Admin"})]})}),i.jsx("p",{className:"text-center mt-4",children:i.jsx("button",{type:"button",className:"text-sm text-slate-500 hover:text-slate-700",onClick:()=>e("/"),children:"â Back to home"})})]})})}const Kg="/".replace(/\/$/,"");function DCe({amount:e}){const[t,n]=z.useState(!1),r=async()=>{n(!0);try{const a=window.location.origin+Kg,l=await(await fetch(`${Kg}/api/stripe/tip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:e,successUrl:`${a}/first-aid-kit?tip=thanks`,cancelUrl:`${a}/first-aid-kit`})})).json();l.url&&(window.location.href=l.url)}catch{n(!1)}};return i.jsx("button",{type:"button",onClick:r,disabled:t,className:"min-w-[72px] px-6 py-3 rounded-full border-2 border-primary/30 text-primary font-bold text-base bg-white hover:bg-primary hover:text-white hover:border-primary transition-all disabled:opacity-50",children:t?"â¦":`$${e}`})}function ICe(){const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=v.useState(""),[a,s]=v.useState(!1),l=()=>e("/assessment"),u=()=>e(t?"/dashboard":"/sign-up"),d=()=>e("/sign-in"),f=async()=>{const m=parseFloat(n);if(!(!m||m<1)){s(!0);try{const p=window.location.origin+Kg,y=await(await fetch(`${Kg}/api/stripe/tip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:String(Math.round(m)),successUrl:`${p}/first-aid-kit?tip=thanks`,cancelUrl:`${p}/first-aid-kit`})})).json();y.url&&(window.location.href=y.url)}catch{s(!1)}}};return i.jsxs("div",{className:"min-h-screen bg-white text-slate-900 font-sans",children:[i.jsx("nav",{className:"sticky top-0 z-50 bg-white/90 backdrop-blur-md border-b border-slate-100 h-16 flex items-center px-6",children:i.jsxs("div",{className:"max-w-6xl mx-auto w-full flex items-center justify-between",children:[i.jsx("button",{onClick:()=>e("/"),className:"flex items-center gap-0 select-none",children:i.jsx("img",{src:"/reframe-logo.png",alt:"reframe",className:"h-8"})}),i.jsxs("div",{className:"hidden sm:flex items-center gap-6",children:[i.jsx("a",{href:"#tools",className:"text-sm font-medium text-slate-500 hover:text-slate-900 transition-colors",children:"Tools"}),i.jsx("a",{href:"#how-it-works",className:"text-sm font-medium text-slate-500 hover:text-slate-900 transition-colors",children:"How It Works"}),i.jsx(Be,{href:"/shop",className:"text-sm font-medium text-slate-500 hover:text-slate-900 transition-colors",children:"Shop Curriculum"}),t?i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>
134e("/dashboard"),children:"My Dashboard"}):i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:d,children:"Leader Login"})]})]})}),i.jsxs(be.section,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-4xl mx-auto px-6 pt-24 pb-20 text-center",children:[i.jsxs("div",{className:"inline-flex items-center gap-2 bg-red-50 border border-red-200 rounded-full px-4 py-1.5 mb-10",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary inline-block"}),i.jsx("span",{className:"text-xs font-bold text-primary tracking-wide uppercase",children:"Free for every youth leader"})]}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-balance mb-7",children:["You pour into",i.jsx("br",{}),i.jsx("span",{className:"text-primary",children:"everyone else."})]}),i.jsx("p",{className:"text-xl text-slate-500 leading-relaxed max-w-2xl mx-auto mb-12",children:"Two free tools built for youth workers: a private mental health self-assessment and an anonymous student survey, so you can care for yourself and understand your ministry."}),i.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[i.jsx(ee,{size:"lg",className:"rounded-full px-10 py-6 text-lg font-bold shadow-lg shadow-primary/30",onClick:l,children:"Begin Free Assessment â"}),i.jsx(ee,{variant:"outline",size:"lg",className:"rounded-full px-8 py-6 text-lg font-semibold border-slate-300",onClick:u,children:"Get Student Survey QR Code"})]}),i.jsx("p",{className:"mt-8 text-sm text-slate-400 font-medium",children:"100% private · No data sold · Built with Reframe Youth"})]}),i.jsx("section",{className:"bg-slate-50 border-y border-slate-100 py-14 px-6",children:i.jsx("div",{className:"max-w-4xl mx-auto grid grid-cols-1 sm:grid-cols-2 gap-5",children:[{icon:"ð§ ",label:"Leader Self-Assessment",desc:"GAD-7 · PHQ-9 · ACE · DES-B"},{icon:"ð",label:"Ministry Health Survey",desc:"35 questions · 7 dimensions · Anonymous"}].map(m=>i.jsxs("div",{className:"bg-white rounded-2xl px-7 py-6 border border-slate-200 shadow-sm flex items-center gap-5",children:[i.jsx("span",{className:"text-4xl",children:m.icon}),i.jsxs("div",{children:[i.jsx("div",{className:"font-bold text-base mb-1",children:m.label}),i.jsx("div",{className:"text-sm text-slate-500",children:m.desc})]})]},m.label))})}),i.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-24 text-center",children:[i.jsx("p",{className:"text-xs font-bold tracking-widest text-primary uppercase mb-5",children:"The Problem"}),i.jsxs("h2",{className:"text-4xl sm:text-5xl font-black tracking-tight leading-tight mb-7",children:["Most youth leaders are running",i.jsx("br",{className:"hidden sm:block"}),"on empty, and don't know it."]}),i.jsx("p",{className:"text-lg text-slate-500 leading-relaxed max-w-2xl mx-auto mb-16",children:`You're the one in the room who asks everyone else, "How are you really doing?" But when's the last time you asked yourself that question, and had a tool that could give you an honest answer?`}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{stat:"59%",label:"of youth leaders report symptoms of burnout",bg:"bg-red-50",border:"border-red-200",statColor:"text-primary"},{stat:"1 in 3",label:"students feel disconnected from their youth group",bg:"bg-orange-50",border:"border-orange-200",statColor:"text-orange-600"},{stat:"72%",label:"youth workers have no regular mental health check-in",bg:"bg-green-50",border:"border-green-200",statColor:"text-green-700"}].map(m=>i.jsxs("div",{className:`${m.bg} border ${m.border} rounded-2xl px-6 py-10 text-center`,children:[i.jsx("div",{className:`text-5xl font-black mb-4 leading-none ${m.statColor}`,children:m.stat}),i.jsx("div",{className:"text-sm text-slate-600 leading-snug",children:m.label})]},m.stat))})]}),i.jsx("section",{className:"bg-slate-900 text-white py-24 px-6 text-center",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsx("p",{className:"text-xs font-bold tracking-widest text-slate-400 uppercase mb-5",children:"The Solution"}),i.jsxs("h2",{className:"text-4xl sm:text-5xl font-black tracking-tight leading-tight mb-6",children:["Two tools. One mission:",i.jsx("br",{}),i.jsx("span",{className:"text-rose-400",children:"Healthier leaders. Healthier ministries."})]}),i.jsxs("p",{className:"text-lg text-slate-400 leading-relaxed",children:["We built the Youth Leader First Aid Kit because we believe that before you can care for your students, you need someone in your corner caring for ",i.jsx("em",{children:"you"}),". These tools give you data, not just gut feelings."]})]})}),i.jsxs("section",{id:"tools",className:"max-w-6xl mx-auto px-6 py-24 space-y-28",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16 items-center",children:[i.jsxs("div",{children:[i.jsx("div",{className:"inline-flex items-center gap-2 bg-red-50 border border-red-200 rounded-full px-4 py-1.5 mb-6",children:i.jsx("span",{className:"text-xs font-bold text-primary tracking-wide uppercase",children:"Tool 1"})}),i.jsx("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight leading-tight mb-5",children:"Leader Self
134-Assessment"}),i.jsx("p",{className:"text-lg text-slate-500 leading-relaxed mb-7",children:"A private, clinical-grade mental health snapshot using four validated tools, in about 15 minutes. No account required. Results are shown only to you, never stored or shared."}),i.jsx("ul",{className:"space-y-3 mb-9",children:[["GAD-7","Generalized Anxiety Disorder Scale"],["PHQ-9","Patient Health Questionnaire for Depression"],["ACE","Adverse Childhood Experiences"],["DES-B","Dissociative Experiences Scale"]].map(([m,p])=>i.jsxs("li",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"bg-red-50 text-primary text-xs font-extrabold px-2.5 py-1 rounded-md min-w-[52px] text-center tracking-wide",children:m}),i.jsx("span",{className:"text-sm text-slate-500",children:p})]},m))}),i.jsx(ee,{size:"lg",className:"rounded-full px-10 shadow-lg shadow-primary/30",onClick:l,children:"Begin My Assessment â"})]}),i.jsxs("div",{className:"bg-slate-50 rounded-3xl p-8 border border-slate-200 shadow-xl shadow-slate-200/60",children:[i.jsx("div",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest mb-5",children:"Sample result"}),i.jsx("div",{className:"text-xl font-extrabold mb-3",children:"Anxiety (GAD-7)"}),i.jsxs("div",{className:"flex items-end gap-2 mb-4",children:[i.jsx("span",{className:"text-5xl font-black text-primary leading-none",children:"8"}),i.jsx("span",{className:"text-slate-400 mb-1",children:"/ 21"}),i.jsx("span",{className:"ml-2 mb-1 bg-yellow-100 text-yellow-800 text-xs font-bold px-2.5 py-1 rounded-full",children:"Mild"})]}),i.jsx("div",{className:"h-2 bg-slate-200 rounded-full mb-6 overflow-hidden",children:i.jsx("div",{className:"h-full w-[38%] bg-primary rounded-full"})}),i.jsx("div",{className:"text-sm text-slate-600 leading-relaxed bg-white rounded-2xl p-5 border border-slate-200",children:`"You're experiencing mild anxiety that's worth paying attention to. Consider talking to a trusted mentor or counselor about what you're carrying."`})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16 items-center",children:[i.jsxs("div",{className:"bg-slate-900 rounded-3xl p-9 shadow-2xl shadow-slate-900/20 order-last md:order-first",children:[i.jsx("div",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest mb-6",children:"Ministry Health Score"}),[["Safety",91,"green"],["Trust",84,"green"],["Belonging",79,"green"],["Vulnerability",68,"yellow"],["Youth Ownership",74,"yellow"]].map(([m,p,g])=>i.jsxs("div",{className:"mb-4",children:[i.jsxs("div",{className:"flex justify-between mb-1.5",children:[i.jsx("span",{className:"text-sm text-slate-300 font-medium",children:m}),i.jsxs("span",{className:"text-sm text-slate-500",children:[p,"%"]})]}),i.jsx("div",{className:"h-1.5 bg-slate-800 rounded-full",children:i.jsx("div",{className:`h-full rounded-full ${g==="green"?"bg-emerald-400":"bg-amber-400"}`,style:{width:`${p}%`}})})]},m)),i.jsxs("div",{className:"mt-6 bg-slate-800 rounded-xl p-4 text-sm text-slate-400 leading-snug",children:["ð ",i.jsx("strong",{className:"text-slate-200",children:"Focus area:"})," Vulnerability (68%). Students want a space where it's safe to be honest about struggles and doubts."]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"inline-flex items-center gap-2 bg-green-50 border border-green-200 rounded-full px-4 py-1.5 mb-6",children:i.jsx("span",{className:"text-xs font-bold text-green-700 tracking-wide uppercase",children:"Tool 2"})}),i.jsx("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight leading-tight mb-5",children:"Youth Ministry Health Survey"}),i.jsx("p",{className:"text-lg text-slate-500 leading-relaxed mb-7",children:"35 anonymous questions across 7 key dimensions of ministry health. Students scan a QR code, answer honestly, and you get a real picture of how your ministry is doing, beyond the surface."}),i.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2.5 mb-9",children:["Safety","Vulnerability","Trust","Mental Health","Belonging","Truth","Youth Ownership"].map(m=>i.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 shrink-0"}),m]},m))}),i.jsx(ee,{size:"lg",className:"rounded-full px-10 bg-green-600 hover:bg-green-700 shadow-lg shadow-green-600/30",onClick:u,children:"Get My Survey QR Code â"})]})]})]}),i.jsx("section",{id:"how-it-works",className:"bg-slate-50 border-y border-slate-100 py-24 px-6",children:i.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[i.jsx("p",{className:"text-xs font-bold tracking-widest text-primary uppercase mb-5",children:"How It Works"}),i.jsx("h2",{className:"text-4xl sm:text-5xl font-black tracking-tight leading-tight mb-16",children:"Two tools. Three steps. Ten minutes."}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-10",children:[{icon:"ð",step:"01",title:"Create your free account",desc:"Sign up as a pastor. Takes 60 seconds. We'll generate your unique ministry QR code automatically."},{icon:"ð",step:"02",title:"Take your self-assessment",desc:"Answer 34 questions across 4 clinical tools. Your results are private, never stored on our servers."},{icon:"ð±",step:"03",title:"Share your QR with students",desc:"Students scan the code, fill out the anonymous 35-question survey, and results appear on your dashboard instantly."}].map(m=>i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-white border border-slate-200 rounded-2xl flex items-center justify-center text-3xl mx-auto mb-5 shadow-sm",children:m.icon}),i.jsxs("div",{className:"text-xs font-extrabold text-primary uppercase tracking-widest mb-3",children:["Step ",m.step]}),i.jsx("h3",{className:"text-lg font-extrabold mb-3 tracking-tight",children:m.title}),i.jsx("p",{className:"text-sm text-slate-500 leading-relaxed",children:m.desc})]},m.step))})]})}),i.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-24 text-center",children:[i.jsx("p",{className:"text-xs font-bold tracking-widest text-green-600 uppercase mb-5",children:"The Result"}),i.jsxs("h2",{className:"text-4xl sm:text-5xl font-black tracking-tight leading-tight mb-6",children:["Know yourself. Know your ministry.",i.jsx("br",{className:"hidden sm:block"}),"Lead from a place of health."]}),i.jsx("p",{className:"text-lg text-slate-500 leading-relaxed max-w-2xl mx-auto mb-16",children:"When you know
134what you're carrying, you can carry it better. When your students feel heard, they show up differently. The First Aid Kit gives you the data to lead with confidence, not guesswork."}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 text-left",children:[{icon:"ð",title:"A pastor who knows what they're carrying",desc:"Clinical language for what you've been feeling but couldn't name."},{icon:"ð¯",title:"A ministry that listens to its students",desc:"7-dimension insight into what's working and where students need more."},{icon:"ð",title:"Data that drives better decisions",desc:"Track year-over-year trends. Share results with your church leadership."}].map(m=>i.jsxs("div",{className:"bg-white border border-slate-200 rounded-2xl p-7 shadow-sm",children:[i.jsx("span",{className:"text-3xl block mb-4",children:m.icon}),i.jsx("h3",{className:"font-extrabold text-base leading-snug mb-2.5 tracking-tight",children:m.title}),i.jsx("p",{className:"text-sm text-slate-500 leading-relaxed",children:m.desc})]},m.title))})]}),i.jsx("section",{className:"bg-primary py-24 px-6 text-center text-white",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsxs("h2",{className:"text-5xl sm:text-6xl font-black tracking-tight leading-[1.08] mb-6",children:["You can't pour from",i.jsx("br",{}),"an empty cup."]}),i.jsx("p",{className:"text-xl text-white/80 leading-relaxed mb-12",children:"Take 15 minutes. Check in on yourself. Then give your students a voice. Both are free. Both take less than a lunch break."}),i.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[i.jsx(ee,{size:"lg",className:"rounded-full px-10 py-6 text-lg font-extrabold bg-white text-primary hover:bg-white/95 shadow-xl shadow-black/20",onClick:l,children:"Begin My Assessment â"}),i.jsx(ee,{variant:"outline",size:"lg",className:"rounded-full px-8 py-6 text-lg font-semibold border-white/40 text-white hover:bg-white/10 hover:text-white",onClick:u,children:"Get Student Survey Code"})]}),!t&&i.jsxs("p",{className:"mt-8 text-white/60 text-sm",children:["Already have an account?"," ",i.jsx("button",{onClick:d,className:"underline font-semibold text-white/80 hover:text-white",children:"Sign in"})]})]})}),i.jsx("section",{className:"bg-slate-50 border-t border-slate-100 py-24 px-6",children:i.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[i.jsx("div",{className:"text-4xl mb-6",children:"â"}),i.jsx("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight leading-tight mb-4",children:"Has this helped your ministry?"}),i.jsx("p",{className:"text-lg text-slate-500 leading-relaxed mb-3",children:"Help us keep helping more."}),i.jsx("p",{className:"text-base text-slate-400 leading-relaxed max-w-xl mx-auto mb-10",children:"This tool is completely free and always will be. If it's made a difference for you or your students, consider leaving a tip. Every dollar goes directly toward building more mental health resources for youth workers."}),i.jsx("div",{className:"flex flex-wrap gap-4 justify-center mb-6",children:["5","10","15"].map(m=>i.jsx(DCe,{amount:m},m))}),i.jsxs("div",{className:"flex items-center gap-3 justify-center max-w-xs mx-auto",children:[i.jsxs("div",{className:"relative flex-1",children:[i.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400 font-semibold text-base",children:"$"}),i.jsx("label",{htmlFor:"custom-tip-amount",className:"sr-only",children:"Custom tip amount in dollars"}),i.jsx("input",{id:"custom-tip-amount",type:"number",min:"1",placeholder:"Your amount",value:n,onChange:m=>r(m.target.value),onKeyDown:m=>m.key==="Enter"&&f(),className:"w-full pl-8 pr-4 py-3 rounded-full border-2 border-slate-200 bg-white text-slate-900 text-base focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all"})]}),i.jsx("button",{type:"button",onClick:f,disabled:a||!n||parseFloat(n)<1,className:"px-6 py-3 rounded-full bg-primary text-white font-bold text-base hover:bg-primary/90 transition-all disabled:opacity-40 shrink-0",children:a?"â¦":"Tip"})]}),i.jsx("p",{className:"text-xs text-slate-400 mt-6",children:"Secure checkout via Stripe · One
134-time · No subscription"})]})}),i.jsxs("footer",{className:"bg-slate-950 text-slate-500 py-10 px-6 text-center text-sm",children:[i.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[i.jsx("div",{className:"w-6 h-6 bg-primary rounded-md flex items-center justify-center text-white font-black text-[10px]",children:"re"}),i.jsx("span",{className:"text-slate-300 font-bold",children:"Reframe Youth"})]}),i.jsx("p",{children:"Youth Leader First Aid Kit · Free for every youth worker · Built with care."}),i.jsxs("p",{className:"mt-2 text-xs text-slate-600",children:[i.jsx("a",{href:"#",className:"hover:text-slate-400 transition-colors",children:"Privacy"})," · ",i.jsx("a",{href:"#",className:"hover:text-slate-400 transition-colors",children:"Terms"})," · ",i.jsx("a",{href:"https://reframeyouth.com",target:"_blank",rel:"noreferrer",className:"hover:text-slate-400 transition-colors",children:"reframeyouth.com"})]})]})]})}const LCe="https://reframeyouth.myshopify.com/cdn/shop/files/whole-life-discipleship-curriculum-volume-2-9175587.png?v=1762044713&width=1200",KM=[{label:"Home",href:"/",external:!1,mega:null},{label:"About",href:"/about",external:!1,mega:null},{label:"Curriculum",href:"/shop",external:!1,mega:"curriculum"},{label:"Tools",href:"/tools",external:!1,mega:"tools"},{label:"Blog",href:"/blog",external:!1,mega:null}],qz=[{kicker:"Take care of yourself",name:"Leader Self-Assessment",desc:"A private, clinically-grounded mental-health snapshot. No account needed, results shown only to you.",path:"/self-assessment"},{kicker:"Know your students",name:"Ministry Health Survey",desc:"35 anonymous questions students answer via QR code, so you see how your group is really doing on a live dashboard.",path:"/ministry-survey"},{kicker:"Teach with confidence",name:"Curriculum Quiz",desc:"6 quick questions about your ministry, matched to the curriculum that fits where you actually are.",path:"/curriculum-quiz"},{kicker:"Equip your team",name:"The Art of Conversation",desc:"10 short video sessions and guides for leaders and parents to help young people open up.",path:"/training"}],$Ce=[{label:"Browse All Curriculum",href:"/shop",external:!1},{label:"Whole Life Discipleship",href:"/wld",external:!1},{label:"Build a Bundle",href:"/build-bundle",external:!1},{label:"Curriculum Quiz",href:"/curriculum-quiz",external:!1}];function BCe(){return i.jsxs("div",{className:"bg-primary text-white text-center py-[11px] px-5 text-[13.5px] font-medium tracking-[0.01em]",children:["Bundle 4, 8, or 12 series and build exactly what your ministry needs",i.jsxs(Be,{href:"/build-bundle",className:"ml-2.5 font-bold border-b-[1.5px] border-white pb-[1px] hover:border-[#1A1A1A] transition-colors inline-flex items-center",children:["Build Your Bundle ",i.jsx(gt,{className:"w-3 h-3 ml-1.5 translate-y-[1px]"})]})]})}function FCe({close:e}){return i.jsxs("div",{className:"w-full max-w-[1240px] mx-auto px-10 py-9 flex gap-14 items-stretch",children:[i.jsxs("div",{className:"flex-none w-80 flex flex-col justify-center gap-6",children:[i.jsx("h2",{className:"text-[34px] font-black text-[#1A1A1A] tracking-tight leading-none",children:"Curriculum"}),i.jsx("p",{className:"text-[#333333] text-[14.5px] leading-relaxed",children:"Conversation-driven youth ministry curriculum where no topic is off-limits. Grab a complete curriculum volume or build a custom bundle."}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(Be,{href:"/curriculum-quiz",onClick:e,className:"inline-flex items-center justify-center px-6 py-3.5 rounded-[10px] bg-primary text-white font-extrabold text-[12.5px] uppercase tracking-[0.09em] hover:bg-[#B01E2C] transition-colors",children:"Take the Curriculum Quiz"}),i.jsx(Be,{href:"/build-bundle",onClick:e,className:"inline-flex items-center justify-center px-6 py-3.5 rounded-[10px] border-2 border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] uppercase tracking-[0.09em] hover:border-primary hover:text-primary transition-colors",children:"Build Your Bundle"})]})]}),i.jsxs("div",{className:"flex-1 flex flex-col gap-4",children:[i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsxs(Be,{href:"/wld",onClick:e,className:"flex items-center gap-2.5 text-primary font-bold text-[15px] hover:underline group",children:[i.jsx("span",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white text-[10px] font-black flex-shrink-0 group-hover:scale-110 transition-transform",children:"WLD"}),"Whole Life Discipleship"]}),i.jsx("span",{className:"w-px h-6 bg-primary/30"}),i.jsxs(Be,{href:"/shop",onClick:e,className:"flex items-center gap-2 text-primary font-bold text-[15px] hover:underline",children:["Check out All Curriculum",i.jsx(gt,{className:"w-4 h-4"})]})]}),i.jsxs(Be,{href:"/wld",onClick:e,className:"relative rounded-lg overflow-hidden flex-1 min-h-[260px] block group shadow-xl",children:[i.jsx("img",{src:LCe,alt:"Whole Life Discipleship curriculum",className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),i.jsxs("div",{className:"absolute bottom-5 left-6 text-white",children:[i.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] opacity-75 mb-1",children:"Featured"}),i.jsx("p",{className:"text-xl font-black leading-tight",children:"Whole Life Discipleship"}),i.jsxs("p",{className:"text-sm font-bold text-primary mt-1 flex items-center gap-1.5 group-hover:gap-2.5 transition-all",children:["Shop Now ",i.jsx(gt,{className:"w-4 h-4"})]})]})]})]})]})}function UCe({close:e}){return i.jsxs("div",{className:"w-full max-w-[1440px] mx-auto px-8 xl:px-10 py-9 flex gap-8 xl:gap-10 items-stretch",children:[i.jsxs("div",{className:"flex-none w-64 xl:w-
13472 flex flex-col justify-center gap-6",children:[i.jsx("h2",{className:"text-[34px] font-black text-[#1A1A1A] tracking-tight leading-none",children:"Free Tools"}),i.jsx("p",{className:"text-[#333333] text-[14.5px] leading-relaxed",children:"Four free, research-backed tools built for the realities of ministry life. No account needed to start."}),i.jsx(Be,{href:"/tools",onClick:e,className:"inline-flex items-center justify-center px-6 py-3.5 rounded-[10px] bg-primary text-white font-extrabold text-[12.5px] uppercase tracking-[0.09em] hover:bg-[#B01E2C] transition-colors",children:"Explore All Tools"})]}),i.jsx("div",{className:"flex-1 grid grid-cols-4 gap-4 xl:gap-5",children:qz.map(t=>i.jsxs(Be,{href:t.path,onClick:e,className:"group flex flex-col gap-3 rounded-lg border border-[#1A1A1A]/10 p-5 xl:p-6 hover:border-primary hover:shadow-lg transition-all",children:[i.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] text-primary",children:t.kicker}),i.jsx("p",{className:"text-lg font-black text-[#1A1A1A] leading-tight",children:t.name}),i.jsx("p",{className:"text-[13.5px] text-[#333333] leading-relaxed flex-1",children:t.desc}),i.jsxs("span",{className:"inline-flex items-center gap-1.5 text-primary font-bold text-sm group-hover:gap-2.5 transition-all",children:["Start free ",i.jsx(gt,{className:"w-4 h-4"})]})]},t.path))})]})}const zCe=["/tools","/self-assessment","/ministry-survey","/curriculum-quiz","/assessment","/training"];function Cr({isSignedIn:e,setLocation:t}){const[n]=et(),r=zCe.some(b=>n===b||n.startsWith(`${b}/`)),[a,s]=v.useState(null),[l,u]=v.useState(!1),[d,f]=v.useState(null),m=v.useRef(null),p=b=>{m.current&&clearTimeout(m.current),s(b)},g=()=>{m.current=setTimeout(()=>s(null),130)},y=()=>{m.current&&clearTimeout(m.current)},w=()=>{m.current&&clearTimeout(m.current),s(null)};return v.useEffect(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l]),i.jsxs(be.nav,{initial:{y:-64,opacity:0},animate:{y:0,opacity:1},transition:{duration:.45,ease:[.22,1,.36,1]},className:"sticky top-0 z-50 bg-white/95 backdrop-blur-[14px] border-b border-[#1A1A1A]/10",onMouseLeave:g,children:[i.jsx(BCe,{}),i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 h-[74px] flex items-center justify-between gap-4",children:[i.jsx(Be,{href:"/",className:"flex-shrink-0 select-none flex items-center",onMouseEnter:w,children:i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe Youth",className:"h-[30px]"})}),i.jsx("div",{className:"hidden lg:flex items-center gap-[34px]",children:KM.map(b=>{const N=b.mega!==null&&a===b.mega,k="relative text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors flex items-center gap-1 py-[26px]",C=i.jsxs(i.Fragment,{children:[b.label,b.mega&&i.jsx(be.span,{animate:{rotate:N?180:0},transition:{duration:.2},className:"inline-flex",children:i.jsx(Gi,{className:"w-3.5 h-3.5 text-[#333333]/60"})})]});return b.mega?b.external?i.jsx("a",{href:b.href,target:"_blank",rel:"noopener noreferrer",className:k,onMouseEnter:()=>p(b.mega),onClick:A=>A.preventDefault(),children:C},b.label):i.jsx(Be,{href:b.href,className:k,onMouseEnter:()=>p(b.mega),onClick:()=>s(null),children:C},b.label):b.external?i.jsx("a",{href:b.href,target:"_blank",rel:"noopener noreferrer",className:k,onMouseEnter:w,children:C},b.label):i.jsx(Be,{href:b.href,className:k,onMouseEnter:w,children:C},b.label)})}),i.jsxs("div",{className:"hidden lg:flex items-center gap-4",onMouseEnter:w,children:[r&&(e?i.jsx(ee,{variant:"outline",className:"border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-5 py-[22px] rounded-[10px] hover:bg-black/5",onClick:()=>t("/dashboard"),children:"My Dashboard"}):i.jsx(ee,{variant:"outline",className:"border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-5 py-[22px] rounded-[10px] hover:bg-black/5",onClick:()=>t("/sign-in"),children:"Log In"})),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-[19px] py-[20px] rounded-[10px] transition-colors",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})})]}),i.jsx("button",{className:"lg:hidden p-2 rounded-md text-slate-600 hover:bg-slate-50 transition-colors",onClick:()=>u(b=>!b),"aria-label":"Toggle menu","aria-expanded":l,"aria-controls":"mobile-site-navigation",children:l?i.jsx(Oa,{className:"w-6 h-6"}):i.jsx(jN,{className:"w-6 h-6"})})]}),i.jsx(cn,{children:a!==null&&i.jsxs(be.div,{initial:{opacity:0,y:-6}
134,animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.18,ease:"easeOut"},className:"hidden lg:block absolute left-0 right-0 top-full bg-white border-b border-[#1A1A1A]/10 shadow-2xl z-50",onMouseEnter:y,onMouseLeave:g,children:[a==="curriculum"&&i.jsx(FCe,{close:()=>s(null)}),a==="tools"&&i.jsx(UCe,{close:()=>s(null)})]},a)}),i.jsx(cn,{children:l&&i.jsx(be.div,{id:"mobile-site-navigation",initial:{height:0,opacity:0},animate:{height:"100vh",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"lg:hidden fixed inset-x-0 top-[114px] bg-white border-t border-slate-100 overflow-y-auto pb-32",children:i.jsxs("div",{className:"px-6 py-8 flex flex-col gap-6",children:[KM.map(b=>{const N="text-xl font-bold text-[#1A1A1A] hover:text-primary transition-colors";if(b.mega){const k=d===b.mega,C=b.mega==="curriculum"?$Ce:[{label:"All Tools",href:"/tools",external:!1},...qz.map(A=>({label:A.name,href:A.path,external:!1}))];return i.jsxs(z.Fragment,{children:[i.jsxs("button",{className:`${N} flex items-center justify-between w-full text-left`,onClick:()=>f(k?null:b.mega),children:[b.label,i.jsx(be.span,{animate:{rotate:k?180:0},transition:{duration:.2},children:i.jsx(Gi,{className:"w-5 h-5 text-slate-400"})})]}),i.jsx(cn,{children:k&&i.jsx(be.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22},className:"overflow-hidden pl-4 -mt-2 flex flex-col gap-4",children:C.map(A=>A.external?i.jsxs("a",{href:A.href,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between text-[15px] font-semibold text-[#333333] hover:text-primary transition-colors",onClick:()=>u(!1),children:[A.label," ",i.jsx(iae,{className:"w-3.5 h-3.5 opacity-40"})]},A.label):i.jsx(Be,{href:A.href,className:"flex text-[15px] font-semibold text-[#333333] hover:text-primary transition-colors",onClick:()=>{u(!1),f(null)},children:A.label},A.label))})})]},b.label)}return b.external?i.jsx("a",{href:b.href,target:"_blank",rel:"noopener noreferrer",className:N,onClick:()=>u(!1),children:b.label},b.label):i.jsx(Be,{href:b.href,className:N,onClick:()=>u(!1),children:b.label},b.label)}),i.jsxs("div",{className:"pt-6 border-t border-slate-100 flex flex-col gap-4",children:[i.jsx(ee,{className:"w-full bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[18px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})}),r&&(e?i.jsx(ee,{variant:"outline",className:"w-full border-black/20 text-[#1A1A1A] font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[18px] rounded-[10px]",onClick:()=>{u(!1),t("/dashboard")},children:"My Dashboard"}):i.jsx(ee,{variant:"outline",className:"w-full border-black/20 text-[#1A1A1A] font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[18px] rounded-[10px]",onClick:()=>{u(!1),t("/sign-in")},children:"Log In"}))]})]})})})]})}const VCe="/";function Ur(){return i.jsxs("footer",{className:"bg-[#1A1A1A] text-white font-sans",children:[i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[64px] pb-[30px] grid grid-cols-1 lg:grid-cols-[1.4fr_1fr_1fr] gap-12",children:[i.jsxs("div",{children:[i.jsx("img",{src:`${VCe}reframe-logo.png`,alt:"Reframe",className:"h-[34px] w-auto block brightness-0 invert"}),i.jsx("p",{className:"mt-[14px] text-[15.5px] leading-[1.55] text-white/55 max-w-[30ch]",children:"Relevant to culture. Faithful to Scripture."}),i.jsx("a",{href:"mailto:[email protected]",className:"inline-block mt-[16px] text-[15.5px] text-white/75 hover:text-white transition-colors",children:"[email protected]"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.15em] uppercase text-white/60 mb-4",children:"Tools"}),i.jsxs("div",{className:"flex flex-col gap-[11px]",children:[i.jsx(Be,{href:"/shop",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"Curriculum"}),i.jsx(Be,{href:"/about",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"About"}),i.jsx(Be,{href:"/blog",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"Blog"}),i.jsx(Be,{href:"/tools",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"Tools"}),i.jsx(Be,{href:"/statement-of-faith",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"Statement of Faith"})]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.15em] uppercase text-white/60 mb-4",children:"Follow"}),i.jsxs("div",{className:"flex flex-col gap-[11px]",children:[i.jsx("a",{href:"https://www.instagram.com/reframeyouth/",target:"_blank",rel:"noopener noreferrer",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"Instagram"}),i.jsx("a",{href:"https://www.youtube.com/@reframeyouth",target:"_blank",rel:"noopener noreferrer",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"YouTube"}),i.jsx("a",{href:"https://www.tiktok.com/@reframeyouth",target:"_blank",rel:"noopener noreferrer",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"TikTok"}),i.jsx("a",{href:"https://www.facebook.com/reframeyouth",target:"_blank",rel:"noopener noreferrer",className:"text-[15.5px] text-white/75 hover:text-white transition-colors",children:"Facebook"})]})]})]}),i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[22px] pb-[40px] border-t border-white/10 flex justify-between gap-6 text-[13.5px] text-white/60",children:[i.jsx("span",{children:"© 2026 Reframe Youth. All rights reserved."}),i.jsxs("div",{className:"flex gap-5",children:[i.jsx("a",{href:"https://reframeyouth.myshopify.com/policies/privacy-policy?_fd=0",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:"Privacy"}),i.jsx("a",{href:"https://reframeyouth.myshopify.com/policies/terms-of-service?_fd=0",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:"Terms"})]})]})]})}const WCe="/";function sm({dark:e,handle:t,tier:n,bundleVariantId:r,applied:a,onApplied:s}){const l=v.useId(),[u,d]=v.useState(!1),[f,m]=v.useState(""),[p,g]=v.useState(!1),[y,w]=v.useState(""),b=async()=>{const E=f.trim();if(E){w(""),g(!0);try{const T=await(await fetch(`${WCe}api/shop/coupon/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:E,...r?{bundleVariantId:r}:{handle:t,tier:n}})})).json().catch(()=>null);T?.valid?(s({code:T.code??E,summary:T.summary??""}),m("")):w(T?.reason??"That code isn't valid. Double-check the spelling and try again.")}catch{w("Couldn't check the code. Please try again.")}finally{g(!1)}}},N=e?"text-white/60 hover:text-white":"text-[#6a6a6c] hover:text-[#1A1A1A]",k=e?"bg-white/[0.06] border-white/20 text-white placeholder:text-white/35 focus:border-white/50":"bg-white border-[#1A1A1A]/20 text-[#1A1A1A] placeholder:text-[#9a9a9c] focus:border-[#1A1A1A]/50",C=e?"bg-white/10 hover:bg-white/20 text-white":"bg-[#1A1A1A] hover:bg-[#333] text-white",A=e?"bg-emerald-500/10 border-emerald-400/30 text-emerald-300":"bg-emerald-50 border-emerald-300 text-emerald-800";return a?i.jsxs("div",{className:`flex items-center justify-between gap-3 rounded-[10px] border px-3.5 py-2.5 text-[13px] font-semibold ${A}`,"data-testid":"coupon-applied",children:[i.jsxs("span",{className:"flex items-center gap-2 min-w-0",children:[i.jsx(i3,{className:"w-4 h-4 shrink-0"}),i.jsxs("span",{className:"truncate",children:[a.code," applied",a.summary?` â ${a.summary}`:"",". You'll see it at checkout."]})]}
134),i.jsx("button",{type:"button","aria-label":"Remove coupon",onClick:()=>s(null),className:"shrink-0 opacity-70 hover:opacity-100 cursor-pointer","data-testid":"coupon-remove",children:i.jsx(Oa,{className:"w-4 h-4"})})]}):u?i.jsxs("div",{className:"w-full min-w-0 flex flex-col gap-1.5",children:[i.jsx("label",{htmlFor:l,className:"sr-only",children:"Coupon code"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx("input",{id:l,type:"text",value:f,onChange:E=>m(E.target.value),onKeyDown:E=>{E.key==="Enter"&&(E.preventDefault(),b())},placeholder:"Coupon code",autoCapitalize:"characters",autoCorrect:"off",spellCheck:!1,className:`flex-1 min-w-0 rounded-[10px] border px-3.5 py-2.5 text-[14px] font-semibold outline-none transition-colors ${k}`,"data-testid":"coupon-input"}),i.jsx("button",{type:"button",onClick:()=>{b()},disabled:p||!f.trim(),className:`shrink-0 rounded-[10px] px-4 py-2.5 text-[12.5px] font-extrabold tracking-[0.06em] uppercase transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-default ${C}`,"data-testid":"coupon-apply",children:p?i.jsx(Xt,{className:"w-4 h-4 animate-spin"}):"Apply"})]}),y&&i.jsx("p",{className:`m-0 text-[12.5px] font-semibold ${e?"text-red-300":"text-primary"}`,"data-testid":"coupon-error",children:y})]}):i.jsxs("button",{type:"button",onClick:()=>d(!0),className:`self-start inline-flex items-center gap-1.5 text-[13px] font-bold underline underline-offset-2 cursor-pointer bg-transparent border-0 p-0 ${N}`,"data-testid":"coupon-toggle",children:[i.jsx(i3,{className:"w-4 h-4"})," Have a coupon code?"]})}function YM(e,t){try{window.fbq?.("track",e,t)}catch{}}function om(e){const t={content_ids:[e.id],content_name:e.name,content_type:"product",currency:"USD"};typeof e.price=="number"&&Number.isFinite(e.price)&&(t.value=e.price),YM("AddToCart",t),YM("InitiateCheckout",t)}function Hz({review:e,variant:t="light",className:n=""}){const r=t==="light"?"bg-white/90 backdrop-blur-[2px] border border-[#1A1A1A]/5 shadow-sm":"bg-[#F2F2F3] border border-[#1A1A1A]/5";return i.jsxs("article",{className:`rounded-[16px] p-[28px] sm:p-[32px] flex flex-col ${r} ${n}`,children:[i.jsx("div",{className:"flex gap-1 text-primary mb-[16px]","aria-label":`${e.rating} out of 5 stars`,children:Array.from({length:5}).map((a,s)=>i.jsx(m0,{className:`w-4 h-4 ${s<e.rating?"fill-current":"text-[#1A1A1A]/15"}`},s))}),e.title&&i.jsx("div",{className:"text-[15px] font-black text-[#1A1A1A] mb-[8px] uppercase tracking-[0.02em]",children:e.title}),i.jsxs("p",{className:"m-0 text-[16px] leading-[1.55] font-medium text-[#1A1A1A] text-pretty flex-1",children:['"',e.quote,'"']}),i.jsxs("div",{className:"mt-[20px] flex items-center gap-[12px]",children:[i.jsx("div",{className:"w-[32px] h-[32px] rounded-full bg-[#1A1A1A] flex items-center justify-center text-white text-[12px] font-black uppercase shrink-0",children:e.name.charAt(0)}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-[13.5px] font-bold text-[#1A1A1A] uppercase tracking-wider truncate",children:e.name}),e.location&&i.jsx("div",{className:"text-[12px] font-medium text-[#666666] truncate",children:e.location})]})]})]})}function Kt({review:e,variant:t="light",context:n="editorial",showMeta:r=!0,accent:a="primary",className:s=""}){const l=t==="dark",u=l?"text-white/85":"text-[#1A1A1A]",d=l?"text-white/60":"text-[#666666]",f=a==="white"?"border-white":"border-primary",m={editorial:"border-l-2 border-primary pl-5 sm:pl-6",hero:l?"border-t border-white/20 pt-4":"border-t border-[#1A1A1A]/15 pt-4",reassurance:l?"border-t border-white/15 pt-4":"border-t border-[#1A1A1A]/15 pt-4",proof:l?`border-t-2 ${f} pt-4`:`border-t-2 ${f} pt-4`,workflow:l?"border-l border-white/25 pl-4 sm:pl-5":"border-l border-[#1A1A1A]/20 pl-4 sm:pl-5"}[n];return i.jsxs("figure",{className:`m-0 min-w-0 ${m} ${s}`,children:[r&&i.jsx("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:i.jsx("div",{className:"flex gap-0.5 text-primary","aria-label":`${e.rating} out of 5 stars`,children:Array.from({length:5}).map((p,g)=>i.jsx(m0,{className:`h-3.5 w-3.5 ${g<e.rating?"fill-current":"text-[#1A1A1A]/15"}`},g))})}),i.jsxs("blockquote",{className:`m-0 ${r?"mt-2.5":"mt-0"} text-[15px] leading-[1.55] font-medium ${u}`,children:["â",e.quote,"â"]}),i.jsxs("figcaption",{className:`mt-3 text-[11.5px] font-bold uppercase tracking-[0.08em] ${d}`,children:[e.name,e.location?` · ${e.location}`:""]})]})}const ql=[{quote:"The material helps make approaching difficult questions easier.",name:"Joseph Valenzuela",title:"Tough questions, simple answers.",rating:5,location:"Scottsdale, Arizona"},{quote:"Great content that engages youth and teaches them who He is and who they are in Christ.",name:"Pedro Rodriguez",title:"I am!",rating:5,location:"Tampa, Florida"},{quote:"Today, our youth have access to all this knowledge, but they lack wisdom. This series really helped my students learn what wisdom is, how important it is, and how to obtain it. The weekly topics are spot on for what they're dealing with! Overall, I'm really impressed and satisfied with this content!",name:"Enrique Salado",title:"Gen Z Needs Wisdom! My Favorite Series!",rating:5,location:"Phoenix, Arizona"},{quote:"We're using REFRAME youth curriculum to relaunch our face-to-face Sunday School program with our teens. REFRAME is providing us with curriculum to nurture the faith of our teens through biblically sound, culturally relevant material targeting urban youth.",name:"Reverend Shelia Reid Dent",title:"Coming In HOT!!!!!!",rating:5,location:"Greenbelt, Maryland"},{quote:"This series was spot on for our youth. The questions were all thought-provoking and created some great conversations. This series is the epitome of what Reframe is all about: engaging students in meaningful conversations that point to Jesus.",name:"Cody Kiwaczyk",title:"Such a practical series",rating:5,location:"Tucson, Arizona"},{quote:"Reframe helped our students open up, share more, contribute more, and think out loud. Its use of Scripture is on point, which I love, and it presents a unified approach to the various subjects it covers. I found it very relevant and cutting-edge for my ministry.",name:"Jordan Finley",title:"Engaging and Dynamic",rating:5,location:"Hickory, North Carolina"},{quote:"This was one of the first series I used, and I really enjoyed going in-depth with Scripture and teaching my students how to read the Bible. This isn't a Bible study. This is a study of the Bible.",name:"Clisby",title:"Great for Diving Deep",rating:5,location:"Scottsdale, Arizona"},{quote:"I love how Reframe set up the context for the seriesâthe story that students need to see their lives as a part of. I also appreciate how the teaching guide sets up the context for the passage we focus onâclear and concise.",name:"Drew Litwiller",title:"This is what students need.",rating:5,location:"Milwaukee, Wisconsin"},{quote:"A great, straightforward reminder of why the gospel is vital to our salvation, along with a great explanation for unbelievers of our need for a Savior and how Jesus came to be that Savi
134or.",name:"Jesse Lobato",title:"Great Teaching!",rating:5,location:"Lynn, Massachusetts"},{quote:"Awesome content, powerful, and relevant for our students",name:"Herbert Smyer",title:"RELEVANT!!",rating:5,location:"Knightdale, North Carolina"}],Zf=[{quote:"Love the structure and approach. Life-changing lessons.",name:"Pedro Rodriguez",title:"The best urban youth curriculum",rating:5,location:"Newark, New Jersey"},{quote:"Game changer!",name:"Jose Gonzalez",title:"Fire",rating:5,location:"Philadelphia, Pennsylvania"},{quote:"This has been such a blessing to our students. It presents the material in such an engaging way, begins conversations that matter, and gets students interacting with the culture they live in from a biblical perspective. Thank you, Reframe!",name:"Jordan Finley",rating:5},{quote:"This series helped me walk my students through how to read the Bible! I was equipped with good tools to pass on to them so they could engage with Scripture more confidently.",name:"Enrique Salado",title:"Thankful for This Series!",rating:5,location:"Phoenix, Arizona"},{quote:"I used the WLD series on identity and gifts for our weekend youth retreat, and it created great dialogue among the students and leaders.",name:"Marvin Morris",title:"Great content for Youth Retreat",rating:5,location:"Keller, Texas"},{quote:"I love series that address real issues teens are struggling with, and mental health is definitely important. This series will help you see how the gospel fits into all our problems.",name:"Clisby",title:"Don't Let the Name Fool You",rating:5,location:"Scottsdale, Arizona"},{quote:"Great for youth dealing with emotional issues...",name:"Joseph Valenzuela",title:"Excellent material!",rating:5,location:"Scottsdale, Arizona"},{quote:"I absolutely love the curriculum! My students are engaged, and they're having great conversations during the lesson and small-group time. I currently use this for our high school program, but I'll be implementing it for junior high as well.",name:"Victoria Campbell",title:"Essentials Near To God",rating:5,location:"Wickenburg, Arizona"},{quote:"Of all the other curricula I've tried, this connects best with my students! It's up to date, Spirit-led, and easy to understand without watering it down. Definitely 5 out of 5.",name:"Doug Rethwisch",title:"Amazing!!",rating:5,location:"Tolar, Texas"},{quote:"We are so excited to start using this curriculum this month. It was just what we were looking for!",name:"Angela Hildebrand",rating:5,location:"Altoona, Pennsylvania"}],qCe={title:"Love What Reframe is Doing for Student Ministry",quote:"Really appreciate the topics, content, and leader guides. Been super helpful for our HS students especially to start diving into spiritual formation and practices that they can have in their tool belt like in the Essentials series but also to have a framework of the story of Scripture from the Story series. Leader guides have been great to give to our volunteers to have a 30,000 foot view of where the series is headed and how they can prepare. Highly recommend Reframe.",name:"AJ Byrd",rating:5,location:"Dillsburg, PA"},HCe={title:"Great content",quote:"We are happy with this wonderful curriculum. The lessons are well written, thoughtful, and a blessing!",name:"Angela Hildebrand",rating:5},GCe=[ql[4],ql[6]],KCe=[ql[3],Zf[7],Zf[8],Zf[9]],Cf=ql,vi=Zf,QM=ql.slice(0,4),Gz=ql.slice(4,9),YCe=[...ql,...Zf].filter((e,t,n)=>/\bseries\b/i.test(`${e.title??""} ${e.quote}`)&&n.findIndex(r=>r.name===e.name)===t),ew=YCe.filter(e=>e.name!==Gz[0].name);function ud(e){const t=v.useRef(e);t.current=e,v.useEffect(()=>{const n=r=>{r.persisted&&t.current()};return window.addEventListener("pageshow",n),()=>window.removeEventListener("pageshow",n)},[])}function lr({desktopSrc:e,mobileSrc:t,desktopSrcSet:n,mobileSrcSet:r,className:a="",loading:s="lazy",fetchPriority:l="auto"}){return i.jsxs("picture",{className:`absolute inset-0 block ${a}`,"aria-hidden":"true",children:[t&&i.jsx("source",{media:"(max-width: 767px)",srcSet:r??t,sizes:"100vw"}),i.jsx("img",{src:e,srcSet:n,sizes:"100vw",alt:"",loading:s,fetchPriority:l,decoding:"async",className:"h-full w-full object-cover object-center"})]})}function Ns(e,t){if(!(typeof window>"u"))try{window.umami?.track(e,t)}catch{}}function Du(e){const t=e.trim();return t.length<=254&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}
134function Dk({value:e,onChange:t,disabled:n=!1,dark:r=!1}){const a=v.useId();return i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{htmlFor:a,className:`text-[13px] font-bold ${r?"text-white":"text-[#1A1A1A]"}`,children:"Email for checkout"}),i.jsx(En,{id:a,type:"email",autoComplete:"email",inputMode:"email",required:!0,maxLength:254,placeholder:"[email protected]",value:e,onChange:s=>t(s.target.value),disabled:n,"aria-describedby":`${a}-help`,className:"bg-white text-[#1A1A1A] rounded-[10px]"}),i.jsx("p",{id:`${a}-help`,className:`text-[12px] ${r?"text-white/70":"text-[#666669]"}`,children:"Enter your email to continue to Shopify checkout. We'll pre-fill it for you."})]})}const Qa="/",tw=`${Qa}site/shop`,Ef=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e}),QCe=["1â50 students","51â250","251+"],nw=["1-50","51-250","251+"],XM=[{handle:"whole-life-discipleship-volume-2",title:"Whole Life Discipleship Curriculum Volume 2",eyebrow:"Full-year curriculum",tiers:["$597","$797","$997"],badge:"Newest release",blurb:"13 new conversation-driven series that disciple students across their whole lives, plus video teaching, games, devotionals, leader training, and a 12-week middle-school series.",internalHref:"/wld"},{handle:"wld-vol-1",title:"Whole Life Discipleship Curriculum Volume 1",eyebrow:"Full-year curriculum",tiers:["$497","$697","$897"],blurb:"The holistic discipleship curriculum addressing students' spiritual, emotional, mental, and physical well-being, with 3â5 minute video teachings woven through every series."},{handle:"2024-complete-curriculum",title:"Reframe Curriculum Volume 3",eyebrow:"Complete toolkit",tiers:["$397","$497","$597"],blurb:"Everything you need to elevate your ministry: sermons, teaching guides, small-group resources, thought-provoking questions, and eye-catching graphics."},{handle:"volume-3-bundle",title:"Reframe Curriculum Volume 2",eyebrow:"Complete toolkit",tiers:["$397","$497","$597"],blurb:"Impactful sermons, engaging teaching and small-group guides, discussion questions, and stunning graphics, built for consistency week after week."},{handle:"2022-complete-curriculum",title:"Reframe Curriculum Volume 1",eyebrow:"Complete toolkit",tiers:["$297","$397","$497"],blurb:"The original Reframe toolkit: powerful messages, teaching and small-group guides, questions, and graphics that started it all."},{handle:"whole-life-discipleship",title:"UYWI Ã Reframe Whole Life Discipleship Toolkit",eyebrow:"Partner toolkit",tiers:["$297","$397","$497"],blurb:"Created with Urban Youth Workers Institute: a holistic toolkit for engaging the next generation's spiritual, emotional, mental, and physical growth."}];function XCe(){const[e,t]=v.useState({}),[n,r]=v.useState(null),[a,s]=v.useState(null),[l,u]=v.useState({}),[d,f]=v.useState("");ud(()=>{r(null),s(null)});const m=async y=>{if(!(n!==null||!Du(d))){s(null),r(y);try{const w=XM.find(C=>C.handle===y);om({id:y,name:w?.title??y,price:w?parseFloat(w.tiers[e[y]??0].replace(/[^0-9.]/g,"")):void 0});const b=l[y];Ns("shop_checkout_started",{product:y,tier:nw[e[y]??0],coupon_applied:!!b});const N=await fetch(`${Qa}api/shop/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:y,tier:nw[e[y]??0],email:d.trim().toLowerCase(),...b?{couponCode:b.code}:{}})});if(!N.ok)throw new Error("checkout failed");const{checkoutUrl:k}=await N.json();window.location.href=k}catch{s(y),r(null)}}},[,p]=et(),{isSignedIn:g}=Vt();return i.jsxs("div",{className:"min-h-[100dvh] bg-white font-sans text-[#333333]",children:[i.jsx(Cr,{isSignedIn:!!g,setLocation:p}),i.jsxs("section",{className:"bg-[#141414] relative overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${Qa}site/shop-hero-1440.webp`,desktopSrcSet:`${Qa}site/shop-hero-1440.webp 1440w, ${Qa}site/shop-hero-1920.webp 1920w`,loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-[#0F0F0F]/50"}),i.jsx("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[108px] pb-[84px]",children:i.jsxs(Ef,{className:"max-w-[760px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[20px]",children:"Curriculum"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-white text-balance",children:["Ready-to-teach series your students ",i.jsx("span",{className:"text-primary",children:"won't shrug off"})]}),i.jsx("p",{className:"mt-[24px] text-[18px] leading-[1.58] text-white/70 max-w-[34em] mx-auto text-pretty",children:"Ready-to-teach series and resources built for real ministry. Instant download, teach this week."}),i.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-[18px] gap-y-[10px] mt-[26px] text-[13.5px] font-semibold text-white/60",children:[i.jsx("span",{className:"text-primary tracking-[0.06em]",children:"â
â
â
â
â
"}),i.jsx("span",{children:"4.9 average rating"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-white/30"}),i.jsx("span",{children:"Instant download"})]}),i.jsx(Kt,{review:QM[0],variant:"dark",context:"hero",className:"mt-[32px] max-w-[560px] mx-auto text-center border-t-0 pt-0 [&>div]:justify-center [&_blockquote]:text-white [&_figcaption]:text-white/80"})]})})]}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-10 pt-[72px] pb-[88px]",children:i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[24px] items-stretch",children:XM.map((y,w)=>i.jsxs(v.Fragment,{children:[i.jsxs(Ef,{delay:.06*w,className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] overflow-hidden flex flex-col relative group",children:[y.badge&&i.jsx("div",{className:"absolute top-3.5 left-5 z-10 bg-primary text-white text-[10.5px] font-extrabold tracking-[0.13em] uppercase px-3 py-1.5 rounded-[8px]",children:y.badge}),i.jsx(Be,{href:`/products/${y.handle}`,className:"overflow-hidden block",children:i.jsx("img",{src:`${tw}/${y.handle}-480.webp`,srcSet:`${tw}/${y.handle}-480.webp 480w, ${tw}/${y.handle}-960.webp 960w`,sizes:"(min-width: 1240px) 373px, (min-width: 1024px) calc((100vw - 128px) / 3), (min-width: 768px) calc((100vw - 104px) / 2), calc(100vw - 80px)",alt:y.title,width:960,height:540,loading:w===0?"eager":"lazy",decoding:"async",className:"w-full aspect-video sm:aspect-auto sm:h-[230px] object-cover object-center block group-hover:scale-[1.03] transition-transform duration-500"})}),i.jsxs("div",{className:"p-[26px_28px_28px] flex flex-col flex-1",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.15em] uppercase text-[#666669]",children:y.eyebrow}),i.jsx("h2",{className:"mt-2.5 m-0 text-[20px] leading-[1.2] tracking-[-0.02em] font-black text-[#1A1A1A]",children:i.jsx(Be,{href:`/products/${y.handle}`,className:"hover:text-primary transition-colors",children:y.title})}),i.jsx("p",{className:"mt-[12px] text-[15px] leading-[1.5] text-[#5a5a5c] flex-1",children:y.blurb}),i.jsxs("div",{className:"mt-[20px] flex items-baseline gap-1.5",children:[i.jsx("span",{className:"text-[13px] font-semibold text-[#666669] uppercase tracking-[0.08em]",children:"from"}),i.jsx("span",{className:"text-[30px] font-black tracking-[-0.03em] text-[#1A1A1A] leading-none",children:y.tiers[0]})]}),i.jsx("div",{className:"mt-[14px] grid grid-cols-3 rounded-[10px] border border-[#1A1A1A]/10 overflow-hidden divide-x divide-[#1A1A1A]/10",children:y.tiers.map((b,N)=>{const k=(e[y.handle]??0)===N;return i.jsxs("button",{type:"button",onClick:()=>t(C=>({...C,[y.handle]:N})),"aria-pressed":k,className:`px-2 py-[10px] text-center transition-colors cursor-pointer ${k?"bg-[#1A1A1A]":"bg-[#F7F7F8] hover:bg-[#
134ECECED]"}`,children:[i.jsx("div",{className:`text-[10px] font-extrabold tracking-[0.08em] uppercase whitespace-nowrap ${k?"text-white/70":"text-[#666669]"}`,children:QCe[N]}),i.jsx("div",{className:`mt-1 text-[15px] font-black leading-none ${k?"text-white":"text-[#1A1A1A]"}`,children:b})]},N)})}),i.jsx("div",{className:"mt-[14px]",children:i.jsx(sm,{handle:y.handle,tier:nw[e[y.handle]??0],applied:l[y.handle]??null,onApplied:b=>u(N=>({...N,[y.handle]:b}))})}),i.jsxs("div",{className:"mt-[14px] flex flex-col gap-2.5",children:[i.jsx(Dk,{value:d,onChange:f,disabled:n!==null}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase py-6 rounded-[10px]",disabled:n!==null||!Du(d),onClick:()=>m(y.handle),children:n===y.handle?i.jsxs(i.Fragment,{children:["Heading to Checkout ",i.jsx(Xt,{className:"w-3.5 h-3.5 ml-1.5 animate-spin"})]}):i.jsxs(i.Fragment,{children:["Buy Now ",i.jsx(gt,{className:"w-3.5 h-3.5 ml-1.5"})]})}),a===y.handle&&i.jsx("p",{className:"m-0 text-[12.5px] font-semibold text-primary text-center",children:"Something went wrong. Please try again."}),i.jsx(ee,{variant:"outline",className:"border-[1.5px] border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase py-6 rounded-[10px] hover:border-[#1A1A1A] hover:bg-transparent",asChild:!0,children:i.jsxs(Be,{href:y.internalHref??`/products/${y.handle}`,children:["Learn More ",i.jsx(gt,{className:"w-3.5 h-3.5 ml-1.5"})]})})]})]})]}),w===2&&i.jsx(Ef,{className:"md:col-span-2 lg:col-span-3 py-[28px] sm:py-[36px]",children:i.jsx(Kt,{review:qCe,context:"proof",className:"max-w-[920px] mx-auto text-center [&>div]:justify-center"})}),w===5&&i.jsx(Ef,{className:"md:col-span-2 lg:col-span-3 py-[28px] sm:py-[36px]",children:i.jsx(Kt,{review:HCe,context:"proof",className:"max-w-[920px] mx-auto text-center [&>div]:justify-center"})})]},y.handle))})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A]",children:[i.jsx(lr,{desktopSrc:`${Qa}site/cta-bg-1440.webp`,desktopSrcSet:`${Qa}site/cta-bg-768.webp 768w, ${Qa}site/cta-bg-1440.webp 1440w, ${Qa}site/cta-bg-1920.webp 1920w`}),i.jsx("div",{className:"absolute inset-0 bg-[#121212]/70"}),i.jsxs(Ef,{className:"relative max-w-[900px] mx-auto px-10 pt-[100px] pb-[104px] text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.4vw,50px)] leading-[1.05] tracking-[-0.035em] font-black text-white text-balance",children:"Build a bundle that fits your calendar"}),i.jsx("p",{className:"mt-[22px] text-[19px] leading-[1.55] text-white/70 text-pretty max-w-[36em] mx-auto",children:"Pick 4, 8, or 12 series from the full Reframe library and pay for exactly what you'll teach, or take the 60-second quiz and we'll point you to the right fit."}),i.jsxs("div",{className:"flex flex-wrap gap-[14px] justify-center mt-[36px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[27px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/build-bundle",children:"Build Your Bundle"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent text-white border-[1.5px] border-white/50 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[27px] py-[21px] rounded-[10px] hover:border-white hover:bg-white/10 hover:text-white",asChild:!0,children:i.jsx(Be,{href:"/curriculum-quiz",children:"Take the Quiz"})})]}),i.jsx("div",{className:"mt-[36px] max-w-[520px] mx-auto text-center",children:i.jsx(Kt,{review:QM[3],variant:"dark",context:"hero",className:"[&>div]:justify-center"})})]})]}),i.jsx(Ur,{})]})}const ZCe={"wld-vol-1":{handle:"wld-vol-1",title:"Whole Life Discipleship Curriculum Volume 1",bodyHtml:`<p>Equip the next generation with a holistic discipleship curriculum designed to address students' spiritual, emotional, mental, and physical well-being.</p> 135<p>This innovative resource includes 3-5 minute video teachings that align seamlessly with the seriesâ core themes, enhancing your midweek services, small groups, and devotionals.</p> 136<p>Packed with engaging teaching guides, small group materials, and versatile videos, it inspires meaningful conversations, trust, and Gospel-centered impact. Complete with series graphics, PowerPoint slides, social media assets, and parent/volunteer resources, this curriculum empowers leaders and connects families to your ministry.</p>`,images:["https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-917980.png?v=1734434784","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-846537.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-856105.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-190843.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-976847.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-748578.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-994174.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-822729.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-770603.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-861473.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-418455.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-174150.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-377640.jpg?v=1734383029","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld-vol-1-770714.jpg?v=1734383029"],variants:[{title:"1-50",price:"497.00"},{title:"51-250",price:"697.00"},{title:"251 +",price:"897.00"}]},"whole-life-discipleship-volume-2":JSON.parse(`{"handle":"whole-life-discipleship-volume-2","title":"Whole Life Discipleship Curriculum Volume 2","bodyHtml":"<div data-jasper-canvas=\\"%5B%7B%22type%22:%22RICH_TEXT_DOCUMENT%22,%22id%22:%221d3ea15a-4c0c-42cf-a049-fe32f71104aa%22,%22initialWidth%22:650,%22initialHeight%22:910,%22selected%22:true,%22dragHandle%22:%22.drag-handle__custom%22,%22zIndex%22:8,%22measured%22:%7B%22width%22:650,%22height%22:910%7D,%22selectedAt%22:1761963047799,%22position%22:%7B%22x%22:2515,%22y%22:1710%7D,%22data%22:%7B%22version%22:1,%22canvasId%22:%228f681e06-6355-4f3c-a590-083b2bc2e0b9%22,%22documentId%22:%221d3ea15a-4c0c-42cf-a049-fe32f71104aa%22,%22initialName%22:%22WLD%20Vol%202%20Product%20Description%22,%22initialContent%22:%22Tired%20of%20your%20youth%20ministry%20curriculum%20falling%20flat?%2
1360What%20if%20you%20could%20spark%20conversations%20that%20actually%20matter?%20**Whole%20Life%20Discipleship%20Volume%202**%20is%20the%20framework%20you%E2%80%99ve%20been%20looking%20for.%20Designed%20specifically%20for%20the%20challenges%20of%20urban%20youth%20ministry,%20this%20isn't%20another%20lecture%20series;%20it's%20a%20complete%20discipleship%20for%20Gen%20Z%20and%20Alpha%20that%20builds%20a%20faith%20strong%20enough%20to%20withstand%20cultural%20pressure.%5Cn%5CnMove%20beyond%20behavior%20modification%20to%20true%20heart%20transformation.%20Our%20discussion-driven%20lesson%20flow%20(Conversation%20Starter%20%E2%86%92%20Frame%20%E2%86%92%20Reframe%20%E2%86%92%20Reorient%20%E2%86%92%20Redirect)%20helps%20students%20develop%20critical%20thinking,%20emotional%20resilience,%20and%20deep%20spiritual%20roots.%20You'll%20stop%20talking%20*at*%20them%20and%20start%20guiding%20them%20toward%20a%20faith%20that%20connects%20with%20their%20real%20lives,%20from%20social%20media%20to%20school%20hallways.%20This%20is%20the%20tool%20that%20frees%20you%20up%20to%20be%20the%20mentor%20they%20need.%5Cn%5CnEach%20volume%20comes%20fully%20loaded%20to%20save%20you%20time%20and%20stress.%5Cn%5Cn**What's%20Included%20in%20WLD%20Volume%202:**%5Cn%5Cn-%20Teaching%20Guides%5Cn-%20Small%20Group%20Guides%5Cn-%20Devotional%20Content%5Cn-%20Social%20Media%20Graphics%20&%20Content%5Cn-%20Games%20&%20Icebreakers%5Cn-%20Video%20Teaching%5Cn-%20Parent%20Emails%5Cn-%20Leader%20Training%5Cn-%20Parent%20Engagement%20Training%20Resources%5Cn%5CnStop%20guessing%20what%20will%20connect.%20Start%20a%20conversation%20that%20will%20change%20everything.%5Cn%22,%22initialLexicalEditorState%22:%7B%22root%22:%7B%22children%22:%5B%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Tired%20of%20your%20youth%20ministry%20curriculum%20falling%20flat?%20What%20if%20you%20could%20spark%20conversations%20that%20actually%20matter?%20%22,%22type%22:%22text%22,%22version%22:1%7D,%7B%22detail%22:0,%22format%22:1,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Whole%20Life%20Discipleship%20Volume%202%22,%22type%22:%22text%22,%22version%22:1%7D,%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22%20is%20the%20framework%20you%E2%80%99ve%20been%20looking%20for.%20Designed%20specifically%20for%20the%20challenges%20of%20urban%20youth%20ministry,%20this%20isn't%20another%20lecture%20series;%20it's%20a%20complete%20discipleship%20for%20Gen%20Z%20and%20Alpha%20that%20builds%20a%20faith%20strong%20enough%20to%20withstand%20cultural%20pressure.%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22paragraph%22,%22version%22:1,%22textFormat%22:0,%22textStyle%22:%22%22%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Move%20beyond%20behavior%20modification%20to%20true%20heart%20transformation.%20Our%20discussion-driven%20lesson%20flow%20(Conversation%20Starter%20%E2%86%92%20Frame%20%E2%86%92%20Reframe%20%E2%86%92%20Reorient%20%E2%86%92%20Redirect)%20helps%20students%20develop%20critical%20thinking,%20emotional%20resilience,%20and%20deep%20spiritual%20roots.%20You'll%20stop%20talking%20%22,%22type%22:%22text%22,%22version%22:1%7D,%7B%22detail%22:0,%22format%22:2,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22at%22,%22type%22:%22text%22,%22version%22:1%7D,%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22%20them%20and%20start%20guiding%20them%20toward%20a%20faith%20that%20connects%20with%20their%20real%20lives,%20from%20social%20media%20to%20school%20hallways.%20This%20is%20the%20tool%20that%20frees%20you%20up%20to%20be%20the%20mentor%20they%20need.%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22paragraph%22,%22version%22:1,%22textFormat%22:0,%22textStyle%22:%22%22%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Each%20volume%20comes%20fully%20loaded%20to%20save%20you%20time%20and%20stress.%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22paragraph%22,%22version%22:1,%22textFormat%22:0,%22textStyle%22:%22%22%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:1,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22What's%20Included%20in%20WLD%20Volume
136%202:%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22paragraph%22,%22version%22:1,%22textFormat%22:0,%22textStyle%22:%22%22%7D,%7B%22children%22:%5B%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Teaching%20Guides%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:1%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Small%20Group%20Guides%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:2%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Devotional%20Content%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:3%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Social%20Media%20Graphics%20&%20Content%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:4%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Games%20&%20Icebreakers%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:5%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Video%20Teaching%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:6%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Parent%20Emails%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:7%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Leader%20Training%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:8%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Parent%20Engagement%20Training%20Resources%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22listitem%22,%22version%22:1,%22value%22:9%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22list%22,%22version%22:1,%22listType%22:%22bullet%22,%22start%22:1,%22tag%22:%22ul%22%7D,%7B%22children%22:%5B%7B%22detail%22:0,%22format%22:0,%22mode%22:%22normal%22,%22style%22:%22%22,%22text%22:%22Stop%20guessing%20what%20will%20connect.%20Start%20a%20conversation%20that%20will%20change%20everything.%22,%22type%22:%22text%22,%22version%22:1%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22paragraph%22,%22version%22:1,%22textFormat%22:0,%22textStyle%22:%22%22%7D%5D,%22direction%22:%22ltr%22,%22format%22:%22%22,%22indent%22:0,%22type%22:%22root%22,%22version%22:1%7D%7D,%22initialToneId%22:%22zGMrGShKfn27Ub2uwW8A%22,%22latestSavedWidth%22:650,%22latestSavedHeight%22:910%7D,%22___brand%22:%22CopyableCanvasNode%22,%22metadata%22:%7B%22id%22:%221d3ea15a-4c0c-42cf-a049-fe32f71104aa%22,%22name%22:%22WLD%20Vol%202%20Product%20Description%22,%22updated_at%22:%221761963042139%22,%22created_at%22:%221761963039777%22,%22createdBy%22:%7B%22id%22:%225wV1pn2IRiTlkPDOYKtD6VUtjWh2%22,%22firstName%22:%22Jordan%22,%22lastName%22:%22Francis%22%7D,%22isPublic%22:false,%22status%22:%22DRAFT%22,%22assignees%22:%5B%5D,%22sharedWithUsers%22:%5B%5D,%22workspaceGroups%22:%7B%22edges%22:%5B%5D%7D,%22type%22:%22RICH_TEXT_DOCUMENT%22,%22assigneeId%22:%22%22,%22inputs%22:%7B%22tone%22:%22zGMrGShKfn27Ub2uwW8A%22,%22audience%22:null,%22visualGuideline%22:null,%22toLanguage%22:null%7D%7D%7D%5D\\">\\n<meta charset=\\"utf-8\\">\\n<p class=\\"text-md font-regular leading-[24px] pb-xxs pt-[9px]\\" dir=\\"ltr\\"><span>Tired of your youth ministry curriculum falling flat? What if you could spark conversations that actually matter? </span><b><strong class=\\"font-semibold\\">Whole Life Discipleship Volume 2</strong></b><span> is the framework youâve been looking for. Designed specifically for the challenges of urban youth ministry, this isn't another lecture series; it's a complete discipleship for Gen Z and Alpha that builds a faith strong enough to withstand cultural pressure.</span></p>\\n<p class=\\"text-md font-regular leading-[24px] pb-xxs pt-[9px]\\" dir=\\"ltr\\"><span>Move beyond behavior modification to true heart transformation. Our discussion-driven lesson flow (Conversation Starter â Frame â Reframe â Reorient â Redirect) helps students develop critical thinking, emotional resilience, and deep spiritual roots. You'll stop talking </span><i><em class=\\"italic\\">at</em></i><span> them and start guiding them toward a faith that connects with their real lives, from social media to school hallways. This is the tool that frees you up to be the mentor they need.</span></p>\\n<p class=\\"text-md font-regular leading-[24px] pb-xxs pt-[9px]\\" dir=\\"ltr\\"><span>Each volume comes fully loaded to save you time and stress.</span></p>\\n<p class=\\"text-md font-regular leading-[24px] pb-xxs pt-[9px]\\" dir=\\"ltr\\"><b><strong class=\\"font-semibold\\">What's Included in WLD Volume 2:</strong></b></p>\\n<ul class=\\"pb-xxs pt-[9px] list-disc pl-5xl pt-[5px]\\">\\n<li value=\\"1\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Teaching Guides</span></li>\\n<li value=\\"2\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Small Group Guides</span></li>\\n<li value=\\"3\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Devotional Content</span></li>\\n<li value=\\"4\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Social Media Graphics & Content</span></li>\\n<li value=\\"5\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Games & Icebreakers</span></li>\\n<li value=\\"6\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Video Teaching</span></li>\\n<li value=\\"7\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Parent Emails</span></li>\\n<li value=\\"8\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Leader Training</span></li>\\n<li value=\\"9\\" class=\\"text-md font-regular leading-[24px] my-[5px] [&>ol]:!pb-0 [&>ol]:!pt-0 [&>ul]:!pb-0 [&>ul]:!pt-0\\" dir=\\"ltr\\"><span>Parent Engagement Training Resources</span></li>\\n</ul>\\n<p class=\\"text-md font-regular leading-[24px] pb-xxs pt-[9px]\\" dir=\\"ltr\\"><span>Stop guessing what will connect. Start a conversation that will change everything.</span></p>\\n</div>","images":["https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-9175587.png?v=1762044713","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-5662409.jpg?v=1762044713","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-5077074.jpg?v=1762044713","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-9214855.png?v=1762044714","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-7457086.jpg?v=1762044714","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-3070085.jpg?v=1762044714","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-1317177.jpg?v=1762044714","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-4702694.jpg?v=1762044715","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-4307164.jpg?v=1762044715","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-1254269.jpg?v=1762044715","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-5842612.jpg?v=1762044765","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-6035341.jpg?v=1762044765","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-curriculum-volume-2-6010130.jpg?v=1762044765"],"variants":[{"title":"1-50","price":"597.00"},{"title":"51-250","price":"797.00"},{"title":"251+","price":"997.00"}]}`),"2022-complete-curriculum":{handle:"2022-complete-curriculum",title:"Reframe Curriculum Volume 1",bodyHtml:"<p>This comprehensive toolkit is packed with everything you need to elevate your youth ministry, including impactful sermons, engaging teaching and small-group guides, thought-provoking questions, stunning graphics, and more. Perfect for delivering powerful messages, maintaining consistency, and fostering growth within your ministry.</p>",images:["https://cdn.shopify.com/s/files/1/0693/0028/9820/files/reframe-curriculum-volume-1-252887.jpg?v=1741439301","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-588807.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-429095.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-650772.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-590925.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-720715.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-743806.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-567512.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-265268.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-993806.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-969432.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-873865.jpg?v=1741414453","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2022-complete-curriculum-305255.jpg?v=1741414453"],variants:[{title:"1-50",price:"297.00"},{title:"51-250",price:"397.00"},{title:"251+",price:"497.00"}]},"volume-3-bundle":{handle:"volume-3-bundle",title:"Reframe Curriculum Volume 2",bodyHtml:"<p>This comprehensive toolkit offers everything you need to elevate your youth ministry. It includes impactful sermons, engaging teaching and small-group guides, thought-provoking questions, stunning graphics, and more. Designed to help you deliver powerful messages, maintain consistency, and foster growth within your ministry, itâs the ultimate resource for success.</p>",images:["https://cdn.shopify.com/s/files/1/0693/0028/9820/files/reframe-curriculum-volume-2-528248.jpg?v=1741439296","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-783980.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-979365.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-514170.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-590350.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-482056.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-726438.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-882074.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-998720.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-756387.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-786767.jpg?v=1741414670","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2023-complete-curriculum-836752.jpg?v=1741414670"],variants:[{title:"1-50",price:"397.00"},{title:"51-250",price:"497.00"},{title:"251+",price:"597.00"}]},"2024-complete-curriculum":{handle:"2024-complete-curriculum",title:"Reframe Curriculum Volume 3",bodyHtml:`<p>This comprehensive toolkit offers everything you need to elevate your youth ministry, including sermons, teaching guides, small-group resources, thought-provoking questions, eye-catching graphics, and more. Perfect for delivering impactful sermons, maintaining consistency, and fostering growth within your ministry.</p> 137<div data-mce-fragment="1" class="checkout-content-body"></div>`,images:["https://cdn.shopify.com/s/files/1/0693/0028/9820/files/reframe-curriculum-volume-3-182812.jpg?v=1741439300","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-212268.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-998620.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-983231.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-730288.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-874166.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-167530.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-632349.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-493190.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-432266.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-681968.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-977809.jpg?v=1741414370","https://cdn.shopify.com/s/files/1/0693/0028/9820/products/2024-complete-curriculum-271011.jpg?v=1741414370"],variants:[{title:"1-50",price:"397.00"},{title:"51-250",price:"497.00"},{title:"251+",price:"597.00"}]}
137,"whole-life-discipleship":{handle:"whole-life-discipleship",title:"UYWI X Reframe Whole Life Discipleship Toolkit",bodyHtml:`<p>Discipleship of this next generation requires we engage holistically. </p> 138<p>In today's fast-paced world, it is easy to overlook the importance of nurturing the younger generation's holistic growth. However, as leaders and role models in their lives, it is our responsibility to prioritize their overall well-being and not just their spiritual growth. We need to cultivate relationships with them that are centered on trust, communication, and understanding. </p> 139<p>Discipleship goes beyond teaching them about faith; it involves building a meaningful connection with them. This requires us to create an environment where they feel safe to share their thoughts and feelings without judgment. By doing so, we can address any emotional or mental struggles they may be facing and guide them toward finding solutions.</p> 140<p>In partnership with <a rel="noopener" href="https://uywi.org/" target="_blank">UYWI</a>, we have developed the WLD kit, providing you with precisely what you need to engage students in a more holistic discipleship process.</p>`,images:["https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-662062.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-900207.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-662347.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-458228.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-964985.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-703103.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-471405.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-827822.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-289253.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-344790.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-335721.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/whole-life-discipleship-kit-569939.jpg?v=1715630089","https://cdn.shopify.com/s/files/1/0693/0028/9820/files/AbideFinals-HDTitleSlide.jpg?v=1715616029"],variants:[{title:"1-50",price:"297.00"},{title:"51-250",price:"397.00"},{title:"251+",price:"497.00"}]}},ZM={heading:"Everything you need to win",body:"A versatile set of teaching tools designed to inspire meaningful conversations, cultivate trust, encourage vulnerability, and create space for sharing the Gospel with clarity and impact.",bullets:["Compelling Teaching Guides","Rich Small Group Guides","Powerful Video Teaching"]},ix={heading:"Everything you need to win",body:"A versatile set of teaching tools designed to inspire meaningful conversations, cultivate trust, encourage vulnerability, and create space for sharing the Gospel with clarity and impact.",bullets:["Compelling Teaching Guides","Rich Small Group Guides","Culturally Relevant topics that don't compromise the truths of Scripture"]},ru={heading:"Capture Your Student's Attention",body:"Graphics, series titles, and topics are thoughtfully designed with students at the forefront. Each element is crafted to capture their attention and inspire meaningful conversations that ultimately point them toward Jesus.",bullets:["Excellent Series Graphics & Bumper Videos","Complete Powerpoint Slides","Social Media & Promo Materials"]},JM={heading:"Engage Your Parents & Volunteers With Confidence",body:"A range of resources designed to empower your volunteers to lead with confidence and keep parents actively connected to your ministry.",bullets:["Thoughtful Midweek Devotionals","Volunteer Series Guides & Audio / Video Insights","Informational Parent Emails"]},ax={heading:"Engage Your Parents & Volunteers With Confidence",body:"A range of resources designed to empower your volunteers to lead with confidence and keep parents actively connected to your ministry.",bullets:["Informational Parent Emails","Expert audio insights to help you and your volunteers confidently prepare for each series","Everything is designed to cultivate a culture of vulnerability and active engagement."]},JCe={"wld-vol-1":{welcomeHeading:"WLD Vol. 1 Offering",series:[{name:"Chosen",subtitle:"4 weeks on identity",weeks:["Week 1: Your Identity In Christ","Week 2: Gifts and Talents: What Unique Strengths do you Have?","Week 3: Overcoming Obstacles to Your Calling","Week 4: A Call to Serve"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/chosen-finding-your-path-in-faith-315643.jpg?v=1732114521"},{name:"Love & Logic",subtitle:"5 weeks on relationships",weeks:["Week 1: To Find The One You Must Be The One","Week 2: Timing is Everything","Week 3: Expectations","Week 4: Love Vs. Lust","Week 5: Goals & Growth"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/love-logic-678504.jpg?v=1732114521"},{name:"You Vs. You",subtitle:"4 weeks on physical fitness",weeks:["Week 1: Designed Masterpiece","Week 2: Fueling Your Temple","Week 3: Master Your Mindset: A Christ-Centered Perspective","Week 4: Unleashing Your Potential"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/you-vs-you-498160.jpg?v=1732114521"},{name:"BRB",subtitle:"2 weeks on easter",weeks:["Week 1: The Ultimate Plot twist","Week 2: The Ultimate Comeback"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/brb-416797.jpg?v=1732114521"},{name:"GOD (IRL)",subtitle:"4 weeks on spiritual formation",weeks:["Week 1: God, where are you?","Week 2: Experiencing God in Creation & Solitude","Week 3: Experiencing God in Serving Others","Week 4: Experiencing God in Community"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/god-irl-742983.jpg?v=1732114521"},{name:"Good Grief",subtitle:"5 weeks on grief",weeks:["Week 1: Denial","Week 2: Anger","Week 3: Bargaining","Week 4: Depression","Week 5: Acceptance"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/good-grief-157876.jpg?v=1732114521"},{name:"Rise Up",subtitle:"4 weeks on life lessons",weeks:["Week 1: Self-Aw
140areness & Self-Control","Week 2: Authority","Week 3: Trust","Week 4: Responsibility"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/rise-up-903031.jpg?v=1732114521"},{name:"The Downbeat",subtitle:"4 weeks on rest",weeks:["Week 1: The Art of Silence","Week 2: The Art of Absence","Week 3: Your Soul's Soundtrack","Week 4: The Restful Rhythm of Prayer"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/the-downbeat-273837.jpg?v=1732114521"},{name:"Navigators",subtitle:"4 weeks on emotions",weeks:["Week 1: Anger (The Secondary Emotion)","Week 2: Rebounding from Rejection","Week 3: Lost and Found: Overcoming the Fear of Abandonment","Week 4: Beyond the Shame: What's Your Story Worth?"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/navigators-629803.jpg?v=1732114521"},{name:"Real Talk",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Happiness","Week 2: Mental Health","Week 3: Money","Week 4: Do all religions lead to God?"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/real-talk-944465.jpg?v=1732114521"},{name:"Day 1's",subtitle:"4 weeks on friendship",weeks:["Week 1: Real Talk - Honest and Vulnerable Relationships","Week 2: Listen Up - Active Listening and Being Heard","Week 3: Handle It - Facing Conflict with Grace","Week 4: Real Ones - Building Real Friendships, Dealing with Toxicity, and Setting Boundaries."],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/day-1s-713613.jpg?v=1732114521"},{name:"1st Timothy",subtitle:"6 weeks on the book of 1st timothy",weeks:["Week 1: 1 Timothy 1","Week 2: 1 Timothy 2","Week 3: 1 Timothy 3","Week 4: 1 Timothy 4","Week 5: 1 Timothy 5","Week 6: 1 Timothy 6"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/1-timothy-693486.jpg?v=1732114521"},{name:"The King Is Here",subtitle:"4 weeks on christmas",weeks:["Week 1: The Hype vs. the Hope","Week 2: Facing the Opps","Week 3: The Perfect Gift","Week 4: Kings Seek the King"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/the-king-is-here-665501.jpg?v=1732114521"}],featureBlocks:[ZM,ru,JM]},"whole-life-discipleship-volume-2":{welcomeHeading:"Welcome to WLD Volume 2",series:[{name:"Essentials",subtitle:"4 weeks on christian foundations",weeks:["Week 1: God","Week 2: The Bible","Week 3: Prayer","Week 4: Spiritual Formation"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/ENG-Essentials-FearofGod-SermonSeries-HighDefinitionTitleSlide_1920x1080_0510d4a8-adf5-478f-a0a8-5d236537d377.jpg?v=1769659874"},{name:"Offline",subtitle:"4 weeks on relationships",weeks:["Week 1: Joy with God","Week 2: Joy with others","Week 3: Joy through emotions","Week 4: Joy through suffering"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Offline-SermonSeries_HighDefinitionTitleSlide_1920x1080_e720c016-b084-45dd-81c8-248ee8980d75.jpg?v=1769659874"},{name:"Build Different",subtitle:"4 weeks on the uniqueness of being Human",weeks:["Week 1: The Imago Dei","Week 2: Using your body for good","Week 3: Taking care of the body God gave us","Week 4: Rest"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Built-Different---Sermon-Series---HD-Title-Slide.png?v=1767898962"},{name:"In Their Shoes",subtitle:"4 weeks on the parables",weeks:["Week 1: The Good Samaritan","Week 2: The Prodigal Son","Week 3: The Sower","Week 4: The Talents"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/InTheirShoes-SermonSeries_Finals-Black_ENGHighDefinitionTitleSlide_1920x1080_7c0dcc12-d2aa-466e-bf7a-985a7a0de6dc.jpg?v=1769656284"},{name:"Unplugged",subtitle:"5 weeks on spiritual formation",weeks:["Week 1: The Impact Of Socials","Week 2: The Impact Of Family","Week 3: The Impact Of Friendships","Week 4: The Impact Of Emotional Awareness"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/UnpluggedFinalsHDTitle.jpg?v=1769656678"},{name:"Called",subtitle:"4 weeks on the life of david",weeks:["Week 1: Anointed, not assumed","Week 2: Crash course","Week 3: Know who you are","Week 4: The Creator over the call"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Called-SermonSeries_HighDefinitionTitleSlide_
1401920x1080_6db4e278-96af-46de-8e36-edca61c178bf.jpg?v=1769657291"},{name:"Kingdom Grind",subtitle:"4 weeks on entrepreneurship",weeks:["Week 1: Vision","Week 2: Integrity","Week 3: Stewardship","Week 4: Impact"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/KingdomGrind-SermonSeriesFinalsHDtitle.jpg?v=1774366641"},{name:"Fundamental",subtitle:"4 weeks on play",weeks:["Week 1: God Celebrates With You","Week 2: Unashamed Joy","Week 3: Joy is your strength","Week 4: The Purpose of fun"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/FUNdamental-SermonSeries-Finals2-HighDefinitionTitleSlide-_1920x1080_bc831ea9-0251-47a7-abed-97c0fac3feb9.jpg?v=1774367034"},{name:"Real Talk",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Pressure","Week 2: Loneliness","Week 3: Addiction","Week 4: Immigration"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/real-talk-944465.jpg?v=1732114521"},{name:"Ism",subtitle:"4 weeks on controversial conversations",weeks:["Week 1: Racism","Week 2: Sexism","Week 3: Classism","Week 4: Unity"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/ISM-SermonSeries-deliverables-1-HighDefinitionTitleSlide_1920x1080_5d212901-ef45-46f4-80bf-f7a13ee313f5.jpg?v=1774367242"},{name:"Unapologetic",subtitle:"4 weeks on other religions",weeks:["Week 1: LDS & Jesus","Week 2: Islam & Jesus","Week 3: Jehovah's W
140itnesses & Jesus","Week 4: Hebrew Israelites & Jesus"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/UNapologetic-GrungeHDTitle.jpg?v=1774367417"},{name:"Colossians",subtitle:"4 weeks on the book of Colossians",weeks:["Week 1: Colossians 1","Week 2: Colossians 2","Week 3: Colossians 3","Week 4: Colossians 4"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Colossians-SermonSeries-Finals-English-HighDefinitionTitleSlide-_1920x1080_156e766c-d81e-4cab-ab30-1fe21c0a196d.jpg?v=1774366313"},{name:"We Outside",subtitle:"12 week middle school specific series",weeks:["Week 1: Belonging","Week 2: Safe to Feel","Week 3: Play Matters","Week 4: You're In","Week 5: Growing Through It","Week 6: Respect Yourself","Week 7: More Than Labels","Week 8: Real Ones","Week 9: Be Yourself","Week 10: Hands and Feet","Week 11: Mind Right","Week 12: Sent Out"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/WeOutside-SermonSeries-Finals-HighDefinitionTitleSlide-_1920x1080_fd4b0d76-1942-42f4-9a66-09e135f90d61.jpg?v=1775082620"}],featureBlocks:[ru,ZM,JM]},"2022-complete-curriculum":{welcomeHeading:"Reframe Volume 1 Offering",series:[{name:"No Cap",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Sex is dope","Week 2: Drugs feel good","Week 3: You don't need to listen to your parents","Week 4: You don't need Jesus"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/no-cap-282990.jpg?v=1697744828"},{name:"Situationship",subtitle:"4 weeks on relationships",weeks:["Week 1: Romance","Week 2: Dating","Week 3: Singleness","Week 4: Is Marriage Worth it?"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/situationship-518505.jpg?v=1697744829"},{name:"Together",subtitle:"4 weeks on community",weeks:["Week 1: Why Community?","Week 2: Accountability","Week 3: Loneliness & Isolation","Week 4: Unity"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/together-407230.jpg?v=1697744829"},{name:"History",subtitle:"2 weeks on easter",weeks:["Week 1: The Incarnation","Week 2: The Resurrection"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/history-127455.jpg?v=1697744827"},{name:"TGMH",subtitle:"4 weeks on mental health",weeks:["Week 1: Anxiety","Week 2: Depression","Week 3: Trauma","Week 4: Attachment"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/nU0oO0jqQCO3s1H8jviF_file_b116a2a7-764a-44d1-8b37-4f205e7bfd41.jpg?v=1679668280"},{name:"The Centered Life",subtitle:"4 weeks on spiritual formation",weeks:["Week 1: Living at the Pace of the Kingdom","Week 2: Prayer","Week 3: Being Present","Week 4: Listening"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/the-centered-life-642973.jpg?v=1697744829"},{name:"Wisdom",subtitle:"4 weeks on biblical wisdom",weeks:["Week 1: Dealing with Problems","Week 2: Dealing with People","Week 3: Dealing with Pleasure","Week 4: Dealing with Pain"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/wisdom-526095.jpg?v=1697744783"},{name:"Story",subtitle:"5 weeks on the Gospel",weeks:["Week 1: Creation","Week 2: Fall","Week 3: Israel","Week 4: Redemption","Week 5: Restoration"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/story-673800.jpg?v=1697744829"},{name:"RLTK 2022",subtitle:"4 weeks on youth culture",weeks:["Week 1: Social Media","Week 2: Postmodernism","Week 3: Body Image","Week 4: Love"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/rltk-2022-575464.jpg?v=1697744828"},{name:"Labels",subtitle:"4 weeks on identity",weeks:["Week 1: The Labels We Give Ourselves","Week 2: The Labels Others Give Us","Week 3: The Labels The World Gives Us","Week 4: The Label God Gives Us"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/labels-672450.jpg?v=1697744828"},{name:"Roots",subtitle:"4 weeks on family",weeks:["Week 1: Pain","Week 2: Conflict","Week 3: Divorce","Week 4: A Good Family"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/roots-644485.jpg?v=1697744828"},{name:"Emmanuel",subtitle:"4 weeks on Jesus",weeks:["Week 1: God With Us","Week 2: God For Us","Week 3: God In Us","Week 4: God Through Us"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/emmanuel-431860.jpg?v=1697744827"}],featureBlocks:[ix,ru,ax]},"volume-3-bundle":{welcomeHeading:"Reframe Volume 2 Offering",series:[{name:"Culture",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Knowledge & Information","Week 2: Diversity","Week 3: Justice","Week 4: Being Morbid"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/culture-280324.jpg?v=1697744827"}
140,{name:"Cuffed",subtitle:"4 weeks on relationships",weeks:["Week 1: Am I ready?","Week 2: Dating / Situationships","Week 3: Sex","Week 4: Marriage"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/cuffed-793117.jpg?v=1697744826"},{name:"I've Got Questions",subtitle:"4 weeks on apologetics",weeks:["Week 1: How do you know there's a God?","Week 2: Why is there suffering in the world?","Week 3: Why is your religion the right one?","Week 4: Why do Christians not like LGBTQIA+ People?"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/ive-got-questions-852971.jpg?v=1697744828"},{name:"Foundation",subtitle:"2 weeks on easter",weeks:["Week 1: Your Foundation","Week 2: The Resurrection"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/foundation-808887.jpg?v=1697744827"},{name:"Flourish",subtitle:"4 weeks on mental health",weeks:["Week 1: Anxiety","Week 2: Depression","Week 3: Forgiveness","Week 4: Shame"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/flourish-880326.jpg?v=1697920939"},{name:"Abide",subtitle:"4 weeks on spiritual formation",weeks:["Week 1: Peace","Week 2: Rest","Week 3: Solitude & Silence","Week 4: Scripture"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/abide-756930.jpg?v=1697744826"},{name:"Ecclesiastes",subtitle:"7 weeks on biblical wisdom",weeks:["Week 1: Wealth","Week 2: Pleasure","Week 3: Friendship","Week 4: Wisdom","Week 5: Time","Week 6: Death","Week 7: The Gift of God"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/ecclesiastes-386000.jpg?v=1697744827"},{name:"RLTK",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Power","Week 2: Influencers","Week 3: LGBTQIA+","Week 4: Individuality"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/rltk-2023-950276.jpg?v=1697744828"},{name:"James",subtitle:"5 weeks on the book of James",weeks:["Week 1: James 1","Week 2: James 2","Week 3: James 3","Week 4: James 4","Week 5: James 5"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/the-book-of-james-953500.jpg?v=1697744829"},{name:"I AM",subtitle:"4 weeks on Jesus",weeks:["Week 1: The Bread of Life","Week 2: The Light of the World","Week 3: The Good Shepherd","Week 4: The Resurrection & The Life"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/i-am-391390.jpg?v=1697744827"},{name:"In My Feelings",subtitle:"4 weeks on emotions",weeks:["Week 1: Fear","Week 2: Anger","Week 3: Sadness","Week 4: Love"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/in-my-feelings-928618.jpg?v=1701159863"}],featureBlocks:[ix,ru,ax]},"2024-complete-curriculum":{welcomeHeading:"Reframe Volume 3 Offering",series:[{name:"Aesthetics",subtitle:"4 weeks on worldview & culture",weeks:["Week 1: Who am I? (Identity)","Week 2: Where am I? (culture)","Week 3: How am I? (Inner life)","Week 4: What am I? (Image bearer)"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/aesthetics-987299.jpg?v=1702094984"},{name:"FOMO",subtitle:"4 weeks on relationships",weeks:["Week 1: Friendships","Week 2: Dating","Week 3: Marriage","Week 4: Sex"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/fomo-867440.jpg?v=1702094984"},{name:"The Crew",subtitle:"4 weeks on friendships",weeks:["Week 1: God is community","Week 2: Who you kick it with matters","Week 3: Conflict","Week 4: Encouragement"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/the-crew-492140.jpg?v=1702094985"},{name:"Kingdom",subtitle:"4 weeks on Jesus",weeks:["Week 1: The Kingdoms of this world","Week 2: The Kingdom of God","Week 3: The Cross","Week 4: The Resurrection"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/kingdom-604396.jpg?v=1702094984"},{name:"Resilience",subtitle:"5 weeks on mental health",weeks:["Week 1: Inner Strength","Week 2: Psychological flexibility","Week 3: Mental toughness","Week 4: Character","Week 5: Adaptability"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/resilience-478748.jpg?v=1702094984"},{name:"Thrive",subtitle:"4 weeks on spiritual formation",weeks:["Week 1: The Power of Habit","Week 2: Cultivating Humility","Week 3: Cultivating Hope","Week 4: Cultivating Happiness"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/thrive-711712.jpg?v=1702094985"},{name:"LIFE",subtitle:"4 weeks on wisdom literature",weeks:["Week 1: Suffering - Job","Week 2: Meaninglessness - Ecclesiastes","Week 3: Practical Wisdom - Proverbs","Week 4: The Fear of the Lord"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/life-335175.jpg?v=1702094984"},{name:"Say Less",subtitle:"4 weeks on the Gospel",weeks:["Week 1: The Gospel","Week 2: Sharing the Gospel","Week 3: Living out the Gospel","Week 4: Embodying the Gospel"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/say-less-646796.jpg?v=1702094985"},{name:"RLTK",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Suicide/Self-harm","Week 2: AI","Week 3: Tolerance","Week 4: Pornography"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/rltk-2024-935258.jpg?v=1702094985"},{name:"Telos",subtitle:"4 weeks on purpose",weeks:["Week 1: Design","Week 2: Direction - Good & Evil","Week 3: Purpose","Week 4: Responsibility"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/telos-227776.jpg?v=1702094985"},{name:"1 Peter",subtitle:"5 weeks on the book 1 peter",weeks:["Week 1: 1 Peter 1","Week 2: 1 Peter 2","Week 3: 1 Peter 3","Week 4: 1 Peter 4","Week 5: 1 Peter 5"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/1-peter-429853.jpg?v=1702094984"},{name:"Incarnation",subtitle:"4 weeks on Jesus",weeks:["Week 1: Love","Week 2: Peace","Week 3: Joy","Week 4: Grace"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/incarnation-407953.jpg?v=1702094984"}],featureBlocks:[ix,ru,ax]}
140,"whole-life-discipleship":{welcomeHeading:"UYWI X Reframe Whole Life Discipleship Toolkit Offering",series:[{name:"TGMH",subtitle:"4 weeks on mental health",weeks:["Week 1: Anxiety","Week 2: Depression","Week 3: Trauma","Week 4: Attachment"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/nU0oO0jqQCO3s1H8jviF_file_b116a2a7-764a-44d1-8b37-4f205e7bfd41.jpg?v=1679668280"},{name:"Flourish",subtitle:"4 weeks on mental health",weeks:["Week 1: Anxiety","Week 2: Depression","Week 3: Forgiveness","Week 4: Shame"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/flourish-880326.jpg?v=1697920939"},{name:"In My Feelings",subtitle:"4 weeks on emotions",weeks:["Week 1: Fear","Week 2: Anger","Week 3: Sadness","Week 4: Love"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/in-my-feelings-928618.jpg?v=1701159863"},{name:"I've Got Questions",subtitle:"4 weeks on apologetics",weeks:["Week 1: How do you know there's a God?","Week 2: Why is there suffering in the world?","Week 3: Why is your religion the right one?","Week 4: Why do Christians not like LGBTQIA+ People?"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/ive-got-questions-852971.jpg?v=1697744828"},{name:"Culture",subtitle:"4 weeks on cultural issues",weeks:["Week 1: Knowledge & Information","Week 2: Diversity","Week 3: Justice","Week 4: Being Morbid"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/culture-280324.jpg?v=1697744827"},{name:"RLTK",subtitle:"4 weeks on social issues",weeks:["Week 1: Power","Week 2: Influencers","Week 3: LGBTQIA+","Week 4: Individuality"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/rltk-2023-950276.jpg?v=1697744828"},{name:"Labels",subtitle:"4 weeks on identity",weeks:["Week 1: The Labels We Give Ourselves","Week 2: The Labels Others Give Us","Week 3: The Labels The World Gives Us","Week 4: The Label God Gives Us"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/labels-672450.jpg?v=1697744828"},{name:"James",subtitle:"5 weeks",weeks:["Week 1: James 1","Week 2: James 2","Week 3: James 3","Week 4: James 4","Week 5: James 5"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/the-book-of-james-953500.jpg?v=1697744829"},{name:"Ecclesiastes",subtitle:"7 weeks",weeks:["Week 1: Wealth","Week 2: Pleasure","Week 3: Friendship","Week 4: Wisdom","Week 5: Time","Week 6: Death","Week 7: The Gift of God"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/ecclesiastes-386000.jpg?v=1697744827"},{name:"Philippians",subtitle:"7 weeks",weeks:["Week 1: Thanksgiving & Prayer","Week 2: Paul's Chains Advance the Gospel & Life Worthy of the Gospel","Week 3: Imitating Christ's Humility & Do Everything Without Grumbling","Week 4: Timothy & Epaphroditus","Week 5: No confidence in the Flesh & Following Paul's Example","Week 6: Closing Appeal & Final Exhortations","Week 7: Thanks For their Gifts & Final Greetings"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/philippians-413507.jpg?v=1697744828"},{name:"The Centered Life",subtitle:"4 weeks on spiritual formation",weeks:["Week 1: Living at the Pace of the Kingdom","Week 2: Prayer","Week 3: Being Present","Week 4: Listening"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/the-centered-life-642973.jpg?v=1697744829"},{name:"Abide",subtitle:"4 weeks on rest",weeks:["Week 1: Peace","Week 2: Rest","Week 3: Solitude & Silence","Week 4: Scripture"],image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/products/abide-756930.jpg?v=1697744826"}],featureBlocks:[ix,ru,ax]}};var e6="_shopify_y",t6="_shopify_s",eEe="X-Shopify-VisitToken",tEe="X-Shopify-UniqueToken",rw={current:null};function Yg(){let e;if(typeof window<"u"&&typeof window.performance<"u")try{const t=/^https?:\/\/([^/]+)(\/api\/(?:unstable|2\d{3}-\d{2})\/graphql\.json(?=$|\?))?/,n=performance.getEntriesByType("resource");let r;for(let a=n.length-1;a>=0;a--){const s=n[a];if(s.initiatorType!=="fetch")continue;const l=window.location.host,u=s.name.match(t);if(!u)continue;const[,d,f]=u;if(d===l||f&&d?.endsWith(`.${l}`)){const m=n6(s);if(m){r=m;break}}}if(r&&(e=r),e?rw.current=e:rw.current&&(e=rw.current),!e){const a=performance.getEntriesByType("navigation")[0];e=n6(a,!1)}}catch{}if(!e){const t=typeof arguments[0]=="string"?arguments[0]:typeof document<"u"?document.cookie:"";e={uniqueToken:t.match(/\b_shopify_y=([^;
140]+)/)?.[1]||"",visitToken:t.match(/\b_shopify_s=([^;]+)/)?.[1]||"",consent:t.match(/\b_tracking_consent=([^;]+)/)?.[1]||""}}return e}function n6(e,t=!0){let n="",r="",a="";const s=e.serverTiming;if(s&&s.length>=3)for(let l=s.length-1;l>=0;l--){const{name:u,description:d}=s[l];if(!(!u||!d)&&(u==="_y"?n=d:u==="_s"?r=d:u==="_cmp"&&(a=d),n&&r&&a))break}return n&&r&&(!t||a)?{uniqueToken:n,visitToken:r,consent:a}:void 0}var po={PAGE_VIEW:"PAGE_VIEW",ADD_TO_CART:"ADD_TO_CART",PAGE_VIEW_2:"PAGE_VIEW_2",COLLECTION_VIEW:"COLLECTION_VIEW",PRODUCT_VIEW:"PRODUCT_VIEW",SEARCH_VIEW:"SEARCH_VIEW"},Cx={collection:"collection",product:"product",search:"search"},nEe={headless:"headless"},r6={hydrogen:"6167201",headless:"12875497473"};function ga(e,t){return{schema_id:e,payload:t,metadata:{event_created_at_ms:Date.now()}}}function Zi(e){const t={id:"",resource:null,resourceId:null,search:"",searchParams:new URLSearchParams,hash:""};if(typeof e!="string")return t;try{const{search:n,searchParams:r,pathname:a,hash:s}=new URL(e),l=a.split("/"),u=l[l.length-1],d=l[l.length-2];return!u||!d?t:{id:`${u}${n}${s}`||"",resource:d??null,resourceId:u||null,search:n,searchParams:r,hash:s}}catch{return t}}function Vi(e,t){return typeof e!="object"?{}:(Object.entries(e).forEach(([n,r])=>{r&&(t[n]=r)}),t)}function rEe(e){return typeof document>"u"?(console.error(`${e} should only be used within the useEffect callback or event handlers`),!0):!1}var i6="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function Qg(){let e="";try{const t=window.crypto,n=new Uint16Array(31);t.getRandomValues(n);let r=0;e=i6.replace(/[x]/g,a=>{const s=n[r]%16,l=a==="x"?s:s&3|8;return r++,l.toString(16)}).toUpperCase()}catch{e=i6.replace(/[x]/g,n=>{const r=Math.random()*16|0;return(n==="x"?r:r&3|8).toString(16)}).toUpperCase()}return`${iEe()}-${e}`}function iEe(){let e=0,t=0;e=new Date().getTime()>>>0;try{t=performance.now()>>>0}catch{t=0}return Math.abs(e+t).toString(16).toLowerCase().padStart(8,"0")}var aEe="trekkie_storefront_page_view/1.4",sEe="myshopify.dev";function a6(e){const t=e,{id:n,resource:r}=Zi(t.resourceId),a=r?r.toLowerCase():void 0;return[ga(aEe,Vi({pageType:t.pageType,customerId:parseInt(Zi(t.customerId).id||"0"),resourceType:a,resourceId:parseInt(n)},oEe(t)))]}function oEe(e){return{appClientId:e.shopifySalesChannel?r6[e.shopifySalesChannel]:r6.headless,isMerchantRequest:lEe(e.url),hydrogenSubchannelId:e.storefrontId||e.hydrogenSubchannelId||"0",isPersistentCookie:e.hasUserConsent,uniqToken:e.uniqueToken,visitToken:e.visitToken,microSessionId:Qg(),microSessionCount:1,url:e.url,path:e.path,search:e.search,referrer:e.referrer,title:e.title,shopId:parseInt(Zi(e.shopId).id),currency:e.currency,contentLanguage:e.acceptedLanguage||"en"}}function lEe(e){if(typeof e!="string")return!1;const t=new URL(e).hostname;return t.indexOf(sEe)!==-1||t==="localhost"}var os="custom_storefront_customer_tracking/1.2",Kz="page_rendered",Yz="collection_page_rendered",Qz="product_page_rendered",cEe="product_added_to_cart",Xz="search_submitted";function lm(e){return{canonical_url:e.canonicalUrl||e.url,customer_id:parseInt(Zi(e.customerId).id||"0")}}function uEe(e){const t=e,n=lm(t),r=t.pageType,a=[];switch(a.push(ga(os,Vi({event_name:Kz,...n},ls(t)))),r){case Cx.collection:a.push(ga(os,Vi({event_name:Yz,...n,collection_name:t.collectionHandle,collection_id:parseInt(Zi(t.collectionId).id)},ls(t))));break;case Cx.product:a.push(ga(os,Vi({event_name:Qz,...n,products:Ik(t.products),total_value:t.totalValue},ls(t))));break;case Cx.search:a.push(ga(os,Vi({event_name:Xz,...n,search_string:t.searchString},ls(t))));break}return a}function dEe(e){const t=e;return[ga(os,Vi({event_name:Kz,...lm(t)},ls(t)))]}function fEe(e){const t=e;return[ga(os,Vi({event_name:Yz,...lm(t),collection_name:t.collectionHandle,collection_id:parseInt(Zi(t.collectionId).id)},ls(t)))]}function hEe(e){const t=e;return[ga(os,Vi({event_name:Qz,...lm(t),products:Ik(t.products),total_value:t.totalValue},ls(t)))]}function mEe(e){const t=e;return[ga(os,Vi({event_name:Xz,...lm(t),search_string:t.searchString},ls(t)))]}function pEe(e){const t=e,n=Zi(t.cartId);return[ga(os,Vi({event_name:cEe,customerId:t.customerId,cart_token:n?.id?`${n.id}`:null,total_value:t.totalValue,products:Ik(t.products),customer_id:parseInt(Zi(t.customerId).id||"0")},ls(t)))]}function ls(e){const t=e;return{source:e.shopifySalesChannel||nEe.headless,asset_version_id:e.assetVersionId||"2026.4.3",hydrogenSubchannelId:e.storefrontId||e.hydrogenSubchannelId||"0",is_persistent_c
140ookie:e.hasUserConsent,deprecated_visit_token:e.visitToken,unique_token:e.uniqueToken,event_time:Date.now(),event_id:Qg(),event_source_url:e.url,referrer:e.referrer,user_agent:e.userAgent,navigation_type:e.navigationType,navigation_api:e.navigationApi,shop_id:parseInt(Zi(e.shopId).id),currency:e.currency,ccpa_enforced:t.ccpaEnforced||!1,gdpr_enforced:t.gdprEnforced||!1,gdpr_enforced_as_string:t.gdprEnforced?"true":"false",analytics_allowed:e.analyticsAllowed||!1,marketing_allowed:e.marketingAllowed||!1,sale_of_data_allowed:e.saleOfDataAllowed||!1}}function Ik(e){return e?e.map(t=>{const n=Vi({variant_gid:t.variantGid,category:t.category,sku:t.sku,product_id:parseInt(Zi(t.productGid).id),variant_id:parseInt(Zi(t.variantGid).id)},{product_gid:t.productGid,name:t.name,variant:t.variantName||"",brand:t.brand,price:parseFloat(t.price),quantity:Number(t.quantity||0)});return JSON.stringify(n)}):[]}function Zz(e,t){const{eventName:n,payload:r}=e;if(!r.hasUserConsent)return Promise.resolve();let a=[];const s=r;return n===po.PAGE_VIEW?a=a.concat(a6(s),uEe(s)):n===po.ADD_TO_CART?a=a.concat(pEe(r)):n===po.PAGE_VIEW_2?a=a.concat(a6(s),dEe(s)):n===po.COLLECTION_VIEW?a=a.concat(fEe(s)):n===po.PRODUCT_VIEW?a=a.concat(hEe(s)):n===po.SEARCH_VIEW&&(a=a.concat(mEe(s))),a.length?gEe(a,t):Promise.resolve()}function xEe(){return typeof window>"u"||!window.navigator?!1:/Chrome-Lighthouse/.test(window.navigator.userAgent)}var s6="sendShopifyAnalytics request is unsuccessful";function gEe(e,t){if(xEe())return Promise.resolve();const n={events:e,metadata:{event_sent_at_ms:Date.now()}};try{return fetch(t?`https://${t}/.well-known/shopify/monorail/unstable/produce_batch`:"https://monorail-edge.shopifysvc.com/unstable/produce_batch",{method:"post",headers:{"content-type":"text/plain"},body:JSON.stringify(n)}).then(r=>{if(!r.ok)throw new Error("Response failed");return r.text()}).then(r=>{r&&JSON.parse(r).result.forEach(a=>{a.status!==200&&console.error(s6,` 141 142`,a.message)})}).catch(r=>{console.error(s6,r)})}catch{return Promise.resolve()}}function yEe(){if(rEe("getClientBrowserParameters"))return{uniqueToken:"",visitToken:"",url:"",path:"",search:"",referrer:"",title:"",userAgent:"",navigationType:"",navigationApi:""};const[e,t]=wEe(),n=Yg();return{uniqueToken:n.uniqueToken,visitToken:n.visitToken,url:location.href,path:location.pathname,search:location.search,referrer:document.referrer,title:document.title,userAgent:navigator.userAgent,navigationType:e,navigationApi:t}}function vEe(){try{const e=performance?.getEntriesByType&&performance?.getEntriesByType("navigation");if(e&&e[0]){const t=window.performance.getEntriesByType("navigation")[0].type;return t&&t.toString()}}catch{}}function bEe(){try{if(PerformanceNavigation&&performance?.navigation?.type!==null&&performance?.navigation?.type!==void 0){const e=performance.navigation.type;switch(e){case PerformanceNavigation.TYPE_NAVIGATE:return"navigate";case PerformanceNavigation.TYPE_RELOAD:return"reload";case PerformanceNavigation.TYPE_BACK_FORWARD:return"back_forward";default:return`unknown: ${e}`}}}catch{}}function wEe(){try{let e="PerformanceNavigationTiming",t=vEe();return t||(t=bEe(),e="performance.navigation"),t?[t,e]:["unknown","unknown"]}catch{}return["error","error"]}function jEe(e,t,n={}){let r=e+"="+encodeURIComponent(t);return n.expires&&(r+="; Expires="+new Date(n.expires).toUTCString()),n.maxage!=null&&n.maxage>=0&&(r+="; Max-Age="+(n.maxage|0)),n.domain&&(r+="; Domain="+n.domain),n.path&&(r+="; Path="+n.path),n.samesite&&(r+="; SameSite="+n.samesite),(n.secure||n.samesite==="None")&&(r+="; Secure"),n.httponly&&(r+="; HttpOnly"),r}var NEe=3600*24*360*1,SEe=1800;function kEe(e){const{hasUserConsent:t,domain:n="",checkoutDomain:r="",storefrontAccessToken:a,fetchTrackingValues:s,ignoreDeprecatedCookies:l=!1}=e||{},u=AEe({storefrontAccessToken:a,fetchTrackingValues:s,checkoutDomain:r});return v.useEffect(()=>{if(l||!u)return;let d=n||window.location.host;if(r){const m=r.split(".").reverse(),p=d.split(".").reverse(),g=[];m.forEach((y,w)=>{y===p[w]&&g.push(y)}),d=g.reverse().join(".")}/^localhost/.test(d)&&(d="");const f=d?/^\./.test(d)?d:`.${d}`:"";if(t){const m=Yg();if((m.uniqueToken||m.visitToken||"").startsWith("00000000-"))return;sx(e6,m.uniqueToken||Qg(),NEe,f),sx(t6,m.visitToken||Qg(),SEe,f)}else sx(e6,"",0,f),sx(t6,"",0,f)},[u,t,n,r,l]),u}function sx(e,t,n,r){document.cookie=jEe(e,t,{maxage:n,domain:r,samesite:"Lax",path:"/"})}async function o6(e,t=""){const{uniqueToken:n,visitToken:r}=Yg(),a=await fetch(`${t.replace(/\/+$/,"")}/api/unstable/graphql.json`,{method:"POST",headers:{"Content-Type":"application/json",...e&&{"X-Shopify-Storefront-Access-Token":e},...r||n?{[eEe]:r,[tEe]:n}:void 0},body:JSON.stringify({query:"query ensureCookies { consentManagement { cookies(visitorConsent:{}) { cookieDomain } } }"})});if(!a.ok)throw new Error(`Failed to fetch consent from browser: ${a.status} ${a.statusText}`);await a.json(),Yg()}function AEe({checkoutDomain:e,storefrontAccessToken:t,fetchTrackingValues:n=!1}){const[r,a]=v.useState(!n),s=v.useRef(!1);return v.useEffect(()=>{if(!n){a(!0);return}s.current||(s.current=!0,o6(t).catch(l=>
142e?o6(t,e):Promise.reject(l)).catch(l=>{console.warn("[h2:warn:useShopifyCookies] Failed to fetch tracking values from browser: "+(l instanceof Error?l.message:String(l)))}).finally(()=>{a(!0)}))},[e,n,t]),r}const CEe={"wld-vol-1":{productGid:"gid://shopify/Product/9920572424476",variants:[{gid:"gid://shopify/ProductVariant/54099044991260",title:"1-50",price:"497.00"},{gid:"gid://shopify/ProductVariant/54099045024028",title:"51-250",price:"697.00"},{gid:"gid://shopify/ProductVariant/54099045056796",title:"251 +",price:"897.00"}]},"whole-life-discipleship-volume-2":{productGid:"gid://shopify/Product/10648931565852",variants:[{gid:"gid://shopify/ProductVariant/54099064848668",title:"1-50",price:"597.00"},{gid:"gid://shopify/ProductVariant/54099064881436",title:"51-250",price:"797.00"},{gid:"gid://shopify/ProductVariant/54099064914204",title:"251+",price:"997.00"}]},"2022-complete-curriculum":{productGid:"gid://shopify/Product/8897015251228",variants:[{gid:"gid://shopify/ProductVariant/54099131990300",title:"1-50",price:"297.00"},{gid:"gid://shopify/ProductVariant/54099132023068",title:"51-250",price:"397.00"},{gid:"gid://shopify/ProductVariant/54099132055836",title:"251+",price:"497.00"}]},"volume-3-bundle":{productGid:"gid://shopify/Product/8052200964380",variants:[{gid:"gid://shopify/ProductVariant/54099141165340",title:"1-50",price:"397.00"},{gid:"gid://shopify/ProductVariant/54099141198108",title:"51-250",price:"497.00"},{gid:"gid://shopify/ProductVariant/54099141230876",title:"251+",price:"597.00"}]},"2024-complete-curriculum":{productGid:"gid://shopify/Product/8896756384028",variants:[{gid:"gid://shopify/ProductVariant/54099144409372",title:"1-50",price:"397.00"},{gid:"gid://shopify/ProductVariant/54099144442140",title:"51-250",price:"497.00"},{gid:"gid://shopify/ProductVariant/54099144474908",title:"251+",price:"597.00"}]},"whole-life-discipleship":{productGid:"gid://shopify/Product/9364569555228",variants:[{gid:"gid://shopify/ProductVariant/54099146932508",title:"1-50",price:"297.00"},{gid:"gid://shopify/ProductVariant/54099146965276",title:"51-250",price:"397.00"},{gid:"gid://shopify/ProductVariant/54099146998044",title:"251+",price:"497.00"}]}},EEe="gid://shopify/Shop/69300289820",TEe="USD",_Ee=CEe;function Jz(){return window.location.protocol!=="https:"?void 0:`${window.location.host}/api`}function eV(){return{...yEe(),shopId:EEe,currency:TEe,acceptedLanguage:"EN",hasUserConsent:!0}}function l6(){return/(?:^|;\s*)_shopify_y=[^;]+/.test(document.cookie)}let iw=null;function OEe(){return iw||(iw=new Promise(e=>{if(l6()){e();return}const t=Date.now(),n=window.setInterval(()=>{(l6()||Date.now()-t>8e3)&&(window.clearInterval(n),e())},200)})),iw}let c6=Promise.resolve();function u6(e){const t=document.cookie.match(new RegExp(`(?:^|;\\s*)${e}=([^;]+)`));return t?decodeURIComponent(t[1]):null}function PEe(){try{fetch("/api/page-views",{method:"POST",headers:{"Content-Type":"application/json"},keepalive:!0,body:JSON.stringify({path:window.location.pathname,visitorToken:u6("_shopify_y"),sessionToken:u6("_shopify_s"),referrer:document.referrer||null})}).catch(()=>{})}catch{}}function tV(e){c6=c6.then(OEe).then(()=>{PEe(),e()}).catch(()=>{})}function nV(){tV(()=>{Zz({eventName:po.PAGE_VIEW,payload:eV()},Jz()).catch(()=>{})})}function rV(e){const t=_Ee[e.handle];if(!t){nV();return}const n=t.variants[e.variantIndex??0]??t.variants[0],r={productGid:t.productGid,name:e.title,brand:"Reframe Youth",price:n?.price??"0.00",...n?{variantGid:n.gid,variantName:n.title}:{}};tV(()=>{Zz({eventName:po.PAGE_VIEW,payload:{...eV(),pageType:Cx.product,resourceId:t.productGid,products:[r],totalValue:n?parseFloat(n.price):void 0}},Jz()).catch(()=>{})})}const MEe=[{label:"Visa",mark:"visa"},{label:"Mastercard",mark:"mastercard"},{label:"American Express",mark:"amex"},{label:"PayPal",mark:"paypal"},{label:"Apple Pay",mark:"apple-pay"},{label:"Google Pay",mark:"google-pay"},{label:"Shop Pay",mark:"shop-pay"},{label:"Amazon Pay",mark:"amazon-pay"},{label:"Cash App Pay",mark:"cash-app-pay"},{label:"Afterpay",mark:"afterpay"}];function REe({mark:e}){switch(e){case"visa":return i.jsx("span",{className:"text-[11px] font-black italic tracking-[-0.1em] text-[#1A1F71]",children:"VISA"});case"mastercard":return i.jsxs("span",{className:"flex items-center","aria-hidden":"true",children:[i.jsx("span",{className:"size-[15px] rounded-full bg-[#EB001B]"}),i.jsx("span",{className:"-ml-[6px] size-[15px] rounded-full bg-[#F79E1B] mix-blend-multiply"})]});case"amex":return i.jsx("span",{className:"rounded-[2px] bg-[#006FCF] px-1 py-[2px] text-[8px] font-black tracking-[-0.04em] text-white",children:"AMEX"});case"paypal":return i.jsx("span",{className:"text-[11px] font-black italic tracking-[-0.08em] text-[#003087]",children:"PayPal"});case"apple-pay":return i.jsx("span",{className:"text-[10px] font-black tracking-[-0.06em] text-[#111111]",children:" Pay"});case"google-pay":return i.jsxs("span",{className:"text-[10px] font-black tracking-[-0.06em] text-[#111111]",children:[i.jsx("span",{className:"text-[#4285F4]",children:"G"})," Pay"]});case"shop-pay":return i.jsx("span",{className:"rounded-[3px] bg-[#5A31F4] px-1 py-[2px] text-[8px] font-black tracking-[-0.04em] text-white",children:"shop"});case"amazon-pay":return i.jsxs("span",{className:"text-[8px] font-black leading-none tracking-[-0.06em] text-[#232F3E]",children:["amazon ",i.jsx("span",{className:"text-[#FF9900]",children:"pay"})]});case"cash-app-pay":return i.jsxs("span",{className:"text-[9px] font-black leading-none tracking-[-0.06em] text-[#00B637]",children:[i.jsx("span",{className:"mr-0.5 text-[12px]",children:"$"})," Cash App"]});case"afterpay":return i.jsx("span",{className:"text-[9px] font-black leading-none tracking-[-0.06em] text-[#00B67A]",children:"afterpay"})}}function iV({dark:e=!1,compact:t=!1,className:n=""}){return i.jsxs("div",{className:`${n} ${e?"text-white/60":"text-[#1A1A1A]/55"}`,children:[i.jsx("p",{className:`m-0 text-center font-extrabold uppercase tracking-[0.14em] ${t?"text-[9px]":"text-[10px]"}`,children:"Payment options at checkout"}),i.jsx("div",{className:`mt-2 flex flex-wrap justify-center ${t?"gap-1.5":"gap-2"}`,children:MEe.map(({label:r,mark:a})=>i.jsx("span",{title:r,"aria-label":r,className:`inline-flex items-center justify-center rounded-[6px] border bg-white ${t?"h-7 min-w-[39px] px-2":"h-8 min-w-[42px] px-2.5"} ${e?"border-white/15":"border-[#1A1A1A]/10"}`,children:i.jsx(REe,{mark:a})},r))}),i.jsx("p",{className:`m-0 mt-2 text-center font-medium ${t?"text-[10px]":"text-[11px]"}`,children:"Options may vary by device, location, and eligibility."})]})}
142const d6="Reframe Youth",Io={"/":{title:"Youth Ministry Curriculum That Sparks Real Conversations",description:"Conversation-driven youth ministry curriculum where no topic is off-limits. Relevant to culture, faithful to Scripture, built by leaders in the trenches.",path:"/"},"/about":{title:"About: Bridging Faith and Culture in Youth Ministry",description:"Meet the team behind Reframe Youth: a licensed counselor and youth pastors creating curriculum that helps students navigate culture without losing their faith.",path:"/about"},"/training":{title:"The Art of Conversation Training",description:"A free conversation training for youth leaders and parents. Ten short videos, real stories from ministry and parenting, built by leaders in the trenches.",path:"/training"},"/tools":{title:"Free Youth Ministry Tools for Leaders",description:"Free, research-grounded tools for youth leaders: private assessments, ministry surveys, curriculum recommendations, and conversation training.",path:"/tools"},"/self-assessment":{title:"Free Mental Health Self-Assessment for Youth Leaders",description:"Take a free, private mental health self-assessment for youth leaders using clinically validated screenings for anxiety, depression, trauma, and dissociation.",path:"/self-assessment"},"/build-bundle":{title:"Build Your Curriculum Bundle: Save on Series",description:"Mix and match youth ministry series to build a custom curriculum bundle. Pick the topics your students need and save when you bundle multiple series.",path:"/build-bundle"},"/curriculum-quiz":{title:"Curriculum Quiz: Find the Right Series for Your Group",description:"Answer a few quick questions about your youth group and get a personalized youth ministry curriculum recommendation matched to your students' needs.",path:"/curriculum-quiz"},"/ministry-survey":{title:"Ministry Health Survey: Hear From Your Students",description:"An anonymous student survey that measures the health of your youth ministry across safety, trust, belonging, and more, with a clear dashboard for leaders.",path:"/ministry-survey"}},DEe="opengraph.jpg";function xi(e,t,n){let r=document.head.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement("meta"),r.setAttribute(e,t),document.head.appendChild(r)),r.setAttribute("content",n)}function IEe(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",e)}function LEe(e,t){let n=document.head.querySelector(`script[data-json-ld="${e}"]`);n||(n=document.createElement("script"),n.type="application/ld+json",n.dataset.jsonLd=e,document.head.appendChild(n)),n.textContent=JSON.stringify(t).replace(/</g,"\\u003c")}function aV(e,t){v.useEffect(()=>{if(t)return LEe(e,t),()=>{document.head.querySelector(`script[data-json-ld="${e}"]`)?.remove()}},[e,t])}function Lo({title:e,description:t,path:n}){v.useEffect(()=>{const r=`${e} | ${d6}`,a=window.location.origin,s="/".replace(/\/$/,""),l=`${a}${s}${n==="/"?"/":n}`,u=`${a}${s}/${DEe}`;document.title=r,xi("name","description",t),IEe(l),xi("property","og:type","website"),xi("property","og:site_name",d6),xi("property","og:locale","en_US"),xi("property","og:title",r),xi("property","og:description",t),xi("property","og:url",l),xi("property","og:image",u),xi("name","twitter:card","summary_large_image"),xi("name","twitter:title",r),xi("name","twitter:description",t),xi("name","twitter:image",u)},[e,t,n])}const $Ee=new Set(["a","b","blockquote","br","code","div","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","li","ol","p","pre","span","strong","table","tbody","td","th","thead","tr","u","ul"]),BEe=new Set(["class","title"]),FEe={a:new Set(["href","target","rel"]),img:new Set(["src","alt","width","height","loading"]),td:new Set(["colspan","rowspan"]),th:new Set(["colspan","rowspan","scope"])};function UEe(e,t){const n=e.trim().replace(/[\u0000-\u001F\u007F\s]+/g,"");if(!n)return t==="href";if(n.startsWith("/")||n.startsWith("#"))return!0;try{const r=new URL(n,window.location.origin);return r.protocol==="http:"||r.protocol==="https:"?!0:t==="href"&&(r.protocol==="mailto:"||r.protocol==="tel:")}catch{return!1}}function sV(e){const t=new DOMParser().parseFromString(e,"text/html"),n=Array.from(t.body.querySelectorAll("*")).reverse();for(const r of n){const a=r.tagName.toLowerCase();if(!$Ee.has(a)){a==="script"||a==="style"||a==="iframe"||a==="object"||a==="embed"?r.remove():r.replaceWith(...Array.from(r.childNodes));continue}const s=FEe[a]??new Set;for(const l of Array.from(r.attributes)){const u=l.name.toLowerCase();if(!BEe.has(u)&&!s.has(u)){r.removeAttribute(l.name);continue}(u==="href"||u==="src")&&!UEe(l.value,u)&&r.removeAttribute(l.name)}
142a==="a"&&r.getAttribute("target")==="_blank"&&r.setAttribute("rel","noopener noreferrer"),a==="img"&&r.setAttribute("loading","lazy")}return t.body.innerHTML}const zEe="/",VEe=["1-50 students","51-250","251+"],f6=["1-50","51-250","251+"],WEe=[{icon:Fr,label:"Teaching Guides"},{icon:Yl,label:"Small Group Guides"},{icon:U8,label:"Series Graphics"},{icon:M8,label:"Video Teaching"}],qEe=ZCe;function HEe(e){return new DOMParser().parseFromString(e,"text/html").body.textContent?.replace(/\s+/g," ").trim()??""}const cl=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e});function h6(e){return`$${Math.round(parseFloat(e))}`}const m6=[Gu,wae,$ae];function GEe({series:e,compact:t}){const[n,r]=v.useState(!t);return i.jsxs("div",{className:"rounded-[16px] bg-white border border-black/5 shadow-[0_1px_3px_rgba(0,0,0,0.05)] overflow-hidden",children:[e.image&&i.jsx("img",{src:e.image,alt:e.name,loading:"lazy",className:"w-full aspect-video object-cover object-center block"}),i.jsxs("button",{type:"button",onClick:()=>t&&r(a=>!a),"aria-expanded":t?n:void 0,className:`w-full text-left px-[22px] pt-[20px] ${n?"pb-[16px]":"pb-[20px]"} ${t?"cursor-pointer":"cursor-default"} flex items-start justify-between gap-3`,children:[i.jsxs("div",{children:[i.jsx("h3",{className:"m-0 text-[19px] leading-[1.1] tracking-[-0.02em] font-black text-[#1A1A1A]",children:e.name}),i.jsx("div",{className:"mt-[6px] text-[11.5px] font-extrabold tracking-[0.14em] uppercase text-primary",children:e.subt
142itle})]}),t&&i.jsx("span",{className:"shrink-0 mt-1 text-[#1A1A1A]/50",children:i.jsx(Gi,{className:`w-5 h-5 transition-transform ${n?"rotate-180":""}`})})]}),n&&i.jsx("ul",{className:"list-none m-0 px-[22px] pb-[22px] pt-0 flex flex-col gap-[9px]",children:e.weeks.map((a,s)=>i.jsxs("li",{className:"text-[14px] leading-[1.4] text-[#4a4a4c] font-medium flex gap-2.5",children:[i.jsx("span",{className:"shrink-0 mt-[7px] w-1.5 h-1.5 rounded-full bg-primary"}),i.jsx("span",{children:a})]},s))})]})}function KEe(){const[,e]=kK("/products/:handle"),t=e?.handle??"",n=qEe[t],r=v.useMemo(()=>sV(n?.bodyHtml??""),[n?.bodyHtml]),a=v.useMemo(()=>n?{"@context":"https://schema.org","@type":"Product",name:n.title,url:`${window.location.origin}${"/".replace(/\/$/,"")}/products/${n.handle}`,image:n.images,description:HEe(n.bodyHtml),offers:n.variants.map(L=>({"@type":"Offer",name:L.title,price:L.price,priceCurrency:"USD",url:`${window.location.origin}${"/".replace(/\/$/,"")}/products/${n.handle}`}))}:null,[n]);aV("product",a);const[,s]=et(),{isSignedIn:l}=Vt(),[u,d]=v.useState(0),[f,m]=v.useState(0),[p,g]=v.useState(!1),[y,w]=v.useState(!1),[b,N]=v.useState(""),[k,C]=v.useState(null);ud(()=>{g(!1),w(!1)});const A=z.useRef(f);A.current=f,v.useEffect(()=>{n&&rV({handle:n.handle,title:n.title,variantIndex:A.current})},[n]);const E=v.useMemo(()=>{if(!n)return"";const L=n.variants[f]??n.variants[0];return h6(L.price)},[n,f]);if(!n)return i.jsx(Si,{to:"/shop"});const _=async()=>{if(!(p||!Du(b))){w(!1),g(!0);try{om({id:n.handle,name:n.title,price:parseFloat((n.variants[f]??n.variants[0]).price)||void 0});const L=await fetch(`${zEe}api/shop/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:n.handle,tier:f6[f],email:b.trim().toLowerCase(),...k?{couponCode:k.code}:{}})});if(!L.ok)throw new Error("checkout failed");const{checkoutUrl:$}=await L.json();window.location.href=$}catch{w(!0),g(!1)}}},T=n.images??[],M=JCe[t],P=M?.series??[],D=P.length>=12,U=P.length>=6?"lg:grid-cols-3":"lg:grid-cols-2";return i.jsxs("div",{className:"min-h-[100dvh] bg-white font-sans text-[#333333]",children:[i.jsx(Cr,{isSignedIn:!!l,setLocation:s}),i.jsx("section",{className:"bg-[#1A1A1A] relative overflow-hidden",children:i.jsx("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[52px] pb-[56px]",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-[48px] items-start",children:[i.jsxs("div",{children:[i.jsx("div",{className:"rounded-[16px] overflow-hidden bg-[#111111] border border-white/5",children:i.jsx("img",{src:T[u],alt:n.title,className:"w-full aspect-video lg:aspect-auto lg:h-[420px] object-cover object-center block"})}),T.length>1&&i.jsx("div",{className:"mt-3.5 flex gap-2.5 overflow-x-auto pb-1",children:T.slice(0,8).map((L,$)=>{const G=u===$;return i.jsx("button",{type:"button",onClick:()=>d($),"aria-pressed":G,className:`shrink-0 w-[72px] h-[72px] rounded-[10px] overflow-hidden border-2 transition-colors cursor-pointer ${G?"border-primary":"border-white/10 hover:border-white/40"}`,children:i.jsx("img",{src:L,alt:"",className:"w-full h-full object-cover object-center block"})},$)})})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[16px]",children:"Curriculum"}),i.jsx("h1",{className:"m-0 text-[clamp(32px,3.6vw,48px)] leading-[1.02] tracking-[-0.03em] font-black text-white text-balance",children:n.title}),i.jsx("div",{className:"mt-[18px] flex items-baseline gap-2",children:i.jsx("span",{className:"text-[40px] font-black tracking-[-0.03em] text-white leading-none",children:E})}),i.jsxs("div",{className:"mt-[20px] flex flex-wrap items-center gap-x-[16px] gap-y-[8px] text-[13.5px] font-semibold text-white/60",children:[i.jsx("span",{className:"text-primary tracking-[0.06em]",children:"â
â
â
â
â
"}),i.jsx("span",{children:"4.9 average rating"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-white/30"}),i.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[i.jsx(f0,{className:"w-3.5 h-3.5"})," Instant download"]})]}),i.jsxs("div",{className:"mt-[26px]",role:"group","aria-labelledby":"youth-group-size-label",children:[i.jsx("div",{id:"youth-group-size-label",className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-white/50 mb-[12px]",children:"Please Select Youth Group Size"}),i.jsx("div",{className:"grid grid-cols-3 rounded-[10px] border border-white/15 overflow-hidden divide-x divide-white/15",children:n.variants.map((L,$)=>{const G=f===$;return i.jsxs("button",{type:"button",onClick:()=>m($),"aria-pressed":G,className:`px-2 py-[13px] text-center transition-colors cursor-pointer ${G?"bg-white":"bg-white/[0.04] hover:bg-white/[0.1]"}`,children:[i.jsx("div",{className:`text-[10px] font-extrabold tracking-[0.08em] uppercase whitespace-nowrap ${G?"text-[#1A1A1A]/60":"text-white/50"}`,children:VEe[$]}),i.jsx("div",{className:`mt-1 text-[16px] font-black leading-none ${G?"text-[#1A1A1A]":"text-white"}`,children:h6(L.price)})]},$)})})]}),i.jsx("div",{className:"mt-[18px] flex flex-col",children:i.jsx(sm,{dark:!0,handle:n.handle,tier:f6[f],applied:k,onApplied:C})}),i.jsxs("div",{className:"mt-[22px] flex flex-col gap-2.5",children:[i.jsx(Dk,{dark:!0,value:b,onChange:N,disabled:p}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] w-full",disabled:p||!Du(b),onClick:_,children:p?i.jsxs(i.Fragment,{children:["Heading to Checkout ",i.jsx(Xt,{className:"w-4 h-4 ml-1.5 animate-spin"})]}):i.jsxs(i.Fragment,{children:["Buy Now ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]})}),y&&i.jsx("p",{className:"m-0 text-[12.5px] font-semibold text-primary text-center",children:"Something went wrong. Please try again."})]}),i.jsx(iV,{dark:!0,className:"mt-[18px]"}),i.jsx("div",{className:"mt-[26px] grid grid-cols-2 gap-x-[18px] gap-y-[14px]",children:WEe.map(L=>{const $=L.icon;return i.jsxs("div",{className:"flex items-center gap-2.5 text-white/75",children:[i.jsx("span",{className:"shrink-0 w-8 h-8 rounded-[8px] bg-white/[0.06] flex items-center justify-center text-primary",children:i.jsx($,{className:"w-4 h-4"})}),i.jsx("span",{className:"text-[13px] font-semibold leading-tight",children:L.label})]},L.label)})})]})]})})}),i.jsx("section",{className:"bg-[#1A1A1A] px-10 pb-[64px]","aria-label":"Youth leader reviews",children:i.jsx("div",{className:"mx-auto grid max-w-[900px] grid-cols-1 gap-[20px] md:grid-cols-2",children:GCe.map(L=>i.jsx(Hz,{review:L,variant:"light",className:"w-full"},L.quote))})}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsx("div",{className:"max-w-[900px] mx-auto px-10 pt-[64px] pb-[72px]",children:i.jsxs(cl,{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[16px]",children:"Description"}),i.jsx("h2",{className:"m-0 text-[clamp(26px,3vw,38px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[24px]",children:"What's inside"}),i.jsx("div",{className:"pdp-prose text-[16px] leading-[1.65] text-[#4a4a4c]",dangerouslySetInnerHTML:{__html:r}}
142)]})})}),P.length>0&&i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[72px] pb-[80px]",children:[i.jsxs(cl,{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[16px]",children:M?.welcomeHeading??"The Series"}),i.jsxs("h2",{className:"m-0 text-[clamp(26px,3vw,38px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[10px]",children:["What's in ",n.title]}),i.jsxs("p",{className:"m-0 text-[16px] leading-[1.55] text-[#4a4a4c] max-w-[42em]",children:[P.length," ready-to-teach series, mapped week by week so you always know what's next."]})]}),i.jsx("div",{className:`mt-[40px] grid grid-cols-1 sm:grid-cols-2 ${U} gap-[20px]`,children:P.map((L,$)=>i.jsx(cl,{delay:Math.min($,6)*.04,children:i.jsx(GEe,{series:L,compact:D})},L.name+$))})]})}),(M?.featureBlocks??[]).map((L,$)=>{const G=m6[$%m6.length],H=T.length>$+1,V=T[($+1)%Math.max(T.length,1)],B=$%2===1;return i.jsx("section",{className:"bg-[#1A1A1A]",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-10 py-[72px]",children:i.jsxs("div",{className:`grid grid-cols-1 gap-[48px] items-center ${H?"lg:grid-cols-2":"lg:grid-cols-1"}`,children:[i.jsxs(cl,{className:B&&H?"lg:order-2":"",children:[i.jsxs("div",{className:"inline-flex items-center gap-2 text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[16px]",children:[i.jsx(G,{className:"w-4 h-4"}),i.jsx("span",{children:"Included"})]}),i.jsx("h2",{className:"m-0 text-[clamp(26px,3vw,38px)] leading-[1.06] tracking-[-0.03em] font-black text-white",children:L.heading}),i.jsx("p",{className:"mt-[16px] text-[17px] leading-[1.55] text-white/70 max-w-[38em]",children:L.body}),i.jsx("ul",{className:"list-none m-0 mt-[24px] p-0 flex flex-col gap-[14px] max-w-[38em]",children:L.bullets.map((K,Q)=>i.jsxs("li",{className:"flex items-start gap-3 text-white/85",children:[i.jsx("span",{className:"shrink-0 mt-0.5 w-6 h-6 rounded-[7px] bg-primary/15 flex items-center justify-center text-primary",children:i.jsx(G,{className:"w-3.5 h-3.5"})}),i.jsx("span",{className:"text-[15px] leading-[1.45] font-semibold",children:K})]},Q))})]}),H&&i.jsx(cl,{delay:.12,className:B?"lg:order-1":"",children:i.jsx("div",{className:"rounded-[16px] overflow-hidden bg-[#111111] border border-white/5",children:i.jsx("img",{src:V,alt:L.heading,className:"w-full aspect-video lg:aspect-auto lg:h-[360px] object-cover object-center block"})})})]})})},L.heading+$)}),i.jsx("section",{className:"relative bg-[#1A1A1A] overflow-hidden",children:i.jsx("div",{className:"relative max-w-[1240px] mx-auto px-10 py-[80px]",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_auto] gap-[36px] items-center",children:[i.jsxs(cl,{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[16px]",children:"Not sure this is the one?"}),i.jsx("h2",{className:"m-0 text-[clamp(28px,3.2vw,42px)] leading-[1.06] tracking-[-0.03em] font-black text-white",children:"Build a bundle that fits your calendar"}),i.jsx("p",{className:"mt-[16px] text-[17px] leading-[1.55] text-white/70 max-w-[36em]",children:"Pick the series you'll actually teach and pay for exactly that, or take the 60-second quiz and we'll point you to the right fit."})]}),i.jsxs(cl,{delay:.15,className:"flex flex-wrap gap-[14px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/build-bundle",children:"Build Your Bundle"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent text-white border-[1.5px] border-white/40 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] hover:border-white hover:bg-white/10 hover:text-white",asChild:!0,children:i.jsx(Be,{href:"/curriculum-quiz",children:"Take the 60-sec quiz"})})]})]})})}),i.jsx(Ur,{}),i.jsx("style",{children:` 143 .pdp-prose p { margin: 0 0 18px; } 144 .pdp-prose strong, .pdp-prose b { font-weight: 800; color: #1A1A1A; } 145 .pdp-prose a { color: #d82435; font-weight: 700; text-decoration: underline; } 146 .pdp-prose a:hover { color: #B01E2C; } 147 .pdp-prose h1, .pdp-prose h2, .pdp-prose h3, .pdp-prose h4 { 148 font-weight: 900; color: #1A1A1A; text-transform: uppercase; 149 letter-spacing: -0.02em; margin: 28px 0 14px; line-height: 1.1; 150 } 151 .pdp-prose ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; } 152 .pdp-prose ol { list-style: decimal; padding-left: 22px; margin: 0 0 18px; } 153 .pdp-prose li { margin: 6px 0; } 154 .pdp-prose img { border-radius: 16px; margin: 20px 0; max-width: 100%; height: auto; } 155 `})]})}function YEe(){Lo(Io["/self-assessment"]);const[,e]=et(),{isSignedIn:t}=Vt(),n=[{stat:"59%",label:"of youth leaders show symptoms of burnout",color:"text-primary"},{stat:"72%",label:"have no regular mental health check-in",color:"text-[#1A1A1A]"},{stat:"15 min",label:"is all this takes, completely free",color:"text-[#333333]"}],r=[{abbr:"GAD-7",name:"Generalized Anxiety Disorder Scale",desc:"Screens for anxiety symptoms that affect your capacity to lead and function.",color:"bg-primary/10 text-primary"},{abbr:"PHQ-9",name:"Patient Health Questionnaire: Depression",desc:"A clinically validated tool for identifying depression severity.",color:"bg-[#1A1A1A]/10 text-[#1A1A1A]"},{abbr:"ACE",name:"Adverse Childhood Experiences",desc:"Explores how early experiences may still be shaping your emotional health today.",color:"bg-[#333333]/10 text-[#333333]"},{abbr:"DES-B",name:"Dissociative Experiences Scale",desc:"A brief tool for understanding dissociation patterns linked to stress and trauma.",color:"bg-primary/10 text-primary"}];return i.jsxs("div",{className:"min-h-screen bg-white text-[#333333] font-sans",children:[i.jsx("nav",{className:"sticky top-0 z-50 bg-white/95 backdrop-blur-[14px] border-b border-[#1A1A1A]/10 h-[74px] flex items-center px-6 lg:px-10",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsxs("button",{onClick:()=>e("/tools"),className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(ii,{className:"w-4 h-4"}),i.jsx("span",{children:"All Tools"})]}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"h-[30px]"})}),i.jsx("div",{className:"hidden sm:flex items-center gap-4",children:t?i.jsx(ee,{variant:"outline",className:"border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-5 py-[22px] rounded-[10px] hover:bg-black/5",onClick:()=>
155e("/dashboard"),children:"My Dashboard"}):i.jsx(ee,{variant:"outline",className:"border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-5 py-[22px] rounded-[10px] hover:bg-black/5",onClick:()=>e("/sign-in"),children:"Leader Login"})})]})}),i.jsxs(be.section,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-[820px] mx-auto px-6 pt-[104px] pb-[100px] text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[22px]",children:"Leader Self-Assessment"}),i.jsxs("h1",{className:"m-0 text-[clamp(42px,4.6vw,68px)] leading-[0.99] tracking-[-0.035em] font-black text-[#1A1A1A] text-balance mb-[28px]",children:["You pour into ",i.jsx("span",{className:"text-primary",children:"everyone else."})]}),i.jsx("p",{className:"text-[19px] leading-[1.58] text-[#5a5a5c] max-w-[34em] mx-auto text-pretty mb-[36px]",children:"A private, clinically-grounded mental health snapshot using four validated tools. No account needed. Results are shown only to you, never stored or shared."}),i.jsxs(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[30px] py-[28px] rounded-[10px]",onClick:()=>e("/assessment"),children:["Begin My Assessment ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]}),i.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-[18px] gap-y-[10px] mt-[32px] text-[13.5px] font-semibold text-[#5a5a5c]",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(Mae,{className:"w-4 h-4 text-primary"})," Results never stored"]}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-[#1A1A1A]/20 hidden sm:block"}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(R8,{className:"w-4 h-4 text-primary"})," About 15 minutes"]}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-[#1A1A1A]/20 hidden sm:block"}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(lse,{className:"w-4 h-4 text-primary"})," 100% private"]})]})]}),i.jsx("section",{className:"bg-[#F2F2F3] border-y border-[#1A1A1A]/5 py-[96px] px-6",children:i.jsx("div",{className:"max-w-[1240px] mx-auto grid grid-cols-1 sm:grid-cols-3 gap-[14px]",children:n.map((a,s)=>i.jsxs(be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.4,delay:s*.1},className:"bg-white rounded-[16px] px-[34px] py-[32px] border border-[#1A1A1A]/5 text-center flex flex-col items-center justify-center",children:[i.jsx("p",{className:`text-[42px] font-black tracking-[-0.035em] leading-none mb-3 ${a.color}`,children:a.stat}),i.jsx("p",{className:"text-[14.5px] font-bold tracking-[0.11em] uppercase text-[#5a5a5c] leading-snug",children:a.label})]},a.stat))})}),i.jsxs("section",{className:"max-w-[1240px] mx-auto px-6 py-[100px]",children:[i.jsxs(be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.45},className:"text-center mb-[56px] max-w-[740px] mx-auto",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"Four Validated Tools"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"A real clinical picture, not a quiz"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"These aren't opinion questions. Each tool is a validated clinical instrument used by therapists and researchers."})]}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 items-stretch",children:r.map((a,s)=>i.jsxs(be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.4,delay:s*.08},className:"bg-white border border-[#1A1A1A]/10 rounded-[16px] p-[30px_32px] flex gap-5 items-start flex-col",children:[i.jsx("span",{className:`text-[11.5px] font-extrabold tracking-[0.16em] uppercase px-3 py-1.5 rounded-[10px] shrink-0 ${a.color}`,children:a.abbr}),i.jsxs("div",{children:[i.jsx("p",{className:"text-[20px] font-extrabold tracking-[-0.02em] text-[#1A1A1A] mb-2",children:a.name}),i.jsx("p",{className:"text-[16.5px] leading-[1.55] text-[#5a5a5c]",children:a.desc})]})]},a.abbr))})]}),i.jsx("section",{className:"bg-[#F2F2F3] border-y border-[#1A1A1A]/5 py-[100px] px-6",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[64px] items-center",children:[i.jsxs(be.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5},children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"What You'll Receive"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,46px)] leading-[1.05] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[20px]",children:"Scores, severity labels, and plain-English guidance"}),i.jsx("p",{className:"text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty mb-[32px]",children:"After completing all four sections, you'll see a score for each tool, a severity label, and a personalized recommendation written with care, not judgment."}),i.jsx("ul",{className:"space-y-[14px]",children:["Anxiety level with actionable next steps","Depression score with resource suggestions","Childhood trauma context and support guidance","Dissociation screening with honest framing"].map(a=>i.jsxs("li",{className:"flex items-start gap-[11px]",children:[i.jsx("span",{className:"flex-none w-[19px] h-[19px] rounded-[10px] bg-primary text-white text-[10.5px] font-black flex items-center justify-center mt-0.5",children:"â"}),i.jsx("span",{className:"text-[16.5px] leading-[1.4] text-[#1A1A1A] font-semibold",children:a})]},a))})]}),i.jsxs(be.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5},className:"bg-white rounded-[16px] p-[38px_36px] border border-[#1A1A1A]/10 shadow-[0_26px_60px_rgba(0,0,0,0.1)]",children:[i.jsx("div",{className:"text-[11px] font-extrabold tracking-[0.16em] uppercase text-[#666669] mb-[18px]",children:"Sample result"}),i.jsx("div",{className:"text-[24px] font-extrabold tracking-[-0.02em] text-[#1A1A1A] mb-3",children:"Anxiety (GAD-
1557)"}),i.jsxs("div",{className:"flex items-end gap-2 mb-6",children:[i.jsx("span",{className:"text-[48px] font-black text-primary leading-none tracking-[-0.035em]",children:"8"}),i.jsx("span",{className:"text-[20px] font-bold text-[#666669] mb-1",children:"/ 21"}),i.jsx("span",{className:"ml-3 mb-2 bg-[#1A1A1A]/5 text-[#1A1A1A] text-[12px] font-extrabold uppercase tracking-[0.1em] px-3 py-1.5 rounded-[10px]",children:"Mild"})]}),i.jsx("div",{className:"h-2 bg-[#F2F2F3] rounded-[10px] mb-8 overflow-hidden",children:i.jsx("div",{className:"h-full w-[38%] bg-primary rounded-[10px]"})}),i.jsx("div",{className:"text-[16px] text-[#5a5a5c] leading-[1.6] bg-[#F2F2F3] rounded-[16px] p-[24px_26px] border border-[#1A1A1A]/5",children:`"You're experiencing mild anxiety that's worth paying attention to. Consider talking to a trusted mentor or counselor about what you're carrying."`})]})]})}),i.jsx("section",{className:"bg-white px-6 py-[100px]",children:i.jsx("div",{className:"max-w-[1240px] mx-auto",children:i.jsxs("div",{className:"bg-[#1A1A1A] rounded-[16px] p-[38px_40px] flex flex-col sm:flex-row items-start sm:items-center justify-between gap-8",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-2",children:"Also free"}),i.jsx("p",{className:"text-[24px] font-black tracking-[-0.02em] text-white mb-2",children:"Ministry Health Survey"}),i.jsx("p",{className:"text-[16px] text-white/70 leading-[1.5]",children:"Give your students an anonymous voice with 35 questions across 7 dimensions. See your dashboard in minutes."})]}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[30px] py-[24px] rounded-[10px] shrink-0",onClick:()=>e("/ministry-survey"),children:"See that tool â"})]})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A] text-center",children:[i.jsx("div",{className:"absolute inset-0 bg-[#121212]/85"}),i.jsxs("div",{className:"relative max-w-[900px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs("h2",{className:"m-0 text-[clamp(32px,3.4vw,50px)] leading-[1.05] tracking-[-0.035em] font-black text-white text-balance",children:["You can't pour from",i.jsx("br",{}),"an empty cup."]}),i.jsx("p",{className:"mt-[22px] text-[19px] leading-[1.55] text-white/70 max-w-[34em] mx-auto text-pretty mb-[36px]",children:"15 minutes. Four tools. A real picture of what you're carrying. No account required."}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[32px] py-[28px] rounded-[10px]",onClick:()=>e("/assessment"),children:"Begin My Assessment"})]})]}),i.jsx("footer",{className:"bg-[#1A1A1A] text-white font-sans",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[40px] pb-[40px] border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"h-[24px] w-auto block brightness-0 invert opacity-60"}),i.jsx("span",{className:"text-[13.5px] text-white/60 font-medium",children:"Free tools for youth ministry"})]}),i.jsx("button",{className:"text-[13.5px] text-white/70 hover:text-white transition-colors font-bold uppercase tracking-[0.09em]",onClick:()=>e("/tools"),children:"â Back to all tools"})]})})]})}const QEe=[{label:"Safety",color:"bg-primary",desc:"Students feel cared for, respected, and protected."},{label:"Vulnerability",color:"bg-[#1A1A1A]",desc:"Students and leaders can be honest about struggles, doubts, and real life."},{label:"Trust",color:"bg-[#333333]",desc:"Leaders and peers are honest, consistent, and dependable."},{label:"Mental Health",color:"bg-[#5a5a5c]",desc:"The ministry cares about what students carry emotionally and mentally."},{label:"Belonging",color:"bg-[#8a8a8c]",desc:"Students experience real community, not just attendance."},{label:"Truth",color:"bg-[#B01E2C]",desc:"Biblical teaching helps students know and follow Jesus in real life."},{label:"Youth Ownership",color:"bg-[#F2F2F3] border border-[#1A1A1A]/10",desc:"Students are invited to lead, serve, contribute, and use their gifts."}],XEe=[{icon:i.jsx(F8,{className:"w-6 h-6"}),step:"01",title:"Create your free account",desc:"Sign up as a youth leader. Takes 60 seconds. We'll generate your unique ministry QR code automatically."},{icon:i.jsx(Yl,{className:"w-6 h-6"}),step:"02",title:"Share your QR code with students",desc:"Display it on a screen, print it out, or text the link. Students scan it anonymously, no login needed."},{icon:i.jsx(Fie,{className:"w-6 h-6"}),step:"03",title:"See your live dashboard",desc:"As responses come in, your dashboard updates in real time across all 7 ministry health dimensions."}],ZEe=[{label:"Safety",pct:91,color:"bg-primary"},{label:"Trust",pct:84,color:"bg-[#1A1A1A]"},{label:"Belonging",pct:79,color:"bg-[#333333]"},{label:"Vulnerability",pct:68,color:"bg-[#5a5a5c]"},{label:"Youth Ownership",pct:74,color:"bg-[#8a8a8c]"}];function JEe(){const[,e]=et(),{isSignedIn:t}=Vt();Lo(Io["/ministry-survey"]);const n=()=>e(t?"/dashboard":"/sign-up");return i.jsxs("div",{className:"min-h-screen bg-white text-[#333333] font-sans",children:[i.jsx("nav",{className:"sticky top-0 z-50 bg-white/95 backdrop-blur-[14px] border-b border-[#1A1A1A]/10 h-[74px] flex items-center px-6 lg:px-10",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsxs("button",{onClick:()=>e("/tools"),className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(ii,{className:"w-4 h-4"}),i.jsx("span",{children:"All Tools"})]}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"h-[30px]"})}),i.jsx("div",{className:"hidden sm:flex items-center gap-4",children:t?i.jsx(ee,{variant:"outline",className:"border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-5 py-[22px] rounded-[10px] hover:bg-black/5",onClick:()=>
155e("/dashboard"),children:"My Dashboard"}):i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-5 py-[22px] rounded-[10px] transition-colors",onClick:()=>e("/sign-up"),children:"Get Started Free"})})]})}),i.jsxs(be.section,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-[820px] mx-auto px-6 pt-[104px] pb-[100px] text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[22px]",children:"Ministry Health Survey"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance mb-[28px]",children:["What are your students ",i.jsx("br",{className:"hidden sm:block"}),i.jsx("span",{className:"text-primary",children:"actually experiencing?"})]}),i.jsx("p",{className:"text-[19px] leading-[1.58] text-[#5a5a5c] max-w-[34em] mx-auto text-pretty mb-[36px]",children:"Give your students an anonymous voice. 35 questions across 7 dimensions of ministry health, delivered by QR code, processed in real time on your leader dashboard."}),i.jsxs("div",{className:"flex flex-wrap gap-[14px] justify-center mb-[32px]",children:[i.jsxs(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[30px] py-[28px] rounded-[10px]",onClick:n,children:[t?"Go to My Dashboard":"Get My QR Code Free"," ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]}),t&&i.jsx(ee,{variant:"outline",className:"bg-transparent text-[#1A1A1A] border-[1.5px] border-[#1A1A1A]/20 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[30px] py-[28px] rounded-[10px] hover:border-primary hover:text-primary",onClick:()=>e("/dashboard"),children:"View Dashboard"})]}),i.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-[18px] gap-y-[10px] text-[13.5px] font-semibold text-[#5a5a5c]",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(va,{className:"w-4 h-4 text-primary"})," Free forever"]}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-[#1A1A1A]/20 hidden sm:block"}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(va,{className:"w-4 h-4 text-primary"})," Anonymous for students"]}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-[#1A1A1A]/20 hidden md:block"}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(va,{className:"w-4 h-4 text-primary"})," Real-time dashboard"]})]})]}),i.jsx("section",{className:"bg-[#F2F2F3] border-y border-[#1A1A1A]/5 py-[100px] px-6",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[64px] items-center",children:[i.jsxs(be.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5},className:"bg-white rounded-[16px] p-[38px_36px] border border-[#1A1A1A]/10 shadow-[0_26px_60px_rgba(0,0,0,0.1)]",children:[i.jsx("div",{className:"text-[11px] font-extrabold tracking-[0.16em] uppercase text-[#666669] mb-[24px]",children:"Ministry Health Score"}),ZEe.map(r=>i.jsxs("div",{className:"mb-5",children:[i.jsxs("div",{className:"flex justify-between mb-2",children:[i.jsx("span",{className:"text-[15px] font-bold text-[#1A1A1A]",children:r.label}),i.jsxs("span",{className:"text-[15px] font-bold text-[#666669]",children:[r.pct,"%"]})]}),i.jsx("div",{className:"h-2 bg-[#F2F2F3] rounded-[10px] overflow-hidden",children:i.jsx("div",{className:`h-full rounded-[10px] ${r.color}`,style:{width:`${r.pct}%`}})})]},r.label)),i.jsxs("div",{className:"mt-8 bg-[#F2F2F3] border border-[#1A1A1A]/5 rounded-[16px] p-[20px_24px] text-[15px] text-[#5a5a5c] leading-[1.6]",children:[i.jsx(Iae,{className:"w-4 h-4 text-primary inline-block mr-1.5 -mt-1"}),i.jsx("strong",{className:"text-[#1A1A1A]",children:"Focus area:"})," Vulnerability. Students want a space where it's safe to be honest about struggles and doubts."]})]}),i.jsxs(be.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5},children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"What Your Dashboard Shows"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,46px)] leading-[1.05] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[20px]",children:"Real data. Real insights. No guesswork."}),i.jsx("p",{className:"text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty mb-[32px]",children:"Your dashboard aggregates every student response into a clear health picture across 7 dimensions, broken down by gender and grade so you know exactly where to focus."}),i.jsx("ul",{className:"space-y-[14px]",children:["Scores across all 7 dimensions","Breakdown by grade and gender","Shareable summary for leadership","Tracks trends over time"].map(r=>i.jsxs("li",{className:"flex items-start gap-[11px]",children:[i.jsx("span",{className:"flex-none w-[19px] h-[19px] rounded-[10px] bg-primary text-white text-[10.5px] font-black flex items-center justify-center mt-0.5",children:"â"}),i.jsx("span",{className:"text-[16.5px] leading-[1.4] text-[#1A1A1A] font-semibold",children:r})]},r))})]})]})}),i.jsxs("section",{className:"max-w-[1240px] mx-auto px-6 py-[100px]",children:[i.jsxs(be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.45},className:"text-center mb-[56px] max-w-[740px] mx-auto",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"35 Questions · 7 Dimensions"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Every angle of your ministry health"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Students answer anonymously from their phone. No login. No names. Just honest answers."})]}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:QEe.map((r,a)=>i.jsxs(be.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.35,delay:a*.06},className:"bg-white border border-[#1A1A1A]/10 rounded-[16px] p-[28px_30px_30px]",children:[i.jsxs("div",{className:"flex items-center gap-[11px] mb-3",children:[i.jsx("span",{className:`w-3 h-3 rounded-full shrink-0 ${r.color}`}),i.jsx("span",{className:"text-[18px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:r.label})]}),i.jsx("p",{className:"text-[16.5px] leading-[1.55] text-[#5a5a5c]",children:r.desc})]},r.label))})]}),i.jsx("section",{className:"bg-[#1A1A1A] text-white py-[100px] px-6",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto",children:[i.jsxs(be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.45},className:"text-center mb-[56px] max-w-[740px] mx-auto",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"How It Works"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-white",children:"Set up in under 5 minutes"})]}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-10",children:XEe.map((r,a)=>i.jsxs(be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.4,delay:a*.1},className:"text-center",children:[i.jsx("div",{className:"w-[64px] h-[64px] bg-white/10 rounded-[16px] flex items-center justify-center text-white mx-auto mb-[22px]",children:r.icon}),i.jsxs("div",{className:"text-[11px] font-extrabold tracking-[0.16em] uppercase text-primary mb-[14px]",children:["Step ",r.step]}),i.jsx("h3",{className:"text-[22px] font-black tracking-[-0.02em] text-white mb-3",children:r.title}),i.jsx("p",{className:"text-[16.5px] leading-[1.55] text-white/70",children:r.desc})]},r.step))})]})}),i.jsx("section",{className:"bg-white px-6 py-[100px]",children:i.jsx("div",{className:"max-w-[1240px] mx-auto",children:i.jsxs("div",{className:"bg-[#F2F2F3] border border-[#1A1A1A]/10 rounded-[16px] p-[38px_40px] flex flex-col sm:flex-row items-start sm:items-center justify-between gap-8",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-2",children:"Also free"}),i.jsx("p",{className:"text-[24px] font-black tracking-[-0.02em] text-[#1A1A1A] mb-2",children:"Leader Self
155-Assessment"}),i.jsx("p",{className:"text-[16px] text-[#5a5a5c] leading-[1.5]",children:"A private mental health check-in for you: GAD-7, PHQ-9, ACE, and DES-B. No account needed. Takes 15 minutes."})]}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[30px] py-[24px] rounded-[10px] shrink-0",onClick:()=>e("/self-assessment"),children:"See that tool â"})]})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A] text-center",children:[i.jsx("div",{className:"absolute inset-0 bg-[#121212]/85"}),i.jsxs("div",{className:"relative max-w-[900px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs("h2",{className:"m-0 text-[clamp(32px,3.4vw,50px)] leading-[1.05] tracking-[-0.035em] font-black text-white text-balance",children:["Give your students",i.jsx("br",{}),"an honest voice."]}),i.jsx("p",{className:"mt-[22px] text-[19px] leading-[1.55] text-white/70 max-w-[34em] mx-auto text-pretty mb-[36px]",children:"Free. Anonymous. Takes your students less than 10 minutes. You'll have real data by the end of the day."}),i.jsx("div",{className:"flex flex-col sm:flex-row gap-[14px] justify-center",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[32px] py-[28px] rounded-[10px]",onClick:n,children:t?"Go to My Dashboard â":"Get My QR Code Free â"})}),!t&&i.jsxs("p",{className:"mt-[24px] text-white/60 text-[14.5px]",children:["Already have an account?"," ",i.jsx("button",{onClick:()=>e("/sign-in"),className:"underline font-bold text-white/80 hover:text-white",children:"Sign in"})]})]})]}),i.jsx("footer",{className:"bg-[#1A1A1A] text-white font-sans",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[40px] pb-[40px] border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"h-[24px] w-auto block brightness-0 invert opacity-60"}),i.jsx("span",{className:"text-[13.5px] text-white/60 font-medium",children:"Free tools for youth ministry"})]}),i.jsx("button",{className:"text-[13.5px] text-white/70 hover:text-white transition-colors font-bold uppercase tracking-[0.09em]",onClick:()=>e("/tools"),children:"â Back to all tools"})]})})]})}const p6=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[tabindex]:not([tabindex='-1'])","[contenteditable='true']"].join(","),ox=[];function Lk(e,t){const n=v.useRef(null),r=v.useRef(t);return r.current=t,v.useEffect(()=>{if(!e)return;const a=document.activeElement instanceof HTMLElement?document.activeElement:null,s=n.current;if(!s)return;const l=s;ox.push(l),(l.querySelector("[data-dialog-initial-focus]")??l.querySelector(p6)??l).focus();function d(f){if(ox.at(-1)!==l)return;if(f.key==="Escape"){f.preventDefault(),r.current();return}if(f.key!=="Tab")return;const m=Array.from(l.querySelectorAll(p6)).filter(y=>y.getClientRects().length>0);if(m.length===0){f.preventDefault(),l.focus();return}const p=m[0],g=m[m.length-1];f.shiftKey&&document.activeElement===p?(f.preventDefault(),g.focus()):!f.shiftKey&&document.activeElement===g&&(f.preventDefault(),p.focus())}return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d);const f=ox.lastIndexOf(l);f!==-1&&ox.splice(f,1),a?.focus()}},[e]),n}const e5e=1600;let x6=null;async function g6(){const e=await fetch("/api/signup/challenge");if(!e.ok)throw new Error("Could not get signup token");const t=await e.json();if(!t.token)throw new Error("Could not get signup token");return{token:t.token,issuedAt:Date.now()}}async function cm(){const e=x6??g6();x6=null;let t;try{t=await e}catch{t=await g6()}const n=e5e-(Date.now()-t.issuedAt);return n>0&&await new Promise(r=>setTimeout(r,n)),t.token}const oV="/".replace(/\/$/,""),Xa=[{id:"focus",question:"What's your ministry's primary focus?",options:[{label:"Exploring faith and real-world challenges",value:"faith-challenges",icon:i.jsx(pae,{className:"w-5 h-5"})},{label:"Meaningful conversations, critical thinking, and spiritual growth",value:"discipleship",icon:i.jsx(Uae,{className:"w-5 h-5"})},{label:"Emotional and spiritual maturity",value:"emotional-health",icon:i.jsx(Gw,{className:"w-5 h-5"})},{label:"Leadership skills and empowerment",value:"leadership",icon:i.jsx(Nse,{className:"w-5 h-5"})}]},{id:"challenge",question:"What's the biggest challenge your youth are facing?",options:[{label:"Role models and leadership opportunities",value:"leadership",icon:i.jsx(Tie,{className:"w-5 h-5"})},{label:"Identity and cultural pressures",value:"identity",icon:i.jsx(dse,{className:"w-5 h-5"})},{label:"Emotional struggles",value:"emotional-health",icon:i.jsx(Gw,{className:"w-5 h-5"})},{label:"Christianity feels irrelevant to their daily lives",value:"relevance",icon:i.jsx(Yie,{className:"w-5 h-5"})}]},{id:"vibe",question:"What's the vibe of your ministry gatherings?",options:[{label:"Energetic and interactive",value:"energetic",icon:i.jsx(cae,{className:"w-5 h-5"})},{label:"Relational and discussion-based",value:"discussion",icon:i.jsx(Yl,{className:"w-5 h-5"})},{label:"Safe and reflective",value:"reflective",icon:i.jsx(Gu,{className:"w-5 h-5"})},{label:"Purpose-driven",value:"purpose",icon:i.jsx(r3,{className:"w-5 h-5"})}]},{id:"faith",question:"Where are your students at in their faith journey?",options:[{label:"All my students profess faith in Jesus",value:"all-believers",icon:i.jsx(tae,{className:"w-5 h-5"})},{label:"Most profess, some do not",value:"mostly-believers",icon:i.jsx(D8,{className:"w-5 h-5"})},{label:"Most do not believe, some do",value:"mostly-seekers",icon:i.jsx(SN,{className:"w-5 h-5"})},{label:"None of my students profess faith in Jesus",value:"seekers",icon:i.jsx(Aae,{className:"w-5 h-5"})}]},{id:"topic",question:"Which topic resonates most with your students?",options:[{label:"Social justice and advocacy",value:"justice",icon:i.jsx(nse,{className:"w-5 h-5"})},{label:"Mental health and Faith",value:"mental-health",icon:i.jsx(Rie,{className:"w-5 h-5"})},{label:"Identity and relationships in Christ",value:"identity",icon:i.jsx(wN,{className:"w-5 h-5"})},{label:"Purpose and their unique place in God's mission",value:"purpose",icon:i.jsx(r3,{className:"w-5 h-5"})}]},{id:"churchSize",question:"How big is your youth group?",options:[{label:"1â50 students",value:"1-50",icon:i.jsx(Yw,{
155className:"w-5 h-5"})},{label:"51â250 students",value:"51-250",icon:i.jsx(Iie,{className:"w-5 h-5"})},{label:"251+ students",value:"251+",icon:i.jsx(Yw,{className:"w-5 h-5"})}]}];function t5e({onStart:e}){const[,t]=et();return i.jsxs("div",{className:"min-h-screen bg-white flex flex-col font-sans text-[#333333]",children:[i.jsx("nav",{className:"h-[74px] border-b border-[#1A1A1A]/10 flex items-center px-6 lg:px-10 shrink-0 relative bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsxs("button",{onClick:()=>t("/tools"),className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(ii,{className:"w-4 h-4"}),i.jsx("span",{children:"All Tools"})]}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"reframe",className:"h-[30px]"})}),i.jsx("div",{className:"w-[100px]"})]})}),i.jsx("div",{className:"flex-1 flex items-center justify-center px-6 py-16",children:i.jsxs(be.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-[820px] mx-auto w-full text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[22px]",children:"Curriculum Quiz"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance mb-[28px]",children:["Find the right",i.jsx("br",{}),i.jsx("span",{className:"text-primary",children:"curriculum for you."})]}),i.jsx("p",{className:"text-[19px] leading-[1.58] text-[#5a5a5c] max-w-[34em] mx-auto text-pretty mb-[36px]",children:"Answer 6 quick questions about your ministry and your students, and we'll match you with curriculum from the Reframe store that actually fits."}),i.jsxs(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[30px] py-[28px] rounded-[10px]",onClick:e,children:["Start the Quiz ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]}),i.jsx("p",{className:"text-[14.5px] text-[#666666] mt-[24px] font-medium",children:"Takes about 2 minutes · No account needed"})]})})]})}function n5e({question:e,questionNumber:t,total:n,selected:r,onSelect:a,onNext:s,onBack:l,isLast:u}){const d=t/n*100;return i.jsxs("div",{className:"min-h-screen bg-white flex flex-col font-sans text-[#333333]",children:[i.jsx("nav",{className:"h-[74px] border-b border-[#1A1A1A]/10 flex items-center px-6 lg:px-10 shrink-0 relative bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsxs("button",{onClick:l,className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(ii,{className:"w-4 h-4"}),i.jsx("span",{children:"Back"})]}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"reframe",className:"h-[30px]"})}),i.jsxs("span",{className:"text-[13.5px] font-bold text-[#666666]",children:[t," of ",n]})]})}),i.jsx("div",{className:"w-full h-1 bg-[#F2F2F3] shrink-0",children:i.jsx(be.div,{className:"h-full bg-primary",initial:{width:`${(t-1)/n*100}%`},animate:{width:`${d}%`},transition:{duration:.4,ease:"easeOut"}})}),i.jsx("div",{className:"flex-1 flex flex-col justify-center px-6 py-[80px] max-w-[740px] mx-auto w-full",children:i.jsxs(be.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.3},children:[i.jsxs("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:["Question ",t]}),i.jsx("h2",{id:`quiz-question-${e.id}`,className:"m-0 text-[clamp(28px,3vw,40px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[40px]",children:e.question}),i.jsx("div",{role:"group","aria-labelledby":`quiz-question-${e.id}`,className:"space-y-[14px] mb-[48px]",children:e.options.map(f=>{const m=r===f.value;return i.jsxs("button",{type:"button","aria-pressed":m,onClick:()=>a(f.value),className:`w-full flex items-center gap-5 px-[24px] py-[22px] rounded-[16px] border-[1.5px] text-left transition-all ${m?"border-primary bg-primary/5":"border-[#1A1A1A]/10 bg-white hover:border-primary/40 hover:bg-[#F2F2F3]"}`,children:[i.jsx("span",{className:`shrink-0 ${m?"text-primary":"text-[#5a5a5c]"}`,children:f.icon}),i.jsx("span",{className:`font-extrabold text-[16px] leading-[1.4] flex-1 ${m?"text-primary":"text-[#1A1A1A]"}`,children:f.label}),m&&i.jsx(va,{className:"w-5 h-5 text-primary shrink-0"})]},f.value)})}),i.jsxs(ee,{className:"w-full bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[28px] rounded-[10px] disabled:opacity-50",disabled:!r,onClick:s,children:[u?"See My Results":"Next Question"," ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]})]},e.id)})]})}function r5e({answers:e,onContinue:t}){const[n,r]=v.useState(""),[a,s]=v.useState(!1),[l,u]=v.useState(""),d=v.useRef(null),f=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.trim());async function m(p){if(p.preventDefault(),!f){u("Please enter a valid email address.");return}s(!0);try{await fetch(`${oV}/api/quiz/lead`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n.trim(),answers:e,formToken:await cm()})})}catch{}finally{s(!1),t(n.trim())}}return i.jsxs("div",{className:"min-h-screen bg-white flex flex-col font-sans text-[#333333]",children:[i.jsx("nav",{className:"h-[74px] border-b border-[#1A1A1A]/10 flex items-center px-6 lg:px-10 shrink-0 relative bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsx("div",{className:"w-[100px]"}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"reframe",className:"h-[30px]"})}),i.jsx("div",{className:"w-[100px]"})]})}),i.jsx("div",{className:"w-full h-1 bg-[#F2F2F3] shrink-0",children:i.jsx("div",{className:"h-full bg-primary w-full"})}),i.jsx("div",{className:"flex-1 flex items-center justify-center px-6 py-16",children:i.jsxs(be.div,{initial:{opacity:0,y:20}
155,animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-md w-full",children:[i.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-[16px] flex items-center justify-center mx-auto mb-[32px]",children:i.jsx($8,{className:"w-8 h-8 text-primary"})}),i.jsxs("div",{className:"text-center mb-[40px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"Almost there"}),i.jsx("h2",{className:"m-0 text-[clamp(28px,3vw,36px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[18px]",children:"Where should we send your results?"}),i.jsx("p",{className:"text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Enter your email and we'll save your curriculum recommendations, plus keep you in the loop on new series, discounts, and resources."})]}),i.jsxs("form",{onSubmit:m,className:"space-y-[20px]",children:[i.jsxs("div",{children:[i.jsx("label",{htmlFor:"quiz-results-email",className:"sr-only",children:"Email address for curriculum recommendations"}),i.jsx("input",{id:"quiz-results-email",ref:d,type:"email",value:n,onChange:p=>{r(p.target.value),u("")},placeholder:"[email protected]",autoFocus:!0,className:`w-full px-[20px] py-[22px] rounded-[10px] border-[1.5px] text-[16px] font-medium outline-none transition-all placeholder:text-[#666666] ${l?"border-red-300 bg-red-50 focus:border-red-400":"border-[#1A1A1A]/20 bg-white focus:border-primary"}`}),l&&i.jsx("p",{className:"text-red-500 text-[13px] font-bold mt-2 ml-1",children:l})]}),i.jsx(ee,{type:"submit",className:"w-full bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[28px] rounded-[10px] disabled:opacity-50",disabled:a,children:a?i.jsxs(i.Fragment,{children:[i.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"})," Saving..."]}):i.jsxs(i.Fragment,{children:["See My Results ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]})})]})]})})]})}const i5e=[{value:"Video",label:"Teaching Videos",desc:"Pre-produced video lessons",icon:i.jsx(kN,{className:"w-5 h-5"})},{value:"PowerPoint",label:"PowerPoint / Slides",desc:"Slide decks for your message",icon:i.jsx(Kae,{className:"w-5 h-5"})},{value:"Devotional",label:"Devotionals",desc:"Daily reading content for students",icon:i.jsx(Fr,{className:"w-5 h-5"})},{value:"Small Group Guide",label:"Small Group Guide",desc:"Discussion questions for groups",icon:i.jsx(Yw,{className:"w-5 h-5"})},{value:"Teaching Guide",label:"Teaching Guide",desc:"Leader notes and message outline",icon:i.jsx(h0,{className:"w-5 h-5"})},{value:"Midweek Content",label:"Midweek Content",desc:"Materials for a mid-week gathering",icon:i.jsx(NN,{className:"w-5 h-5"})},{value:"Parent Resources",label:"Parent Resources",desc:"Take-home content for parents",icon:i.jsx(Yl,{className:"w-5 h-5"})}];function a5e({onContinue:e,onBack:t}){const[n,r]=v.useState(new Set),a=s=>{r(l=>{const u=new Set(l);return u.has(s)?u.delete(s):u.add(s),u})};return i.jsxs("div",{className:"min-h-screen bg-white flex flex-col font-sans text-[#333333]",children:[i.jsx("nav",{className:"h-[74px] border-b border-[#1A1A1A]/10 flex items-center px-6 lg:px-10 shrink-0 relative bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsxs("button",{onClick:t,className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(ii,{className:"w-4 h-4"}),i.jsx("span",{children:"Back"})]}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"reframe",className:"h-[30px]"})}),i.jsx("div",{className:"w-[100px]"})]})}),i.jsx("div",{className:"w-full h-1 bg-[#F2F2F3] shrink-0",children:i.jsx("div",{className:"h-full bg-primary",style:{width:"96%"}})}),i.jsx("div",{className:"flex-1 flex flex-col justify-center px-6 py-[80px] max-w-[820px] mx-auto w-full",children:i.jsxs(be.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{duration:.3},children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"One last thing"}),i.jsx("h2",{id:"curriculum-content-heading",className:"m-0 text-[clamp(28px,3vw,40px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[18px]",children:"What does your curriculum NEED to include?"}),i.jsx("p",{className:"text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty mb-[48px]",children:"Not every series has the same content. Some include videos, others only leader guides. Select any format that's a must-have for your ministry and we'll prioritize series that include them."}
155),i.jsx("div",{role:"group","aria-labelledby":"curriculum-content-heading",className:"grid grid-cols-1 sm:grid-cols-2 gap-[14px] mb-[48px]",children:i5e.map(s=>{const l=n.has(s.value);return i.jsxs("button",{type:"button","aria-pressed":l,onClick:()=>a(s.value),className:`flex items-center gap-4 px-[20px] py-[20px] rounded-[16px] border-[1.5px] text-left transition-all ${l?"border-primary bg-primary/5 shadow-[0_4px_14px_rgba(216,36,53,0.1)]":"border-[#1A1A1A]/10 bg-white hover:border-primary/40 hover:bg-[#F2F2F3]"}`,children:[i.jsx("span",{className:`shrink-0 ${l?"text-primary":"text-[#5a5a5c]"}`,children:s.icon}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:`font-extrabold text-[15.5px] leading-[1.3] ${l?"text-primary":"text-[#1A1A1A]"}`,children:s.label}),i.jsx("p",{className:"text-[13.5px] text-[#666666] mt-1",children:s.desc})]}),l&&i.jsx(va,{className:"w-5 h-5 text-primary shrink-0"})]},s.value)})}),i.jsx(ee,{className:"w-full bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[28px] rounded-[10px] mb-4",onClick:()=>e(Array.from(n)),children:n.size>0?"Show Matches With These Formats â":"Continue â"}),i.jsx("button",{onClick:()=>e([]),className:"w-full text-center text-[14.5px] font-bold text-[#666666] hover:text-[#1A1A1A] transition-colors py-3",children:"Skip, I'm flexible on format"})]})})]})}const lV={starter:{"1-50":"54095573811484","51-250":"54095580758300","251+":"54095580791068"},builder:{"1-50":"54095581708572","51-250":"54095581741340","251+":"54095581774108"},ministry:{"1-50":"54095599730972","51-250":"54095599763740","251+":"54095599796508"}};async function s5e(e,t,n,r,a,s,l,u){const d=n?lV[e]?.[n]:void 0;if(!d){const p="/".replace(/\/$/,"");window.location.href=`${p}/build-bundle?bundle=${e}`;return}const f=r.map(p=>p.bundleAccessVariantId).filter(p=>p!==null),m=`Bundle: ${t} 156Church size: ${n} students 157Pre-filled series: 158${r.map((p,g)=>`${g+1}. ${p.title}`).join(` 159`)}`;a(e),s(null);try{om({id:e,name:`Quiz bundle: ${t}`}),Ns("bundle_checkout_started",{bundle:e,church_size:n??"unknown",series_count:r.length,source:"curriculum_quiz"});const p=await BI({bundleVariantId:d,accessVariantIds:f,note:m,...l?{email:l}:{},...u?{couponCode:u.code}:{}});window.location.href=p.checkoutUrl}catch{s("Couldn't start checkout. Please try again."),a(null)}}const o5e={starter:{"1-50":"160","51-250":"200","251+":"280"},builder:{"1-50":"320","51-250":"400","251+":"560"},ministry:{"1-50":"480","51-250":"600","251+":"840"}},aw=[{key:"starter",name:"The Starter",tagline:"Pick Any 4 Series",seriesCount:4,badge:"Get Started",badgeBg:"bg-primary/10 text-primary",image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/2_6b86ff27-c2b3-4d2f-ba7a-4fb6ab2faade.png?v=1778115343",accent:"border-primary/20",headerBg:"bg-[#F2F2F3]",cta:"Add to Cart",ctaClass:"bg-primary hover:bg-[#B01E2C] text-white",popular:!1},{key:"builder",name:"The Builder",tagline:"Pick Any 8 Series",seriesCount:8,badge:"Most Popular",badgeBg:"bg-primary text-white",image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/3.png?v=1778115343",accent:"border-primary/50",headerBg:"bg-[#F2F2F3]",cta:"Add to Cart",ctaClass:"bg-primary hover:bg-[#B01E2C] text-white",popular:!0},{key:"ministry",name:"The Ministry Year",tagline:"Pick Any 12 Series",seriesCount:12,badge:"Best Value",badgeBg:"bg-[#1A1A1A]/10 text-[#1A1A1A]",image:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/4.png?v=1778115343",accent:"border-[#1A1A1A]/20",headerBg:"bg-[#F2F2F3]",cta:"Add to Cart",ctaClass:"bg-[#1A1A1A] hover:bg-black text-white",popular:!1}];function l5e({answers:e,mustHave:t,onRetake:n,capturedEmail:r}){const[,a]=et(),[s,l]=v.useState(null),[u,d]=v.useState(!0),[f,m]=v.useState(!1),[p,g]=v.useState(null),[y,w]=v.useState(null),[b]=v.useState(r),[N,k]=v.useState({}),[C,A]=v.useState({}),[E,_]=v.useState(null),T=Lk(!!E,()=>_(null));ud(()=>{g(null),w(null)});function M(D,U){return C[D]??U}function P(D,U,L,$){const H=(C[D]??$).map((V,B)=>B===U?L:V);A(V=>({...V,[D]:H})),_(null)}return z.useEffect(()=>{async function D(){try{const U=await fetch(`${oV}/api/quiz/recommend`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({answers:Object.fromEntries(Object.entries(e).filter(([$])=>$!=="churchSize")),mustHave:t})});if(!U.ok)throw new Error("Failed");const L=await U.json();l(L),Ns("quiz_recommendation_received",{must_have_count:t.length,email_captured:!!r})}catch{m(!0)}finally{d(!1)}}D()},[]),i.jsxs("div",{className:"min-h-screen bg-white flex flex-col font-sans text-[#333333]",children:[i.jsx("nav",{className:"h-[74px] border-b border-[#1A1A1A]/10 flex items-center px-6 lg:px-10 shrink-0 relative bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto w-full flex items-center justify-between",children:[i.jsxs("button",{onClick:()=>a("/tools"),className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(ii,{className:"w-4 h-4"}),i.jsx("span",{children:"All Tools"})]}),i.jsx("div",{className:"flex items-center absolute left-1/2 -translate-x-1/2",children:i.jsx("img",{src:"/reframe-logo.png",alt:"reframe",className:"h-[30px]"})}),i.jsxs("button",{onClick:n,className:"flex items-center gap-2 text-[14.5px] font-semibold text-[#333333] hover:text-primary transition-colors",children:[i.jsx(n3,{className:"w-3.5 h-3.5"}),i.jsx("span",{children:"Retake"})]})]})}),i.jsxs("div",{className:"flex-1 px-6 py-[80px] max-w-[1240px] mx-auto w-full",children:[i.jsxs(be.div,{initial:{opacity:0,y:16}
159,animate:{opacity:1,y:0},transition:{duration:.4},className:"text-center mb-[64px]",children:[i.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/5 border border-primary/20 rounded-[10px] px-[16px] py-[6px] mb-[24px]",children:[i.jsx(va,{className:"w-3.5 h-3.5 text-primary"}),i.jsx("span",{className:"text-[11.5px] font-extrabold text-primary tracking-[0.17em] uppercase",children:"Results Ready"})]}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.4vw,50px)] leading-[1.05] tracking-[-0.035em] font-black text-[#1A1A1A] mb-[20px]",children:"Your curriculum plan"}),i.jsx("p",{className:"text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty max-w-[34em] mx-auto",children:"Based on your ministry profile, here's exactly what to grab next and how to plan your full year."}),i.jsxs("div",{className:"mx-auto mt-[48px] max-w-[900px] text-center",children:[i.jsx("h3",{className:"m-0 text-[clamp(24px,2.4vw,34px)] leading-[1.08] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Curriculum that works across your whole ministry"}),i.jsx("p",{className:"mt-[12px] text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"See why youth leaders choose Reframe when they need resources they can use week after week."})]}),i.jsx("div",{className:"mx-auto mt-[24px] grid max-w-[900px] grid-cols-1 gap-[20px] text-left md:grid-cols-2","aria-label":"Youth leader reviews",children:KCe.map(D=>i.jsx(Hz,{review:D,variant:"dark",className:"w-full"},D.quote))}),i.jsxs("div",{className:"flex flex-wrap gap-[10px] justify-center mt-[32px]",children:[Xa.map(D=>{const U=D.options.find(L=>L.value===e[D.id]);return U?i.jsxs("span",{className:"flex items-center gap-2 bg-[#F2F2F3] text-[#5a5a5c] text-[13.5px] font-bold px-[14px] py-[8px] rounded-[10px]",children:[i.jsx("span",{className:"text-[#8a8a8c]",children:U.icon}),U.label]},D.id):null}),t.length>0&&t.map(D=>i.jsxs("span",{className:"flex items-center gap-2 bg-primary/10 text-primary text-[13.5px] font-bold px-[14px] py-[8px] rounded-[10px]",children:[i.jsx(va,{className:"w-3.5 h-3.5"}),D]},D))]}),i.jsxs("div",{className:"mt-[32px] flex items-start gap-[12px] max-w-[600px] mx-auto bg-[#F2F2F3] border border-[#1A1A1A]/10 rounded-[16px] px-[24px] py-[20px] text-left",children:[i.jsx(I8,{className:"w-4 h-4 text-[#8a8a8c] shrink-0 mt-1"}),i.jsxs("p",{className:"text-[14.5px] text-[#5a5a5c] leading-[1.5]",children:[i.jsx("span",{className:"font-bold text-[#1A1A1A]",children:"Series vary in what they include."})," ","Hover any series title in a bundle below to see exactly what's inside. If a series isn't the right fit, hit the swap icon to replace it with another match."]})]})]}),u&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-24 text-[#8a8a8c]",children:[i.jsx(Xt,{className:"w-8 h-8 animate-spin mb-5 text-primary"}),i.jsx("p",{className:"text-[15px] font-bold uppercase tracking-[0.1em]",children:"Finding your matches..."})]}),f&&i.jsxs("div",{className:"text-center py-24",children:[i.jsx("p",{className:"text-[#5a5a5c] mb-6 text-[18px]",children:"Couldn't load recommendations right now."}),i.jsx(ee,{asChild:!0,variant:"outline",className:"bg-transparent text-[#1A1A1A] border-[1.5px] border-[#1A1A1A]/20 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] hover:border-primary hover:text-primary",children:i.jsx(Be,{href:"/shop",children:"Browse All Curriculum â"})})]}),!u&&!f&&s&&i.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-[24px] items-stretch",children:aw.map((D,U)=>{const L=s.yearPlan.slice(0,D.seriesCount),$=M(D.key,L),G=e.churchSize||"51-250",H=o5e[D.key]?.[G]||"0";return i.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:U*.1},className:`bg-white rounded-[16px] border-[1.5px] flex flex-col overflow-hidden relative shadow-sm ${D.popular?D.accent:"border-[#1A1A1A]/10"}`,children:[i.jsxs("div",{className:`px-[30px] py-[34px] border-b border-[#1A1A1A]/10 text-center relative overflow-hidden ${D.headerBg}`,children:[i.jsx("span",{className:`inline-block text-[10.5px] font-extrabold uppercase tracking-[0.15em] px-[12px] py-[6px] rounded-[10px] mb-[18px] ${D.badgeBg}`,children:D.badge}),i.jsx("h3",{className:"text-[28px] font-black tracking-[-0.025em] text-[#1A1A1A] mb-1",children:D.name}),i.jsx("p",{className:"text-[15.5px] font-bold text-[#5a5a5c] mb-[18px]",children:D.tagline}),i.jsxs("div",{className:"text-[34px] font-black text-[#1A1A1A] leading-none tracking-[-0.04em]",children:["$",H]})]}),i.jsxs("div",{className:"flex-1 p-[30px] bg-white",children:[i.jsx("p",{className:"text-[11px] font-extrabold tracking-[0.16em] uppercase text-[#666666] mb-[20px] pb-3 border-b border-[#1A1A1A]/10",children:"Your pre-filled series"}),i.jsx("div",{className:"space-y-[14px]",children:$.map((V,B)=>i.jsx("div",{className:"group relative",children:i.jsxs("div",{className:"flex items-start gap-[14px]",children:[i.jsx("span",{className:"flex-none w-[22px] h-[22px] rounded-[10px] bg-[#F2F2F3] text-[#1A1A1A] text-[11px] font-black flex items-center justify-center mt-[2px]",children:B+1}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-extrabold text-[15px] text-[#1A1A1A] leading-[1.3] group-hover:text-primary transition-colors cursor-help truncate",children:V.title}),i.jsxs("div",{className:"absolute left-0 bottom-full mb-2 w-full sm:w-[260px] bg-[#1A1A1A] text-white text-[13px] rounded-[16px] p-[16px] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all z-20 pointer-events-none shadow-xl",children:[i.jsx("p",{className:"font-bold mb-2 text-[14px]",children:V.title}),i.jsxs("p",{className:"text-white/70 leading-[1.4] mb-3",children:[V.description.substring(0,100),"..."]}),i.jsx("div",{className:"space-y-1",children:V.contentTypes.map(K=>i.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-white/90",children:[i.jsx(va,{className:"w-3.5 h-3.5 text-primary shrink-0"})," ",K]},K))}),i.jsx("div",{className:"absolute -bottom-1.5 left-6 w-3 h-3 bg-[#1A1A1A] rotate-45"})]})]}),i.jsx("button",{onClick:()=>_({bundleKey:D.key,pickIndex:B}),className:"w-8 h-8 rounded-[10px] border border-[#1A1A1A]/10 flex items-center justify-center text-[#8a8a8c] hover:bg-[#F2F2F3] hover:text-[#1A1A1A] hover:border-[#1A1A1A]/20 transition-all opacity-0 group-hover:opacity-100",title:"Swap for another series",children:i.jsx(Jae,{className:"w-3.5 h-3.5"})})]})},B))})]}),i.jsxs("div",{className:"p-[30px] pt-0 bg-white",children:[e.churchSize&&i.jsx("div",{className:"mb-4",children:i.jsx(sm,{bundleVariantId:lV[D.key]?.[e.churchSize],applied:N[D.key]??null,onApplied:V=>k(B=>({...B,[D.key]:V}))})}),y&&p===D.key&&i.jsx("p",{className:"text-red-500 text-[13px] font-bold mb-[14px] text-center",children:y}),i.jsx(ee,{className:`w-full font-extrabold text-[13.5px] tracking-[0.09em] uppercase py-[28px] rounded-[10px] ${D.ctaClass}`,disabled:p!==null,onClick:()=>s5e(D.key,D.name,e.churchSize,$,g,w,b,N[D.key]),children:p===D.key?i.jsxs(i.Fragment,{children:[i.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"})," Preparing..."]}):i.jsxs(i.Fragment,{children:[D.cta," ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]})}),i.jsx("p",{className:"text-center text-[12.5px] text-[#666666] font-semibold mt-[16px]",children:"Redirects to Shopify securely"})]})]},D.key)})})]}),i.jsx("footer",{className:"bg-[#1A1A1A] text-white font-sans mt-auto",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[40px] pb-[40px] border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"h-[24px] w-auto block brightness-0 invert opacity-60"}),i.jsx("span",{className:"text-[13.5px] text-white/60 font-medium",children:"Free tools for youth ministry"})]}),i.jsx("button",{className:"text-[13.5px] text-white/70 hover:text-white transition-colors font-bold uppercase tracking-[0.09em]",onClick:()=>a("/tools"),children:"â Back to all tools"})]})}),i.jsx(cn,{children:E&&s&&i.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6 font-sans",children:[i.jsx(be.div,{initial:{opacity:0}
159,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-[#1A1A1A]/80 backdrop-blur-sm",onClick:()=>_(null)}),i.jsxs(be.div,{ref:T,role:"dialog","aria-modal":"true","aria-labelledby":"swap-series-title",tabIndex:-1,initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative bg-white rounded-[16px] shadow-2xl w-full max-w-2xl max-h-[85vh] flex flex-col border border-[#1A1A1A]/10",children:[i.jsxs("div",{className:"px-[30px] py-[26px] border-b border-[#1A1A1A]/10 flex justify-between items-center bg-[#F2F2F3] rounded-t-[6px]",children:[i.jsxs("div",{children:[i.jsx("h3",{id:"swap-series-title",className:"text-[20px] font-black tracking-[-0.02em] text-[#1A1A1A]",children:"Swap Series"}),i.jsx("p",{className:"text-[14px] text-[#5a5a5c] mt-1 font-medium",children:"Select a replacement from your other top matches."})]}),i.jsx("button",{type:"button","aria-label":"Close swap series dialog","data-dialog-initial-focus":!0,onClick:()=>_(null),className:"p-2 hover:bg-[#1A1A1A]/10 rounded-[10px] text-[#1A1A1A] transition-colors",children:i.jsx(n3,{className:"w-5 h-5"})})]}),i.jsx("div",{className:"flex-1 overflow-y-auto p-[30px]",children:(()=>{const D=aw.find(G=>G.key===E.bundleKey)?s.yearPlan.slice(0,aw.find(G=>G.key===E.bundleKey).seriesCount):[],U=M(E.bundleKey,D),L=new Set(U.map(G=>G.id)),$=s.yearPlan.filter(G=>!L.has(G.id));return $.length===0?i.jsx("p",{className:"text-[#5a5a5c] text-center py-10 font-semibold text-[15px]",children:"No other series available to swap right now."}):i.jsx("div",{className:"space-y-[14px]",children:$.map(G=>i.jsxs("div",{className:"flex gap-[20px] p-[20px] border-[1.5px] border-[#1A1A1A]/10 rounded-[16px] hover:border-primary/40 transition-colors",children:[i.jsx("div",{className:"w-[64px] h-[64px] bg-[#F2F2F3] rounded-[10px] border border-[#1A1A1A]/5 overflow-hidden flex-shrink-0",children:G.image?i.jsx("img",{src:G.image,alt:"",className:"w-full h-full object-cover"}):i.jsx(Fr,{className:"w-8 h-8 m-auto mt-4 text-[#8a8a8c]"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-extrabold text-[16px] text-[#1A1A1A] mb-1",children:G.title}),i.jsx("p",{className:"text-[13.5px] text-[#5a5a5c] leading-[1.4] mb-3 line-clamp-2",children:G.description}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-[10px] border-[#1A1A1A]/20 font-extrabold text-[11.5px] tracking-[0.09em] uppercase hover:border-primary hover:text-primary",onClick:()=>P(E.bundleKey,E.pickIndex,G,D),children:"Select Series"})]})]},G.id))})})()})]})]})})]})}function c5e(){Lo(Io["/curriculum-quiz"]);const[e,t]=v.useState(0),[n,r]=v.useState({}),[a,s]=v.useState(""),[l,u]=v.useState([]),d=()=>t(1),f=(b,N)=>r(k=>({...k,[b]:N})),m=()=>t(b=>b+1),p=()=>t(b=>Math.max(0,b-1)),g=b=>{s(b),t(Xa.length+2)},y=b=>{u(b),t(Xa.length+3)},w=()=>{t(0),r({}),s(""),u([])};if(e===0)return i.jsx(t5e,{onStart:d});if(e<=Xa.length){const b=e-1,N=Xa[b];return i.jsx(n5e,{question:N,questionNumber:e,total:Xa.length,selected:n[N.id],onSelect:k=>f(N.id,k),onNext:m,onBack:p,isLast:e===Xa.length})}return e===Xa.length+1?i.jsx(r5e,{answers:n,onContinue:g}):e===Xa.length+2?i.jsx(a5e,{onContinue:y,onBack:p}):i.jsx(l5e,{answers:n,mustHave:l,onRetake:w,capturedEmail:a})}const ul="/".replace(/\/$/,"")??"";function u5e(){const[e,t]=v.useState(0),n=ew[e];return v.useEffect(()=>{const r=window.setInterval(()=>{t(a=>(a+1)%ew.length)},7e3);return()=>window.clearInterval(r)},[e]),i.jsxs("div",{className:"max-w-[680px] mx-auto",role:"region","aria-label":"Series customer reviews",children:[i.jsx(cn,{mode:"wait",initial:!1,children:i.jsx(be.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.3},children:i.jsx(Kt,{review:n,context:"proof",className:"min-h-[180px] flex flex-col justify-center text-center !border-t-0 !pt-0 [&>div]:justify-center"})},n.name)}),i.jsx("div",{className:"flex items-center justify-center gap-2 mt-[20px]","aria-label":"Choose a review",children:ew.map((r,a)=>i.jsx("button",{type:"button",onClick:()=>t(a),className:`h-2.5 rounded-full transition-all ${a===e?"w-7 bg-primary":"w-2.5 bg-[#1A1A1A]/20 hover:bg-[#1A1A1A]/40"}`,"aria-label":`Show review from ${r.name}`,"aria-current":a===e?"true":void 0},r.name))})]})}const sw={starter:{"1-50":"54095573811484","51-250":"54095580758300","251+":"54095580791068"},builder:{"1-50":"54095581708572","51-250":"54095581741340","251+":"54095581774108"},ministry:{"1-50":"54095599730972","51-250":"54095599763740","251+":"54095599796508"}},ow={starter:{name:"The Starter",limit:4,prices:{"1-50":"160","51-250":"200","251+":"280"}},builder:{name:"The Builder",limit:8,prices:{"1-50":"320","51-250":"400","251+":"560"}},ministry:{name:"The Ministry Year",limit:12,prices:{"1-50":"480","51-250":"600","251+":"840"}}},d5e={starter:"builder",builder:"ministry"},y6=.1,v6=.15,lw="whole-life-discipleship-volume-2",f5e={"1-50":597,"51-250":797,"251+":997},h5e="https://reframeyouth.myshopify.com/cdn/shop/files/Frame_777.png?v=1765555970&width=400",cw={starter:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/2_6b86ff27-c2b3-4d2f-ba7a-4fb6ab2faade.png?v=1778115343",builder:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/3.png?v=1778115343",ministry:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/4.png?v=1778115343"},m5e=[{value:"1-50",label:"1â50 students"},{value:"51-250",label:"51â250 students"},{value:"251+",label:"251+ students"}],p5e=["Teaching Guides","Small Group Guides","Discussion Questions","Video Teachings","Bumper Video","PowerPoint Slides","Midweek Devotionals","Midweek Reflections","YouVersion Devotional","Games & Icebreakers","Volunteer Series Guides","Parent Emails","Social Media & Promo Graphics","Social Media Graphics","Promotional Materials","Series Prep Podcast","Audio Insights","Author Insights Audio"],x5e=[{label:"Mental & Emotional Health",tags:["Mental Health","Anxiety","Depression","Fear","Anger","Shame","Trauma","Emotions","Happiness","Suicide","Self-harm"]},{label:"Identity & Culture",tags:["Identity","Cultural Issues","Social Media","AI","LGBTQIA+","Racism","Politics","Tolerance","Postmodernism","Influencers","Indiv
159iduality"]},{label:"Faith & Spiritual Life",tags:["Spiritual Formation","Books of the Bible","Prayer","Fasting","Silence","Jesus","The Gospel","Evangelism","Apologetics"]},{label:"Relationships",tags:["Dating & Relationships","Friendship","Community","Love","Family","Marriage","Sex","Forgiveness","Trust","Rejection","Abandonment","Attachment"]},{label:"Leadership & Purpose",tags:["Authority","Responsibility","Wisdom","Self-awareness","Self-control","Power","Money"]},{label:"Seasonal",tags:["Christmas","Easter"]}];function g5e({product:e,inBundleMode:t,isSelected:n,atLimit:r,onToggle:a,onOpenDetail:s}){const l=!r||n;return i.jsxs(be.div,{layout:!0,initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,scale:.97},transition:{duration:.25},className:`group relative flex flex-col rounded-[16px] border overflow-hidden bg-white shadow-sm transition-shadow hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] ${n?"border-primary ring-1 ring-primary":"border-[#1A1A1A]/10"}`,children:[n&&i.jsx("div",{className:"absolute top-3 right-3 z-20 bg-primary text-white rounded-[8px] w-7 h-7 flex items-center justify-center shadow-lg",children:i.jsx(ko,{className:"w-4 h-4"})}),i.jsx("button",{onClick:()=>s(e),className:"block text-left focus:outline-none relative",tabIndex:-1,children:i.jsxs("div",{className:"aspect-[4/3] bg-[#1A1A1A] p-[24px] relative flex flex-col justify-between overflow-hidden",children:[e.image?i.jsx("img",{src:e.image,alt:e.title,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}):i.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#1A1A1A] to-[#333333] flex items-center justify-center",children:i.jsx(Fr,{className:"w-10 h-10 text-white/10"})}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A]/90 via-[#1A1A1A]/20 to-transparent"}),e.tags.length>0&&i.jsx("div",{className:"relative z-10 flex flex-wrap gap-1.5 self-start",children:e.tags.slice(0,2).map(u=>i.jsx("span",{className:"text-[10px] font-black tracking-[0.15em] text-white bg-primary px-2 py-1 rounded-[8px] uppercase",children:u},u))}),i.jsx("h3",{className:"relative z-10 text-[22px] font-black tracking-tight text-white leading-[1.05] mt-auto drop-shadow-[0_2px_8px_rgba(0,0,0,0.7)] group-hover:text-primary transition-colors",children:e.title})]})}),i.jsx("div",{className:"flex flex-col flex-1 p-[24px]",children:i.jsxs("div",{className:"mt-auto flex flex-col gap-[12px]",children:[t?i.jsx("button",{onClick:()=>a(e),disabled:!l,className:`w-full rounded-[10px] text-[12.5px] font-extrabold uppercase tracking-[0.09em] py-[16px] transition-all flex items-center justify-center gap-2 ${n?"bg-primary text-white hover:bg-[#B01E2C]":l?"bg-[#F2F2F3] text-[#1A1A1A] hover:bg-[#1A1A1A] hover:text-white border border-transparent":"bg-[#F2F2F3] text-[#1A1A1A]/30 cursor-not-allowed border border-transparent"}`,children:n?i.jsxs(i.Fragment,{children:[i.jsx(ko,{className:"w-4 h-4"})," Added"]}):r?"Bundle Full":"+ Add to Bundle"}):i.jsx("p",{className:"text-center text-[11px] font-bold uppercase tracking-widest text-[#1A1A1A]/40 py-1.5",children:"Select a bundle"}),i.jsxs("button",{onClick:()=>s(e),className:"w-full rounded-[10px] text-[12.5px] font-extrabold uppercase tracking-[0.09em] py-[14px] transition-all border-[2px] border-[#1A1A1A]/10 text-[#1A1A1A] hover:border-[#1A1A1A] flex items-center justify-center gap-2",children:[i.jsx(I8,{className:"w-4 h-4"}),"View Details"]})]})})]})}function y5e({product:e,inBundleMode:t,isSelected:n,atLimit:r,onToggle:a,onClose:s}){const l=!r||n,u=Lk(!!e,s);return i.jsx(cn,{children:e&&i.jsxs(i.Fragment,{children:[i.jsx(be.div,{initial:{opacity:0}
159,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-[#1A1A1A]/60 backdrop-blur-[4px]",onClick:s}),i.jsxs(be.div,{ref:u,initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",stiffness:380,damping:38},className:"fixed inset-y-0 right-0 z-50 w-full sm:w-[480px] bg-white overflow-y-auto shadow-[0_0_60px_rgba(0,0,0,0.3)] flex flex-col border-l border-[#1A1A1A]/10",role:"dialog","aria-modal":"true","aria-labelledby":"series-details-dialog-title",tabIndex:-1,children:[i.jsxs("div",{className:"flex items-center justify-between px-[32px] py-[24px] border-b border-[#1A1A1A]/10 sticky top-0 bg-white/95 backdrop-blur z-20",children:[i.jsx("span",{id:"series-details-dialog-title",className:"text-[12px] font-extrabold text-primary uppercase tracking-[0.18em]",children:"Series Details"}),i.jsx("button",{onClick:s,"aria-label":"Close series details","data-dialog-initial-focus":!0,className:"w-[36px] h-[36px] flex items-center justify-center rounded-[10px] hover:bg-[#F2F2F3] text-[#1A1A1A] transition-colors",children:i.jsx(Oa,{className:"w-5 h-5"})})]}),i.jsxs("div",{className:"aspect-[4/3] bg-[#1A1A1A] p-[32px] relative flex flex-col justify-between shrink-0 overflow-hidden",children:[e.image?i.jsx("img",{src:e.image,alt:e.title,className:"absolute inset-0 w-full h-full object-cover"}):i.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#1A1A1A] to-[#333333] flex items-center justify-center",children:i.jsx(Fr,{className:"w-12 h-12 text-white/10"})}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A]/95 via-[#1A1A1A]/30 to-transparent"}),i.jsx("h2",{className:"relative z-10 font-black text-[32px] text-white leading-tight mt-auto drop-shadow-md tracking-tight",children:e.title})]}),i.jsxs("div",{className:"flex-1 px-[32px] py-[32px]",children:[e.tags.length>0&&i.jsx("div",{className:"flex flex-wrap gap-[8px] mb-[28px]",children:e.tags.map(d=>i.jsx("span",{className:"text-[11px] font-extrabold bg-[#F2F2F3] text-[#5a5a5c] px-3 py-1.5 rounded-[8px] uppercase tracking-widest",children:d},d))}),(e.contentTypes??[]).length>0&&i.jsxs("div",{className:"mb-[32px]",children:[i.jsx("p",{className:"text-[11.5px] font-extrabold text-[#1A1A1A]/50 uppercase tracking-[0.15em] mb-[12px]",children:"What's Included"}),i.jsx("div",{className:"flex flex-wrap gap-[8px]",children:(e.contentTypes??[]).map(d=>i.jsx("span",{className:"text-[13px] font-bold border border-[#1A1A1A]/10 bg-white text-[#1A1A1A] px-3 py-1.5 rounded-[10px]",children:d},d))})]}),i.jsxs("div",{className:"mb-[12px]",children:[i.jsx("p",{className:"text-[11.5px] font-extrabold text-[#1A1A1A]/50 uppercase tracking-[0.15em] mb-[12px]",children:"About this Series"}),e.description?i.jsx("div",{className:"space-y-[16px]",children:e.description.split(` 160 161`).map(d=>d.trim()).filter(Boolean).map((d,f)=>i.jsx("p",{className:"text-[16px] text-[#333333] leading-[1.6] font-medium",children:d},f))}):i.jsx("p",{className:"text-[16px] text-[#1A1A1A]/40 italic font-medium",children:"No description available."})]})]}),i.jsx("div",{className:"sticky bottom-0 bg-white border-t border-[#1A1A1A]/10 p-[32px]",children:t?i.jsx("button",{onClick:()=>{a(e),s()},disabled:!l,className:`w-full rounded-[10px] font-extrabold tracking-[0.09em] uppercase py-[22px] text-[13.5px] transition-all flex items-center justify-center gap-2 ${n?"bg-white text-primary border-[2px] border-primary hover:bg-primary/5":l?"bg-primary text-white hover:bg-[#B01E2C]":"bg-[#F2F2F3] text-[#1A1A1A]/30 cursor-not-allowed border-[2px] border-transparent"}`,children:n?i.jsxs(i.Fragment,{children:[i.jsx(ko,{className:"w-4 h-4"})," Already in Bundle. Remove"]}):r?"Bundle Full":"+ Add to Bundle"}):i.jsx("div",{className:"text-center bg-[#F2F2F3] p-4 rounded-[10px] border border-[#1A1A1A]/5",children:i.jsx("p",{className:"text-[13px] font-bold text-[#5a5a5c]",children:"Select a bundle size on the page to start adding series."})})})]})]})})}const v5e=[{label:"What's Included",tags:p5e},...x5e];function b5e({activeFilters:e,onToggleFilter:t,onClearAll:n,seriesByTag:r}){const[a,s]=v.useState(null),l=v.useRef(null);return v.useEffect(()=>{function u(d){l.current&&!l.current.contains(d.target)&&s(null)}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]),i.jsx("div",{ref:l,className:"bg-[#F2F2F3] border border-[#1A1A1A]/10 rounded-[16px]",children:i.jsxs("div",{className:"px-5 py-4 flex items-center gap-[12px] flex-wrap",children:[i.jsx("span",{className:"text-[11px] font-extrabold text-[#1A1A1A]/50 uppercase tracking-[0.18em] shrink-0 mr-2",children:"Filter By"}),v5e.map(u=>{const d=u.tags.filter(g=>e.has(g)),f=a===u.label,m=u.tags.filter(g=>(r.get(g)??0)>0),p=`bundle-filter-${u.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")}-options`;return i.jsxs("div",{className:"relative",children:[i.jsxs("button",{onClick:()=>s(f?null:u.label),"aria-expanded":f,"aria-controls":p,className:`flex items-center gap-2 px-[16px] py-[10px] rounded-[10px] border-[2px] text-[11px] uppercase tracking-widest font-extrabold transition-all whitespace-nowrap ${d.length>0?"bg-primary text-white border-primary shadow-sm":"bg-white border-[#1A1A1A]/10 text-[#1A1A1A] hover:border-[#1A1A1A]/30 shadow-sm"}`,children:[u.label,d.length>0&&i.jsx("span",{className:"bg-white/30 text-white text-[10px] px-1.5 py-0.5 rounded-[8px] font-black leading-none",children:d.length}),i.jsx(Gi,{className:`w-3.5 h-3.5 transition-transform ${f?"rotate-180":""} ${d.length>0?"text-white/70":"text-[#1A1A1A]/40"}`})]}),f&&i.jsx("div",{id:p,className:"absolute top-full left-0 mt-2 z-30 bg-white rounded-[16px] border border-[#1A1A1A]/10 shadow-[0_20px_60px_rgba(0,0,0,0.12)] min-w-[240px] max-h-80 overflow-y-auto",children:i.jsx("div",{className:"p-3 flex flex-col gap-1",children:m.map(g=>{const y=r.get(g)??0,w=e.has(g);return i.jsxs("label",{className:"flex items-center gap-[12px] curs
161or-pointer px-[12px] py-[10px] rounded-[10px] hover:bg-[#F2F2F3] transition-colors",children:[i.jsx("input",{type:"checkbox",checked:w,onChange:()=>t(g),className:"sr-only peer"}),i.jsx("span",{"aria-hidden":"true",className:`w-[18px] h-[18px] rounded-[8px] border-[2px] flex items-center justify-center shrink-0 transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 ${w?"bg-primary border-primary":"border-[#1A1A1A]/20 bg-white"}`,children:w&&i.jsx(ko,{className:"w-3 h-3 text-white"})}),i.jsx("span",{className:`text-[13px] leading-tight flex-1 ${w?"text-[#1A1A1A] font-extrabold":"text-[#5a5a5c] font-semibold"}`,children:g}),i.jsx("span",{className:"text-[11px] font-bold text-[#1A1A1A]/40 shrink-0",children:y})]},g)})})})]},u.label)}),e.size>0&&i.jsxs("button",{onClick:n,className:"ml-2 flex items-center gap-1.5 text-[11px] font-extrabold tracking-widest uppercase text-[#1A1A1A]/40 hover:text-primary transition-colors",children:[i.jsx(Oa,{className:"w-3.5 h-3.5"})," Clear all"]})]})})}function w5e(){const e=new URLSearchParams(window.location.search);return{bundle:e.get("bundle"),size:e.get("size"),seriesIds:e.get("series")?.split(",").map(Number).filter(Boolean)??[]}}function j5e(){const[,e]=et(),{isSignedIn:t}=Vt();Lo(Io["/build-bundle"]);const n=new URLSearchParams(window.location.search).get("embed")==="true",r=v.useRef(w5e()),[a,s]=v.useState([]),[l,u]=v.useState(!0),[d,f]=v.useState(!1),[m,p]=v.useState(r.current.bundle),[g,y]=v.useState(r.current.size),[w,b]=v.useState(new Set),[N,k]=v.useState(new Set),[C,A]=v.useState(""),[E,_]=v.useState(null),[T,M]=v.useState(!1),[P,D]=v.useState(null),[U,L]=v.useState(""),[$,G]=v.useState(null),[H,V]=v.useState(!1),[B,K]=v.useState(!1),[Q,ce]=v.useState(null),[I,J]=v.useState(!1),[fe,ue]=v.useState(null),[ve,Se]=v.useState(null),Ne=Lk(H,We);ud(()=>{M(!1),J(!1),V(!1),D(null),G(null)});const ge=v.useRef(!1),ke=v.useRef(!1),le=v.useRef(!1);v.useEffect(()=>{async function Ee(){try{const tt=await fetch(`${ul}/api/series`);if(!tt.ok)throw new Error("Failed");const Ye=await tt.json();s(Ye.series??[])}catch{f(!0)}finally{u(!1)}}Ee()},[]),v.useEffect(()=>{!l&&a.length>0&&r.current.seriesIds.length>0&&!ge.current&&(ge.current=!0,k(new Set(r.current.seriesIds)))},[l,a]),v.useEffect(()=>{if(le.current){le.current=!1;return}ke.current&&k(new Set)},[m]),v.useEffect(()=>{G(null)},[m,g]),v.useEffect(()=>{if(!n)return;const Ee=()=>{window.parent.postMessage({type:"reframe-height",height:document.body.scrollHeight},"*")};Ee();const tt=new ResizeObserver(Ee);return tt.observe(document.body),()=>tt.disconnect()},[n]);const we=!!m&&N.size>0;v.useEffect(()=>(document.body.classList.toggle("has-checkout-bar",we),()=>document.body.classList.remove("has-checkout-bar")),[we]);const he=m?ow[m]:null,X=he?.limit??0,F=N.size>=X;function xe(Ee){k(tt=>{const Ye=new Set(tt);if(Ye.has(Ee.id))Ye.delete(Ee.id);else if(!F){Ye.add(Ee.id);try{window.fbq?.("track","AddToCart",{content_ids:[Ee.id],content_name:Ee.title,content_type:"product",currency:"USD"})}catch{}}return Ye})}function je(Ee){b(tt=>{const Ye=new Set(tt);return Ye.has(Ee)?Ye.delete(Ee):Ye.add(Ee),Ye})}const He=v.useMemo(()=>{const Ee=new Map;return a.forEach(tt=>{tt.tags.forEach(Ye=>Ee.set(Ye,(Ee.get(Ye)??0)+1)),(tt.contentTypes??[]).forEach(Ye=>Ee.set(Ye,(Ee.get(Ye)??0)+1))}),Ee},[a]),Qe=v.useMemo(()=>a.filter(Ee=>C&&!Ee.title.toLowerCase().includes(C.toLowerCase())?!1:w.size===0?!0:[...Ee.tags,...Ee.contentTypes??[]].some(Ye=>w.has(Ye))),[a,C,w]);async function er(){if(!m||N.size===0)return;if(!g){D("Please select your youth group size first."),document.getElementById("step-size")?.scrollIntoView({behavior:"smooth",block:"center"});return}const Ee=U.trim(),tt=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Ee);if(!Ee||!tt){D("Please enter a valid email to continue.");return}if(m!=="ministry"&&!B&&Q===null&&!$){D(null);try{const Ye=await fetch(`${ul}/api/bundle/upsell-offer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bundleVariantId:sw[m][g],accessVariantIds:a.filter(Mn=>N.has(Mn.id)).map(Mn=>
161Mn.bundleAccessVariantId).filter(Mn=>Mn!==null),email:U.trim()})});if(!Ye.ok)throw new Error("no offer");const mr=await Ye.json();ue(mr),Se(g),V(!0);return}catch{K(!0)}}await hr()}async function hr(){if(!m||!g||N.size===0)return;const Ee=U.trim(),tt=sw[m]?.[g];if(!tt){D("Bundle configuration error. Please refresh and try again.");return}const Ye=a.filter(dn=>N.has(dn.id)),mr=Ye.map(dn=>dn.title),Mn=Ye.map(dn=>dn.bundleAccessVariantId).filter(dn=>dn!==null),pr=[`Bundle: ${he?.name??m}`,`Group size: ${g} students`,...q?[`Upsell: upgraded to ${he?.name??m} (10% off)`]:[],"Selected series:",...mr.map((dn,si)=>`${si+1}. ${dn}`)].join(` 162`);M(!0),D(null);try{try{window.fbq?.("track","InitiateCheckout",{content_ids:[...N].map(String),num_items:N.size,currency:"USD",value:un??void 0})}catch{}Ns("bundle_checkout_started",{bundle:m,church_size:g,series_count:N.size,upsell_applied:q,source:"bundle_builder"});const dn=await BI({bundleVariantId:tt,accessVariantIds:Mn,note:pr,email:Ee,...$?{couponCode:$.code}:{},...q&&fe&&!$?{upsellToken:fe.upgradeToken}:{}});window.location.href=dn.checkoutUrl}catch{D("Couldn't start checkout. Please try again."),M(!1)}}const un=he?.prices?.[g]??null,q=Q!==null&&m===Q&&g===ve&&fe!==null,te=q&&un?(parseFloat(un)*(1-y6)).toFixed(2).replace(/\.00$/,""):null,oe=m?d5e[m]??null:null,Ce=oe?ow[oe]:null,Ae=Ce&&g?parseFloat(Ce.prices[g]):null,ye=g?f5e[g]??null:null;function Te(){oe&&(V(!1),ce(oe),le.current=!0,p(oe))}
162async function Xe(){if(!(!g||!fe)){J(!0);try{om({id:lw,name:"Whole Life Discipleship Curriculum Volume 2 (upsell)",price:ye!=null?ye*(1-v6):void 0}),Ns("shop_checkout_started",{product:lw,tier:g,coupon_applied:!0,source:"bundle_upsell"});const Ee=await fetch(`${ul}/api/shop/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:lw,tier:g,upsellToken:fe.wldToken,email:U.trim().toLowerCase()})});if(!Ee.ok)throw new Error("checkout failed");const{checkoutUrl:tt}=await Ee.json();window.location.href=tt}catch{J(!1),V(!1),D("Couldn't start the WLD checkout. Please try again.")}}}function We(){V(!1),K(!0),hr()}return l?i.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:i.jsx(Xt,{className:"w-10 h-10 animate-spin text-primary"})}):d?i.jsxs("div",{className:"min-h-screen bg-white flex flex-col items-center justify-center p-6 text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-[#1A1A1A] text-white rounded-[10px] flex items-center justify-center mb-6",children:i.jsx(Oa,{className:"w-8 h-8"})}),i.jsx("h2",{className:"text-[28px] font-black text-[#1A1A1A] tracking-tight mb-3",children:"Failed to load series"}),i.jsx("p",{className:"text-[#5a5a5c] text-[16px] font-medium mb-8",children:"There was an error connecting to the server."}),i.jsx("button",{onClick:()=>window.location.reload(),className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] uppercase tracking-[0.09em] py-[20px] px-[32px] rounded-[10px] transition-colors",children:"Try Again"})]}):i.jsxs("div",{className:"min-h-screen bg-white font-sans selection:bg-primary/20 pb-[190px] sm:pb-[110px]",children:[!n&&i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsx(cn,{children:m&&N.size>0&&i.jsxs(be.div,{initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{type:"spring",stiffness:400,damping:32},className:"fixed bottom-0 left-0 right-0 z-40 bg-[#1A1A1A] border-t border-[#333333] shadow-[0_-10px_40px_rgba(0,0,0,0.3)] px-4 py-3 sm:p-4 lg:px-10",children:[i.jsxs("div",{className:"max-w-[1240px] mx-auto flex flex-col sm:flex-row items-stretch sm:items-center gap-3 sm:gap-4",children:[i.jsx("div",{className:"flex items-center justify-between sm:justify-start gap-4 shrink-0",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-[40px] h-[40px] bg-[#333333] rounded-[10px] hidden sm:flex items-center justify-center shrink-0",children:i.jsx(z8,{className:"w-5 h-5 text-primary"})}),i.jsxs("div",{className:"flex flex-col",children:[i.jsx("span",{className:"text-[10px] font-extrabold uppercase tracking-[0.18em] text-primary mb-0.5",children:"Your Bundle"}),i.jsxs("span",{className:"text-[14px] font-bold text-white leading-none",children:[N.size," of ",X," selected",un?te?i.jsxs("span",{className:"font-extrabold",children:[" · ",i.jsxs("span",{className:"text-white/40 line-through",children:["$",un]})," ",i.jsxs("span",{className:"text-primary",children:["$",te]})," ",i.jsx("span",{className:"text-[11px] text-primary uppercase",children:"10% off"})]}):i.jsxs("span",{className:"text-white/60 font-extrabold",children:[" · $",un]}):null]})]})]})}),i.jsxs("div",{className:"flex-1 flex flex-col sm:flex-row items-stretch gap-2 sm:gap-3 sm:justify-end",children:[g&&i.jsx("div",{className:"w-full sm:w-[280px] sm:shrink-0 flex items-center",children:i.jsx(sm,{dark:!0,bundleVariantId:sw[m][g],applied:$,onApplied:G})}),i.jsx("input",{type:"email","aria-label":"Email for checkout",placeholder:"[email protected]",value:U,onChange:Ee=>L(Ee.target.value),className:"flex-1 sm:max-w-[320px] px-[16px] py-[13px] text-[15px] font-medium text-white bg-[#2A2A2A] border-[2px] border-[#3d3d3d] rounded-[10px] placeholder:text-white/35 focus:border-primary focus:ring-0 focus:outline-none transition-colors"}),i.jsx("button",{onClick:er,disabled:T||N.size===0,className:`shrink-0 flex items-center justify-center gap-2 font-extrabold text-[12.5px] uppercase tracking-[0.09em] px-[24px] py-[14px] rounded-[10px] transition-colors ${T||N.size===0?"bg-[#333333] text-white/40 cursor-not-allowed":"bg-primary hover:bg-[#B01E2C] text-white"}`,children:T?i.jsxs(i.Fragment,{children:[i.jsx(Xt,{className:"w-4 h-4 animate-spin"})," Preparing..."]}):i.jsxs(i.Fragment,{children:["Checkout ",i.jsx(gt,{className:"w-4 h-4"})]})})]})]}),P&&i.jsx("div",{className:"max-w-[1240px] mx-auto mt-2 text-[13px] font-bold text-[#ff8a94]",children:P})]})}),i.jsx(cn,{children:H&&Ce&&i.jsx(be.div,{initial:{opacity:0}
162,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/60 flex items-center justify-center p-4 overflow-y-auto",onClick:We,children:i.jsxs(be.div,{ref:Ne,initial:{opacity:0,y:24,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.97},transition:{type:"spring",stiffness:400,damping:32},className:"bg-white rounded-[16px] max-w-[560px] w-full p-6 sm:p-8 my-8",onClick:Ee=>Ee.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Special offers before checkout",tabIndex:-1,children:[i.jsx("div",{className:"text-[11px] font-extrabold uppercase tracking-[0.18em] text-primary mb-2",children:"Wait â one-time offer"}),i.jsx("h3",{className:"m-0 text-[24px] leading-[1.1] font-black text-[#1A1A1A] tracking-tight mb-5",children:"Get more for less before you check out"}),i.jsx("button",{type:"button",onClick:Te,"data-dialog-initial-focus":!0,className:"w-full text-left border-[2px] border-[#E5E5E6] hover:border-primary rounded-[12px] p-4 sm:p-5 mb-3 transition-colors group","data-testid":"upsell-upgrade",children:i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[oe&&cw[oe]&&i.jsx("img",{src:cw[oe],alt:Ce.name,className:"w-[72px] h-[72px] object-cover rounded-[10px] shrink-0 border border-[#E5E5E6]",loading:"lazy"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("p",{className:"m-0 text-[15px] font-black text-[#1A1A1A]",children:["Upgrade to ",Ce.name," â ",i.jsx("span",{className:"text-primary",children:"10% off"})]}),i.jsxs("p",{className:"m-0 mt-1 text-[13.5px] font-medium text-[#5a5a5c]",children:[Ce.limit," series instead of ",X,". Your picks carry over â just add"," ",Ce.limit-N.size," more."]}),i.jsx("p",{className:"m-0 mt-1.5 text-[12.5px] font-semibold text-[#1A1A1A]",children:"Why it fits: you cover more of the year without re-planning â and each series costs less than in your current bundle."})]}),Ae!==null&&i.jsxs("div",{className:"text-right shrink-0",children:[i.jsxs("p",{className:"m-0 text-[13px] font-bold text-[#9a9a9c] line-through",children:["$",Ae]}),i.jsxs("p",{className:"m-0 text-[18px] font-black text-primary",children:["$",(Ae*(1-y6)).toFixed(2).replace(/\.00$/,"")]})]})]})}),i.jsx("button",{type:"button",onClick:Xe,disabled:I,className:"w-full text-left border-[2px] border-[#E5E5E6] hover:border-primary rounded-[12px] p-4 sm:p-5 mb-5 transition-colors disabled:opacity-60","data-testid":"upsell-wld",children:i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[i.jsx("img",{src:h5e,alt:"Whole Life Discipleship Curriculum Volume 2",className:"w-[72px] h-[72px] object-cover rounded-[10px] shrink-0 border border-[#E5E5E6]",loading:"lazy"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("p",{className:"m-0 text-[15px] font-black text-[#1A1A1A]",children:["Go all in: WLD Volume 2 â ",i.jsx("span",{className:"text-primary",children:"15% off"})]}),i.jsx("p",{className:"m-0 mt-1 text-[13.5px] font-medium text-[#5a5a5c]",children:"A full ministry year: 12 series, 49 weeks, videos, devotionals, parent resources & more."}),i.jsx("p",{className:"m-0 mt-1.5 text-[12.5px] font-semibold text-[#1A1A1A]",children:"Why it fits: one decision plans your whole year â teaching, small groups, and parent follow-up all connected, ready week one."})]}),i.jsx("div",{className:"text-right shrink-0",children:I?i.jsx(Xt,{className:"w-5 h-5 animate-spin text-primary"}):ye!==null?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"m-0 text-[13px] font-bold text-[#9a9a9c] line-through",children:["$",ye]}),i.jsxs("p",{className:"m-0 text-[18px] font-black text-primary",children:["$",(ye*(1-v6)).toFixed(2).replace(/\.00$/,"")]})]}):null})]})}),i.jsxs("button",{type:"button",onClick:We,disabled:I,className:"w-full bg-[#1A1A1A] hover:bg-black text-white font-extrabold text-[12.5px] uppercase tracking-[0.09em] py-[15px] rounded-[10px] transition-colors disabled:opacity-60","data-testid":"upsell-decline",children:["No thanks â checkout with ",he?.name??"my bundle"]})]})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A] overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${ul}/site/bundle-hero-1440.webp`,desktopSrcSet:`${ul}/site/bundle-hero-1440.webp 1440w, ${ul}/site/bundle-hero-1920.webp 1920w`,mobileSrc:`${ul}/site/bundle-hero-mobile-804.webp`,loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-[#0F0F0F]/35"}),i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[110px] pb-[90px] flex flex-col items-center text-center relative z-10",children:[i.jsx(be.div,{initial:{opacity:0,y:16}
162,animate:{opacity:1,y:0},transition:{duration:.45},children:i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[16px]",children:"Build Your Bundle"})}),i.jsxs(be.h1,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.45,delay:.08},className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-white text-balance",children:["Choose your series.",i.jsx("br",{}),i.jsx("span",{className:"text-primary",children:"Keep what you need."})]}),i.jsx(be.p,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.45,delay:.12},className:"mt-[32px] text-[19px] leading-[1.6] text-white/80 max-w-[42em] mx-auto text-pretty font-medium",children:"Don't get locked into curriculum you won't use. Pick the size that fits your ministry, then select the exact series you want to teach this year."}),i.jsx(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.45,delay:.18},className:"mt-[24px] max-w-[560px] mx-auto w-full text-center",children:i.jsx(Kt,{review:Gz[0],variant:"dark",context:"hero",className:"border-t-0 pt-0 [&>div]:justify-center [&_blockquote]:text-white [&_figcaption]:text-white/80"})})]})]}),i.jsx("section",{className:"bg-[#F2F2F3] border-b border-[#1A1A1A]/5",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 py-[28px] flex flex-col sm:flex-row items-stretch justify-center gap-[12px]",children:[{n:"1",t:"Pick your bundle size",d:"4, 8, or 12 series"},{n:"2",t:"Choose your series",d:"Tap + Add on the ones you want"},{n:"3",t:"Check out",d:"Enter your email in the bar below"}].map(Ee=>i.jsxs("div",{className:"flex-1 flex items-center gap-[14px] px-[18px] py-[10px] text-left",children:[i.jsx("span",{className:"w-[34px] h-[34px] rounded-full bg-primary text-white font-black text-[15px] flex items-center justify-center shrink-0",children:Ee.n}),i.jsxs("span",{className:"flex flex-col",children:[i.jsx("span",{className:"text-[#1A1A1A] font-extrabold text-[13.5px] uppercase tracking-[0.05em] leading-tight",children:Ee.t}),i.jsx("span",{className:"text-[#5a5a5c] text-[12.5px] font-medium leading-tight mt-[2px]",children:Ee.d})]})]},Ee.n))})}),i.jsx("section",{className:"bg-white",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 py-[56px]",children:i.jsxs("div",{className:"relative overflow-hidden rounded-[20px] border border-primary/20 bg-[#FFF6F7] px-6 py-8 sm:px-10 sm:py-9",children:[i.jsx("div",{className:"absolute -right-12 -top-16 h-44 w-44 rounded-full bg-primary/10","aria-hidden":"true"}),i.jsxs("div",{className:"relative flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary text-white",children:i.jsx(Fr,{className:"h-5 w-5","aria-hidden":"true"})}),i.jsxs("div",{className:"max-w-[680px]",children:[i.jsx("p",{className:"mb-2 text-[11px] font-extrabold uppercase tracking-[0.18em] text-primary",children:"Not sure where to start?"}),i.jsx("h2",{className:"m-0 text-[clamp(24px,3vw,34px)] font-black leading-[1.08] tracking-[-0.025em] text-[#1A1A1A]",children:"Let the curriculum quiz build your starting point."}),i.jsx("p",{className:"mb-0 mt-3 text-[16px] font-medium leading-[1.6] text-[#5a5a5c]",children:"Answer six quick questions about your ministry and students. Weâll recommend the series and bundle size that fit your group."})]})]}),i.jsxs("button",{type:"button",onClick:()=>e("/curriculum-quiz"),className:"inline-flex min-h-12 shrink-0 items-center justify-center rounded-full bg-primary px-7 py-3 text-[13px] font-extrabold uppercase tracking-[0.08em] text-white transition-colors hover:bg-[#B01E2C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",children:["Take the 60-Second Quiz",i.jsx(gt,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})]})]})})}),i.jsx("section",{className:"bg-[#F2F2F3] border-b border-[#1A1A1A]/5 overflow-hidden",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[40px] pb-[40px]",children:[i.jsx("div",{className:"max-w-[640px] mx-auto text-center mb-[16px]",children:i.jsx("h2",{className:"m-0 text-[clamp(28px,3vw,40px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance",children:"Series that start real conversations"})}),i.jsx(u5e,{})]})}),i.jsxs("main",{className:"relative bg-white pb-[60px]",children:[i.jsx("section",{className:"max-w-[1240px] mx-auto px-10 pt-[72px] relative z-20",children:i.jsxs("div",{children:[i.jsxs("div",{className:"text-center mb-[32px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[12px]",children:"Step 1"}),i.jsx("h2",{id:"bundle-selection-heading",className:"text-[32px] md:text-[42px] font-black text-[#1A1A1A] leading-[1.05] tracking-tight m-0",children:"Select your bundle"})]}),i.jsx("div",{role:"group","aria-labelledby":"bundle-selection-heading",className:"grid grid-cols-1 md:grid-cols-3 gap-[24px] mb-[48px]",children:Object.entries(ow).map(([Ee,tt])=>{const Ye=m===Ee;return i.jsxs("button",{type:"button","aria-pressed":Ye,onClick:()=>{p(Ye?null:Ee),ke.current=!0},className:`group relative text-left rounded-[16px] overflow-hidden border-[3px] transition-all flex flex-col min-h-[260px] ${Ye?"border-primary shadow-[0_15px_40px_rgba(216,36,53,0.15)] ring-2 ring-primary/20":"border-transparent bg-[#1A1A1A] hover:border-primary/50 shadow-md hover:shadow-xl"}`,children:[i.jsx("div",{className:"absolute inset-0 bg-[#1A1A1A] z-0"}),i.jsx("img",{src:cw[Ee],alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-60 group-hover:opacity-80 group-hover:scale-105 transition-all duration-700 z-0"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A] via-[#1A1A1A]/60 to-transparent z-0"}),i.jsxs("div",{className:"relative z-10 p-[32px] flex flex-col h-full justify-end",children:[Ye&&i.jsx("div",{className:"absolute top-[20px] right-[20px] bg-primary text-white w-8 h-8 flex items-center justify-center rounded-[10px] shadow-lg",children:i.jsx(ko,{className:"w-5 h-5"})}),i.jsx("h3",{className:"font-black text-[28px] tracking-tight text-white mb-2 drop-shadow-md leading-[1.1]",children:tt.name}),i.jsxs("p",{className:"text-primary font-extrabold uppercase tracking-[0.15em] text-[12px] bg-[#1A1A1A]/50 self-start px-2 py-1 rounded-[8px] backdrop-blur-sm",children:["Up to ",tt.limit," series"]})]})]},Ee)})}),i.jsxs("div",{id:"step-size",className:"pt-[48px] border-t border-[#1A1A1A]/10 text-center",children:[i.jsx("h3",{id:"bundle-group-size-heading",className:"text-[18px] font-black tracking-tight text-[#1A1A1A] mb-[24px]",children:"What is your average youth group size?"}),i.jsx("div",{role:"group","aria-labelledby":"bundle-group-size-heading",className:"flex flex-wrap gap-[16px] justify-center",children:m5e.map(Ee=>i.jsx("button",{type:"button","aria-pressed":g===Ee.value,onClick:()=>y(Ee.value),className:`px-[32px] py-[20px] rounded-[10px] border-[2px] font-extrabold text-[14.5px] tracking-[0.09em] uppercase transition-all ${g===Ee.value?"border-primary text-primary bg-primary/5 shadow-[0_8px_20px_rgba(216,36,53,0.1)]":"border-[#1A1A1A]/15 text-[#1A1A1A] bg-white hover:border-[#1A1A1A]/40 hover:bg-[#F2F2F3]"}`,children:Ee.label},Ee.value))})]})]})}),i.jsxs("section",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[80px]",children:[i.jsxs("div",{className:"text-center mb-[32px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[12px]",children:"Step 2"}),i.jsx("h2",{className:"text-[32px] md:text-[42px] font-black text-[#1A1A1A] leading-[1.05] tracking-tight m-0",children:"Build your curriculum"}),i.jsx("p",{className:"mt-[16px] text-[18px] text-[#5a5a5c] font-medium max-w-2xl mx-auto",children:X?`Select up to ${X} series for your bundle. Use the filters to find topics relevant to your students.`:"Pick a bundle above to start selecting series. Use the filters to find topics relevant to your students."})]}),i.jsxs("div",{className:"mb-[32px] max-w-md mx-auto relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-[20px] flex items-center pointer-events-none",children:i.jsx(SN,{className:"h-5 w-5 text-[#1A1A1A]/40"})}),i.jsx("input",{type:"text","aria-label":"Search series by title",placeholder:"Search series by title...",value:C,onChange:Ee=>A(Ee.target.value),className:"block w-full pl-[52px] pr-[20px] py-[20px] text-[16px] font-medium text-[#1A1A1A] bg-white border-[2px] border-[#1A1A1A]/10 rounded-[10px] placeholder:text-[#1A1A1A]/40 focu
162s:border-primary focus:ring-0 focus:outline-none transition-colors shadow-sm"})]}),i.jsx("div",{className:"mb-[48px]",children:i.jsx(b5e,{activeFilters:w,onToggleFilter:je,onClearAll:()=>b(new Set),seriesByTag:He})}),Qe.length===0?i.jsxs("div",{className:"text-center py-[80px] bg-white rounded-[16px] border border-[#1A1A1A]/10 shadow-sm",children:[i.jsx(Fr,{className:"w-12 h-12 text-[#1A1A1A]/20 mx-auto mb-4"}),i.jsx("h3",{className:"text-[20px] font-black text-[#1A1A1A] mb-2 tracking-tight",children:"No series found"}),i.jsx("p",{className:"text-[#5a5a5c] font-medium text-[16px]",children:"Try adjusting your search or filters."}),i.jsx("button",{onClick:()=>{A(""),b(new Set)},className:"mt-6 text-primary font-extrabold text-[13.5px] uppercase tracking-[0.09em] hover:text-[#B01E2C] underline underline-offset-4",children:"Clear all filters"})]}):i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-[24px]",children:i.jsx(cn,{children:Qe.map(Ee=>{const tt=N.has(Ee.id);return i.jsx(g5e,{product:Ee,inBundleMode:!!m,isSelected:tt,atLimit:F,onToggle:xe,onOpenDetail:_},Ee.id)})})})]})]}),i.jsx(y5e,{product:E,inBundleMode:!!m,isSelected:E?N.has(E.id):!1,atLimit:F,onToggle:xe,onClose:()=>_(null)}),!n&&i.jsx(Ur,{})]})}const Za="/",b6=`${Za}site/storybrand`,Ht=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e}),N5e=["You're running on empty and have no honest read on your own mental health","You're guessing how your students are actually doing, until something breaks","You're prepping late, unsure the material even fits your group",'The "resources" out there cost money, sell your data, or miss ministry reality'],S5e=[{kicker:"Take care of yourself",name:"Leader Self-Assessment",question:'"Am I actually okay?"',desc:"A private, clinically-grounded mental-health snapshot using four validated screening tools. No account. Results shown only to you.",features:["GAD-7 · anxiety","PHQ-9 · depression","ACE · childhood-experience context","DES-B · dissociation"],cta:"Take the Assessment",path:"/self-assessment"},{kicker:"Know your students",name:"Ministry Health Survey",question:`"How's my group really doing?"`,desc:"35 anonymous questions across 7 dimensions of ministry health. Students scan a QR code, and you get a real picture on a live dashboard.",features:["35 questions · 7 health dimensions","Anonymous QR code for students","Live dashboard with insights","Track trends over time"],cta:"Get My QR Code",path:"/ministry-survey"},{kicker:"Teach with confidence",name:"Curriculum Quiz",question:'"What should I even teach?"',desc:"Answer 6 quick questions about your ministry and students, and we'll match you with the curriculum that fits where you actually are.",features:["6-question ministry profile","Matched to your focus & vibe","Based on your students' faith journey","Links straight to matching curriculum"],cta:"Take the Quiz",path:"/curriculum-quiz"},{kicker:"Equip your team",name:"The Art of Conversation",question:'"How do I get them to talk?"',desc:"Ten short videos and a conversation training built by leaders in the trenches. Help students and teens actually open up.",features:["10 core values of conversation","Short 2-minute video sessions","Guides for leaders and parents","Middle school specialty modules"],cta:"Start the Training",path:"/training"}],k5e=[{t:"Biblically faithful",d:"Rooted in Scripture, not just inspiration."},{t:"Culturally relevant",d:"Built for the students you're actually reaching."},{t:"Emotionally engaging",d:"Honest about the real struggles youth face."},{t:"Practically useful",d:"Tools you can actually use this week."}];function A5e(){Lo(Io["/tools"]);const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=z.useState("idle"),a=async s=>{s.preventDefault();const l=new FormData(s.currentTarget),u=String(l.get("email")??"").trim();if(u){r("submitting");try{if(!(await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,formToken:await cm(),source:"tools"})})).ok)throw new Error("Subscribe failed");r("success"),Ns("newsletter_signup_success",{source:"tools"})}catch{r("error")}}};return i.jsxs("div",{className:"min-h-screen bg-white text-[#333333] font-sans",children:[i.jsxs("div",{className:"bg-[#1A1A1A] text-white text-[13.5px] font-medium tracking-[0.01em] text-center py-[11px] px-5",children:["Free tools, always free",i.jsx("a",{href:"#capture",className:"text-white font-bold border-b-[1.5px] border-primary ml-2.5 pb-[1px] hover:border-white transition-colors",children:"Plus field-tested ideas in your inbox twice a month â"})]}),i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsxs("section",{className:"relative bg-[#141414]",children:[i.jsx(lr,{desktopSrc:`${Za}site/tools-hero-1440.webp`,desktopSrcSet:`${Za}site/tools-hero-768.webp 768w, ${Za}site/tools-hero-1440.webp 1440w, ${Za}site/tools-hero-1920.webp 1920w`,loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-white/55"}),i.jsx("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[104px] pb-[112px]",children:i.jsx("div",{className:"max-w-[820px] mx-auto text-center",children:i.jsxs(Ht,{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[22px]",children:"Free tools for youth ministry"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance",children:["Take care of yourself. Know your students. ",i.jsx("span",{className:"text-primary",children:"Teach with confidence."})]}),i.jsx("p",{className:"mt-[28px] text-[19px] leading-[1.58] text-[#3d3d3f] max-w-[34em] mx-auto text-pretty",children:"Four free, research-backed tools built for the realities of ministry life, so you can check your own health, see how your students are really doing, find curriculum that fits, and lead better conversations."}),i.jsxs("div",{className:"flex flex-wrap justify-center gap-[14px] mt-[36px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx("a",{href:"#tools",children:"Explore the Tools"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent text-[#1A1A1A] border-[1.5px] border-[#1A1A1A]/30 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] hover:border-[#1A1A1A] hover:bg-[#1A1A1A]/5 hover:text-[#1A1A1A]",asChild:!0,children:i.jsx("a",{href:"#capture",children:"Get Tools in Your Inbox"})})]}),i.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-[18px] gap-y-[10px] mt-[32px] text-[13.5px] font-semibold text-[#5a5a5c]",children:[i.jsx("span",{className:"text-primary font-bold",children:"Free"}),i.jsx("span",{children:", always"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-[#1A1A1A]/25"}),i.jsx("span",{className:"text-primary font-bold",children:"Private"}),i.jsx("span",{children:", no data sold"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-[#1A1A1A]/25"}),i.jsx("span",{className:"text-primary font-bold",children:"Research-backed"}),i.jsx("span",{children:", validated"})]})]})})})]}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs(Ht,{className:"max-w-[820px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[20px]",children:"The problem"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance",children:"Youth ministry runs you ragged, and no one's checking on you."}),i.jsx("p",{className:"mt-[20px] text-[19px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"You pour out all week. But three quiet problems build up when nobody's looking."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-[14px] mt-[44px]",children:N5e.map((s,l)=>i.jsxs(Ht,{delay:.1*l,className:"flex gap-4 items-start bg-white border border-[#1A1A1A]/5 rounded-[16px] p-6",children:[i.jsx("span",{className:"flex-none w-6 h-6 rounded-full bg-primary/10 text-primary text-xs font-extrabold flex items-center justify-center mt-0.5",children:"â"}),i.jsx("span",{className:"text-[16.5px] leading-[1.45] font-semibold text-[#1A1A1A]",children:s})]},l))}),i.jsx(Ht,{delay:.4,children:i.jsx("p",{className:"mt-[44px] mx-auto max-w-[860px] text-center text-[21px] leading-[1.5] font-semibold text-[#1A1A1A] text-pretty",children:"A leader who isn't okay can't lead students who aren't okay. You deserve tools that take you seriously, and don't cost you a dime or your privacy."})})]})}),i.jsx("section",{id:"tools",className:"bg-white scroll-mt-24",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Ht,{className:"max-w-[740px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"The tools"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Four tools, four problems solved"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Each one is free, private, and built to solve a real thing you face every week. Start with whichever hurts most."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-6 mt-[56px] items-stretch",children:S5e.map((s,l)=>i.jsxs(Ht,{delay:.1*l,className:"border border-[#1A1A1A]/10 rounded-[16px] flex flex-col overflow-hidden",children:[i.jsxs("div",{className:"bg-[#1A1A1A] p-[30px_30px_28px]",children:[i.jsx("div",{className:"text-[11px] font-extrabold tracking-[0.16em] uppercase text-primary mb-[14px]",children:s.kicker}),i.jsx("h3",{className:"m-0 text-[26px] font-black tracking-[-0.025em] text-white",children:s.name}),i.jsx("div",{className:"mt-[10px] text-[18px] font-semibold text-white/60 italic",children:s.question})]}),i.jsxs("div",{className:"p-[28px_30px_30px] flex flex-col flex-1 bg-white",children:[i.jsx("p",{className:"m-0 text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:s.desc}),i.jsx("div",{className:"flex flex-col gap-[10px] mt-[22px] pt-[22px] border-t border-[#1A1A1A]/10 flex-1",children:s.features.map((u,d)=>i.jsxs("div",{className:"flex gap-[11px] items-start",children:[i.jsx("span",{className:"flex-none w-[19px] h-[19px] rounded-full bg-primary text-white text-[10.5px] font-black flex items-center justify-center mt-0.5",children:"â"}),i.jsx("span",{className:"text-[15.5px] leading-[1.4] text-[#1A1A1A] font-semibold",children:u})]},d))}),i.jsx(ee,{className:"mt-[26px] w-full bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase py-[18px] rounded-[10px]",asChild:!0,children:i.jsxs(Be,{href:s.path,children:[s.cta," ",i.jsx(gt,{className:"w-3.5 h-3.5 ml-1.5 translate-y-[1px]"})]})})]})]},l))})]})}),i.jsx("section",{className:"bg-[#1A1A1A] text-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Ht,{className:"max-w-[840px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[20px]",children:"Why you can trust these"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,46px)] leading-[1.06] tracking-[-0.03em] font-black text-white text-balance",children:`"Research-backed" isn't a slogan here. It's who built them.`}),i.jsx("p",{className:"mt-[20px] text-[18.5px] leading-[1.6] text-white/70 text-pretty",children:"These tools were built by a licensed counselor and urban youth pastors, people who've sat in the room. The self-assessment uses the same validated instruments clinicians use (GAD-7, PHQ-9, ACE, DES-B), and the student survey is grounded in our 2025 study of 424 urban teens and 128 leaders. That's why the numbers you get back mean something."})]}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-[1px] bg-white/10 border border-white/10 rounded-[16px] overflow-hidden mt-[52px]",children:[{num:"4",label:"Clinically-validated instruments"},{num:"424",label:"Urban teens studied (2025)"},{num:"128",label:"Youth leaders surveyed"},{num:"$0",label:"Cost · no data sold, ever",red:!0}].map((s,l)=>i.jsxs(Ht,{delay:.1*l,className:"bg-[#1A1A1A] p-[30px_26px] text-center",children:[i.jsx("div",{className:`text-[42px] font-black tracking-[-0.035em] leading-none ${s.red?"text-primary":"text-white"}`,children:s.num}),i.jsx("div",{className:"mt-2 text-[12.5px] font-bold tracking-[0.11em] uppercase text-white/55",children:s.label})]},l))}),i.jsxs(Ht,{delay:.4,className:"mt-[22px] border-l-[3px] border-primary py-1.5 pl-6",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.15em] uppercase text-primary mb-[12px]",children:"Our vantage point"}),i.jsx("p",{className:"m-0 text-[18.5px] leading-[1.6] text-white font-medium max-w-[70ch] text-pretty",children:"We come from urban youth ministry, and we're proud of it. Culture is born in the city and bleeds outward, so tools built at the source work wherever you lead, from the block to the suburbs to the small town."})]})]})}),i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Ht,{className:"max-w-[720px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"The plan"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"How to start, in about two minutes"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"No sign-up wall, no learning curve. Pick a tool and go."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 mt-[56px]",children:[{t:"Pick your tool",d:"Start with whatever's heaviest right now: your own health, your students, or your prep."},{t:"Use it in minutes",d:"Answer a few honest questions or share a QR code. No account needed to begin."},{t:"Get a real read",d:"See a private result or live dashboard, plus a clear next step you can actually take."}].map((s,l)=>i.jsxs(Ht,{delay:.1*l,children:[i.jsx("div",{className:"w-[52px] h-[52px] rounded-full bg-primary text-white text-[20px] font-black flex items-center justify-center",children:l+1}),i.jsx("h3",{className:"mt-[22px] text-[23px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:s.t}),i.jsx("p",{className:"mt-[12px] text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:s.d})]},l))}),i.jsxs(Ht,{delay:.4,className:"flex flex-col md:flex-row gap-[14px] items-center justify-center mt-[52px] bg-[#F2F2F3] rounded-[16px] p-[28px_32px]",children:[i.jsx("div",{className:"text-[16.5px] font-extrabold text-[#1A1A1A]",children:"Pick a tool"}),i.jsx("div",{className:"text-primary font-black text-[20px] hidden md:block",children:"â"}),i.jsx("div",{className:"text-[16.5px] font-extrabold text-[#1A1A1A]",children:"Answer honestly"}),i.jsx("div",{className:"text-primary font-black text-[20px] hidden md:block",children:"â"}),i.jsx("div",{className:"text-[16.5px] font-extrabold text-[#1A1A1A]",children:"Get your snapshot"}),i.jsx("div",{className:"text-primary font-black text-[20px] hidden md:block",children:"â"}),i.jsx("div",{className:"text-[16.5px] font-extrabold text-[#1A1A1A]",children:"Take the next step"})]})]})}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs(Ht,{className:"max-w-[720px] mx-auto text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(30px,3vw,44px)] leading-[1.07] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Made for leaders like you"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"First-year volunteer or seasoned director, these meet you where you actually are."})]}),i.jsx("div",{classNam
162e:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-[48px]",children:[{img:"impact1.png",t:"Volunteer youth workers",d:"No seminary required. These tools meet you where you are."},{img:"impact2.png",t:"Full-time youth pastors",d:"Save hours of prep and go deeper with your students."},{img:"impact3.png",t:"Urban ministry leaders",d:"Built with urban youth culture at the center, not as an afterthought."}].map((s,l)=>i.jsxs(Ht,{delay:.1*l,className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] p-[34px_32px]",children:[i.jsx("div",{className:"w-[96px] h-[96px] rounded-full bg-[#F2F2F3] flex items-center justify-center mb-5",children:i.jsx("img",{src:`${b6}/${s.img}`,alt:"",className:"w-[92px] h-[92px] block"})}),i.jsx("h3",{className:"m-0 text-[22px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:s.t}),i.jsx("p",{className:"mt-[12px] text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:s.d})]},l))})]})}),i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Ht,{className:"max-w-[940px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"What changes"}),i.jsx("p",{className:"m-0 text-[clamp(24px,2.5vw,34px)] leading-[1.32] tracking-[-0.02em] font-bold text-[#1A1A1A] text-pretty",children:"Imagine leading from a full tank, with an honest read on your own health, a clear picture of where your students are, and curriculum you're actually confident in."})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_auto_1fr] gap-[32px] items-center mt-[56px]",children:[i.jsxs(Ht,{delay:.1,className:"bg-[#F2F2F3] rounded-[16px] p-[38px_36px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.15em] uppercase text-[#666666] mb-[14px]",children:"From"}),i.jsx("p",{className:"m-0 text-[18px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Running on empty, guessing how your group is doing, and prepping late on material you're not sure even fits."})]}),i.jsx(Ht,{delay:.2,className:"text-[30px] text-primary font-black hidden lg:block",children:"â"}),i.jsxs(Ht,{delay:.3,className:"bg-[#1A1A1A] rounded-[16px] p-[38px_36px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.15em] uppercase text-primary mb-[14px]",children:"To"}),i.jsx("p",{className:"m-0 text-[18px] leading-[1.55] text-white font-medium text-pretty",children:"Self-aware and resourced, leading students you actually understand, with tools and curriculum built for your reality."})]})]})]})}),i.jsxs("section",{id:"capture",className:"relative bg-primary",children:[i.jsx("div",{className:"absolute inset-0 bg-center bg-cover bg-no-repeat",style:{backgroundImage:`url(${b6}/quizbg.jpg)`}}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#b4192a]/70 to-[#b4192a]/90"}),i.jsxs("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px] grid grid-cols-1 lg:grid-cols-[1.1fr_0.9fr] gap-[64px] items-center",children:[i.jsxs(Ht,{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-white/75 mb-[20px]",children:"Truth in the Trenches"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,46px)] leading-[1.05] tracking-[-0.03em] font-black text-white text-balance",children:"Get the tools, plus field-tested ideas, in your inbox."}),i.jsx("p",{className:"mt-[20px] text-[18.5px] leading-[1.55] text-white/90 text-pretty",children:"Practical, research-backed ideas for taking care of yourself and your students, twice a month. Plus first access to new tools. No fluff, no spam, unsubscribe anytime."})]}),i.jsx(Ht,{delay:.2,className:"bg-white rounded-[16px] p-[38px_36px]",children:n==="success"?i.jsx("p",{className:"text-[17px] font-bold text-primary text-center",children:"Thanks. We won't add this address until it has been verified."}):i.jsxs(i.Fragment,{children:[i.jsxs("form",{onSubmit:a,className:"flex flex-col gap-3",children:[i.jsx("label",{htmlFor:"tools-newsletter-email",className:"sr-only",children:"Email address for youth ministry tools and updates"}),i.jsx(En,{id:"tools-newsletter-email",type:"email",name:"email",placeholder:"[email protected]",className:"py-[25px] px-[18px] text-[16px] rounded-[10px] border-[1.5px] border-[#1A1A1A]/15 shadow-none focus-visible:ring-0 focus-visible:border-primary",required:!0,disabled:n==="submitting"}),i.jsx(ee,{type:"submit",disabled:n==="submitting",className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13px] tracking-[0.09em] uppercase py-[20px] rounded-[10px]",children:n==="submitting"?i.jsx(Xt,{className:"w-4 h-4 animate-spin mx-auto"}):"Subscribe"})]}),n==="error"&&i.jsx("p",{className:"mt-[12px] text-[14px] font-semibold text-red-600 text-center",children:"Something went wrong. Please try again."}),i.jsx("p",{className:"mt-[18px] text-[14px] font-semibold text-[#666666] text-center",children:"We never sell your data. Ever."})]})})]})]}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs(Ht,{className:"max-w-[720px] mx-auto text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(30px,3vw,44px)] leading-[1.07] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Every tool we build lives by these"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Not a list on a wall. These values shape every question and word."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-[22px] mt-[48px]",children:k5e.map((s,l)=>i.jsxs(Ht,{delay:.1*l,className:"bg-white border-t-[3px] border-primary rounded-[0_0_5px_5px] p-[28px_26px_30px]",children:[i.jsx("h3",{className:"m-0 text-[20px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:s.t}),i.jsx("p",{className:"mt-[10px] text-[16px] leading-[1.5] text-[#5a5a5c] text-pretty",children:s.d})]},l))})]})}),i.jsxs("section",{className:"relative bg-[#1A1A1A]",children:[i.jsx(lr,{desktopSrc:`${Za}site/cta-bg-1440.webp`,desktopSrcSet:`${Za}site/cta-bg-768.webp 768w, ${Za}site/cta-bg-1440.webp 1440w, ${Za}site/cta-bg-1920.webp 1920w`}),i.jsx("div",{className:"absolute inset-0 bg-[#121212]/70"}),i.jsxs(Ht,{className:"relative max-w-[900px] mx-auto px-10 pt-[100px] pb-[104px] text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.4vw,50px)] leading-[1.05] tracking-[-0.035em] font-black text-white text-balance",children:"Start taking care of yourself and your students."}),i.jsx("p",{className:"mt-[22px] text-[19px] leading-[1.55] text-white/70 text-pretty",children:"No subscription. No paywall. Just tools that help you lead well."}),i.jsxs("div",{className:"flex flex-wrap gap-[14px] justify-center mt-[36px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[27px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/self-assessment",children:"Take the Self-Assessment"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent text-white border-[1.5px] border-white/50 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[27px] py-[21px] rounded-[10px] hover:border-white hover:bg-white/10 hover:text-white",asChild:!0,children:i.jsx("a",{href:"#tools",children:"Explore All 3 Tools"})})]})]})]}),i.jsx(Ur,{})]})}const $k="/".replace(/\/$/,"");function cV(){try{return JSON.parse(localStorage.getItem("reframe_my_votes")||"{}")}catch{return{}}}function C5e(e,t){const n=cV();t===null?delete n[e]:n[e]=t,localStorage.setItem("reframe_my_votes",JSON.stringify(n))}async function E5e(){const e=await fetch(`${$k}/api/suggestions`);if(!e.ok)throw new Error("Failed to load suggestions");return e.json()}async function T5e(e){const t=await fetch(`${$k}/api/suggestions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({}));throw new Error(n.error||"Failed to submit")}return t.json()}async function _5e(e,t){const n=await fetch(`${$k}/api/suggestions/${e}/vote`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({voteType:t})});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error||"Failed to vote")}return n.json()}function O5e(){const[,e]=et(),{isSignedIn:t}=Vt(),n=ur(),[r,a]=v.useState(""),[s,l]=v.useState(""),[u,d]=v.useState(""),[f,m]=v.useState(!1),[p,g]=v.useState(cV),{data:y=[],isLoading:w}=bt({queryKey:["suggestions"],queryFn:E5e}),b=$t({mutationFn:T5e,onSuccess:()=>{Ns("suggestion_submitted"),n.invalidateQueries({queryKey:["suggestions"]}),a(""),l(""),m(!0),d(""),setTimeout(()=>m(!1),3e3)},onError:E=>d(E.message)}),N=$t({mutationFn:({id:E,voteType:_})=>_5e(E,_),onSuccess:E=>
162{n.setQueryData(["suggestions"],(_=[])=>_.map(T=>T.id===E.id?E:T))}}),k=(E,_)=>{if(!t){e("/sign-in?redirect_url=%2Fsuggestions");return}const M=p[E]===_?null:_,P={...p};M===null?delete P[E]:P[E]=M,g(P),C5e(E,M),N.mutate({id:E,voteType:_})},C=E=>{if(E.preventDefault(),r.trim().length<5){d("Please enter at least 5 characters.");return}b.mutate({content:r.trim(),authorName:s.trim()||void 0})},A=[...y].sort((E,_)=>_.upvotes-_.downvotes-(E.upvotes-E.downvotes));return i.jsxs("div",{className:"min-h-[100dvh] bg-background text-foreground flex flex-col",children:[i.jsx("header",{className:"sticky top-0 z-50 bg-white/80 backdrop-blur-md border-b border-slate-200",children:i.jsxs("div",{className:"max-w-3xl mx-auto px-4 h-16 flex items-center justify-between",children:[i.jsx(Be,{href:"/",className:"flex items-center",children:i.jsx("img",{src:"/reframe-logo.png",alt:"Reframe",className:"h-8"})}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>e("/"),children:"â Back"})]})}),i.jsx("main",{className:"flex-1 max-w-3xl mx-auto w-full px-4 py-12",children:i.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[i.jsxs("div",{className:"mb-10 text-center",children:[i.jsx("h1",{className:"text-4xl font-bold tracking-tight text-slate-900 mb-3",children:"Help Us Build Better"}),i.jsx("p",{className:"text-lg text-slate-600 max-w-xl mx-auto",children:"What features, tools, or improvements would make this more useful for you and your ministry? Vote on ideas or share your own."})]}),i.jsx(ze,{className:"mb-10 border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-6",children:[i.jsx("h2",{className:"text-lg font-semibold mb-4 text-slate-900",children:"Share a Suggestion"}),i.jsxs("form",{onSubmit:C,className:"space-y-4",children:[i.jsx("label",{htmlFor:"suggestion-content",className:"sr-only",children:"Your suggestion"}),i.jsx(wh,{id:"suggestion-content",placeholder:"What would make this tool more helpful for youth leaders? (5â500 characters)",value:r,onChange:E=>{a(E.target.value),d("")},rows:3,maxLength:500,className:"resize-none"}),i.jsx("div",{className:"flex items-center gap-2 text-sm text-slate-400 justify-end",children:i.jsxs("span",{children:[r.length,"/500"]})}),i.jsx("label",{htmlFor:"suggestion-name",className:"sr-only",children:"Your name (optional)"}),i.jsx(En,{id:"suggestion-name",placeholder:"Your name (optional)",value:s,onChange:E=>l(E.target.value),maxLength:60}),u&&i.jsx("p",{className:"text-sm text-red-600",children:u}),i.jsx(cn,{children:f&&i.jsx(be.p,{initial:{opacity:0}
162,animate:{opacity:1},exit:{opacity:0},className:"text-sm text-green-600 font-medium",children:"Thanks, your suggestion was submitted!"})}),i.jsx(ee,{type:"submit",disabled:b.isPending||r.trim().length<5,className:"rounded-full",children:b.isPending?"Submittingâ¦":"Submit Suggestion"})]})]})}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("h2",{className:"text-xl font-semibold text-slate-900",children:["Community Suggestions",y.length>0&&i.jsxs("span",{className:"ml-2 text-base font-normal text-slate-500",children:["(",y.length,")"]})]}),w&&i.jsx("div",{className:"space-y-3",children:[1,2,3].map(E=>i.jsx("div",{className:"h-24 bg-slate-100 rounded-2xl animate-pulse"},E))}),!w&&A.length===0&&i.jsx(ze,{className:"border-dashed border-slate-200",children:i.jsx(Ve,{className:"p-10 text-center text-slate-500",children:"No suggestions yet. Be the first to share an idea!"})}),i.jsx(cn,{children:A.map((E,_)=>{const T=p[E.id],M=E.upvotes-E.downvotes;return i.jsx(be.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:_*.04},children:i.jsx(ze,{className:"border-slate-200 shadow-sm hover:shadow-md transition-shadow",children:i.jsxs(Ve,{className:"p-5 flex gap-4 items-start",children:[i.jsxs("div",{className:"flex flex-col items-center gap-1 shrink-0 pt-1",children:[i.jsx("button",{onClick:()=>k(E.id,"up"),className:`w-9 h-9 rounded-full flex items-center justify-center text-lg transition-all 163 ${T==="up"?"bg-primary text-white shadow":"bg-slate-100 text-slate-500 hover:bg-primary/10 hover:text-primary"}`,title:"Upvote",children:"â²"}),i.jsx("span",{className:`text-sm font-bold tabular-nums ${M>0?"text-primary":M<0?"text-slate-400":"text-slate-500"}`,children:M}),i.jsx("button",{onClick:()=>k(E.id,"down"),className:`w-9 h-9 rounded-full flex items-center justify-center text-lg transition-all 164 ${T==="down"?"bg-slate-700 text-white shadow":"bg-slate-100 text-slate-500 hover:bg-slate-200"}`,title:"Downvote",children:"â¼"})]}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-slate-900 leading-relaxed text-base",children:E.content}),i.jsxs("div",{className:"mt-2 flex items-center gap-3 text-xs text-slate-400",children:[E.authorName&&i.jsx("span",{className:"font-medium text-slate-500",children:E.authorName}),i.jsx("span",{children:new Date(E.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),i.jsxs("span",{children:[E.upvotes," Ⲡ· ",E.downvotes," â¼"]})]})]})]})})},E.id)})})]})]})})]})}const P5e=[{key:"safety",label:"Safety"},{key:"trust",label:"Trust"},{key:"vulnerability",label:"Vulnerability"},{key:"truth",label:"Truth"},{key:"ownership",label:"Youth Ownership"},{key:"belonging",label:"Belonging"},{key:"mentalHealth",label:"Mental Health"}],w6=["6th","7th","8th","9th","10th","11th","12th"];function uj(e){return e>=21?"text-green-600":e>=16?"text-blue-600":e>=11?"text-yellow-600":"text-red-600"}function uV(e){return e>=21?"Very Healthy":e>=16?"Healthy":e>=11?"Needs Attention":"Significant Growth Needed"}function M5e({label:e,score:t}){const n=(t-5)/20*100;return i.jsxs("div",{className:"bg-slate-50 rounded-xl p-4 border border-slate-100",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("p",{className:"text-sm font-semibold text-slate-700",children:e}),i.jsxs("span",{className:`text-sm font-bold ${uj(t)}`,children:[t.toFixed(1),"/25"]})]}),i.jsx(Sa,{value:Math.max(0,n),className:"h-2 mb-1.5"}),i.jsx("p",{className:`text-xs font-medium ${uj(t)}`,children:uV(Math.round(t))})]})}const dV="/".replace(/\/$/,"");async function R5e(e,t,n){const r=new URLSearchParams;t&&r.set("gender",t),n&&r.set("grade",n);const a=r.toString()?`?${r.toString()}`:"",s=await fetch(`${dV}/api/survey/${e}/stats${a}`);if(!s.ok)throw new Error("Not found");return s.json()}function D5e(){const{code:e}=Mh(),[,t]=et(),[n,r]=v.useState(""),[a,s]=v.useState(""),{data:l,isLoading:u,isError:d}=bt({queryKey:["preview-stats",e,n,a],queryFn:()=>R5e(e,n||void 0,a||void 0),enabled:!!e}),f=l?`${window.location.origin}${dV}/survey/${l.ministry.surveyCode}`:"",m=l?Object.keys(l.byGender):[],p=l?Object.keys(l.byGrade).sort((y,w)=>{const b=w6.findIndex(k=>y.startsWith(k)),N=w6.findIndex(k=>w.startsWith(k));return b-N}):[],g=l?.averageScores;return u?i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx("p",{className:"text-slate-500",children:"Loading dashboardâ¦"})}):d||!l?i.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[i.jsx("p",{className:"text-slate-700 font-semibold",children:"Survey code not found."}),i.jsx(ee,{variant:"outline",onClick:()=>t("/"),children:"Go Home"})]}):i.jsxs("div",{className:"min-h-screen bg-slate-50",children:[i.jsx("header",{className:"bg-white border-b border-slate-200 sticky top-0 z-40",children:i.jsxs("div",{className:"max-w-5xl mx-auto px-4 h-16 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center text-white font-black text-sm",children:"re"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-bold text-slate-900 text-sm leading-tight",children:l.ministry.ministryName}),i.jsxs("p",{className:"text-xs text-slate-500 leading-tight",children:[l.ministry.churchName," · Preview Mode"]})]})]}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>t("/"),children:"â Back"})]})}),i.jsxs("main",{className:"max-w-5xl mx-auto px-4 py-8 space-y-8",children:[i.jsx(be.div,{initial:{opacity:0,y:16}
164,animate:{opacity:1,y:0},children:i.jsxs(ze,{className:"border-slate-200 shadow-sm overflow-hidden",children:[i.jsxs("div",{className:"bg-primary px-6 py-4",children:[i.jsxs("h2",{className:"text-white font-bold text-lg",children:["Student Survey: ",l.ministry.churchName]}),i.jsx("p",{className:"text-red-100 text-sm mt-0.5",children:"Share this QR code or link with your students"})]}),i.jsx(Ve,{className:"p-6",children:i.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 items-center",children:[i.jsx("div",{className:"bg-white p-4 rounded-2xl border border-slate-200 shadow-sm shrink-0",children:f&&i.jsx(AN,{value:f,size:160,bgColor:"#ffffff",fgColor:"#1e293b",level:"H"})}),i.jsxs("div",{className:"flex-1 space-y-3",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wide mb-1",children:"Survey Link"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 bg-slate-50 border border-slate-200 rounded-lg px-3 py-2 text-sm text-slate-700 break-all",children:f}),i.jsx("button",{type:"button",onClick:()=>navigator.clipboard.writeText(f),className:"shrink-0 p-2 rounded-lg border border-slate-200 hover:bg-slate-50 text-slate-500 hover:text-slate-900 transition-colors",title:"Copy link",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]}),i.jsxs("p",{className:"text-xs text-slate-500 leading-relaxed",children:["Survey is completely anonymous, no names collected. Pastor: ",l.ministry.pastorName]})]})]})})]})}),i.jsx(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.1},children:i.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:[i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-primary",children:l.totalResponses}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Students Surveyed"})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm",children:i.jsxs(Ve,{className:"p-5 text-center",children:[i.jsx("p",{className:"text-4xl font-bold text-slate-900",children:g?g.total.toFixed(0):"â"}),i.jsxs("p",{className:"text-sm text-slate-600 mt-1",children:["Avg Total Score ",i.jsx("span",{className:"text-slate-400",children:"/ 175"})]})]})}),i.jsx(ze,{className:"border-slate-200 shadow-sm col-span-2 sm:col-span-1",children:i.jsx(Ve,{className:"p-5 text-center",children:g&&l.totalResponses>0?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:`text-2xl font-bold ${uj(Math.round(g.total/7))}`,children:uV(Math.round(g.total/7))}),i.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Overall Health"})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-2xl font-bold text-slate-400",children:"No Data"}),i.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"Overall Health"})]})})})]})}),l.totalResponses>0&&i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.2},children:[i.jsxs("div",{className:"flex flex-wrap gap-2 mb-5",children:[i.jsx("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wide self-center",children:"Filter:"}),["",...m].map(y=>i.jsx("button",{type:"button",onClick:()=>r(y),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${n===y?"bg-primary text-white border-primary":"bg-white text-slate-600 border-slate-200 hover:border-primary/40"}`,children:y||"All Genders"},y||"all-gender")),p.map(y=>i.jsx("button",{type:"button",onClick:()=>s(a===y?"":y),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${a===y?"bg-slate-800 text-white border-slate-800":"bg-white text-slate-600 border-slate-200 hover:border-slate-400"}`,children:y},y))]}),g&&i.jsxs(ze,{className:"border-slate-200 shadow-sm",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"Section Scores"}),i.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Based on ",l.totalResponses," response",l.totalResponses!==1?"s":"",(n||a)&&" (filtered)"]})]}),i.jsxs(Ve,{className:"p-6",children:[i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:P5e.map(({key:y,label:w})=>i.jsx(M5e,{label:w,score:g[y]},y))}),i.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-100 flex flex-wrap gap-4 text-xs text-slate-500",children:[i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-green-600",children:"21â25"})," Very Healthy"]}),i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-blue-600",children:"16â20"})," Healthy"]}),i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-yellow-600",children:"11â15"})," Needs Attention"]}),i.jsxs("span",{children:[i.jsx("span",{className:"font-semibold text-red-600",children:"5â10"})," Growth Needed"]})]})]})]}),Object.keys(l.byGender).length>1&&i.jsxs(ze,{className:"border-slate-200 shadow-sm mt-6",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"By Gender"}),i.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Average total score per gender group"})]}),i.jsx(Ve,{className:"p-6",children:i.jsx("div",{className:"space-y-3",children:Object.entries(l.byGender).map(([y,w])=>i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"w-28 text-sm font-medium text-slate-700 capitalize",children:y}),i.jsx("div",{className:"flex-1",children:i.jsx(Sa,{value:w.total/175*100,className:"h-3"})}),i.jsxs("span",{className:"text-sm font-bold text-slate-900 w-12 text-right",children:[w.total.toFixed(0),"/175"]})]},y))})})]}),Object.keys(l.byGrade).length>1&&i.jsxs(ze,{className:"border-slate-200 shadow-sm mt-6",children:[i.jsxs("div",{className:"px-6 py-4 border-b border-slate-100",children:[i.jsx("h3",{className:"font-bold text-slate-900",children:"By Grade"}),i.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Average total score per grade"})]}),i.jsx(Ve,{className:"p-6",children:i.jsx("div",{className:"space-y-3",children:p.map(y=>{const w=l.byGrade[y];return w?i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"w-20 text-sm font-medium text-slate-700",children:y}),i.jsx("div",{className:"flex-1",children:i.jsx(Sa,{value:w.total/175*100,className:"h-3"})}),i.jsxs("span",{className:"text-sm font-bold text-slate-900 w-12 text-right",children:[w.total.toFixed(0),"/175"]})]},y):null})})})]})]})]})]})}const gi="/",Gt=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e}),I5e=[{q:"Is this free?",a:"Yes. The Art of Conversation is a free tool that lives right here on Reframe Youth for youth leaders, volunteers, ministry teams, and parents."},{q:"How long is each session?",a:"The videos are one to two minutes. A full session (video + discussion + one commitment) takes about fifteen to twenty minutes."},{q:"Can I use it with my volunteer team?",a:"Yes. The leader courses are designed to work well in a team huddle, with practical teaching notes, discussion prompts, and activities."},{q:"Do I need to be a WLD subscriber?",a:"No. The Art of Conversation stands alone. It also fits inside WLD Vol. 2 if you use our full curriculum."},{q:"What ages is this for?",a:"The main ten values apply to any teenager. Middle-school-specific videos are added for ages 10 to 14."},{q:"Can parents and leaders use it together?",a:"Yes. Same core content, two different workbooks (one for the youth room, one for the kitchen table)."}],L5e=[{num:"01",name:"Show Up",tag:"Presence over polish. Consistency over content."},{num:"02",name:"Lead in Vulnerability",tag:"Go first, so they can follow."},{num:"03",name:"Move the Middle",tag:"Say the taboo thing first. Give them the gift of going second."},{num:"04",name:"Curiosity Over Fear",tag:"Ask the question underneath the question."},{num:"05",name:"Respond with Neutrality",tag:"The first thing they s
164ay is usually the test."},{num:"06",name:"Validate Their Unbelief",tag:"Reward honesty over conformity."},{num:"07",name:"Embrace the Awkward",tag:"Name the moment. Don't leave it."},{num:"08",name:"Guided Discovery",tag:"Ask more questions. Give fewer answers."},{num:"09",name:"The Ministry of Presence",tag:"Sit with them. The answer is you."},{num:"10",name:"Become the Student",tag:"Let them teach you. Trust flows both ways."}],$5e=[{name:"Meeting Middle Schoolers in the In-Between",tag:"They aren't little kids or teenagers yet. Meet them in the tension instead of rushing them through it."},{name:"See Past the Mask",tag:"Their behavior is communication. Stay curious long enough to see what's happening underneath."},{name:"Rituals, Scaffolding & Restoration",tag:"Structure creates safety. Repair gives mistakes a way forward."},{name:"Partner with the Parents",tag:"Young people thrive when the adults in their lives work together instead of around each other."}];function B5e(){Lo(Io["/training"]);const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=v.useState(null),a=()=>{document.getElementById("choose-your-path")?.scrollIntoView({behavior:"smooth"})},s=()=>{e(t?"/training/my-courses":"/sign-in?redirect_url=%2Ftraining%2Fmy-courses")};return i.jsxs("div",{className:"min-h-screen bg-white text-[#333333] font-sans",children:[i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsxs("section",{className:"relative bg-[#1A1A1A] overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${gi}site/cta-bg-1440.webp`,desktopSrcSet:`${gi}site/cta-bg-768.webp 768w, ${gi}site/cta-bg-1440.webp 1440w, ${gi}site/cta-bg-1920.webp 1920w`,loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-black/80 md:bg-black/60 lg:bg-gradient-to-r lg:from-black/95 lg:via-black/70 lg:to-black/30 z-10"}),i.jsx("div",{className:"relative z-20 max-w-[1240px] mx-auto px-6 lg:px-10 pt-[112px] pb-[120px] lg:pt-[140px] lg:pb-[150px]",children:i.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-8 items-center",children:i.jsx("div",{className:"lg:col-span-8",children:i.jsxs(Gt,{children:[i.jsxs("div",{className:"inline-flex items-center gap-2 mb-6",children:[i.jsx("span",{className:"bg-primary text-white text-[10px] font-black uppercase tracking-[0.15em] px-2 py-1 rounded-[4px]",children:"New"}),i.jsx("span",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-white/80",children:"Reframe Leader & Parent Training"})]}),i.jsx("h1",{className:"m-0 text-[clamp(42px,5.5vw,72px)] leading-[1.02] tracking-[-0.03em] font-black text-white text-balance",children:"Have better conversations with the young people in your life."}),i.jsx("p",{className:"mt-7 text-[19px] leading-[1.6] text-white/80 max-w-[34em] text-pretty",children:"Ten short videos. Real stories from ministry and parenting. A conversation training built by leaders in the trenches, for the youth leader who wants their students to actually talk, and the parent who wants their teen to actually open up."}),i.jsxs("div",{className:"mt-9 flex flex-col sm:flex-row items-start sm:items-center gap-5",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14px] tracking-[0.09em] uppercase px-8 py-7 rounded-[10px] w-full sm:w-auto",onClick:a,children:i.jsxs(i.Fragment,{children:["Start the training ",i.jsx(gt,{className:"w-4 h-4 ml-2"})]})}),i.jsxs("a",{href:"#inside",className:"group flex items-center gap-3 text-white font-bold text-[15px] hover:text-primary transition-colors py-2",children:["See what's inside ",i.jsx(gt,{className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]})]}),i.jsxs("div",{className:"mt-8 text-[12px] font-semibold text-white/40 flex items-center gap-2",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500"}),"Always free · Built for parents, volunteers, and youth workers"]})]})})})})]}),i.jsx("section",{className:"bg-primary text-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Gt,{className:"max-w-[840px] mx-auto text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,4vw,56px)] leading-[1.05] tracking-[-0.03em] font-black text-white text-balance",children:"This generation is different. What worked before isn't working anymore."}),i.jsx("p",{className:"mt-7 text-[21px] leading-[1.5] text-white/90 text-pretty",children:"The Pinetops Foundation projects that 40 million young people raised in Christian homes could walk away from a life with Jesus by 2050. It isn't because youth workers stopped caring or parents stopped trying. It's because the world Gen Z and Gen A live in doesn't look anything like the world we grew up in."})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12 mt-[64px]",children:[i.jsxs(Gt,{delay:.1,children:[i.jsx("h3",{className:"text-[22px] font-extrabold tracking-[-0.02em] leading-[1.2] mb-3",children:"They're asking questions we weren't asked."}),i.jsx("p",{className:"text-[17px] leading-[1.5] text-white/80",children:"About God, gender, mental health, identity, and the point of any of it."})]}),i.jsxs(Gt,{delay:.2,children:[i.jsx("h3",{className:"text-[22px] font-extrabold tracking-[-0.02em] leading-[1.2] mb-3",children:"They stop talking when they feel judged."}),i.jsx("p",{className:"text-[17px] leading-[1.5] text-white/80",children:"One shut-down conversation and the honest one disappears for months."})]}),i.jsxs(Gt,{delay:.3,children:[i.jsx("h3",{className:"text-[22px] font-extrabold tracking-[-0.02em] leading-[1.2] mb-3",children:"They can smell a lecture."}),i.jsx("p",{className:"text-[17px] leading-[1.5] text-white/80",children:"Presence, curiosity, and honesty do what performance never will."})]})]}),i.jsx(Gt,{delay:.4,className:"mt-[72px] text-center",children:i.jsx("p",{className:"text-[clamp(24px,3vw,34px)] leading-[1.2] font-black text-white text-balance max-w-[800px] mx-auto",children:"The good news: None of these conversations require you to have all the answers."})})]})}),i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Gt,{className:"max-w-[840px] mx-auto text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.5v
164w,46px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance",children:"We build tools for the youth leader in the trenches. Now for the parent at the kitchen table too."}),i.jsx("p",{className:"mt-[20px] text-[19px] leading-[1.6] text-[#5a5a5c] text-pretty",children:`Reframe Youth exists to help you engage this generation faithfully, in the actual world they live in. We've spent years watching what works and what doesn't in real ministry, on high school campuses, in youth rooms, in urban communities where "belonging" isn't a value, it's survival. What we've learned lives in this training.`})]}),i.jsx("div",{className:"flex flex-wrap justify-center gap-3 md:gap-4 mt-[48px]",children:["Written by ministry practitioners","Companion to WLD Vol. 2","Tested in urban ministry contexts","Based on 400+ teen surveys"].map((l,u)=>i.jsx(Gt,{delay:.1*u,className:"bg-[#F2F2F3] text-[#333333] px-5 py-2.5 rounded-full text-[13.5px] font-extrabold tracking-[0.05em] uppercase",children:l},u))})]})}),i.jsx("section",{id:"inside",className:"bg-[#F2F2F3] scroll-mt-24",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[96px] pb-[100px]",children:[i.jsxs(Gt,{className:"text-center mb-[56px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-4",children:"What's Inside"}),i.jsx("h2",{className:"m-0 text-[clamp(36px,4vw,56px)] leading-[1.05] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"The Art of Conversation."}),i.jsx("p",{className:"mt-5 text-[20px] leading-[1.5] text-[#5a5a5c] max-w-[600px] mx-auto text-balance",children:"Ten values. Ten short videos (one to two minutes each). Ten postures for the conversations that matter."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4",children:L5e.map((l,u)=>i.jsxs(Gt,{delay:u*.05,className:"group bg-white rounded-[12px] p-6 border border-[#1A1A1A]/5 hover:border-primary/30 transition-all hover:shadow-lg relative overflow-hidden flex flex-col h-[200px]",children:[i.jsxs("div",{className:"text-primary font-extrabold text-[12px] tracking-[0.15em] uppercase mb-3",children:["Value ",l.num]}),i.jsx("h3",{className:"text-[20px] font-black leading-[1.15] text-[#1A1A1A] tracking-[-0.02em]",children:l.name}),i.jsx("div",{className:"absolute inset-0 bg-primary translate-y-full group-hover:translate-y-0 transition-transform duration-300 ease-out p-6 flex items-center",children:i.jsx("p",{className:"text-white text-[16px] leading-[1.4] font-semibold text-balance",children:l.tag})})]},u))}),i.jsxs(Gt,{delay:.3,className:"mt-10 bg-[#1A1A1A] rounded-[16px] p-7 md:p-10",children:[i.jsxs("div",{className:"max-w-3xl",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-3",children:"The Art of Middle Schoolers"}),i.jsx("h3",{className:"text-white font-black text-[clamp(26px,3vw,36px)] leading-tight tracking-[-0.025em]",children:"Four sessions for the specific season of ages 10 to 14."}),i.jsx("p",{className:"mt-4 text-white/70 text-[16.5px] leading-[1.6]",children:"Jeff helps leaders and parents understand what is happening beneath the surface during the middle school yearsâand how to respond with consistency, curiosity, and care."})]}),i.jsx("div",{className:"mt-8 grid sm:grid-cols-2 lg:grid-cols-4 gap-3",children:$5e.map((l,u)=>i.jsxs("div",{tabIndex:0,className:"group relative min-h-[150px] overflow-hidden rounded-xl border border-white/10 bg-white/5 p-5 outline-none transition-all hover:border-primary/50 focus-visible:ring-2 focus-visible:ring-primary",children:[i.jsxs("div",{className:"text-[10px] font-black uppercase tracking-[0.15em] text-primary mb-2",children:["Session ",u+1]}),i.jsx("div",{className:"text-[16px] font-extrabold leading-snug text-white",children:l.name}),i.jsx("div",{className:"absolute inset-0 flex translate-y-full items-center bg-primary p-5 transition-transform duration-300 ease-out group-hover:translate-y-0 group-focus:translate-y-0",children:i.jsx("p",{className:"text-[15px] font-semibold leading-[1.45] text-white text-balance",children:l.tag})})]},l.name))}),i.jsx(ee,{className:"mt-7 h-auto w-full max-w-full whitespace-normal bg-white px-4 py-4 text-center text-[12px] font-extrabold uppercase leading-snug tracking-[0.07em] text-[#1A1A1A] hover:bg-slate-200 sm:w-auto
164sm:px-6 sm:py-5 sm:text-[12.5px] sm:tracking-[0.09em] rounded-[10px]",asChild:!0,children:i.jsx("a",{href:"#middle-school",children:"Learn about the middle school training"})})]})]})}),i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:[i.jsxs(Gt,{className:"text-center mb-[64px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-4",children:"How it works"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.5vw,48px)] leading-[1.05] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Three steps to your first real conversation."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 lg:gap-16",children:[{t:"Tell us who you engage with.",d:"After you log in, answer two quick questions. Weâll automatically select the right leader or parent training for the ages you work with."},{t:"Watch one short video.",d:"One to two minutes. Watch alone, with a co-leader, with your spouse, or with your whole team."},{t:"Have the real conversation.",d:'Every video comes with a workbook that turns "that was helpful" into "we actually changed how we show up next Wednesday."'}].map((l,u)=>i.jsxs(Gt,{delay:.1*u,className:"text-center",children:[i.jsx("div",{className:"w-[64px] h-[64px] mx-auto rounded-full bg-primary/10 text-primary text-[24px] font-black flex items-center justify-center mb-6",children:u+1}),i.jsx("h3",{className:"text-[24px] font-extrabold tracking-[-0.02em] text-[#1A1A1A] mb-4",children:l.t}),i.jsx("p",{className:"text-[17.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:l.d})]},u))}),i.jsx(Gt,{delay:.4,className:"mt-[64px] text-center",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14px] tracking-[0.09em] uppercase px-10 py-7 rounded-[10px]",onClick:a,children:i.jsxs(i.Fragment,{children:["Start the training ",i.jsx(gt,{className:"w-4 h-4 ml-2"})]})})})]})}),i.jsx("section",{id:"choose-your-path",className:"bg-[#1A1A1A] text-white scroll-mt-24",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:i.jsxs(Gt,{className:"max-w-3xl mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-5",children:"Your personalized training library"}),i.jsx("h2",{className:"text-[clamp(36px,5vw,58px)] leading-[1.02] font-black tracking-[-0.035em]",children:"One login. The right courses for you."}),i.jsx("p",{className:"mt-6 text-[19px] leading-[1.6] text-white/70 max-w-2xl mx-auto",children:"After you sign in, tell us whether youâre a leader or parent and whether you engage with middle schoolers, high schoolers, or both. Weâll build your training library automatically."}),i.jsxs("div",{className:"mt-8 grid sm:grid-cols-2 gap-4 text-left max-w-xl mx-auto",children:[i.jsxs("div",{className:"rounded-2xl bg-white/5 border border-white/10 p-5",children:[i.jsx("div",{className:"font-black text-white",children:"High school"}),i.jsx("p",{className:"mt-1 text-sm text-white/65",children:"The Art of Conversation"})]}),i.jsxs("div",{className:"rounded-2xl bg-white/5 border border-white/10 p-5",children:[i.jsx("div",{className:"font-black text-white",children:"Middle school or both"}),i.jsx("p",{className:"mt-1 text-sm text-white/65",children:"The Art of Conversation + The Art of Middle Schoolers"})]})]}),i.jsxs(ee,{className:"mt-9 bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13px] tracking-[0.09em] uppercase px-10 py-7 rounded-[10px]",onClick:s,children:[t?"Open My Training":"Log In to Start"," ",i.jsx(gt,{className:"w-4 h-4 ml-2"})]})]})})}),i.jsx("section",{id:"middle-school",className:"bg-[#F2F2F3] overflow-hidden",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[i.jsxs("div",{className:"bg-[#1A1A1A] min-h-[400px] lg:min-h-[auto] relative order-2 lg:order-1",children:[i.jsx("img",{src:`${gi}site/cafeteria-1280.webp`,alt:"Middle school students",className:"absolute inset-0 w-full h-full object-cover opacity-80"}),i.jsx("div",{className:"absolute inset-0 bg-primary mix-blend-multiply opacity-40"}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-10",children:i.jsx("span",{className:"text-[clamp(80px,12vw,160px)] font-black text-white/90 tracking-tighter mix-blend-overlay",children:"MS."})})]}),i.jsx("div",{className:"p-10 lg:p-[100px] order-1 lg:order-2 flex flex-col justify-center",children:i.jsxs(Gt,{children:[i.jsx("h2",{className:"m-0 text-[clamp(36px,4vw,56px)] leading-[1.05] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Middle school is its own thing."}),i.jsx("p",{className:"mt-[24px] text-[19px] leading-[1.6] text-[#5a5a5c] text-pretty",children:"If you serve or parent a middle schooler, we've added a specialty section from Jeff. Four videos on the developmental in-between, seeing past the mask, building rituals and scaffolding into your ministry, and partnering with parents (or being partnered with)."}),i.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-4 items-start sm:items-center",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-8 py-6 rounded-[10px]",onClick:a,children:i.jsxs(i.Fragment,{children:["See how courses are selected ",i.jsx(gt,{className:"w-4 h-4 ml-2"})]})}),i.jsx("a",{href:"#teachers",className:"text-[14.5px] font-bold text-[#1A1A1A] hover:text-primary transition-colors underline underline-offset-4 py-2",children:"Read Jeff's intro"})]})]})})]})}),i.jsx("section",{id:"teachers",className:"bg-white",children:i.jsxs("div",{className:"max-w-[1000px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:[i.jsx(Gt,{className:"text-center mb-[72px]",children:i.jsx("h2",{className:"m-0 text-[clamp(32px,3.5v
164w,46px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Meet the Teachers"})}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16",children:[i.jsxs(Gt,{delay:.1,children:[i.jsx("div",{className:"w-[180px] h-[180px] rounded-full overflow-hidden bg-slate-100 mb-8 border border-slate-200",children:i.jsx("img",{src:`${gi}site/jordan-640.webp`,alt:"Jordan",className:"w-full h-full object-cover"})}),i.jsx("h3",{className:"text-[28px] font-black tracking-[-0.02em] text-[#1A1A1A] mb-1",children:"Jordan"}),i.jsx("p",{className:"text-primary font-bold text-[14px] uppercase tracking-[0.1em] mb-5",children:"Founder of Reframe Youth"}),i.jsx("p",{className:"text-[17px] leading-[1.6] text-[#5a5a5c]",children:"Jordan founded Reframe Youth to help urban leaders disciple this generation faithfully. He is a curriculum writer, a volunteer youth pastor at his local church, and a father who has seen the same conversations play out in his living room and at his ministry."})]}),i.jsxs(Gt,{delay:.2,children:[i.jsx("div",{className:"w-[180px] h-[180px] rounded-full overflow-hidden bg-slate-100 mb-8 border border-slate-200",children:i.jsx("img",{src:`${gi}site/team/jeff.jpg`,alt:"Jeff",className:"w-full h-full object-cover"})}),i.jsx("h3",{className:"text-[28px] font-black tracking-[-0.02em] text-[#1A1A1A] mb-1",children:"Jeff"}),i.jsx("p",{className:"text-primary font-bold text-[14px] uppercase tracking-[0.1em] mb-5",children:"Executive Director of Aim Right"}),i.jsxs("p",{className:"text-[17px] leading-[1.6] text-[#5a5a5c]",children:["Jeff has led Aim Right since 2022, overseeing programming, development, staff, and strategy. After more than a decade in nursing and high school percussion instruction, he led Aim Right's refocus on middle school youth, coordinates the Phoenix Fuel Network, and writes curriculum for Reframe Youth. His keynote, ",i.jsx("em",{children:"Don't Fear the Middle Schooler"}),", reflects his conviction that these are among the most consequentialâand overlookedâyears in a young person's life. Jeff holds a BA in Youth Ministry from Grand Canyon University and is a 2024 Phoenix DVULI alum."]})]})]})]})}),i.jsx("section",{id:"tool-updates",className:"bg-[#1A1A1A] text-white scroll-mt-24",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:i.jsxs(Gt,{className:"max-w-[840px] mx-auto text-center border border-white/20 rounded-[24px] p-8 md:p-14 bg-white/5 relative overflow-hidden",children:[i.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/20 rounded-full blur-3xl -translate-y-1/2 translate-x-1/3"}),i.jsxs("div",{className:"relative z-10",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-6",children:"Free Access"}),i.jsx("h3",{className:"text-[clamp(28px,3vw,40px)] font-black tracking-[-0.02em] mb-6",children:"Start your training now."}),i.jsx("p",{className:"text-[19px] leading-[1.55] text-white/80 max-w-[600px] mx-auto text-pretty",children:"The Art of Conversation is a free tool built for real conversations. Sign in and weâll select the right leader or parent courses for you."}),i.jsx("div",{className:"mt-10 max-w-[520px] mx-auto",children:i.jsx(ee,{className:"h-14 bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14px] tracking-[0.09em] uppercase px-10 rounded-[10px]",onClick:s,children:i.jsxs(i.Fragment,{children:[t?"Open My Training":"Log In to Start"," ",i.jsx(gt,{className:"w-4 h-4 ml-2"})]})})})]})]})})}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[720px] mx-auto px-6 lg:px-10 pt-[100px] pb-[104px]",children:[i.jsx(Gt,{className:"text-center mb-[56px]",children:i.jsx("h2",{className:"m-0 text-[clamp(32px,3.5vw,46px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Frequently Asked Questions"})}),i.jsx("div",{className:"space-y-4",children:I5e.map((l,u)=>i.jsxs(Gt,{delay:.05*u,className:"bg-white border border-[#1A1A1A]/10 rounded-[12px] overflow-hidden",children:[i.jsxs("button",{className:"w-full text-left p-6 flex justify-between items-center focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset",onClick:()=>r(n===u?null:u),children:[i.jsx("span",{className:"text-[18px] font-bold text-[#1A1A1A]",children:l.q}),i.jsx(be.div,{animate:{rotate:n===u?180:0},children:i.jsx(Gi,{className:"w-5 h-5 text-primary"})})]}),i.jsx(cn,{children:n===u&&i.jsx(be.div,{initial:{height:0,opacity:0}
164,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:i.jsx("div",{className:"p-6 pt-0 text-[16.5px] leading-[1.6] text-[#5a5a5c]",children:l.a})})})]},u))})]})}),i.jsxs("section",{className:"relative bg-primary overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${gi}site/cta-bg-1440.webp`,desktopSrcSet:`${gi}site/cta-bg-768.webp 768w, ${gi}site/cta-bg-1440.webp 1440w, ${gi}site/cta-bg-1920.webp 1920w`}),i.jsx("div",{className:"absolute inset-0 bg-primary mix-blend-multiply opacity-80"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#b4192a]/80 to-[#b4192a]/95"}),i.jsxs(Gt,{className:"relative z-10 max-w-[900px] mx-auto px-6 lg:px-10 pt-[120px] pb-[124px] text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(42px,5vw,64px)] leading-[1.02] tracking-[-0.03em] font-black text-white text-balance mb-6",children:"The best conversations are one training away."}),i.jsx("p",{className:"text-[20px] leading-[1.5] text-white/90 mb-10 max-w-[600px] mx-auto",children:"Use this free training right here on Reframe Youth, and get occasional updates as new resources are added."}),i.jsxs("div",{className:"flex flex-col items-center gap-5",children:[i.jsx(ee,{className:"bg-white text-[#1A1A1A] hover:bg-slate-100 font-extrabold text-[15px] tracking-[0.09em] uppercase px-12 py-8 rounded-[12px] shadow-xl w-full sm:w-auto",onClick:s,children:i.jsxs(i.Fragment,{children:[t?"Open My Training":"Log In to Start"," ",i.jsx(gt,{className:"w-5 h-5 ml-2"})]})}),i.jsx(Be,{href:"/self-assessment",className:"text-[14px] font-bold text-white/80 hover:text-white transition-colors underline underline-offset-4 py-2",children:"Not ready? Take the free self-assessment first."})]}),i.jsx("div",{className:"mt-16 pt-10 border-t border-white/20 max-w-[800px] mx-auto text-left sm:text-center",children:i.jsx("p",{className:"text-[18px] leading-[1.6] text-white/80 italic text-balance font-medium",children:"Imagine what your Wednesday night could sound like. Students who tell you the real thing. Parents who show up to help. Volunteers who lead confidently. Teens who feel wanted, known, and unshocked. A youth room where the gospel gets talked about because young people finally trust the adults in the room to hold what's said. That's the after. That's what we're building. Come build it with us."})})]})]}),i.jsx("section",{className:"bg-black border-t border-white/10","aria-label":"Collaboration credit",children:i.jsxs("div",{className:"mx-auto flex max-w-[1240px] flex-col items-center justify-center gap-4 px-6 py-10 text-center sm:flex-row sm:gap-6 sm:py-12",children:[i.jsx("p",{className:"text-[12px] font-extrabold uppercase tracking-[0.16em] text-white/65",children:"In collaboration with"}),i.jsx("img",{src:`${gi}site/tenx10-logo.png`,alt:"TENx10",className:"h-auto w-[180px] max-w-full sm:w-[210px]"})]})}),i.jsx(Ur,{})]})}const F5e=/^[A-Z][A-Z &']+$/;function fV(e){if(!e)return[];const t=e.split(/\r?\n/).map(a=>a.trim()).filter(Boolean),n=[];let r="";for(const a of t){if(F5e.test(a)){r=a;continue}if(r==="DISCUSS"){const s=a.match(/^\d+[.)]\s*(.+)$/);s?.[1]&&n.push({prompt:s[1],kind:"discuss"})}else r==="ONE STEP"&&(n.push({prompt:a,kind:"one-step"}),r="")}return n}function U5e(e){return e.normalize("NFKD").replace(/[ââ]/g,"'").replace(/[ââ]/g,'"').replace(/[ââ]/g,"-").replace(/[^\x20-\x7E]/g,"")}function j6(e,t=88){const n=U5e(e).split(/\s+/),r=[];let a="";for(const s of n)s&&(a?`${a} ${s}`.length<=t?a+=` ${s}`:(r.push(a),a=s):a=s);return a&&r.push(a),r}function z5e(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")}function V5e(e,t){const n=new Map(t.map(N=>[N.lessonId,N])),r=[{text:e.title,bold:!0},{text:"My Training Reflection Workbook"},{text:`Downloaded ${new Date().toLocaleDateString()}`,gap:!0}];for(const N of e.lessons){const k=fV(N.body),C=n.get(N.id),A=new Map(C?.answers.map(E=>[E.prompt,E.answer])??[]);k.length&&(r.push({text:N.title,bold:!0,gap:!0}),k.forEach(({prompt:E},_)=>{j6(`${_+1}. ${E}`).forEach((M,P)=>{r.push({text:M,bold:P===0})});const T=A.get(E)?.trim();j6(T||"No answer saved.").forEach(M=>r.push({text:` ${M}`})),r.push({text:""})}))}const a=[];let s=[],l=0;for(const N of r){const k=N.gap?2:1;l+k>48&&s.length&&(a.push(s),s=[],l=0),N.gap&&s.push({text:""}),s.push(N),l+=k}s.length&&a.push(s);const u=[],d=(N,k)=>{u[N]=k};d(1,"<< /Type /Catalog /Pages 2 0 R >>"),d(3,"<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>"),d(4,"<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold >>");const f=[];a.forEach((N,k)=>{const C=5+k*2,A=C+1;f.push(C);const E=["BT","/F1 10 Tf","50 742 Td","14 TL",...N.flatMap(_=>[`${_.bold?"/F2":"/F1"} ${_.bold?"11":"10"}
164 Tf`,`(${z5e(_.text)}) Tj`,"T*"]),"ET"].join(` 165`);d(C,`<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Resources << /Font << /F1 3 0 R /F2 4 0 R >> >> /Contents ${A} 0 R >>`),d(A,`<< /Length ${E.length} >> 166stream 167${E} 168endstream`)}),d(2,`<< /Type /Pages /Kids [${f.map(N=>`${N} 0 R`).join(" ")}] /Count ${f.length} >>`);let m=`%PDF-1.4 169`;const p=[0];for(let N=1;N<u.length;N+=1)p[N]=m.length,m+=`${N} 0 obj 170${u[N]} 171endobj 172`;const g=m.length;m+=`xref 1730 ${u.length} 1740000000000 65535 f 175`;for(let N=1;N<u.length;N+=1)m+=`${String(p[N]).padStart(10,"0")} 00000 n 176`;m+=`trailer 177<< /Size ${u.length} /Root 1 0 R >> 178startxref 179${g} 180%%EOF`;const y=new Blob([m],{type:"application/pdf"}),w=URL.createObjectURL(y),b=document.createElement("a");b.href=w,b.download=`${e.title.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}-answers.pdf`,b.click(),URL.revokeObjectURL(w)}function W5e({courseId:e,lessonId:t,body:n,saved:r}){const a=fV(n),s=new Map(r?.answers.map(b=>[b.prompt,b.answer])??[]),[l,u]=v.useState(()=>a.map(({prompt:b})=>s.get(b)??"")),[d,f]=v.useState(!1),[m,p]=v.useState(!1),g=ur(),y=lte();if(v.useEffect(()=>{if(!d&&r){const b=new Map(r.answers.map(N=>[N.prompt,N.answer]));u(a.map(({prompt:N})=>b.get(N)??""))}},[r,d]),!a.length)return null;const w=async()=>{p(!1),await y.mutateAsync({lessonId:t,data:{answers:a.map(({prompt:b},N)=>({prompt:b,answer:l[N]??""}))}}),await g.invalidateQueries({queryKey:cN(e)}),f(!1),p(!0)};return i.jsxs("section",{className:"mb-12 rounded-3xl border border-primary/15 bg-primary/[0.035] p-6 md:p-8",children:[i.jsxs("div",{className:"flex items-start gap-4 mb-7",children:[i.jsx("div",{className:"w-11 h-11 rounded-2xl bg-primary text-white flex items-center justify-center shrink-0",children:i.jsx(Wae,{className:"w-5 h-5"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-2xl font-black tracking-tight text-slate-900",children:"Apply what you learned"}),i.jsx("p",{className:"mt-1 text-sm leading-relaxed text-slate-600",children:"Write your responses here. Theyâre saved privately to your account and included in your course PDF."})]})]}),i.jsx("div",{className:"space-y-7",children:a.map(({prompt:b,kind:N},k)=>i.jsxs("label",{className:"block",children:[i.jsxs("span",{className:"block text-sm font-extrabold leading-relaxed text-slate-800",children:[N==="one-step"?"Your one step: ":`${k+1}. `,b]}),i.jsx("textarea",{value:l[k]??"",onChange:C=>{const A=[...l];A[k]=C.target.value,u(A),f(!0),p(!1)},rows:4,maxLength:5e3,placeholder:"Write your answer...",className:"mt-3 w-full resize-y rounded-xl border border-slate-200 bg-white px-4 py-3 text-base leading-relaxed text-slate-900 outline-none transition focus:border-primary focus:ring-2 focus:ring-primary/15"})]},`${N}-${b}`))}),y.isError&&i.jsx("p",{className:"mt-5 text-sm font-semibold text-red-600",children:"We couldnât save your answers. Please try again."}),i.jsxs("div",{className:"mt-7 flex items-center gap-4",children:[i.jsx(ee,{onClick:w,disabled:y.isPending,className:"rounded-full px-7 font-bold",children:y.isPending?i.jsx(Xt,{className:"w-4 h-4 animate-spin"}):"Save My Answers"}),m&&i.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-bold text-green-700",children:[i.jsx(ko,{className:"w-4 h-4"})," Saved"]})]})]})}function N6({adminPreview:e=!1}){const{courseSlug:t}=Mh(),[,n]=et(),{isSignedIn:r,isLoaded:a}=Vt(),s=FI({query:{enabled:!e&&a&&r===!0,queryKey:ha()}}),l=UI({query:{enabled:e&&a&&r===!0,queryKey:is()}}),u=e?l:s,{data:d,isLoading:f,isError:m,refetch:p}=u,g=d?.find(L=>L.slug===t),y=ite(g?.id??0,{query:{enabled:!e&&!!g&&r===!0,queryKey:cN(g?.id??0)}}),[w,b]=v.useState(null),[N,k]=v.useState(!1),C=z.useRef(t);if(v.useEffect(()=>{C.current!==t&&(b(null),k(!1),C.current=t)},[t]),v.useEffect(()=>{if(d&&t){const L=d.find($=>$.slug===t);if(L&&L.lessons.length>0&&w===null){const $=[...L.lessons].sort((G,H)=>G.sortOrder-H.sortOrder);b($[0].id)}}},[d,t,w]),!a||r&&f)return i.jsx("div",{className:"min-h-screen bg-slate-50 flex items-center justify-center",children:i.jsx(Xt,{className:"w-8 h-8 text-primary animate-spin"})});if(!r){const L=encodeURIComponent(`/training/${t}`);return i.jsx(Si,{to:`/sign-in?redirect_url=${L}`})}if(m)return i.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col",children:[i.jsx(Cr,{isSignedIn:r,setLocation:n}),i.jsx("main",{className:"flex-1 flex items-center justify-center p-6",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("h1",{className:"text-2xl font-black text-slate-900 mb-4",children:"Error Loading Course"}),i.jsx("p",{className:"text-slate-600 mb-8",children:"We couldn't load the training course. Please check your connection and try again."}),i.jsxs("div",{className:"flex gap-4 justify-center",children:[i.jsx(ee,{variant:"outline",className:"rounded-full font-bold",onClick:()=>n("/training"),children:"Go Back"}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white rounded-full font-bold",onClick:()=>p(),children:"Retry Loading"})]})]})}),i.jsx(Ur,{})]});const A=g;if(!A)return i.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col",children:[i.jsx(Cr,{isSignedIn:r,setLocation:n}),i.jsx("main",{className:"flex-1 flex items-center justify-center p-6",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("h1",{className:"text-2xl font-black text-slate-900 mb-4",children:"Course Not Found"}),i.jsx("p",{className:"text-slate-600 mb-8",children:e?"This course could not be loaded from the admin preview.":"This training course doesn't exist or hasn't been published yet."}),i.jsx(ee,{className:"bg-primary text-white rounded-full font-bold",onClick:()=>n("/training"),children:"Return to Training"})]})}),i.jsx(Ur,{})]});const E=[...A.lessons].sort((L,$)=>L.sortOrder-$.sortOrder),_=E.find(L=>L.id===w)||E[0],[T,M]=v.useState(new Set),P=v.useCallback(L=>{M($=>$.has(L)?$:new Set($).add(L))},[]),D=_?.assets?.filter(L=>L.kind==="video").sort((L,$)=>L.sortOrder-$.sortOrder)||[],U=_?.assets?.filter(L=>L.kind==="document").sort((L,$)=>L.sortOrder-$.sortOrder)||[];return i.jsxs("div",{className:"min-h-screen bg-white flex flex-col font-sans text-slate-900",children:[i.jsx(Cr,{isSignedIn:r,setLocation:n}),i.jsxs("div",{className:"flex-1 flex flex-col lg:flex-row relative",children:[i.jsxs("div",{className:"lg:hidden sticky top-[72px] z-30 bg-slate-50 border-b border-slate-200 px-4 py-3 flex items-center justify-between",children:[i.jsxs("button",{className:"flex items-center gap-2 text-sm font-bold text-slate-700",onClick:()=>n("/training"),children:[i.jsx(ii,{className:"w-4 h-4"})," Back"]}),i.jsxs("button",{className:"flex items-center gap-2 text-sm font-bold text-primary",onClick:()=>k(!N),children:[N?i.jsx(Oa,{className:"w-5 h-5"}):i.jsx(jN,{className:"w-5 h-5"}),N?"Close Menu":"Lessons"]})]}),i.jsxs("aside",{className:` 181 fixed inset-0 top-[125px] lg:top-0 z-20 bg-slate-50 border-r border-slate-200 lg:relative lg:w-80 xl:w-96 flex-shrink-0 flex flex-col transition-transform duration-300 182 ${N?"translate-x-0":"-translate-x-full lg:translate-x-0"} 183 `,children:[i.jsx("div",{className:"hidden lg:block p-6 border-b border-slate-200",children:i.jsxs("button",{className:"flex items-center gap-2 text-sm font-bold text-slate-500 hover:text-primary transition-colors group",onClick:()=>n("/training"),children:[i.jsx(ii,{className:"w-4 h-4 transition-transform group-hover:-translate-x-1"}),"All Training Paths"]})}),i.jsxs("div",{className:"p-6 lg:pb-4",children:[i.jsx("h1",{className:"text-xl font-black tracking-tight leading-tight text-slate-900 mb-2",children:A.title}),i.jsx("p",{className:"text-sm text-slate-500 leading-relaxed font-medium",children:A.description}),!e&&i.jsxs(ee,{variant:"outline",className:"mt-5 w-full rounded-full border-slate-300 bg-white font-bold",disabled:y.isLoading,onClick:()=>V5e(A,y.data??[]),children:[i.jsx(f0,{className:"w-4 h-4 mr-2"}),"Download My Answers"]})]}),i.jsxs("div",{className:"flex-1 overflow-y-auto p-4 lg:p-6 lg:pt-2 space-y-1",children:[i.jsx("div",{className:"text-xs font-black tracking-widest uppercase text-slate-400 mb-4 px-2",children:"Course Lessons"}),E.length===0&&i.jsx("p",{className:"text-sm text-slate-500 px-2",children:"No lessons available yet."}),E.map((L,$)=>{const G=_?.id===L.id;return i.jsxs("button",{onClick:()=>{b(L.id),k(!1),window.scrollTo({top:0,behavior:"smooth"})},className:` 184 w-full text-left flex items-start gap-3 p-3 rounded-xl transition-all 185 ${G?"bg-primary/5 text-primary":"hover:bg-slate-100 text-slate-700"} 186 `,children:[i.jsx("div",{className:` 187 w-6 h-6 rounded-full flex items-center justify-center text-[10px] font-bold flex-shrink-0 mt-0.5 188 ${G?"bg-primary text-white":"bg-slate-200 text-slate-500"} 189 `,children:$+1}),i.jsx("div",{className:"flex-1",children:i.jsx("div",{className:`text-sm font-bold leading-tight ${G?"text-primary":"text-slate-900"}`,children:L.title})})]},L.id)})]})]}),i.jsx("main",{className:"flex-1 min-w-0 bg-white",children:i.jsx(cn,{mode:"wait",children:i.jsx(be.div,{initial:{opacity:0,y:10}
189,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"max-w-4xl mx-auto p-6 md:p-10 lg:p-12 xl:p-16",children:_?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-10",children:[i.jsx("h2",{className:"text-[clamp(32px,4vw,48px)] font-black tracking-[-0.03em] leading-[1.05] text-slate-900 mb-4",children:_.title}),_.summary&&i.jsx("p",{className:"text-lg md:text-xl text-slate-600 leading-relaxed max-w-[34em] font-medium text-pretty",children:_.summary})]}),D.length>0&&i.jsx("div",{className:"mb-12 space-y-8",children:D.map(L=>i.jsx("div",{className:"rounded-2xl overflow-hidden bg-black border border-slate-200 shadow-xl relative aspect-video",children:T.has(L.id)?i.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 text-center px-6 text-slate-300",children:[i.jsx("p",{className:"font-semibold text-white",children:"This video isn't available right now."}),i.jsx("p",{className:"text-sm text-slate-400",children:e?"It's missing from storage and needs to be re-uploaded in the training admin.":"Please check back later or let your ministry admin know."})]}):i.jsxs("video",{controls:!0,controlsList:"nodownload",playsInline:!0,className:"absolute inset-0 w-full h-full object-contain",onError:()=>P(L.id),children:[i.jsx("source",{src:L.downloadUrl,type:L.contentType}),"Your browser does not support the video tag."]},L.downloadUrl)},L.id))}),_.body&&i.jsx("div",{className:"prose prose-slate prose-lg max-w-none mb-16 font-medium",children:_.body.split(` 190`).map((L,$)=>i.jsx("p",{className:"mb-6 leading-relaxed text-slate-700",children:L},$))}),!e&&i.jsx(W5e,{courseId:A.id,lessonId:_.id,body:_.body,saved:y.data?.find(L=>L.lessonId===_.id)},_.id),U.length>0&&i.jsxs("div",{className:"bg-slate-50 rounded-2xl p-8 border border-slate-100",children:[i.jsx("h3",{className:"text-sm font-black tracking-widest text-slate-400 mb-6",children:"Downloads & Resources"}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:U.map(L=>i.jsxs("a",{href:L.downloadUrl,target:"_blank",rel:"noopener noreferrer",className:"group flex items-start gap-4 p-5 rounded-xl bg-white border border-slate-200 hover:border-primary/40 hover:shadow-md transition-all",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 text-primary flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform",children:i.jsx(h0,{className:"w-5 h-5"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-sm font-bold text-slate-900 group-hover:text-primary transition-colors truncate",children:L.title||L.originalFilename}),i.jsxs("div",{className:"text-xs text-slate-500 mt-1 font-medium",children:[(L.sizeBytes/1024/1024).toFixed(2)," MB · ",L.originalFilename.split(".").pop()?.toUpperCase()]})]})]},L.id))})]}),E.findIndex(L=>L.id===_.id)<E.length-1&&i.jsxs("div",{className:"mt-16 pt-10 border-t border-slate-200",children:[i.jsx("p",{className:"text-xs font-black uppercase tracking-widest text-slate-400 mb-4",children:"Up Next"}),i.jsxs("button",{onClick:()=>{const L=E.findIndex($=>$.id===_.id);b(E[L+1].id),window.scrollTo({top:0,behavior:"smooth"})},className:"group w-full md:w-auto text-left flex items-center gap-6 p-6 rounded-2xl border border-slate-200 hover:border-primary/40 bg-slate-50 hover:bg-white transition-all",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"text-sm font-bold text-slate-500 mb-1",children:["Lesson ",E.findIndex(L=>L.id===_.id)+2]}),i.jsx("div",{className:"text-lg font-black text-slate-900 group-hover:text-primary transition-colors",children:E[E.findIndex(L=>L.id===_.id)+1].title})]}),i.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-200 group-hover:bg-primary text-slate-500 group-hover:text-white flex items-center justify-center transition-all shrink-0",children:i.jsx(Hx,{className:"w-5 h-5"})})]})]})]}):i.jsx("div",{className:"text-center py-20",children:i.jsx("p",{className:"text-slate-500",children:"This course currently has no lessons."})})},_?.id||"empty")})})]})]})}function q5e(){const[,e]=et(),t=ur(),n=ete(),[r,a]=v.useState(1),[s,l]=v.useState(null),[u,d]=v.useState(null),[f,m]=v.useState(""),p=async()=>
190{if(!(!s||!u)){m("");try{const g=await n.mutateAsync({data:{role:s,schoolGroup:u}});t.setQueryData(lN(),g),await t.invalidateQueries({queryKey:ha()}),e("/training/my-courses")}catch{m("We couldn't save your training choices. Please try again.")}}};return i.jsx("main",{className:"min-h-screen bg-[#F2F2F3] px-5 py-12 flex items-center justify-center",children:i.jsxs("div",{className:"w-full max-w-2xl",children:[i.jsxs("div",{className:"mb-8 text-center",children:[i.jsxs("div",{className:"text-xs font-black uppercase tracking-[0.18em] text-primary mb-3",children:["Training setup · Step ",r," of 2"]}),i.jsx("h1",{className:"text-4xl sm:text-5xl font-black tracking-tight text-[#1A1A1A]",children:"Letâs personalize your training."}),i.jsx("p",{className:"mt-4 text-lg text-slate-600",children:"Answer two quick questions and weâll give you the courses that fit."})]}),i.jsx("section",{className:"bg-white rounded-3xl border border-slate-200 shadow-sm p-6 sm:p-10",children:r===1?i.jsxs(i.Fragment,{children:[i.jsx("h2",{className:"text-2xl font-black text-slate-900 mb-2",children:"Which best describes you?"}),i.jsx("p",{className:"text-slate-600 mb-6",children:"Choose the role youâll use these courses in most."}),i.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:[["leader","Iâm a leader","Youth pastor, volunteer, mentor, or ministry leader"],["parent","Iâm a parent","Parent, guardian, or caregiver"]].map(([g,y,w])=>i.jsxs("button",{type:"button",onClick:()=>l(g),className:`text-left rounded-2xl border-2 p-6 transition ${s===g?"border-primary bg-primary/5":"border-slate-200 hover:border-slate-300"}`,children:[i.jsx("span",{className:"block text-xl font-black text-slate-900",children:y}),i.jsx("span",{className:"block mt-2 text-sm leading-relaxed text-slate-600",children:w})]},g))}),i.jsxs(ee,{className:"mt-8 w-full rounded-full py-6 font-bold",disabled:!s,onClick:()=>a(2),children:["Continue ",i.jsx(gt,{className:"w-4 h-4 ml-2"})]})]}):i.jsxs(i.Fragment,{children:[i.jsx("h2",{className:"text-2xl font-black text-slate-900 mb-2",children:"Who do you engage with?"}),i.jsx("p",{className:"text-slate-600 mb-6",children:"This determines which training courses appear for you."}),i.jsx("div",{className:"grid gap-3",children:[["middle-school","Middle schoolers","Youâll receive The Art of Conversation and The Art of Middle Schoolers."],["high-school","High schoolers","Youâll receive The Art of Conversation."],["both","Both middle and high schoolers","Youâll receive both training courses."]].map(([g,y,w])=>i.jsxs("button",{type:"button",onClick:()=>d(g),className:`text-left rounded-2xl border-2 px-5 py-4 transition ${u===g?"border-primary bg-primary/5":"border-slate-200 hover:border-slate-300"}`,children:[i.jsx("span",{className:"block text-lg font-black text-slate-900",children:y}),i.jsx("span",{className:"block mt-1 text-sm text-slate-600",children:w})]},g))}),f&&i.jsx("p",{className:"mt-4 text-sm font-semibold text-red-600",children:f}),i.jsxs("div",{className:"mt-8 flex gap-3",children:[i.jsxs(ee,{variant:"outline",className:"rounded-full px-6",onClick:()=>a(1),children:[i.jsx(ii,{className:"w-4 h-4 mr-2"})," Back"]}),i.jsx(ee,{className:"flex-1 rounded-full py-6 font-bold",disabled:!u||n.isPending,onClick:p,children:n.isPending?i.jsx(Xt,{className:"w-4 h-4 animate-spin"}):"Show My Courses"})]})]})})]})})}function H5e(){const[,e]=et(),{data:t=[],isLoading:n,isError:r,refetch:a}=FI();return i.jsxs("div",{className:"min-h-screen bg-[#F2F2F3] flex flex-col",children:[i.jsx(Cr,{isSignedIn:!0,setLocation:e}),i.jsxs("main",{className:"flex-1",children:[i.jsx("section",{className:"bg-[#1A1A1A] text-white",children:i.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-16 sm:py-20 flex flex-col sm:flex-row sm:items-end justify-between gap-6",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-black uppercase tracking-[0.18em] text-primary mb-3",children:"My Training"}),i.jsx("h1",{className:"text-4xl sm:text-5xl font-black tracking-tight",children:"Courses selected for you."}),i.jsx("p",{className:"mt-4 text-lg text-white/70 max-w-2xl",children:"Your course library is based on your role and the age group you engage with."})]}),i.jsxs(ee,{variant:"outline",className:"rounded-full bg-transparent border-white/30 text-white hover:bg-white hover:text-slate-900",onClick:()=>e("/training/setup"),children:[i.jsx(ase,{className:"w-4 h-4 mr-2"})," Change answers"]})]})}),i.jsx("section",{className:"max-w-5xl mx-auto px-6 py-12",children:n?i.jsx("div",{className:"py-24 flex justify-center",children:i.jsx(Xt,{className:"w-8 h-8 animate-spin text-primary"})}):r?i.jsxs("div",{className:"bg-white rounded-2xl border p-10 text-center",children:[i.jsx("h2",{className:"text-xl font-black text-slate-900",children:"We couldnât load your courses."}),i.jsx(ee,{className:"mt-5 rounded-full",onClick:()=>a(),children:"Try again"})]}):t.length===0?i.jsxs("div",{className:"bg-white rounded-2xl border p-10 text-center",children:[i.jsx("h2",{className:"text-xl font-black text-slate-900",children:"Your courses are being prepared."}),i.jsx("p",{className:"mt-2 text-slate-600",children:"Please check back after your training courses have been published."})]}):i.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:t.map(s=>i.jsxs("article",{className:"bg-white rounded-3xl border border-slate-200 p-7 shadow-sm flex flex-col",children:[i.jsx("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 text-primary flex items-center justify-center mb-6",children:i.jsx(Fr,{className:"w-6 h-6"})}),i.jsx("div",{className:"text-xs font-black uppercase tracking-[0.14em] text-primary mb-2",children:s.audience}),i.jsx("h2",{className:"text-2xl font-black text-slate-900",children:s.title}),i.jsx("p",{className:"mt-3 text-slate-600 leading-relaxed flex-1",children:s.description}),i.jsxs("div",{className:"mt-6 text-sm font-semibold text-slate-500",children:[s.lessons.length," lessons"]}),i.jsx(ee,{className:"mt-5 rounded-full font-bold",onClick:()=>e(`/training/${s.slug}`),children:"Open Course"})]},s.id))})})]}),i.jsx(Ur,{})]})}const G5e="/".replace(/\/$/,""),S6=[{label:"Dashboard",icon:Sae,path:"/curriculum"},{label:"AI Generator",icon:Gu,path:"/curriculum/generate"},{label:"My Library",icon:L8,path:"/curriculum/library"},{label:"Suggestions",icon:wN,path:"/curriculum/suggestions"},{label:"Reviews",icon:m0,path:"/curriculum/reviews"}];function tc({children:e}){const[t,n]=et(),[r,a]=v.useState(!1),{user:s}=Vt(),{data:l}=bt({queryKey:["curriculum-tokens"],queryFn:async()=>{const d=await fetch(`${G5e}/api/curriculum/tokens`,{credentials:"include"});if(!d.ok)throw new Error("Failed to fetch tokens");return d.json()}}),u=l?.tokens??0;return i.jsxs("div",{className:"min-h-screen bg-slate-50 flex",children:[i.jsxs("aside",{className:"hidden lg:flex flex-col w-56 bg-white border-r border-slate-100 fixed inset-y-0 left-0 z-30",children:[i.jsxs("button",{className:"flex items-center gap-2 px-5 py-5 hover:opacity-80 transition-opacity",onClick:()=>n("/"),children:[i.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center text-white font-black text-sm",children:"re"}),i.jsxs("div",{className:"text-left",children:[i.jsx("p",{className:"font-black text-sm text-slate-900 leading-none",children:"Reframe AI"}),i.jsx("p",{className:"text-[10px] text-slate-400 leading-none mt-0.5",children:"Curriculum"})]})]}),i.jsx("nav",{className:"flex-1 px-3 py-2 space-y-0.5",children:S6.map(d=>{const f=t===d.path||d.path!=="/curriculum"&&t.startsWith(d.path);return i.jsxs("button",{onClick:()=>n(d.path),className:Je("w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-colors",f?"bg-primary/10 text-primary":"text-slate-600 hover:bg-slate-50 hover:text-slate-900"),children:[i.jsx(d.icon,{className:"w-4 h-4 shrink-0"}),d.label]},d.path)})}),i.jsxs("div",{className:"px-5 py-4 border-t border-slate-100",children:[i.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-2.5",children:"Reframe Core Values"}),i.jsx("div",{className:"space-y-1.5",children:[{label:"Biblically Faithful",color:"bg-red-400"},{label:"Culturally Relevant",color:"bg-slate-400"},{label:"Emotionally Engaging",color:"bg-rose-400"},{label:"Practically Useful",color:"bg-pink-400"},{label:"Thought Provoking",color:"bg-slate-500"}].map(d=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${d.color} shrink-0`}),i.jsx("span",{className:"text-[11px] text-slate-600",children:d.label})]},d.label))})]}),i.jsxs("div",{className:"px-4 py-4 border-t border-slate-100 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(cG,{}),i.jsx("span",{className:"text-xs text-slate-500 truncate max-w-[90px]",children:s?.firstName??s?.emailAddresses[0]?.emailAddress})]}),i.jsxs("button",{onClick:()=>n("/curriculum/buy-tokens"),className:"flex items-center gap-1 bg-amber-50 border border-amber-200 rounded-full px-2 py-1 hover:bg-amber-100 transition-colors",title:"Buy tokens",children:[i.jsx(oh,{className:"w-3 h-3 text-amber-600"}),i.jsx("span",{className:"text-xs font-bold text-amber-700",children:u})]})]})]}),i.jsxs("div",{className:"lg:hidden fixed top-0 left-0 right-0 z-40 bg-white border-b border-slate-100 h-14 flex items-center px-4 justify-between",children:[i.jsxs("button",{onClick:()=>n("/"),className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-7 h-7 bg-primary rounded-lg flex items-center justify-center text-white font-black text-xs",children:"re"}),i.jsx("span",{className:"font-black text-sm text-slate-900",children:"Reframe AI"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("button",{onClick:()=>n("/curriculum/buy-tokens"),className:"flex items-center gap-1 bg-amber-50 border border-amber-200 rounded-full px-2 py-1",children:[i.jsx(oh,{className:"w-3 h-3 text-amber-600"}),i.jsx("span",{className:"text-xs font-bold text-amber-700",children:u})]}),i.jsx("button",{onClick:()=>a(d=>!d),className:"p-2 rounded-lg text-slate-600",children:r?i.jsx(Oa,{className:"w-5 h-5"}):i.jsx(jN,{className:"w-5 h-5"})})]})]}),r&&i.jsx("div",{className:"lg:hidden fixed inset-0 z-30 bg-white pt-14",onClick:()=>a(!1),children:i.jsx("nav",{className:"px-4 py-4 space-y-1",children:S6.map(d=>{const f=t===d.path||d.path!=="/curriculum"&&t.startsWith(d.path);return i.jsxs("button",{onClick:()=>{n(d.path),a(!1)},className:Je("w-full flex items-center gap-3 px-4 py-3 rounded-xl text-sm font-medium transition-colors",f?"bg-primary/10 text-primary":"text-slate-600 hover:bg-slate-50"),children:[i.jsx(d.icon,{className:"w-4 h-4"}),d.label]},d.path)})})}),i.jsx("main",{className:"flex-1 lg:ml-56 pt-0 lg:pt-0 mt-14 lg:mt-0",children:e})]})}const k6="/".replace(/\/$/,"");function lx({icon:e,label:t,value:n,color:r}){return i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 p-6 flex items-center gap-4 shadow-sm",children:[i.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center ${r}`,children:e}),i.jsxs("div",{children:[i.jsx("p",{className:"text-2xl font-black text-slate-900",children:n}),i.jsx("p",{className:"text-sm text-slate-500",children:t})]})]})}function K5e(){const[,e]=et(),{user:t}=Vt(),{data:n}=bt({queryKey:["curriculum-tokens"],queryFn:async()=>{const f=await fetch(`${k6}/api/curriculum/tokens`,{credentials:"include"});if(!f.ok)throw new Error("Failed to fetch tokens");return f.json()}}),{data:r=[]}=bt({queryKey:["curriculum-packages"],queryFn:async()=>{const f=await fetch(`${k6}/api/curriculum/packages`,{credentials:"include"});if(!f.ok)throw new Error("Failed to fetch packages");return f.json()}}),a=n?.tokens??0,s=r.length,l=s*3,u=r.filter(f=>{const m=new Date(f.createdAt),p=new Date;return m.getMonth()===p.getMonth()&&m.getFullYear()===p.getFullYear()}).length,d=r.slice(0,3);
190return i.jsx(tc,{children:i.jsxs("div",{className:"max-w-4xl mx-auto px-6 py-10",children:[i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},children:[i.jsxs("h1",{className:"text-3xl font-black text-slate-900 mb-1",children:["Welcome to ",i.jsx("span",{className:"text-primary",children:"Reframe AI"})]}),i.jsx("p",{className:"text-slate-500 mb-8",children:"Generate complete curriculum packages with tokens. Each generation creates teaching guides, small group guides, and midweek reflections for urban youth ministry."})]}),i.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[i.jsx(lx,{icon:i.jsx(oh,{className:"w-5 h-5 text-amber-600"}),label:"Available Tokens",value:a,color:"bg-amber-50"}),i.jsx(lx,{icon:i.jsx(Fr,{className:"w-5 h-5 text-blue-600"}),label:"Curriculum Packages",value:s,color:"bg-blue-50"}),i.jsx(lx,{icon:i.jsx(h0,{className:"w-5 h-5 text-red-600"}),label:"Total Guides",value:l,color:"bg-red-50"}),i.jsx(lx,{icon:i.jsx($ie,{className:"w-5 h-5 text-green-600"}),label:"Generated This Month",value:u,color:"bg-green-50"})]}),i.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-10",children:[i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 p-6 shadow-sm",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[i.jsx(z8,{className:"w-5 h-5 text-primary"}),i.jsx("h3",{className:"font-bold text-slate-900",children:"Buy Tokens"})]}),i.jsx("p",{className:"text-sm text-slate-500 mb-4",children:"Purchase tokens to generate curriculum packages. Each token creates one complete package with 3 guides."}),i.jsx(ee,{className:"w-full rounded-full bg-primary text-white font-bold",onClick:()=>e("/curriculum/buy-tokens"),children:"Buy Tokens"})]}),i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 p-6 shadow-sm",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[i.jsx(Gu,{className:"w-5 h-5 text-slate-700"}),i.jsx("h3",{className:"font-bold text-slate-900",children:"Generate Curriculum"})]}),i.jsx("p",{className:"text-sm text-slate-500 mb-4",children:"Enter a topic and generate a complete curriculum package: teaching guide, small group guide, and midweek reflection."}),i.jsx(ee,{className:"w-full rounded-full bg-slate-900 text-white font-bold hover:bg-slate-800",onClick:()=>e("/curriculum/generate"),disabled:a<1,children:a<1?"No Tokens Available":"Generate Now"})]})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h2",{className:"text-lg font-black text-slate-900",children:"Recent Activity"}),r.length>0&&i.jsxs("button",{className:"text-sm text-primary font-semibold hover:underline flex items-center gap-1",onClick:()=>e("/curriculum/library"),children:["View all ",i.jsx(Hx,{className:"w-3.5 h-3.5"})]})]}),d.length===0?i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 p-12 text-center shadow-sm",children:[i.jsx(R8,{className:"w-10 h-10 text-slate-300 mx-auto mb-3"}),i.jsx("p",{className:"text-slate-500 text-sm",children:"No recent activity. Start by generating your first curriculum package."}),i.jsx(ee,{className:"mt-4 rounded-full",onClick:()=>e("/curriculum/generate"),disabled:a<1,children:"Generate Now"})]}):i.jsx("div",{className:"space-y-3",children:d.map(f=>i.jsxs("button",{className:"w-full bg-white rounded-2xl border border-slate-100 p-5 shadow-sm flex items-center justify-between hover:border-primary/30 transition-colors text-left",onClick:()=>e(`/curriculum/package/${f.id}`),children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-bold text-slate-900",children:f.topic}),i.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[f.ageGroup==="middle"?"Middle School":f.ageGroup==="high"?"High School":"Mixed"," ·"," ",new Date(f.createdAt).toLocaleDateString()]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs bg-slate-100 text-slate-600 px-2 py-1 rounded-full",children:"3 guides"}),i.jsx(Hx,{className:"w-4 h-4 text-slate-400"})]})]},f.id))})]}),i.jsxs("div",{className:"mt-10 bg-white rounded-2xl border border-slate-100 p-6 shadow-sm",children:[i.jsx("h3",{className:"font-bold text-slate-900 mb-4",children:"Reframe Core Values"}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[{label:"Biblically Faithful",color:"bg-red-400"},{label:"Culturally Relevant",color:"bg-slate-400"},{label:"Emotionally Engaging",color:"bg-rose-400"},{label:"Practically Useful",color:"bg-pink-400"},{label:"Thought Provoking",color:"bg-slate-500"}].map(f=>i.jsxs("div",{className:"flex items-center gap-2.5",children:[i.jsx("span",{className:`w-2 h-2 rounded-full ${f.color} shrink-0`}),i.jsx("span",{className:"text-sm text-slate-700",children:f.label})]},f.label))})]})]})})}const A6="/".replace(/\/$/,""),C6=[{value:"middle",label:"Middle School (ages 11â14)"},{value:"high",label:"High School (ages 14â18)"},{value:"mixed",label:"Mixed (ages 11â18)"}],Y5e={teaching:i.jsx(Fr,{className:"w-4 h-4"}),small_group:i.jsx(Yl,{className:"w-4 h-4"}),midweek:i.jsx(NN,{className:"w-4 h-4"})},Q5e={teaching:"Teaching Guide",small_group:"Small Group Guide",midweek:"Midweek Reflection"};function X5e({guide:e}){const[t,n]=v.useState(!1);return i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 shadow-sm overflow-hidden",children:[i.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between hover:bg-slate-50 transition-colors",onClick:()=>n(r=>!r),children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center",children:Y5e[e.guideType]}),i.jsx("span",{className:"font-bold text-slate-900",children:Q5e[e.guideType]??e.guideType})]}),t?i.jsx(bN,{className:"w-4 h-4 text-slate-400"}):i.jsx(Gi,{className:"w-4 h-4 text-slate-400"})]}),i.jsx(cn,{children:t&&i.jsx(be.div,{initial:{height:0,opacity:0}
190,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:i.jsx("div",{className:"px-6 pb-6 border-t border-slate-100 pt-4",children:i.jsx("div",{className:"prose prose-sm prose-slate max-w-none",dangerouslySetInnerHTML:{__html:e.content.replace(/^## (.+)$/gm,'<h2 class="text-base font-black text-slate-900 mt-5 mb-2">$1</h2>').replace(/^### (.+)$/gm,'<h3 class="text-sm font-bold text-slate-800 mt-3 mb-1">$1</h3>').replace(/^\d+\. (.+)$/gm,'<div class="text-sm text-slate-700 ml-4 mb-1">$1</div>').replace(/^- (.+)$/gm,'<div class="text-sm text-slate-700 ml-4 mb-1 flex gap-2"><span>â¢</span><span>$1</span></div>').replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\n\n/g,"<br/>").replace(/\n/g," ")}})})})})]})}function Z5e(){const[,e]=et(),t=ur(),[n,r]=v.useState(""),[a,s]=v.useState("high"),[l,u]=v.useState(""),[d,f]=v.useState(null),{data:m}=bt({queryKey:["curriculum-tokens"],queryFn:async()=>{const w=await fetch(`${A6}/api/curriculum/tokens`,{credentials:"include"});if(!w.ok)throw new Error("Failed to fetch tokens");return w.json()}}),p=m?.tokens??0,g=$t({mutationFn:async w=>{const b=await fetch(`${A6}/api/curriculum/generate`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)});if(!b.ok){const N=await b.json();throw new Error(N.error??"Generation failed")}return b.json()},onSuccess:w=>{f(w),t.invalidateQueries({queryKey:["curriculum-tokens"]}),t.invalidateQueries({queryKey:["curriculum-packages"]})}}),y=w=>{w.preventDefault(),n.trim()&&g.mutate({topic:n.trim(),ageGroup:a,context:l.trim()||void 0})};return i.jsx(tc,{children:i.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-10",children:[i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},children:[i.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[i.jsx(Gu,{className:"w-6 h-6 text-primary"}),i.jsx("h1",{className:"text-2xl font-black text-slate-900",children:"AI Curriculum Generator"})]}),i.jsx("p",{className:"text-slate-500 mb-8",children:"Enter a topic and generate a complete curriculum package in seconds: teaching guide, small group guide, and midweek reflection."})]}),i.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[i.jsxs("div",{className:"flex items-center gap-1.5 bg-amber-50 border border-amber-200 rounded-full px-3 py-1.5",children:[i.jsx(oh,{className:"w-3.5 h-3.5 text-amber-600"}),i.jsxs("span",{className:"text-sm font-bold text-amber-700",children:[p," token",p!==1?"s":""," available"]})]}),p<1&&i.jsx(ee,{size:"sm",variant:"outline",className:"rounded-full text-xs",onClick:()=>e("/curriculum/buy-tokens"),children:"Buy Tokens"})]}),!d&&i.jsxs("form",{onSubmit:y,className:"bg-white rounded-2xl border border-slate-100 shadow-sm p-6 space-y-5 mb-8",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-bold text-slate-700 mb-1.5",children:"Topic *"}),i.jsx("input",{type:"text",value:n,onChange:w=>r(w.target.value),placeholder:'e.g. "Identity in Christ", "Forgiveness", "Anxiety & Faith"',className:"w-full border border-slate-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition",required:!0})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-bold text-slate-700 mb-1.5",children:"Age Group *"}),i.jsx("div",{className:"grid grid-cols-3 gap-2",children:C6.map(w=>i.jsx("button",{type:"button",onClick:()=>s(w.value),className:`text-xs font-medium px-3 py-2.5 rounded-xl border transition-colors text-center ${a===w.value?"bg-primary/10 border-primary text-primary":"border-slate-200 text-slate-600 hover:border-slate-300"}`,children:w.label},w.value))})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-bold text-slate-700 mb-1.5",children:["Additional Context ",i.jsx("span",{className:"text-slate-400 font-normal",children:"(optional)"})]}),i.jsx("textarea",{value:l,onChange:w=>u(w.target.value),placeholder:"Any specifics about your group, current season, felt needs, or sermon series context...",rows:3,className:"w-full border border-slate-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition resize-none"})]}),g.isError&&i.jsxs("div",{className:"flex items-start gap-2.5 bg-red-50 border border-red-200 rounded-xl px-4 py-3",children:[i.jsx(Hu,{className:"w-4 h-4 text-red-500 mt-0.5 shrink-0"}),i.jsx("p",{className:"text-sm text-red-700",children:g.error.message})]}),i.jsx(ee,{type:"submit",size:"lg",className:"w-full rounded-full font-bold",disabled:g.isPending||p<1||!n.trim(),children:g.isPending?i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-4 h-4 border-2 border-white/40 border-t-white rounded-full animate-spin"}),"Generating⦠(this takes ~30 seconds)"]}):p<1?"No Tokens: Buy to Generate":i.jsx(i.Fragment,{children:"Generate Package (1 token) â"})}),p>0&&i.jsxs("p",{className:"text-xs text-center text-slate-400",children:["This will use 1 of your ",p," token",p!==1?"s":""]})]}),d&&i.jsxs(be.div,{initial:{opacity:0,y:20}
190,animate:{opacity:1,y:0},transition:{duration:.4},children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-black text-slate-900",children:d.topic}),i.jsxs("p",{className:"text-sm text-slate-500",children:[C6.find(w=>w.value===d.ageGroup)?.label," ·"," ",d.guides?.length??0," guides generated"]})]}),i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>{f(null),r(""),u("")},children:"Generate Another"})]}),i.jsx("div",{className:"space-y-3 mb-6",children:(d.guides??[]).sort((w,b)=>{const N=["teaching","small_group","midweek"];return N.indexOf(w.guideType)-N.indexOf(b.guideType)}).map(w=>i.jsx(X5e,{guide:w},w.id))}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx(ee,{className:"flex-1 rounded-full",onClick:()=>e(`/curriculum/package/${d.id}`),children:"View Full Package â"}),i.jsx(ee,{variant:"outline",className:"flex-1 rounded-full",onClick:()=>e("/curriculum/library"),children:"Go to Library"})]})]})]})})}const E6="/".replace(/\/$/,""),J5e={middle:"Middle School",high:"High School",mixed:"Mixed"};function eTe(){const[,e]=et(),t=ur(),[n,r]=v.useState(""),[a,s]=v.useState(null),{data:l=[],isLoading:u}=bt({queryKey:["curriculum-packages"],queryFn:async()=>{const m=await fetch(`${E6}/api/curriculum/packages`,{credentials:"include"});if(!m.ok)throw new Error("Failed to fetch packages");return m.json()}}),d=$t({mutationFn:async m=>{if(!(await fetch(`${E6}/api/curriculum/packages/${m}`,{method:"DELETE",credentials:"include"})).ok)throw new Error("Delete failed")},onSuccess:()=>{t.invalidateQueries({queryKey:["curriculum-packages"]}),s(null)}}),f=l.filter(m=>m.topic.toLowerCase().includes(n.toLowerCase()));return i.jsx(tc,{children:i.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-10",children:[i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},children:[i.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[i.jsx(L8,{className:"w-6 h-6 text-primary"}),i.jsx("h1",{className:"text-2xl font-black text-slate-900",children:"My Library"})]}),i.jsx("p",{className:"text-slate-500 mb-6",children:"All your generated curriculum packages in one place."})]}),l.length>0&&i.jsxs("div",{className:"relative mb-6",children:[i.jsx(SN,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),i.jsx("input",{type:"text",value:n,onChange:m=>r(m.target.value),placeholder:"Search by topicâ¦",className:"w-full pl-10 pr-4 py-2.5 border border-slate-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition bg-white"})]}),u?i.jsx("div",{className:"text-center py-20 text-slate-400",children:"Loadingâ¦"}):f.length===0?i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 p-14 text-center shadow-sm",children:[i.jsx(Fr,{className:"w-10 h-10 text-slate-300 mx-auto mb-3"}),l.length===0?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-slate-500 font-medium mb-1",children:"Your library is empty"}),i.jsx("p",{className:"text-slate-400 text-sm mb-5",children:"Generate your first curriculum package to get started."}),i.jsxs(ee,{className:"rounded-full",onClick:()=>e("/curriculum/generate"),children:[i.jsx(Gu,{className:"w-4 h-4 mr-2"})," Generate Now"]})]}):i.jsxs("p",{className:"text-slate-400 text-sm",children:['No results for "',n,'"']})]}):i.jsx("div",{className:"space-y-3",children:f.map((m,p)=>i.jsx(be.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.3,delay:p*.04},className:"bg-white rounded-2xl border border-slate-100 shadow-sm",children:a===m.id?i.jsxs("div",{className:"px-6 py-5 flex items-center justify-between gap-4",children:[i.jsxs("p",{className:"text-sm text-slate-700 font-medium",children:['Delete "',m.topic,'"? This cannot be undone.']}),i.jsxs("div",{className:"flex gap-2 shrink-0",children:[i.jsx(ee,{size:"sm",variant:"outline",className:"rounded-full text-xs",onClick:()=>s(null),children:"Cancel"}),i.jsx(ee,{size:"sm",variant:"destructive",className:"rounded-full text-xs",onClick:()=>d.mutate(m.id),disabled:d.isPending,children:"Delete"})]})]}):i.jsxs("div",{className:"px-6 py-5 flex items-center justify-between gap-4",children:[i.jsxs("button",{className:"flex-1 text-left",onClick:()=>e(`/curriculum/package/${m.id}`),children:[i.jsx("p",{className:"font-bold text-slate-900",children:m.topic}),i.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[J5e[m.ageGroup]??m.ageGroup," ·"," ",new Date(m.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})," · 3 guides"]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{className:"p-2 rounded-lg text-slate-400 hover:text-red-500 hover:bg-red-50 transition-colors",onClick:()=>s(m.id),title:"Delete package",children:i.jsx(yu,{className:"w-4 h-4"})}),i.jsx(Hx,{className:"w-4 h-4 text-slate-300"})]})]})},m.id))})]})})}const tTe="/".replace(/\/$/,""),nTe={middle:"Middle School",high:"High School",mixed:"Mixed"},rTe={teaching:{icon:i.jsx(Fr,{className:"w-4 h-4"}),label:"Teaching Guide",color:"bg-blue-50 text-blue-600"},small_group:{icon:i.jsx(Yl,{className:"w-4 h-4"}),label:"Small Group Guide",color:"bg-green-50 text-green-600"},midweek:{icon:i.jsx(NN,{className:"w-4 h-4"}),label:"Midweek Reflection",color:"bg-purple-50 text-purple-600"}};function iTe(e){return e.replace(/^## (.+)$/gm,'<h2 style="font-size:1rem;font-weight:900;color:#0f172a;margin-top:1.25rem;margin-bottom:0.5rem">$1</h2>').replace(/^### (.+)$/gm,'<h3 style="font-size:0.875rem;font-weight:700;color:#1e293b;margin-top:0.75rem;margin-bottom:0.25rem">$1</h3>').replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/^\d+\. (.+)$/gm,'<div style="font-size:0.875rem;color:#475569;margin-left:1rem;margin-bottom:0.25rem">$1</div>').replace(/^- (.+)$/gm,'<div style="font-size:0.875rem;color:#475569;margin-left:1rem;margin-bottom:0.25rem;display:flex;gap:0.5rem"><span>â¢</span><span>$1</span></div>').replace(/\n\n/g,"<br/>").replace(/\n(?!<)/g," ")}function aTe({guide:e,defaultOpen:t}){const[n,r]=v.useState(t??!1),a=rTe[e.guideType]??{icon:null,label:e.guideType,color:"bg-slate-100 text-slate-600"};return i.jsxs("div",{className:"bg-white rounded-2xl border border-slate-100 shadow-sm overflow-hidden",children:[i.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between hover:bg-slate-50 transition-colors",onClick:()=>r(s=>!s),children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center ${a.color}`,children:a.icon}),i.jsx("span",{className:"font-bold text-slate-900",children:a.label})]}),n?i.jsx(bN,{className:"w-4 h-4 text-slate-400"}):i.jsx(Gi,{className:"w-4 h-4 text-slate-400"})]}),i.jsx(cn,{children:n&&i.jsx(be.div,{initial:{height:0,opacity:0}
190,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:i.jsx("div",{className:"px-6 pb-8 border-t border-slate-100 pt-5",children:i.jsx("div",{className:"text-slate-700 text-sm leading-relaxed",dangerouslySetInnerHTML:{__html:iTe(e.content)}})})})})]})}function sTe(){const[,e]=et(),{id:t}=Mh(),{data:n,isLoading:r,isError:a}=bt({queryKey:["curriculum-package",t],queryFn:async()=>{const s=await fetch(`${tTe}/api/curriculum/packages/${t}`,{credentials:"include"});if(!s.ok)throw new Error("Package not found");return s.json()},enabled:!!t});return i.jsx(tc,{children:i.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-10",children:[i.jsxs("button",{className:"flex items-center gap-2 text-sm text-slate-500 hover:text-slate-900 transition-colors mb-6",onClick:()=>e("/curriculum/library"),children:[i.jsx(ii,{className:"w-4 h-4"})," Back to Library"]}),r?i.jsx("div",{className:"text-center py-20 text-slate-400",children:"Loadingâ¦"}):a||!n?i.jsxs("div",{className:"text-center py-20",children:[i.jsx("p",{className:"text-slate-500",children:"Package not found."}),i.jsx(ee,{className:"mt-4 rounded-full",onClick:()=>e("/curriculum/library"),children:"Go to Library"})]}):i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},children:[i.jsxs("div",{className:"flex items-start justify-between mb-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-black text-slate-900",children:n.topic}),i.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[nTe[n.ageGroup]??n.ageGroup," ·"," ",new Date(n.createdAt).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})]}),n.context&&i.jsxs("p",{className:"text-xs text-slate-400 mt-1 italic",children:["Context: ",n.context]})]}),i.jsx("button",{onClick:()=>window.print(),className:"p-2 rounded-lg text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors",title:"Print package",children:i.jsx(Qae,{className:"w-4 h-4"})})]}),i.jsx("div",{className:"space-y-3",children:(n.guides??[]).sort((s,l)=>{const u=["teaching","small_group","midweek"];return u.indexOf(s.guideType)-u.indexOf(l.guideType)}).map((s,l)=>i.jsx(aTe,{guide:s,defaultOpen:l===0},s.id))}),i.jsxs("div",{className:"mt-6 flex gap-3",children:[i.jsx(ee,{className:"rounded-full",onClick:()=>e("/curriculum/generate"),children:"Generate Another â"}),i.jsx(ee,{variant:"outline",className:"rounded-full",onClick:()=>e("/curriculum/library"),children:"Back to Library"})]})]})]})})}const T6="/".replace(/\/$/,""),_6=[{id:"1",tokens:1,price:"$4.99",label:"Starter",desc:"Perfect for trying it out",perToken:"$4.99 / token",popular:!1},{id:"5",tokens:5,price:"$19.99",label:"Standard",desc:"Best for monthly planning",perToken:"$4.00 / token",popular:!0},{id:"10",tokens:10,price:"$34.99",label:"Team",desc:"Great for larger ministries",perToken:"$3.50 / token",popular:!1}];function oTe(){const[,e]=et(),[t,n]=v.useState("5"),{data:r}=bt({queryKey:["curriculum-tokens"],queryFn:async()=>{const s=await fetch(`${T6}/api/curriculum/tokens`,{credentials:"include"});if(!s.ok)throw new Error("Failed");return s.json()}}),a=$t({mutationFn:async s=>{const l=window.location.origin,u=T6||"",d=await fetch(`${u}/api/curriculum/buy-tokens`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({pack:s,successUrl:`${l}${u}/curriculum?token_success=1`,cancelUrl:`${l}${u}/curriculum/buy-tokens`})});if(!d.ok){const f=await d.json();throw new Error(f.error??"Failed to create checkout")}return d.json()},onSuccess:({url:s})=>{s&&(window.location.href=s)}});return ud(()=>a.reset()),i.jsx(tc,{children:i.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-10",children:[i.jsxs("button",{className:"flex items-center gap-2 text-sm text-slate-500 hover:text-slate-900 transition-colors mb-6",onClick:()=>e("/curriculum"),children:[i.jsx(ii,{className:"w-4 h-4"})," Back to Dashboard"]}),i.jsxs(be.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},children:[i.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[i.jsx(oh,{className:"w-6 h-6 text-amber-500"}),i.jsx("h1",{className:"text-2xl font-black text-slate-900",children:"Buy Tokens"})]}),i.jsx("p",{className:"text-slate-500 mb-2",children:"Each token generates one complete curriculum package: a teaching guide, small group guide, and midweek reflection, tailored for urban youth ministry."}),r&&i.jsxs("p",{className:"text-sm text-amber-700 font-semibold mb-8",children:["You currently have ",r.tokens," token",r.tokens!==1?"s":""]}),i.jsx("div",{className:"space-y-3 mb-8",children:_6.map(s=>i.jsx("button",{onClick:()=>n(s.id),className:`w-full text-left rounded-2xl border-2 p-5 transition-all ${t===s.id?"border-primary bg-primary/5":"border-slate-200 bg-white hover:border-slate-300"}`,children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center ${t===s.id?"border-primary bg-primary":"border-slate-300"}`,children:t===s.id&&i.jsx(ko,{className:"w-3 h-3 text-white"})}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-bold text-slate-900",children:[s.tokens," Token",s.tokens!==1?"s":""]}),s.popular&&i.jsx("span",{className:"text-[10px] font-bold bg-primary/10 text-primary px-2 py-0.5 rounded-full uppercase tracking-wide",children:"Most Popular"})]}),i.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:s.desc})]})]}),i.jsxs("div",{className:"text-right",children:[i.jsx("p",{className:"font-black text-slate-900",children:s.price}),i.jsx("p",{className:"text-xs text-slate-400",children:s.perToken})]})]})},s.id))}),i.jsxs("div",{className:"bg-slate-50 rounded-2xl p-5 mb-8",children:[i.jsx("h3",{className:"font-bold text-slate-800 mb-3 text-sm",children:"Each token generates:"}),i.jsx("ul",{className:"space-y-2",children:["ð Teaching Guide: full sermon outline with scripture, points, and application","ð¥ Small Group Guide: discussion questions and conversation facilitation tips","ð Midweek Reflection: personal devotional for students to use on their own"].map(s=>i.jsxs("li",{className:"text-sm text-slate-600 flex items-start gap-2",children:[i.jsx("span",{className:"shrink-0",children:s.slice(0,2)}),i.jsx("span",{children:s.slice(3)})]},s))})]}),a.isError&&i.jsxs("div",{className:"flex items-start gap-2.5 bg-red-50 border border-red-200 rounded-xl px-4 py-3 mb-4",children:[i.jsx(Hu,{className:"w-4 h-4 text-red-500 mt-0.5 shrink-0"}),i.jsx("p",{className:"text-sm text-red-700",children:a.error.message})]}),i.jsx(ee,{size:"lg",className:"w-full rounded-full font-bold",disabled:a.isPending,onClick:()=>a.mutate(t),children:a.isPending?i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-4 h-4 border-2 border-white/40 border-t-white rounded-full animate-spin"}),"Redirecting to checkoutâ¦"]}):i.jsxs(i.Fragment,{children:["Purchase ",_6.find(s=>s.id===t)?.price," â"]})}),i.jsx("p",{className:"text-xs text-center text-slate-400 mt-3",children:"Secure checkout powered by Stripe. No subscription: pay once, use forever."})]})]})})}
190function lTe(){return i.jsx(tc,{children:i.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-20 text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-slate-100 rounded-2xl flex items-center justify-center mx-auto mb-4",children:i.jsx(wN,{className:"w-7 h-7 text-slate-400"})}),i.jsx("h1",{className:"text-2xl font-black text-slate-900 mb-2",children:"Suggestions"}),i.jsx("p",{className:"text-slate-500",children:"Have an idea for a topic, feature, or improvement? This section is coming soon, and you'll be able to submit and vote on curriculum topic suggestions."})]})})}function cTe(){return i.jsx(tc,{children:i.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-20 text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-slate-100 rounded-2xl flex items-center justify-center mx-auto mb-4",children:i.jsx(m0,{className:"w-7 h-7 text-slate-400"})}),i.jsx("h1",{className:"text-2xl font-black text-slate-900 mb-2",children:"Reviews"}),i.jsx("p",{className:"text-slate-500",children:"Reviews from youth leaders who have used Reframe AI curriculum packages will appear here. Coming soon."})]})})}const dj=(e,t)=>t?{}:{initial:{pathLength:0,opacity:0},whileInView:{pathLength:1,opacity:1},viewport:{once:!0,amount:.9},transition:{duration:.7,delay:e,ease:"easeInOut"}};function Lf({children:e,delay:t=.3,color:n="#d82435"}){const r=_I();return i.jsxs("span",{className:"relative inline-block",children:[e,i.jsx("svg",{viewBox:"0 0 120 52",fill:"none",preserveAspectRatio:"none","aria-hidden":"true",className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 !w-[132%] !h-[158%] pointer-events-none",children:i.jsx(be.path,{d:"M113 20.5 C108 8.5 84 3.5 59 4.5 C31 5.6 6.5 13 6 26 C5.5 39 30 48.5 61 47.5 C90 46.6 114 38.5 114.5 25.5 C115 15.5 97 7.5 76 6",stroke:n,strokeWidth:"3.2",strokeLinecap:"round",...dj(t,r)})})]})}function Tf({children:e,delay:t=.3,color:n="#1A1A1A",thick:r=!1}){const a=_I();return i.jsxs("span",{className:"relative inline-block whitespace-nowrap",children:[e,i.jsxs("svg",{viewBox:"0 0 200 14",fill:"none",preserveAspectRatio:"none","aria-hidden":"true",className:`absolute left-1/2 -translate-x-1/2 !w-[103%] pointer-events-none ${r?"bottom-[-20px] !h-[16px]":"bottom-[-9px] !h-[10px]"}`,children:[i.jsx(be.path,{d:"M3 5 C55 2.5 140 2 197 4",stroke:n,strokeWidth:"2.6",strokeLinecap:"round",...dj(t,a)}),i.jsx(be.path,{d:"M14 10.5 C70 8.5 130 8 186 9.5",stroke:n,strokeWidth:"2.2",strokeLinecap:"round",...dj(t+.25,a)})]})]})}function hV({children:e}){return i.jsx(Lf,{color:"#ffffff",delay:.5,children:i.jsx("span",{className:"inline-block py-[6px]",children:e})})}function uTe(e){return Object.prototype.toString.call(e)==="[object Object]"}function O6(e){return uTe(e)||Array.isArray(e)}function dTe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bk(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==s?!1:n.every(l=>{const u=e[l],d=t[l];return typeof u=="function"?`${u}`==`${d}`:!O6(u)||!O6(d)?u===d:Bk(u,d)})}function P6(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function fTe(e,t){if(e.length!==t.length)return!1;const n=P6(e),r=P6(t);return n.every((a,s)=>{const l=r[s];return Bk(a,l)})}function Fk(e){return typeof e=="number"}function fj(e){return typeof e=="string"}function yy(e){return typeof e=="boolean"}function M6(e){return Object.prototype.toString.call(e)==="[object Object]"}function Qt(e){return Math.abs(e)}function Uk(e){return Math.sign(e)}function Jf(e,t){return Qt(e-t)}function hTe(e,t){if(e===0||t===0||Qt(e)<=Qt(t))return 0;const n=Jf(Qt(e),Qt(t));return Qt(n/e)}function mTe(e){return Math.round(e*100)/100}function Nh(e){return Sh(e).map(Number)}function Hi(e){return e[um(e)]}function um(e){return Math.max(0,e.length-1)}function zk(e,t){return t===um(e)}function R6(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Sh(e){return Object.keys(e)}function mV(e,t){return[e,t].reduce((n,r)=>(Sh(r).forEach(a=>{const s=n[a],l=r[a],u=M6(s)&&M6(l);n[a]=u?mV(s,l):l}),n),{})}function hj(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function pTe(e,t){const n={start:r,center:a,end:s};function r(){return 0}function a(d){return s(d)/2}function s(d){return t-d}function l(d,f){return fj(e)?n[e](d):e(t,d,f)}return{measure:l}}function kh(){let e=[];function t(a,s,l,u={passive:!0}){let d;if("addEventListener"in a)a.addEventListener(s,l,u),d=()=>a.removeEventListener(s,l,u);else{const f=a;f.addListener(l),d=()=>f.removeListener(l)}return e.push(d),r}function n(){e=e.filter(a=>a())}const r={add:t,clear:n};return r}function xTe(e,t,n,r){const a=kh(),s=1e3/60;let l=null,u=0,d=0;function f(){a.add(e,"visibilitychange",()=>{e.hidden&&w()})}function m(){y(),a.clear()}function p(N){if(!d)return;l||(l=N,n(),n());const k=N-l;for(l=N,u+=k;u>=s;)n(),u-=s;const C=u/s;r(C),d&&(d=t.requestAnimationFrame(p))}function g(){d||(d=t.requestAnimationFrame(p))}function y(){t.cancelAnimationFrame(d),l=null,u=0,d=0}function w(){l=null,u=0}return{init:f,destroy:m,start:g,stop:y,update:n,render:r}}function gTe(e,t){const n=t==="rtl",r=e==="y",a=r?"y":"x",s=r?"x":"y",l=!r&&n?-1:1,u=m(),d=p();function f(w){const{height:b,width:N}=w;return r?b:N}function m(){return r?"top":n?"right":"left"}function p(){return r?"bottom":n?"left":"right"}function g(w){return w*l}return{scroll:a,cross:s,startEdge:u,endEdge:d,measureSize:f,direction:g}}function Hl(e=0,t=0){const n=Qt(e-t);function r(f){return f<e}function a(f){return f>t}function s(f){return r(f)||a(f)}function l(f){return s(f)?r(f)?e:t:f}function u(f){return n?f-n*Math.ceil((f-t)/n):f}return{length:n,max:t,min:e,constrain:l,reachedAny:s,reachedMax:a,reachedMin:r,removeOffset:u}}function pV(e,t,n){const{constrain:r}=Hl(0,e),a=e+1;let s=l(t);function l(g){return n?Qt((a+g)%a):r(g)}function u(){return s}function d(g){return s=l(g),p}function f(g){return m().set(u()+g)}function m(){return pV(e,u(),n)}const p={get:u,set:d,add:f,clone:m};return p}
vendor: 10,774 bytes, line 190
190function yTe(e,t,n,r,a,s,l,u,d,f,m,p,g,y,w,b,N,k,C){const{cross:A,direction:E}=e,_=["INPUT","SELECT","TEXTAREA"],T={passive:!1},M=kh(),P=kh(),D=Hl(50,225).constrain(y.measure(20)),U={mouse:300,touch:400},L={mouse:500,touch:600},$=w?43:25;let G=!1,H=0,V=0,B=!1,K=!1,Q=!1,ce=!1;function I(X){if(!C)return;function F(je){(yy(C)||C(X,je))&&Ne(je)}const xe=t;M.add(xe,"dragstart",je=>je.preventDefault(),T).add(xe,"touchmove",()=>{},T).add(xe,"touchend",()=>{}).add(xe,"touchstart",F).add(xe,"mousedown",F).add(xe,"touchcancel",ke).add(xe,"contextmenu",ke).add(xe,"click",le,!0)}function J(){M.clear(),P.clear()}function fe(){const X=ce?n:t;P.add(X,"touchmove",ge,T).add(X,"touchend",ke).add(X,"mousemove",ge,T).add(X,"mouseup",ke)}function ue(X){const F=X.nodeName||"";return _.includes(F)}function ve(){return(w?L:U)[ce?"mouse":"touch"]}function Se(X,F){const xe=p.add(Uk(X)*-1),je=m.byDistance(X,!w).distance;return w||Qt(X)<D?je:N&&F?je*.5:m.byIndex(xe.get(),0).distance}function Ne(X){const F=hj(X,r);ce=F,Q=w&&F&&!X.buttons&&G,G=Jf(a.get(),l.get())>=2,!(F&&X.button!==0)&&(ue(X.target)||(B=!0,s.pointerDown(X),f.useFriction(0).useDuration(0),a.set(l),fe(),H=s.readPoint(X),V=s.readPoint(X,A),g.emit("pointerDown")))}function ge(X){if(!hj(X,r)&&X.touches.length>=2)return ke(X);const xe=s.readPoint(X),je=s.readPoint(X,A),He=Jf(xe,H),Qe=Jf(je,V);if(!K&&!ce&&(!X.cancelable||(K=He>Qe,!K)))return ke(X);const er=s.pointerMove(X);He>b&&(Q=!0),f.useFriction(.3).useDuration(.75),u.start(),a.add(E(er)),X.preventDefault()}function ke(X){const xe=m.byDistance(0,!1).index!==p.get(),je=s.pointerUp(X)*ve(),He=Se(E(je),xe),Qe=hTe(je,He),er=$-10*Qe,hr=k+Qe/50;K=!1,B=!1,P.clear(),f.useDuration(er).useFriction(hr),d.distance(He,!w),ce=!1,g.emit("pointerUp")}function le(X){Q&&(X.stopPropagation(),X.preventDefault(),Q=!1)}function we(){return B}return{init:I,destroy:J,pointerDown:we}}function vTe(e,t){let r,a;function s(p){return p.timeStamp}function l(p,g){const w=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(hj(p,t)?p:p.touches[0])[w]}function u(p){return r=p,a=p,l(p)}function d(p){const g=l(p)-l(a),y=s(p)-s(r)>170;return a=p,y&&(r=p),g}function f(p){if(!r||!a)return 0;const g=l(a)-l(r),y=s(p)-s(r),w=s(p)-s(a)>170,b=g/y;return y&&!w&&Qt(b)>.1?b:0}return{pointerDown:u,pointerMove:d,pointerUp:f,readPoint:l}}function bTe(){function e(n){const{offsetTop:r,offsetLeft:a,offsetWidth:s,offsetHeight:l}=n;return{top:r,right:a+s,bottom:r+l,left:a,width:s,height:l}}return{measure:e}}function wTe(e){function t(r){return e*(r/100)}return{measure:t}}function jTe(e,t,n,r,a,s,l){const u=[e].concat(r);let d,f,m=[],p=!1;function g(N){return a.measureSize(l.measure(N))}function y(N){if(!s)return;f=g(e),m=r.map(g);function k(C){for(const A of C){if(p)return;const E=A.target===e,_=r.indexOf(A.target),T=E?f:m[_],M=g(E?e:r[_]);if(Qt(M-T)>=.5){N.reInit(),t.emit("resize");break}}}d=new ResizeObserver(C=>{(yy(s)||s(N,C))&&k(C)}),n.requestAnimationFrame(()=>{u.forEach(C=>d.observe(C))})}function w(){p=!0,d&&d.disconnect()}return{init:y,destroy:w}}function NTe(e,t,n,r,a,s){let l=0,u=0,d=a,f=s,m=e.get(),p=0;function g(){const T=r.get()-e.get(),M=!d;let P=0;return M?(l=0,n.set(r),e.set(r),P=T):(n.set(e),l+=T/d,l*=f,m+=l,e.add(l),P=m-p),u=Uk(P),p=m,_}function y(){const T=r.get()-t.get();return Qt(T)<.001}function w(){return d}function b(){return u}function N(){return l}function k(){return A(a)}function C(){return E(s)}function A(T){return d=T,_}function E(T){return f=T,_}const _={direction:b,duration:w,velocity:N,seek:g,settled:y,useBaseFriction:C,useBaseDuration:k,useFriction:E,useDuration:A};return _}function STe(e,t,n,r,a){const s=a.measure(10),l=a.measure(50),u=Hl(.1,.99);let d=!1;function f(){return!(d||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function m(y){if(!f())return;const w=e.reachedMin(t.get())?"min":"max",b=Qt(e[w]-t.get()),N=n.get()-t.get(),k=u.constrain(b/l);n.subtract(N*k),!y&&Qt(N)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function p(y){d=!y}return{shouldConstrain:f,constrain:m,toggleActive:p}}function kTe(e,t,n,r,a){const s=Hl(-t+e,0),l=p(),u=m(),d=g();function f(w,b){return Jf(w,b)<=1}function m(){const w=l[0],b=Hi(l),N=l.lastIndexOf(w),k=l.indexOf(b)+1;return Hl(N,k)}function p(){return n.map((w,b)=>{const{min:N,max:k}=s,C=s.constrain(w),A=!b,E=zk(n,b);return A?k:E||f(N,C)?N:f(k,C)?k:C}).map(w=>parseFloat(w.toFixed(3)))}function g(){if(t<=e+a)return[s.max];if(r==="keepSnaps")return l;const{min:w,max:b}=u;return l.slice(w,b)}return{snapsContained:d,scrollContainLimit:u}}function ATe(e,t,n){const r=t[0],a=n?r-e:Hi(t);return{limit:Hl(a,r)}}function CTe(e,t,n,r){const s=t.min+.1,l=t.max+.1,{reachedMin:u,reachedMax:d}=Hl(s,l);function f(g){return g===1?d(n.get()):g===-1?u(n.get()):!1}function m(g){if(!f(g))return;const y=e*(g*-1);r.forEach(w=>w.add(y))}return{loop:m}}function ETe(e){const{max:t,length:n}=e;function r(s){const l=s-t;return n?l/-n:0}return{get:r}}function TTe(e,t,n,r,a){const{startEdge:s,endEdge:l}=e,{groupSlides:u}=a,d=p().map(t.measure),f=g(),m=y();function p(){return u(r).map(b=>Hi(b)[l]-b[0][s]).map(Qt)}function g(){return r.map(b=>n[s]-b[s]).map(b=>-Qt(b))}function y(){return u(f).map(b=>b[0]).map((b,N)=>b+d[N])}return{snaps:f,snapsAligned:m}}function _Te(e,t,n,r,a,s){const{groupSlides:l}=a,{min:u,max:d}=r,f=m();function m(){const g=l(s),y=!e||t==="keepSnaps";return n.length===1?[s]:y?g:g.slice(u,d).map((w,b,N)=>{const k=!b,C=zk(N,b);if(k){const A=Hi(N[0])+1;return R6(A)}if(C){const A=um(s)-Hi(N)[0]+1;return R6(A,Hi(N)[0])}return w})}return{slideRegistry:f}}function OTe(e,t,n,r,a){const{reachedAny:s,removeOffset:l,constrain:u}=r;function d(w){return w.concat().sort((b,N)=>Qt(b)-Qt(N))[0]}function f(w){const b=e?l(w):u(w),N=t.map((C,A)=>({diff:m(C-b,0),index:A})).sort((C,A)=>Qt(C.diff)-Qt(A.diff)),{index:k}=N[0];return{index:k,distance:b}}function m(w,b){const N=[w,w+n,w-n];if(!e)return w;if(!b)return d(N);const k=N.filter(C=>Uk(C)===b);return k.length?d(k):Hi(N)-n}function p(w,b){const N=t[w]-a.get(),k=m(N,b);return{index:w,distance:k}}function g(w,b){const N=a.get()+w,{index:k,distance:C}=f(N),A=!e&&s(N);if(!b||A)return{index:k,distance:w};const E=t[k]-C,_=w+m(E,0);return{index:k,distance:_}}return{byDistance:g,byIndex:p,shortcut:m}}function PTe(e,t,n,r,a,s,l){function u(p){const g=p.distance,y=p.index!==t.get();s.add(g),g&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(p.index),l.emit("select"))}function d(p,g){const y=a.byDistance(p,g);u(y)}function f(p,g){const y=t.clone().set(p),w=a.byIndex(y.get(),g);u(w)}return{distance:d,index:f}}function MTe(e,t,n,r,a,s,l,u){const d={passive:!0,capture:!0};let f=0;function m(y){if(!u)return;function w(b){if(new Date().getTime()-f>10)return;l.emit("slideFocusStart"),e.scrollLeft=0;const C=n.findIndex(A=>A.includes(b));Fk(C)&&(a.useDuration(0),r.index(C,0),l.emit("slideFocus"))}s.add(document,"keydown",p,!1),t.forEach((b,N)=>{s.add(b,"focus",k=>{(yy(u)||u(y,k))&&w(N)},d)})}function p(y){y.code==="Tab"&&(f=new Date().getTime())}return{init:m}}function $f(e){let t=e;function n(){return t}function r(d){t=l(d)}function a(d){t+=l(d)}function s(d){t-=l(d)}function l(d){return Fk(d)?d:d.get()}return{get:n,set:r,add:a,subtract:s}}function xV(e,t){const n=e.scroll==="x"?l:u,r=t.style;let a=null,s=!1;function l(g){return`translate3d(${g}px,0px,0px)`}function u(g){return`translate3d(0px,${g}px,0px)`}function d(g){if(s)return;const y=mTe(e.direction(g));y!==a&&(r.transform=n(y),a=y)}function f(g){s=!g}function m(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:m,to:d,toggleActive:f}}function RTe(e,t,n,r,a,s,l,u,d){const m=Nh(a),p=Nh(a).reverse(),g=k().concat(C());function y(M,P){return M.reduce((D,U)=>D-a[U],P)}function w(M,P){return M.reduce((D,U)=>y(D,P)>0?D.concat([U]):D,[])}function b(M){return s.map((P,D)=>({start:P-r[D]+.5+M,end:P+t-.5+M}))}function N(M,P,D){const U=b(P);return M.map(L=>{const $=D?0:-n,G=D?n:0,H=D?"end":"start",V=U[L][H];return{index:L,loopPoint:V,slideLocation:$f(-1),translate:xV(e,d[L]),target:()=>u.get()>V?$:G}})}function k(){const M=l[0],P=w(p,M);return N(P,n,!1)}function C(){const M=t-l[0]-1,P=w(m,M);return N(P,-n,!0)}function A(){return g.every(({index:M})=>{const P=m.filter(D=>D!==M);return y(P,t)<=.1})}function E(){g.forEach(M=>{const{target:P,translate:D,slideLocation:U}=M,L=P();L!==U.get()&&(D.to(L),U.set(L))})}function _(){g.forEach(M=>M.translate.clear())}return{canLoop:A,clear:_,loop:E,loopPoints:g}}function DTe(e,t,n){let r,a=!1;function s(d){if(!n)return;function f(m){for(const p of m)if(p.type==="childList"){d.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(m=>{a||(yy(n)||n(d,m))&&f(m)}),r.observe(e,{childList:!0})}function l(){r&&r.disconnect(),a=!0}return{init:s,destroy:l}}function ITe(e,t,n,r){const a={};let s=null,l=null,u,d=!1;function f(){u=new IntersectionObserver(w=>{d||(w.forEach(b=>{const N=t.indexOf(b.target);a[N]=b}),s=null,l=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(w=>u.observe(w))}function m(){u&&u.disconnect(),d=!0}function p(w){return Sh(a).reduce((b,N)=>{const k=parseInt(N),{isIntersecting:C}=a[k];return(w&&C||!w&&!C)&&b.push(k),b},[])}function g(w=!0){if(w&&s)return s;if(!w&&l)return l;const b=p(w);return w&&(s=b),w||(l=b),b}return{init:f,destroy:m,get:g}}function LTe(e,t,n,r,a,s){const{measureSize:l,startEdge:u,endEdge:d}=e,f=n[0]&&a,m=w(),p=b(),g=n.map(l),y=N();function w(){if(!f)return 0;const C=n[0];return Qt(t[u]-C[u])}function b(){if(!f)return 0;const C=s.getComputedStyle(Hi(r));return parseFloat(C.getPropertyValue(`margin-${d}`))}function N(){return n.map((C,A,E)=>{const _=!A,T=zk(E,A);return _?g[A]+m:T?g[A]+p:E[A+1][u]-C[u]}).map(Qt)}return{slideSizes:g,slideSizesWithGaps:y,startGap:m,endGap:p}}function $Te(e,t,n,r,a,s,l,u,d){const{startEdge:f,endEdge:m,direction:p}=e,g=Fk(n);function y(k,C){return Nh(k).filter(A=>A%C===0).map(A=>k.slice(A,A+C))}function w(k){return k.length?Nh(k).reduce((C,A,E)=>{const _=Hi(C)||0,T=_===0,M=A===um(k),P=a[f]-s[_][f],D=a[f]-s[A][m],U=!r&&T?p(l):0,L=!r&&M?p(u):0,$=Qt(D-L-(P+U));return E&&$>t+d&&C.push(A),M&&C.push(k.length),C},[]).map((C,A,E)=>{const _=Math.max(E[A-1]||0);return k.slice(_,C)}):[]}function b(k){return g?y(k,n):w(k)}return{groupSlides:b}}function BTe(e,t,n,r,a,s,l){const{align:u,axis:d,direction:f,startIndex:m,loop:p,duration:g,dragFree:y,dragThreshold:w,inViewThreshold:b,slidesToScroll:N,skipSnaps:k,containScroll:C,watchResize:A,watchSlides:E,watchDrag:_,watchFocus:T}=s,M=2,P=bTe(),D=P.measure(t),U=n.map(P.measure),L=gTe(d,f),$=L.measureSize(D),G=wTe($),H=pTe(u,$),V=!p&&!!C,B=p||!!C,{slideSizes:K,slideSizesWithGaps:Q,startGap:ce,endGap:I}=LTe(L,D,U,n,B,a),J=$Te(L,$,N,p,D,U,ce,I,M),{snaps:fe,snapsAligned:ue}
vendor: 5,442 bytes, line 190
190=TTe(L,H,D,U,J),ve=-Hi(fe)+Hi(Q),{snapsContained:Se,scrollContainLimit:Ne}=kTe($,ve,ue,C,M),ge=V?Se:ue,{limit:ke}=ATe(ve,ge,p),le=pV(um(ge),m,p),we=le.clone(),he=Nh(n),X=({dragHandler:Ee,scrollBody:tt,scrollBounds:Ye,options:{loop:mr}})=>{mr||Ye.constrain(Ee.pointerDown()),tt.seek()},F=({scrollBody:Ee,translate:tt,location:Ye,offsetLocation:mr,previousLocation:Mn,scrollLooper:pr,slideLooper:dn,dragHandler:si,animation:dd,eventHandler:Ms,scrollBounds:dm,options:{loop:nc}},Rs)=>{const fm=Ee.settled(),hm=!dm.shouldConstrain(),fd=nc?fm:fm&&hm,rc=fd&&!si.pointerDown();rc&&dd.stop();const hd=Ye.get()*Rs+Mn.get()*(1-Rs);mr.set(hd),nc&&(pr.loop(Ee.direction()),dn.loop()),tt.to(mr.get()),rc&&Ms.emit("settle"),fd||Ms.emit("scroll")},xe=xTe(r,a,()=>X(We),Ee=>F(We,Ee)),je=.68,He=ge[le.get()],Qe=$f(He),er=$f(He),hr=$f(He),un=$f(He),q=NTe(Qe,hr,er,un,g,je),te=OTe(p,ge,ve,ke,un),oe=PTe(xe,le,we,q,te,un,l),Ce=ETe(ke),Ae=kh(),ye=ITe(t,n,l,b),{slideRegistry:Te}=_Te(V,C,ge,Ne,J,he),Xe=MTe(e,n,Te,oe,q,Ae,l,T),We={ownerDocument:r,ownerWindow:a,eventHandler:l,containerRect:D,slideRects:U,animation:xe,axis:L,dragHandler:yTe(L,e,r,a,un,vTe(L,a),Qe,xe,oe,q,te,le,l,G,y,w,k,je,_),eventStore:Ae,percentOfView:G,index:le,indexPrevious:we,limit:ke,location:Qe,offsetLocation:hr,previousLocation:er,options:s,resizeHandler:jTe(t,l,a,n,L,A,P),scrollBody:q,scrollBounds:STe(ke,hr,un,q,G),scrollLooper:CTe(ve,ke,hr,[Qe,hr,er,un]),scrollProgress:Ce,scrollSnapList:ge.map(Ce.get),scrollSnaps:ge,scrollTarget:te,scrollTo:oe,slideLooper:RTe(L,$,ve,K,Q,fe,ge,hr,n),slideFocus:Xe,slidesHandler:DTe(t,l,E),slidesInView:ye,slideIndexes:he,slideRegistry:Te,slidesToScroll:J,target:un,translate:xV(L,t)};return We}function FTe(){let e={},t;function n(f){t=f}function r(f){return e[f]||[]}function a(f){return r(f).forEach(m=>m(t,f)),d}function s(f,m){return e[f]=r(f).concat([m]),d}function l(f,m){return e[f]=r(f).filter(p=>p!==m),d}function u(){e={}}const d={init:n,emit:a,off:l,on:s,clear:u};return d}const UTe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function zTe(e){function t(s,l){return mV(s,l||{})}function n(s){const l=s.breakpoints||{},u=Sh(l).filter(d=>e.matchMedia(d).matches).map(d=>l[d]).reduce((d,f)=>t(d,f),{});return t(s,u)}function r(s){return s.map(l=>Sh(l.breakpoints||{})).reduce((l,u)=>l.concat(u),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function VTe(e){let t=[];function n(s,l){return t=l.filter(({options:u})=>e.optionsAtMedia(u).active!==!1),t.forEach(u=>u.init(s,e)),l.reduce((u,d)=>Object.assign(u,{[d.name]:d}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function Xg(e,t,n){const r=e.ownerDocument,a=r.defaultView,s=zTe(a),l=VTe(s),u=kh(),d=FTe(),{mergeOptions:f,optionsAtMedia:m,optionsMediaQueries:p}=s,{on:g,off:y,emit:w}=d,b=L;let N=!1,k,C=f(UTe,Xg.globalOptions),A=f(C),E=[],_,T,M;function P(){const{container:he,slides:X}=A;T=(fj(he)?e.querySelector(he):he)||e.children[0];const xe=fj(X)?T.querySelectorAll(X):X;M=[].slice.call(xe||T.children)}function D(he){const X=BTe(e,T,M,r,a,he,d);if(he.loop&&!X.slideLooper.canLoop()){const F=Object.assign({},he,{loop:!1});return D(F)}return X}function U(he,X){N||(C=f(C,he),A=m(C),E=X||E,P(),k=D(A),p([C,...E.map(({options:F})=>F)]).forEach(F=>u.add(F,"change",L)),A.active&&(k.translate.to(k.location.get()),k.animation.init(),k.slidesInView.init(),k.slideFocus.init(we),k.eventHandler.init(we),k.resizeHandler.init(we),k.slidesHandler.init(we),k.options.loop&&k.slideLooper.loop(),T.offsetParent&&M.length&&k.dragHandler.init(we),_=l.init(we,E)))}function L(he,X){const F=J();$(),U(f({startIndex:F},he),X),d.emit("reInit")}function $(){k.dragHandler.destroy(),k.eventStore.clear(),k.translate.clear(),k.slideLooper.clear(),k.resizeHandler.destroy(),k.slidesHandler.destroy(),k.slidesInView.destroy(),k.animation.destroy(),l.destroy(),u.clear()}function G(){N||(N=!0,u.clear(),$(),d.emit("destroy"),d.clear())}function H(he,X,F){!A.active||N||(k.scrollBody.useBaseFriction().useDuration(X===!0?0:A.duration),k.scrollTo.index(he,F||0))}function V(he){const X=k.index.add(1).get();H(X,he,-1)}function B(he){const X=k.index.add(-1).get();H(X,he,1)}function K(){return k.index.add(1).get()!==J()}function Q(){return k.index.add(-1).get()!==J()}function ce(){return k.scrollSnapList}function I(){return k.scrollProgress.get(k.offsetLocation.get())}function J(){return k.index.get()}function fe(){return k.indexPrevious.get()}function ue(){return k.slidesInView.get()}function ve(){return k.slidesInView.get(!1)}function Se(){return _}function Ne(){return k}function ge(){return e}function ke(){return T}function le(){return M}const we={canScrollNext:K,canScrollPrev:Q,containerNode:ke,internalEngine:Ne,destroy:G,off:y,on:g,emit:w,plugins:Se,previousScrollSnap:fe,reInit:b,rootNode:ge,scrollNext:V,scrollPrev:B,scrollProgress:I,scrollSnapList:ce,scrollTo:H,selectedScrollSnap:J,slideNodes:le,slidesInView:ue,slidesNotInView:ve};return U(t,n),setTimeout(()=>d.emit("init"),0),we}Xg.globalOptions=void 0;function Vk(e={},t=[]){const n=v.useRef(e),r=v.useRef(t),[a,s]=v.useState(),[l,u]=v.useState(),d=v.useCallback(()=>{a&&a.reInit(n.current,r.current)},[a]);return v.useEffect(()=>
190{Bk(n.current,e)||(n.current=e,d())},[e,d]),v.useEffect(()=>{fTe(r.current,t)||(r.current=t,d())},[t,d]),v.useEffect(()=>{if(dTe()&&l){Xg.globalOptions=Vk.globalOptions;const f=Xg(l,n.current,r.current);return s(f),()=>f.destroy()}else s(void 0)},[l,s]),[u,a]}Vk.globalOptions=void 0;const gV=v.createContext(null);function vy(){const e=v.useContext(gV);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const yV=v.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:a,children:s,...l},u)=>{const[d,f]=Vk({...t,axis:e==="horizontal"?"x":"y"},r),[m,p]=v.useState(!1),[g,y]=v.useState(!1),w=v.useCallback(C=>{C&&(p(C.canScrollPrev()),y(C.canScrollNext()))},[]),b=v.useCallback(()=>{f?.scrollPrev()},[f]),N=v.useCallback(()=>{f?.scrollNext()},[f]),k=v.useCallback(C=>{C.key==="ArrowLeft"?(C.preventDefault(),b()):C.key==="ArrowRight"&&(C.preventDefault(),N())},[b,N]);return v.useEffect(()=>{!f||!n||n(f)},[f,n]),v.useEffect(()=>{if(f)return w(f),f.on("reInit",w),f.on("select",w),()=>{f?.off("select",w)}},[f,w]),i.jsx(gV.Provider,{value:{carouselRef:d,api:f,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:b,scrollNext:N,canScrollPrev:m,canScrollNext:g},children:i.jsx("div",{ref:u,onKeyDownCapture:k,className:Je("relative",a),role:"region","aria-roledescription":"carousel",...l,children:s})})});yV.displayName="Carousel";const vV=v.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:a}=vy();return i.jsx("div",{ref:r,className:"overflow-hidden",children:i.jsx("div",{ref:n,className:Je("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});vV.displayName="CarouselContent";const bV=v.forwardRef(({className:e,...t},n)=>{const{orientation:r}=vy();return i.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Je("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});bV.displayName="CarouselItem";const wV=v.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:s,scrollPrev:l,canScrollPrev:u}=vy();return i.jsxs(ee,{ref:a,variant:t,size:n,className:Je("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!u,onClick:l,...r,children:[i.jsx(ii,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Previous slide"})]})});wV.displayName="CarouselPrevious";const jV=v.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:s,scrollNext:l,canScrollNext:u}=vy();return i.jsxs(ee,{ref:a,variant:t,size:n,className:Je("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!u,onClick:l,...r,children:[i.jsx(gt,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Next slide"})]})});jV.displayName="CarouselNext";const D6=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e});function WTe({review:e}){const t=v.useRef(null),[n,r]=v.useState(!1),a=()=>{t.current?.play().catch(()=>{})};return i.jsxs("div",{className:"video-review-card flex flex-col bg-white rounded-[16px] overflow-hidden border border-[#1A1A1A]/5 shadow-[0_15px_40px_rgba(0,0,0,0.08)]",children:[i.jsxs("div",{className:"relative w-full aspect-[9/16] bg-black group",children:[i.jsx("video",{ref:t,src:e.videoUrl,playsInline:!0,preload:"none",controls:!0,className:"w-full h-full object-cover",onPlay:()=>r(!0),"aria-label":`Video review by ${e.reviewerName}`}),i.jsx(cn,{children:!n&&i.jsx(be.div,{initial:{opacity:0}
190,animate:{opacity:1},exit:{opacity:0},className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 transition-colors group-hover:bg-black/50",children:i.jsx("button",{type:"button",onClick:a,"aria-label":`Play video review by ${e.reviewerName}`,className:"pointer-events-auto flex h-[72px] w-[72px] transform items-center justify-center rounded-full bg-primary text-white shadow-lg transition-transform group-hover:scale-105 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-white/80",children:i.jsx(B8,{className:"w-8 h-8 ml-1",fill:"currentColor"})})})})]}),i.jsx("div",{className:"p-8 flex flex-col flex-1",children:i.jsx("div",{className:"mt-auto flex items-center justify-between gap-4",children:i.jsxs("div",{children:[i.jsx("div",{className:"text-[15px] font-black text-[#1A1A1A] uppercase tracking-[0.02em]",children:e.reviewerName}),e.reviewerRole&&i.jsx("div",{className:"text-[13px] font-semibold text-[#666669] mt-0.5",children:e.reviewerRole})]})})})]})}function NV({embedded:e=!1,className:t=""}){const{data:n,isLoading:r,isError:a}=rne();if(r||a||!n||n.length===0)return null;const s=i.jsxs(i.Fragment,{children:[i.jsxs(D6,{className:"max-w-[720px] mx-auto text-center mb-10 md:mb-[64px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"In their own words"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Real leaders. Real transformation."})]}),i.jsxs(yV,{"aria-label":"Video reviews",opts:{align:"start",containScroll:"trimSnaps",slidesToScroll:"auto",duration:12},children:[i.jsx(vV,{className:"ml-0 gap-0 lg:gap-4",children:n.map((l,u)=>i.jsx(bV,{className:"basis-full pl-0 lg:basis-[calc((100%_-_2rem)/3)]",children:i.jsx(D6,{delay:u*.1,className:"h-full",children:i.jsx(WTe,{review:l})})},l.id))}),i.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[i.jsx(wV,{"aria-label":"Previous video reviews",className:"static h-10 w-10 translate-y-0 border-[#1A1A1A]/15 bg-white text-[#1A1A1A] hover:bg-white hover:text-primary"}),i.jsx(jV,{"aria-label":"Next video reviews",className:"static h-10 w-10 translate-y-0 border-[#1A1A1A]/15 bg-white text-[#1A1A1A] hover:bg-white hover:text-primary"})]})]})]});return e?i.jsx("div",{className:`video-reviews-shell ${t}`,children:s}):i.jsx("section",{className:"bg-[#F2F2F3] border-t border-[#1A1A1A]/5",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-5 md:px-10 py-16 md:pt-[100px] md:pb-[104px]",children:s})})}const Mt="/",cx=`${Mt}site/storybrand`,I6="polygon(50% 0%, 55% 4%, 62% 1%, 66% 7%, 74% 5%, 77% 12%, 85% 13%, 86% 21%, 94% 25%, 92% 33%, 100% 38%, 96% 46%, 100% 54%, 96% 62%, 92% 67%, 94% 75%, 86% 79%, 85% 87%, 77% 88%, 74% 95%, 66% 93%, 62% 99%, 55% 96%, 50% 100%, 45% 96%, 38% 99%, 34% 93%, 26% 95%, 23% 88%, 15% 87%, 14% 79%, 6% 75%, 8% 67%, 0% 62%, 4% 54%, 0% 46%, 4% 38%, 8% 33%, 6% 25%, 14% 21%, 15% 13%, 23% 12%, 26% 5%, 34% 7%, 38% 1%, 45% 4%)",dt=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e}),qTe=()=>i.jsxs("div",{role:"img","aria-label":"Trusted by 1,200 plus youth pastors",className:"relative flex size-[152px] items-center justify-center text-white shadow-[0_12px_30px_rgba(0,0,0,0.34)] md:size-[168px]",style:{clipPath:I6,background:"radial-gradient(circle at 32% 24%, #FFE7A0 0%, #D8B13F 36%, #9B6E16 100%)"},children:[i.jsx("div",{className:"absolute inset-[6px] bg-[#d82435]",style:{clipPath:I6}}),i.jsxs("span",{className:"relative flex size-[116px] flex-col items-center justify-center rounded-full border border-[#F5D97D] p-2 text-center leading-none md:size-[130px]",children:[i.jsx("span",{className:"absolute inset-[5px] rounded-full border border-dashed border-[#F5D97D]/75"}),i.jsxs("span",{className:"relative flex items-center gap-1 text-[7px] font-extrabold uppercase tracking-[0.13em] text-[#F5D97D] md:text-[8px]",children:[i.jsx("span",{"aria-hidden":"true",children:"â
"}),"Trusted by",i.jsx("span",{"aria-hidden":"true",children:"â
"})]}),i.jsx(Oie,{className:"relative mt-1 size-7 text-[#F5D97D] md:size-8","aria-hidden":"true"}),i.jsx("span",{className:"relative mt-1 text-[24px] font-black tracking-[-0.05em] text-white md:text-[28px]",children:"1,200+"}),i.jsx("span",{className:"relative mt-0.5 text-[7px] font-extrabold uppercase tracking-[0.13em] text-[#F5D97D] md:text-[8px]",children:"Youth pastors"})]})]});function HTe(){Lo(Io["/"]);const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=z.useState("idle"),a=async s=>{s.preventDefault();const l=new FormData(s.currentTarget),u=String(l.get("email")??"").trim();if(u){r("submitting");try{if(!(await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,formToken:await cm(),source:"home"})})).ok)throw new Error("Subscribe failed");r("success"),Ns("newsletter_signup_success",{source:"home"})}catch{r("error")}}};return i.jsxs("div",{className:"min-h-[100dvh] bg-white font-sans text-[#333333]",children:[i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsxs("section",{className:"relative bg-[#141414]",children:[i.jsx(lr,{desktopSrc:`${Mt}site/home-hero-1440.webp`,desktopSrcSet:`${Mt}site/home-hero-1440.webp 1440w, ${Mt}site/home-hero-1920.webp 1920w`,mobileSrc:`${Mt}site/home-hero-mobile-804.webp`,loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-[#0F0F0F]/75 hidden md:block"}),i.jsx("div",{className:"absolute inset-0 bg-[#0F0F0F]/35 md:hidden"}),i.jsx("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[84px] pb-[96px]",children:i.jsxs(dt,{className:"max-w-[790px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"For youth pastors & leaders in city, suburb & small town"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-white text-balance",children:["Most curriculum plays it safe. ",i.jsx("span",{className:"text-primary",children:"Your students can't afford that."})]}),i.jsx("p",{className:"mt-[24px] text-[19px] leading-[1.58] text-white/75 max-w-[33em] mx-auto text-pretty",children:"Reframe gives you conversation-driven, ready-to-teach series that go straight at what students actually face, like mental health, identity, doubt, and culture, so you show up prepared and they build a faith that holds up in the real world."}),i.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-[16px] mt-[30px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] shadow-[0_12px_30px_rgba(216,36,53,0.3)] transition-transform hover:-translate-y-1 h-auto",asChild:!0,children:i.jsx(Be,{href:"/wld",children:"BUY FEATURED CURRICULUM"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent border-[2px] border-white text-white hover:bg-white hover:text-[#1A1A1A] font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] transition-colors h-auto",asChild:!0,children:i.jsx(Be,{href:"/build-bundle",children:"BUILD YOUR BUNDLE"})})]}),i.jsxs("div",{className:"flex flex-col items-center gap-[12px] mt-[26px]",children:[i.jsx("div",{className:"text-[14px] font-bold text-white/50 uppercase tracking-widest",children:"Not sure where to start?"}),i.jsx(ee,{variant:"link",className:"text-primary hover:text-[#B01E2C] font-extrabold text-[14px] tracking-[0.09em] uppercase h-auto p-0",asChild:!0,children:i.jsxs(Be,{href:"/curriculum-quiz",children:["TAKE THE ",i.jsx(hV,{children:"CURRICULUM QUIZ"})]})})]}),i.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-[18px] gap-y-[10px] mt-[32px] text-[13.5px] font-semibold text-white/60",children:[i.jsx("span",{className:"text-primary tracking-[0.06em]",children:"â
â
â
â
â
"}),i.jsx("span",{children:"4.9 average rating"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-white/30"}),i.jsx("span",{children:"Instant download"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-white/30"}),i.jsx("span",{children:"Built by youth pastors"})]}),i.jsx(dt,{delay:.3,className:"mt-[24px] max-w-[560px] mx-auto text-center",children:i.jsx(Kt,{review:vi[1],variant:"dark",context:"hero",className:"border-t-0 pt-0 [&>div]:justify-center [&_blockquote]:text-white [&_figcaption]:text-white/80"})})]})})]}),i.jsx("div",{className:"bg-primary overflow-hidden py-4",children:i.jsx("div",{className:"flex w-max animate-marquee",children:[1,2].map(s=>i.jsxs("div",{className:"flex items-center gap-[30px] pr-[30px] text-[13px] font-extrabold tracking-[0.15em] uppercase text-white whitespace-nowrap",children:[i.jsx("span",{children:"13 New Series"}),i.jsx("span",{className:"text-white/70",children:"â§"}),i.jsx("span",{children:"Teaching Videos"}),i.jsx("span",{className:"text-white/70",children:"â§"}),i.jsx("span",{children:"Intentional Games"}),i.jsx("span",{className:"text-white/70",children:"â§"}),i.jsx("span",{children:"YouVersion Devotionals"}),i.jsx("span",{className:"text-white/70",children:"â§"}),i.jsx("span",{children:"12-Week Middle School Series"}),i.jsx("span",{className:"text-white/70",children:"â§"}),i.jsx("span",{children:"Leader Training"}),i.jsx("span",{className:"text-white/70",children:"â§"})]},s))})}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs("div",{className:"grid gap-[40px] lg:grid-cols-[minmax(0,1fr)_minmax(360px,0.72fr)] lg:items-start lg:gap-[72px]",children:[i.jsxs(dt,{className:"max-w-[760px]",children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance",children:"Finding curriculum that connects shouldn't be another headache."}),i.jsx("p",{className:"mt-[20px] text-[19px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"You didn't get into youth ministry to spend the night before youth group rewriting a lesson that still won't land."})]}),i.jsx(dt,{delay:.12,className:"w-full max-w-[520px] lg:justify-self-end",children:i.jsx(Kt,{review:Cf[5],variant:"light",context:"editorial"})})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-[14px] mt-[48px]",children:["Generic, dated material that ignores what students actually face","Nothing that touches mental health, identity, or culture head-on","Feeling forced to choose between relevant or biblically faithful","Prepping late every week, wondering if it's even reaching them"].map((s,l)=>i.jsxs(dt,{delay:.1*l,className:"flex gap-4 items-start bg-white border border-[#1A1A1A]/5 rounded-[16px] p-6",children:[i.jsx("span",{className:"flex-none w-6 h-6 rounded-full bg-primary/10 text-primary text-xs font-extrabold flex items-center justify-center mt-0.5",children:"â"}),i.jsx("span",{className:"text-[16.5px] leading-[1.45] font-semibold text-[#1A1A1A]",children:s})]},l))}),i.jsx(dt,{delay:.4,children:i.jsxs("p",{className:"mt-[44px] mx-auto max-w-[860px] text-center text-[21px] leading-[1.5] font-semibold text-[#1A1A1A] text-pretty",children:["Every ",i.jsx(Lf,{delay:.2,children:"student"})," is looking for someone they can ",i.jsx(Tf,{delay:.6,children:"trust"})," and something that's ",i.jsx(Tf,{delay:1,children:"real"}
190),", and no ",i.jsx(Lf,{delay:1.4,children:"leader"})," can choose between ",i.jsx(Tf,{delay:1.8,children:"cultural relevance"})," and ",i.jsx(Tf,{delay:2.2,children:"biblical truth"})," while giving it to them."]})})]})}),i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs(dt,{className:"max-w-[720px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"The difference"}),i.jsxs("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:["Why Reframe is ",i.jsx(Lf,{children:"different"})]}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Everything is built around one idea: get students talking, and let the Gospel do the transforming."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-[56px]",children:[{img:"impact1.png",title:"Relevant & faithful",desc:"Students are stuck between culture and faith. We give them a framework to hold both, with no compromise either way."},{img:"impact2.png",title:"Conversation-first",desc:"Lead a dialogue, not a monologue. Series designed to get students sharing and connecting with God and each other."},{img:"impact3.png",title:"No topic off-limits",desc:"Mental health, identity, sexuality, doubt. If students are talking about it, the church should be too."}].map((s,l)=>i.jsxs(dt,{delay:.1*l,className:"border-t-[3px] border-primary pt-7",children:[i.jsx("div",{className:"w-[96px] h-[96px] rounded-full bg-[#F2F2F3] flex items-center justify-center mb-5",children:i.jsx("img",{src:`${cx}/${s.img}`,alt:"",className:"w-[92px] h-[92px] block"})}),i.jsx("h3",{className:"m-0 text-[22px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:s.title}),i.jsx("p",{className:"mt-[12px] text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:s.desc})]},l))}),i.jsx(dt,{delay:.4,className:"mt-[52px] max-w-[600px] mx-auto",children:i.jsx(Kt,{review:vi[7],variant:"light",context:"proof"})}),i.jsx(dt,{delay:.3,className:"flex justify-center mt-[32px]",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[24px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})})})]})}),i.jsx("section",{className:"bg-[#1A1A1A] text-white overflow-hidden",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px]",children:[i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1.05fr_0.95fr] gap-[48px] items-center",children:[i.jsxs(dt,{children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[20px]",children:"You've got a partner in this"}),i.jsxs("h2",{className:"m-0 text-[clamp(32px,3.3vw,46px)] leading-[1.07] tracking-[-0.03em] font-black text-white text-balance",children:["We know the chaos and the calling of student ministry, because we ",i.jsx(Lf,{children:"live it."})]}),i.jsx("p",{className:"mt-[22px] text-[18px] leading-[1.6] text-white/70 text-pretty",children:"Reframe was built by a licensed counselor and youth pastors who got tired of curriculum that didn't fit real students. Every series is shaped by what teens and leaders actually told us they need."}),i.jsx(dt,{delay:.2,className:"mt-[28px] max-w-[520px]",children:i.jsx(Kt,{review:Cf[3],variant:"dark",context:"editorial"})})]}),i.jsxs(dt,{delay:.15,className:"relative overflow-hidden rounded-[16px]",children:[i.jsx("div",{className:"relative flex w-max animate-marquee",children:[1,2,3].map(s=>i.jsx("div",{className:"flex gap-[18px] pr-[18px]",children:["jeff.jpg","will.jpg","team-3.jpg","jesse.jpg","action.png"].map((l,u)=>i.jsxs("div",{className:"relative w-[210px] h-[270px] rounded-[16px] overflow-hidden shadow-[0_15px_40px_rgba(0,0,0,0.3)] border border-white/10 shrink-0 group",children:[i.jsx("img",{src:`${Mt}site/team/${l}`,alt:"Reframe team member",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A]/80 via-trans
190parent to-transparent opacity-60"})]},u))},s))}),i.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-[60px] bg-gradient-to-r from-[#1A1A1A] to-transparent"}),i.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-[60px] bg-gradient-to-l from-[#1A1A1A] to-transparent"})]})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-[20px] mt-[56px] pb-[104px] items-stretch",children:[i.jsx(dt,{delay:.1,className:"rounded-[16px] border border-white/10 bg-white/[0.04] p-[32px] flex flex-col justify-center",children:i.jsxs("div",{className:"border-l-[3px] border-primary pl-6",children:[i.jsx("p",{className:"m-0 text-[16.5px] leading-[1.6] font-medium text-white text-pretty",children:"We come from urban youth ministry, and we're proud of it. Culture is born in the city and bleeds outward, so curriculum built at the source connects wherever you lead, from the block to the suburbs to the small town."}),i.jsx("p",{className:"mt-[12px] text-[16.5px] leading-[1.6] font-extrabold text-primary",children:"This isn't a smaller market. It's where culture starts."})]})}),i.jsxs(dt,{delay:.2,className:"rounded-[16px] border border-white/10 bg-white/[0.04] p-[32px]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[16px]",children:"We did the research"}),i.jsx("p",{className:"m-0 text-[17px] leading-[1.6] text-white/70 text-pretty",children:"This isn't guesswork. We went straight to the source, surveying students and youth leaders about what's actually happening in their heads, their homes, and their ministries."}),i.jsxs("div",{className:"grid grid-cols-2 gap-[16px] mt-[28px]",children:[i.jsxs("div",{className:"rounded-[16px] bg-[#1A1A1A] border border-white/10 px-[24px] py-[22px] text-center",children:[i.jsx("div",{className:"text-[38px] font-black tracking-[-0.035em] text-white leading-none",children:"424"}),i.jsx("div",{className:"mt-[8px] text-[12px] font-extrabold tracking-[0.13em] uppercase text-white/55",children:"Students surveyed"})]}),i.jsxs("div",{className:"rounded-[16px] bg-[#1A1A1A] border border-white/10 px-[24px] py-[22px] text-center",children:[i.jsx("div",{className:"text-[38px] font-black tracking-[-0.035em] text-white leading-none",children:"128"}),i.jsx("div",{className:"mt-[8px] text-[12px] font-extrabold tracking-[0.13em] uppercase text-white/55",children:"Youth leaders surveyed"})]})]}),i.jsx("div",{className:"mt-[32px]",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[24px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})})})]})]})]})}),i.jsxs("section",{className:"relative overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${Mt}site/social-proof-back-1440.webp`,desktopSrcSet:`${Mt}site/social-proof-back-1440.webp 1440w, ${Mt}site/social-proof-back-1920.webp 1920w`,mobileSrc:`${Mt}site/social-proof-back-mobile-804.webp`}),i.jsxs("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs(dt,{className:"max-w-[720px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"Reviews"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Trusted by youth leaders"})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-[1px] bg-[#1A1A1A]/10 border border-[#1A1A1A]/10 rounded-[16px] overflow-hidden mt-[54px]",children:[{num:"64+",label:"Ready-to-teach series"},{num:"4.9",star:!0,label:"Average leader rating"},{num:"1,000s",label:"Of students reached"}].map((s,l)=>i.jsxs(dt,{delay:.1*l,className:"bg-[#1A1A1A] p-7 text-center",children:[i.jsxs("div",{className:"text-[42px] font-black tracking-[-0.03em] text-white leading-none",children:[s.num,s.star&&i.jsx("span",{className:"text-primary",children:"â
"})]}),i.jsx("div",{className:"mt-2 text-[12.5px] font-bold tracking-[0.13em] uppercase text-white/55",children:s.label})]},l))}),i.jsx(dt,{delay:.3,className:"mt-[48px] max-w-[600px] mx-auto",children:i.jsx(Kt,{review:vi[9],variant:"dark",context:"proof",className:"rounded-[16px] bg-[#1A1A1A] p-[28px] sm:p-[32px] shadow-[0_16px_36px_rgba(26,26,26,0.22)]"})}),i.jsx(NV,{embedded:!0,className:"mt-[64px]"})]})]}),i.jsx("section",{id:"how-it-works",className:"bg-white scroll-mt-24",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(dt,{className:"max-w-[720px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"The plan"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.3vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"How Reframe works"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:'Three steps from "where do I start?" to a room full of students talking about their faith.'})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 mt-[60px]",children:[{t:"Pick your path",d:"Start with WLD Vol. 2, take the Curriculum Quiz, or search the store for the exact topic your group needs."},{t:"Download & prep",d:"Instant access to teaching videos, small-group guides, games, devotionals. Everything's built."},{t:"Lead a dialogue",d:"Spark conversations that matter and build a faith that lasts, no all-nighter required."}].map((s,l)=>i.jsxs(dt,{delay:.1*l,children:[i.jsx("div",{className:"w-[52px] h-[52px] rounded-full bg-primary text-white text-[20px] font-black flex items-center justify-center",children:l+1}),i.jsx("h3",{className:"mt-[22px] text-[23px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:s.t}),i.jsx("p",{className:"mt-[12px] text-[16.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:s.d})]},l))}),i.jsx(dt,{delay:.4,className:"flex justify-center mt-[32px]",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[24px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})})})]})}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(dt,{className:"grid grid-cols-1 lg:grid-cols-[0.95fr_1.05fr] gap-[60
190px] items-center bg-white rounded-[16px] overflow-hidden border border-[#1A1A1A]/5",children:[i.jsx("img",{src:`${cx}/faqbg.jpg`,alt:"Reframe series covers",className:"w-full h-[540px] object-cover block"}),i.jsxs("div",{className:"p-10 lg:p-[56px_56px_56px_0]",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-4",children:"Whole Life Discipleship Vol. 2"}),i.jsx("h2",{className:"m-0 text-[clamp(30px,2.9vw,42px)] leading-[1.08] tracking-[-0.03em] font-black text-[#1A1A1A] text-balance",children:"A full year of conversations that form disciples"}),i.jsx("p",{className:"mt-[18px] text-[17.5px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"13 new series that disciple students across their whole lives: faith, identity, relationships, and purpose. Run it in sequence or mix and match."}),i.jsx("div",{className:"flex flex-col gap-3 mt-[28px]",children:[{t:"13 new series (sequence or mix-and-match)"},{t:"Teaching videos + intentionally-tied games",badge:!0},{t:"YouVersion devotionals & leader/volunteer training",badge:!0},{t:"A 12-week middle-school-specific series",badge:!0}].map((s,l)=>i.jsxs("div",{className:"flex gap-[13px] items-start",children:[i.jsx("span",{className:"flex-none w-5 h-5 rounded-full bg-primary text-white text-[11px] font-black flex items-center justify-center mt-0.5",children:"â"}),i.jsxs("span",{className:"text-[16.5px] leading-[1.45] text-[#1A1A1A] font-semibold flex items-center gap-1.5 flex-wrap",children:[s.t,s.badge&&i.jsx("img",{src:`${cx}/newbadge.png`,alt:"New",className:"h-[13px] w-auto"})]})]},l))}),i.jsx("div",{className:"mt-[28px]",children:i.jsx(Kt,{review:vi[8],variant:"light",context:"proof"})})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-[28px] mt-[28px] items-stretch",children:[i.jsxs(dt,{delay:.1,className:"bg-[#1A1A1A] border border-[#1A1A1A] rounded-[16px] overflow-hidden flex flex-col relative shadow-[0_18px_40px_rgba(26,26,26,0.16)]",children:[i.jsx("div",{className:"absolute top-3.5 left-5 z-10 bg-primary text-white text-[10.5px] font-extrabold tracking-[0.13em] uppercase px-3 py-1.5 rounded-[8px]",children:"Most popular"}),i.jsx("img",{src:`${Mt}site/bundle-tile-800.webp`,srcSet:`${Mt}site/bundle-tile-480.webp 480w, ${Mt}site/bundle-tile-800.webp 800w, ${Mt}site/bundle-tile-1200.webp 1200w`,sizes:"(min-width: 768px) 586px, calc(100vw - 80px)",width:"1176",height:"1470",loading:"lazy",decoding:"async",alt:"",className:"w-full aspect-video md:aspect-auto md:h-[240px] object-cover object-top block"}),i.jsxs("div",{className:"p-[30px_32px_32px] flex flex-col flex-1",children:[i.jsx("div",{className:"text-[12.5px] font-extrabold tracking-[0.13em] uppercase text-white/55",children:"Build a Bundle"}),i.jsx("div",{className:"mt-3.5 text-[46px] font-black tracking-[-0.035em] text-white leading-none",children:"4 · 8 · 12"}),i.jsx("p",{className:"mt-[14px] text-[16.5px] leading-[1.5] text-white/70 flex-1",children:"Pick exactly what your calendar needs."}),i.jsx(ee,{className:"mt-[26px] bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase py-[18px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/build-bundle",children:"Build Your Bundle"})})]})]}),i.jsxs(dt,{delay:.2,className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] overflow-hidden flex flex-col",children:[i.jsx("img",{src:`${Mt}site/wld-v2-tile-800.webp`,srcSet:`${Mt}site/wld-v2-tile-480.webp 480w, ${Mt}site/wld-v2-tile-800.webp 800w, ${Mt}site/wld-v2-tile-1200.webp 1200w`,sizes:"(min-width: 768px) 586px, calc(100vw - 80px)",width:"1200",height:"675",loading:"lazy",decoding:"async",alt:"WLD Vol. 2 curriculum",className:"w-full aspect-video md:aspect-auto md:h-[240px] object-cover object-center block"}),i.jsxs("div",{className:"p-[30px_32px_32px] flex flex-col flex-1",children:[i.jsx("div",{className:"text-[12.5px] font-extrabold tracking-[0.13em] uppercase text-[#666669]",children:"WLD Vol. 2"}),i.jsx("div",{className:"mt-3.5 text-[46px] font-black tracking-[-0.035em] text-[#1A1A1A] leading-none",children:"Full Year"}),i.jsx("p",{className:"mt-[14px] text-[16.5px] leading-[1.5] text-[#5a5a5c] flex-1",children:"The complete year of discipleship."}),i.jsx(ee,{variant:"outline",className:"mt-[26px] border-[1.5px] border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase py-[18px] rounded-[10px] hover:border-[#1A1A1A] hover:bg-transparent",asChild:!0,children:i.jsx(Be,{href:"/wld",children:"Get WLD Vol. 2"})})]})]})]})]})}),i.jsxs("section",{id:"transformation",className:"relative overflow-hidden scroll-mt-24",children:[i.jsx(lr,{desktopSrc:`${Mt}site/transformation-desktop-1440.webp`,desktopSrcSet:`${Mt}site/transformation-desktop-1440.webp 1440w, ${Mt}site/transformation-desktop-1920.webp 1920w`,mobileSrc:`${Mt}site/transformation-mobile-804.webp`}),i.jsxs("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(dt,{className:"max-w-[900px] mx-auto text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-white/80 mb-[18px]",children:"What changes"}),i.jsx("p",{className:"m-0 text-[clamp(24px,2.5vw,34px)] leading-[1.32] tracking-[-0.02em] font-bold text-white text-pretty",children:"Imagine a ministry where tough topics become gospel conversations, students show up ready to talk, and parents can actually follow through at home."})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_auto_1fr] gap-[32px] items-center mt-[60px]",children:[i.jsxs(dt,{delay:.1,className:"bg-white rounded-[16px] p-[38px_36px] shadow-[0_16px_40px_rgba(0,0,0,0.2)]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.15em] uppercase text-[#666669] mb-[14px]",children:"From"}),i.jsx("p",{className:"m-0 text-[18px] leading-[1.55] text-[#5a5a5c] text-pretty",children:"Piecing together lessons that don't land. Devoted, but stretched thin and unsure it's making a lasting difference."})]}),i.jsx(dt,{delay:.2,className:"text-[30px] text-white font-black text-center hidden lg:block",children:"â"}),i.jsxs(dt,{delay:.3,className:"bg-[#1A1A1A] rounded-[16px] p-[38px_36px] shadow-[0_16px_40px_rgba(0,0,0,0.3)]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.15em] uppercase text-primary mb-[14px]",children:"To"}),i.jsx("p",{className:"m-0 text-[18px] leading-[1.55] text-white font-medium text-pretty",children:"A confident, resourced leader guiding students into a real, lasting faith, and raising up the next ones to lead."})]})]}),i.jsx(dt,{delay:.4,className:"mt-[48px] max-w-[600px] mx-auto text-center",children:i.jsx(Kt,{review:Cf[7],variant:"dark",context:"proof",accent:"white",className:"text-center [&>div]:justify-center [&>div>div]:text-white"})})]})]}),i.jsx("section",{id:"whats-at-stake",className:"bg-[#1A1A1A] scroll-mt-24",children:i.jsxs(dt,{className:"max-w-[900px] mx-auto px-10 pt-[88px] pb-[92px] text-center",children:[i.jsx("div",{className:"text-[11.5px] font-extrabold tracking-[0.17em] uppercase text-primary mb-[18px]",children:"The conversation starts here"}),i.jsxs("h2",{className:"m-0 text-[clamp(34px,4.2vw,60px)] leading-[1.02] tracking-[-0.04em] font-black text-white text-balance",children:["The Questions Arenât Going Away. ",i.jsx("span",{className:"text-primary",children:"So Letâs Have the Conversation."})]}),i.jsx("p",{className:"mt-[28px] text-[19px] leading-[1.58] text-white/85 text-pretty",children:"Your students are already wrestling with questions about identity, anxiety, relationships, culture, doubt, and faith. You donât have to have every answer, you just need to be willing to start the conversation."}),i.jsx("p",{className:"mt-[22px] text-[18.5px] leading-[1.58] text-white/70 text-pretty",children:"Imagine your youth ministry being the place in your community where students feel safe to wrestle honestly, encounter biblical truth, and grow deeper in their relationship with Jesus."}),i.jsx("div",{"aria-label":"Real questions lead to honest conversations, biblical truth, and deeper faith",className:"mt-[48px] flex flex-wrap items-center justify-center gap-x-[12px] gap-y-3",children:["Real questions","Honest conversations","Biblical truth","Deeper faith"].map((s,l)=>i.jsxs(z.Fragment,{children:[i.jsx("span",{className:`rounded-full border px-[18px] py-3 text-[13px] font-extrabold tracking-[0.08em] uppercase ${l===3?"border-primary bg-primary text-white":"border-white/30 bg-[#1A1A1A] text-white"}`,children:s}),l<3&&i.jsx("span",{"aria-hidden":"true",className:"text-primary text-[22px] font-black leading-none",children:"â"})]},s))}),i.jsx("div",{className:"mt-[40px] max-w-[560px] mx-auto text-center",children:i.jsx(Kt,{review:Cf[9],variant:"dark",context:"proof",className:"[&>div]:justify-center"})}),i.jsx("div",{className:"flex justify-center mt-[36px]",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[24px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})})})]})}),i.jsx("section",{id:"leadgen",className:"bg-[#F2F2F3]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsx(dt,{className:"max-w-[700px] mx-auto text-center",children:i.jsxs("h2",{className:"m-0 text-[clamp(30px,3vw,44px)] leading-[1.07] tracking-[-0.03em] font-black text-[#1A1A1A]",children:["Not ready to buy? ",i.jsx(Tf,{thick:!0,children:"Start here."})]})}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-[48px]",children:[i.jsxs(dt,{delay:.1,className:"relative rounded-[16px] overflow-hidden bg-primary flex flex-col p-[44px_42px]",children:[i.jsx("div",{className:"absolute inset-0 bg-center bg-cover",style:{backgroundImage:`url(${cx}/quizbg.jpg)`}}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#b4192a]/40 to-[#b4192a]/70"}),i.jsxs("div",{className:"relative flex flex-col flex-1",children:[i.jsx("h3",{className:"m-0 text-[26px] font-extrabold tracking-[-0.02em] text-white",children:"Take the Curriculum Quiz"}),i.jsx("p",{className:"mt-[14px] text-[17px] leading-[1.55] text-white/90 flex-1 text-pretty",children:"Find your best starting point in 60 seconds, matched to your students and calendar."}),i.jsx(ee,{className:"self-start mt-[28px] bg-white text-primary hover:bg-[#1A1A1A] hover:text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-[26px] py-[20px] rounded-[10px] transition-colors",asChild:!0,children:i.jsxs(Be,{href:"/curriculum-quiz",children:["Take the Quiz ",i.jsx(gt,{className:"w-3.5 h-3.5 ml-1.5 translate-y-[1px]"})]})})]})]}),i.jsxs(dt,{delay:.2,className:"bg-white rounded-[16px] border border-[#1A1A1A]/5 p-[44px_42px] flex flex-col",children:[i.jsx("h3",{className:"m-0 text-[26px] font-extrabold tracking-[-0.02em] text-[#1A1A1A]",children:"Truth in the Trenches"}),i.jsx("p",{className:"mt-[14px] text-[17px] leading-[1.55] text-[#5a5a5c] flex-1 text-pretty",children:"Field-tested ideas twice a month, plus the occasional product update. No fluff. Unsubscribe anytime."}),n==="success"?i.jsx("p",{className:"mt-[24px] text-[17px] font-bold text-primary",children:"Thanks. We won't add this address until it has been verified."}):i.jsxs(i.Fragment,{children:[i.jsxs("form",{onSubmit:a,className:"mt-[24px] flex flex-col sm:flex-row gap-[10px]",children:[i.jsx("label",{htmlFor:"home-newsletter-email",className:"sr-only",children:"Email address for the Truth in the Trenches newsletter"}),i.jsx(En,{id:"home-newsletter-email",type:"email",name:"email",placeholder:"[email protected]",className:"flex-1 py-6 px-[18px] text-[16px] rounded-[10px] border-[1.5px] border-[#1A1A1A]/15 focu
190s-visible:ring-0 focus-visible:border-primary shadow-none",required:!0,disabled:n==="submitting"}),i.jsx(ee,{type:"submit",disabled:n==="submitting",className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13px] tracking-[0.09em] uppercase px-[24px] py-[18px] rounded-[10px]",children:n==="submitting"?i.jsx(Xt,{className:"w-4 h-4 animate-spin"}):"Subscribe"})]}),n==="error"&&i.jsx("p",{className:"mt-[10px] text-[14px] font-semibold text-red-600",children:"Something went wrong. Please try again."})]})]})]})]})}),i.jsx("section",{className:"bg-white",children:i.jsx("div",{className:"max-w-[760px] mx-auto px-10 pt-[96px] pb-[100px]",children:i.jsxs(dt,{children:[i.jsx("h2",{className:"m-0 text-[clamp(30px,3vw,44px)] leading-[1.07] tracking-[-0.03em] font-black text-[#1A1A1A] text-center mb-[48px]",children:"Frequently asked questions"}),i.jsx(gy,{type:"single",collapsible:!0,className:"w-full space-y-3",children:[{q:"What's your statement of faith?",a:i.jsxs(i.Fragment,{children:["We hold to historic, orthodox Christian orthodoxy. For a detailed breakdown of our theological positions, please visit our ",i.jsx(Be,{href:"/statement-of-faith",className:"underline font-semibold text-[#1A1A1A]",children:"Statement of Faith"})," page."]})},{q:"What's included in each curriculum?",a:"Every series includes a comprehensive leader guide, small-group discussion guides, a bumper video, teaching videos, games, social media assets, and parent emails."},{q:"Is Reframe tied to a specific denomination?",a:"No. Reframe is used by ministries across multiple denominations. We focus on core biblical truths and leave secondary denominational distinctives to you."},{q:"How do I access resources after purchase?",a:"Immediately upon purchase, you'll receive a secure download link via email containing all your digital assets in organized folders."}].map((s,l)=>i.jsxs(ts,{value:`item-${l}`,className:"bg-[#F2F2F3] border-none rounded-[16px] px-6 py-1",children:[i.jsx(ns,{className:"text-[17px] font-bold text-[#1A1A1A] hover:no-underline text-left",children:s.q}),i.jsx(rs,{className:"text-[16px] leading-[1.55] text-[#5a5a5c] pb-5",children:s.a})]},l))})]})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A]",children:[i.jsx(lr,{desktopSrc:`${Mt}site/cta-bg-1440.webp`,desktopSrcSet:`${Mt}site/cta-bg-768.webp 768w, ${Mt}site/cta-bg-1440.webp 1440w, ${Mt}site/cta-bg-1920.webp 1920w`}),i.jsx("div",{className:"absolute inset-0 bg-[#121212]/70"}),i.jsxs(dt,{className:"relative max-w-[900px] mx-auto px-10 pt-[100px] pb-[104px] text-center",children:[i.jsx("div",{className:"mb-[28px] flex justify-center",children:i.jsx(qTe,{})}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.4vw,50px)] leading-[1.05] tracking-[-0.035em] font-black text-white text-balance",children:"Ready to lead a ministry students don't want to miss?"}),i.jsx("p",{className:"mt-[22px] text-[19px] leading-[1.55] text-white/70 text-pretty",children:"Browse the curriculum, or book a call and we'll help you find the right starting point."}),i.jsxs("div",{className:"flex flex-wrap gap-[14px] justify-center mt-[36px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[27px] py-[21px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/shop",children:"Buy Curriculum"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent text-white border-[1.5px] border-white/50 font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[27px] py-[21px] rounded-[10px] hover:border-white hover:bg-white/10 hover:text-white",asChild:!0,children:i.jsx("a",{href:"https://calendly.com/d/cqcn-dy2-qb3/reframe-discovery-call",target:"_blank",rel:"noopener noreferrer",children:"Book a Discovery Call"})})]}),i.jsx("div",{className:"mt-[36px] max-w-[520px] mx-auto text-left",children:i.jsx(Kt,{review:Cf[1],variant:"dark",context:"hero"})})]})]}),i.jsx(Ur,{})]})}const en="/",gr=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e});function GTe(){Lo(Io["/about"]);const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=v.useState("idle"),a=async s=>{s.preventDefault();const l=new FormData(s.currentTarget),u=String(l.get("email")??"").trim();if(u){r("submitting");try{if(!(await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,formToken:await cm(),source:"about"})})).ok)throw new Error("Subscribe failed");r("success"),Ns("newsletter_signup_success",{source:"about"})}catch{r("error")}}};return i.jsxs("div",{className:"min-h-[100dvh] bg-white font-sans selection:bg-primary/20 pb-[80px]",children:[i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsxs("section",{className:"relative bg-[#1A1A1A] overflow-hidden text-white",children:[i.jsx(lr,{desktopSrc:`${en}site/about-hero-1440.webp`,desktopSrcSet:`${en}site/about-hero-1440.webp 1440w, ${en}site/about-hero-1920.webp 1920w`,mobileSrc:`${en}site/about-hero-mobile-804.webp`,loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-[#0F0F0F]/30"}),i.jsx("div",{className:"relative z-10 max-w-[1240px] mx-auto px-10 pt-[120px] pb-[130px] text-center flex flex-col items-center",children:i.jsxs(gr,{className:"max-w-[1000px]",children:[i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-white text-balance mb-[32px]",children:["We create youth ministry curriculum that ",i.jsx("span",{className:"text-primary",children:"actually connects."})]}),i.jsxs("div",{className:"space-y-4 text-[18px] leading-[1.6] text-white/80 max-w-[42em] mx-auto text-pretty font-medium mb-[44px]",children:[i.jsx("p",{children:"Reframe helps youth leaders spark honest conversations that stick, rooted in Scripture and relevant to real life."}),i.jsx("p",{children:"No lectures. No fluff. Just discipleship that works."})]}),i.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-[16px] mb-[32px]",children:[i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] shadow-[0_12px_30px_rgba(216,36,53,0.3)] transition-transform hover:-translate-y-1 h-auto",asChild:!0,children:i.jsx(Be,{href:"/wld",children:"BUY FEATURED CURRICULUM"})}),i.jsx(ee,{variant:"outline",className:"bg-transparent border-[2px] border-white text-white hover:bg-white hover:text-[#1A1A1A] font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] transition-colors h-auto",asChild:!0,children:i.jsx(Be,{href:"/build-bundle",children:"BUILD YOUR BUNDLE"})})]}),i.jsxs("div",{className:"flex flex-col items-center gap-[12px]",children:[i.jsx("div",{className:"text-[14px] font-bold text-white/50 uppercase tracking-widest",children:"Not sure where to start?"}),i.jsx(ee,{variant:"link",className:"text-primary hover:text-[#B01E2C] font-extrabold text-[14px] tracking-[0.09em] uppercase h-auto p-0",asChild:!0,children:i.jsxs(Be,{href:"/curriculum-quiz",children:["TAKE THE ",i.jsx(hV,{children:"CURRICULUM QUIZ"})]})})]})]})})]}),i.jsx("section",{className:"py-[100px] px-10 bg-white",children:i.jsx("div",{className:"max-w-[1240px] mx-auto",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[64px] items-center",children:[i.jsx(gr,{children:i.jsxs("div",{className:"relative rounded-[16px] overflow-hidden shadow-[0_20px_60px_rgba(0,0,0,0.12)] border border-[#1A1A1A]/10 group",children:[i.jsx("img",{src:`${en}site/cafeteria-960.webp`,srcSet:`${en}site/cafeteria-640.webp 640w, ${en}site/cafeteria-960.webp 960w, ${en}site/cafeteria-1280.webp 1280w`,sizes:"(min-width: 1024px) 588px, calc(100vw - 80px)",width:"1280",height:"960",loading:"lazy",decoding:"async",alt:"Jordan leading an open forum in a classroom full of students",className:"w-full h-auto object-cover group-hover:scale-105 transition-transform duration-700"}),i.jsx("div",{className:"absolute inset-0 bg-[#1A1A1A]/5 mix-blend-overlay"})]})}),i.jsxs(gr,{delay:.1,children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[24px]",children:"It started in cafeterias, not conference rooms."}),i.jsxs("div",{className:"space-y-[20px] text-[16.5px] leading-[1.6] text-[#5a5a5c] font-medium",children:[i.jsx("p",{children:"Before Reframe was curriculum, it was conversation. Jordan Francis began hosting open forums in public schools where students asked real questions about identity, mental health, relationships, and faith."}),i.jsx("p",{children:"The impact was undeniable. So Reframe was born, giving leaders tools to disciple students in ways that are honest, gospel-centered, and grounded in the world students actually live in."})]})]})]})})}),i.jsxs("section",{className:"relative py-[100px] px-10 bg-[#1A1A1A] text-white overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${en}site/performance-bg-1440.webp`,desktopSrcSet:`${en}site/performance-bg-768.webp 768w, ${en}site/performance-bg-1440.webp 1440w`}),i.jsx("div",{className:"absolute inset-0 bg-[#1A1A1A]/75"}),i.jsxs("div",{className:"relative max-w-[1240px] mx-auto",children:[i.jsx(gr,{className:"text-center mb-[64px]",children:i.jsx("h2",{className:"m-0 text-[clamp(32px,4vw,52px)] leading-[1.05] tracking-[-0.03em] font-black text-white max-w-[900px] mx-auto",children:"We're not after performance. We're after formation."})}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-[24px]",children:[{title:"Reframe the mind",desc:"Help students think biblically and critically, not just passively consume content."},{title:"Reframe the heart",desc:"Give students a safe space to wrestle with emotions, doubt, and faith, without shame."},{title:"Reframe the body",desc:"Equip them to live out their faith in school, friendships, families, and beyond."},{title:"Reframe the soul",desc:"Root them in gospel truth. This isn't about behavior management. It's about spiritual formation."}].map((s,l)=>i.jsxs(gr,{delay:l*.1,className:"bg-[#242424] border border-white/10 rounded-[16px] p-[40p
190x] hover:border-primary/50 transition-colors group",children:[i.jsx("h3",{className:"font-black text-[24px] tracking-tight mb-[16px] text-primary group-hover:text-white transition-colors",children:s.title}),i.jsx("p",{className:"text-[16.5px] text-white/70 leading-[1.6] font-medium",children:s.desc})]},l))})]})]}),i.jsx("section",{className:"py-[100px] px-10 bg-[#F2F2F3]",children:i.jsx("div",{className:"max-w-[1240px] mx-auto",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[64px] items-center",children:[i.jsxs(gr,{children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[24px]",children:"Why this matters for Gen Z and Gen Alpha"}),i.jsx("p",{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] font-medium text-pretty",children:"Today's students are overloaded, skeptical, and more connected than ever, but also more isolated. Reframe speaks their language without watering down truth. It's not about being trendy. It's about being real, because if it doesn't feel real, they'll tune out fast."})]}),i.jsx(gr,{delay:.1,children:i.jsx("div",{className:"relative rounded-[16px] overflow-hidden shadow-[0_20px_60px_rgba(0,0,0,0.08)] border border-[#1A1A1A]/5 group",children:i.jsx("img",{src:`${en}site/about-1.png`,alt:"Gen Z and Gen Alpha",className:"w-full h-auto object-cover group-hover:scale-105 transition-transform duration-700"})})})]})})}),i.jsx("section",{className:"py-[100px] px-10 bg-white",children:i.jsx("div",{className:"max-w-[1240px] mx-auto",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[64px] items-center",children:[i.jsx(gr,{className:"order-2 lg:order-1",children:i.jsx("div",{className:"relative rounded-[16px] overflow-hidden shadow-[0_20px_60px_rgba(0,0,0,0.08)] border border-[#1A1A1A]/5 group",children:i.jsx("img",{src:`${en}site/about-2.png`,alt:"Conversation Changes Everything",className:"w-full h-auto object-cover group-hover:scale-105 transition-transform duration-700"})})}),i.jsxs(gr,{delay:.1,className:"order-1 lg:order-2",children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[24px]",children:"Why conversation changes everything"}),i.jsx("p",{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] font-medium text-pretty",children:"Students don't just want to be talked at. They want to be heard. Reframe's content is built around questions, dialogue, and shared discovery. It's not just curriculum, it's a conversation starter. Because when students feel safe to speak, they're more open to listen."})]})]})})}),i.jsx("section",{className:"py-[100px] px-10 bg-[#1A1A1A] text-white",children:i.jsx("div",{className:"max-w-[1240px] mx-auto",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[64px] items-center",children:[i.jsxs(gr,{children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-white mb-[24px]",children:"Meet Jordan Francis"}),i.jsxs("p",{className:"text-[16.5px] leading-[1.6] text-white/80 font-medium mb-[40px]",children:["Jordan is a"," ",i.jsx("a",{href:"https://www.possibilitiescc.com/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-white underline underline-offset-4 transition-colors font-bold",children:"licensed mental health therapist"}),", speaker, and youth pastor. He leads in urban ministries, school campuses, and church basements, and he's the heart behind Reframe."]}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] shadow-[0_12px_30px_rgba(216,36,53,0.3)] transition-transform hover:-translate-y-1 h-auto",asChild:!0,children:i.jsx("a",{href:"https://www.youtube.com/@reframeyouth/",target:"_blank",rel:"noopener noreferrer",children:"LISTEN TO PODCAST"})})]}),i.jsx(gr,{delay:.1,children:i.jsxs("div",{className:"relative rounded-[16px] overflow-hidden shadow-[0_20px_60px_rgba(0,0,0,0.5)] border border-white/10 group",children:[i.jsx("img",{src:`${en}site/jordan-960.webp`,srcSet:`${en}site/jordan-640.webp 640w, ${en}site/jordan-960.webp 960w, ${en}site/jordan-1280.webp 1280w`,sizes:"(min-width: 1024px) 588px, calc(100vw - 80px)",width:"1280",height:"853",loading:"lazy",decoding:"async",alt:"Jordan Francis",className:"w-full h-auto object-cover group-hover:scale-105 transition-transform duration-700"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A]/80 via-trans
190parent to-transparent"})]})})]})})}),i.jsxs("section",{className:"py-[100px] px-10 bg-[#F2F2F3] overflow-hidden",children:[i.jsx("div",{className:"max-w-[1240px] mx-auto text-center mb-[54px]",children:i.jsxs(gr,{children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[24px]",children:"Built by community"}),i.jsx("p",{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] font-medium max-w-[800px] mx-auto",children:"Reframe isn't just Jordan. It's a team of diverse youth leaders, pastors, writers, and creatives who've lived this. Every series is shaped by people who know what it's like to plan for youth group night with no margin and a lot on the line."})]})}),i.jsx("div",{className:"relative flex w-[200%] sm:w-max animate-marquee pb-4",children:[1,2,3].map(s=>i.jsx("div",{className:"flex gap-[24px] pr-[24px]",children:["jeff.jpg","will.jpg","team-3.jpg","jesse.jpg","action.png"].map((l,u)=>i.jsxs("div",{className:"relative w-[280px] h-[360px] rounded-[16px] overflow-hidden shadow-[0_15px_40px_rgba(0,0,0,0.08)] border border-[#1A1A1A]/5 shrink-0 group",children:[i.jsx("img",{src:`${en}site/team/${l}`,alt:"Team member",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A]/80 via-transparent to-transparent opacity-60"})]},u))},s))})]}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsx("div",{className:"max-w-[800px] mx-auto px-10 py-[100px]",children:i.jsxs(gr,{children:[i.jsx("h2",{className:"m-0 text-[clamp(30px,3.5vw,44px)] leading-[1.07] tracking-[-0.03em] font-black text-[#1A1A1A] text-center mb-[48px]",children:"Frequently asked questions"}),i.jsxs(gy,{type:"single",collapsible:!0,className:"w-full space-y-[12px]",children:[i.jsxs(ts,{value:"urban",className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] px-[24px] py-1 shadow-sm",children:[i.jsx(ns,{className:"text-[16.5px] font-black text-[#1A1A1A] hover:no-underline text-left tracking-tight data-[state=open]:text-primary py-5",children:"Is this curriculum only for urban ministries?"}),i.jsx(rs,{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] pb-6 font-medium",children:"No. It works anywhere students are wrestling with faith, culture, and life. We just started in the city."})]}),i.jsxs(ts,{value:"volunteers",className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] px-[24px] py-1 shadow-sm",children:[i.jsx(ns,{className:"text-[16.5px] font-black text-[#1A1A1A] hover:no-underline text-left tracking-tight data-[state=open]:text-primary py-5",children:"Can volunteers or parents use it too?"}),i.jsx(rs,{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] pb-6 font-medium",children:"Yes. The content is clear and flexible enough for youth groups, small groups, or one-on-one conversations."})]}),i.jsxs(ts,{value:"right-series",className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] px-[24px] py-1 shadow-sm",children:[i.jsx(ns,{className:"text-[16.5px] font-black text-[#1A1A1A] hover:no-underline text-left tracking-tight data-[state=open]:text-primary py-5",children:"How do I know which series is right for us?"}),i.jsxs(rs,{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] pb-6 font-medium",children:["Take the quiz. We'll help you figure out what fits your group and goals."," ",i.jsx(Be,{href:"/curriculum-quiz",className:"text-primary hover:text-[#B01E2C] font-bold",children:"TAKE THE QUIZ â"})]})]}),i.jsxs(ts,{value:"whole-curriculum",className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] px-[24px] py-1 shadow-sm",children:[i.jsx(ns,{className:"text-[16.5px] font-black text-[#1A1A1A] hover:no-underline text-left tracking-tight data-[state=open]:text-primary py-5",children:"Do I have to purchase the whole curriculum?"}),i.jsxs(rs,{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] pb-6 font-medium",children:["Nope, you can purchase a bundle of 4, 8, or 12 that meets the needs of your youth."," ",i.jsx(Be,{href:"/build-bundle",className:"text-primary hover:text-[#B01E2C] font-bold",children:"BUILD YOUR BUNDLE â"})]})]}),i.jsxs(ts,{value:"sample",className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] px-[24px] py-1 shadow-sm",children:[i.jsx(ns,{className:"text-[16.5px] font-black text-[#1A1A1A] hover:no-underline text-left tracking-tight data-[state=open]:text-primary py-5",children:"Is there a sample I can check out?"}),i.jsxs(rs,{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] pb-6 font-medium",children:["Of course. While most leaders prefer to dive right in, we'd be happy to provide a sample. Just send an email to"," ",i.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:text-[#B01E2C] font-bold underline underline-offset-4",children:"[email protected]"}),", and we'll send one over."]})]})]})]})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A] py-[100px] px-10 text-center text-white overflow-hidden",children:[i.jsx(lr,{desktopSrc:`${en}site/cta-bg-1440.webp`,desktopSrcSet:`${en}site/cta-bg-768.webp 768w, ${en}site/cta-bg-1440.webp 1440w, ${en}site/cta-bg-1920.webp 1920w`}),i.jsx("div",{className:"absolute inset-0 bg-[#121212]/70"}),i.jsx("div",{className:"relative z-10 max-w-[800px] mx-auto",children:i.jsxs(gr,{children:[i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-white mb-[24px]",children:"Ready to build a bundle that fits your ministry?"}),i.jsx("p",{className:"text-[16.5px] leading-[1.6] text-white/80 font-medium mb-[40px]",children:"Pick 4, 8, or 12 series from the full Reframe library and pay for exactly what you'll teach. No filler, no waste."}),i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14px] tracking-[0.09em] uppercase px-[32px] py-[24px] rounded-[10px] shadow-[0_12px_30px_rgba(216,36,53,0.3)] transition-transform hover:-translate-y-1 h-auto",asChild:!0,children:i.jsx(Be,{href:"/build-bundle",children:"BUILD YOUR BUNDLE"})})]})})]}),i.jsx("section",{className:"py-[100px] px-10 bg-white text-center",children:i.jsx("div",{className:"max-w-[700px] mx-auto",children:i.jsxs(gr,{children:[i.jsx("h2",{className:"m-0 text-[clamp(28px,3vw,40px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A] mb-[16px]",children:"Don't miss fresh resources + updates"}),i.jsx("p",{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] font-medium mb-[32px]",children:"We send 1â2 emails per month with tips, new series drops, and helpful content for youth leaders."}),n==="success"?i.jsx("p",{className:"text-[18px] font-bold text-primary",children:"Thanks. We won't add this address until it has been verified."}):i.jsxs(i.Fragment,{children:[i.jsxs("form",{onSubmit:a,className:"flex flex-col sm:flex-row gap-[12px] max-w-[500px] mx-auto",children:[i.jsx("label",{htmlFor:"about-newsletter-email",className:"sr-only",children:"Email address for Reframe Youth updates"}),i.jsx(En,{id:"about-newsletter-email",type:"email",name:"email",placeholder:"Your email",required:!0,disabled:n==="submitting",className:"flex-1 rounded-[10px] border-[2px] border-[#1A1A1A]/10 px-[20px] py-[28px] text-[15px] font-medium bg-[#F2F2F3] focus-visible:border-primary focus-visible:ring-0 shadow-none h-auto placeholder:text-[#1A1A1A]/40"}),i.jsx(ee,{type:"submit",disabled:n==="submitting",className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14px] tracking-[0.09em] uppercase px-[29px] py-[21px] rounded-[10px] h-auto",children:n==="submitting"?i.jsx(Xt,{className:"w-4 h-4 animate-spin"}):"SIGN UP"})]}),n==="error"&&i.jsx("p",{className:"mt-[14px] text-[14px] font-semibold text-red-600",children:"Something went wrong. Please try again."})]})]})})}),i.jsx(Ur,{})]})}const KTe=["We affirm that the Bible, consisting of sixty-six books in the Old and New Testaments, is the complete and divinely inspired Word of God. Every part was given by God without error in its original form. We also believe in the eternal existence of the Godhead as three distinct persons, Father, Son, and Holy Spirit, who are one God.","We believe that Jesus Christ is fully God and fully man, manifested in the flesh by virgin birth. He lived a sinless life, died for our sins, arose bodily from the dead, ascended into heaven, is preparing a place for us as our High Priest, and is coming again.","We believe that the Holy Spirit is God, a divine, eternal person with intellect, emotions, and will of His own. We believe the Holy Spirit's present ministry is restraining sin in the world by convicting it of sin, righteou
190sness, and judgment. He also, in the present age, baptizes people into the Church, the body of Christ, indwells them permanently, seals them until the day of redemption, and empowers them with spiritual gifts.","We believe that God created man in His own image and likeness. In Adam, all mankind fell into sin with the result that all people are sinners, resulting in spiritual and physical death and all mankind is now sinful by nature and practice, unable to save himself from sin.","Salvation is a free gift from God, offered to humanity through His grace and received solely through faith in Christ, who died for our sins and rose again. It is not dependent on sacraments, good deeds, or human merit, but rests entirely on the redemptive work of Jesus.","We believe that every believer is assured of sanctification in three stages: positional, progressive, and ultimate. We also affirm that all who are born of the Holy Spirit through faith in Christ can rest in the assurance of their salvation, remaining eternally secure in Him.","We believe that all believers, from Pentecost to the return of Jesus Christ, form the body of Christ, the Church that He is building. This body is expressed on earth through local churches, where believers gather for teaching, fellowship, and ministry.","We believe that every believer is called to live a life of righteousness and good works, set apart for God and free from worldliness. This includes maintaining a godly home, resolving conflicts within the church, and avoiding carnality. Believers are also called to embody the fruit of the Spirit, walk in His fullness, and actively fulfill the Great Commission by making disciples of all nations."];function YTe(){const[,e]=et(),{isSignedIn:t}=Vt();return i.jsxs("div",{className:"min-h-screen bg-white font-sans text-[#1A1A1A]",children:[i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsx("section",{className:"bg-[#1A1A1A]",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[90px] pb-[80px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[18px]",children:"What we believe"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-white text-balance",children:["Our Statement ",i.jsx("span",{className:"text-primary",children:"of Faith"})]})]})}),i.jsx("main",{className:"max-w-[820px] mx-auto px-6 lg:px-10 py-[72px]",children:i.jsx("div",{className:"flex flex-col gap-[36px]",children:KTe.map((n,r)=>i.jsxs("div",{className:"flex gap-[20px] items-start",children:[i.jsx("span",{className:"shrink-0 w-[38px] h-[38px] rounded-full bg-primary text-white font-black text-[15px] flex items-center justify-center mt-[2px]",children:r+1}),i.jsx("p",{className:"m-0 text-[17px] leading-[1.7] text-[#2a2a2a]",children:n})]},r))})}),i.jsx(Ur,{})]})}const QTe=[{icon:Fr,label:"Teaching Guides"},{icon:Yl,label:"Small Group Guides"},{icon:Gw,label:"Devotional Content"},{icon:U8,label:"Social Media Graphics & Content"},{icon:hae,label:"Games & Icebreakers"},{icon:M8,label:"Video Teaching"},{icon:$8,label:"Parent Emails"},{icon:gae,label:"Leader Training"},{icon:D8,label:"Parent Engagement Training Resources"}],jn=({children:e,delay:t=0,className:n=""})=>i.jsx(be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:t},className:n,children:e}),XTe=[{num:"01",title:"Essentials",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/ENG-Essentials-FearofGod-SermonSeries-HighDefinitionTitleSlide_1920x1080_0510d4a8-adf5-478f-a0a8-5d236537d377.jpg?v=1769659874",desc:"4 Weeks on christian foundations",weeks:["God","The Bible","Prayer","Spiritual Formation"]},{num:"02",title:"Offline",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Offline-SermonSeries_HighDefinitionTitleSlide_1920x1080_e720c016-b084-45dd-81c8-248ee8980d75.jpg?v=1769659874",desc:"4 weeks on relationships",weeks:["Joy with God","Joy with others","Joy through emotions","Joy through suffering"]},{num:"03",title:"Build Different",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Built-Different---Sermon-Series---HD-Title-Slide.png?v=1767898962",desc:"4 weeks the uniqueness of being Human",weeks:["The Imago Dei","Using your body for good","Taking care of the body God gave us","Rest"]},{num:"04",title:"In Their Shoes",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/InTheirShoes-SermonSeries_Finals-Black_ENGHighDefinitionTitleSlide_
1901920x1080_7c0dcc12-d2aa-466e-bf7a-985a7a0de6dc.jpg?v=1769656284",desc:"4 Weeks on the parables",weeks:["The Good Samaritan","The Prodigal Son","The Sower","The Talents"]},{num:"05",title:"Unplugged",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/UnpluggedFinalsHDTitle.jpg?v=1769656678",desc:"5 weeks on spiritual formation",weeks:["The Impact Of Socials","The Impact Of Family","The Impact Of Friendships","The Impact Of Emotional Awareness"]},{num:"06",title:"Called",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Called-SermonSeries_HighDefinitionTitleSlide_1920x1080_6db4e278-96af-46de-8e36-edca61c178bf.jpg?v=1769657291",desc:"4 weeks on the life of david",weeks:["Anointed, not assumed","Crash course","Know who you are","The Creator over the call"]},{num:"07",title:"Kingdom Grind",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/KingdomGrind-SermonSeriesFinalsHDtitle.jpg?v=1774366641",desc:"4 weeks Entrepreneurship",weeks:["Vision","Integrity","Stewardship","Impact"]},{num:"08",title:"Fundamental",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/FUNdamental-SermonSeries-Finals2-HighDefinitionTitleSlide-_1920x1080_bc831ea9-0251-47a7-abed-97c0fac3feb9.jpg?v=1774367034",desc:"4 weeks on Play",weeks:["God Celebrates With You","Unashamed Joy","Joy is your strength","The Purpose of fun"]},{num:"09",title:"Real talk",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/RealTalk_ENG-2HighDefinitionTitleSlide_1920x1080_b043f6f7-feae-449d-931d-267ac9ae9db3.jpg?v=1774367576",desc:"4 weeks cultural issues",weeks:["Pressure","Loneliness","Addiction","Immigration"]},{num:"10",title:"Ism",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/ISM-SermonSeries-deliverables-1-HighDefinitionTitleSlide_1920x1080_5d212901-ef45-46f4-80bf-f7a13ee313f5.jpg?v=1774367242",desc:"4 weeks on controversial conversations",weeks:["Racism","Sexism","Classism","Unity"]},{num:"11",title:"Unapologetic",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/UNapologetic-GrungeHDTitle.jpg?v=1774367417",desc:"4 weeks on other religions",weeks:["LDS & Jesus","Islam & Jesus","Jehovah's W
190itnesses & Jesus","Hebrew Israelites & Jesus"]},{num:"12",title:"Colossians",img:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/Colossians-SermonSeries-Finals-English-HighDefinitionTitleSlide-_1920x1080_156e766c-d81e-4cab-ab30-1fe21c0a196d.jpg?v=1774366313",desc:"4 weeks on the book of Colossians",weeks:["Colossians 1","Colossians 2","Colossians 3","Colossians 4"]}],ux={title:"We Outside",img:"https://reframeyouth.myshopify.com/cdn/shop/files/We_Outside_-_Sermon_Series_-_Finals_-_High_Definition_Title_Slide_-_1920x1080_6156f7cf-0ad3-49b6-bf4d-6f352061d616_1200x.progressive.jpg?v=1766526538",desc:"12 Week Middle School Specific Series",weeks:["Belonging","Safe to Feel","Play Matters","You're In","Growing Through It","Respect Yourself","More Than Labels","Real Ones","Be Yourself","Hands and Feet","Mind Right","Sent Out"]},L6=[{step:"Conversation Starter",sub:"",icon:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld_icon_1.png?v=1765869345"},{step:"Frame",sub:"the world's way",icon:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld_icon_2.png?v=1765869345"},{step:"Reframe",sub:"God's way",icon:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld_icon_3.png?v=1765869345"},{step:"Reorient",sub:"what this means",icon:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld_icon_4.png?v=1765869345"},{step:"Redirect",sub:"what I'll do",icon:"https://cdn.shopify.com/s/files/1/0693/0028/9820/files/wld_icon_5.png?v=1765869345"}],ZTe=[{q:"Is WLD Volume 2 a one-time purchase or a subscription?",a:i.jsxs(i.Fragment,{children:["WLD v2 is a one-time purchase â not a subscription. Prefer just a few series? You can also ",i.jsx(Be,{href:"/build-bundle",className:"underline font-semibold",children:"build your own bundle"})," of individual series."]})},{q:"What exactly do I receive on release day?",a:"Leader guides, small-group guides, student devotionals, social assets, games, video teaching, parent emails, and leader/parent training resources for all 12 series."},{q:"How long does WLD last?",a:"A full ministry year: 12 series totaling 49 weeks."},{q:"Do I have to teach the series in order?",a:"No. Use the sequence that best fits your calendar and students."},{q:'Will this work outside an "urban" context?',a:"Yes. Topics and methods are relevant across contexts. The design is to meet students where they are, wherever you are."}],uw=[{label:"1-50",price:"$597.00 USD",variantId:"54099064848668"},{label:"51-250",price:"$797.00 USD",variantId:"54099064881436"},{label:"251+",price:"$997.00 USD",variantId:"54099064914204"}];function JTe(){const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=v.useState(uw[0]),[a,s]=v.useState(!1),[l,u]=v.useState(!1),[d,f]=v.useState(null),[m,p]=v.useState("");ud(()=>{s(!1),u(!1)});const[g,y]=v.useState(!1),[w,b]=v.useState(""),[N,k]=v.useState(!1),[C,A]=v.useState(""),[E,_]=v.useState(!1),[T,M]=v.useState(""),P=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,D=H=>{if(!H)return;const V=document.createElement("a");V.href=`/api/newsletter/scope-and-sequence?token=${encodeURIComponent(H)}`,V.download="WLD-Vol-2-Scope-and-Sequence.pdf",document.body.appendChild(V),V.click(),V.remove()},U=async H=>{H.preventDefault();const V=w.trim().toLowerCase();if(!P.test(V)){A("Please enter a valid email address.");return}A(""),k(!0);try{const B=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:V,formToken:await cm(),source:"wld-scope-sequence"})});if(!B.ok)throw new Error("subscribe failed");const K=await B.json().catch(()=>({}));if(K?.shopifySynced==="failed")throw new Error("sync failed");const Q=typeof K?.downloadToken=="string"?K.downloadToken:"";if(!Q)throw new Error("missing download token");M(Q),_(!0),D(Q)}catch{A("Something went wrong. Please try again.")}finally{k(!1)}},L=()=>{b(""),A(""),_(!1),M(""),y(!0)},$=z.useRef(n);$.current=n,v.useEffect(()=>{rV({handle:"whole-life-discipleship-volume-2",title:"Whole Life Discipleship Curriculum Volume 2",variantIndex:Math.max(0,uw.indexOf($.current))})},[]);const G=async()=>{if(!(a||!Du(m))){u(!1),s(!0);try{om({id:"whole-life-discipleship-volume-2",name:"Whole Life Discipleship Curriculum Volume 2",price:parseFloat(n.price.replace(/[^0-9.]/g,""))||void 0});const H=await fetch("/api/shop/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:"whole-life-discipleship-volume-2",tier:n.label,email:m.trim().toLowerCase(),...d?{couponCode:d.code}:{}})});if(!H.ok)throw new Error("checkout failed");const{checkoutUrl:V}=await H.json();window.location.href=V}catch{u(!0),s(!1)}}};return i.jsxs("div",{className:"min-h-screen bg-white text-[#333333] font-sans selection:bg-primary/20",children:[i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsxs("section",{className:"relative bg-[#1A1A1A] overflow-hidden",children:[i.jsx(lr,{desktopSrc:"/site/wld-hero-1440.webp",mobileSrc:"/site/wld-hero-mobile-804.webp",loading:"eager",fetchPriority:"high"}),i.jsx("div",{className:"absolute inset-0 bg-[#0F0F0F]/35"}),i.jsx("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[72px] pb-[88px] flex flex-col items-center text-center",children:i.jsxs(jn,{className:"max-w-[900px]",children:[i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-white text-balance",children:["Tired of your students tuning out? Guide them to a ",i.jsx("span",{className:"text-primary",children:"faith that actually connects"})]}),i.jsxs("p",{className:"mt-[32px] text-[19px] leading-[1.6] text-white/80 max-w-[42em] mx-auto text-pretty font-medium",children:[i.jsx("strong",{className:"text-white font-bold",children:"Whole Life Discipleship Volume 2"})," is here to help you form students who are more than just biblically literate. This isn't another curriculum. It's a complete framework for building biblically rooted, emotionally resilient, and intellectually robust leaders who can engage their world
190with courage and compassion."]}),i.jsx("div",{className:"flex flex-col items-center gap-[24px] mt-[44px]",children:i.jsxs(ee,{onClick:L,className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[26px] py-[21px] rounded-[10px] shadow-[0_12px_30px_rgba(216,36,53,0.3)] transition-all hover:-translate-y-1",children:["Grab the Scope & Sequence ",i.jsx(gt,{className:"ml-2 w-5 h-5"})]})}),i.jsx(Kt,{review:vi[4],variant:"dark",context:"hero",className:"mt-[40px] max-w-[560px] mx-auto text-center border-t-0 pt-0 [&>div]:justify-center [&_blockquote]:text-white [&_figcaption]:text-white/80"})]})})]}),i.jsx("section",{className:"bg-white relative z-10 -mt-8",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10",children:[i.jsxs(jn,{className:"py-10 lg:py-[64px]",children:[i.jsx("h2",{className:"max-w-[900px] mx-auto mb-[44px] text-center text-[34px] lg:text-[42px] font-black text-[#1A1A1A] leading-[1.05] tracking-tight",children:"Whole Life Discipleship Curriculum Volume 2"}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1fr] gap-[60px] items-center",children:[i.jsx("div",{children:i.jsx("img",{src:"https://reframeyouth.myshopify.com/cdn/shop/files/whole-life-discipleship-curriculum-volume-2-9175587.png?v=1762044713&width=1200",alt:"Whole Life Discipleship Volume 2 Bundle",className:"w-full h-auto rounded-[16px]"})}),i.jsxs("div",{className:"flex flex-col",children:[i.jsxs("div",{className:"mt-[36px]",children:[i.jsx("div",{id:"wld-group-size-heading",className:"text-[12px] font-extrabold uppercase tracking-[0.15em] text-[#1A1A1A] mb-[12px]",children:"Please Select Youth Group Size:"}),i.jsx("div",{role:"group","aria-labelledby":"wld-group-size-heading",className:"flex flex-wrap gap-[12px]",children:uw.map(H=>i.jsx("button",{type:"button","aria-pressed":n.label===H.label,onClick:()=>r(H),className:`px-[24px] py-[16px] rounded-[10px] border-[2px] font-extrabold text-[14px] tracking-[0.05em] transition-colors ${n.label===H.label?"border-primary text-primary bg-primary/5":"border-[#1A1A1A]/20 text-[#1A1A1A] hover:border-[#1A1A1A]/50"}`,children:H.label},H.label))})]}),i.jsxs("div",{className:"mt-[32px] pt-[32px] border-t border-[#1A1A1A]/10 flex flex-col gap-[20px]",children:[i.jsx("div",{children:i.jsx("div",{className:"text-[36px] font-black text-primary leading-none tracking-tight",children:n.price})}),i.jsxs("div",{className:"flex flex-col gap-[12px] mt-2",children:[i.jsx(sm,{handle:"whole-life-discipleship-volume-2",tier:n.label,applied:d,onApplied:f}),i.jsx(Dk,{value:m,onChange:p,disabled:a}),i.jsx(ee,{className:"w-full bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14px] tracking-[0.09em] uppercase py-[21px] rounded-[10px]",disabled:a||!Du(m),onClick:G,children:a?i.jsxs(i.Fragment,{children:["Heading to Checkout ",i.jsx(Xt,{className:"w-4 h-4 ml-1.5 animate-spin"})]}):i.jsxs(i.Fragment,{children:["Buy Now ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]})}),l&&i.jsx("p",{className:"m-0 text-[13px] font-semibold text-primary text-center",children:"Something went wrong, please try again."})]}),i.jsx(iV,{className:"mt-[2px]"})]})]})]})]}),i.jsx(jn,{className:"mt-[28px] max-w-[600px] mx-auto text-center",children:i.jsx(Kt,{review:vi[2],variant:"light",context:"reassurance",className:"text-center [&>div]:justify-center"})})]})}),i.jsx("section",{className:"bg-[#F2F2F3] mt-20",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[110px]",children:[i.jsxs(jn,{className:"text-center mb-[64px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[16px]",children:"The Sequence"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,4vw,52px)] leading-[1.05] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Welcome to WLD Volume 2"}),i.jsx("p",{className:"mt-[20px] text-[18px] leading-[1.55] text-[#5a5a5c] max-w-[600px] mx-auto font-medium",children:"12 series designed to systematically build your students into whole-life disciples. Walk through it in order, or drop in exactly what you need."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-[24px]",children:XTe.map((H,V)=>i.jsxs(jn,{delay:V*.05,className:"group flex flex-col bg-white rounded-[16px] border border-[#1A1A1A]/5 overflow-hidden hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-shadow",children:[i.jsxs("div",{className:"aspect-video md:aspect-[4/3] bg-[#1A1A1A] p-[24px] relative flex flex-col justify-between overflow-hidden",children:[i.jsx("img",{src:H.img,alt:`${H.title} series artwork`,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1A1A]/90 via-[#1A1A1A]/20 to-transparent"}),i.jsxs("div",{className:"relative z-10 text-[12px] font-black tracking-[0.15em] text-white bg-primary inline-flex self-start px-2 py-1 rounded-[8px] uppercase",children:["Series ",H.num]}
190),i.jsx("h3",{className:"relative z-10 text-[26px] font-black tracking-tight text-white leading-[1.05] mt-auto drop-shadow-[0_2px_8px_rgba(0,0,0,0.7)]",children:H.title})]}),i.jsxs("div",{className:"p-[24px] flex flex-col flex-1",children:[i.jsx("div",{className:"text-[13px] font-bold uppercase tracking-[0.1em] text-[#666669] mb-[16px] border-b border-[#1A1A1A]/10 pb-4",children:H.desc}),i.jsx("ul",{className:"flex flex-col gap-[10px] mt-2",children:H.weeks.map((B,K)=>i.jsxs("li",{className:"flex gap-[12px] items-start",children:[i.jsxs("span",{className:"text-[11px] font-black text-primary mt-1 opacity-70 w-[50px] shrink-0 uppercase tracking-widest",children:["Wk ",K+1]}),i.jsx("span",{className:"text-[14.5px] font-semibold text-[#1A1A1A] leading-[1.3]",children:B})]},K))})]})]},H.num))})]})}),i.jsx("section",{className:"bg-primary",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-[56px] items-center",children:[i.jsxs(jn,{children:[i.jsxs("div",{className:"inline-flex items-center gap-2 mb-[20px]",children:[i.jsx("span",{className:"text-[12px] font-black tracking-[0.18em] text-primary bg-white px-3 py-1.5 rounded-[8px] uppercase",children:"Beta"}),i.jsx("span",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-white/80",children:"Middle school specific"})]}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-white",children:ux.title}),i.jsx("p",{className:"mt-[16px] text-[15px] font-bold uppercase tracking-[0.1em] text-white/70",children:ux.desc}),i.jsx("p",{className:"mt-[20px] text-[18px] leading-[1.6] text-white/90 text-pretty",children:"Middle schoolers aren't just small high schoolers, so Volume 2 includes a 12-week series built specifically for them. We Outside is currently in beta: you get the full series with your purchase, and we're actively refining it with feedback from real youth groups as they run it."}),i.jsx("ul",{className:"mt-[28px] grid grid-cols-2 gap-x-[24px] gap-y-[10px] list-none m-0 p-0",children:ux.weeks.map((H,V)=>i.jsxs("li",{className:"flex gap-[10px] items-start",children:[i.jsxs("span",{className:"text-[11px] font-black text-white/60 mt-1 w-[42px] shrink-0 uppercase tracking-widest",children:["Wk ",V+1]}),i.jsx("span",{className:"text-[14.5px] font-semibold text-white leading-[1.3]",children:H})]},V))})]}),i.jsx(jn,{delay:.15,children:i.jsx("img",{src:ux.img,alt:"We Outside series artwork",loading:"lazy",className:"w-full h-auto rounded-[16px] shadow-[0_20px_50px_rgba(0,0,0,0.35)]"})})]})})}),i.jsxs("section",{className:"bg-[#1A1A1A] relative overflow-hidden",children:[i.jsx("div",{className:"absolute -top-[120px] -right-[120px] w-[420px] h-[420px] rounded-full bg-primary/15 blur-[100px] pointer-events-none"}),i.jsx("div",{className:"absolute -bottom-[140px] -left-[140px] w-[420px] h-[420px] rounded-full bg-primary/10 blur-[100px] pointer-events-none"}),i.jsxs("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[96px] pb-[100px]",children:[i.jsxs(jn,{className:"max-w-[720px] mx-auto text-center mb-[60px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[16px]",children:"Everything you need"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-white",children:"What's Included in WLD Volume 2"}),i.jsx("p",{className:"mt-[18px] text-[18px] leading-[1.55] text-white/70",children:"Every series ships complete, so no piecing things together the night before."})]}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-[18px]",children:QTe.map((H,V)=>i.jsxs(jn,{delay:.05*V,className:"group bg-white/5 border border-white/10 rounded-[16px] p-[28px] flex items-center gap-[18px] hover:bg-primary hover:border-primary transition-colors duration-300",children:[i.jsx("div",{className:"w-[52px] h-[52px] shrink-0 rounded-[12px] bg-primary/15 text-primary group-hover:bg-white/15 group-hover:text-white flex items-center justify-center transition-colors duration-300",children:i.jsx(H.icon,{className:"w-6 h-6"})}),i.jsxs("div",{children:[i.jsx("div",{className:"text-[11px] font-black tracking-[0.15em] uppercase text-white/60 group-hover:text-white/70 transition-colors duration-300",children:String(V+1).padStart(2,"0")}),i.jsx("div",{className:"text-[17px] font-extrabold text-white leading-[1.25]",children:H.label})]})]},V))}),i.jsx(jn,{className:"mt-[56px] max-w-[600px] mx-auto",children:i.jsx(Kt,{review:vi[0],variant:"dark",context:"proof"})})]})]}),i.jsx("section",{className:"bg-white",children:i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 pt-[100px] pb-[104px]",children:[i.jsxs(jn,{className:"max-w-[720px] mx-auto text-center mb-[64px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[16px]",children:"The Framework"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"How it works"}),i.jsx("p",{className:"mt-[18px] text-[18.5px] leading-[1.55] text-[#5a5a5c] text-pretty font-medium",children:"Every lesson prioritizes conversation over lecture, moving students from cultural assumptions to biblical truth in five intentional steps."})]}),i.jsxs("div",{className:"flex flex-col lg:flex-row items-stretch justify-center gap-[24px] lg:gap-0 mt-8 relative",children:[i.jsx("div",{className:"hidden lg:block absolute top-[50px] left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-[#1A1A1A]/10 to-transparent"}),L6.map((H,V)=>i.jsxs(jn,{delay:V*.1,className:"flex-1 flex flex-row lg:flex-col items-center gap-[20px] lg:gap-[32px] relative z-10 group",children:[i.jsx("div",{className:"w-[100px] h-[100px] rounded-full bg-white border-4 border-[#F2F2F3] shadow-[0_10px_20px_rgba(0,0,0,0.05)] flex items-center justify-center p-5 shrink-0 group-hover:border-primary transition-colors",children:i.jsx("img",{src:H.icon,alt:H.step,className:"w-full h-full object-contain"})}),i.jsxs("div",{className:"text-left lg:text-center",children:[i.jsx("div",{className:"text-[18px] font-black uppercase text-[#1A1A1A] tracking-tight",children:H.step}),H.sub&&i.jsx("div",{className:"text-[14px] font-bold text-[#666669] uppercase tracking-widest mt-1",children:H.sub})]}),V<L6.length-1&&i.jsx("div",{className:"hidden lg:flex absolute top-[50px] -right-[12px] w-[24px] h-[24px] items-center justify-center translate-y-[-50%] bg-white rounded-full z-20 text-primary/40 font-bold",children:i.jsx(gt,{className:"w-5 h-5"})})]},H.step))]}),i.jsx(jn,{className:"mt-[64px] max-w-[600px] mx-auto",children:i.jsx(Kt,{review:vi[5],variant:"light",context:"workflow"})})]})}),i.jsxs("section",{className:"relative bg-[#1A1A1A] text-white",children:[i.jsx("div",{className:"absolute inset-0 bg-center bg-cover bg-no-repeat opacity-30 mix-blend-overlay",style:{backgroundImage:"url(https://reframeyouth.myshopify.com/cdn/shop/files/header-hero-4-min.png?v=1765893271&width=2000)"}}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#1a1a1a]/95 via-[#1a1a1a]/80 to-transparent"}),i.jsxs("div",{className:"relative max-w-[1240px] mx-auto px-10 pt-[110px] pb-[120px] grid grid-cols-1 lg:grid-cols-[1.1fr_0.9fr] gap-[64px] items-center",children:[i.jsxs(jn,{children:[i.jsx("h2",{className:"m-0 text-[clamp(36px,4vw,56px)] leading-[1.02] tracking-[-0.03em] font-black text-white text-balance",children:"Built for every context"}),i.jsx("p",{className:"mt-[28px] text-[19px] leading-[1.6] text-white/80 text-pretty font-medium border-l-[3px] border-primary pl-6",children:"Whether your ministry is urban, suburban, or rural, WLD is designed around the real conversations Gen Z/Alpha are having, and equips you to guide them with courage and compassion."}),i.jsx("div",{className:"mt-[44px]",children:i.jsx(ee,{onClick:L,className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13.5px] tracking-[0.09em] uppercase px-[24px] py-[21px] rounded-[10px] shadow-lg",children:"Grab the Scope & Sequence"})}),i.jsx(Kt,{review:vi[6],variant:"dark",context:"editorial",className:"mt-[36px]"})]}),i.jsxs(jn,{delay:.2,className:"relative",children:[i.jsx("div",{className:"absolute -inset-4 bg-primary/20 blur-[40px] rounded-full"}),i.jsx("img",{src:"https://reframeyouth.myshopify.com/cdn/shop/files/Frame_777.png?v=1765555970&width=1200",alt:"WLD Curriculum",className:"relative w-full h-auto rounded-[16px] shadow-[0_20px_50px_rgba(0,0,0,0.5)] rotate-2 hover:rotate-0 transition-transform duration-500"})]})]})]}),i.jsxs("section",{className:"bg-white overflow-hidden py-[100px] relative",children:[i.jsx("div",{className:"absolute inset-0 bg-center bg-cover bg-no-repeat opacity-5 pointer-events-none",style:{backgroundImage:"url(https://reframeyouth.myshopify.com/cdn/shop/files/social-proof-overlay.png?v=1765425158&width=2000)"}}),i.jsxs("div",{className:"max-w-[1240px] mx-auto px-10 relative z-10",children:[i.jsxs(jn,{className:"text-center mb-[54px]",children:[i.jsx("div",{className:"text-[12px] font-extrabold tracking-[0.18em] uppercase text-primary mb-[16px]",children:"Social Proof"}),i.jsx("h2",{className:"m-0 text-[clamp(32px,3.8vw,48px)] leading-[1.06] tracking-[-0.03em] font-black text-[#1A1A1A]",children:"Trusted by Youth Leaders"})]}),i.jsx(jn,{className:"max-w-[600px] mx-auto mb-[56px]",children:i.jsx(Kt,{review:vi[7],variant:"light",context:"proof"})}),i.jsx(NV,{embedded:!0,className:"mt-[8px]"})]})]}),i.jsx("section",{className:"bg-[#F2F2F3]",children:i.jsx("div",{className:"max-w-[760px] mx-auto px-10 pt-[96px] pb-[100px]",children:i.jsxs(jn,{children:[i.jsx("h2",{className:"m-0 text-[clamp(30px,3.5vw,44px)] leading-[1.07] tracking-[-0.03em] font-black text-[#1A1A1A] text-center mb-[48px]",children:"Frequently asked questions"}),i.jsx(gy,{type:"single",collapsible:!0,className:"w-full space-y-3",children:ZTe.map((H,V)=>i.jsxs(ts,{value:`item-${V}`,className:"bg-white border border-[#1A1A1A]/5 rounded-[16px] px-[24px] py-1 shadow-sm",children:[i.jsx(ns,{className:"text-[16.5px] font-black text-[#1A1A1A] hover:no-underline text-left uppercase tracking-tight data-[state=open]:text-primary py-5",children:H.q}),i.jsx(rs,{className:"text-[16.5px] leading-[1.6] text-[#5a5a5c] pb-6 font-medium",children:H.a})]},V))}),i.jsx(Kt,{review:vi[8],variant:"light",context:"reassurance",className:"mt-[40px]"})]})})}),i.jsxs("section",{className:"relative bg-[#1A1A1A]",children:[i.jsx(lr,{desktopSrc:"/site/cta-bg-1440.webp",desktopSrcSet:"/site/cta-bg-768.webp 768w, /site/cta-bg-1440.webp 1440w, /site/cta-bg-1920.webp 1920w"}),i.jsx("div",{className:"absolute inset-0 bg-[#121212]/70"}),i.jsxs(jn,{className:"relative max-w-[900px] mx-auto px-10 pt-[120px] pb-[130px] text-center",children:[i.jsx("h2",{className:"m-0 text-[clamp(36px,4vw,56px)] leading-[1.02] tracking-[-0.035em] font-black text-white text-balance",children:"Ready to see how we can shake things up together?"}),i.jsx("p",{className:"mt-[24px] text-[19px] leading-[1.55] text-white/80 text-pretty font-medium max-w-[34em] mx-auto",children:"Book a discovery call and join a community that believes cultural relevance and biblical fidelity go hand in hand. Let's empower the next generation together."}),i.jsx(Kt,{review:vi[9],variant:"dark",context:"hero",className:"mt-[36px] max-w-[540px] mx-auto text-left"}),i.jsx("div",{className:"flex justify-center mt-[44px]",children:i.jsx(ee,{className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[14.5px] tracking-[0.09em] uppercase px-[27px] py-[24px] rounded-[10px] shadow-lg transition-transform hover:-translate-y-1",asChild:!0,children:i.jsx("a",{href:"https://calendly.com/d/cqcn-dy2-qb3/reframe-discovery-call",target:"_blank",rel:"noopener noreferrer",children:"Book a Discovery Call"})})})]})]}),i.jsx(rm,{open:g,onOpenChange:y,children:i.jsx(sd,{className:"max-w-[440px] rounded-[16px]",children:E?i.jsxs(i.Fragment,{children:[i.jsxs(Bl,{children:[i.jsx(Fl,{className:"text-[22px] font-black uppercase tracking-[-0.01em]",children:"Your download is on its way"}),i.jsx(Ul,{className:"text-[15px] leading-[1.6] pt-1",children:"The Scope & Sequence should be downloading now. If it didn't start, use the button below."})]}),i.jsx(ee,{onClick:()=>D(T),className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13px] tracking-[0.08em] uppercase py-[20px] rounded-[10px] w-full",children:"Download Again"})]}):i.jsxs(i.Fragment,{children:[i.jsxs(Bl,{children:[i.jsx(Fl,{className:"text-[22px] font-black uppercase tracking-[-0.01em]",children:"Grab the Scope & Sequence"}),i.jsx(Ul,{className:"text-[15px] leading-[1.6] pt-1",children:"Enter your email and we'll start your download right away."})]}),i.jsxs("form",{onSubmit:U,className:"flex flex-col gap-3",children:[i.jsx("label",{htmlFor:"scope-sequence-email",className:"sr-only",children:"Email address for the Scope and Sequence download"}),i.jsx(En,{id:"scope-sequence-email",type:"email",required:!0,autoFocus:!0,placeholder:"[email protected]",value:w,onChange:H=>b(H.target.value),className:"h-[48px] text-[15px] rounded-[10px]"}),C&&i.jsx("p",{className:"text-primary text-[13.5px] font-semibold m-0",children:C}),i.jsx(ee,{type:"submit",disabled:N,className:"bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[13px] tracking-[0.08em] uppercase py-[20px] rounded-[10px] w-full",children:N?i.jsx(Xt,{className:"w-4 h-4 animate-spin"}):i.jsxs(i.Fragment,{children:["Get the Free Download ",i.jsx(gt,{className:"ml-2 w-4 h-4"})]})}),i.jsx("p",{className:"text-[12.5px] text-[#666] m-0 text-center",children:"We'll also send you youth ministry resources. Unsubscribe anytime."})]})]})})}),i.jsx(Ur,{})]})}const e4e="/".replace(/\/$/,"")??"";function mj(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}const $6=12;function t4e(){const[,e]=et(),{isSignedIn:t}=Vt(),[n,r]=v.useState([]),[a,s]=v.useState(!0),[l,u]=v.useState(!1),[d,f]=v.useState($6);v.useEffect(()=>{document.title="Truth in the Trenches: The Reframe Youth Blog";async function g(){try{const y=await fetch(`${e4e}/api/blog/posts`);if(!y.ok)throw new Error("failed");const w=await y.json();r(w.posts??[])}catch{u(!0)}finally{s(!1)}}g()},[]);const m=n[0],p=n.slice(1,1+d);return i.jsxs("div",{className:"min-h-[100dvh] bg-white font-sans selection:bg-primary/20",children:[i.jsx(Cr,{isSignedIn:!!t,setLocation:e}),i.jsx("section",{className:"bg-[#1A1A1A] text-white",children:i.jsx("div",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 pt-[72px] pb-[64px] text-center",children:i.jsxs(be.div,{initial:{opacity:0,y:20}
190,animate:{opacity:1,y:0},transition:{duration:.5},children:[i.jsx("p",{className:"text-[12px] font-bold uppercase tracking-[0.2em] text-primary mb-4",children:"The Reframe Youth Blog"}),i.jsxs("h1",{className:"m-0 text-[clamp(40px,5vw,72px)] leading-[0.98] tracking-[-0.03em] font-black text-balance",children:["Truth in the ",i.jsx("span",{className:"text-primary",children:"Trenches"})]}),i.jsx("p",{className:"mt-5 text-[16px] text-white/60 max-w-[52ch] mx-auto leading-relaxed",children:"Practical, biblically grounded help for the real trenches of youth ministry, discipleship, culture, leadership, and everything in between."})]})})}),i.jsxs("main",{className:"max-w-[1240px] mx-auto px-6 lg:px-10 py-[56px]",children:[a&&i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:Array.from({length:6}).map((g,y)=>i.jsxs("div",{className:"animate-pulse",children:[i.jsx("div",{className:"aspect-[16/10] rounded-xl bg-slate-100"}),i.jsx("div",{className:"h-4 bg-slate-100 rounded mt-4 w-3/4"}),i.jsx("div",{className:"h-3 bg-slate-100 rounded mt-2 w-1/2"})]},y))}),l&&!a&&i.jsxs("div",{className:"text-center py-24",children:[i.jsx("p",{className:"text-lg font-bold text-[#1A1A1A]",children:"We couldn't load the blog right now."}),i.jsx("p",{className:"text-[#333333] mt-2",children:"Please refresh the page or try again in a moment."})]}),!a&&!l&&m&&i.jsxs(i.Fragment,{children:[i.jsxs(Be,{href:`/blog/${m.handle}`,className:"group grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center mb-16 rounded-2xl",children:[i.jsx("div",{className:"relative aspect-[16/10] rounded-2xl overflow-hidden shadow-xl",children:m.image&&i.jsx("img",{src:m.image,alt:m.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),i.jsxs("div",{children:[i.jsx("p",{className:"text-[11.5px] font-bold uppercase tracking-[0.18em] text-primary mb-3",children:"Latest Post"}),i.jsx("h2",{className:"text-[clamp(26px,3vw,38px)] font-black text-[#1A1A1A] leading-[1.05] group-hover:text-primary transition-colors",children:m.title}),m.excerpt&&i.jsx("p",{className:"mt-4 text-[15.5px] text-[#333333] leading-relaxed line-clamp-3",children:m.excerpt}),i.jsxs("p",{className:"mt-4 text-[13.5px] text-[#333333]/60 font-medium",children:[m.author&&i.jsxs(i.Fragment,{children:["By ",m.author," · "]}),mj(m.publishedAt)]}),i.jsxs("span",{className:"mt-5 inline-flex items-center gap-2 text-primary font-bold text-[14.5px] group-hover:gap-3.5 transition-all",children:["Read the post ",i.jsx(gt,{className:"w-4 h-4"})]})]})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-12",children:p.map((g,y)=>i.jsx(be.div,{initial:{opacity:0,y:18},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.4,delay:y%3*.06},children:i.jsxs(Be,{href:`/blog/${g.handle}`,className:"group block",children:[i.jsx("div",{className:"relative aspect-[16/10] rounded-xl overflow-hidden bg-slate-100 shadow-md",children:g.image&&i.jsx("img",{src:g.image,alt:g.title,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),i.jsx("h3",{className:"mt-4 text-[18px] font-black text-[#1A1A1A] leading-snug group-hover:text-primary transition-colors",children:g.title}),g.excerpt&&i.jsx("p",{className:"mt-2 text-[14px] text-[#333333] leading-relaxed line-clamp-2",children:g.excerpt}),i.jsxs("p",{className:"mt-2.5 text-[12.5px] text-[#333333]/60 font-medium",children:[g.author&&i.jsxs(i.Fragment,{children:["By ",g.author," · "]}),mj(g.publishedAt)]})]})},g.handle))}),1+d<n.length&&i.jsx("div",{className:"text-center mt-14",children:i.jsx(ee,{variant:"outline",className:"border-[#1A1A1A]/20 text-[#1A1A1A] font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-8 py-[22px] rounded-[10px] hover:border-primary hover:text-primary",onClick:()=>f(g=>g+$6),children:"Load More Posts"})})]})]}),i.jsx(Ur,{})]})}const dw="/".replace(/\/$/,"")??"";function n4e({params:e}){const[,t]=et(),{isSignedIn:n}=Vt(),[r,a]=v.useState(null),[s,l]=v.useState(!0),[u,d]=v.useState(!1),f=v.useMemo(()=>sV(r?.contentHtml??""),[r?.contentHtml]),m=r?{"@context":"https://schema.org","@type":"BlogPosting",headline:r.title,url:`${window.location.origin}${dw}/blog/${r.handle}`,...r.image?{image:r.image}:{},...r.author?{author:{"@type":"Person",name:r.author}}:{},publisher:{"@type":"Organization","@id":`${window.location.origin}${dw}/#organization`,name:"Reframe Youth"},datePublished:r.publishedAt,...r.sourceUpdatedAt?{dateModified:r.sourceUpdatedAt}:{}}:null;return aV("blog-posting",m),v.useEffect(()=>{let p=!1;l(!0),d(!1),a(null),window.scrollTo(0,0);async function g(){try{const y=await fetch(`${dw}/api/blog/posts/${encodeURIComponent(e.handle)}`);if(!y.ok)throw new Error(String(y.status));const w=await y.json();p||(a(w.post),document.title=`${w.post.title}: Truth in the Trenches`)}catch{p||d(!0)}finally{p||l(!1)}}return g(),()=>{p=!0}},[e.handle]),i.jsxs("div",{className:"min-h-[100dvh] bg-white font-sans selection:bg-primary/20",children:[i.jsx(Cr,{isSignedIn:!!n,setLocation:t}),i.jsxs("main",{className:"max-w-[780px] mx-auto px-6 lg:px-0 py-[56px]",children:[i.jsxs(Be,{href:"/blog",className:"inline-flex items-center gap-2 text-[13.5px] font-bold text-primary hover:gap-3 transition-all mb-8",children:[i.jsx(ii,{className:"w-4 h-4"})," Back to the blog"]}),s&&i.jsxs("div",{className:"animate-pulse",children:[i.jsx("div",{className:"h-10 bg-slate-100 rounded w-4/5"}),i.jsx("div",{className:"h-4 bg-slate-100 rounded w-1/3 mt-5"}),i.jsx("div",{className:"aspect-[16/9] bg-slate-100 rounded-2xl mt-8"}),i.jsx("div",{className:"space-y-3 mt-8",children:Array.from({length:6}).map((p,g)=>i.jsx("div",{className:"h-4 bg-slate-100 rounded"},g))})]}),u&&!s&&i.jsxs("div",{className:"text-center py-24",children:[i.jsx("p",{className:"text-lg font-bold text-[#1A1A1A]",children:"We couldn't find that post."}),i.jsx(ee,{className:"mt-6 bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-6 py-[20px] rounded-[10px]",asChild:!0,children:i.jsx(Be,{href:"/blog",children:"Browse all posts"})})]}),r&&!s&&i.jsxs("article",{children:[i.jsx("p",{className:"text-[11.5px] font-bold uppercase tracking-[0.18em] text-primary mb-4",children:"Truth in the Trenches"}),i.jsx("h1",{className:"text-[clamp(30px,4.5vw,46px)] font-black text-[#1A1A1A] leading-[1.05] tracking-[-0.01em]",children:r.title}),i.jsxs("p",{className:"mt-5 text-[14px] text-[#333333]/60 font-medium",children:[r.author&&i.jsxs(i.Fragment,{children:["By ",r.author," · "]}),mj(r.publishedAt)]}),r.image&&i.jsx("div",{className:"relative aspect-[16/9] rounded-2xl overflow-hidden shadow-xl mt-9",children:i.jsx("img",{src:r.image,alt:r.title,className:"absolute inset-0 w-full h-full object-cover"})}),i.jsx("div",{className:"prose prose-slate max-w-none mt-10 prose-headings:font-black prose-headings:text-[#1A1A1A] prose-a:text-primary prose-a:font-semibold prose-img:rounded-xl prose-strong:text-[#1A1A1A] text-[16.5px] leading-[1.75]",dangerouslySetInnerHTML:{__html:f}}),i.jsxs("div",{className:"mt-16 rounded-2xl bg-[#1A1A1A] text-white p-9 lg:p-12 text-center",children:[i.jsxs("h2",{className:"text-[clamp(22px,3vw,30px)] font-black leading-tight",children:["Curriculum your students ",i.jsx("span",{className:"text-primary",children:"won't shrug off"})]}),i.jsx("p",{className:"mt-3 text-white/60 text-[15px] max-w-[46ch] mx-auto leading-relaxed",children:"Conversation-driven series where no topic is off-limits, relevant to culture, faithful to Scripture."}),i.jsx(ee,{className:"mt-7 bg-primary hover:bg-[#B01E2C] text-white font-extrabold text-[12.5px] tracking-[0.09em] uppercase px-7 py-[22px] rounded-[10px]",asChild:!0,children:i.jsxs(Be,{href:"/shop",children:["Browse Curriculum ",i.jsx(gt,{className:"w-4 h-4 ml-1.5"})]})})]})]})]}),i.jsx(Ur,{})]})}const SV=nH(window.location.hostname,"pk_live_Y2xlcmsudG9vbHMucmVmcmFtZXlvdXRoLmNvbSQ"),r4e="/api/__clerk",Br="/".replace(/\/$/,"");
190function B6(e){return Br&&e.startsWith(Br)?e.slice(Br.length)||"/":e}if(!SV)throw new Error("Missing VITE_CLERK_PUBLISHABLE_KEY");const i4e={theme:lK.shadcn,cssLayerName:"clerk",options:{logoPlacement:"inside",logoLinkUrl:Br||"/",logoImageUrl:`${window.location.origin}${Br}/reframe-logo.png`},variables:{colorPrimary:"#D82435",colorForeground:"#0f172a",colorMutedForeground:"#64748b",colorDanger:"#dc2626",colorBackground:"#ffffff",colorInput:"#f1f5f9",colorInputForeground:"#0f172a",colorNeutral:"#e2e8f0",fontFamily:"Inter, Arial, Helvetica, sans-serif",borderRadius:"12px"},elements:{rootBox:"w-full flex justify-center",cardBox:"bg-white rounded-2xl w-[440px] max-w-full overflow-hidden shadow-lg border border-slate-200",card:"!shadow-none !border-0 !bg-transparent !rounded-none",footer:"!shadow-none !border-0 !bg-transparent !rounded-none",headerTitle:"text-slate-900 font-bold",headerSubtitle:"text-slate-500",socialButtonsBlockButtonText:"text-slate-700",formFieldLabel:"text-slate-700 font-medium",footerActionLink:"text-primary font-semibold hover:text-primary/80",footerActionText:"text-slate-500",dividerText:"text-slate-400",identityPreviewEditButton:"text-primary",formFieldSuccessText:"text-green-600",alertText:"text-slate-700",logoBox:"flex justify-center",logoImage:"w-10 h-10",socialButtonsBlockButton:"border-slate-200 hover:border-slate-300 bg-white",formButtonPrimary:"bg-primary hover:bg-primary/90 text-white font-semibold",formFieldInput:"bg-slate-50 border-slate-200 text-slate-900 focus:border-primary focus:ring-primary/20",footerAction:"bg-slate-50",dividerLine:"bg-slate-200",alert:"bg-red-50 border-red-200",otpCodeFieldInput:"border-slate-200 bg-slate-50 text-slate-900",formFieldRow:"",main:""}},fw=["welcome","role","gad2","phq9","ace","desb","results"],F6={gad2:{},phq9:{},ace:{},desb:{}},a4e=["Feeling nervous, anxious, or on edge","Not being able to stop or control worrying","Worrying too much about different things","Trouble relaxing","Being so restless that it's hard to sit still","Becoming easily annoyed or irritable","Feeling afraid as if something awful might happen"],s4e=["Little interest or pleasure in doing things","Feeling down, depressed, or hopeless","Trouble falling or staying asleep, or sleeping too much","Feeling tired or having little energy","Poor appetite or overeating","Feeling bad about yourself, or that you are a failure or have let yourself or your family down","Trouble concentrating on things, such as reading the newspaper or watching television","Moving or speaking so slowly that other people could have noticed? Or the opposite: being so fidgety or restless that you have been moving around a lot more than usual","Thoughts that you would be better off dead or of hurting yourself in some way"],o4e=["Did you feel that you didn't have enough to eat, had to wear dirty clothes, or had no one to protect or take care of you?","Did you lose a parent through divorce, abandonment, death, or another reason?","Did you live with anyone who was depressed, mentally ill, or attempted suicide?","Did you live with anyone who had a problem with drinking or using drugs, including prescription drugs?","Did your parents or adults in your home ever hit, punch, beat, or threaten to harm each other?","Did you live with anyone who went to jail or prison?","Did a parent or adult in your home ever swear at you, insult you, or put you down?","Did a parent or adult in your home ever hit, beat, kick, or physically hurt you in any way?","Did you feel that no one in your family loved you or thought you were special?","Did you experience unwanted sexual contact (such as fondling or oral/anal/vaginal intercourse/penetration)?"],l4e=["I find myself staring into space and thinking of nothing","People, objects, or the world around me seem strange or unreal","I find that I did things that I do not remember doing","When I am alone, I talk out loud to myself","I feel as though I were looking at the world through a fog so that people and things seem far away or unclear","I am able to ignore pain","I act so differently from one situation to another that it is almost as if I were two different people","I can do things very easily that would usually be hard for me"],U6=[{value:0,label:"Not at all"},{value:1,label:"Several days"},{value:2,label:"More than half the days"},{value:3,label:"Nearly every day"}],c4e=[{value:0,label:"Not at all"},{value:1,label:"Once or twice"},{value:2,label:"Almost every day"},{value:3,label:"About once a day"},{value:4,label:"More than once a day"}],iu=e=>Object.values(e).reduce((t,n)=>t+n,0);function lo(e,t){return e==="gad2"?t<=4?"Your anxiety levels look minimal right now. Keep investing in the rhythms that bring you peace, like prayer, rest, and healthy boundaries.":t<=9?"You're experiencing mild anxiety that's worth paying attention to. Consider talking to a trusted mentor or counselor about what you're carrying.":t<=14?"Moderate anxiety at this level can wear you down over time. A therapist or counselor could be a real source of relief, so please consider reaching out.":"Your anxiety is in the severe range. Please reach out to a licensed therapist or counselor soon. This level of anxiety is real and treatable, and you deserve support.":e==="phq9"?t<=4?"You're in a good place emotionally. Stay connected to community, keep practicing self
190-care, and check in with yourself regularly.":t<=9?"You're showing some signs of mild depression. Be honest with a trusted friend or pastor about how you're really doing.":t<=14?"Moderate depression can make everything feel heavier. A therapist or counselor could be a real source of relief, so please consider reaching out.":t<=19?"What you're experiencing is significant. Please talk to a counselor or doctor soon. You don't have to manage this alone.":"This level of depression needs immediate professional attention. Please reach out to a mental health professional or call a crisis line today.":e==="ace"?t<=1?"You carry relatively few adverse childhood experiences. The past shapes us all, and continued self-reflection and community stay important.":t<=3?"A moderate ACE score means some of your past experiences may still be influencing your present. Therapy, especially trauma-informed care, can be transformative.":"A high ACE score doesn't define you, but it does mean you may benefit greatly from trauma-focused therapy. Many youth workers serve from their own wounds, and healing that story is powerful.":e==="desb"?t<=1?"Your dissociation score is in the normal range. Occasional zoning out is healthy and common.":t<=2?"Mild dissociation can be a sign that your nervous system needs more grounding and rest.":t<=3?"Moderate dissociation is worth exploring with a mental health professional, since it often points to unresolved stress or trauma.":"Significant dissociation at this level warrants attention from a therapist trained in dissociation and trauma.":""}function co(e,t){return e==="gad2"?t>=15?"Severe":t>=10?"Moderate":t>=5?"Mild":"Minimal":e==="phq9"?t>=20?"Severe":t>=15?"Moderately Severe":t>=10?"Moderate":t>=5?"Mild":"Minimal":e==="ace"?t>=4?"High":t>=2?"Moderate":"Low":e==="desb"?t>=4?"Extreme":t>=3?"Severe":t>=2?"Moderate":t>=1?"Mild":"None":""}function dx({title:e,score:t,maxScore:n,severity:r,recommendation:a,isFloat:s=!1}){const l=t/n*100;return i.jsxs(ze,{className:"border-slate-200 overflow-hidden shadow-sm flex flex-col",children:[i.jsxs("div",{className:"p-6 pb-0 flex items-start justify-between",children:[i.jsx("h3",{className:"font-semibold text-lg",children:e}),i.jsx("span",{className:"inline-flex items-center rounded-full bg-slate-100 px-2.5 py-0.5 text-xs font-medium text-slate-800",children:r})]}),i.jsxs(Ve,{className:"p-6 flex-1 flex flex-col",children:[i.jsxs("div",{className:"flex items-end gap-2 mb-4",children:[i.jsx("span",{className:"text-4xl font-bold tracking-tight text-primary",children:s?t.toFixed(1):t}),i.jsxs("span",{className:"text-slate-500 mb-1",children:["/ ",n]})]}),i.jsx(Sa,{value:l,className:"h-2 mb-6"}),i.jsx("p",{className:"text-slate-700 leading-relaxed mt-auto",children:a})]})]})}const El="/".replace(/\/$/,"");function u4e({amount:e}){const[t,n]=z.useState(!1),r=async()=>{n(!0);try{const a=window.location.origin+El,l=await(await fetch(`${El}/api/stripe/tip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:e,successUrl:`${a}/assessment?tip=thanks`,cancelUrl:`${a}/assessment`})})).json();l.url&&(window.location.href=l.url)}catch{n(!1)}};return i.jsx(ee,{variant:"outline",size:"lg",onClick:r,disabled:t,className:"rounded-full min-w-[80px] border-primary/30 hover:bg-primary hover:text-white hover:border-primary transition-all",children:t?"â¦":`$${e}`})}function d4e({successPath:e}){const[t,n]=z.useState(""),[r,a]=z.useState(!1),s=async()=>{const l=parseFloat(t);if(!(!l||l<1)){a(!0);try{const u=window.location.origin+El,f=await(await fetch(`${El}/api/stripe/tip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:String(Math.round(l)),successUrl:`${u}${e}?tip=thanks`,cancelUrl:`${u}${e}`})})).json();f.url&&(window.location.href=f.url)}catch{a(!1)}}};return i.jsxs("div",{className:"bg-gradient-to-br from-primary/5 to-primary/10 rounded-3xl p-8 sm:p-10 mb-8 border border-primary/20 text-center",children:[i.jsx("div",{className:"text-3xl mb-3",children:"â"}),i.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2",children:"This tool is completely free."}),i.jsx("p",{className:"text-slate-600 mb-6 max-w-md mx-auto",children:"If it was helpful, consider leaving a tip. Every contribution helps us build more mental health resources for youth workers like you."}),i.jsx("div",{className:"flex flex-wrap gap-3 justify-center mb-4",children:["5","10","15"].map(l=>i.jsx(u4e,{amount:l},l))}),i.jsxs("div",{className:"flex items-center gap-2 justify-center max-w-xs mx-auto",children:[i.jsxs("div",{className:"relative flex-1",children:[i.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500 font-medium",children:"$"}),i.jsx("input",{type:"number",min:"1",placeholder:"Custom amount",value:t,onChange:l=>n(l.target.value),onKeyDown:l=>l.key==="Enter"&&s(),className:"w-full pl-7 pr-3 py-2.5 rounded-full border border-primary/30 bg-white text-slate-900 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"})]}),i.jsx(ee,{variant:"outline",onClick:s,disabled:r||!t||parseFloat(t)<1,className:"rounded-full border-primary/30 hover:bg-primary hover:text-white hover:border-primary transition-all shrink-0",children:r?"â¦":"Tip"})]}),i.jsx("p",{className:"text-xs text-slate-400 mt-4",children:"Secure checkout via Stripe. One-time, no subscription."})]})}const f4e=[{value:"volunteer",label:"Youth Ministry Volunteer",desc:"Supporting the ministry without a formal pastoral title"},{value:"volunteer-pastor",label:"Volunteer Pastor / Director",desc:"Serving in a pastoral role on a volunteer basis"},{value:"part-time-pastor",label:"Part-Time Youth Pastor / Director",desc:"Employed part-time in a youth ministry leadership role"},{value:"full-time-pastor",label:"Full-Time Youth Pastor / Director",desc:"Employed full-time in a youth ministry leadership role"}];function h4e(){const[e,t]=v.useState("welcome"),[n,r]=v.useState(F6),[a,s]=v.useState(""),[l,u]=v.useState(!0),[d,f]=v.useState(!1),[,m]=et(),{isSignedIn:p}=Vt();v.useEffect(()=>{if(e!=="results"||!l||d)return;f(!0);
190const T=iu(n.gad2),M=iu(n.phq9),P=Object.values(n.ace).filter(Boolean).length,D=iu(n.desb)/8;fetch(`${El}/api/assessment/submit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({role:a||null,gad2Score:T,phq9Score:M,aceScore:P,desbScore:D})}).catch(()=>{})},[e,l,d,n,a]);const g=fw.indexOf(e),y=g>=2&&g<=5,w=y?(g-2)/3*100:0,b=()=>{t(fw[g+1]),window.scrollTo(0,0)},N=()=>{t(fw[g-1]),window.scrollTo(0,0)},k=(T,M,P)=>{r(D=>({...D,[T]:{...D[T],[M]:P}}))},C=()=>i.jsx(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl mx-auto py-16 px-4 sm:px-6",children:i.jsxs("div",{className:"text-center space-y-6",children:[i.jsx("img",{src:`${El}/reframe-logo.png`,alt:"Reframe",className:"w-20 h-20 mx-auto mb-8"}),i.jsx("h1",{className:"text-4xl sm:text-5xl font-bold tracking-tight text-slate-900",children:"Youth Leader First Aid Kit"}),i.jsx("p",{className:"text-xl text-slate-600 leading-relaxed",children:"A compassionate, confidential self-assessment for the youth worker who pours into everyone else."}),i.jsx("p",{className:"text-md text-slate-500 max-w-lg mx-auto",children:"Using four validated clinical tools, this assessment provides a snapshot of your mental and emotional well-being."}),i.jsx("div",{className:"text-left bg-amber-50 border border-amber-200 rounded-2xl p-5 mt-2",children:i.jsxs("div",{className:"flex gap-3 items-start",children:[i.jsx("span",{className:"text-amber-500 text-xl shrink-0 leading-none mt-0.5",children:"â ï¸"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-bold text-amber-900 text-sm mb-1",children:"Before you begin: content notice"}),i.jsx("p",{className:"text-amber-800 text-sm leading-relaxed",children:"This assessment uses real, validated clinical instruments: the GAD-7, PHQ-9, ACE questionnaire, and DES-B, the same tools used by therapists and researchers. Some questions address anxiety, depression, childhood trauma, and dissociation, and may feel emotionally activating or triggering. Please proceed at your own pace, take breaks as needed, and reach out to someone you trust if anything brings up something difficult."})]})]})}),i.jsx("div",{className:"text-left bg-slate-50 border border-slate-200 rounded-2xl p-5",children:i.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:l,onChange:T=>u(T.target.checked),className:"mt-0.5 w-4 h-4 shrink-0 accent-primary"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-slate-900 text-sm mb-1",children:"Help us build resources made specifically for you"}),i.jsxs("p",{className:"text-slate-500 text-sm leading-relaxed",children:["We're gathering anonymous data to produce a report on the mental and emotional health of youth leaders, and to discover exactly what resources, tools, and support we should create to help. Your results help us understand the real landscape so we can build things that actually meet the need. ",i.jsx("strong",{className:"text-slate-700",children:"No names, emails, or personal information are ever collected."})," Uncheck to opt out."]})]})]})}),i.jsx("div",{className:"pt-2 flex flex-col sm:flex-row gap-3 justify-center",children:i.jsx(ee,{size:"lg",className:"w-full sm:w-auto text-lg px-12 py-6 rounded-full",onClick:b,children:"Begin Assessment"})}),i.jsxs("div",{className:"pt-4 border-t border-slate-100 mt-4",children:[i.jsx("p",{className:"text-sm text-slate-500 mb-3",children:"Are you a youth leader with an account? Access your student survey dashboard."}),i.jsx("div",{className:"flex gap-3 justify-center flex-wrap",children:p?i.jsx(ee,{variant:"outline",className:"rounded-full",onClick:()=>m("/dashboard"),children:"Go to Dashboard"}):i.jsxs(i.Fragment,{children:[i.jsx(ee,{variant:"outline",className:"rounded-full",onClick:()=>m("/sign-in"),children:"Leader Sign In"}),i.jsx(ee,{variant:"ghost",className:"rounded-full text-slate-500",onClick:()=>m("/sign-up"),children:"Create Account"})]})})]})]})}),A=()=>i.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl mx-auto py-12 px-4 sm:px-6 pb-24",children:[i.jsxs("div",{className:"mb-10 text-center",children:[i.jsx("h2",{className:"text-2xl sm:text-3xl font-bold mb-3 text-slate-900",children:"Before we begin: what best describes your role?"}),i.jsx("p",{className:"text-slate-500 text-base",children:"This helps us tailor the results context for you. Your answer is private and never stored."})]}),i.jsx("div",{className:"space-y-4",children:f4e.map(T=>i.jsxs("button",{type:"button",onClick:()=>{s(T.value),b()},className:`w-full text-left px-6 py-5 rounded-2xl border-2 transition-all ${a===T.value?"border-primary bg-primary/5":"border-slate-200 bg-white hover:border-primary/40 hover:bg-slate-50"}`,children:[i.jsx("div",{className:"font-semibold text-slate-900 text-base mb-0.5",children:T.label}),i.jsx("div",{className:"text-sm text-slate-500",children:T.desc})]},T.value))}),i.jsxs("div",{className:"mt-8 flex justify-between items-center",children:[i.jsx(ee,{variant:"outline",size:"lg",onClick:N,className:"rounded-full",children:"Back"}),i.jsx("button",{type:"button",onClick:b,className:"text-sm text-slate-400 hover:text-slate-600 underline underline-offset-2",children:"Skip this question"})]})]}),E=(T,M,P,D,U,L=!1)=>{const $=D.every((G,H)=>n[T][`q${H}`]!==void 0);return i.jsxs(be.div,{initial:{opacity:0,x:20}
190,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"max-w-3xl mx-auto py-8 px-4 sm:px-6 pb-24",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h2",{className:"text-2xl font-semibold mb-2",children:M}),i.jsx("p",{className:"text-slate-600 text-lg",children:P})]}),i.jsx("div",{className:"space-y-8",children:D.map((G,H)=>i.jsx(ze,{className:"border-slate-200 shadow-sm overflow-hidden",children:i.jsxs(Ve,{className:"p-6",children:[i.jsxs("p",{className:"text-lg font-medium text-slate-900 mb-6",children:[H+1,". ",G]}),L?i.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[i.jsx("button",{type:"button",onClick:()=>k(T,`q${H}`,!0),className:`flex-1 py-3 px-5 rounded-xl border-2 text-base font-medium transition-all ${n[T][`q${H}`]===!0?"border-primary bg-primary text-white":"border-slate-200 bg-slate-50 text-slate-700 hover:border-primary/40"}`,children:"Yes, this applies to me"}),i.jsx("button",{type:"button",onClick:()=>k(T,`q${H}`,!1),className:`flex-1 py-3 px-5 rounded-xl border-2 text-base font-medium transition-all ${n[T][`q${H}`]===!1?"border-slate-700 bg-slate-700 text-white":"border-slate-200 bg-slate-50 text-slate-700 hover:border-slate-400"}`,children:"No, this doesn't apply to me"})]}):i.jsx(V8,{value:n[T][`q${H}`]?.toString(),onValueChange:V=>k(T,`q${H}`,parseInt(V,10)),className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:U?.map(V=>i.jsxs("div",{className:"flex items-center space-x-3 bg-slate-50 p-4 rounded-xl border border-slate-100 hover:border-primary/30 transition-colors",children:[i.jsx(W8,{value:V.value.toString(),id:`${T}-q${H}-${V.value}`}),i.jsx(ln,{htmlFor:`${T}-q${H}-${V.value}`,className:"text-base w-full cursor-pointer",children:V.label})]},V.value))})]})},H))}),i.jsxs("div",{className:"mt-12 flex justify-between items-center",children:[i.jsx(ee,{variant:"outline",size:"lg",onClick:N,className:"rounded-full",children:"Back"}),i.jsx(ee,{size:"lg",onClick:b,disabled:!$,className:"rounded-full px-8",children:"Next Section"})]})]})},_=()=>{const T=iu(n.gad2),M=iu(n.phq9),P=Object.values(n.ace).filter(Boolean).length,U=iu(n.desb)/8,L=n.phq9.q8&&n.phq9.q8>0,$=()=>{const H=["YOUTH LEADER SELF-ASSESSMENT RESULTS",`Completed: ${new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}`,"Generated by Reframe Youth · reframeyouth.com","","âââââââââââââââââââââââââââââââââââââââââââââââââ","","GAD-7: Anxiety",`Score: ${T} / 21`,`Severity: ${co("gad2",T)}`,`Recommendation: ${lo("gad2",T)}`,"","PHQ-9: Depression",`Score: ${M} / 27`,`Severity: ${co("phq9",M)}`,`Recommendation: ${lo("phq9",M)}`,"","ACE: Childhood Trauma",`Score: ${P} / 10`,`Severity: ${co("ace",P)}`,`Recommendation: ${lo("ace",P)}`,"","DES-B: Dissociation",`Score: ${U.toFixed(1)} / 4`,`Severity: ${co("desb",U)}`,`Recommendation: ${lo("desb",U)}`,"","âââââââââââââââââââââââââââââââââââââââââââââââââ","","IMPORTANT NOTICE","These results are for informational purposes only and do not constitute","a clinical diagnosis. Please share these results with a licensed therapist","or mental health professional for proper interpretation and support.","","RESOURCES","Find a therapist: https://www.psychologytoday.com/us/therapists","Crisis support (call or text): 988 Suicide & Crisis Lifeline","Pastoral care & resources: https://www.reframeyouth.com"],V=new Blob([H.join(` 191`)],{type:"text/plain;charset=utf-8"}),B=URL.createObjectURL(V),K=document.createElement("a");K.href=B,K.download=`reframe-assessment-${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(K),K.click(),document.body.removeChild(K),URL.revokeObjectURL(B)};return i.jsxs(be.div,{initial:{opacity:0}
191,animate:{opacity:1},className:"max-w-4xl mx-auto py-12 px-4 sm:px-6",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-4",children:"Your Assessment Results"}),i.jsx("p",{className:"text-xl text-slate-600",children:"Here is a snapshot of what you're carrying right now."})]}),L&&i.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-2xl p-6 mb-8 text-center",children:[i.jsx("h3",{className:"text-red-800 font-semibold text-lg mb-2",children:"Crisis Support"}),i.jsxs("p",{className:"text-red-700",children:["If you're having thoughts of self-harm or suicide, please reach out immediately: ",i.jsx("br",{}),i.jsx("strong",{children:"National Suicide Prevention Lifeline: 988 (call or text)"})]})]}),i.jsxs("div",{className:"grid gap-6 sm:grid-cols-2 mb-8",children:[i.jsx(dx,{title:"Anxiety (GAD-7)",score:T,maxScore:21,severity:co("gad2",T),recommendation:lo("gad2",T)}),i.jsx(dx,{title:"Depression (PHQ-9)",score:M,maxScore:27,severity:co("phq9",M),recommendation:lo("phq9",M)}),i.jsx(dx,{title:"Childhood Trauma (ACE)",score:P,maxScore:10,severity:co("ace",P),recommendation:lo("ace",P)}),i.jsx(dx,{title:"Dissociation (DES-B)",score:U,maxScore:4,severity:co("desb",U),recommendation:lo("desb",U),isFloat:!0})]}),i.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-2xl p-6 mb-8 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-5",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-bold text-blue-900 mb-1",children:"Take these results to a therapist"}),i.jsx("p",{className:"text-sm text-blue-700 leading-relaxed",children:"Download a plain-text summary of your scores and recommendations to share with a mental health professional at your next appointment."})]}),i.jsxs(ee,{variant:"outline",onClick:$,className:"rounded-full border-blue-300 text-blue-700 hover:bg-blue-600 hover:text-white hover:border-blue-600 transition-all shrink-0 gap-2",children:[i.jsx(f0,{className:"w-4 h-4"}),"Download Results"]})]}),i.jsxs("div",{className:"bg-slate-50 rounded-3xl p-8 sm:p-10 mb-8 border border-slate-200",children:[i.jsx("h3",{className:"text-2xl font-bold mb-6 text-slate-900",children:"Next Steps"}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center font-bold shrink-0",children:"1"}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold text-lg mb-1",children:"Find a Licensed Therapist"}),i.jsx("p",{className:"text-slate-600 mb-2",children:"Connect with a professional who can help you process your experiences."}),i.jsx("a",{href:"https://www.psychologytoday.com/us/therapists",target:"_blank",rel:"noreferrer",className:"text-primary hover:underline font-medium",children:"Search on Psychology Today â"})]})]}),i.jsx(Qw,{}),i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center font-bold shrink-0",children:"2"}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold text-lg mb-1",children:"Explore Pastoral Care"}),i.jsx("p",{className:"text-slate-600 mb-2",children:"Find peer support and resources built specifically for youth workers."}),i.jsx("a",{href:"https://www.reframeyouth.com",target:"_blank",rel:"noreferrer",className:"text-primary hover:underline font-medium",children:"Visit Reframe Youth â"})]})]}),i.jsx(Qw,{}),i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center font-bold shrink-0",children:"3"}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold text-lg mb-1",children:"Talk to Your Leadership"}),i.jsx("p",{className:"text-slate-600",children:"Consider sharing what you're carrying with your supervising pastor or youth ministry director. You don't have to carry it alone."})]})]})]})]}),i.jsx(d4e,{successPath:"/assessment"}),i.jsx("div",{className:"text-center pb-20",children:i.jsx(ee,{variant:"outline",size:"lg",onClick:()=>{t("welcome"),r(F6),f(!1),window.scrollTo(0,0)},className:"rounded-full px-8",children:"Retake Assessment"})})]})};return i.jsxs("div",{className:"min-h-[100dvh] bg-background text-foreground flex flex-col",children:[i.jsxs("header",{className:"sticky top-0 z-50 bg-white/80 backdrop-blur-md border-b border-slate-200 print:hidden",children:[i.jsxs("div",{className:"max-w-5xl mx-auto px-4 h-16 flex items-center justify-between",children:[i.jsx("div",{className:"flex items-center cursor-pointer",onClick:()=>m("/"),children:i.jsx("img",{src:`${El}/reframe-logo.png`,alt:"Reframe",className:"h-8"})}),y&&i.jsxs("div",{className:"text-sm font-medium text-slate-500",children:["Section ",g-1," of 4"]}),!y&&!p&&i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>m("/sign-in"),children:"Leader Login"}),!y&&p&&i.jsx(ee,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>
191m("/dashboard"),children:"My Dashboard"})]}),y&&i.jsx(Sa,{value:w,className:"h-1 rounded-none bg-slate-100"})]}),i.jsx("main",{className:"flex-1 w-full",children:i.jsxs(cn,{mode:"wait",children:[e==="welcome"&&i.jsx("div",{children:C()},"welcome"),e==="role"&&i.jsx("div",{children:A()},"role"),e==="gad2"&&i.jsx("div",{children:E("gad2","1. Anxiety","Over the last 2 weeks, how often have you been bothered by the following?",a4e,U6)},"gad2"),e==="phq9"&&i.jsx("div",{children:E("phq9","2. Depression","Over the last 2 weeks, how often have you been bothered by the following?",s4e,U6)},"phq9"),e==="ace"&&i.jsx("div",{children:E("ace","3. Childhood Trauma","Our early experiences shape us in ways we often don't realize. These questions are about your life before age 18.",o4e,void 0,!0)},"ace"),e==="desb"&&i.jsx("div",{children:E("desb","4. Dissociation","For each statement, indicate how much each experience has happened to you in the past 7 days.",l4e,c4e)},"desb"),e==="results"&&i.jsx("div",{children:_()},"results")]})})]})}function m4e(){return i.jsx(HTe,{})}function Di({children:e}){const{isSignedIn:t,isLoaded:n}=Vt();return n?t?i.jsx(i.Fragment,{children:e}):i.jsx(Si,{to:"/sign-in"}):null}function z6({children:e}){const{isSignedIn:t,isLoaded:n}=Vt(),{signOut:r}=vj(),[,a]=et(),[s,l]=v.useState(!1),u=Qee({query:{enabled:t===!0,retry:!1,queryKey:lN()}}),d=u.isError&&typeof u.error=="object"&&u.error!==null&&"status"in u.error&&u.error.status===401;v.useEffect(()=>{if(!d||s)return;const m="training-auth-recovery-attempted";sessionStorage.getItem(m)!=="true"&&(sessionStorage.setItem(m,"true"),l(!0),r(()=>{a("/sign-in?redirect_url=%2Ftraining%2Fmy-courses",{replace:!0})}))},[d,s,a,r]),v.useEffect(()=>{u.isSuccess&&sessionStorage.removeItem("training-auth-recovery-attempted")},[u.isSuccess]);const f=t&&(u.isLoading||u.isFetching&&!u.data);return!n||f||s?i.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col items-center justify-center gap-3",children:[i.jsx(Xt,{className:"w-8 h-8 text-primary animate-spin"}),s&&i.jsx("p",{className:"text-sm font-semibold text-slate-600",children:"Refreshing your sign-inâ¦"})]}):t?u.isError?i.jsx("div",{className:"min-h-screen bg-slate-50 flex items-center justify-center px-6",children:i.jsxs("div",{className:"w-full max-w-md rounded-3xl border border-slate-200 bg-white p-8 text-center shadow-sm",children:[i.jsx("h1",{className:"text-2xl font-black text-slate-900",children:"Letâs restart your sign-in."}),i.jsx("p",{className:"mt-3 text-slate-600",children:"Your account was created, but the secure training session did not finish loading."}),i.jsx(ee,{className:"mt-6 rounded-full px-7 font-bold",onClick:()=>{sessionStorage.removeItem("training-auth-recovery-attempted"),r(()=>{a("/sign-in?redirect_url=%2Ftraining%2Fmy-courses",{replace:!0})})},children:"Restart Sign-In"})]})}):u.data?i.jsx(i.Fragment,{children:e}):i.jsx(Si,{to:"/training/setup"}):i.jsx(Si,{to:"/sign-in?redirect_url=%2Ftraining%2Fmy-courses"})}function V6({children:e}){const{isSignedIn:t,isLoaded:n}=Vt(),{data:r,isLoading:a}=bt({queryKey:["ministry"],queryFn:()=>$I(),enabled:t===!0,retry:!1});return!n||t&&a?null:t?r?r&&!r.isAdmin?i.jsx(Si,{to:"/dashboard"}):i.jsx(i.Fragment,{children:e}):i.jsx(Si,{to:"/admin-setup"}):i.jsx(Si,{to:"/sign-in?redirect_url=%2Fadmin"})}function kV(e){const t=e.get("redirect_url");return!t||!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\")?
191null:t}function p4e(){const e=new URLSearchParams(window.location.search),t=kV(e),n=t==="/admin",r=t?.startsWith("/training"),a=`${Br}${t||"/dashboard"}`,s=`${Br}/sign-up${t?`?redirect_url=${encodeURIComponent(t)}`:""}`;return i.jsx("div",{className:`flex min-h-[100dvh] items-center justify-center px-4 ${n?"bg-slate-950":"bg-slate-50"}`,children:i.jsxs("div",{className:"w-full max-w-md",children:[i.jsx("p",{className:`text-center text-sm mb-6 ${n?"text-slate-400":"text-slate-500"}`,children:n?"Restricted to authorized administrators only.":r?"Sign in to access your training course.":"Sign in to access your youth leader dashboard."}),i.jsx(iG,{routing:"path",path:`${Br}/sign-in`,signUpUrl:s,fallbackRedirectUrl:a,...t?{forceRedirectUrl:a}:{}})]})})}function x4e(){const e=new URLSearchParams(window.location.search),t=kV(e),n=t?.startsWith("/training"),r=`${Br}${t||"/dashboard"}`,a=`${Br}/sign-in${t?`?redirect_url=${encodeURIComponent(t)}`:""}`;return i.jsx("div",{className:"flex min-h-[100dvh] items-center justify-center bg-slate-50 px-4",children:i.jsxs("div",{className:"w-full max-w-md",children:[i.jsx("p",{className:"text-center text-sm text-slate-500 mb-6",children:n?"Create a free account to access your training course.":"Create a free account to generate your student survey."}),i.jsx(aG,{routing:"path",path:`${Br}/sign-up`,signInUrl:a,fallbackRedirectUrl:r,...t?{forceRedirectUrl:r}:{}})]})})}function g4e(){const{isSignedIn:e,isLoaded:t}=Vt();return t?i.jsx(Si,{to:e?"/admin":"/sign-in?redirect_url=%2Fadmin",replace:!0}):null}function y4e(){const{addListener:e}=vj(),t=ur(),n=v.useRef(void 0);return v.useEffect(()=>e(({user:a})=>{const s=a?.id??null;n.current!==void 0&&n.current!==s&&t.clear(),n.current=s}),[e,t]),null}function v4e(){const[e]=et();return v.useEffect(()=>{window.location.hash||window.scrollTo(0,0)},[e]),null}const b4e={"about-us":"/about","meet-the-writers":"/about",speaking:"/about","statement-of-faith":"/statement-of-faith","curriculum-quiz":"/curriculum-quiz","build-your-own-curriculum":"/build-bundle",store:"/shop",products:"/shop","volume-2":"/wld",wld:"/wld","in-the-trenches":"/blog"},hw={"chosen-finding-your-path-in-faith":"/products/wld-vol-1","love-logics":"/products/wld-vol-1","whole-life-discipleship-volume-2":"/wld"},w4e=new Set(["privacy-policy","terms-of-service","refund-policy","cookie-policy","disclaimer","data-sharing-opt-out","avada-faqs"]);function Wk({to:e}){return v.useEffect(()=>{window.location.replace(e)},[e]),null}function j4e({handle:e}){const t=e.split("/")[0];if(w4e.has(t))return i.jsx(Wk,{to:`https://reframeyouth.myshopify.com/pages/${t}?_fd=0`});const n=b4e[t];return n?i.jsx(Rr,{to:n}):i.jsx(Rr,{to:`/${t}`})}function W6(){const e=window.location.pathname,t=new URLSearchParams(window.location.search);return t.set("_fd","0"),i.jsx(Wk,{to:`https://reframeyouth.myshopify.com${e}?${t.toString()}${window.location.hash}`})}function Rr({to:e}){const t=window.location.search+window.location.hash;return i.jsx(Si,{to:`${e}${t}`,replace:!0})}function N4e(){const[e]=et();return kEe({hasUserConsent:!0,fetchTrackingValues:!0,checkoutDomain:"reframeyouth.myshopify.com",domain:window.location.hostname.endsWith("reframeyouth.com")?"reframeyouth.com":""}),v.useEffect(()=>{e.startsWith("/products/")||e==="/wld"||nV()},[e]),null}function S4e(){const[e]=et();return v.useEffect(()=>{const t=window.gtag;t?.("event","page_view",{send_to:"G-9LV3BMNXWW",page_location:window.location.href,page_path:window.location.pathname+window.location.search})},[e]),null}function k4e(){const[e]=et(),t=v.useRef(!0);return v.useEffect(()=>{if(t.current){t.current=!1;return}const n=window.fbq;typeof n=="function"&&n("track","PageView")},[e]),null}function A4e(){const[,e]=et();return i.jsx(jR,{publishableKey:SV,proxyUrl:r4e,appearance:i4e,signInUrl:`${Br}/sign-in`,signUpUrl:`${Br}/sign-up`,localization:{signIn:{start:{title:"Welcome back",subtitle:"Sign in to your ministry dashboard"}},signUp:{start:{title:"Create Your Account",subtitle:"Get your student survey up and running in minutes"}}},routerPush:t=>e(B6(t)),routerReplace:t=>e(B6(t),{replace:!0}),children:i.jsxs(ZK,{client:OI,children:[i.jsx(y4e,{}),i.jsx(N4e,{}),i.jsx(S4e,{}),i.jsx(k4e,{}),i.jsx(v4e,{}),i.jsxs(CK,{children:[i.jsx(Ue,{path:"/",component:m4e}),i.jsx(Ue,{path:"/pages/*",children:t=>i.jsx(j4e,{handle:t["*"]??""})}),i.jsx(Ue,{path:"/collections/*",children:t=>{const n=(t["*"]??"").split("/")[0];return i.jsx(Rr,{to:n==="wld"||n==="volume-2"?"/wld":"/shop"})}}),i.jsx(Ue,{path:"/blogs/:blog/:article",children:t=>i.jsx(Rr,{to:`/blog/${t.article}`})}),i.jsx(Ue,{path:"/blogs/*",children:()=>i.jsx(Rr,{to:"/blog"})}),i.jsx(Ue,{path:"/policies/:handle",children:t=>i.jsx(Wk,{to:`https://reframeyouth.myshopify.com/policies/${t.handle}?_fd=0`})}),i.jsx(Ue,{path:"/apps/*?",children:()=>i.jsx(W6,{})}),i.jsx(Ue,{path:"/a/*?",children:()=>i.jsx(W6,{})}),i.jsx(Ue,{path:"/cart",children:()=>i.jsx(Rr,{to:"/shop"})}),i.jsx(Ue,{path:"/cart/*",children:()=>i.jsx(Rr,{to:"/shop"})}),i.jsx(Ue,{path:"/search",children:()=>i.jsx(Rr,{to:"/shop"})}),i.jsx(Ue,{path:"/account/*?",children:()=>i.jsx(Rr,{to:"/"})}),i.jsx(Ue,{path:"/about",component:GTe}),i.jsx(Ue,{path:"/statement-of-faith",component:YTe}),i.jsx(Ue,{path:"/tools",component:A5e}),i.jsx(Ue,{path:"/training",component:B5e}),i.jsx(Ue,{path:"/training/setup",children:i.jsx(Di,{children:i.jsx(q5e,{})})}),i.jsx(Ue,{path:"/training/my-courses",children:i.jsx(z6,{children:i.jsx(H5e,{})})}),i.jsx(Ue,{path:"/admin/course-preview/:courseSlug",children:()=>i.jsx(V6,{children:i.jsx(N6,{adminPreview:!0})})}),i.jsx(Ue,{path:"/training/:courseSlug",children:()=>i.jsx(z6,{children:i.jsx(N6,{})})}),i.jsx(Ue,{path:"/wld",component:JTe}),i.jsx(Ue,{path:"/shop",component:XCe}),i.jsx(Ue,{path:"/products/chosen-finding-your-path-in-faith",children:()=>i.jsx(Rr,{to:hw["chosen-finding-your-path-in-faith"]})}),i.jsx(Ue,{path:"/products/love-logics",children:()=>i.jsx(Rr,{to:hw["love-logics"]})}),i.jsx(Ue,{path:"/products/whole-life-discipleship-volume-2",children:()=>i.jsx(Rr,{to:hw["whole-life-discipleship-volume-2"]})}),i.jsx(Ue,{path:"/products/:handle",component:KEe}),i.jsx(Ue,{path:"/blog",component:t4e}),i.jsx(Ue,{path:"/blog/:handle",component:n4e}),i.jsx(Ue,{path:"/first-aid-kit",component:ICe}),i.jsx(Ue,{path:"/self-assessment",component:YEe}),i.jsx(Ue,{path:"/ministry-survey",component:JEe}),i.jsx(Ue,{path:"/curriculum-quiz",component:c5e}),i.jsx(Ue,{path:"/build-bundle",component:j5e}),i.jsx(Ue,{path:"/series/*",children:()=>i.jsx(Rr,{to:"/shop"})}),i.jsx(Ue,{path:"/series",children:()=>i.jsx(Rr,{to:"/shop"})}),i.jsx(Ue,{path:"/assessment",component:h4e}),i.jsx(Ue,{path:"/suggestions",component:O5e}),i.jsx(Ue,{path:"/sign-in/*?",component:p4e}),i.jsx(Ue,{path:"/sign-up/*?",component:x4e}),i.jsx(Ue,{path:"/admin-login/*?",component:g4e}),i.jsx(Ue,{path:"/setup",children:i.jsx(Di,{children:i.jsx(Tse,{})})}),i.jsx(Ue,{path:"/dashboard",children:i.jsx(Di,{children:i.jsx(Wse,{})})}),i.jsx(Ue,{path:"/admin",children:i.jsx(V6,{children:i.jsx(MCe,{})})}),i.jsx(Ue,{path:"/admin-setup",children:i.jsx(Di,{children:i.jsx(RCe,{})})}),i.jsx(Ue,{path:"/preview/:code",component:D5e}),i.jsx(Ue,{path:"/survey/:code",component:Gse}),i.jsx(Ue,{path:"/curriculum",children:i.jsx(Di,{children:i.jsx(K5e,{})})}),i.jsx(Ue,{path:"/curriculum/generate",children:i.jsx(Di,{children:i.jsx(Z5e,{})})}),i.jsx(Ue,{path:"/curriculum/library",children:i.jsx(Di,{children:i.jsx(eTe,{})})}),i.jsx(Ue,{path:"/curriculum/package/:id",children:i.jsx(Di,{children:i.jsx(sTe,{})})}),i.jsx(Ue,{path:"/curriculum/buy-tokens",children:i.jsx(Di,{children:i.jsx(oTe,{})})}),i.jsx(Ue,{path:"/curriculum/suggestions",children:i.jsx(Di,{children:i.jsx(lTe,{})})}),i.jsx(Ue,{path:"/curriculum/reviews",children:i.jsx(Di,{children:i.jsx(cTe,{})})}),i.jsx(Ue,{children:i.jsx(Si,{to:"/"})})]})]})})}function C4e(){return i.jsx(PR,{base:Br,children:i.jsx(A4e,{})})}pj.createRoot(document.getElementById("root")).render(i.jsx(C4e,{}));
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.