PageSourceSearch

https://bango-ngo-hub.base44.app/assets/index-CYAFx7UE.js

js bango-ngo-hub.base44.app collected 2026-10-03 03:11:39 UTC 732,291 bytes, 393 lines download raw bytes

vendor: 4,637 bytes, lines 1-9
1var Q0=e=>{throw TypeError(e)};var $f=(e,t,n)=>t.has(e)||Q0("Cannot "+n);var O=(e,t,n)=>($f(e,t,"read from private field"),n?n.call(e):t.get(e)),Ce=(e,t,n)=>t.has(e)?Q0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n,r)=>($f(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),De=(e,t,n)=>($f(e,t,"access private method"),n);var jc=(e,t,n,r)=>({set _(o){ae(e,t,o,n)},get _(){return O(e,t,r)}});function ik(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wf={exports:{}},ua={},Hf={exports:{}},Me={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var X0;function ok(){if(X0)return Me;X0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=y&&M[y]||M["@@iterator"],typeof M=="function"?M:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,w={};function S(M,W,ue){this.props=M,this.context=W,this.refs=w,this.updater=ue||N}S.prototype.isReactComponent={},S.prototype.setState=function(M,W){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,W,"setState")},S.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function b(){}b.prototype=S.prototype;function j(M,W,ue){this.props=M,this.context=W,this.refs=w,this.updater=ue||N}var T=j.prototype=new b;T.constructor=j,E(T,S.prototype),T.isPureReactComponent=!0;var _=Array.isArray,R=Object.prototype.hasOwnProperty,U={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function B(M,W,ue){var te,be={},Re=null,X=null;if(W!=null)for(te in W.ref!==void 0&&(X=W.ref),W.key!==void 0&&(Re=""+W.key),W)R.call(W,te)&&!$.hasOwnProperty(te)&&(be[te]=W[te]);var oe=arguments.length-2;if(oe===1)be.children=ue;else if(1<oe){for(var Ee=Array(oe),we=0;we<oe;we++)Ee[we]=arguments[we+2];be.children=Ee}if(M&&M.defaultProps)for(te in oe=M.defaultProps,oe)be[te]===void 0&&(be[te]=oe[te]);return{$$typeof:e,type:M,key:Re,ref:X,props:be,_owner:U.current}}function ne(M,W){return{$$typeof:e,type:M.type,key:W,ref:M.ref,props:M.props,_owner:M._owner}}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Z(M){var W={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ue){return W[ue]})}var ge=/\/+/g;function xe(M,W){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):W.toString(36)}function ye(M,W,ue,te,be){var Re=typeof M;(Re==="undefined"||Re==="boolean")&&(M=null);var X=!1;if(M===null)X=!0;else switch(Re){case"string":case"number":X=!0;break;case"object":switch(M.$$typeof){case e:case t:X=!0}}if(X)return X=M,be=be(X),M=te===""?"."+xe(X,0):te,_(be)?(ue="",M!=null&&(ue=M.replace(ge,"$&/")+"/"),ye(be,W,ue,"",function(we){return we})):be!=null&&(G(be)&&(be=ne(be,ue+(!be.key||X&&X.key===be.key?"":(""+be.key).replace(ge,"$&/")+"/")+M)),W.pu
vendor: 10,931 bytes, lines 9-33
9sh(be)),1;if(X=0,te=te===""?".":te+":",_(M))for(var oe=0;oe<M.length;oe++){Re=M[oe];var Ee=te+xe(Re,oe);X+=ye(Re,W,ue,Ee,be)}else if(Ee=x(M),typeof Ee=="function")for(M=Ee.call(M),oe=0;!(Re=M.next()).done;)Re=Re.value,Ee=te+xe(Re,oe++),X+=ye(Re,W,ue,Ee,be);else if(Re==="object")throw W=String(M),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return X}function Pe(M,W,ue){if(M==null)return M;var te=[],be=0;return ye(M,te,"","",function(Re){return W.call(ue,Re,be++)}),te}function le(M){if(M._status===-1){var W=M._result;W=W(),W.then(function(ue){(M._status===0||M._status===-1)&&(M._status=1,M._result=ue)},function(ue){(M._status===0||M._status===-1)&&(M._status=2,M._result=ue)}),M._status===-1&&(M._status=0,M._result=W)}if(M._status===1)return M._result.default;throw M._result}var re={current:null},L={transition:null},ee={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:L,ReactCurrentOwner:U};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Me.Children={map:Pe,forEach:function(M,W,ue){Pe(M,function(){W.apply(this,arguments)},ue)},count:function(M){var W=0;return Pe(M,function(){W++}),W},toArray:function(M){return Pe(M,function(W){return W})||[]},only:function(M){if(!G(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Me.Component=S,Me.Fragment=n,Me.Profiler=o,Me.PureComponent=j,Me.StrictMode=r,Me.Suspense=h,Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Me.act=Y,Me.cloneElement=function(M,W,ue){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var te=E({},M.props),be=M.key,Re=M.ref,X=M._owner;if(W!=null){if(W.ref!==void 0&&(Re=W.ref,X=U.current),W.key!==void 0&&(be=""+W.key),M.type&&M.type.defaultProps)var oe=M.type.defaultProps;for(Ee in W)R.call(W,Ee)&&!$.hasOwnProperty(Ee)&&(te[Ee]=W[Ee]===void 0&&oe!==void 0?oe[Ee]:W[Ee])}var Ee=arguments.length-2;if(Ee===1)te.children=ue;else if(1<Ee){oe=Array(Ee);for(var we=0;we<Ee;we++)oe[we]=arguments[we+2];te.children=oe}return{$$typeof:e,type:M.type,key:be,ref:Re,props:te,_owner:X}},Me.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:a,_context:M},M.Consumer=M},Me.createElement=B,Me.createFactory=function(M){var W=B.bind(null,M);return W.type=M,W},Me.createRef=function(){return{current:null}},Me.forwardRef=function(M){return{$$typeof:d,render:M}},Me.isValidElement=G,Me.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:le}},Me.memo=function(M,W){return{$$typeof:p,type:M,compare:W===void 0?null:W}},Me.startTransition=function(M){var W=L.transition;L.transition={};try{M()}finally{L.transition=W}},Me.unstable_act=Y,Me.useCallback=function(M,W){return re.current.useCallback(M,W)},Me.useContext=function(M){return re.current.useContext(M)},Me.useDebugValue=function(){},Me.useDeferredValue=function(M){return re.current.useDeferredValue(M)},Me.useEffect=function(M,W){return re.current.useEffect(M,W)},Me.useId=function(){return re.current.useId()},Me.useImperativeHandle=function(M,W,ue){return re.current.useImperativeHandle(M,W,ue)},Me.useInsertionEffect=function(M,W){return re.current.useInsertionEffect(M,W)},Me.useLayoutEffect=function(M,W){return re.current.useLayoutEffect(M,W)},Me.useMemo=function(M,W){return re.current.useMemo(M,W)},Me.useReducer=function(M,W,ue){return re.current.useReducer(M,W,ue)},Me.useRef=function(M){return re.current.useRef(M)},Me.useState=function(M){return re.current.useState(M)},Me.useSyncExternalStore=function(M,W,ue){return re.current.useSyncExternalStore(M,W,ue)},Me.useTransition=function(){return re.current.useTransition()},Me.version="18.3.1",Me}var J0;function $p(){return J0||(J0=1,Hf.exports=ok()),Hf.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Z0;function ak(){if(Z0)return ua;Z0=1;var e=$p(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,p){var m,y={},x=null,N=null;p!==void 0&&(x=""+p),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(N=h.ref);for(m in h)r.call(h,m)&&!a.hasOwnProperty(m)&&(y[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)y[m]===void 0&&(y[m]=h[m]);return{$$typeof:t,type:d,key:x,ref:N,props:y,_owner:o.current}}return ua.Fragment=n,ua.jsx=c,ua.jsxs=c,ua}var ev;function lk(){return ev||(ev=1,Wf.exports=ak()),Wf.exports}var u=lk(),C=$p();const cn=zp(C),Wp=ik({__proto__:null,default:cn},[C]);var Tc={},qf={exports:{}},Xt={},Gf={exports:{}},Kf={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var tv;function ck(){return tv||(tv=1,(function(e){function t(L,ee){var Y=L.length;L.push(ee);e:for(;0<Y;){var M=Y-1>>>1,W=L[M];if(0<o(W,ee))L[M]=ee,L[Y]=W,Y=M;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var ee=L[0],Y=L.pop();if(Y!==ee){L[0]=Y;e:for(var M=0,W=L.length,ue=W>>>1;M<ue;){var te=2*(M+1)-1,be=L[te],Re=te+1,X=L[Re];if(0>o(be,Y))Re<W&&0>o(X,be)?(L[M]=X,L[Re]=Y,M=Re):(L[M]=be,L[te]=Y,M=te);else if(Re<W&&0>o(X,Y))L[M]=X,L[Re]=Y,M=Re;else break e}}return ee}function o(L,ee){var Y=L.sortIndex-ee.sortIndex;return Y!==0?Y:L.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],m=1,y=null,x=3,N=!1,E=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(L){for(var ee=n(p);ee!==null;){if(ee.callback===null)r(p);else if(ee.startTime<=L)r(p),ee.sortIndex=ee.expirationTime,t(h,ee);else break;ee=n(p)}}function _(L){if(w=!1,T(L),!E)if(n(h)!==null)E=!0,le(R);else{var ee=n(p);ee!==null&&re(_,ee.startTime-L)}}function R(L,ee){E=!1,w&&(w=!1,b(B),B=-1),N=!0;var Y=x;try{for(T(ee),y=n(h);y!==null&&(!(y.expirationTime>ee)||L&&!Z());){var M=y.callback;if(typeof M=="function"){y.callback=null,x=y.priorityLevel;var W=M(y.expirationTime<=ee);ee=e.unstable_now(),typeof W=="function"?y.callback=W:y===n(h)&&r(h),T(ee)}else r(h);y=n(h)}if(y!==null)var ue=!0;else{var te=n(p);te!==null&&re(_,te.startTime-ee),ue=!1}return ue}finally{y=null,x=Y,N=!1}}var U=!1,$=null,B=-1,ne=5,G=-1;function Z(){return!(e.unstable_now()-G<ne)}function ge(){if($!==null){var L=e.unstable_now();G=L;var ee=!0;try{ee=$(!0,L)}finally{ee?xe():(U=!1,$=null)}}else U=!1}var xe;if(typeof j=="function")xe=function(){j(ge)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Pe=ye.port2;ye.port1.onmessage=ge,xe=function(){Pe.postMessage(null)}}else xe=function(){S(ge,0)};function le(L){$=L,U||(U=!0,xe())}function re(L,ee){B=S(function(){L(e.unstable_now())},ee)}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(L){L.callback=null},e.unstable_continueExecution=function(){E||N||(E=!0,le(R))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(L){switch(x){case 1:case 2:case 3:var ee=3;break;default:ee=x}var Y=x;x=ee;try{return L()}finally{x=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,ee){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Y=x;x=L;try{return ee()}finally{x=Y}},e.unstable_scheduleCallback=function(L,ee,Y){var M=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?M+Y:M):Y=M,L){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Y+W,L={id:m++,callback:ee,priorityLevel:L,startTime:Y,expirationTime:W,sortIndex:-1},Y>M?(L.sortIndex=Y,t(p,L),n(h)===null&&L===n(p)&&(w?(b(B),B=-1):w=!0,re(_,Y-M))):(L.sortIndex=W,t(h,L),E||N||(E=!0,le(R))),L},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(L){var ee=x;return function(){var Y=x;x=ee;try{return L.apply(this,arguments)}finally{x=Y}}}})(Kf)),Kf}var nv;function uk(){return nv||(nv=1,Gf.exports=ck()),Gf.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var rv;function dk(){if(rv)return Xt;rv=1;var e=$p(),t=uk();function n(s){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+s,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(s,i){c(s,i),c(s+"Capture",i)}function c(s,i){for(o[s]=i,s=0;s<i.length;s++)r.add(i[s])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},y={};function x(s){return h.call(y,s)?!0:h.call(m,s)?!1:p.test(s)?y[s]=!0:(m[s]=!0,!1)}function N(s,i,l,f){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return f?!1:l!==null?!l.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function E(s,i,l,f){if(i===null||typeof i>"u"||N(s,i,l,f))return!0;
vendor: 47,813 bytes, lines 33-38
33if(f)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function w(s,i,l,f,g,v,k){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=f,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=s,this.type=i,this.sanitizeURL=v,this.removeEmptyString=k}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var i=s[0];S[i]=new w(i,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function j(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var i=s.replace(b,j);S[i]=new w(i,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var i=s.replace(b,j);S[i]=new w(i,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var i=s.replace(b,j);S[i]=new w(i,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function T(s,i,l,f){var g=S.hasOwnProperty(i)?S[i]:null;(g!==null?g.type!==0:f||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(E(i,l,g,f)&&(l=null),f||g===null?x(i)&&(l===null?s.removeAttribute(i):s.setAttribute(i,""+l)):g.mustUseProperty?s[g.propertyName]=l===null?g.type===3?!1:"":l:(i=g.attributeName,f=g.attributeNamespace,l===null?s.removeAttribute(i):(g=g.type,l=g===3||g===4&&l===!0?"":""+l,f?s.setAttributeNS(f,i,l):s.setAttribute(i,l))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),U=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),Z=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),L=Symbol.iterator;function ee(s){return s===null||typeof s!="object"?null:(s=L&&s[L]||s["@@iterator"],typeof s=="function"?s:null)}var Y=Object.assign,M;function W(s){if(M===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return`
34`+M+s}var ue=!1;function te(s,i){if(!s||ue)return"";ue=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(z){var f=z}Reflect.construct(s,[],i)}else{try{i.call()}catch(z){f=z}s.call(i.prototype)}else{try{throw Error()}catch(z){f=z}s()}}catch(z){if(z&&f&&typeof z.stack=="string"){for(var g=z.stack.split(`
35`),v=f.stack.split(`
36`),k=g.length-1,P=v.length-1;1<=k&&0<=P&&g[k]!==v[P];)P--;for(;1<=k&&0<=P;k--,P--)if(g[k]!==v[P]){if(k!==1||P!==1)do if(k--,P--,0>P||g[k]!==v[P]){var A=`
37`+g[k].replace(" at new "," at ");return s.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",s.displayName)),A}while(1<=k&&0<=P);break}}}finally{ue=!1,Error.prepareStackTrace=l}return(s=s?s.displayName||s.name:"")?W(s):""}function be(s){switch(s.tag){case 5:return W(s.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return s=te(s.type,!1),s;case 11:return s=te(s.type.render,!1),s;case 1:return s=te(s.type,!0),s;default:return""}}function Re(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case $:return"Fragment";case U:return"Portal";case ne:return"Profiler";case B:return"StrictMode";case xe:return"Suspense";case ye:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Z:return(s.displayName||"Context")+".Consumer";case G:return(s._context.displayName||"Context")+".Provider";case ge:var i=s.render;return s=s.displayName,s||(s=i.displayName||i.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Pe:return i=s.displayName||null,i!==null?i:Re(s.type)||"Memo";case le:i=s._payload,s=s._init;try{return Re(s(i))}catch{}}return null}function X(s){var i=s.type;switch(s.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=i.render,s=s.displayName||s.name||"",i.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Re(i);case 8:return i===B?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function oe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ee(s){var i=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function we(s){var i=Ee(s)?"checked":"value",l=Object.getOwnPropertyDescriptor(s.constructor.prototype,i),f=""+s[i];if(!s.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var g=l.get,v=l.set;return Object.defineProperty(s,i,{configurable:!0,get:function(){return g.call(this)},set:function(k){f=""+k,v.call(this,k)}}),Object.defineProperty(s,i,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(k){f=""+k},stopTracking:function(){s._valueTracker=null,delete s[i]}}}}function se(s){s._valueTracker||(s._valueTracker=we(s))}function Te(s){if(!s)return!1;var i=s._valueTracker;if(!i)return!0;var l=i.getValue(),f="";return s&&(f=Ee(s)?s.checked?"true":"false":s.value),s=f,s!==l?(i.setValue(s),!0):!1}function We(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function pt(s,i){var l=i.checked;return Y({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??s._wrapperState.initialChecked})}function jn(s,i){var l=i.defaultValue==null?"":i.defaultValue,f=i.checked!=null?i.checked:i.defaultChecked;l=oe(i.value!=null?i.value:l),s._wrapperState={initialChecked:f,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function $n(s,i){i=i.checked,i!=null&&T(s,"checked",i,!1)}function Bt(s,i){$n(s,i);var l=oe(i.value),f=i.type;if(l!=null)f==="number"?(l===0&&s.value===""||s.value!=l)&&(s.value=""+l):s.value!==""+l&&(s.value=""+l);else if(f==="submit"||f==="reset"){s.removeAttribute("value");return}i.hasOwnProperty("value")?Tr(s,i.type,l):i.hasOwnProperty("defaultValue")&&Tr(s,i.type,oe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(s.defaultChecked=!!i.defaultChecked)}function vl(s,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var f=i.type;if(!(f!=="submit"&&f!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+s._wrapperState.initialValue,l||i===s.value||(s.value=i),s.defaultValue=i}l=s.name,l!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,l!==""&&(s.name=l)}function Tr(s,i,l){(i!=="number"||We(s.ownerDocument)!==s)&&(l==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+l&&(s.defaultValue=""+l))}var Eo=Array.isArray;function li(s,i,l,f){if(s=s.options,i){i={};for(var g=0;g<l.length;g++)i["$"+l[g]]=!0;for(l=0;l<s.length;l++)g=i.hasOwnProperty("$"+s[l].value),s[l].selected!==g&&(s[l].selected=g),g&&f&&(s[l].defaultSelected=!0)}else{for(l=""+oe(l),i=null,g=0;g<s.length;g++){if(s[g].value===l){s[g].selected=!0,f&&(s[g].defaultSelected=!0);return}i!==null||s[g].disabled||(i=s[g])}i!==null&&(i.selected=!0)}}function Ju(s,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},i,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function og(s,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(n(92));if(Eo(l)){if(1<l.length)throw Error(n(93));l=l[0]}i=l}i==null&&(i=""),l=i}s._wrapperState={initialValue:oe(l)}}function ag(s,i){var l=oe(i.value),f=oe(i.defaultValue);l!=null&&(l=""+l,l!==s.value&&(s.value=l),i.defaultValue==null&&s.defaultValue!==l&&(s.defaultValue=l)),f!=null&&(s.defaultValue=""+f)}function lg(s){var i=s.textContent;i===s._wrapperState.initialValue&&i!==""&&i!==null&&(s.value=i)}function cg(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Zu(s,i){return s==null||s==="http://www.w3.org/1999/xhtml"?cg(i):s==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var xl,ug=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,f,g){MSApp.execUnsafeLocalFunction(function(){return s(i,l,f,g)})}:s})(function(s,i){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=i;else{for(xl=xl||document.createElement("div"),xl.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=xl.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;i.firstChild;)s.appendChild(i.firstChild)}});function ko(s,i){if(i){var l=s.firstChild;if(l&&l===s.lastChild&&l.nodeType===3){l.nodeValue=i;return}}s.textContent=i}var jo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cC=["Webkit","ms","Moz","O"];Object.keys(jo).forEach(function(s){cC.forEach(function(i){i=i+s.charAt(0).toUpperCase()+s.substring(1),jo[i]=jo[s]})});function dg(s,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||jo.hasOwnProperty(s)&&jo[s]?(""+i).trim():i+"px"}function fg(s,i){s=s.style;for(var l in i)if(i.hasOwnProperty(l)){var f=l.indexOf("--")===0,g=dg(l,i[l],f);l==="float"&&(l="cssFloat"),f?s.setProperty(l,g):s[l]=g}}var uC=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ed(s,i){if(i){if(uC[s]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function td(s,i){if(s.indexOf("-")===-1)return typeof i.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nd=null;function rd(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var sd=null,ci=null,ui=null;function hg(s){if(s=Yo(s)){if(typeof sd!="function")throw Error(n(280));var i=s.stateNode;i&&(i=zl(i),sd(s.stateNode,s.type,i))}}function pg(s){ci?ui?ui.push(s):ui=[s]:ci=s}function mg(){if(ci){var s=ci,i=ui;if(ui=ci=null,hg(s),i)for(s=0;s<i.length;s++)hg(i[s])}}function gg(s,i){return s(i)}function yg(){}var id=!1;function vg(s,i,l){if(id)return s(i,l);id=!0;try{return gg(s,i,l)}finally{id=!1,(ci!==null||ui!==null)&&(yg(),mg())}}function To(s,i){var l=s.stateNode;if(l===null)return null;var f=zl(l);if(f===null)return null;l=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(l&&typeof l!="function")throw Error(n(231,i,typeof l));return l}var od=!1;if(d)try{var _o={};Object.defineProperty(_o,"passive",{get:function(){od=!0}}),window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{od=!1}function dC(s,i,l,f,g,v,k,P,A){var z=Array.prototype.slice.call(arguments,3);try{i.apply(l,z)}catch(q){this.onError(q)}}var Po=!1,wl=null,bl=!1,ad=null,fC={onError:function(s){Po=!0,wl=s}};function hC(s,i,l,f,g,v,k,P,A){Po=!1,wl=null,dC.apply(fC,arguments)}function pC(s,i,l,f,g,v,k,P,A){if(hC.apply(this,arguments),Po){if(Po){var z=wl;Po=!1,wl=null}else throw Error(n(198));bl||(bl=!0,ad=z)}}function ws(s){var i=s,l=s;if(s.alternate)for(;i.return;)i=i.return;else{s=i;do i=s,(i.flags&4098)!==0&&(l=i.return),s=i.return;while(s)}return i.tag===3?l:null}function xg(s){if(s.tag===13){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function wg(s){if(ws(s)!==s)throw Error(n(188))}function mC(s){var i=s.alternate;if(!i){if(i=ws(s),i===null)throw Error(n(188));return i!==s?null:s}for(var l=s,f=i;;){var g=l.return;if(g===null)break;var v=g.alternate;if(v===null){if(f=g.return,f!==null){l=f;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===l)return wg(g),s;if(v===f)return wg(g),i;v=v.sibling}throw Error(n(188))}if(l.return!==f.return)l=g,f=v;else{for(var k=!1,P=g.child;P;){if(P===l){k=!0,l=g,f=v;break}if(P===f){k=!0,f=g,l=v;break}P=P.sibling}if(!k){for(P=v.child;P;){if(P===l){k=!0,l=v,f=g;break}if(P===f){k=!0,f=v,l=g;break}P=P.sibling}if(!k)throw Error(n(189))}}if(l.alternate!==f)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?s:i}function bg(s){return s=mC(s),s!==null?Sg(s):null}function Sg(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var i=Sg(s);if(i!==null)return i;s=s.sibling}return null}var Ng=t.unstable_scheduleCallback,Cg=t.unstable_cancelCallback,gC=t.unstable_shouldYield,yC=t.unstable_requestPaint,st=t.unstable_now,vC=t.unstable_getCurrentPriorityLevel,ld=t.unstable_ImmediatePriority,Eg=t.unstable_UserBlockingPriority,Sl=t.unstable_NormalPriority,xC=t.unstable_LowPriority,kg=t.unstable_IdlePriority,Nl=null,Wn=null;function wC(s){if(Wn&&typeof Wn.onCommitFiberRoot=="function")try{Wn.onCommitFiberRoot(Nl,s,void 0,(s.current.flags&128)===128)}catch{}}var Tn=Math.clz32?Math.clz32:NC,bC=Math.log,SC=Math.LN2;function NC(s){return s>>>=0,s===0?32:31-(bC(s)/SC|0)|0}var Cl=64,El=4194304;function Ro(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function kl(s,i){var l=s.pendingLanes;if(l===0)return 0;var f=0,g=s.suspendedLanes,v=s.pingedLanes,k=l&268435455;if(k!==0){var P=k&~g;P!==0?f=Ro(P):(v&=k,v!==0&&(f=Ro(v)))}else k=l&~g,k!==0?f=Ro(k):v!==0&&(f=Ro(v));if(f===0)return 0;if(i!==0&&i!==f&&(i&g)===0&&(g=f&-f,v=i&-i,g>=v||g===16&&(v&4194240)!==0))return i;if((f&4)!==0&&(f|=l&16),i=s.entangledLanes,i!==0)for(s=s.entanglements,i&=f;0<i;)l=31-Tn(i),g=1<<l,f|=s[l],i&=~g;return f}function CC(s,i){switch(s){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function EC(s,i){for(var l=s.suspendedLanes,f=s.pingedLanes,g=s.expirationTimes,v=s.pendingLanes;0<v;){var k=31-Tn(v),P=1<<k,A=g[k];A===-1?((P&l)===0||(P&f)!==0)&&(g[k]=CC(P,i)):A<=i&&(s.expiredLanes|=P),v&=~P}}function cd(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function jg(){var s=Cl;return Cl<<=1,(Cl&4194240)===0&&(Cl=64),s}function ud(s){for(var i=[],l=0;31>l;l++)i.push(s);return i}function Ao(s,i,l){s.pendingLanes|=i,i!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,i=31-Tn(i),s[i]=l}function kC(s,i){var l=s.pendingLanes&~i;s.pendingLanes=i,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=i,s.mutableReadLanes&=i,s.entangledLanes&=i,i=s.entanglements;var f=s.eventTimes;for(s=s.expirationTimes;0<l;){var g=31-Tn(l),v=1<<g;i[g]=0,f[g]=-1,s[g]=-1,l&=~v}}function dd(s,i){var l=s.entangledLanes|=i;for(s=s.entanglements;l;){var f=31-Tn(l),g=1<<f;g&i|s[f]&i&&(s[f]|=i),l&=~g}}var Ve=0;function Tg(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var _g,fd,Pg,Rg,Ag,hd=!1,jl=[],_r=null,Pr=null,Rr=null,Oo=new Map,Mo=new Map,Ar=[],jC="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 submit".split(" ");function Og(s,i){switch(s){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":Oo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mo.delete(i.pointerId)}}function Do(s,i,l,f,g,v){return s===null||s.nativeEvent!==v?(s={blockedOn:i,domEventName:l,eventSystemFlags:f,nativeEvent:v,targetContainers:[g]},i!==null&&(i=Yo(i),i!==null&&fd(i)),s):(s.eventSystemFlags|=f,i=s.targetContainers,g!==null&&i.indexOf(g)===-1&&i.push(g),s)}function TC(s,i,l,f,g){switch(i){case"focusin":return _r=Do(_r,s,i,l,f,g),!0;case"dragenter":return Pr=Do(Pr,s,i,l,f,g),!0;case"mouseover":return Rr=Do(Rr,s,i,l,f,g),!0;case"pointerover":var v=g.pointerId;return Oo.set(v,Do(Oo.get(v)||null,s,i,l,f,g)),!0;case"gotpointercapture":return v=g.pointerId,Mo.set(v,Do(Mo.get(v)||null,s,i,l,f,g)),!0}return!1}function Mg(s){var i=bs(s.target);if(i!==null){var l=ws(i);if(l!==null){if(i=l.tag,i===13){if(i=xg(l),i!==null){s.blockedOn=i,Ag(s.priority,function(){Pg(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){s.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Tl(s){if(s.blockedOn!==null)return!1;for(var i=s.targetContainers;0<i.length;){var l=md(s.domEventName,s.eventSystemFlags,i[0],s.nativeEvent);if(l===null){l=s.nativeEvent;var f=new l.constructor(l.type,l);nd=f,l.target.dispatchEvent(f),nd=null}else return i=Yo(l),i!==null&&fd(i),s.blockedOn=l,!1;i.shift()}return!0}function Dg(s,i,l){Tl(s)&&l.delete(i)}function _C(){hd=!1,_r!==null&&Tl(_r)&&(_r=null),Pr!==null&&Tl(Pr)&&(Pr=null),Rr!==null&&Tl(Rr)&&(Rr=null),Oo.forEach(Dg),Mo.forEach(Dg)}function Lo(s,i){s.blockedOn===i&&(s.blockedOn=null,hd||(hd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_C)))}function Io(s){function i(g){return Lo(g,s)}if(0<jl.length){Lo(jl[0],s);for(var l=1;l<jl.length;l++){var f=jl[l];f.blockedOn===s&&(f.blockedOn=null)}}for(_r!==null&&Lo(_r,s),Pr!==null&&Lo(Pr,s),Rr!==null&&Lo(Rr,s),Oo.forEach(i),Mo.forEach(i),l=0;l<Ar.length;l++)f=Ar[l],f.blockedOn===s&&(f.blockedOn=null);for(;0<Ar.length&&(l=Ar[0],l.blockedOn===null);)Mg(l),l.blockedOn===null&&Ar.shift()}var di=_.ReactCurrentBatchConfig,_l=!0;function PC(s,i,l,f){var g=Ve,v=di.transition;di.transition=null;try{Ve=1,pd(s,i,l,f)}finally{Ve=g,di.transition=v}}function RC(s,i,l,f){var g=Ve,v=di.transition;di.transition=null;try{Ve=4,pd(s,i,l,f)}finally{Ve=g,di.transition=v}}function pd(s,i,l,f){if(_l){var g=md(s,i,l,f);if(g===null)Ad(s,i,f,Pl,l),Og(s,f);else if(TC(g,s,i,l,f))f.stopPropagation();else if(Og(s,f),i&4&&-1<jC.indexOf(s)){for(;g!==null;){var v=Yo(g);if(v!==null&&_g(v),v=md(s,i,l,f),v===null&&Ad(s,i,f,Pl,l),v===g)break;g=v}g!==null&&f.stopPropagation()}else Ad(s,i,f,null,l)}}var Pl=null;function md(s,i,l,f){if(Pl=null,s=rd(f),s=bs(s),s!==null)if(i=ws(s),i===null)s=null;else if(l=i.tag,l===13){if(s=xg(i),s!==null)return s;s=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null);return Pl=s,null}function Lg(s){switch(s){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vC()){case ld:return 1;case Eg:return 4;case Sl:case xC:return 16;case kg:return 536870912;default:return 16}default:return 16}}var Or=null,gd=null,Rl=null;function Ig(){if(Rl)return Rl;var s,i=gd,l=i.length,f,g="value"in Or?Or.value:Or.textContent,v=g.length;for(s=0;s<l&&i[s]===g[s];s++);var k=l-s;for(f=1;f<=k&&i[l-f]===g[v-f];f++);return Rl=g.slice(s,1<f?1-f:void 0)}function Al(s){var i=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&i===13&&(s=13)):s=i,s===10&&(s=13),32<=s||s===13?s:0}function Ol(){return!0}function Fg(){return!1}function sn(s){function i(l,f,g,v,k){this._reactName=l,this._targetInst=g,this.type=f,this.nativeEvent=v,this.target=k,this.currentTarget=null;for(var P in s)s.hasOwnProperty(P)&&(l=s[P],this[P]=l?l(v):v[P]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ol:Fg,this.isPropagationStopped=Fg,this}return Y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ol)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ol)},persist:function(){},isPersistent:Ol}),i}var fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yd=sn(fi),Fo=Y({},fi,{view:0,detail:0}),AC=sn(Fo),vd,xd,Bo,Ml=Y({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bd,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Bo&&(Bo&&s.type==="mousemove"?(vd=s.screenX-Bo.screenX,xd=s.screenY-Bo.screenY):xd=vd=0,Bo=s),vd)},movementY:function(s){return"movementY"in s?s.movementY:xd}}),Bg=sn(Ml),OC=Y({},Ml,{dataTransfer:0}),MC=sn(OC),DC=Y({},Fo,{relatedTarget:0}),wd=sn(DC),LC=Y({},fi,{animationName:0,elapsedTime:0,pseudoElement:0}),IC=sn(LC),FC=Y({},fi,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),BC=sn(FC),VC=Y({},fi,{data:0}),Vg=sn(VC),UC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zC={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"},$C={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WC(s){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(s):(s=$C[s])?!!i[s]:!1}function bd(){return WC}var HC=Y({},Fo,{key:function(s){if(s.key){var i=UC[s.key]||s.key;if(i!=="Unidentified")return i}return s.type==="keypress"?(s=Al(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?zC[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bd,charCode:function(s){return s.type==="keypress"?Al(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Al(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),qC=sn(HC),GC=Y({},Ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ug=sn(GC),KC=Y({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bd}),YC=sn(KC),QC=Y({},fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),XC=sn(QC),JC=Y({},Ml,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),ZC=sn(JC),eE=[9,13,27,32],Sd=d&&"CompositionEvent"in window,Vo=null;d&&"documentMode"in document&&(Vo=document.documentMode);var tE=d&&"TextEvent"in window&&!Vo,zg=d&&(!Sd||Vo&&8<Vo&&11>=Vo),$g=" ",Wg=!1;function Hg(s,i){switch(s){case"keyup":return eE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qg(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var hi=!1;function nE(s,i){switch(s){case"compositionend":return qg(i);case"keypress":return i.which!==32?null:(Wg=!0,$g);case"textInput":return s=i.data,s===$g&&Wg?null:s;default:return null}}function rE(s,i){if(hi)return s==="compositionend"||!Sd&&Hg(s,i)?(s=Ig(),Rl=gd=Or=null,hi=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return zg&&i.locale!=="ko"?null:i.data;default:return null}}var sE={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 Gg(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i==="input"?!!sE[s.type]:i==="textarea"}function Kg(s,i,l,f){pg(f),i=Bl(i,"onChange"),0<i.length&&(l=new yd("onChange","change",null,l,f),s.push({event:l,listeners:i}))}var Uo=null,zo=null;function iE(s){fy(s,0)}function Dl(s){var i=vi(s);if(Te(i))return s}function oE(s,i){if(s==="change")return i}var Yg=!1;if(d){var Nd;if(d){var Cd="oninput"in document;if(!Cd){var Qg=document.createElement("div");Qg.setAttribute("oninput","return;"),Cd=typeof Qg.oninput=="function"}Nd=Cd}else Nd=!1;Yg=Nd&&(!document.documentMode||9<document.documentMode)}function Xg(){Uo&&(Uo.detachEvent("onpropertychange",Jg),zo=Uo=null)}function Jg(s){if(s.propertyName==="value"&&Dl(zo)){var i=[];Kg(i,zo,s,rd(s)),vg(iE,i)}}function aE(s,i,l){s==="focusin"?(Xg(),Uo=i,zo=l,Uo.attachEvent("onpropertychange",Jg)):s==="focusout"&&Xg()}function lE(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Dl(zo)}function cE(s,i){if(s==="click")return Dl(i)}function uE(s,i){if(s==="input"||s==="change")return Dl(i)}function dE(s,i){return s===i&&(s!==0||1/s===1/i)||s!==s&&i!==i}var _n=typeof Object.is=="function"?Object.is:dE;function $o(s,i){if(_n(s,i))return!0;if(typeof s!="object"||s===null||typeof i!="object"||i===null)return!1;var l=Object.keys(s),f=Object.keys(i);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var g=l[f];if(!h.call(i,g)||!_n(s[g],i[g]))return!1}return!0}function Zg(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function ey(s,i){var l=Zg(s);s=0;for(var f;l;){if(l.nodeType===3){if(f=s+l.textContent.length,s<=i&&f>=i)return{node:l,offset:i-s};s=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zg(l)}}function ty(s,i){return s&&i?s===i?!0:s&&s.nodeType===3?!1:i&&i.nodeType===3?ty(s,i.parentNode):"contains"in s?s.contains(i):s.compareDocumentPosition?!!(s.compareDocumentPosition(i)&16):!1:!1}function ny(){for(var s=window,i=We();i instanceof s.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)s=i.contentWindow;else break;i=We(s.document)}return i}function Ed(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i&&(i==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||i==="textarea"||s.contentEditable==="true")}function fE(s){var i=ny(),l=s.focusedElem,f=s.selectionRange;if(i!==l&&l&&l.ownerDocument&&ty(l.ownerDocument.documentElement,l)){if(f!==null&&Ed(l)){if(i=f.start,s=f.end,s===void 0&&(s=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(s,l.value.length);else if(s=(i=l.ownerDocument||document)&&i.defaultView||window,s.getSelection){s=s.getSelection();var g=l.textContent.length,v=Math.min(f.start,g);f=f.end===void 0?v:Math.min(f.end,g),!s.extend&&v>f&&(g=f,f=v,v=g),g=ey(l,v);var k=ey(l,f);g&&k&&(s.rangeCount!==1||s.anchorNode!==g.node||s.anchorOffset!==g.offset||s.focusNode!==k.node||s.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),s.removeAllRanges(),v>f?(s.addRange(i),s.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),s.addRange(i)))}}for(i=[],s=l;s=s.parentNode;)s.nodeType===1&&i.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)s=i[l],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var hE=d&&"documentMode"in document&&11>=document.documentMode,pi=null,kd=null,Wo=null,jd=!1;function ry(s,i,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;jd||pi==null||pi!==We(f)||(f=pi,"selectionStart"in f&&Ed(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Wo&&$o(Wo,f)||(Wo=f,f=Bl(kd,"onSelect"),0<f.length&&(i=new yd("onSelect","select",null,i,l),s.push({event:i,listeners:f}),i.target=pi)))}function Ll(s,i){var l={};return l[s.toLowerCase()]=i.toLowerCase(),l["Webkit"+s]="webkit"+i,l["Moz"+s]="moz"+i,l}var mi={animationend:Ll("Animation","AnimationEnd"),animationiteration:Ll("Animation","AnimationIteration"),animationstart:Ll("Animation","AnimationStart"),transitionend:Ll("Transition","TransitionEnd")},Td={},sy={};d&&(sy=document.createElement("div").style,"AnimationEvent"in window||(delete mi.animationend.animation,delete mi.animationiteration.animation,delete mi.animationstart.animation),"TransitionEvent"in window||delete mi.transitionend.transition);function Il(s){if(Td[s])return Td[s];if(!mi[s])return s;var i=mi[s],l;for(l in i)if(i.hasOwnProperty(l)&&l in sy)return Td[s]=i[l];return s}var iy=Il("animationend"),oy=Il("animationiteration"),ay=Il("animationstart"),ly=Il("transitionend"),cy=new Map,uy="abort auxClick 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(" ");function Mr(s,i){cy.set(s,i),a(i,[s])}for(var _d=0;_d<uy.length;_d++){var Pd=uy[_d],pE=Pd.toLowerCase(),mE=Pd[0].toUpperCase()+Pd.slice(1);Mr(pE,"on"+mE)}Mr(iy,"onAnimationEnd"),Mr(oy,"onAnimationIteration"),Mr(ay,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(ly,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ho="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(" "),gE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ho));function dy(s,i,l){var f=s.type||"unknown-event";s.currentTarget=l,pC(f,i,void 0,s),s.currentTarget=null}function fy(s,i){i=(i&4)!==0;for(var l=0;l<s.length;l++){var f=s[l],g=f.event;f=f.listeners;e:{var v=void 0;if(i)for(var k=f.length-1;0<=k;k--){var P=f[k],A=P.instance,z=P.currentTarget;if(P=P.listener,A!==v&&g.isPropagationStopped())break e;dy(g,P,z),v=A}else for(k=0;k<f.length;k++){if(P=f[k],A=P.instance,z=P.currentTarget,P=P.listener,A!==v&&g.isPropagationStopped())break e;dy(g,P,z),v=A}}}if(bl)throw s=ad,bl=!1,ad=null,s}function He(s,i){var l=i[Fd];l===void 0&&(l=i[Fd]=new Set);var f=s+"__bubble";l.has(f)||(hy(i,s,2,!1),l.add(f))}function Rd(s,i,l){var f=0;i&&(f|=4),hy(l,s,f,i)}var Fl="_reactListening"+Math.random().toString(36).slice(2);function qo(s){if(!s[Fl]){s[Fl]=!0,r.forEach(function(l){l!=="selectionchange"&&(gE.has(l)||Rd(l,!1,s),Rd(l,!0,s))});var i=s.nodeType===9?s:s.ownerDocument;i===null||i[Fl]||(i[Fl]=!0,Rd("selectionchange",!1,i))}}function hy(s,i,l,f){switch(Lg(i)){case 1:var g=PC;break;case 4:g=RC;break;default:g=pd}l=g.bind(null,i,l,s),g=void 0,!od||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(g=!0),f?g!==void 0?s.addEventListener(i,l,{capture:!0,passive:g}):s.addEventListener(i,l,!0):g!==void 0?s.addEventListener(i,l,{passive:g}):s.addEventListener(i,l,!1)}function Ad(s,i,l,f,g){var v=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var k=f.tag;if(k===3||k===4){var P=f.stateNode.containerInfo;if(P===g||P.nodeType===8&&P.parentNode===g)break;if(k===4)for(k=f.return;k!==null;){var A=k.tag;if((A===3||A===4)&&(A=k.stateNode.containerInfo,A===g||A.nodeType===8&&A.parentNode===g))return;k=k.return}for(;P!==null;){if(k=bs(P),k===null)return;if(A=k.tag,A===5||A===6){f=v=k;continue e}P=P.parentNode}}f=f.return}vg(function(){var z=v,q=rd(l),Q=[];e:{var H=cy.get(s);if(H!==void 0){var ie=yd,de=s;switch(s){case"keypress":if(Al(l)===0)break e;case"keydown":case"keyup":ie=qC;break;case"focusin":de="focus",ie=wd;break;case"focusout":de="blur",ie=wd;break;case"beforeblur":case"afterblur":ie=wd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=Bg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=MC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=YC;break;case iy:case oy:case ay:ie=IC;break;case ly:ie=XC;break;case"scroll":ie=AC;break;case"wheel":ie=ZC;break;case"copy":case"cut":case"paste":ie=BC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=Ug}var me=(i&4)!==0,it=!me&&s==="scroll",F=me?H!==null?H+"Capture":null:H;me=[];for(var D=z,V;D!==null;){V=D;var J=V.stateNode;if(V.tag===5&&J!==null&&(V=J,F!==null&&(J=To(D,F),J!=null&&me.push(Go(D,J,V)))),it)break;D=D.return}0<me.length&&(H=new ie(H,de,null,l,q),Q.push({event:H,listeners:me}))}}if((i&7)===0){e:{if(H=s==="mouseover"||s==="pointerover",ie=s==="mouseout"||s==="pointerout",H&&l!==nd&&(de=l.relatedTarget||l.fromElement)&&(bs(de)||de[ar]))break e;if((ie||H)&&(H=q.window===q?q:(H=q.ownerDocument)?H.defaultView||H.parentWindow:window,ie?(de=l.relatedTarget||l.toElement,ie=z,de=de?bs(de):null,de!==null&&(it=ws(de),de!==it||de.tag!==5&&de.tag!==6)&&(de=null)):(ie=null,de=z),ie!==de)){if(me=Bg,J="onMouseLeave",F="onMouseEnter",D="mouse",(s==="pointerout"||s==="pointerover")&&(me=Ug,J="onPointerLeave",F="onPointerEnter",D="pointer"),it=ie==null?H:vi(ie),V=de==null?H:vi(de),H=new me(J,D+"leave",ie,l,q),H.target=it,H.relatedTarget=V,J=null,bs(q)===z&&(me=new me(F,D+"enter",de,l,q),me.target=V,me.relatedTarget=it,J=me),it=J,ie&&de)t:{for(me=ie,F=de,D=0,V=me;V;V=gi(V))D++;for(V=0,J=F;J;J=gi(J))V++;for(;0<D-V;)me=gi(me),D--;for(;0<V-D;)F=gi(F),V--;for(;D--;){if(me===F||F!==null&&me===F.alternate)break t;me=gi(me),F=gi(F)}me=null}else me=null;ie!==null&&py(Q,H,ie,me,!1),de!==null&&it!==null&&py(Q,it,de,me,!0)}}e:{if(H=z?vi(z):window,ie=H.nodeName&&H.nodeName.toLowerCase(),ie==="select"||ie==="input"&&H.type==="file")var ve=oE;else if(Gg(H))if(Yg)ve=uE;else{ve=lE;var Se=aE}else(ie=H.nodeName)&&ie.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(ve=cE);if(ve&&(ve=ve(s,z))){Kg(Q,ve,l,q);break e}Se&&Se(s,H,z),s==="focusout"&&(Se=H._wrapperState)&&Se.controlled&&H.type==="number"&&Tr(H,"number",H.value)}switch(Se=z?vi(z):window,s){case"focusin":(Gg(Se)||Se.contentEditable==="true")&&(pi=Se,kd=z,Wo=null);break;case"focusout":Wo=kd=pi=null;break;case"mousedown":jd=!0;break;case"contextmenu":case"mouseup":case"dragend":jd=!1,ry(Q,l,q);break;case"selectionchange":if(hE)break;case"keydown":case"keyup":ry(Q,l,q)}var Ne;if(Sd)e:{switch(s){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else hi?Hg(s,l)&&(_e="onCompositionEnd"):s==="keydown"&&l.keyCode===229&&(_e="onCompositionStart");_e&&(zg&&l.locale!=="ko"&&(hi||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&hi&&(Ne=Ig()):(Or=q,gd="value"in Or?Or.value:Or.textContent,hi=!0)),Se=Bl(z,_e),0<Se.length&&(_e=new Vg(_e,s,null,l,q),Q.push({event:_e,listeners:Se}),Ne?_e.data=Ne:(Ne=qg(l),Ne!==null&&(_e.data=Ne)))),(Ne=tE?nE(s,l):rE(s,l))&&(z=Bl(z,"onBeforeInput"),0<z.length&&(q=new Vg("onBeforeInput","beforeinput",null,l,q),Q.push({event:q,listeners:z}),q.data=Ne))}fy(Q,i)})}function Go(s,i,l){return{instance:s,listener:i,currentTarget:l}}function Bl(s,i){for(var l=i+"Capture",f=[];s!==null;){var g=s,v=g.stateNode;g.tag===5&&v!==null&&(g=v,v=To(s,l),v!=null&&f.unshift(Go(s,v,g)),v=To(s,i),v!=null&&f.push(Go(s,v,g))),s=s.return}return f}function gi(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function py(s,i,l,f,g){for(var v=i._reactName,k=[];l!==null&&l!==f;){var P=l,A=P.alternate,z=P.stateNode;if(A!==null&&A===f)break;P.tag===5&&z!==null&&(P=z,g?(A=To(l,v),A!=null&&k.unshift(Go(l,A,P))):g||(A=To(l,v),A!=null&&k.push(Go(l,A,P)))),l=l.return}k.length!==0&&s.push({event:i,listeners:k})}var yE=/\r\n?/g,vE=/\u0000|\uFFFD/g;function my(s){return(typeof s=="string"?s:""+s).replace(yE,`
38`).replace(vE,"")}function Vl(s,i,l){if(i=my(i),my(s)!==i&&l)throw Error(n(425))}function Ul(){}var Od=null,Md=null;function Dd(s,i){return s==="textarea"||s==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ld=typeof setTimeout=="function"?setTimeout:void 0,xE=typeof clearTimeout=="function"?clearTimeout:void 0,gy=typeof Promise=="function"?Promise:void 0,wE=typeof queueMicrotask=="function"?queueMicrotask:typeof gy<"u"?function(s){return gy.resolve(null).then(s).catch(bE)}:Ld;function bE(s){setTimeout(function(){throw s})}function Id(s,i){var l=i,f=0;do{var g=l.nextSibling;if(s.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(f===0){s.removeChild(g),Io(i);return}f--}else l!=="$"&&l!=="$?"&&l!=="$!"||f++;l=g}while(l);Io(i)}function Dr(s){for(;s!=null;s=s.nextSibling){var i=s.nodeType;if(i===1||i===3)break;if(i===8){if(i=s.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return s}function yy(s){s=s.previousSibling;for(var i=0;s;){if(s.nodeType===8){var l=s.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return s;i--}else l==="/$"&&i++}s=s.previousSibling}return null}var yi=Math.random().toString(36).slice(2),Hn="__reactFiber$"+yi,Ko="__reactProps$"+yi,ar="__reactContainer$"+yi,Fd="__reactEvents$"+yi,SE="__reactListeners$"+yi,NE="__reactHandles$"+yi;function bs(s){var i=s[Hn];if(i)return i;for(var l=s.parentNode;l;){if(i=l[ar]||l[Hn]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(s=yy(s);s!==null;){if(l=s[Hn])return l;s=yy(s)}return i}s=l,l=s.parentNode}return null}function Yo(s){return s=s[Hn]||s[ar],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function vi(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function zl(s){return s[Ko]||null}var Bd=[],xi=-1;function Lr(s){return{current:s}}function qe(s){0>xi||(s.current=Bd[xi],Bd[xi]=null,xi--)}function $e(s,i){xi++,Bd[xi]=s.current,s.current=i}var Ir={},Ot=Lr(Ir),qt=Lr(!1),Ss=Ir;function wi(s,i){var l=s.type.contextTypes;if(!l)return Ir;var f=s.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===i)return f.__reactInternalMemoizedMaskedChildContext;var g={},v;for(v in l)g[v]=i[v];return f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=i,s.__reactInternalMemoizedMaskedChildContext=g),g}function Gt(s){return s=s.childContextTypes,s!=null}function $l(){qe(qt),qe(Ot)}function vy(s,i,l){if(Ot.current!==Ir)throw Error(n(168));$e(Ot,i),$e(qt,l)}function xy(s,i,l){var f=s.stateNode;if(i=i.childContextTypes,typeof f.getChildContext!="function")return l;f=f.getChildContext();for(var g in f)if(!(g in i))throw Error(n(108,X(s)||"Unknown",g));return Y({},l,f)}function Wl(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ir,Ss=Ot.current,$e(Ot,s),$e(qt,qt.current),!0}function wy(s,i,l){var f=s.stateNode;if(!f)throw Error(n(169));l?(s=xy(s,i,Ss),f.__reactInternalMemoizedMergedChildContext=s,qe(qt),qe(Ot),$e(Ot,s)):qe(qt),$e(qt,l)}var lr=null,Hl=!1,Vd=!1;function by(s){lr===null?lr=[s]:lr.push(s)}function CE(s){Hl=!0,by(s)}function Fr(){if(!Vd&&lr!==null){Vd=!0;var s=0,i=Ve;try{var l=lr;for(Ve=1;s<l.length;s++){var f=l[s];do f=f(!0);while(f!==null)}lr=null,Hl=!1}catch(g){throw lr!==null&&(lr=lr.slice(s+1)),Ng(ld,Fr),g}finally{Ve=i,Vd=!1}}return null}var bi=[],Si=0,ql=null,Gl=0,mn=[],gn=0,Ns=null,cr=1,ur="";function Cs(s,i){bi[Si++]=Gl,bi[Si++]=ql,ql=s,Gl=i}function Sy(s,i,l){mn[gn++]=cr,mn[gn++]=ur,mn[gn++]=Ns,Ns=s;var f=cr;s=ur;var g=32-Tn(f)-1;f&=~(1<<g),l+=1;var v=32-Tn(i)+g;if(30<v){var k=g-g%5;v=(f&(1<<k)-1).toString(32),f>>=k,g-=k,cr=1<<32-Tn(i)+g|l<<g|f,ur=v+s}else cr=1<<v|l<<g|f,ur=s}function Ud(s){s.return!==null&&(Cs(s,1),Sy(s,1,0))}function zd(s){for(;s===ql;)ql=bi[--Si],bi[Si]=null,Gl=bi[--Si],bi[Si]=null;for(;s===Ns;)Ns=mn[--gn],mn[gn]=null,ur=mn[--gn],mn[gn]=null,cr=mn[--gn],mn[gn]=null}var on=null,an=null,Ke=!1,Pn=null;function Ny(s,i){var l=wn(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=s,i=s.deletions,i===null?(s.deletions=[l],s.flags|=16):i.push(l)}function Cy(s,i){switch(s.tag){case 5:var l=s.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(s.stateNode=i,on=s,an=Dr(i.firstChild),!0):!1;case 6:return i=s.pendingProps===""||i.nodeType!==3?null:i,i!==null?(s.stateNode=i,on=s,an=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=Ns!==null?{id:cr,overflow:ur}:null,s.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=wn(18,null,null,0),l.stateNode=i,l.return=s,s.child=l,on=s,an=null,!0):!1;default:return!1}}function $d(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Wd(s){if(Ke){var i=an;if(i){var l=i;
vendor: 1,672 bytes, line 38
38if(!Cy(s,i)){if($d(s))throw Error(n(418));i=Dr(l.nextSibling);var f=on;i&&Cy(s,i)?Ny(f,l):(s.flags=s.flags&-4097|2,Ke=!1,on=s)}}else{if($d(s))throw Error(n(418));s.flags=s.flags&-4097|2,Ke=!1,on=s}}}function Ey(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;on=s}function Kl(s){if(s!==on)return!1;if(!Ke)return Ey(s),Ke=!0,!1;var i;if((i=s.tag!==3)&&!(i=s.tag!==5)&&(i=s.type,i=i!=="head"&&i!=="body"&&!Dd(s.type,s.memoizedProps)),i&&(i=an)){if($d(s))throw ky(),Error(n(418));for(;i;)Ny(s,i),i=Dr(i.nextSibling)}if(Ey(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,i=0;s;){if(s.nodeType===8){var l=s.data;if(l==="/$"){if(i===0){an=Dr(s.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}s=s.nextSibling}an=null}}else an=on?Dr(s.stateNode.nextSibling):null;return!0}function ky(){for(var s=an;s;)s=Dr(s.nextSibling)}function Ni(){an=on=null,Ke=!1}function Hd(s){Pn===null?Pn=[s]:Pn.push(s)}var EE=_.ReactCurrentBatchConfig;function Qo(s,i,l){if(s=l.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var f=l.stateNode}if(!f)throw Error(n(147,s));var g=f,v=""+s;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===v?i.ref:(i=function(k){var P=g.refs;k===null?delete P[v]:P[v]=k},i._stringRef=v,i)}if(typeof s!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,s))}return s}function Yl(s,i){throw s=Object.prototype.toString.call(i),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s))}function jy(s){var i=s._init;return i(s._payload)}
vendor: 1,257 bytes, line 38
38function Ty(s){function i(F,D){if(s){var V=F.deletions;V===null?(F.deletions=[D],F.flags|=16):V.push(D)}}function l(F,D){if(!s)return null;for(;D!==null;)i(F,D),D=D.sibling;return null}function f(F,D){for(F=new Map;D!==null;)D.key!==null?F.set(D.key,D):F.set(D.index,D),D=D.sibling;return F}function g(F,D){return F=qr(F,D),F.index=0,F.sibling=null,F}function v(F,D,V){return F.index=V,s?(V=F.alternate,V!==null?(V=V.index,V<D?(F.flags|=2,D):V):(F.flags|=2,D)):(F.flags|=1048576,D)}function k(F){return s&&F.alternate===null&&(F.flags|=2),F}function P(F,D,V,J){return D===null||D.tag!==6?(D=If(V,F.mode,J),D.return=F,D):(D=g(D,V),D.return=F,D)}function A(F,D,V,J){var ve=V.type;return ve===$?q(F,D,V.props.children,J,V.key):D!==null&&(D.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===le&&jy(ve)===D.type)?(J=g(D,V.props),J.ref=Qo(F,D,V),J.return=F,J):(J=xc(V.type,V.key,V.props,null,F.mode,J),J.ref=Qo(F,D,V),J.return=F,J)}function z(F,D,V,J){return D===null||D.tag!==4||D.stateNode.containerInfo!==V.containerInfo||D.stateNode.implementation!==V.implementation?(D=Ff(V,F.mode,J),D.return=F,D):(D=g(D,V.children||[]),D.return=F,D)}function q(F,D,V,J,ve){return D===null||D.tag!==7?(D=As(V,F.mode,J,ve),D.return=F,D):(D=g(D,V),D.return=F,D)}
vendor: 10,549 bytes, line 38
38function Q(F,D,V){if(typeof D=="string"&&D!==""||typeof D=="number")return D=If(""+D,F.mode,V),D.return=F,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case R:return V=xc(D.type,D.key,D.props,null,F.mode,V),V.ref=Qo(F,null,D),V.return=F,V;case U:return D=Ff(D,F.mode,V),D.return=F,D;case le:var J=D._init;return Q(F,J(D._payload),V)}if(Eo(D)||ee(D))return D=As(D,F.mode,V,null),D.return=F,D;Yl(F,D)}return null}function H(F,D,V,J){var ve=D!==null?D.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return ve!==null?null:P(F,D,""+V,J);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case R:return V.key===ve?A(F,D,V,J):null;case U:return V.key===ve?z(F,D,V,J):null;case le:return ve=V._init,H(F,D,ve(V._payload),J)}if(Eo(V)||ee(V))return ve!==null?null:q(F,D,V,J,null);Yl(F,V)}return null}function ie(F,D,V,J,ve){if(typeof J=="string"&&J!==""||typeof J=="number")return F=F.get(V)||null,P(D,F,""+J,ve);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case R:return F=F.get(J.key===null?V:J.key)||null,A(D,F,J,ve);case U:return F=F.get(J.key===null?V:J.key)||null,z(D,F,J,ve);case le:var Se=J._init;return ie(F,D,V,Se(J._payload),ve)}if(Eo(J)||ee(J))return F=F.get(V)||null,q(D,F,J,ve,null);Yl(D,J)}return null}function de(F,D,V,J){for(var ve=null,Se=null,Ne=D,_e=D=0,bt=null;Ne!==null&&_e<V.length;_e++){Ne.index>_e?(bt=Ne,Ne=null):bt=Ne.sibling;var Fe=H(F,Ne,V[_e],J);if(Fe===null){Ne===null&&(Ne=bt);break}s&&Ne&&Fe.alternate===null&&i(F,Ne),D=v(Fe,D,_e),Se===null?ve=Fe:Se.sibling=Fe,Se=Fe,Ne=bt}if(_e===V.length)return l(F,Ne),Ke&&Cs(F,_e),ve;if(Ne===null){for(;_e<V.length;_e++)Ne=Q(F,V[_e],J),Ne!==null&&(D=v(Ne,D,_e),Se===null?ve=Ne:Se.sibling=Ne,Se=Ne);return Ke&&Cs(F,_e),ve}for(Ne=f(F,Ne);_e<V.length;_e++)bt=ie(Ne,F,_e,V[_e],J),bt!==null&&(s&&bt.alternate!==null&&Ne.delete(bt.key===null?_e:bt.key),D=v(bt,D,_e),Se===null?ve=bt:Se.sibling=bt,Se=bt);return s&&Ne.forEach(function(Gr){return i(F,Gr)}),Ke&&Cs(F,_e),ve}function me(F,D,V,J){var ve=ee(V);if(typeof ve!="function")throw Error(n(150));if(V=ve.call(V),V==null)throw Error(n(151));for(var Se=ve=null,Ne=D,_e=D=0,bt=null,Fe=V.next();Ne!==null&&!Fe.done;_e++,Fe=V.next()){Ne.index>_e?(bt=Ne,Ne=null):bt=Ne.sibling;var Gr=H(F,Ne,Fe.value,J);if(Gr===null){Ne===null&&(Ne=bt);break}s&&Ne&&Gr.alternate===null&&i(F,Ne),D=v(Gr,D,_e),Se===null?ve=Gr:Se.sibling=Gr,Se=Gr,Ne=bt}if(Fe.done)return l(F,Ne),Ke&&Cs(F,_e),ve;if(Ne===null){for(;!Fe.done;_e++,Fe=V.next())Fe=Q(F,Fe.value,J),Fe!==null&&(D=v(Fe,D,_e),Se===null?ve=Fe:Se.sibling=Fe,Se=Fe);return Ke&&Cs(F,_e),ve}for(Ne=f(F,Ne);!Fe.done;_e++,Fe=V.next())Fe=ie(Ne,F,_e,Fe.value,J),Fe!==null&&(s&&Fe.alternate!==null&&Ne.delete(Fe.key===null?_e:Fe.key),D=v(Fe,D,_e),Se===null?ve=Fe:Se.sibling=Fe,Se=Fe);return s&&Ne.forEach(function(sk){return i(F,sk)}),Ke&&Cs(F,_e),ve}function it(F,D,V,J){if(typeof V=="object"&&V!==null&&V.type===$&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case R:e:{for(var ve=V.key,Se=D;Se!==null;){if(Se.key===ve){if(ve=V.type,ve===$){if(Se.tag===7){l(F,Se.sibling),D=g(Se,V.props.children),D.return=F,F=D;break e}}else if(Se.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===le&&jy(ve)===Se.type){l(F,Se.sibling),D=g(Se,V.props),D.ref=Qo(F,Se,V),D.return=F,F=D;break e}l(F,Se);break}else i(F,Se);Se=Se.sibling}V.type===$?(D=As(V.props.children,F.mode,J,V.key),D.return=F,F=D):(J=xc(V.type,V.key,V.props,null,F.mode,J),J.ref=Qo(F,D,V),J.return=F,F=J)}return k(F);case U:e:{for(Se=V.key;D!==null;){if(D.key===Se)if(D.tag===4&&D.stateNode.containerInfo===V.containerInfo&&D.stateNode.implementation===V.implementation){l(F,D.sibling),D=g(D,V.children||[]),D.return=F,F=D;break e}else{l(F,D);break}else i(F,D);D=D.sibling}D=Ff(V,F.mode,J),D.return=F,F=D}return k(F);case le:return Se=V._init,it(F,D,Se(V._payload),J)}if(Eo(V))return de(F,D,V,J);if(ee(V))return me(F,D,V,J);Yl(F,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,D!==null&&D.tag===6?(l(F,D.sibling),D=g(D,V),D.return=F,F=D):(l(F,D),D=If(V,F.mode,J),D.return=F,F=D),k(F)):l(F,D)}return it}var Ci=Ty(!0),_y=Ty(!1),Ql=Lr(null),Xl=null,Ei=null,qd=null;function Gd(){qd=Ei=Xl=null}function Kd(s){var i=Ql.current;qe(Ql),s._currentValue=i}function Yd(s,i,l){for(;s!==null;){var f=s.alternate;if((s.childLanes&i)!==i?(s.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),s===l)break;s=s.return}}function ki(s,i){Xl=s,qd=Ei=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&i)!==0&&(Kt=!0),s.firstContext=null)}function yn(s){var i=s._currentValue;if(qd!==s)if(s={context:s,memoizedValue:i,next:null},Ei===null){if(Xl===null)throw Error(n(308));Ei=s,Xl.dependencies={lanes:0,firstContext:s}}else Ei=Ei.next=s;return i}var Es=null;function Qd(s){Es===null?Es=[s]:Es.push(s)}function Py(s,i,l,f){var g=i.interleaved;return g===null?(l.next=l,Qd(i)):(l.next=g.next,g.next=l),i.interleaved=l,dr(s,f)}function dr(s,i){s.lanes|=i;var l=s.alternate;for(l!==null&&(l.lanes|=i),l=s,s=s.return;s!==null;)s.childLanes|=i,l=s.alternate,l!==null&&(l.childLanes|=i),l=s,s=s.return;return l.tag===3?l.stateNode:null}var Br=!1;function Xd(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ry(s,i){s=s.updateQueue,i.updateQueue===s&&(i.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function fr(s,i){return{eventTime:s,lane:i,tag:0,payload:null,callback:null,next:null}}function Vr(s,i,l){var f=s.updateQueue;if(f===null)return null;if(f=f.shared,(Ie&2)!==0){var g=f.pending;return g===null?i.next=i:(i.next=g.next,g.next=i),f.pending=i,dr(s,l)}return g=f.interleaved,g===null?(i.next=i,Qd(f)):(i.next=g.next,g.next=i),f.interleaved=i,dr(s,l)}function Jl(s,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var f=i.lanes;f&=s.pendingLanes,l|=f,i.lanes=l,dd(s,l)}}function Ay(s,i){var l=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var g=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var k={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};v===null?g=v=k:v=v.next=k,l=l.next}while(l!==null);v===null?g=v=i:v=v.next=i}else g=v=i;l={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:f.shared,effects:f.effects},s.updateQueue=l;return}s=l.lastBaseUpdate,s===null?l.firstBaseUpdate=i:s.next=i,l.lastBaseUpdate=i}function Zl(s,i,l,f){var g=s.updateQueue;Br=!1;var v=g.firstBaseUpdate,k=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var A=P,z=A.next;A.next=null,k===null?v=z:k.next=z,k=A;var q=s.alternate;q!==null&&(q=q.updateQueue,P=q.lastBaseUpdate,P!==k&&(P===null?q.firstBaseUpdate=z:P.next=z,q.lastBaseUpdate=A))}if(v!==null){var Q=g.baseState;k=0,q=z=A=null,P=v;do{var H=P.lane,ie=P.eventTime;if((f&H)===H){q!==null&&(q=q.next={eventTime:ie,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var de=s,me=P;switch(H=i,ie=l,me.tag){case 1:if(de=me.payload,typeof de=="function"){Q=de.call(ie,Q,H);break e}Q=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=me.payload,H=typeof de=="function"?de.call(ie,Q,H):de,H==null)break e;Q=Y({},Q,H);break e;case 2:Br=!0}}P.callback!==null&&P.lane!==0&&(s.flags|=64,H=g.effects,H===null?g.effects=[P]:H.push(P))}else ie={eventTime:ie,lane:H,tag:P.tag,payload:P.payload,callback:P.callback,next:null},q===null?(z=q=ie,A=Q):q=q.next=ie,k|=H;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;H=P,P=H.next,H.next=null,g.lastBaseUpdate=H,g.shared.pending=null}}while(!0);if(q===null&&(A=Q),g.baseState=A,g.firstBaseUpdate=z,g.lastBaseUpdate=q,i=g.shared.interleaved,i!==null){g=i;do k|=g.lane,g=g.next;while(g!==i)}else v===null&&(g.shared.lanes=0);Ts|=k,s.lanes=k,s.memoizedState=Q}}function Oy(s,i,l){if(s=i.effects,i.effects=null,s!==null)for(i=0;i<s.length;i++){var f=s[i],g=f.callback;if(g!==null){if(f.callback=null,f=l,typeof g!="function")throw Error(n(191,g));g.call(f)}}}var Xo={},qn=Lr(Xo),Jo=Lr(Xo),Zo=Lr(Xo);function ks(s){if(s===Xo)throw Error(n(174));return s}function Jd(s,i){switch($e(Zo,i),$e(Jo,s),$e(qn,Xo),s=i.nodeType,s){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Zu(null,"");break;default:s=s===8?i.parentNode:i,i=s.namespaceURI||null,s=s.tagName,i=Zu(i,s)}qe(qn),$e(qn,i)}function ji(){qe(qn),qe(Jo),qe(Zo)}function My(s){ks(Zo.current);var i=ks(qn.current),l=Zu(i,s.type);i!==l&&($e(Jo,s),$e(qn,l))}function Zd(s){Jo.current===s&&(qe(qn),qe(Jo))}var Qe=Lr(0);function ec(s){for(var i=s;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ef=[];function tf(){for(var s=0;s<ef.length;s++)ef[s]._workInProgressVersionPrimary=null;ef.length=0}var tc=_.ReactCurrentDispatcher,nf=_.ReactCurrentBatchConfig,js=0,Xe=null,mt=null,xt=null,nc=!1,ea=!1,ta=0,kE=0;function Mt(){throw Error(n(321))}function rf(s,i){if(i===null)return!1;for(var l=0;l<i.length&&l<s.length;l++)if(!_n(s[l],i[l]))return!1;return!0}function sf(s,i,l,f,g,v){if(js=v,Xe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,tc.current=s===null||s.memoizedState===null?PE:RE,s=l(f,g),ea){v=0;do{if(ea=!1,ta=0,25<=v)throw Error(n(301));v+=1,xt=mt=null,i.updateQueue=null,tc.current=AE,s=l(f,g)}while(ea)}if(tc.current=ic,i=mt!==null&&mt.next!==null,js=0,xt=mt=Xe=null,nc=!1,i)throw Error(n(300));return s}function of(){var s=ta!==0;return ta=0,s}function Gn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?Xe.memoizedState=xt=s:xt=xt.next=s,xt}function vn(){if(mt===null){var s=Xe.alternate;s=s!==null?s.memoizedState:null}else s=mt.next;var i=xt===null?Xe.memoizedState:xt.next;if(i!==null)xt=i,mt=s;else{if(s===null)throw Error(n(310));mt=s,s={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},xt===null?Xe.memoizedState=xt=s:xt=xt.next=s}return xt}function na(s,i){return typeof i=="function"?i(s):i}function af(s){var i=vn(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=s;var f=mt,g=f.baseQueue,v=l.pending;if(v!==null){if(g!==null){var k=g.next;
vendor: 7,413 bytes, line 38
38g.next=v.next,v.next=k}f.baseQueue=g=v,l.pending=null}if(g!==null){v=g.next,f=f.baseState;var P=k=null,A=null,z=v;do{var q=z.lane;if((js&q)===q)A!==null&&(A=A.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),f=z.hasEagerState?z.eagerState:s(f,z.action);else{var Q={lane:q,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};A===null?(P=A=Q,k=f):A=A.next=Q,Xe.lanes|=q,Ts|=q}z=z.next}while(z!==null&&z!==v);A===null?k=f:A.next=P,_n(f,i.memoizedState)||(Kt=!0),i.memoizedState=f,i.baseState=k,i.baseQueue=A,l.lastRenderedState=f}if(s=l.interleaved,s!==null){g=s;do v=g.lane,Xe.lanes|=v,Ts|=v,g=g.next;while(g!==s)}else g===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function lf(s){var i=vn(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=s;var f=l.dispatch,g=l.pending,v=i.memoizedState;if(g!==null){l.pending=null;var k=g=g.next;do v=s(v,k.action),k=k.next;while(k!==g);_n(v,i.memoizedState)||(Kt=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,f]}function Dy(){}function Ly(s,i){var l=Xe,f=vn(),g=i(),v=!_n(f.memoizedState,g);if(v&&(f.memoizedState=g,Kt=!0),f=f.queue,cf(By.bind(null,l,f,s),[s]),f.getSnapshot!==i||v||xt!==null&&xt.memoizedState.tag&1){if(l.flags|=2048,ra(9,Fy.bind(null,l,f,g,i),void 0,null),wt===null)throw Error(n(349));(js&30)!==0||Iy(l,i,g)}return g}function Iy(s,i,l){s.flags|=16384,s={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i={lastEffect:null,stores:null},Xe.updateQueue=i,i.stores=[s]):(l=i.stores,l===null?i.stores=[s]:l.push(s))}function Fy(s,i,l,f){i.value=l,i.getSnapshot=f,Vy(i)&&Uy(s)}function By(s,i,l){return l(function(){Vy(i)&&Uy(s)})}function Vy(s){var i=s.getSnapshot;s=s.value;try{var l=i();return!_n(s,l)}catch{return!0}}function Uy(s){var i=dr(s,1);i!==null&&Mn(i,s,1,-1)}function zy(s){var i=Gn();return typeof s=="function"&&(s=s()),i.memoizedState=i.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:s},i.queue=s,s=s.dispatch=_E.bind(null,Xe,s),[i.memoizedState,s]}function ra(s,i,l,f){return s={tag:s,create:i,destroy:l,deps:f,next:null},i=Xe.updateQueue,i===null?(i={lastEffect:null,stores:null},Xe.updateQueue=i,i.lastEffect=s.next=s):(l=i.lastEffect,l===null?i.lastEffect=s.next=s:(f=l.next,l.next=s,s.next=f,i.lastEffect=s)),s}function $y(){return vn().memoizedState}function rc(s,i,l,f){var g=Gn();Xe.flags|=s,g.memoizedState=ra(1|i,l,void 0,f===void 0?null:f)}function sc(s,i,l,f){var g=vn();f=f===void 0?null:f;var v=void 0;if(mt!==null){var k=mt.memoizedState;if(v=k.destroy,f!==null&&rf(f,k.deps)){g.memoizedState=ra(i,l,v,f);return}}Xe.flags|=s,g.memoizedState=ra(1|i,l,v,f)}function Wy(s,i){return rc(8390656,8,s,i)}function cf(s,i){return sc(2048,8,s,i)}function Hy(s,i){return sc(4,2,s,i)}function qy(s,i){return sc(4,4,s,i)}function Gy(s,i){if(typeof i=="function")return s=s(),i(s),function(){i(null)};if(i!=null)return s=s(),i.current=s,function(){i.current=null}}function Ky(s,i,l){return l=l!=null?l.concat([s]):null,sc(4,4,Gy.bind(null,i,s),l)}function uf(){}function Yy(s,i){var l=vn();i=i===void 0?null:i;var f=l.memoizedState;return f!==null&&i!==null&&rf(i,f[1])?f[0]:(l.memoizedState=[s,i],s)}function Qy(s,i){var l=vn();i=i===void 0?null:i;var f=l.memoizedState;return f!==null&&i!==null&&rf(i,f[1])?f[0]:(s=s(),l.memoizedState=[s,i],s)}function Xy(s,i,l){return(js&21)===0?(s.baseState&&(s.baseState=!1,Kt=!0),s.memoizedState=l):(_n(l,i)||(l=jg(),Xe.lanes|=l,Ts|=l,s.baseState=!0),i)}function jE(s,i){var l=Ve;Ve=l!==0&&4>l?l:4,s(!0);var f=nf.transition;nf.transition={};try{s(!1),i()}finally{Ve=l,nf.transition=f}}function Jy(){return vn().memoizedState}function TE(s,i,l){var f=Wr(s);if(l={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null},Zy(s))e0(i,l);else if(l=Py(s,i,l,f),l!==null){var g=Ut();Mn(l,s,f,g),t0(l,i,f)}}function _E(s,i,l){var f=Wr(s),g={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null};if(Zy(s))e0(i,g);else{var v=s.alternate;if(s.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var k=i.lastRenderedState,P=v(k,l);if(g.hasEagerState=!0,g.eagerState=P,_n(P,k)){var A=i.interleaved;A===null?(g.next=g,Qd(i)):(g.next=A.next,A.next=g),i.interleaved=g;return}}catch{}finally{}l=Py(s,i,g,f),l!==null&&(g=Ut(),Mn(l,s,f,g),t0(l,i,f))}}function Zy(s){var i=s.alternate;return s===Xe||i!==null&&i===Xe}function e0(s,i){ea=nc=!0;var l=s.pending;l===null?i.next=i:(i.next=l.next,l.next=i),s.pending=i}function t0(s,i,l){if((l&4194240)!==0){var f=i.lanes;f&=s.pendingLanes,l|=f,i.lanes=l,dd(s,l)}}var ic={readContext:yn,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useInsertionEffect:Mt,useLayoutEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useMutableSource:Mt,useSyncExternalStore:Mt,useId:Mt,unstable_isNewReconciler:!1},PE={readContext:yn,useCallback:function(s,i){return Gn().memoizedState=[s,i===void 0?null:i],s},useContext:yn,useEffect:Wy,useImperativeHandle:function(s,i,l){return l=l!=null?l.concat([s]):null,rc(4194308,4,Gy.bind(null,i,s),l)},useLayoutEffect:function(s,i){return rc(4194308,4,s,i)},useInsertionEffect:function(s,i){return rc(4,2,s,i)},useMemo:function(s,i){var l=Gn();return i=i===void 0?null:i,s=s(),l.memoizedState=[s,i],s},useReducer:function(s,i,l){var f=Gn();return i=l!==void 0?l(i):i,f.memoizedState=f.baseState=i,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:i},f.queue=s,s=s.dispatch=TE.bind(null,Xe,s),[f.memoizedState,s]},useRef:function(s){var i=Gn();return s={current:s},i.memoizedState=s},useState:zy,useDebugValue:uf,useDeferredValue:function(s){return Gn().memoizedState=s},useTransition:function(){var s=zy(!1),i=s[0];return s=jE.bind(null,s[1]),Gn().memoizedState=s,[i,s]},useMutableSource:function(){},useSyncExternalStore:function(s,i,l){var f=Xe,g=Gn();if(Ke){if(l===void 0)throw Error(n(407));l=l()}else{if(l=i(),wt===null)throw Error(n(349));(js&30)!==0||Iy(f,i,l)}g.memoizedState=l;var v={value:l,getSnapshot:i};return g.queue=v,Wy(By.bind(null,f,v,s),[s]),f.flags|=2048,ra(9,Fy.bind(null,f,v,l,i),void 0,null),l},useId:function(){var s=Gn(),i=wt.identifierPrefix;if(Ke){var l=ur,f=cr;l=(f&~(1<<32-Tn(f)-1)).toString(32)+l,i=":"+i+"R"+l,l=ta++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=kE++,i=":"+i+"r"+l.toString(32)+":";return s.memoizedState=i},unstable_isNewReconciler:!1},RE={readContext:yn,useCallback:Yy,useContext:yn,useEffect:cf,useImperativeHandle:Ky,useInsertionEffect:Hy,useLayoutEffect:qy,useMemo:Qy,useReducer:af,useRef:$y,useState:function(){return af(na)},useDebugValue:uf,useDeferredValue:function(s){var i=vn();return Xy(i,mt.memoizedState,s)},useTransition:function(){var s=af(na)[0],i=vn().memoizedState;return[s,i]},useMutableSource:Dy,useSyncExternalStore:Ly,useId:Jy,unstable_isNewReconciler:!1},AE={readContext:yn,useCallback:Yy,useContext:yn,useEffect:cf,useImperativeHandle:Ky,useInsertionEffect:Hy,useLayoutEffect:qy,useMemo:Qy,useReducer:lf,useRef:$y,useState:function(){return lf(na)},useDebugValue:uf,useDeferredValue:function(s){var i=vn();return mt===null?i.memoizedState=s:Xy(i,mt.memoizedState,s)},useTransition:function(){var s=lf(na)[0],i=vn().memoizedState;return[s,i]},useMutableSource:Dy,useSyncExternalStore:Ly,useId:Jy,unstable_isNewReconciler:!1};
vendor: 5,672 bytes, lines 38-40
38function Rn(s,i){if(s&&s.defaultProps){i=Y({},i),s=s.defaultProps;for(var l in s)i[l]===void 0&&(i[l]=s[l]);return i}return i}function df(s,i,l,f){i=s.memoizedState,l=l(f,i),l=l==null?i:Y({},i,l),s.memoizedState=l,s.lanes===0&&(s.updateQueue.baseState=l)}var oc={isMounted:function(s){return(s=s._reactInternals)?ws(s)===s:!1},enqueueSetState:function(s,i,l){s=s._reactInternals;var f=Ut(),g=Wr(s),v=fr(f,g);v.payload=i,l!=null&&(v.callback=l),i=Vr(s,v,g),i!==null&&(Mn(i,s,g,f),Jl(i,s,g))},enqueueReplaceState:function(s,i,l){s=s._reactInternals;var f=Ut(),g=Wr(s),v=fr(f,g);v.tag=1,v.payload=i,l!=null&&(v.callback=l),i=Vr(s,v,g),i!==null&&(Mn(i,s,g,f),Jl(i,s,g))},enqueueForceUpdate:function(s,i){s=s._reactInternals;var l=Ut(),f=Wr(s),g=fr(l,f);g.tag=2,i!=null&&(g.callback=i),i=Vr(s,g,f),i!==null&&(Mn(i,s,f,l),Jl(i,s,f))}};function n0(s,i,l,f,g,v,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,v,k):i.prototype&&i.prototype.isPureReactComponent?!$o(l,f)||!$o(g,v):!0}function r0(s,i,l){var f=!1,g=Ir,v=i.contextType;return typeof v=="object"&&v!==null?v=yn(v):(g=Gt(i)?Ss:Ot.current,f=i.contextTypes,v=(f=f!=null)?wi(s,g):Ir),i=new i(l,v),s.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=oc,s.stateNode=i,i._reactInternals=s,f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=g,s.__reactInternalMemoizedMaskedChildContext=v),i}function s0(s,i,l,f){s=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,f),i.state!==s&&oc.enqueueReplaceState(i,i.state,null)}function ff(s,i,l,f){var g=s.stateNode;g.props=l,g.state=s.memoizedState,g.refs={},Xd(s);var v=i.contextType;typeof v=="object"&&v!==null?g.context=yn(v):(v=Gt(i)?Ss:Ot.current,g.context=wi(s,v)),g.state=s.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(df(s,i,v,l),g.state=s.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(i=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),i!==g.state&&oc.enqueueReplaceState(g,g.state,null),Zl(s,l,g,f),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308)}function Ti(s,i){try{var l="",f=i;do l+=be(f),f=f.return;while(f);var g=l}catch(v){g=`
39Error generating stack: `+v.message+`
40`+v.stack}return{value:s,source:i,stack:g,digest:null}}function hf(s,i,l){return{value:s,source:null,stack:l??null,digest:i??null}}function pf(s,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var OE=typeof WeakMap=="function"?WeakMap:Map;function i0(s,i,l){l=fr(-1,l),l.tag=3,l.payload={element:null};var f=i.value;return l.callback=function(){hc||(hc=!0,_f=f),pf(s,i)},l}function o0(s,i,l){l=fr(-1,l),l.tag=3;var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var g=i.value;l.payload=function(){return f(g)},l.callback=function(){pf(s,i)}}var v=s.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(l.callback=function(){pf(s,i),typeof f!="function"&&(zr===null?zr=new Set([this]):zr.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),l}function a0(s,i,l){var f=s.pingCache;if(f===null){f=s.pingCache=new OE;var g=new Set;f.set(i,g)}else g=f.get(i),g===void 0&&(g=new Set,f.set(i,g));g.has(l)||(g.add(l),s=GE.bind(null,s,i,l),i.then(s,s))}function l0(s){do{var i;if((i=s.tag===13)&&(i=s.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return s;s=s.return}while(s!==null);return null}function c0(s,i,l,f,g){return(s.mode&1)===0?(s===i?s.flags|=65536:(s.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=fr(-1,1),i.tag=2,Vr(l,i,1))),l.lanes|=1),s):(s.flags|=65536,s.lanes=g,s)}var ME=_.ReactCurrentOwner,Kt=!1;function Vt(s,i,l,f){i.child=s===null?_y(i,null,l,f):Ci(i,s.child,l,f)}function u0(s,i,l,f,g){l=l.render;var v=i.ref;return ki(i,g),f=sf(s,i,l,f,v,g),l=of(),s!==null&&!Kt?(i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~g,hr(s,i,g)):(Ke&&l&&Ud(i),i.flags|=1,Vt(s,i,f,g),i.child)}function d0(s,i,l,f,g){if(s===null){var v=l.type;return typeof v=="function"&&!Lf(v)&&v.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=v,f0(s,i,v,f,g)):(s=xc(l.type,null,f,i,i.mode,g),s.ref=i.ref,s.return=i,i.child=s)}if(v=s.child,(s.lanes&g)===0){var k=v.memoizedProps;if(l=l.compare,l=l!==null?l:$o,l(k,f)&&s.ref===i.ref)return hr(s,i,g)}return i.flags|=1,s=qr(v,f),s.ref=i.ref,s.return=i,i.child=s}function f0(s,i,l,f,g){if(s!==null){var v=s.memoizedProps;if($o(v,f)&&s.ref===i.ref)if(Kt=!1,i.pendingProps=f=v,(s.lanes&g)!==0)(s.flags&131072)!==0&&(Kt=!0);else return i.lanes=s.lanes,hr(s,i,g)}return mf(s,i,l,f,g)}function h0(s,i,l){var f=i.pendingProps,g=f.children,v=s!==null?s.memoizedState:null;if(f.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(Pi,ln),ln|=l;else{if((l&1073741824)===0)return s=v!==null?v.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:s,cachePool:null,transitions:null},i.updateQueue=null,$e(Pi,ln),ln|=s,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=v!==null?v.baseLanes:l,$e(Pi,ln),ln|=f}else v!==null?(f=v.baseLanes|l,i.memoizedState=null):f=l,$e(Pi,ln),ln|=f;return Vt(s,i,g,l),i.child}function p0(s,i){var l=i.ref;(s===null&&l!==null||s!==null&&s.ref!==l)&&(i.flags|=512,i.flags|=2097152)}
vendor: 39,779 bytes, line 40
40function mf(s,i,l,f,g){var v=Gt(l)?Ss:Ot.current;return v=wi(i,v),ki(i,g),l=sf(s,i,l,f,v,g),f=of(),s!==null&&!Kt?(i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~g,hr(s,i,g)):(Ke&&f&&Ud(i),i.flags|=1,Vt(s,i,l,g),i.child)}function m0(s,i,l,f,g){if(Gt(l)){var v=!0;Wl(i)}else v=!1;if(ki(i,g),i.stateNode===null)lc(s,i),r0(i,l,f),ff(i,l,f,g),f=!0;else if(s===null){var k=i.stateNode,P=i.memoizedProps;k.props=P;var A=k.context,z=l.contextType;typeof z=="object"&&z!==null?z=yn(z):(z=Gt(l)?Ss:Ot.current,z=wi(i,z));var q=l.getDerivedStateFromProps,Q=typeof q=="function"||typeof k.getSnapshotBeforeUpdate=="function";Q||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==f||A!==z)&&s0(i,k,f,z),Br=!1;var H=i.memoizedState;k.state=H,Zl(i,f,k,g),A=i.memoizedState,P!==f||H!==A||qt.current||Br?(typeof q=="function"&&(df(i,l,q,f),A=i.memoizedState),(P=Br||n0(i,l,P,f,H,A,z))?(Q||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=A),k.props=f,k.state=A,k.context=z,f=P):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{k=i.stateNode,Ry(s,i),P=i.memoizedProps,z=i.type===i.elementType?P:Rn(i.type,P),k.props=z,Q=i.pendingProps,H=k.context,A=l.contextType,typeof A=="object"&&A!==null?A=yn(A):(A=Gt(l)?Ss:Ot.current,A=wi(i,A));var ie=l.getDerivedStateFromProps;(q=typeof ie=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==Q||H!==A)&&s0(i,k,f,A),Br=!1,H=i.memoizedState,k.state=H,Zl(i,f,k,g);var de=i.memoizedState;P!==Q||H!==de||qt.current||Br?(typeof ie=="function"&&(df(i,l,ie,f),de=i.memoizedState),(z=Br||n0(i,l,z,f,H,de,A)||!1)?(q||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(f,de,A),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(f,de,A)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||P===s.memoizedProps&&H===s.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&H===s.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=de),k.props=f,k.state=de,k.context=A,f=z):(typeof k.componentDidUpdate!="function"||P===s.memoizedProps&&H===s.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&H===s.memoizedState||(i.flags|=1024),f=!1)}return gf(s,i,l,f,v,g)}function gf(s,i,l,f,g,v){p0(s,i);var k=(i.flags&128)!==0;if(!f&&!k)return g&&wy(i,l,!1),hr(s,i,v);f=i.stateNode,ME.current=i;var P=k&&typeof l.getDerivedStateFromError!="function"?null:f.render();return i.flags|=1,s!==null&&k?(i.child=Ci(i,s.child,null,v),i.child=Ci(i,null,P,v)):Vt(s,i,P,v),i.memoizedState=f.state,g&&wy(i,l,!0),i.child}function g0(s){var i=s.stateNode;i.pendingContext?vy(s,i.pendingContext,i.pendingContext!==i.context):i.context&&vy(s,i.context,!1),Jd(s,i.containerInfo)}function y0(s,i,l,f,g){return Ni(),Hd(g),i.flags|=256,Vt(s,i,l,f),i.child}var yf={dehydrated:null,treeContext:null,retryLane:0};function vf(s){return{baseLanes:s,cachePool:null,transitions:null}}function v0(s,i,l){var f=i.pendingProps,g=Qe.current,v=!1,k=(i.flags&128)!==0,P;if((P=k)||(P=s!==null&&s.memoizedState===null?!1:(g&2)!==0),P?(v=!0,i.flags&=-129):(s===null||s.memoizedState!==null)&&(g|=1),$e(Qe,g&1),s===null)return Wd(i),s=i.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((i.mode&1)===0?i.lanes=1:s.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=f.children,s=f.fallback,v?(f=i.mode,v=i.child,k={mode:"hidden",children:k},(f&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=k):v=wc(k,f,0,null),s=As(s,f,l,null),v.return=i,s.return=i,v.sibling=s,i.child=v,i.child.memoizedState=vf(l),i.memoizedState=yf,s):xf(i,k));if(g=s.memoizedState,g!==null&&(P=g.dehydrated,P!==null))return DE(s,i,k,f,P,g,l);if(v){v=f.fallback,k=i.mode,g=s.child,P=g.sibling;var A={mode:"hidden",children:f.children};return(k&1)===0&&i.child!==g?(f=i.child,f.childLanes=0,f.pendingProps=A,i.deletions=null):(f=qr(g,A),f.subtreeFlags=g.subtreeFlags&14680064),P!==null?v=qr(P,v):(v=As(v,k,l,null),v.flags|=2),v.return=i,f.return=i,f.sibling=v,i.child=f,f=v,v=i.child,k=s.child.memoizedState,k=k===null?vf(l):{baseLanes:k.baseLanes|l,cachePool:null,transitions:k.transitions},v.memoizedState=k,v.childLanes=s.childLanes&~l,i.memoizedState=yf,f}return v=s.child,s=v.sibling,f=qr(v,{mode:"visible",children:f.children}),(i.mode&1)===0&&(f.lanes=l),f.return=i,f.sibling=null,s!==null&&(l=i.deletions,l===null?(i.deletions=[s],i.flags|=16):l.push(s)),i.child=f,i.memoizedState=null,f}function xf(s,i){return i=wc({mode:"visible",children:i},s.mode,0,null),i.return=s,s.child=i}function ac(s,i,l,f){return f!==null&&Hd(f),Ci(i,s.child,null,l),s=xf(i,i.pendingProps.children),s.flags|=2,i.memoizedState=null,s}function DE(s,i,l,f,g,v,k){if(l)return i.flags&256?(i.flags&=-257,f=hf(Error(n(422))),ac(s,i,k,f)):i.memoizedState!==null?(i.child=s.child,i.flags|=128,null):(v=f.fallback,g=i.mode,f=wc({mode:"visible",children:f.children},g,0,null),v=As(v,g,k,null),v.flags|=2,f.return=i,v.return=i,f.sibling=v,i.child=f,(i.mode&1)!==0&&Ci(i,s.child,null,k),i.child.memoizedState=vf(k),i.memoizedState=yf,v);if((i.mode&1)===0)return ac(s,i,k,null);if(g.data==="$!"){if(f=g.nextSibling&&g.nextSibling.dataset,f)var P=f.dgst;return f=P,v=Error(n(419)),f=hf(v,f,void 0),ac(s,i,k,f)}if(P=(k&s.childLanes)!==0,Kt||P){if(f=wt,f!==null){switch(k&-k){case 4:g=2;break;case 16:g=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(f.suspendedLanes|k))!==0?0:g,g!==0&&g!==v.retryLane&&(v.retryLane=g,dr(s,g),Mn(f,s,g,-1))}return Df(),f=hf(Error(n(421))),ac(s,i,k,f)}return g.data==="$?"?(i.flags|=128,i.child=s.child,i=KE.bind(null,s),g._reactRetry=i,null):(s=v.treeContext,an=Dr(g.nextSibling),on=i,Ke=!0,Pn=null,s!==null&&(mn[gn++]=cr,mn[gn++]=ur,mn[gn++]=Ns,cr=s.id,ur=s.overflow,Ns=i),i=xf(i,f.children),i.flags|=4096,i)}function x0(s,i,l){s.lanes|=i;var f=s.alternate;f!==null&&(f.lanes|=i),Yd(s.return,i,l)}function wf(s,i,l,f,g){var v=s.memoizedState;v===null?s.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:g}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=l,v.tailMode=g)}function w0(s,i,l){var f=i.pendingProps,g=f.revealOrder,v=f.tail;if(Vt(s,i,f.children,l),f=Qe.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=i.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&x0(s,l,i);else if(s.tag===19)x0(s,l,i);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}if($e(Qe,f),(i.mode&1)===0)i.memoizedState=null;else switch(g){case"forwards":for(l=i.child,g=null;l!==null;)s=l.alternate,s!==null&&ec(s)===null&&(g=l),l=l.sibling;l=g,l===null?(g=i.child,i.child=null):(g=l.sibling,l.sibling=null),wf(i,!1,g,l,v);break;case"backwards":for(l=null,g=i.child,i.child=null;g!==null;){if(s=g.alternate,s!==null&&ec(s)===null){i.child=g;break}s=g.sibling,g.sibling=l,l=g,g=s}wf(i,!0,l,null,v);break;case"together":wf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function lc(s,i){(i.mode&1)===0&&s!==null&&(s.alternate=null,i.alternate=null,i.flags|=2)}function hr(s,i,l){if(s!==null&&(i.dependencies=s.dependencies),Ts|=i.lanes,(l&i.childLanes)===0)return null;if(s!==null&&i.child!==s.child)throw Error(n(153));if(i.child!==null){for(s=i.child,l=qr(s,s.pendingProps),i.child=l,l.return=i;s.sibling!==null;)s=s.sibling,l=l.sibling=qr(s,s.pendingProps),l.return=i;l.sibling=null}return i.child}function LE(s,i,l){switch(i.tag){case 3:g0(i),Ni();break;case 5:My(i);break;case 1:Gt(i.type)&&Wl(i);break;case 4:Jd(i,i.stateNode.containerInfo);break;case 10:var f=i.type._context,g=i.memoizedProps.value;$e(Ql,f._currentValue),f._currentValue=g;break;case 13:if(f=i.memoizedState,f!==null)return f.dehydrated!==null?($e(Qe,Qe.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?v0(s,i,l):($e(Qe,Qe.current&1),s=hr(s,i,l),s!==null?s.sibling:null);$e(Qe,Qe.current&1);break;case 19:if(f=(l&i.childLanes)!==0,(s.flags&128)!==0){if(f)return w0(s,i,l);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),$e(Qe,Qe.current),f)break;return null;case 22:case 23:return i.lanes=0,h0(s,i,l)}return hr(s,i,l)}var b0,bf,S0,N0;b0=function(s,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)s.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},bf=function(){},S0=function(s,i,l,f){var g=s.memoizedProps;if(g!==f){s=i.stateNode,ks(qn.current);var v=null;switch(l){case"input":g=pt(s,g),f=pt(s,f),v=[];break;case"select":g=Y({},g,{value:void 0}),f=Y({},f,{value:void 0}),v=[];break;case"textarea":g=Ju(s,g),f=Ju(s,f),v=[];break;default:typeof g.onClick!="function"&&typeof f.onClick=="function"&&(s.onclick=Ul)}ed(l,f);var k;l=null;for(z in g)if(!f.hasOwnProperty(z)&&g.hasOwnProperty(z)&&g[z]!=null)if(z==="style"){var P=g[z];for(k in P)P.hasOwnProperty(k)&&(l||(l={}),l[k]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(o.hasOwnProperty(z)?v||(v=[]):(v=v||[]).push(z,null));for(z in f){var A=f[z];if(P=g!=null?g[z]:void 0,f.hasOwnProperty(z)&&A!==P&&(A!=null||P!=null))if(z==="style")if(P){for(k in P)!P.hasOwnProperty(k)||A&&A.hasOwnProperty(k)||(l||(l={}),l[k]="");for(k in A)A.hasOwnProperty(k)&&P[k]!==A[k]&&(l||(l={}),l[k]=A[k])}else l||(v||(v=[]),v.push(z,l)),l=A;else z==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,P=P?P.__html:void 0,A!=null&&P!==A&&(v=v||[]).push(z,A)):z==="children"?typeof A!="string"&&typeof A!="number"||(v=v||[]).push(z,""+A):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(o.hasOwnProperty(z)?(A!=null&&z==="onScroll"&&He("scroll",s),v||P===A||(v=[])):(v=v||[]).push(z,A))}l&&(v=v||[]).push("style",l);var z=v;(i.updateQueue=z)&&(i.flags|=4)}},N0=function(s,i,l,f){l!==f&&(i.flags|=4)};function sa(s,i){if(!Ke)switch(s.tailMode){case"hidden":i=s.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?s.tail=null:l.sibling=null;break;case"collapsed":l=s.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?i||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function Dt(s){var i=s.alternate!==null&&s.alternate.child===s.child,l=0,f=0;if(i)for(var g=s.child;g!==null;)l|=g.lanes|g.childLanes,f|=g.subtreeFlags&14680064,f|=g.flags&14680064,g.return=s,g=g.sibling;else for(g=s.child;g!==null;)l|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=s,g=g.sibling;return s.subtreeFlags|=f,s.childLanes=l,i}function IE(s,i,l){var f=i.pendingProps;switch(zd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(i),null;case 1:return Gt(i.type)&&$l(),Dt(i),null;case 3:return f=i.stateNode,ji(),qe(qt),qe(Ot),tf(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(s===null||s.child===null)&&(Kl(i)?i.flags|=4:s===null||s.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Pn!==null&&(Af(Pn),Pn=null))),bf(s,i),Dt(i),null;case 5:Zd(i);var g=ks(Zo.current);if(l=i.type,s!==null&&i.stateNode!=null)S0(s,i,l,f,g),s.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!f){if(i.stateNode===null)throw Error(n(166));return Dt(i),null}if(s=ks(qn.current),Kl(i)){f=i.stateNode,l=i.type;var v=i.memoizedProps;switch(f[Hn]=i,f[Ko]=v,s=(i.mode&1)!==0,l){case"dialog":He("cancel",f),He("close",f);break;case"iframe":case"object":case"embed":He("load",f);break;case"video":case"audio":for(g=0;g<Ho.length;g++)He(Ho[g],f);break;case"source":He("error",f);break;case"img":case"image":case"link":He("error",f),He("load",f);break;case"details":He("toggle",f);break;case"input":jn(f,v),He("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!v.multiple},He("invalid",f);break;case"textarea":og(f,v),He("invalid",f)}ed(l,v),g=null;for(var k in v)if(v.hasOwnProperty(k)){var P=v[k];k==="children"?typeof P=="string"?f.textContent!==P&&(v.suppressHydrationWarning!==!0&&Vl(f.textContent,P,s),g=["children",P]):typeof P=="number"&&f.textContent!==""+P&&(v.suppressHydrationWarning!==!0&&Vl(f.textContent,P,s),g=["children",""+P]):o.hasOwnProperty(k)&&P!=null&&k==="onScroll"&&He("scroll",f)}switch(l){case"input":se(f),vl(f,v,!0);break;case"textarea":se(f),lg(f);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(f.onclick=Ul)}f=g,i.updateQueue=f,f!==null&&(i.flags|=4)}else{k=g.nodeType===9?g:g.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=cg(l)),s==="http://www.w3.org/1999/xhtml"?l==="script"?(s=k.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof f.is=="string"?s=k.createElement(l,{is:f.is}):(s=k.createElement(l),l==="select"&&(k=s,f.multiple?k.multiple=!0:f.size&&(k.size=f.size))):s=k.createElementNS(s,l),s[Hn]=i,s[Ko]=f,b0(s,i,!1,!1),i.stateNode=s;e:{switch(k=td(l,f),l){case"dialog":He("cancel",s),He("close",s),g=f;break;case"iframe":case"object":case"embed":He("load",s),g=f;break;case"video":case"audio":for(g=0;g<Ho.length;g++)He(Ho[g],s);g=f;break;case"source":He("error",s),g=f;break;case"img":case"image":case"link":He("error",s),He("load",s),g=f;break;case"details":He("toggle",s),g=f;break;case"input":jn(s,f),g=pt(s,f),He("invalid",s);break;case"option":g=f;break;case"select":s._wrapperState={wasMultiple:!!f.multiple},g=Y({},f,{value:void 0}),He("invalid",s);break;case"textarea":og(s,f),g=Ju(s,f),He("invalid",s);break;default:g=f}ed(l,g),P=g;for(v in P)if(P.hasOwnProperty(v)){var A=P[v];v==="style"?fg(s,A):v==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&ug(s,A)):v==="children"?typeof A=="string"?(l!=="textarea"||A!=="")&&ko(s,A):typeof A=="number"&&ko(s,""+A):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(o.hasOwnProperty(v)?A!=null&&v==="onScroll"&&He("scroll",s):A!=null&&T(s,v,A,k))}switch(l){case"input":se(s),vl(s,f,!1);break;case"textarea":se(s),lg(s);break;case"option":f.value!=null&&s.setAttribute("value",""+oe(f.value));break;case"select":s.multiple=!!f.multiple,v=f.value,v!=null?li(s,!!f.multiple,v,!1):f.defaultValue!=null&&li(s,!!f.multiple,f.defaultValue,!0);break;default:typeof g.onClick=="function"&&(s.onclick=Ul)}switch(l){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Dt(i),null;case 6:if(s&&i.stateNode!=null)N0(s,i,s.memoizedProps,f);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(l=ks(Zo.current),ks(qn.current),Kl(i)){if(f=i.stateNode,l=i.memoizedProps,f[Hn]=i,(v=f.nodeValue!==l)&&(s=on,s!==null))switch(s.tag){case 3:Vl(f.nodeValue,l,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Vl(f.nodeValue,l,(s.mode&1)!==0)}v&&(i.flags|=4)}else f=(l.nodeType===9?l:l.ownerDocument).createTextNode(f),f[Hn]=i,i.stateNode=f}return Dt(i),null;case 13:if(qe(Qe),f=i.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Ke&&an!==null&&(i.mode&1)!==0&&(i.flags&128)===0)ky(),Ni(),i.flags|=98560,v=!1;else if(v=Kl(i),f!==null&&f.dehydrated!==null){if(s===null){if(!v)throw Error(n(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(317));v[Hn]=i}else Ni(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),v=!1}else Pn!==null&&(Af(Pn),Pn=null),v=!0;if(!v)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(f=f!==null,f!==(s!==null&&s.memoizedState!==null)&&f&&(i.child.flags|=8192,(i.mode&1)!==0&&(s===null||(Qe.current&1)!==0?gt===0&&(gt=3):Df())),i.updateQueue!==null&&(i.flags|=4),Dt(i),null);case 4:return ji(),bf(s,i),s===null&&qo(i.stateNode.containerInfo),Dt(i),null;case 10:return Kd(i.type._context),Dt(i),null;case 17:return Gt(i.type)&&$l(),Dt(i),null;case 19:if(qe(Qe),v=i.memoizedState,v===null)return Dt(i),null;if(f=(i.flags&128)!==0,k=v.rendering,k===null)if(f)sa(v,!1);else{if(gt!==0||s!==null&&(s.flags&128)!==0)for(s=i.child;s!==null;){if(k=ec(s),k!==null){for(i.flags|=128,sa(v,!1),f=k.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),i.subtreeFlags=0,f=l,l=i.child;l!==null;)v=l,s=f,v.flags&=14680066,k=v.alternate,k===null?(v.childLanes=0,v.lanes=s,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=k.childLanes,v.lanes=k.lanes,v.child=k.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=k.memoizedProps,v.memoizedState=k.memoizedState,v.updateQueue=k.updateQueue,v.type=k.type,s=k.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),l=l.sibling;return $e(Qe,Qe.current&1|2),i.child}s=s.sibling}v.tail!==null&&st()>Ri&&(i.flags|=128,f=!0,sa(v,!1),i.lanes=4194304)}else{if(!f)if(s=ec(k),s!==null){if(i.flags|=128,f=!0,l=s.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),sa(v,!0),v.tail===null&&v.tailMode==="hidden"&&!k.alternate&&!Ke)return Dt(i),null}else 2*st()-v.renderingStartTime>Ri&&l!==1073741824&&(i.flags|=128,f=!0,sa(v,!1),i.lanes=4194304);v.isBackwards?(k.sibling=i.child,i.child=k):(l=v.last,l!==null?l.sibling=k:i.child=k,v.last=k)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=st(),i.sibling=null,l=Qe.current,$e(Qe,f?l&1|2:l&1),i):(Dt(i),null);case 22:case 23:return Mf(),f=i.memoizedState!==null,s!==null&&s.memoizedState!==null!==f&&(i.flags|=8192),f&&(i.mode&1)!==0?(ln&1073741824)!==0&&(Dt(i),i.subtreeFlags&6&&(i.flags|=8192)):Dt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function FE(s,i){switch(zd(i),i.tag){case 1:return Gt(i.type)&&$l(),s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 3:return ji(),qe(qt),qe(Ot),tf(),s=i.flags,(s&65536)!==0&&(s&128)===0?(i.flags=s&-65537|128,i):null;case 5:return Zd(i),null;case 13:if(qe(Qe),s=i.memoizedState,s!==null&&s.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ni()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 19:return qe(Qe),null;case 4:return ji(),null;case 10:return Kd(i.type._context),null;case 22:case 23:return Mf(),null;case 24:return null;default:return null}}var cc=!1,Lt=!1,BE=typeof WeakSet=="function"?WeakSet:Set,ce=null;function _i(s,i){var l=s.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(f){et(s,i,f)}else l.current=null}function Sf(s,i,l){try{l()}catch(f){et(s,i,f)}}var C0=!1;function VE(s,i){if(Od=_l,s=ny(),Ed(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{l=(l=s.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var g=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var k=0,P=-1,A=-1,z=0,q=0,Q=s,H=null;t:for(;;){for(var ie;Q!==l||g!==0&&Q.nodeType!==3||(P=k+g),Q!==v||f!==0&&Q.nodeType!==3||(A=k+f),Q.nodeType===3&&(k+=Q.nodeValue.length),(ie=Q.firstChild)!==null;)H=Q,Q=ie;for(;;){if(Q===s)break t;if(H===l&&++z===g&&(P=k),H===v&&++q===f&&(A=k),(ie=Q.nextSibling)!==null)break;Q=H,H=Q.parentNode}Q=ie}l=P===-1||A===-1?null:{start:P,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(Md={focusedElem:s,selectionRange:l},_l=!1,ce=i;ce!==null;)if(i=ce,s=i.child,(i.subtreeFlags&1028)!==0&&s!==null)s.return=i,ce=s;else for(;ce!==null;){i=ce;try{var de=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var me=de.memoizedProps,it=de.memoizedState,F=i.stateNode,D=F.getSnapshotBeforeUpdate(i.elementType===i.type?me:Rn(i.type,me),it);F.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var V=i.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(J){et(i,i.return,J)}if(s=i.sibling,s!==null){s.return=i.return,ce=s;break}ce=i.return}return de=C0,C0=!1,de}function ia(s,i,l){var f=i.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var g=f=f.next;do{if((g.tag&s)===s){var v=g.destroy;g.destroy=void 0,v!==void 0&&Sf(i,l,v)}g=g.next}while(g!==f)}}function uc(s,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&s)===s){var f=l.create;l.destroy=f()}l=l.next}while(l!==i)}}function Nf(s){var i=s.ref;if(i!==null){var l=s.stateNode;switch(s.tag){case 5:s=l;break;default:s=l}typeof i=="function"?i(s):i.current=s}}function E0(s){var i=s.alternate;i!==null&&(s.alternate=null,E0(i)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(i=s.stateNode,i!==null&&(delete i[Hn],delete i[Ko],delete i[Fd],delete i[SE],delete i[NE])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function k0(s){return s.tag===5||s.tag===3||s.tag===4}function j0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||k0(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Cf(s,i,l){var f=s.tag;if(f===5||f===6)s=s.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(s,i):l.insertBefore(s,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(s,l)):(i=l,i.appendChild(s)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Ul));else if(f!==4&&(s=s.child,s!==null))for(Cf(s,i,l),s=s.sibling;s!==null;)Cf(s,i,l),s=s.sibling}function Ef(s,i,l){var f=s.tag;if(f===5||f===6)s=s.stateNode,i?l.insertBefore(s,i):l.appendChild(s);else if(f!==4&&(s=s.child,s!==null))for(Ef(s,i,l),s=s.sibling;s!==null;)Ef(s,i,l),s=s.sibling}var Et=null,An=!1;function Ur(s,i,l){for(l=l.child;l!==null;)T0(s,i,l),l=l.sibling}function T0(s,i,l){if(Wn&&typeof Wn.onCommitFiberUnmount=="function")try{Wn.onCommitFiberUnmount(Nl,l)}catch{}switch(l.tag){case 5:Lt||_i(l,i);case 6:var f=Et,g=An;Et=null,Ur(s,i,l),Et=f,An=g,Et!==null&&(An?(s=Et,l=l.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):Et.removeChild(l.stateNode));break;case 18:Et!==null&&(An?(s=Et,l=l.stateNode,s.nodeType===8?Id(s.parentNode,l):s.nodeType===1&&Id(s,l),Io(s)):Id(Et,l.stateNode));break;case 4:f=Et,g=An,Et=l.stateNode.containerInfo,An=!0,Ur(s,i,l),Et=f,An=g;break;case 0:case 11:case 14:case 15:if(!Lt&&(f=l.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){g=f=f.next;do{var v=g,k=v.destroy;v=v.tag,k!==void 0&&((v&2)!==0||(v&4)!==0)&&Sf(l,i,k),g=g.next}while(g!==f)}Ur(s,i,l);break;case 1:if(!Lt&&(_i(l,i),f=l.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=l.memoizedProps,f.state=l.memoizedState,f.componentWillUnmount()}catch(P){et(l,i,P)}Ur(s,i,l);break;case 21:Ur(s,i,l);break;case 22:l.mode&1?(Lt=(f=Lt)||l.memoizedState!==null,Ur(s,i,l),Lt=f):Ur(s,i,l);break;default:Ur(s,i,l)}}function _0(s){var i=s.updateQueue;if(i!==null){s.updateQueue=null;var l=s.stateNode;l===null&&(l=s.stateNode=new BE),i.forEach(function(f){var g=YE.bind(null,s,f);l.has(f)||(l.add(f),f.then(g,g))})}}function On(s,i){var l=i.deletions;if(l!==null)for(var f=0;f<l.length;f++){var g=l[f];try{var v=s,k=i,P=k;e:for(;P!==null;){switch(P.tag){case 5:Et=P.stateNode,An=!1;break e;case 3:Et=P.stateNode.containerInfo,An=!0;break e;case 4:Et=P.stateNode.containerInfo,An=!0;break e}P=P.return}if(Et===null)throw Error(n(160));T0(v,k,g),Et=null,An=!1;var A=g.alternate;A!==null&&(A.return=null),g.return=null}catch(z){et(g,i,z)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)P0(i,s),i=i.sibling}function P0(s,i){var l=s.alternate,f=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(On(i,s),Kn(s),f&4){try{ia(3,s,s.return),uc(3,s)}catch(me){et(s,s.return,me)}try{ia(5,s,s.return)}catch(me){et(s,s.return,me)}}break;case 1:On(i,s),Kn(s),f&512&&l!==null&&_i(l,l.return);break;case 5:if(On(i,s),Kn(s),f&512&&l!==null&&_i(l,l.return),s.flags&32){var g=s.stateNode;try{ko(g,"")}catch(me){et(s,s.return,me)}}if(f&4&&(g=s.stateNode,g!=null)){var v=s.memoizedProps,k=l!==null?l.memoizedProps:v,P=s.type,A=s.updateQueue;if(s.updateQueue=null,A!==null)try{P==="input"&&v.type==="radio"&&v.name!=null&&$n(g,v),td(P,k);var z=td(P,v);for(k=0;k<A.length;k+=2){var q=A[k],Q=A[k+1];q==="style"?fg(g,Q):q==="dangerouslySetInnerHTML"?ug(g,Q):q==="children"?ko(g,Q):T(g,q,Q,z)}switch(P){case"input":Bt(g,v);break;case"textarea":ag(g,v);break;case"select":var H=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!v.multiple;var ie=v.value;ie!=null?li(g,!!v.multiple,ie,!1):H!==!!v.multiple&&(v.defaultValue!=null?li(g,!!v.multiple,v.defaultValue,!0):li(g,!!v.multiple,v.multiple?[]:"",!1))}g[Ko]=v}catch(me){et(s,s.return,me)}}break;case 6:if(On(i,s),Kn(s),f&4){if(s.stateNode===null)throw Error(n(162));g=s.stateNode,v=s.memoizedProps;try{g.nodeValue=v}catch(me){et(s,s.return,me)}}break;case 3:if(On(i,s),Kn(s),f&4&&l!==null&&l.memoizedState.isDehydrated)try{Io(i.containerInfo)}catch(me){et(s,s.return,me)}break;case 4:On(i,s),Kn(s);break;case 13:On(i,s),Kn(s),g=s.child,g.flags&8192&&(v=g.memoizedState!==null,g.stateNode.isHidden=v,!v||g.alternate!==null&&g.alternate.memoizedState!==null||(Tf=st())),f&4&&_0(s);break;case 22:if(q=l!==null&&l.memoizedState!==null,s.mode&1?(Lt=(z=Lt)||q,On(i,s),Lt=z):On(i,s),Kn(s),f&8192){if(z=s.memoizedState!==null,(s.stateNode.isHidden=z)&&!q&&(s.mode&1)!==0)for(ce=s,q=s.child;q!==null;){for(Q=ce=q;ce!==null;){switch(H=ce,ie=H.child,H.tag){case 0:case 11:case 14:case 15:ia(4,H,H.return);break;case 1:_i(H,H.return);var de=H.stateNode;if(typeof de.componentWillUnmount=="function"){f=H,l=H.return;try{i=f,de.props=i.memoizedProps,de.state=i.memoizedState,de.componentWillUnmount()}catch(me){et(f,l,me)}}break;case 5:_i(H,H.return);break;case 22:if(H.memoizedState!==null){O0(Q);continue}}ie!==null?(ie.return=H,ce=ie):O0(Q)}q=q.sibling}e:for(q=null,Q=s;;){if(Q.tag===5){if(q===null){q=Q;try{g=Q.stateNode,z?(v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(P=Q.stateNode,A=Q.memoizedProps.style,k=A!=null&&A.hasOwnProperty("display")?A.display:null,P.style.display=dg("display",k))}catch(me){et(s,s.return,me)}}}else if(Q.tag===6){if(q===null)try{Q.stateNode.nodeValue=z?"":Q.memoizedProps}catch(me){et(s,s.return,me)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===s)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===s)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===s)break e;q===Q&&(q=null),Q=Q.return}q===Q&&(q=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:On(i,s),Kn(s),f&4&&_0(s);break;case 21:break;default:On(i,s),Kn(s)}}function Kn(s){var i=s.flags;if(i&2){try{e:{for(var l=s.return;l!==null;){if(k0(l)){var f=l;break e}l=l.return}throw Error(n(160))}switch(f.tag){case 5:var g=f.stateNode;f.flags&32&&(ko(g,""),f.flags&=-33);var v=j0(s);Ef(s,v,g);break;case 3:case 4:var k=f.stateNode.containerInfo,P=j0(s);Cf(s,P,k);break;default:throw Error(n(161))}}catch(A){et(s,s.return,A)}s.flags&=-3}i&4096&&(s.flags&=-4097)}function UE(s,i,l){ce=s,R0(s)}function R0(s,i,l){for(var f=(s.mode&1)!==0;ce!==null;){var g=ce,v=g.child;if(g.tag===22&&f){var k=g.memoizedState!==null||cc;if(!k){var P=g.alternate,A=P!==null&&P.memoizedState!==null||Lt;P=cc;var z=Lt;if(cc=k,(Lt=A)&&!z)for(ce=g;ce!==null;)k=ce,A=k.child,k.tag===22&&k.memoizedState!==null?M0(g):A!==null?(A.return=k,ce=A):M0(g);for(;v!==null;)ce=v,R0(v),v=v.sibling;ce=g,cc=P,Lt=z}A0(s)}else(g.subtreeFlags&8772)!==0&&v!==null?(v.return=g,ce=v):A0(s)}}function A0(s){for(;ce!==null;){var i=ce;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Lt||uc(5,i);break;case 1:var f=i.stateNode;if(i.flags&4&&!Lt)if(l===null)f.componentDidMount();else{var g=i.elementType===i.type?l.memoizedProps:Rn(i.type,l.memoizedProps);f.componentDidUpdate(g,l.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var v=i.updateQueue;v!==null&&Oy(i,v,f);break;case 3:var k=i.updateQueue;if(k!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Oy(i,k,l)}break;case 5:var P=i.stateNode;if(l===null&&i.flags&4){l=P;var A=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&l.focus();break;case"img":A.src&&(l.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var z=i.alternate;if(z!==null){var q=z.memoizedState;if(q!==null){var Q=q.dehydrated;Q!==null&&Io(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Lt||i.flags&512&&Nf(i)}catch(H){et(i,i.return,H)}}if(i===s){ce=null;break}if(l=i.sibling,l!==null){l.return=i.return,ce=l;break}ce=i.return}}function O0(s){for(;ce!==null;){var i=ce;if(i===s){ce=null;break}var l=i.sibling;if(l!==null){l.return=i.return,ce=l;break}ce=i.return}}function M0(s){for(;ce!==null;){var i=ce;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{uc(4,i)}catch(A){et(i,l,A)}break;case 1:var f=i.stateNode;if(typeof f.componentDidMount=="function"){var g=i.return;try{f.componentDidMount()}catch(A){et(i,g,A)}}var v=i.return;try{Nf(i)}catch(A){et(i,v,A)}break;case 5:var k=i.return;try{Nf(i)}catch(A){et(i,k,A)}}}catch(A){et(i,i.return,A)}if(i===s){ce=null;break}var P=i.sibling;if(P!==null){P.return=i.return,ce=P;break}ce=i.return}}var zE=Math.ceil,dc=_.ReactCurrentDispatcher,kf=_.ReactCurrentOwner,xn=_.ReactCurrentBatchConfig,Ie=0,wt=null,ct=null,kt=0,ln=0,Pi=Lr(0),gt=0,oa=null,Ts=0,fc=0,jf=0,aa=null,Yt=null,Tf=0,Ri=1/0,pr=null,hc=!1,_f=null,zr=null,pc=!1,$r=null,mc=0,la=0,Pf=null,gc=-1,yc=0;function Ut(){return(Ie&6)!==0?st():gc!==-1?gc:gc=st()}function Wr(s){return(s.mode&1)===0?1:(Ie&2)!==0&&kt!==0?kt&-kt:EE.transition!==null?(yc===0&&(yc=jg()),yc):(s=Ve,s!==0||(s=window.event,s=s===void 0?16:Lg(s.type)),s)}function Mn(s,i,l,f){if(50<la)throw la=0,Pf=null,Error(n(185));Ao(s,l,f),((Ie&2)===0||s!==wt)&&(s===wt&&((Ie&2)===0&&(fc|=l),gt===4&&Hr(s,kt)),Qt(s,f),l===1&&Ie===0&&(i.mode&1)===0&&(Ri=st()+500,Hl&&Fr()))}function Qt(s,i){var l=s.callbackNode;EC(s,i);var f=kl(s,s===wt?kt:0);if(f===0)l!==null&&Cg(l),s.callbackNode=null,s.callbackPriority=0;else if(i=f&-f,s.callbackPriority!==i){if(l!=null&&Cg(l),i===1)s.tag===0?CE(L0.bind(null,s)):by(L0.bind(null,s)),wE(function(){(Ie&6)===0&&Fr()}),l=null;else{switch(Tg(f)){case 1:l=ld;break;case 4:l=Eg;break;case 16:l=Sl;break;case 536870912:l=kg;break;default:l=Sl}l=W0(l,D0.bind(null,s))}s.callbackPriority=i,s.callbackNode=l}}function D0(s,i){if(gc=-1,yc=0,(Ie&6)!==0)throw Error(n(327));var l=s.callbackNode;if(Ai()&&s.callbackNode!==l)return null;var f=kl(s,s===wt?kt:0);if(f===0)return null;if((f&30)!==0||(f&s.expiredLanes)!==0||i)i=vc(s,f);else{i=f;var g=Ie;Ie|=2;var v=F0();(wt!==s||kt!==i)&&(pr=null,Ri=st()+500,Ps(s,i));do try{HE();break}catch(P){I0(s,P)}while(!0);Gd(),dc.current=v,Ie=g,ct!==null?i=0:(wt=null,kt=0,i=gt)}if(i!==0){if(i===2&&(g=cd(s),g!==0&&(f=g,i=Rf(s,g))),i===1)throw l=oa,Ps(s,0),Hr(s,f),Qt(s,st()),l;if(i===6)Hr(s,f);else{if(g=s.current.alternate,(f&30)===0&&!$E(g)&&(i=vc(s,f),i===2&&(v=cd(s),v!==0&&(f=v,i=Rf(s,v))),i===1))throw l=oa,Ps(s,0),Hr(s,f),Qt(s,st()),l;switch(s.finishedWork=g,s.finishedLanes=f,i){case 0:case 1:throw Error(n(345));case 2:Rs(s,Yt,pr);break;case 3:if(Hr(s,f),(f&130023424)===f&&(i=Tf+500-st(),10<i)){if(kl(s,0)!==0)break;if(g=s.suspendedLanes,(g&f)!==f){Ut(),s.pingedLanes|=s.suspendedLanes&g;break}s.timeoutHandle=Ld(Rs.bind(null,s,Yt,pr),i);break}Rs(s,Yt,pr);break;case 4:if(Hr(s,f),(f&4194240)===f)break;for(i=s.eventTimes,g=-1;0<f;){var k=31-Tn(f);v=1<<k,k=i[k],k>g&&(g=k),f&=~v}if(f=g,f=st()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*zE(f/1960))-f,10<f){s.timeoutHandle=Ld(Rs.bind(null,s,Yt,pr),f);break}Rs(s,Yt,pr);break;case 5:Rs(s,Yt,pr);break;default:throw Error(n(329))}}}return Qt(s,st()),s.callbackNode===l?D0.bind(null,s):null}function Rf(s,i){var l=aa;return s.current.memoizedState.isDehydrated&&(Ps(s,i).flags|=256),s=vc(s,i),s!==2&&(i=Yt,Yt=l,i!==null&&Af(i)),s}function Af(s){Yt===null?Yt=s:Yt.push.apply(Yt,s)}function $E(s){for(var i=s;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var f=0;f<l.length;f++){var g=l[f],v=g.getSnapshot;g=g.value;try{if(!_n(v(),g))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Hr(s,i){for(i&=~jf,i&=~fc,s.suspendedLanes|=i,s.pingedLanes&=~i,s=s.expirationTimes;0<i;){var l=31-Tn(i),f=1<<l;s[l]=-1,i&=~f}}function L0(s){if((Ie&6)!==0)throw Error(n(327));Ai();var i=kl(s,0);if((i&1)===0)return Qt(s,st()),null;var l=vc(s,i);if(s.tag!==0&&l===2){var f=cd(s);f!==0&&(i=f,l=Rf(s,f))}if(l===1)throw l=oa,Ps(s,0),Hr(s,i),Qt(s,st()),l;if(l===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=i,Rs(s,Yt,pr),Qt(s,st()),null}function Of(s,i){var l=Ie;Ie|=1;try{return s(i)}finally{Ie=l,Ie===0&&(Ri=st()+500,Hl&&Fr())}}function _s(s){$r!==null&&$r.tag===0&&(Ie&6)===0&&Ai();var i=Ie;Ie|=1;var l=xn.transition,f=Ve;try{if(xn.transition=null,Ve=1,s)return s()}finally{Ve=f,xn.transition=l,Ie=i,(Ie&6)===0&&Fr()}}function Mf(){ln=Pi.current,qe(Pi)}function Ps(s,i){s.finishedWork=null,s.finishedLanes=0;var l=s.timeoutHandle;if(l!==-1&&(s.timeoutHandle=-1,xE(l)),ct!==null)for(l=ct.return;l!==null;){var f=l;switch(zd(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&$l();break;case 3:ji(),qe(qt),qe(Ot),tf();break;case 5:Zd(f);break;case 4:ji();break;case 13:qe(Qe);break;case 19:qe(Qe);break;case 10:Kd(f.type._context);break;case 22:case 23:Mf()}l=l.return}if(wt=s,ct=s=qr(s.current,null),kt=ln=i,gt=0,oa=null,jf=fc=Ts=0,Yt=aa=null,Es!==null){for(i=0;i<Es.length;i++)if(l=Es[i],f=l.interleaved,f!==null){l.interleaved=null;var g=f.next,v=l.pending;if(v!==null){var k=v.next;v.next=g,f.next=k}l.pending=f}Es=null}return s}function I0(s,i){do{var l=ct;try{if(Gd(),tc.current=ic,nc){for(var f=Xe.memoizedState;f!==null;){var g=f.queue;g!==null&&(g.pending=null),f=f.next}nc=!1}if(js=0,xt=mt=Xe=null,ea=!1,ta=0,kf.current=null,l===null||l.return===null){gt=1,oa=i,ct=null;break}e:{var v=s,k=l.return,P=l,A=i;if(i=kt,P.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var z=A,q=P,Q=q.tag;if((q.mode&1)===0&&(Q===0||Q===11||Q===15)){var H=q.alternate;H?(q.updateQueue=H.updateQueue,q.memoizedState=H.memoizedState,q.lanes=H.lanes):(q.updateQueue=null,q.memoizedState=null)}var ie=l0(k);if(ie!==null){ie.flags&=-257,c0(ie,k,P,v,i),ie.mode&1&&a0(v,z,i),i=ie,A=z;var de=i.updateQueue;if(de===null){var me=new Set;me.add(A),i.updateQueue=me}else de.add(A);break e}else{if((i&1)===0){a0(v,z,i),Df();break e}A=Error(n(426))}}else if(Ke&&P.mode&1){var it=l0(k);if(it!==null){(it.flags&65536)===0&&(it.flags|=256),c0(it,k,P,v,i),Hd(Ti(A,P));break e}}v=A=Ti(A,P),gt!==4&&(gt=2),aa===null?aa=[v]:aa.push(v),v=k;do{switch(v.tag){case 3:v.flags|=65536,i&=-i,v.lanes|=i;var F=i0(v,A,i);Ay(v,F);break e;case 1:P=A;var D=v.type,V=v.stateNode;if((v.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(zr===null||!zr.has(V)))){v.flags|=65536,i&=-i,v.lanes|=i;var J=o0(v,P,i);Ay(v,J);break e}}v=v.return}while(v!==null)}V0(l)}catch(ve){i=ve,ct===l&&l!==null&&(ct=l=l.return);continue}break}while(!0)}function F0(){var s=dc.current;return dc.current=ic,s===null?ic:s}function Df(){(gt===0||gt===3||gt===2)&&(gt=4),wt===null||(Ts&268435455)===0&&(fc&268435455)===0||Hr(wt,kt)}function vc(s,i){var l=Ie;Ie|=2;var f=F0();(wt!==s||kt!==i)&&(pr=null,Ps(s,i));do try{WE();break}catch(g){I0(s,g)}while(!0);if(Gd(),Ie=l,dc.current=f,ct!==null)throw Error(n(261));return wt=null,kt=0,gt}function WE(){for(;ct!==null;)B0(ct)}function HE(){for(;ct!==null&&!gC();)B0(ct)}function B0(s){var i=$0(s.alternate,s,ln);s.memoizedProps=s.pendingProps,i===null?V0(s):ct=i,kf.current=null}function V0(s){var i=s;do{var l=i.alternate;if(s=i.return,(i.flags&32768)===0){if(l=IE(l,i,ln),l!==null){ct=l;return}}else{if(l=FE(l,i),l!==null){l.flags&=32767,ct=l;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{gt=6,ct=null;return}}if(i=i.sibling,i!==null){ct=i;return}ct=i=s}while(i!==null);gt===0&&(gt=5)}function Rs(s,i,l){var f=Ve,g=xn.transition;try{xn.transition=null,Ve=1,qE(s,i,l,f)}finally{xn.transition=g,Ve=f}return null}function qE(s,i,l,f){do Ai();while($r!==null);if((Ie&6)!==0)throw Error(n(327));l=s.finishedWork;var g=s.finishedLanes;if(l===null)return null;if(s.finishedWork=null,s.finishedLanes=0,l===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var v=l.lanes|l.childLanes;if(kC(s,v),s===wt&&(ct=wt=null,kt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||pc||(pc=!0,W0(Sl,function(){return Ai(),null})),v=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||v){v=xn.transition,xn.transition=null;var k=Ve;Ve=1;var P=Ie;Ie|=4,kf.current=null,VE(s,l),P0(l,s),fE(Md),_l=!!Od,Md=Od=null,s.current=l,UE(l),yC(),Ie=P,Ve=k,xn.transition=v}else s.current=l;if(pc&&(pc=!1,$r=s,mc=g),v=s.pendingLanes,v===0&&(zr=null),wC(l.stateNode),Qt(s,st()),i!==null)for(f=s.onRecoverableError,l=0;l<i.length;l++)g=i[l],f(g.value,{componentStack:g.stack,digest:g.digest});if(hc)throw hc=!1,s=_f,_f=null,s;return(mc&1)!==0&&s.tag!==0&&Ai(),v=s.pendingLanes,(v&1)!==0?s===Pf?la++:(la=0,Pf=s):la=0,Fr(),null}function Ai(){if($r!==null){var s=Tg(mc),i=xn.transition,l=Ve;try{if(xn.transition=null,Ve=16>s?16:s,$r===null)var f=!1;else{if(s=$r,$r=null,mc=0,(Ie&6)!==0)throw Error(n(331));var g=Ie;for(Ie|=4,ce=s.current;ce!==null;){var v=ce,k=v.child;if((ce.flags&16)!==0){var P=v.deletions;if(P!==null){for(var A=0;A<P.length;A++){var z=P[A];for(ce=z;ce!==null;){var q=ce;switch(q.tag){case 0:case 11:case 15:ia(8,q,v)}var Q=q.child;if(Q!==null)Q.return=q,ce=Q;else for(;ce!==null;){q=ce;var H=q.sibling,ie=q.return;if(E0(q),q===z){ce=null;break}if(H!==null){H.return=ie,ce=H;break}ce=ie}}}var de=v.alternate;if(de!==null){var me=de.child;if(me!==null){de.child=null;do{var it=me.sibling;me.sibling=null,me=it}while(me!==null)}}ce=v}}if((v.subtreeFlags&2064)!==0&&k!==null)k.return=v,ce=k;else e:for(;ce!==null;){if(v=ce,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:ia(9,v,v.return)}var F=v.sibling;if(F!==null){F.return=v.return,ce=F;break e}ce=v.return}}var D=s.current;for(ce=D;ce!==null;){k=ce;var V=k.child;if((k.subtreeFlags&2064)!==0&&V!==null)V.return=k,ce=V;else e:for(k=D;ce!==null;){if(P=ce,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:uc(9,P)}}catch(ve){et(P,P.return,ve)}if(P===k){ce=null;break e}
vendor: 5,329 bytes, line 40
40var J=P.sibling;if(J!==null){J.return=P.return,ce=J;break e}ce=P.return}}if(Ie=g,Fr(),Wn&&typeof Wn.onPostCommitFiberRoot=="function")try{Wn.onPostCommitFiberRoot(Nl,s)}catch{}f=!0}return f}finally{Ve=l,xn.transition=i}}return!1}function U0(s,i,l){i=Ti(l,i),i=i0(s,i,1),s=Vr(s,i,1),i=Ut(),s!==null&&(Ao(s,1,i),Qt(s,i))}function et(s,i,l){if(s.tag===3)U0(s,s,l);else for(;i!==null;){if(i.tag===3){U0(i,s,l);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(zr===null||!zr.has(f))){s=Ti(l,s),s=o0(i,s,1),i=Vr(i,s,1),s=Ut(),i!==null&&(Ao(i,1,s),Qt(i,s));break}}i=i.return}}function GE(s,i,l){var f=s.pingCache;f!==null&&f.delete(i),i=Ut(),s.pingedLanes|=s.suspendedLanes&l,wt===s&&(kt&l)===l&&(gt===4||gt===3&&(kt&130023424)===kt&&500>st()-Tf?Ps(s,0):jf|=l),Qt(s,i)}function z0(s,i){i===0&&((s.mode&1)===0?i=1:(i=El,El<<=1,(El&130023424)===0&&(El=4194304)));var l=Ut();s=dr(s,i),s!==null&&(Ao(s,i,l),Qt(s,l))}function KE(s){var i=s.memoizedState,l=0;i!==null&&(l=i.retryLane),z0(s,l)}function YE(s,i){var l=0;switch(s.tag){case 13:var f=s.stateNode,g=s.memoizedState;g!==null&&(l=g.retryLane);break;case 19:f=s.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(i),z0(s,l)}var $0;$0=function(s,i,l){if(s!==null)if(s.memoizedProps!==i.pendingProps||qt.current)Kt=!0;else{if((s.lanes&l)===0&&(i.flags&128)===0)return Kt=!1,LE(s,i,l);Kt=(s.flags&131072)!==0}else Kt=!1,Ke&&(i.flags&1048576)!==0&&Sy(i,Gl,i.index);switch(i.lanes=0,i.tag){case 2:var f=i.type;lc(s,i),s=i.pendingProps;var g=wi(i,Ot.current);ki(i,l),g=sf(null,i,f,s,g,l);var v=of();return i.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Gt(f)?(v=!0,Wl(i)):v=!1,i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Xd(i),g.updater=oc,i.stateNode=g,g._reactInternals=i,ff(i,f,s,l),i=gf(null,i,f,!0,v,l)):(i.tag=0,Ke&&v&&Ud(i),Vt(null,i,g,l),i=i.child),i;case 16:f=i.elementType;e:{switch(lc(s,i),s=i.pendingProps,g=f._init,f=g(f._payload),i.type=f,g=i.tag=XE(f),s=Rn(f,s),g){case 0:i=mf(null,i,f,s,l);break e;case 1:i=m0(null,i,f,s,l);break e;case 11:i=u0(null,i,f,s,l);break e;case 14:i=d0(null,i,f,Rn(f.type,s),l);break e}throw Error(n(306,f,""))}return i;case 0:return f=i.type,g=i.pendingProps,g=i.elementType===f?g:Rn(f,g),mf(s,i,f,g,l);case 1:return f=i.type,g=i.pendingProps,g=i.elementType===f?g:Rn(f,g),m0(s,i,f,g,l);case 3:e:{if(g0(i),s===null)throw Error(n(387));f=i.pendingProps,v=i.memoizedState,g=v.element,Ry(s,i),Zl(i,f,null,l);var k=i.memoizedState;if(f=k.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){g=Ti(Error(n(423)),i),i=y0(s,i,f,l,g);break e}else if(f!==g){g=Ti(Error(n(424)),i),i=y0(s,i,f,l,g);break e}else for(an=Dr(i.stateNode.containerInfo.firstChild),on=i,Ke=!0,Pn=null,l=_y(i,null,f,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ni(),f===g){i=hr(s,i,l);break e}Vt(s,i,f,l)}i=i.child}return i;case 5:return My(i),s===null&&Wd(i),f=i.type,g=i.pendingProps,v=s!==null?s.memoizedProps:null,k=g.children,Dd(f,g)?k=null:v!==null&&Dd(f,v)&&(i.flags|=32),p0(s,i),Vt(s,i,k,l),i.child;case 6:return s===null&&Wd(i),null;case 13:return v0(s,i,l);case 4:return Jd(i,i.stateNode.containerInfo),f=i.pendingProps,s===null?i.child=Ci(i,null,f,l):Vt(s,i,f,l),i.child;case 11:return f=i.type,g=i.pendingProps,g=i.elementType===f?g:Rn(f,g),u0(s,i,f,g,l);case 7:return Vt(s,i,i.pendingProps,l),i.child;case 8:return Vt(s,i,i.pendingProps.children,l),i.child;case 12:return Vt(s,i,i.pendingProps.children,l),i.child;case 10:e:{if(f=i.type._context,g=i.pendingProps,v=i.memoizedProps,k=g.value,$e(Ql,f._currentValue),f._currentValue=k,v!==null)if(_n(v.value,k)){if(v.children===g.children&&!qt.current){i=hr(s,i,l);break e}}else for(v=i.child,v!==null&&(v.return=i);v!==null;){var P=v.dependencies;if(P!==null){k=v.child;for(var A=P.firstContext;A!==null;){if(A.context===f){if(v.tag===1){A=fr(-1,l&-l),A.tag=2;var z=v.updateQueue;if(z!==null){z=z.shared;var q=z.pending;q===null?A.next=A:(A.next=q.next,q.next=A),z.pending=A}}v.lanes|=l,A=v.alternate,A!==null&&(A.lanes|=l),Yd(v.return,l,i),P.lanes|=l;break}A=A.next}}else if(v.tag===10)k=v.type===i.type?null:v.child;else if(v.tag===18){if(k=v.return,k===null)throw Error(n(341));k.lanes|=l,P=k.alternate,P!==null&&(P.lanes|=l),Yd(k,l,i),k=v.sibling}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===i){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}Vt(s,i,g.children,l),i=i.child}return i;case 9:return g=i.type,f=i.pendingProps.children,ki(i,l),g=yn(g),f=f(g),i.flags|=1,Vt(s,i,f,l),i.child;case 14:return f=i.type,g=Rn(f,i.pendingProps),g=Rn(f.type,g),d0(s,i,f,g,l);case 15:return f0(s,i,i.type,i.pendingProps,l);case 17:return f=i.type,g=i.pendingProps,g=i.elementType===f?g:Rn(f,g),lc(s,i),i.tag=1,Gt(f)?(s=!0,Wl(i)):s=!1,ki(i,l),r0(i,f,g),ff(i,f,g,l),gf(null,i,f,!0,s,l);case 19:return w0(s,i,l);case 22:return h0(s,i,l)}throw Error(n(156,i.tag))};function W0(s,i){return Ng(s,i)}function QE(s,i,l,f){this.tag=s,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,930 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(s,i,l,f){return new QE(s,i,l,f)}function Lf(s){return s=s.prototype,!(!s||!s.isReactComponent)}function XE(s){if(typeof s=="function")return Lf(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ge)return 11;if(s===Pe)return 14}return 2}function qr(s,i){var l=s.alternate;return l===null?(l=wn(s.tag,i,s.key,s.mode),l.elementType=s.elementType,l.type=s.type,l.stateNode=s.stateNode,l.alternate=s,s.alternate=l):(l.pendingProps=i,l.type=s.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=s.flags&14680064,l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,i=s.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=s.sibling,l.index=s.index,l.ref=s.ref,l}function xc(s,i,l,f,g,v){var k=2;if(f=s,typeof s=="function")Lf(s)&&(k=1);else if(typeof s=="string")k=5;else e:switch(s){case $:return As(l.children,g,v,i);case B:k=8,g|=8;break;case ne:return s=wn(12,l,i,g|2),s.elementType=ne,s.lanes=v,s;case xe:return s=wn(13,l,i,g),s.elementType=xe,s.lanes=v,s;case ye:return s=wn(19,l,i,g),s.elementType=ye,s.lanes=v,s;case re:return wc(l,g,v,i);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case G:k=10;break e;case Z:k=9;break e;case ge:k=11;break e;case Pe:k=14;break e;case le:k=16,f=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return i=wn(k,l,i,g),i.elementType=s,i.type=f,i.lanes=v,i}function As(s,i,l,f){return s=wn(7,s,f,i),s.lanes=l,s}function wc(s,i,l,f){return s=wn(22,s,f,i),s.elementType=re,s.lanes=l,s.stateNode={isHidden:!1},s}function If(s,i,l){return s=wn(6,s,null,i),s.lanes=l,s}function Ff(s,i,l){return i=wn(4,s.children!==null?s.children:[],s.key,i),i.lanes=l,i.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},i}function JE(s,i,l,f,g){this.tag=i,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ud(0),this.expirationTimes=ud(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ud(0),this.identifierPrefix=f,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function Bf(s,i,l,f,g,v,k,P,A){return s=new JE(s,i,l,P,A),i===1?(i=1,v===!0&&(i|=8)):i=0,v=wn(3,null,null,i),s.current=v,v.stateNode=s,v.memoizedState={element:f,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xd(v),s}function ZE(s,i,l){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:f==null?null:""+f,children:s,containerInfo:i,implementation:l}}function H0(s){if(!s)return Ir;s=s._reactInternals;e:{if(ws(s)!==s||s.tag!==1)throw Error(n(170));var i=s;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Gt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(s.tag===1){var l=s.type;if(Gt(l))return xy(s,l,i)}return i}function q0(s,i,l,f,g,v,k,P,A){return s=Bf(l,f,!0,s,g,v,k,P,A),s.context=H0(null),l=s.current,f=Ut(),g=Wr(l),v=fr(f,g),v.callback=i??null,Vr(l,v,g),s.current.lanes=g,Ao(s,g,f),Qt(s,f),s}function bc(s,i,l,f){var g=i.current,v=Ut(),k=Wr(g);return l=H0(l),i.context===null?i.context=l:i.pendingContext=l,i=fr(v,k),i.payload={element:s},f=f===void 0?null:f,f!==null&&(i.callback=f),s=Vr(g,i,k),s!==null&&(Mn(s,g,k,v),Jl(s,g,k)),k}function Sc(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function G0(s,i){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var l=s.retryLane;s.retryLane=l!==0&&l<i?l:i}}function Vf(s,i){G0(s,i),(s=s.alternate)&&G0(s,i)}function ek(){return null}var K0=typeof reportError=="function"?reportError:function(s){console.error(s)};function Uf(s){this._internalRoot=s}Nc.prototype.render=Uf.prototype.render=function(s){var i=this._internalRoot;if(i===null)throw Error(n(409));bc(s,i,null,null)},Nc.prototype.unmount=Uf.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var i=s.containerInfo;_s(function(){bc(null,s,null,null)}),i[ar]=null}};function Nc(s){this._internalRoot=s}Nc.prototype.unstable_scheduleHydration=function(s){if(s){var i=Rg();s={blockedOn:null,target:s,priority:i};for(var l=0;l<Ar.length&&i!==0&&i<Ar[l].priority;l++);Ar.splice(l,0,s),l===0&&Mg(s)}};function zf(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Cc(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function Y0(){}function tk(s,i,l,f,g){if(g){if(typeof f=="function"){var v=f;f=function(){var z=Sc(k);v.call(z)}}var k=q0(i,f,s,0,null,!1,!1,"",Y0);return s._reactRootContainer=k,s[ar]=k.current,qo(s.nodeType===8?s.parentNode:s),_s(),k}for(;g=s.lastChild;)s.removeChild(g);if(typeof f=="function"){var P=f;f=function(){var z=Sc(A);P.call(z)}}var A=Bf(s,0,!1,null,null,!1,!1,"",Y0);return s._reactRootContainer=A,s[ar]=A.current,qo(s.nodeType===8?s.parentNode:s),_s(function(){bc(i,A,l,f)}),A}function Ec(s,i,l,f,g){var v=l._reactRootContainer;if(v){var k=v;if(typeof g=="function"){var P=g;g=function(){var A=Sc(k);P.call(A)}}bc(i,k,s,g)}else k=tk(l,i,s,g,f);return Sc(k)}_g=function(s){switch(s.tag){case 3:var i=s.stateNode;if(i.current.memoizedState.isDehydrated){var l=Ro(i.pendingLanes);l!==0&&(dd(i,l|1),Qt(i,st()),(Ie&6)===0&&(Ri=st()+500,Fr()))}break;case 13:_s(function(){var f=dr(s,1);if(f!==null){var g=Ut();Mn(f,s,1,g)}}),Vf(s,1)}},fd=function(s){if(s.tag===13){var i=dr(s,134217728);if(i!==null){var l=Ut();Mn(i,s,134217728,l)}Vf(s,134217728)}},Pg=function(s){if(s.tag===13){var i=Wr(s),l=dr(s,i);if(l!==null){var f=Ut();Mn(l,s,i,f)}Vf(s,i)}},Rg=function(){return Ve},Ag=function(s,i){var l=Ve;try{return Ve=s,i()}finally{Ve=l}},sd=function(s,i,l){switch(i){case"input":if(Bt(s,l),i=l.name,l.type==="radio"&&i!=null){for(l=s;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var f=l[i];if(f!==s&&f.form===s.form){var g=zl(f);if(!g)throw Error(n(90));Te(f),Bt(f,g)}}}break;case"textarea":ag(s,l);break;case"select":i=l.value,i!=null&&li(s,!!l.multiple,i,!1)}},gg=Of,yg=_s;var nk={usingClientEntryPoint:!1,Events:[Yo,vi,zl,pg,mg,Of]},ca={findFiberByHostInstance:bs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rk={bundleType:ca.bundleType,version:ca.version,rendererPackageName:ca.rendererPackageName,rendererConfig:ca.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=bg(s),s===null?null:s.stateNode},findFiberByHostInstance:ca.findFiberByHostInstance||ek,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kc.isDisabled&&kc.supportsFiber)try{Nl=kc.inject(rk),Wn=kc}catch{}}return Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nk,Xt.createPortal=function(s,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zf(i))throw Error(n(200));return ZE(s,i,null,l)}
40,Xt.createRoot=function(s,i){if(!zf(s))throw Error(n(299));var l=!1,f="",g=K0;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),i=Bf(s,1,!1,null,null,l,!1,f,g),s[ar]=i.current,qo(s.nodeType===8?s.parentNode:s),new Uf(i)},Xt.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var i=s._reactInternals;if(i===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=bg(i),s=s===null?null:s.stateNode,s},Xt.flushSync=function(s){return _s(s)},Xt.hydrate=function(s,i,l){if(!Cc(i))throw Error(n(200));return Ec(null,s,i,!0,l)},Xt.hydrateRoot=function(s,i,l){if(!zf(s))throw Error(n(405));var f=l!=null&&l.hydratedSources||null,g=!1,v="",k=K0;if(l!=null&&(l.unstable_strictMode===!0&&(g=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),i=q0(i,null,s,1,l??null,g,!1,v,k),s[ar]=i.current,qo(s),f)for(s=0;s<f.length;s++)l=f[s],g=l._getVersion,g=g(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,g]:i.mutableSourceEagerHydrationData.push(l,g);return new Nc(i)},Xt.render=function(s,i,l){if(!Cc(i))throw Error(n(200));return Ec(null,s,i,!1,l)},Xt.unmountComponentAtNode=function(s){if(!Cc(s))throw Error(n(40));return s._reactRootContainer?(_s(function(){Ec(null,null,s,!1,function(){s._reactRootContainer=null,s[ar]=null})}),!0):!1},Xt.unstable_batchedUpdates=Of,Xt.unstable_renderSubtreeIntoContainer=function(s,i,l,f){if(!Cc(l))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Ec(s,i,l,!1,f)},Xt.version="18.3.1-next-f1338f8080-20240426",Xt}var sv;function hb(){if(sv)return qf.exports;sv=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(),qf.exports=dk(),qf.exports}var iv;function fk(){if(iv)return Tc;iv=1;var e=hb();return Tc.createRoot=e.createRoot,Tc.hydrateRoot=e.hydrateRoot,Tc}var hk=fk();const pk=zp(hk),mk=20,gk=1e6,xr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Yf=0;function yk(){return Yf=(Yf+1)%Number.MAX_VALUE,Yf.toString()}const Qf=new Map,ov=e=>{if(Qf.has(e))return;const t=setTimeout(()=>{Qf.delete(e),ja({type:xr.REMOVE_TOAST,toastId:e})},gk);Qf.set(e,t)},vk=(e,t)=>{switch(t.type){case xr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,mk)};case xr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case xr.DISMISS_TOAST:{const{toastId:n}=t;return n?ov(n):e.toasts.forEach(r=>{ov(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case xr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Hc=[];let qc={toasts:[]};function ja(e){qc=vk(qc,e),Hc.forEach(t=>{t(qc)})}function xk({...e}){const t=yk(),n=o=>ja({type:xr.UPDATE_TOAST,toast:{...o,id:t}}),r=()=>ja({type:xr.DISMISS_TOAST,toastId:t});return ja({type:xr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function wk(){const[e,t]=C.useState(qc);return C.useEffect(()=>(Hc.push(t),()=>{const n=Hc.indexOf(t);n>-1&&Hc.splice(n,1)}),[e]),{...e,toast:xk,dismiss:n=>ja({type:xr.DISMISS_TOAST,toastId:n})}}function pb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mb(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pb(e))&&(r&&(r+=" "),r+=t);return r}const av=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,lv=mb,Hp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,c=Object.keys(o).map(p=>{const m=n==null?void 0:n[p],y=a==null?void 0:a[p];if(m===null)return null;const x=av(m)||av(y);return o[p][x]}),d=n&&Object.entries(n).reduce((p,m)=>{let[y,x]=m;return x===void 0||(p[y]=x),p},{}),h=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,m)=>{let{class:y,className:x,...N}=m;return Object.entries(N).every(E=>
vendor: 8,814 bytes, lines 40-165
40{let[w,S]=E;return Array.isArray(S)?S.includes({...a,...d}[w]):{...a,...d}[w]===S})?[...p,y,x]:p},[]);return lv(e,c,h,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const bk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var Sk={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Nk=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:c,...d},h)=>C.createElement("svg",{ref:h,...Sk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gb("lucide",o),...d},[...c.map(([p,m])=>C.createElement(p,m)),...Array.isArray(a)?a:[a]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const je=(e,t)=>{const n=C.forwardRef(({className:r,...o},a)=>C.createElement(Nk,{ref:a,iconNode:t,className:gb(`lucide-${bk(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Ck=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Oa=je("ArrowRight",Ck);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Ek=[["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"}]],yb=je("Award",Ek);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const kk=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Mh=je("Bell",kk);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const jk=[["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"}]],fs=je("BookOpen",jk);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Tk=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],vb=je("Building2",Tk);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const _k=[["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"}]],qp=je("Calendar",_k);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Pk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Rk=je("Check",Pk);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Ak=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xb=je("ChevronDown",Ak);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Ok=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Mk=je("ChevronLeft",Ok);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const Dk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Lk=je("ChevronRight",Dk);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Ik=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Fk=je("ChevronUp",Ik);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Bk=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Sr=je("CircleCheckBig",Bk);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Vk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Gp=je("Clock",Vk);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Uk=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Eu=je("DollarSign",Uk);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const zk=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],$k=je("Download",zk);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Wk=[["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"}]],Hk=je("ExternalLink",Wk);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const qk=[["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"}]],Gk=je("Eye",qk);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Kk=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],wb=je("Facebook",Kk);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Yk=[["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"}]],Zr=je("FileText",Yk);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Qk=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Xk=je("Filter",Qk);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const Jk=[["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"}
165]],Zk=je("Folder",Jk);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const ej=[["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"}]],bb=je("GraduationCap",ej);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const tj=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],Sb=je("Handshake",tj);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const nj=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Nr=je("Heart",nj);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const rj=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],sj=je("House",rj);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const ij=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Nb=je("Instagram",ij);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const oj=[["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"}]],aj=je("Leaf",oj);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const lj=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Cb=je("Linkedin",lj);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const cj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ma=je("LoaderCircle",cj);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const uj=[["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"}]],dj=je("Lock",uj);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const fj=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Kp=je("Mail",fj);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const hj=[["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"}]],io=je("MapPin",hj);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const pj=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],Yp=je("Megaphone",pj);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const mj=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],gj=je("Menu",mj);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const yj=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],vj=je("MessageCircle",yj);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const xj=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],wj=je("Monitor",xj);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const bj=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Qp=je("Network",bj);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const Sj=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Dh=je("Phone",Sj);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const Nj=[["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"}
255],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Eb=je("Scale",Nj);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const Cj=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],kb=je("Search",Cj);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const Ej=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],kj=je("Send",Ej);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const jj=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Tj=je("Settings",jj);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const _j=[["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"}]],tl=je("Shield",_j);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const Pj=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Rj=je("Tag",Pj);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const Aj=[["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"}]],Oj=je("Target",Aj);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const Mj=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],ku=je("TrendingUp",Mj);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const Dj=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],jb=je("Twitter",Dj);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const Lj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ij=je("User",Lj);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const Fj=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],hn=je("Users",Fj);/**
306 * @license lucide-react v0.475.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const Bj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,439 bytes, line 310
310],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tb=je("X",Bj),Xp="-",Vj=e=>{const t=zj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const d=c.split(Xp);return d[0]===""&&d.length!==1&&d.shift(),_b(d,t)||Uj(c)},getConflictingClassGroupIds:(c,d)=>{const h=n[c]||[];return d&&r[c]?[...h,...r[c]]:h}}},_b=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?_b(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Xp);return(c=t.validators.find(({validator:d})=>d(a)))==null?void 0:c.classGroupId},cv=/^\[(.+)\]$/,Uj=e=>{if(cv.test(e)){const t=cv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},zj=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Lh(n[o],r,o,t);return r},Lh=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:uv(t,o);a.classGroupId=n;return}if(typeof o=="function"){if($j(o)){Lh(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,c])=>{Lh(c,uv(t,a),n,r)})})},uv=(e,t)=>{let n=e;return t.split(Xp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$j=e=>e.isThemeGetter,Wj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,c)=>{n.set(a,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let c=n.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return o(a,c),c},set(a,c){n.has(a)?n.set(a,c):o(a,c)}}},Ih="!",Fh=":",Hj=Fh.length,qj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let c=0,d=0,h=0,p;for(let E=0;E<o.length;E++){let w=o[E];if(c===0&&d===0){if(w===Fh){a.push(o.slice(h,E)),h=E+Hj;continue}if(w==="/"){p=E;continue}}w==="["?c++:w==="]"?c--:w==="("?d++:w===")"&&d--}const m=a.length===0?o:o.substring(h),y=Gj(m),x=y!==m,N=p&&p>h?p-h:void 0;return{modifiers:a,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:N}};if(t){const o=t+Fh,a=r;r=c=>c.startsWith(o)?a(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Gj=e=>e.endsWith(Ih)?e.substring(0,e.length-1):e.startsWith(Ih)?e.substring(1):e,Kj=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(c=>{c[0]==="["||t[c]?(o.push(...a.sort(),c),a=[]):a.push(c)}),o.push(...a.sort()),o}},Yj=e=>({cache:Wj(e.cacheSize),parseClassName:qj(e),sortModifiers:Kj(e),...Vj(e)}),Qj=/\s+/,Xj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,c=[],d=e.trim().split(Qj);let h="";for(let p=d.length-1;p>=0;p-=1){const m=d[p],{isExternal:y,modifiers:x,hasImportantModifier:N,baseClassName:E,maybePostfixModifierPosition:w}=n(m);if(y){h=m+(h.length>0?" "+h:h);continue}let S=!!w,b=r(S?E.substring(0,w):E);if(!b){if(!S){h=m+(h.length>0?" "+h:h);continue}if(b=r(E),!b){h=m+(h.length>0?" "+h:h);continue}S=!1}const j=a(x).join(":"),T=N?j+Ih:j,_=T+b;if(c.includes(_))continue;c.push(_);const R=o(b,S);for(let U=0;U<R.length;++U){const $=R[U];c.push(T+$)}h=m+(h.length>0?" "+h:h)}return h};function Jj(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Pb(t))&&(r&&(r+=" "),r+=n);return r}const Pb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Pb(e[r]))&&(n&&(n+=" "),n+=t);return n};function Zj(e,...t){let n,r,o,a=c;function c(h){const p=t.reduce((m,y)=>y(m),e());return n=Yj(p),r=n.cache.get,o=n.cache.set,a=d,d(h)}function d(h){const p=r(h);if(p)return p;const m=Xj(h,n);return o(h,m),m}return function(){return a(Jj.apply(null,arguments))}}const yt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Rb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ab=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eT=/^\d+\/\d+$/,tT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nT=/\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$/,rT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oi=e=>eT.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Kr=e=>!!e&&Number.isInteger(Number(e)),Xf=e=>
vendor: 4,362 bytes, line 310
310e.endsWith("%")&&Oe(e.slice(0,-1)),mr=e=>tT.test(e),oT=()=>!0,aT=e=>nT.test(e)&&!rT.test(e),Ob=()=>!1,lT=e=>sT.test(e),cT=e=>iT.test(e),uT=e=>!fe(e)&&!he(e),dT=e=>ho(e,Lb,Ob),fe=e=>Rb.test(e),Os=e=>ho(e,Ib,aT),Jf=e=>ho(e,gT,Oe),dv=e=>ho(e,Mb,Ob),fT=e=>ho(e,Db,cT),_c=e=>ho(e,Fb,lT),he=e=>Ab.test(e),da=e=>po(e,Ib),hT=e=>po(e,yT),fv=e=>po(e,Mb),pT=e=>po(e,Lb),mT=e=>po(e,Db),Pc=e=>po(e,Fb,!0),ho=(e,t,n)=>{const r=Rb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},po=(e,t,n=!1)=>{const r=Ab.exec(e);return r?r[1]?t(r[1]):n:!1},Mb=e=>e==="position"||e==="percentage",Db=e=>e==="image"||e==="url",Lb=e=>e==="length"||e==="size"||e==="bg-size",Ib=e=>e==="length",gT=e=>e==="number",yT=e=>e==="family-name",Fb=e=>e==="shadow",vT=()=>{const e=yt("color"),t=yt("font"),n=yt("text"),r=yt("font-weight"),o=yt("tracking"),a=yt("leading"),c=yt("breakpoint"),d=yt("container"),h=yt("spacing"),p=yt("radius"),m=yt("shadow"),y=yt("inset-shadow"),x=yt("text-shadow"),N=yt("drop-shadow"),E=yt("blur"),w=yt("perspective"),S=yt("aspect"),b=yt("ease"),j=yt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[..._(),he,fe],U=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],B=()=>[he,fe,h],ne=()=>[Oi,"full","auto",...B()],G=()=>[Kr,"none","subgrid",he,fe],Z=()=>["auto",{span:["full",Kr,he,fe]},Kr,he,fe],ge=()=>[Kr,"auto",he,fe],xe=()=>["auto","min","max","fr",he,fe],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Pe=()=>["start","end","center","stretch","center-safe","end-safe"],le=()=>["auto",...B()],re=()=>[Oi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],L=()=>[e,he,fe],ee=()=>[..._(),fv,dv,{position:[he,fe]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",pT,dT,{size:[he,fe]}],W=()=>[Xf,da,Os],ue=()=>["","none","full",p,he,fe],te=()=>["",Oe,da,Os],be=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Oe,Xf,fv,dv],oe=()=>["","none",E,he,fe],Ee=()=>["none",Oe,he,fe],we=()=>["none",Oe,he,fe],se=()=>[Oe,he,fe],Te=()=>[Oi,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[oT],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[uT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",Oe],text:[mr],"text-shadow":[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oi,fe,he,S]}],container:["container"],columns:[{columns:[Oe,fe,he,d]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:R()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}
vendor: 11,629 bytes, line 310
310],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Kr,"auto",he,fe]}],basis:[{basis:[Oi,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,Oi,"auto","initial","none",fe]}],grow:[{grow:["",Oe,he,fe]}],shrink:[{shrink:["",Oe,he,fe]}],order:[{order:[Kr,"first","last","none",he,fe]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":xe()}],"auto-rows":[{"auto-rows":xe()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...Pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...Pe()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...Pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...Pe(),"baseline"]}],"place-self":[{"place-self":["auto",...Pe()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:le()}],mx:[{mx:le()}],my:[{my:le()}],ms:[{ms:le()}],me:[{me:le()}],mt:[{mt:le()}],mr:[{mr:le()}],mb:[{mb:le()}],ml:[{ml:le()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],w:[{w:[d,"screen",...re()]}],"min-w":[{"min-w":[d,"screen","none",...re()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,da,Os]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,he,Jf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xf,fe]}],"font-family":[{font:[hT,fe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,fe]}],"line-clamp":[{"line-clamp":[Oe,"none",he,Jf]}],leading:[{leading:[a,...B()]}],"list-image":[{"list-image":["none",he,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",he,Os]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Oe,"auto",he,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,fe]}],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",he,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Kr,he,fe],radial:["",he,fe],conic:[Kr,he,fe]},mT,fT]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,he,fe]}],"outline-w":[{outline:["",Oe,da,Os]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",m,Pc,_c]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",y,Pc,_c]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Oe,Os]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",x,Pc,_c]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Oe,he,fe]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"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":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[he,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,fe]}],filter:[{filter:["","none",he,fe]}],blur:[{blur:oe()}],brightness:[{brightness:[Oe,he,fe]}],contrast:[{contrast:[Oe,he,fe]}],"drop-shadow":[{"drop-shadow":["","none",N,Pc,_c]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Oe,he,fe]}],"hue-rotate":[{"hue-rotate":[Oe,he,fe]}],invert:[{invert:["",Oe,he,fe]}],saturate:[{saturate:[Oe,he,fe]}],sepia:[{sepia:["",Oe,he,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",he,fe]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,he,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,he,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,he,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,he,fe]}],"backdrop-invert":[{"backdrop-invert":["",Oe,he,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,he,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,he,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,he,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",he,fe]}],ease:[{ease:["linear","initial",b,he,fe]}],delay:[{delay:[Oe,he,fe]}],animate:[{animate:["none",j,he,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,he,fe]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[he,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Te()}],"translate-x":[{"translate-x":Te()}],"translate-y":[{"translate-y":Te()}],"translate-z":[{"translate-z":Te()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}
vendor: 6,657 bytes, line 310
310],"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",he,fe]}],"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":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",he,fe]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Oe,da,Os,Jf]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xT=Zj(vT);function Rt(...e){return xT(mb(e))}const Bb=C.forwardRef(({...e},t)=>u.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));Bb.displayName="ToastProvider";const Vb=C.forwardRef(({...e},t)=>u.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));Vb.displayName="ToastViewport";const wT=Hp("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ub=C.forwardRef(({className:e,variant:t,...n},r)=>u.jsx("div",{ref:r,className:Rt(wT({variant:t}),e),...n}));Ub.displayName="Toast";const bT=C.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Rt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));bT.displayName="ToastAction";const zb=C.forwardRef(({className:e,...t},n)=>u.jsx("button",{ref:n,className:Rt("absolute right-2 top-2 rounded-md p-1 text-foreground
310/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Tb,{className:"h-4 w-4"})}));zb.displayName="ToastClose";const $b=C.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Rt("text-sm font-semibold",e),...t}));$b.displayName="ToastTitle";const Wb=C.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Rt("text-sm opacity-90",e),...t}));Wb.displayName="ToastDescription";function ST(){const{toasts:e}=wk();return u.jsxs(Bb,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return u.jsxs(Ub,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx($b,{children:n}),r&&u.jsx(Wb,{children:r})]}),o,u.jsx(zb,{})]},t)}),u.jsx(Vb,{})]})}var nl=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(){}},NT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},es,Up,rb,CT=(rb=class{constructor(){Ce(this,es,NT);Ce(this,Up,!1)}setTimeoutProvider(e){ae(this,es,e)}setTimeout(e,t){return O(this,es).setTimeout(e,t)}clearTimeout(e){O(this,es).clearTimeout(e)}setInterval(e,t){return O(this,es).setInterval(e,t)}clearInterval(e){O(this,es).clearInterval(e)}},es=new WeakMap,Up=new WeakMap,rb),Fs=new CT;function ET(e){setTimeout(e,0)}var Js=typeof window>"u"||"Deno"in globalThis;function en(){}function kT(e,t){return typeof e=="function"?e(t):e}function Bh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Hb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cs(e,t){return typeof e=="function"?e(t):e}function En(e,t){return typeof e=="function"?e(t):e}function hv(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:c,stale:d}=e;if(c){if(r){if(t.queryHash!==Jp(c,t.options))return!1}else if(!La(t.queryKey,c))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||a&&!a(t))}function pv(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Da(t.options.mutationKey)!==Da(a))return!1}else if(!La(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Jp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Da)(e)}function Da(e){return JSON.stringify(e,(t,n)=>Uh(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function La(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>La(e[n],t[n])):!1}var jT=Object.prototype.hasOwnProperty;function qb(e,t){if(e===t)return e;const n=mv(e)&&mv(t);if(!n&&!(Uh(e)&&Uh(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),c=a.length,d=n?new Array(c):{};let h=0;for(let p=0;p<c;p++){const m=n?p:a[p],y=e[m],x=t[m];if(y===x){d[m]=y,(n?p<o:jT.call(e,m))&&h++;continue}if(y===null||x===null||typeof y!="object"||typeof x!="object"){d[m]=x;continue}const N=qb(y,x);d[m]=N,N===y&&h++}return o===c&&h===o?e:d}function Vh(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 mv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uh(e){if(!gv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!gv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gv(e){return Object.prototype.toString.call(e)==="[object Object]"}function TT(e){return new Promise(t=>{Fs.setTimeout(t,e)})}function zh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qb(e,t):t}function _T(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function PT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Zp=Symbol();function Gb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Zp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function RT(e,t){return typeof e=="function"?e(...t):!!e}var Us,ts,Gi,sb,AT=(sb=class extends nl{constructor(){super();Ce(this,Us);Ce(this,ts);Ce(this,Gi);ae(this,Gi,t=>{if(!Js&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){O(this,ts)||this.setEventListener(O(this,Gi))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,ts))==null||t.call(this),ae(this,ts,void 0))}setEventListener(t){var n;ae(this,Gi,t),(n=O(this,ts))==null||n.call(this),ae(this,ts,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){O(this,Us)!==t&&(ae(this,Us,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 2,453 bytes, line 310
310this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof O(this,Us)=="boolean"?O(this,Us):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Us=new WeakMap,ts=new WeakMap,Gi=new WeakMap,sb),em=new AT;function $h(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var OT=ET;function MT(){let e=[],t=0,n=d=>{d()},r=d=>{d()},o=OT;const a=d=>{t?e.push(d):o(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},batchCalls:d=>(...h)=>{a(()=>{d(...h)})},schedule:a,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var _t=MT(),Ki,ns,Yi,ib,DT=(ib=class extends nl{constructor(){super();Ce(this,Ki,!0);Ce(this,ns);Ce(this,Yi);ae(this,Yi,t=>{if(!Js&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){O(this,ns)||this.setEventListener(O(this,Yi))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,ns))==null||t.call(this),ae(this,ns,void 0))}setEventListener(t){var n;ae(this,Yi,t),(n=O(this,ns))==null||n.call(this),ae(this,ns,t(this.setOnline.bind(this)))}setOnline(t){O(this,Ki)!==t&&(ae(this,Ki,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return O(this,Ki)}},Ki=new WeakMap,ns=new WeakMap,Yi=new WeakMap,ib),au=new DT;function LT(e){return Math.min(1e3*2**e,3e4)}function Kb(e){return(e??"online")==="online"?au.isOnline():!0}var Wh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Yb(e){let t=!1,n=0,r;const o=$h(),a=()=>o.status!=="pending",c=w=>{var S;if(!a()){const b=new Wh(w);x(b),(S=e.onCancel)==null||S.call(e,b)}},d=()=>{t=!0},h=()=>{t=!1},p=()=>em.isFocused()&&(e.networkMode==="always"||au.isOnline())&&e.canRun(),m=()=>Kb(e.networkMode)&&e.canRun(),y=w=>{a()||(r==null||r(),o.resolve(w))},x=w=>{a()||(r==null||r(),o.reject(w))},N=()=>new Promise(w=>{var S;r=b=>{(a()||p())&&w(b)},(S=e.onPause)==null||S.call(e)}).then(()=>{var w;r=void 0,a()||(w=e.onContinue)==null||w.call(e)}),E=()=>
vendor: 4,376 bytes, line 310
310{if(a())return;let w;const S=n===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(b){w=Promise.reject(b)}Promise.resolve(w).then(y).catch(b=>{var U;if(a())return;const j=e.retry??(Js?0:3),T=e.retryDelay??LT,_=typeof T=="function"?T(n,b):T,R=j===!0||typeof j=="number"&&n<j||typeof j=="function"&&j(n,b);if(t||!R){x(b);return}n++,(U=e.onFail)==null||U.call(e,n,b),TT(_).then(()=>p()?void 0:N()).then(()=>{t?x(b):E()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(r==null||r(),o),cancelRetry:d,continueRetry:h,canStart:m,start:()=>(m()?E():N().then(E),o)}}var zs,ob,Qb=(ob=class{constructor(){Ce(this,zs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bh(this.gcTime)&&ae(this,zs,Fs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Js?1/0:300*1e3))}clearGcTimeout(){O(this,zs)&&(Fs.clearTimeout(O(this,zs)),ae(this,zs,void 0))}},zs=new WeakMap,ob),$s,Qi,Cn,Ws,Ct,Qa,Hs,In,gr,ab,IT=(ab=class extends Qb{constructor(t){super();Ce(this,In);Ce(this,$s);Ce(this,Qi);Ce(this,Cn);Ce(this,Ws);Ce(this,Ct);Ce(this,Qa);Ce(this,Hs);ae(this,Hs,!1),ae(this,Qa,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,Ws,t.client),ae(this,Cn,O(this,Ws).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,$s,yv(this.options)),this.state=t.state??O(this,$s),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=O(this,Ct))==null?void 0:t.promise}setOptions(t){if(this.options={...O(this,Qa),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=yv(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),ae(this,$s,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Cn).remove(this)}setData(t,n){const r=zh(this.state.data,t,this.options);return De(this,In,gr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){De(this,In,gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=O(this,Ct))==null?void 0:r.promise;return(o=O(this,Ct))==null||o.cancel(t),n?n.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,$s))}isActive(){return this.observers.some(t=>En(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>cs(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Hb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,Ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,Ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),O(this,Cn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(O(this,Ct)&&(O(this,Hs)?O(this,Ct).cancel({revert:!0}):O(this,Ct).cancelRetry()),this.scheduleGc()),O(this,Cn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||De(this,In,gr).call(this,{type:"invalidate"})}async fetch(t,n){var h,p,m,y,x,N,E,w,S,b,j,T;if(this.state.fetchStatus!=="idle"&&((h=O(this,Ct))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(O(this,Ct))return O(this,Ct).continueRetry(),O(this,Ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(R=>R.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,o=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(ae(this,Hs,!0),r.signal)}
vendor: 7,777 bytes, line 310
310)},a=()=>{const _=Gb(this.options,n),U=(()=>{const $={client:O(this,Ws),queryKey:this.queryKey,meta:this.meta};return o($),$})();return ae(this,Hs,!1),this.options.persister?this.options.persister(_,U,this):_(U)},d=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:O(this,Ws),state:this.state,fetchFn:a};return o(_),_})();(p=this.options.behavior)==null||p.onFetch(d,this),ae(this,Qi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=d.fetchOptions)==null?void 0:m.meta))&&De(this,In,gr).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ae(this,Ct,Yb({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:_=>{_ instanceof Wh&&_.revert&&this.setState({...O(this,Qi),fetchStatus:"idle"}),r.abort()},onFail:(_,R)=>{De(this,In,gr).call(this,{type:"failed",failureCount:_,error:R})},onPause:()=>{De(this,In,gr).call(this,{type:"pause"})},onContinue:()=>{De(this,In,gr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const _=await O(this,Ct).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(N=(x=O(this,Cn).config).onSuccess)==null||N.call(x,_,this),(w=(E=O(this,Cn).config).onSettled)==null||w.call(E,_,this.state.error,this),_}catch(_){if(_ instanceof Wh){if(_.silent)return O(this,Ct).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw De(this,In,gr).call(this,{type:"error",error:_}),(b=(S=O(this,Cn).config).onError)==null||b.call(S,_,this),(T=(j=O(this,Cn).config).onSettled)==null||T.call(j,this.state.data,_,this),_}finally{this.scheduleGc()}}},$s=new WeakMap,Qi=new WeakMap,Cn=new WeakMap,Ws=new WeakMap,Ct=new WeakMap,Qa=new WeakMap,Hs=new WeakMap,In=new WeakSet,gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Xb(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ae(this,Qi,t.manual?o:void 0),o;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),O(this,Cn).notify({query:this,type:"updated",action:t})})},ab);function Xb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yv(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 Zt,Le,Xa,zt,qs,Xi,yr,rs,Ja,Ji,Zi,Gs,Ks,ss,eo,Be,xa,Hh,qh,Gh,Kh,Yh,Qh,Xh,Jb,lb,FT=(lb=class extends nl{constructor(t,n){super();Ce(this,Be);Ce(this,Zt);Ce(this,Le);Ce(this,Xa);Ce(this,zt);Ce(this,qs);Ce(this,Xi);Ce(this,yr);Ce(this,rs);Ce(this,Ja);Ce(this,Ji);Ce(this,Zi);Ce(this,Gs);Ce(this,Ks);Ce(this,ss);Ce(this,eo,new Set);this.options=n,ae(this,Zt,t),ae(this,rs,null),ae(this,yr,$h()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Le).addObserver(this),vv(O(this,Le),this.options)?De(this,Be,xa).call(this):this.updateResult(),De(this,Be,Kh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jh(O(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jh(O(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,De(this,Be,Yh).call(this),De(this,Be,Qh).call(this),O(this,Le).removeObserver(this)}setOptions(t){const n=this.options,r=O(this,Le);if(this.options=O(this,Zt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(this.options.enabled,O(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");De(this,Be,Xh).call(this),O(this,Le).setOptions(this.options),n._defaulted&&!Vh(this.options,n)&&O(this,Zt).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Le),observer:this});const o=this.hasListeners();o&&xv(O(this,Le),r,this.options,n)&&De(this,Be,xa).call(this),this.updateResult(),o&&(O(this,Le)!==r||En(this.options.enabled,O(this,Le))!==En(n.enabled,O(this,Le))||cs(this.options.staleTime,O(this,Le))!==cs(n.staleTime,O(this,Le)))&&De(this,Be,Hh).call(this);const a=De(this,Be,qh).call(this);o&&(O(this,Le)!==r||En(this.options.enabled,O(this,Le))!==En(n.enabled,O(this,Le))||a!==O(this,ss))&&De(this,Be,Gh).call(this,a)}getOptimisticResult(t){const n=O(this,Zt).getQueryCache().build(O(this,Zt),t),r=this.createResult(n,t);return VT(this,r)&&(ae(this,zt,r),ae(this,Xi,this.options),ae(this,qs,O(this,Le).state)),r}getCurrentResult(){return O(this,zt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&O(this,yr).status==="pending"&&O(this,yr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){O(this,eo).add(t)}getCurrentQuery(){return O(this,Le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=O(this,Zt).defaultQueryOptions(t),r=O(this,Zt).getQueryCache().build(O(this,Zt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return De(this,Be,xa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,zt)))}createResult(t,n){var ne;const r=O(this,Le),o=this.options,a=O(this,zt),c=O(this,qs),d=O(this,Xi),p=t!==r?t.state:O(this,Xa),{state:m}=t;let y={...m},x=!1,N;if(n._optimisticResults){const G=this.hasListeners(),Z=!G&&vv(t,n),ge=G&&xv(t,r,n,o);(Z||ge)&&(y={...y,...Xb(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:w,status:S}=y;N=y.data;let b=!1;if(n.placeholderData!==void 0&&N===void 0&&S==="pending"){let G;a!=null&&a.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(G=a.data,b=!0):G=typeof n.placeholderData=="function"?n.placeholderData((ne=O(this,Zi))==null?void 0:ne.state.data,O(this,Zi)):n.placeholderData,G!==void 0&&(S="success",N=zh(a==null?void 0:a.data,G,n),x=!0)}if(n.select&&N!==void 0&&!b)if(a&&N===(c==null?void 0:c.data)&&n.select===O(this,Ja))N=O(this,Ji);else try{ae(this,Ja,n.select),N=n.select(N),N=zh(a==null?void 0:a.data,N,n),ae(this,Ji,N),ae(this,rs,null)}catch(G){ae(this,rs,G)}O(this,rs)&&(E=O(this,rs),N=O(this,Ji),w=Date.now(),S="error");const j=y.fetchStatus==="fetching",T=S==="pending",_=S==="error",R=T&&j,U=N!==void 0,B={status:S,fetchStatus:y.fetchStatus,isPending:T,isSuccess:S==="success",isError:_,isInitialLoading:R,isLoading:R,data:N,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdate
vendor: 8,445 bytes, line 310
310Count:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:j,isRefetching:j&&!T,isLoadingError:_&&!U,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:_&&U,isStale:tm(t,n),refetch:this.refetch,promise:O(this,yr),isEnabled:En(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=xe=>{B.status==="error"?xe.reject(B.error):B.data!==void 0&&xe.resolve(B.data)},Z=()=>{const xe=ae(this,yr,B.promise=$h());G(xe)},ge=O(this,yr);switch(ge.status){case"pending":t.queryHash===r.queryHash&&G(ge);break;case"fulfilled":(B.status==="error"||B.data!==ge.value)&&Z();break;case"rejected":(B.status!=="error"||B.error!==ge.reason)&&Z();break}}return B}updateResult(){const t=O(this,zt),n=this.createResult(O(this,Le),this.options);if(ae(this,qs,O(this,Le).state),ae(this,Xi,this.options),O(this,qs).data!==void 0&&ae(this,Zi,O(this,Le)),Vh(n,t))return;ae(this,zt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!O(this,eo).size)return!0;const c=new Set(a??O(this,eo));return this.options.throwOnError&&c.add("error"),Object.keys(O(this,zt)).some(d=>{const h=d;return O(this,zt)[h]!==t[h]&&c.has(h)})};De(this,Be,Jb).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&De(this,Be,Kh).call(this)}},Zt=new WeakMap,Le=new WeakMap,Xa=new WeakMap,zt=new WeakMap,qs=new WeakMap,Xi=new WeakMap,yr=new WeakMap,rs=new WeakMap,Ja=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,Gs=new WeakMap,Ks=new WeakMap,ss=new WeakMap,eo=new WeakMap,Be=new WeakSet,xa=function(t){De(this,Be,Xh).call(this);let n=O(this,Le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(en)),n},Hh=function(){De(this,Be,Yh).call(this);const t=cs(this.options.staleTime,O(this,Le));if(Js||O(this,zt).isStale||!Bh(t))return;const r=Hb(O(this,zt).dataUpdatedAt,t)+1;ae(this,Gs,Fs.setTimeout(()=>{O(this,zt).isStale||this.updateResult()},r))},qh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Le)):this.options.refetchInterval)??!1},Gh=function(t){De(this,Be,Qh).call(this),ae(this,ss,t),!(Js||En(this.options.enabled,O(this,Le))===!1||!Bh(O(this,ss))||O(this,ss)===0)&&ae(this,Ks,Fs.setInterval(()=>{(this.options.refetchIntervalInBackground||em.isFocused())&&De(this,Be,xa).call(this)},O(this,ss)))},Kh=function(){De(this,Be,Hh).call(this),De(this,Be,Gh).call(this,De(this,Be,qh).call(this))},Yh=function(){O(this,Gs)&&(Fs.clearTimeout(O(this,Gs)),ae(this,Gs,void 0))},Qh=function(){O(this,Ks)&&(Fs.clearInterval(O(this,Ks)),ae(this,Ks,void 0))},Xh=function(){const t=O(this,Zt).getQueryCache().build(O(this,Zt),this.options);if(t===O(this,Le))return;const n=O(this,Le);ae(this,Le,t),ae(this,Xa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Jb=function(t){_t.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(O(this,zt))}),O(this,Zt).getQueryCache().notify({query:O(this,Le),type:"observerResultsUpdated"})})},lb);function BT(e,t){return En(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function vv(e,t){return BT(e,t)||e.state.data!==void 0&&Jh(e,t,t.refetchOnMount)}function Jh(e,t,n){if(En(t.enabled,e)!==!1&&cs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&tm(e,t)}return!1}function xv(e,t,n,r){return(e!==t||En(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&tm(e,n)}function tm(e,t){return En(t.enabled,e)!==!1&&e.isStaleByTime(cs(t.staleTime,e))}function VT(e,t){return!Vh(e.getCurrentResult(),t)}function wv(e){return{onFetch:(t,n)=>{var m,y,x,N,E;const r=t.options,o=(x=(y=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,a=((N=t.state.data)==null?void 0:N.pages)||[],c=((E=t.state.data)==null?void 0:E.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let w=!1;const S=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},b=Gb(t.options,t.fetchOptions),j=async(T,_,R)=>{if(w)return Promise.reject();if(_==null&&T.pages.length)return Promise.resolve(T);const $=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:_,direction:R?"backward":"forward",meta:t.options.meta};return S(Z),Z})(),B=await b($),{maxPages:ne}=t.options,G=R?PT:_T;return{pages:G(T.pages,B,ne),pageParams:G(T.pageParams,_,ne)}};if(o&&a.length){const T=o==="backward",_=T?UT:bv,R={pages:a,pageParams:c},U=_(r,R);d=await j(R,U,T)}else{const T=e??a.length;do{const _=h===0?c[0]??r.initialPageParam:bv(r,d);if(h>0&&_==null)break;d=await j(d,_),h++}while(h<T)}return d};t.options.persister?t.fetchFn=()=>{var w,S;return(S=(w=t.options).persister)==null?void 0:S.call(w,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function bv(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 UT(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Za,Yn,$t,Ys,Qn,Qr,cb,zT=(cb=class extends Qb{constructor(t){super();Ce(this,Qn);Ce(this,Za);Ce(this,Yn);Ce(this,$t);Ce(this,Ys);ae(this,Za,t.client),this.mutationId=t.mutationId,ae(this,$t,t.mutationCache),ae(this,Yn,[]),this.state=t.state||$T(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){O(this,Yn).includes(t)||(O(this,Yn).push(t),this.clearGcTimeout(),O(this,$t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,Yn,O(this,Yn).filter(n=>n!==t)),this.scheduleGc(),O(this,$t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){O(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():O(this,$t).remove(this))}continue(){var t;return((t=O(this,Ys))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,d,h,p,m,y,x,N,E,w,S,b,j,T,_,R,U,$,B,ne;const n=()=>{De(this,Qn,Qr).call(this,{type:"continue"})},r={client:O(this,Za),meta:this.options.meta,mutationKey:this.options.mutationKey};ae(this,Ys,Yb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(G,Z)=>{De(this,Qn,Qr).call(this,{type:"failed",failureCount:G,error:Z})},onPause:()=>{De(this,Qn,Qr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,$t).canRun(this)}));const o=this.state.status==="pending",a=!O(this,Ys).canStart();try{if(o)n();else{De(this,Qn,Qr).call(this,{type:"pending",variables:t,isPaused:a}),await((d=(c=O(this,$t).config).onMutate)==null?void 0:d.call(c,t,this,r));const Z=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,t,r));Z!==this.state.context&&De(this,Qn,Qr).call(this,{type:"pending",context:Z,variables:t,isPaused:a})}const G=await O(this,Ys).start();return await((y=(m=O(this,$t).config).onSuccess)==null?void 0:y.call(m,G,t,this.state.context,this,r)),await((N=(x=this.options).onSuccess)==null?void 0:N.call(x,G,t,this.state.context,r)),await((w=(E=O(this,$t).config).onSettled)==null?void 0:w.call(E,G,null,this.state.variables,this.state.context,this,r)),await((b=(S=this.options).onSettled)==null?void 0:b.call(S,G,null,t,this.state.context,r)),De(this,Qn,Qr).call(this,{type:"success",data:G}),G}catch(G){try{throw await((T=(j=O(this,$t).config).onError)==null?void 0:T.call(j,G,t,this.state.context,this,r)),await((R=(_=this.options).onError)==null?void 0:R.call(_,G,t,this.state.context,r)),await(($=(U=O(this,$t).config).onSettled)==null?void 0:$.call(U,void 0,G,this.state.variables,this.state.context,this,r)),await((ne=(B=this.options).onSettled)==null?void 0:ne.call(B,void 0,G,t,this.state.context,r)),G}finally{De(this,Qn,Qr).call(this,{type:"error",error:G})}}finally{O(this,$t).runNext(this)}}},Za=new WeakMap,Yn=new WeakMap,$t=new WeakMap,Ys=new WeakMap,Qn=new WeakSet,Qr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
310case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_t.batch(()=>{O(this,Yn).forEach(r=>{r.onMutationUpdate(t)}),O(this,$t).notify({mutation:this,type:"updated",action:t})})},cb);function $T(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vr,Fn,el,ub,WT=(ub=class extends nl{constructor(t={}){super();Ce(this,vr);Ce(this,Fn);Ce(this,el);this.config=t,ae(this,vr,new Set),ae(this,Fn,new Map),ae(this,el,0)}build(t,n,r){const o=new zT({client:t,mutationCache:this,mutationId:++jc(this,el)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){O(this,vr).add(t);const n=Rc(t);if(typeof n=="string"){const r=O(this,Fn).get(n);r?r.push(t):O(this,Fn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(O(this,vr).delete(t)){const n=Rc(t);if(typeof n=="string"){const r=O(this,Fn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&O(this,Fn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Rc(t);if(typeof n=="string"){const r=O(this,Fn).get(n),o=r==null?void 0:r.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Rc(t);if(typeof n=="string"){const o=(r=O(this,Fn).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_t.batch(()=>{O(this,vr).forEach(t=>{this.notify({type:"removed",mutation:t})}),O(this,vr).clear(),O(this,Fn).clear()})}getAll(){return Array.from(O(this,vr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pv(n,r))}findAll(t={}){return this.getAll().filter(n=>pv(t,n))}notify(t){_t.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _t.batch(()=>Promise.all(t.map(n=>n.continue().catch(en))))}},vr=new WeakMap,Fn=new WeakMap,el=new WeakMap,ub);function Rc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Xn,db,HT=(db=class extends nl{constructor(t={}){super();Ce(this,Xn);this.config=t,ae(this,Xn,new Map)}build(t,n,r){const o=n.queryKey,a=n.queryHash??Jp(o,n);let c=this.get(a);return c||(c=new IT({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(c)),c}add(t){O(this,Xn).has(t.queryHash)||(O(this,Xn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=O(this,Xn).get(t.queryHash);n&&(t.destroy(),n===t&&O(this,Xn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return O(this,Xn).get(t)}getAll(){return[...O(this,Xn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>hv(t,r)):n}notify(t){_t.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xn=new WeakMap,db),tt,is,os,to,no,as,ro,so,fb,qT=(fb=class{constructor(e={}){Ce(this,tt);Ce(this,is);Ce(this,os);Ce(this,to);Ce(this,no);Ce(this,as);Ce(this,ro);Ce(this,so);ae(this,tt,e.queryCache||new HT),ae(this,is,e.mutationCache||new WT),ae(this,os,e.defaultOptions||{}),ae(this,to,new Map),ae(this,no,new Map),ae(this,as,0)}mount(){jc(this,as)._++,O(this,as)===1&&(ae(this,ro,em.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,tt).onFocus())})),ae(this,so,au.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,tt).onOnline())})))}unmount(){var e,t;jc(this,as)._--,O(this,as)===0&&((e=O(this,ro))==null||e.call(this),ae(this,ro,void 0),(t=O(this,so))==null||t.call(this),ae(this,so,void 0))}isFetching(e){return O(this,tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,is).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,tt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=O(this,tt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(cs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return O(this,tt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=O(this,tt).get(r.queryHash),a=o==null?void 0:o.state.data,c=kT(t,a);if(c!==void 0)return O(this,tt).build(this,r).setData(c,{...n,manual:!0})}
310setQueriesData(e,t,n){return _t.batch(()=>O(this,tt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,tt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=O(this,tt);_t.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=O(this,tt);return _t.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_t.batch(()=>O(this,tt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(en).catch(en)}invalidateQueries(e,t={}){return _t.batch(()=>(O(this,tt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_t.batch(()=>O(this,tt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(en)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(en)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=O(this,tt).build(this,t);return n.isStaleByTime(cs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(en).catch(en)}fetchInfiniteQuery(e){return e.behavior=wv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(en).catch(en)}ensureInfiniteQueryData(e){return e.behavior=wv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return au.isOnline()?O(this,is).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,tt)}getMutationCache(){return O(this,is)}getDefaultOptions(){return O(this,os)}setDefaultOptions(e){ae(this,os,e)}setQueryDefaults(e,t){O(this,to).set(Da(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...O(this,to).values()],n={};return t.forEach(r=>{La(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){O(this,no).set(Da(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...O(this,no).values()],n={};return t.forEach(r=>{La(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...O(this,os).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jp(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===Zp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,os).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,tt).clear(),O(this,is).clear()}},tt=new WeakMap,is=new WeakMap,os=new WeakMap,to=new WeakMap,no=new WeakMap,as=new WeakMap,ro=new WeakMap,so=new WeakMap,fb),Zb=C.createContext(void 0),GT=e=>{const t=C.useContext(Zb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},KT=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Zb.Provider,{value:e,children:t})),e1=C.createContext(!1),YT=()=>C.useContext(e1);e1.Provider;function QT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XT=C.createContext(QT()),JT=()=>C.useContext(XT),ZT=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},e_=e=>{C.useEffect(()=>{e.clearReset()},[e])},t_=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||RT(n,[e.error,r])),n_=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},r_=(e,t)=>
310e.isLoading&&e.isFetching&&!t,s_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Sv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function i_(e,t,n){var y,x,N,E,w;const r=YT(),o=JT(),a=GT(),c=a.defaultQueryOptions(e);(x=(y=a.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||x.call(y,c),c._optimisticResults=r?"isRestoring":"optimistic",n_(c),ZT(c,o),e_(o);const d=!a.getQueryCache().get(c.queryHash),[h]=C.useState(()=>new t(a,c)),p=h.getOptimisticResult(c),m=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(S=>{const b=m?h.subscribe(_t.batchCalls(S)):en;return h.updateResult(),b},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),C.useEffect(()=>{h.setOptions(c)},[c,h]),s_(c,p))throw Sv(c,h,o);if(t_({result:p,errorResetBoundary:o,throwOnError:c.throwOnError,query:a.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw p.error;if((E=(N=a.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||E.call(N,c,p),c.experimental_prefetchInRender&&!Js&&r_(p,r)){const S=d?Sv(c,h,o):(w=a.getQueryCache().get(c.queryHash))==null?void 0:w.promise;S==null||S.catch(en).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?p:h.trackResult(p)}function rl(e,t){return i_(e,FT)}const o_=new qT({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var sl=hb();const a_=zp(sl);/**
311 * @remix-run/router v1.23.0
312 *
313 * Copyright (c) Remix Software Inc.
314 *
315 * This source code is licensed under the MIT license found in the
316 * LICENSE.md file in the root directory of this source tree.
317 *
318 * @license MIT
319 */function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ia.apply(this,arguments)}var ls;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ls||(ls={}));const Nv="popstate";function l_(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:c,hash:d}=r.location;return Zh("",{pathname:a,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:lu(o)}return u_(t,n,null,e)}function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function t1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c_(){return Math.random().toString(36).substr(2,8)}function Cv(e,t){return{usr:e.state,key:e.key,idx:t}}function Zh(e,t,n,r){return n===void 0&&(n=null),Ia({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mo(t):t,{state:n,key:t&&t.key||r||c_()})}function lu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function u_(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,c=o.history,d=ls.Pop,h=null,p=m();p==null&&(p=0,c.replaceState(Ia({},c.state,{idx:p}),""));function m(){return(c.state||{idx:null}).idx}function y(){d=ls.Pop;let S=m(),b=S==null?null:S-p;p=S,h&&h({action:d,location:w.location,delta:b})}function x(S,b){d=ls.Push;let j=Zh(w.location,S,b);p=m()+1;let T=Cv(j,p),_=w.createHref(j);try{c.pushState(T,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(_)}a&&h&&h({action:d,location:w.location,delta:1})}function N(S,b){d=ls.Replace;let j=Zh(w.location,S,b);p=m();let T=Cv(j,p),_=w.createHref(j);c.replaceState(T,"",_),a&&h&&h({action:d,location:w.location,delta:0})}function E(S){let b=o.location.origin!=="null"?o.location.origin:o.location.href,j=typeof S=="string"?S:lu(S);return j=j.replace(/ $/,"%20"),ht(b,"No window.location.(origin|href) available to create URL for href: "+j),new URL(j,b)}let w={get action(){return d},get location(){return e(o,c)},listen(S){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Nv,y),h=S,()=>{o.removeEventListener(Nv,y),h=null}},createHref(S){return t(o,S)},createURL:E,encodeLocation(S){let b=E(S);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:x,replace:N,go(S){return c.go(S)}};return w}var Ev;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ev||(Ev={}));function d_(e,t,n){return n===void 0&&(n="/"),f_(e,t,n)}function f_(e,t,n,r){let o=typeof t=="string"?mo(t):t,a=nm(o.pathname||"/",n);if(a==null)return null;
vendor: 11,451 bytes, lines 319-328
319let c=n1(e);h_(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=E_(a);d=S_(c[h],p)}return d}function n1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,c,d)=>{let h={relativePath:d===void 0?a.path||"":d,caseSensitive:a.caseSensitive===!0,childrenIndex:c,route:a};h.relativePath.startsWith("/")&&(ht(h.relativePath.startsWith(r),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(r.length));let p=us([r,h.relativePath]),m=n.concat(h);a.children&&a.children.length>0&&(ht(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),n1(a.children,t,m,p)),!(a.path==null&&!a.index)&&t.push({path:p,score:w_(p,a.index),routesMeta:m})};return e.forEach((a,c)=>{var d;if(a.path===""||!((d=a.path)!=null&&d.includes("?")))o(a,c);else for(let h of r1(a.path))o(a,c,h)}),t}function r1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let c=r1(r.join("/")),d=[];return d.push(...c.map(h=>h===""?a:[a,h].join("/"))),o&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function h_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:b_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const p_=/^:[\w-]+$/,m_=3,g_=2,y_=1,v_=10,x_=-2,kv=e=>e==="*";function w_(e,t){let n=e.split("/"),r=n.length;return n.some(kv)&&(r+=x_),t&&(r+=g_),n.filter(o=>!kv(o)).reduce((o,a)=>o+(p_.test(a)?m_:a===""?y_:v_),r)}function b_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function S_(e,t,n){let{routesMeta:r}=e,o={},a="/",c=[];for(let d=0;d<r.length;++d){let h=r[d],p=d===r.length-1,m=a==="/"?t:t.slice(a.length)||"/",y=N_({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},m),x=h.route;if(!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:us([a,y.pathname]),pathnameBase:__(us([a,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(a=us([a,y.pathnameBase]))}return c}function N_(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=C_(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],c=a.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:r.reduce((p,m,y)=>{let{paramName:x,isOptional:N}=m;if(x==="*"){let w=d[y]||"";c=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const E=d[y];return N&&!E?p[x]=void 0:p[x]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:c,pattern:e}}function C_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),t1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(r.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function E_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return t1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function nm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function k_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?mo(e):e;return{pathname:n?n.startsWith("/")?n:j_(n,t):t,search:P_(r),hash:R_(o)}}function j_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Zf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function T_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function s1(e,t){let n=T_(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function i1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=mo(e):(o=Ia({},e),ht(!o.pathname||!o.pathname.includes("?"),Zf("?","pathname","search",o)),ht(!o.pathname||!o.pathname.includes("#"),Zf("#","pathname","hash",o)),ht(!o.search||!o.search.includes("#"),Zf("#","search","hash",o)));let a=e===""||o.pathname==="",c=a?"/":o.pathname,d;if(c==null)d=n;else{let y=t.length-1;if(!r&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),y-=1;o.pathname=x.join("/")}d=y>=0?t[y]:"/"}let h=k_(o,d),p=c&&c!=="/"&&c.endsWith("/"),m=(a||c===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(p||m)&&(h.pathname+="/"),h}const us=e=>e.join("/").replace(/\/\/+/g,"/"),__=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,R_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function A_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o1=["post","put","patch","delete"];new Set(o1);const O_=["get",...o1];new Set(O_);/**
320 * React Router v6.30.1
321 *
322 * Copyright (c) Remix Software Inc.
323 *
324 * This source code is licensed under the MIT license found in the
325 * LICENSE.md file in the root directory of this source tree.
326 *
327 * @license MIT
328 */function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fa.apply(this,arguments)}const rm=C.createContext(null),M_=C.createContext(null),ii=C.createContext(null),ju=C.createContext(null),oi=C.createContext({outlet:null,matches:[],isDataRoute:!1}),a1=C.createContext(null);function D_(e,t){let{relative:n}=t===void 0?{}:t;il()||ht(!1);let{basename:r,navigator:o}=C.useContext(ii),{hash:a,pathname:c,search:d}=c1(e,{relative:n}),h=c;return r!=="/"&&(h=c==="/"?r:us([r,c])),o.createHref({pathname:h,search:d,hash:a})}function il(){return C.useContext(ju)!=null}function go(){return il()||ht(!1),C.useContext(ju).location}function l1(e){C.useContext(ii).static||C.useLayoutEffect(e)}function L_(){let{isDataRoute:e}=C.useContext(oi);return e?Y_():I_()}function I_(){il()||ht(!1);let e=C.useContext(rm),{basename:t,future:n,navigator:r}=C.useContext(ii),{matches:o}=C.useContext(oi),{pathname:a}=go(),c=JSON.stringify(s1(o,n.v7_relativeSplatPath)),d=C.useRef(!1);return l1(()=>{d.current=!0}),C.useCallback(function(p,m){if(m===void 0&&(m={}),!d.current)return;if(typeof p=="number"){r.go(p);return}let y=i1(p,JSON.parse(c),a,m.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:us([t,y.pathname])),(m.replace?r.replace:r.push)(y,m.state,m)},[t,r,c,a,e])}function c1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(ii),{matches:o}=C.useContext(oi),{pathname:a}=go(),c=JSON.stringify(s1(o,r.v7_relativeSplatPath));return C.useMemo(()=>i1(e,JSON.parse(c),a,n==="path"),[e,c,a,n])}function F_(e,t){return B_(e,t)}function B_(e,t,n,r){il()||ht(!1);let{navigator:o}=C.useContext(ii),{matches:a}=C.useContext(oi),c=a[a.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let p=go(),m;if(t){var y;let S=typeof t=="string"?mo(t):t;h==="/"||(y=S.pathname)!=null&&y.startsWith(h)||ht(!1),m=S}else m=p;let x=m.pathname||"/",N=x;if(h!=="/"){let S=h.replace(/^\//,"").split("/");N="/"+x.replace(/^\//,"").split("/").slice(S.length).join("/")}let E=d_(e,{pathname:N}),w=W_(E&&E.map(S=>Object.assign({},S,{params:Object.assign({},d,S.params),pathname:us([h,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?h:us([h,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r);return t&&w?C.createElement(ju.Provider,{value:{location:Fa({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ls.Pop}},w):w}function V_(){let e=K_(),t=A_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:o},n):null,null)}const U_=C.createElement(V_,null);class z_ extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(oi.Provider,{value:this.props.routeContext},C.createElement(a1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $_(e){let{routeContext:t,match:n,children:r}=e,o=C.useContext(rm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(oi.Provider,{value:t},r)}function W_(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let c=e,d=(o=n)==null?void 0:o.errors;if(d!=null){let m=c.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);m>=0||ht(!1),c=c.slice(0,Math.min(c.length,m+1))}let h=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<c.length;m++){let y=c[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=m),y.route.id){let{loaderData:x,errors:N}=n,E=y.route.loader&&x[y.route.id]===void 0&&(!N||N[y.route.id]===void 0);if(y.route.lazy||E){h=!0,p>=0?c=c.slice(0,p+1):c=[c[0]];break}}}return c.reduceRight((m,y,x)=>{let N,E=!1,w=null,S=null;n&&(N=d&&y.route.id?d[y.route.id]:void 0,w=y.route.errorElement||U_,h&&(p<0&&x===0?(Q_("route-fallback"),E=!0,S=null):p===x&&(E=!0,S=y.route.hydrateFallbackElement||null)));let b=t.concat(c.slice(0,x+1)),j=()=>{let T;return N?T=w:E?T=S:y.route.Component?T=C.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,C.createElement($_,{match:y,routeContext:{outlet:m,matches:b,isDataRoute:n!=null},children:T})};return n&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?C.createElement(z_,{location:n.location,revalidation:n.revalidation,component:w,error:N,children:j(),routeC
328ontext:{outlet:null,matches:b,isDataRoute:!0}}):j()},null)}var u1=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(u1||{}),d1=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(d1||{});function H_(e){let t=C.useContext(rm);return t||ht(!1),t}function q_(e){let t=C.useContext(M_);return t||ht(!1),t}function G_(e){let t=C.useContext(oi);return t||ht(!1),t}function f1(e){let t=G_(),n=t.matches[t.matches.length-1];return n.route.id||ht(!1),n.route.id}function K_(){var e;let t=C.useContext(a1),n=q_(),r=f1();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Y_(){let{router:e}=H_(u1.UseNavigateStable),t=f1(d1.UseNavigateStable),n=C.useRef(!1);return l1(()=>{n.current=!0}),C.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fa({fromRouteId:t},a)))},[e,t])}const jv={};function Q_(e,t,n){jv[e]||(jv[e]=!0)}function X_(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Gc(e){ht(!1)}function J_(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ls.Pop,navigator:a,static:c=!1,future:d}=e;il()&&ht(!1);let h=t.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:h,navigator:a,static:c,future:Fa({v7_relativeSplatPath:!1},d)}),[h,d,a,c]);typeof r=="string"&&(r=mo(r));let{pathname:m="/",search:y="",hash:x="",state:N=null,key:E="default"}=r,w=C.useMemo(()=>{let S=nm(m,h);return S==null?null:{location:{pathname:S,search:y,hash:x,state:N,key:E},navigationType:o}},[h,m,y,x,N,E,o]);return w==null?null:C.createElement(ii.Provider,{value:p},C.createElement(ju.Provider,{children:n,value:w}))}function Z_(e){let{children:t,location:n}=e;return F_(ep(t),n)}new Promise(()=>{});function ep(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,o)=>{if(!C.isValidElement(r))return;let a=[...t,o];if(r.type===C.Fragment){n.push.apply(n,ep(r.props.children,a));return}r.type!==Gc&&ht(!1),!r.props.index||!r.props.children||ht(!1);let c={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=ep(r.props.children,a)),n.push(c)}),n}/**
329 * React Router DOM v6.30.1
330 *
331 * Copyright (c) Remix Software Inc.
332 *
333 * This source code is licensed under the MIT license found in the
334 * LICENSE.md file in the root directory of this source tree.
335 *
336 * @license MIT
337 */function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}function eP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function tP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nP(e,t){return e.button===0&&(!t||t==="_self")&&!tP(e)}const rP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],sP="6";try{window.__reactRouterVersion=sP}catch{}const iP="startTransition",Tv=Wp[iP];function oP(e){let{basename:t,children:n,future:r,window:o}=e,a=C.useRef();a.current==null&&(a.current=l_({window:o,v5Compat:!0}));let c=a.current,[d,h]=C.useState({action:c.action,location:c.location}),{v7_startTransition:p}=r||{},m=C.useCallback(y=>{p&&Tv?Tv(()=>h(y)):h(y)},[h,p]);return C.useLayoutEffect(()=>c.listen(m),[c,m]),C.useEffect(()=>X_(r),[r]),C.createElement(J_,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:c,future:r})}const aP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,St=C.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:c,state:d,target:h,to:p,preventScrollReset:m,viewTransition:y}=t,x=eP(t,rP),{basename:N}=C.useContext(ii),E,w=!1;if(typeof p=="string"&&lP.test(p)&&(E=p,aP))try{let T=new URL(window.location.href),_=p.startsWith("//")?new URL(T.protocol+p):new URL(p),R=nm(_.pathname,N);_.origin===T.origin&&R!=null?p=R+_.search+_.hash:w=!0}catch{}let S=D_(p,{relative:o}),b=cP(p,{replace:c,state:d,target:h,preventScrollReset:m,relative:o,viewTransition:y});function j(T){r&&r(T),T.defaultPrevented||b(T)}return C.createElement("a",tp({},x,{href:E||S,onClick:w||a?r:j,ref:n,target:h}))});var _v;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_v||(_v={}));var Pv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Pv||(Pv={}));function cP(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:c,viewTransition:d}=t===void 0?{}:t,h=L_(),p=go(),m=c1(e,{relative:c}
vendor: 4,231 bytes, line 337
337);return C.useCallback(y=>{if(nP(y,n)){y.preventDefault();let x=r!==void 0?r:lu(p)===lu(m);h(e,{replace:x,state:o,preventScrollReset:a,relative:c,viewTransition:d})}},[p,h,m,r,o,n,e,a,c,d])}function h1(e,t){return function(){return e.apply(t,arguments)}}const{toString:uP}=Object.prototype,{getPrototypeOf:Tu}=Object,{iterator:_u,toStringTag:p1}=Symbol,Pu=(e=>t=>{const n=uP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zn=e=>(e=e.toLowerCase(),t=>Pu(t)===e),Ru=e=>t=>typeof t===e,{isArray:Zs}=Array,oo=Ru("undefined");function yo(e){return e!==null&&!oo(e)&&e.constructor!==null&&!oo(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const m1=zn("ArrayBuffer");function dP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&m1(e.buffer),t}const fP=Ru("string"),nn=Ru("function"),g1=Ru("number"),ol=e=>e!==null&&typeof e=="object",hP=e=>e===!0||e===!1,Kc=e=>{if(Pu(e)!=="object")return!1;const t=Tu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(p1 in e)&&!(_u in e)},pP=e=>{if(!ol(e)||yo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},mP=zn("Date"),gP=zn("File"),yP=e=>!!(e&&typeof e.uri<"u"),vP=e=>e&&typeof e.getParts<"u",xP=zn("Blob"),wP=zn("FileList"),bP=e=>ol(e)&&nn(e.pipe);function SP(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Rv=SP(),Av=typeof Rv.FormData<"u"?Rv.FormData:void 0,NP=e=>{if(!e)return!1;if(Av&&e instanceof Av)return!0;const t=Tu(e);if(!t||t===Object.prototype||!nn(e.append))return!1;const n=Pu(e);return n==="formdata"||n==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"},CP=zn("URLSearchParams"),[EP,kP,jP,TP]=["ReadableStream","Request","Response","Headers"].map(zn),_P=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function al(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Zs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(yo(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(r=0;r<c;r++)d=a[r],t.call(null,e[d],d,e)}}function y1(e,t){if(yo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Bs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,v1=e=>!oo(e)&&e!==Bs;function np(...e){const{caseless:t,skipUndefined:n}=v1(this)&&this||{},r={},o=(a,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=t&&typeof c=="string"&&y1(r,c)||c,h=rp(r,d)?r[d]:void 0;Kc(h)&&Kc(a)?r[d]=np(h,a):Kc(a)?r[d]=np({},a):Zs(a)?r[d]=a.slice():(!n||!oo(a))&&(r[d]=a)};for(let a=0,c=e.length;a<c;a++){const d=e[a];if(!d||yo(d)||(al(d,o),typeof d!="object"||Zs(d)))continue;const h=Object.getOwnPropertySymbols(d);for(let p=0;p<h.length;p++){const m=h[p];UP.call(d,m)&&o(d[m],m)}}return r}const PP=(e,t,n,{allOwnKeys:r}={})=>(al(t,(o,a)=>{n&&nn(o)?Object.defineProperty(e,a,{__proto__:null,value:h1(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),RP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),AP=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},OP=(e,t,n,r)=>{let o,a,c;const d={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)c=o[a],(!r||r(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Tu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},DP=e=>{if(!e)return null;if(Zs(e))return e;let t=e.length;if(!g1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},LP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tu(Uint8Array)),IP=(e,t)=>
vendor: 2,091 bytes, line 337
337{const r=(e&&e[_u]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},FP=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},BP=zn("HTMLFormElement"),VP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),rp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:UP}=Object.prototype,zP=zn("RegExp"),x1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};al(n,(o,a)=>{let c;(c=t(o,a,e))!==!1&&(r[a]=c||o)}),Object.defineProperties(e,r)},$P=e=>{x1(e,(t,n)=>{if(nn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(nn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},WP=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Zs(e)?r(e):r(String(e).split(t)),n},HP=()=>{},qP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function GP(e){return!!(e&&nn(e.append)&&e[p1]==="FormData"&&e[_u])}const KP=e=>{const t=new WeakSet,n=r=>{if(ol(r)){if(t.has(r))return;if(yo(r))return r;if(!("toJSON"in r)){t.add(r);const o=Zs(r)?[]:{};return al(r,(a,c)=>{const d=n(a);!oo(d)&&(o[c]=d)}),t.delete(r),o}}return r};return n(e)},YP=zn("AsyncFunction"),QP=e=>e&&(ol(e)||nn(e))&&nn(e.then)&&nn(e.catch),w1=((e,t)=>e?setImmediate:t?((n,r)=>(Bs.addEventListener("message",({source:o,data:a})=>{o===Bs&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Bs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",nn(Bs.postMessage)),XP=typeof queueMicrotask<"u"?queueMicrotask.bind(Bs):typeof process<"u"&&process.nextTick||w1,JP=e=>e!=null&&nn(e[_u]),I={isArray:Zs,isArrayBuffer:m1,isBuffer:yo,isFormData:NP,isArrayBufferView:dP,isString:fP,isNumber:g1,isBoolean:hP,isObject:ol,isPlainObject:Kc,isEmptyObject:pP,isReadableStream:EP,isRequest:kP,isResponse:jP,isHeaders:TP,isUndefined:oo,isDate:mP,isFile:gP,isReactNativeBlob:yP,isReactNative:vP,isBlob:xP,isRegExp:zP,isFunction:nn,isStream:bP,isURLSearchParams:CP,isTypedArray:LP,is
vendor: 34,819 bytes, lines 337-345
337FileList:wP,forEach:al,merge:np,extend:PP,trim:_P,stripBOM:RP,inherits:AP,toFlatObject:OP,kindOf:Pu,kindOfTest:zn,endsWith:MP,toArray:DP,forEachEntry:IP,matchAll:FP,isHTMLForm:BP,hasOwnProperty:rp,hasOwnProp:rp,reduceDescriptors:x1,freezeMethods:$P,toObjectSet:WP,toCamelCase:VP,noop:HP,toFiniteNumber:qP,findKey:y1,global:Bs,isContextDefined:v1,isSpecCompliantForm:GP,toJSONObject:KP,isAsyncFn:YP,isThenable:QP,setImmediate:w1,asap:XP,isIterable:JP},ZP=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eR=e=>{const t={};let n,r,o;return e&&e.split(`
338`).forEach(function(c){o=c.indexOf(":"),n=c.substring(0,o).trim().toLowerCase(),r=c.substring(o+1).trim(),!(!n||t[n]&&ZP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function tR(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const nR=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rR=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function sm(e,t){return I.isArray(e)?e.map(n=>sm(n,t)):tR(String(e).replace(t,""))}const sR=e=>sm(e,nR),iR=e=>sm(e,rR);function b1(e){const t=Object.create(null);return I.forEach(e.toJSON(),(n,r)=>{t[r]=iR(n)}),t}const Ov=Symbol("internals");function fa(e){return e&&String(e).trim().toLowerCase()}function Yc(e){return e===!1||e==null?e:I.isArray(e)?e.map(Yc):sR(String(e))}function oR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const aR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eh(e,t,n,r,o){if(I.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function lR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cR(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,c){return this[r].call(this,t,o,a,c)},configurable:!0})})}let Ht=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(d,h,p){const m=fa(h);if(!m)return;const y=I.findKey(o,m);(!y||o[y]===void 0||p===!0||p===void 0&&o[y]!==!1)&&(o[y||h]=Yc(d))}const c=(d,h)=>I.forEach(d,(p,m)=>a(p,m,h));if(I.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(I.isString(t)&&(t=t.trim())&&!aR(t))c(eR(t),n);else if(I.isObject(t)&&I.isIterable(t)){let d={},h,p;for(const m of t){if(!I.isArray(m))throw new TypeError("Object iterator must return a key-value pair");d[p=m[0]]=(h=d[p])?I.isArray(h)?[...h,m[1]]:[h,m[1]]:m[1]}c(d,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=fa(t),t){const r=I.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return oR(o);if(I.isFunction(n))return n.call(this,o,r);if(I.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fa(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||eh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(c){if(c=fa(c),c){const d=I.findKey(r,c);d&&(!n||eh(r,r[d],d,n))&&(delete r[d],o=!0)}}return I.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||eh(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return I.forEach(this,(o,a)=>{const c=I.findKey(r,a);if(c){n[c]=Yc(o),delete n[a];return}const d=t?lR(a):String(a).trim();d!==a&&delete n[a],n[d]=Yc(o),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
339`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ov]=this[Ov]={accessors:{}}).accessors,o=this.prototype;function a(c){const d=fa(c);r[d]||(cR(o,c),r[d]=!0)}return I.isArray(t)?t.forEach(a):a(t),this}};Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Ht.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Ht);const uR="[REDACTED ****]";function dR(e){if(I.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(I.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function fR(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||I.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof Ht&&(a=a.toJSON()),r.push(a);let c;if(I.isArray(a))c=[],a.forEach((d,h)=>{const p=o(d);I.isUndefined(p)||(c[h]=p)});else{if(!I.isPlainObject(a)&&dR(a))return r.pop(),a;c=Object.create(null);for(const[d,h]of Object.entries(a)){const p=n.has(d.toLowerCase())?uR:o(h);I.isUndefined(p)||(c[d]=p)}}return r.pop(),c};return o(e)}let pe=class S1 extends Error{static from(t,n,r,o,a,c){const d=new S1(t.message,n||t.code,r,o,a);return d.cause=t,d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),c&&Object.assign(d,c),d}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&I.hasOwnProp(t,"redact")?t.redact:void 0,r=I.isArray(n)&&n.length>0?fR(t,n):I.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};pe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";pe.ERR_BAD_OPTION="ERR_BAD_OPTION";pe.ECONNABORTED="ECONNABORTED";pe.ETIMEDOUT="ETIMEDOUT";pe.ECONNREFUSED="ECONNREFUSED";pe.ERR_NETWORK="ERR_NETWORK";pe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";pe.ERR_DEPRECATED="ERR_DEPRECATED";pe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";pe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";pe.ERR_CANCELED="ERR_CANCELED";pe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";pe.ERR_INVALID_URL="ERR_INVALID_URL";pe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const hR=null;function sp(e){return I.isPlainObject(e)||I.isArray(e)}function N1(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function th(e,t,n){return e?e.concat(t).map(function(o,a){return o=N1(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function pR(e){return I.isArray(e)&&!e.some(sp)}const mR=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Au(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,b){return!I.isUndefined(b[S])});const r=n.metaTokens,o=n.visitor||y,a=n.dots,c=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?100:n.maxDepth,p=d&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function m(w){if(w===null)return"";if(I.isDate(w))return w.toISOString();if(I.isBoolean(w))return w.toString();if(!p&&I.isBlob(w))throw new pe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(w)||I.isTypedArray(w)?p&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function y(w,S,b){let j=w;if(I.isReactNative(t)&&I.isReactNativeBlob(w))return t.append(th(b,S,a),m(w)),!1;if(w&&!b&&typeof w=="object"){if(I.endsWith(S,"{}"))S=r?S:S.slice(0,-2),w=JSON.stringify(w);else if(I.isArray(w)&&pR(w)||(I.isFileList(w)||I.endsWith(S,"[]"))&&(j=I.toArray(w)))return S=N1(S),j.forEach(function(_,R){!(I.isUndefined(_)||_===null)&&t.append(c===!0?th([S],R,a):c===null?S:S+"[]",m(_))}),!1}return sp(w)?!0:(t.append(th(b,S,a),m(w)),!1)}const x=[],N=Object.assign(mR,{defaultVisitor:y,convertValue:m,isVisitable:sp});function E(w,S,b=0){if(!I.isUndefined(w)){if(b>h)throw new pe("Object is too deeply nested ("+b+" levels). Max depth: "+h,pe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(x.indexOf(w)!==-1)throw new Error("Circular reference detected in "+S.join("."));x.push(w),I.forEach(w,function(T,_){(!(I.isUndefined(T)||T===null)&&o.call(t,T,I.isString(_)?_.trim():_,S,N))===!0&&E(T,S?S.concat(_):[_],b+1)}),x.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Mv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function im(e,t){this._pairs=[],e&&Au(e,this,t)}const C1=im.prototype;C1.append=function(t,n){this._pairs.push([t,n])};C1.toString=function(t){const n=t?function(r){return t.call(this,r,Mv)}:Mv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function E1(e,t,n){if(!t)return e;const r=n&&n.encode||gR,o=I.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let c;if(a?c=a(t,o):c=I.isURLSearchParams(t)?t.toString():new im(t,o).toString(r),c){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Dv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const om={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},yR=typeof URLSearchParams<"u"?URLSearchParams:im,vR=typeof FormData<"u"?FormData:null,xR=typeof Blob<"u"?Blob:null,wR={isBrowser:!0,classes:{URLSearchParams:yR,FormData:vR,Blob:xR},protocols:["http","https","file","blob","url","data"]},am=typeof window<"u"&&typeof document<"u",ip=typeof navigator=="object"&&navigator||void 0,bR=am&&(!ip||["ReactNative","NativeScript","NS"].indexOf(ip.product)<0),SR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",NR=am&&window.location.href||"http://localhost",CR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:am,hasStandardBrowserEnv:bR,hasStandardBrowserWebWorkerEnv:SR,navigator:ip,origin:NR},Symbol.toStringTag,{value:"Module"})),Pt={...CR,...wR};function ER(e,t){return Au(e,new Pt.classes.URLSearchParams,{visitor:function(n,r,o,a){return Pt.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function kR(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jR(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function k1(e){function t(n,r,o,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),h=a>=n.length;return c=!c&&I.isArray(o)?o.length:c,h?(I.hasOwnProp(o,c)?o[c]=I.isArray(o[c])?o[c].concat(r):[o[c],r]:o[c]=r,!d):((!I.hasOwnProp(o,c)||!I.isObject(o[c]))&&(o[c]=[]),t(n,r,o[c],a)&&I.isArray(o[c])&&(o[c]=jR(o[c])),!d)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(kR(r),o,n,0)}),n}return null}const Mi=(e,t)=>e!=null&&I.hasOwnProp(e,t)?e[t]:void 0;function TR(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ll={transitional:om,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=I.isObject(t);if(a&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(k1(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){const h=Mi(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ER(t,h).toString();if((d=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=Mi(this,"env"),m=p&&p.FormData;return Au(d?{"files[]":t}:t,m&&new m,h)}}return a||o?(n.setContentType("application/json",!1),TR(t)):t}],transformResponse:[function(t){const n=Mi(this,"transitional")||ll.transitional,r=n&&n.forcedJSONParsing,o=Mi(this,"responseType"),a=o==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!o||a)){const d=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,Mi(this,"parseReviver"))}catch(h){if(d)throw h.name==="SyntaxError"?pe.from(h,pe.ERR_BAD_RESPONSE,this,null,Mi(this,"response")):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch","query"],e=>{ll.headers[e]={}});function nh(e,t){const n=this||ll,r=t||n,o=Ht.from(r.headers);let a=r.data;return I.forEach(e,function(d){a=d.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function j1(e){return!!(e&&e.__CANCEL__)}let cl=class extends pe{constructor(t,n,r){super(t??"canceled",pe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function T1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new pe("Request failed with status code "+n.status,n.status>=400&&n.status<500?pe.ERR_BAD_REQUEST:pe.ERR_BAD_RESPONSE,n.config,n.request,n))}function _R(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function PR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,c;return t=t!==void 0?t:1e3,function(h){const p=Date.now(),m=r[a];c||(c=p),n[o]=h,r[o]=p;let y=a,x=0;for(;y!==o;)x+=n[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),p-c<t)return;const N=m&&p-m;return N?Math.round(x*1e3/N):void 0}}function RR(e,t){let n=0,r=1e3/t,o,a;const c=(p,m=Date.now())=>{n=m,o=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const m=Date.now(),y=m-n;y>=r?c(p,m):(o=p,a||(a=setTimeout(()=>{a=null,c(o)},r-y)))},()=>o&&c(o)]}const cu=(e,t,n=3)=>{let r=0;const o=PR(50,250);return RR(a=>{if(!a||typeof a.loaded!="number")return;const c=a.loaded,d=a.lengthComputable?a.total:void 0,h=d!=null?Math.min(c,d):c,p=Math.max(0,h-r),m=o(p);r=Math.max(r,h);const y={loaded:h,total:d,progress:d?h/d:void 0,bytes:p,rate:m||void 0,estimated:m&&d?(d-h)/m:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},n)},Lv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Iv=e=>(...t)=>I.asap(()=>e(...t)),AR=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,OR=Pt.hasStandardBrowserEnv?{write(e,t,n,r,o,a,c){if(typeof document>"u")return;const d=[`${e}=${encodeURIComponent(t)}`];I.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),I.isString(r)&&d.push(`path=${r}`),I.isString(o)&&d.push(`domain=${o}`),a===!0&&d.push("secure"),I.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function MR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _1(e,t,n){let r=!MR(t);return e&&(r||n===!1)?DR(e,t):t}const Fv=e=>e instanceof Ht?{...e}:e;function ei(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,m,y,x){return I.isPlainObject(p)&&I.isPlainObject(m)?I.merge.call({caseless:x},p,m):I.isPlainObject(m)?I.merge({},m):I.isArray(m)?m.slice():m}function o(p,m,y,x){if(I.isUndefined(m)){if(!I.isUndefined(p))return r(void 0,p,y,x)}else return r(p,m,y,x)}function a(p,m){if(!I.isUndefined(m))return r(void 0,m)}function c(p,m){if(I.isUndefined(m)){if(!I.isUndefined(p))return r(void 0,p)}else return r(void 0,m)}function d(p,m,y){if(I.hasOwnProp(t,y))return r(p,m);if(I.hasOwnProp(e,y))return r(void 0,p)}const h={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:d,headers:(p,m,y)=>o(Fv(p),Fv(m),y,!0)};return I.forEach(Object.keys({...e,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const y=I.hasOwnProp(h,m)?h[m]:o,x=I.hasOwnProp(e,m)?e[m]:void 0,N=I.hasOwnProp(t,m)?t[m]:void 0,E=y(x,N,m);I.isUndefined(E)&&y!==d||(n[m]=E)}),n}const LR=["content-type","content-length"];function IR(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,o])=>{LR.includes(r.toLowerCase())&&e.set(r,o)})}const FR=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function P1(e){const t=ei({},e),n=x=>I.hasOwnProp(t,x)?t[x]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),c=n("xsrfCookieName");let d=n("headers");const h=n("auth"),p=n("baseURL"),m=n("allowAbsoluteUrls"),y=n("url");if(t.headers=d=Ht.from(d),t.url=E1(_1(p,y,m),n("params"),n("paramsSerializer")),h&&d.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?FR(h.password):""))),I.isFormData(r)&&(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv||I.isReactNative(r)?d.setContentType(void 0):I.isFunction(r.getHeaders)&&IR(d,r.getHeaders(),n("formDataHeaderPolicy"))),Pt.hasStandardBrowserEnv&&(I.isFunction(o)&&(o=o(t)),o===!0||o==null&&AR(t.url))){const N=a&&c&&OR.read(c);N&&d.set(a,N)}return t}const BR=typeof XMLHttpRequest<"u",VR=BR&&function(e){return new Promise(function(n,r){const o=P1(e);let a=o.data;const c=Ht.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:p}=o,m,y,x,N,E;function w(){N&&N(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function b(){if(!S)return;const T=Ht.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),R={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:T,config:e,request:S};T1(function($){n($),w()},function($){r($),w()},R),S=null}"onloadend"in S?S.onloadend=b:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(b)},S.onabort=function(){S&&(r(new pe("Request aborted",pe.ECONNABORTED,e,S)),w(),S=null)},S.onerror=function(_){const R=_&&_.message?_.message:"Network Error",U=new pe(R,pe.ERR_NETWORK,e,S);U.event=_||null,r(U),w(),S=null},S.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||om;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new pe(_,R.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,e,S)),w(),S=null},a===void 0&&c.setContentType(null),"setRequestHeader"in S&&I.forEach(b1(c),function(_,R){S.setRequestHeader(R,_)}),I.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),d&&d!=="json"&&(S.responseType=o.responseType),p&&([x,E]=cu(p,!0),S.addEventListener("progress",x)),h&&S.upload&&([y,N]=cu(h),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(m=T=>{S&&(r(!T||T.type?new cl(null,e,S):T),S.abort(),w(),S=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const j=_R(o.url);if(j&&!Pt.protocols.includes(j)){r(new pe("Unsupported protocol "+j+":",pe.ERR_BAD_REQUEST,e));return}S.send(a||null)})},UR=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(h){if(!r){r=!0,c();const p=h instanceof Error?h:this.reason;n.abort(p instanceof pe?p:new cl(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,o(new pe(`timeout of ${t}ms exceeded`,pe.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:d}=n;return d.unsubscribe=()=>I.asap(c),d},zR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},$R=async function*(e,t){for await(const n of WR(e))yield*zR(n,t)},WR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Bv=(e,t,n,r)=>{const o=$R(e,t);let a=0,c,d=h=>{c||(c=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:p,value:m}=await o.next();if(p){d(),h.close();return}let y=m.byteLength;if(n){let x=a+=y;n(x)}h.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(h){return d(h),o.return()}},{highWaterMark:2})};function HR(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let c=r.length;const d=r.length;for(let N=0;N<d;N++)if(r.charCodeAt(N)===37&&N+2<d){const E=r.charCodeAt(N+1),w=r.charCodeAt(N+2);(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102)&&(c-=2,N+=2)}let h=0,p=d-1;const m=N=>N>=2&&r.charCodeAt(N-2)===37&&r.charCodeAt(N-1)===51&&(r.charCodeAt(N)===68||r.charCodeAt(N)===100);p>=0&&(r.charCodeAt(p)===61?(h++,p--):m(p)&&(h++,p-=3)),h===1&&p>=0&&(r.charCodeAt(p)===61||m(p))&&h++;const x=Math.floor(c/4)*3-(h||0);return x>0?x:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let a=0;for(let c=0,d=r.length;c<d;c++){const h=r.charCodeAt(c);if(h<128)a+=1;else if(h<2048)a+=2;else if(h>=55296&&h<=56319&&c+1<d){const p=r.charCodeAt(c+1);p>=56320&&p<=57343?(a+=4,c++):a+=3}else a+=3}return a}const lm="1.17.0",Vv=64*1024,{isFunction:Ac}=I,qR=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Uv=e=>{if(!I.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},zv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},GR=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},KR=e=>{const t=I.global!==void 0&&I.global!==null?I.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=I.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:c}=e,d=o?Ac(o):typeof fetch=="function",h=Ac(a),p=Ac(c);if(!d)return!1;const m=d&&Ac(n),y=d&&(typeof r=="function"?(b=>j=>b.encode(j))(new r):async b=>new Uint8Array(await new a(b).arrayBuffer())),x=h&&m&&zv(()=>{let b=!1;const j=new a(Pt.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),T=j.headers.has("Content-Type");return j.body!=null&&j.body.cancel(),b&&!T}),N=p&&m&&zv(()=>I.isReadableStream(new c("").body)),E={stream:N&&(b=>b.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!E[b]&&(E[b]=(j,T)=>{let _=j&&j[b];if(_)return _.call(j);throw new pe(`Response type '${b}' is not supported`,pe.ERR_NOT_SUPPORT,T)})});const w=async b=>{if(b==null)return 0;if(I.isBlob(b))return b.size;if(I.isSpecCompliantForm(b))return(await new a(Pt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(I.isArrayBufferView(b)||I.isArrayBuffer(b))return b.byteLength;if(I.isURLSearchParams(b)&&(b=b+""),I.isString(b))return(await y(b)).byteLength},S=async(b,j)=>{const T=I.toFiniteNumber(b.getContentLength());return T??w(j)};return async b=>{let{url:j,method:T,data:_,signal:R,cancelToken:U,timeout:$,onDownloadProgress:B,onUploadProgress:ne,responseType:G,headers:Z,withCredentials:ge="same-origin",fetchOptions:xe,maxContentLength:ye,maxBodyLength:Pe}=P1(b);const le=I.isNumber(ye)&&ye>-1,re=I.isNumber(Pe)&&Pe>-1,L=te=>I.hasOwnProp(b,te)?b[te]:void 0;let ee=o||fetch;G=G?(G+"").toLowerCase():"text";let Y=UR([R,U&&U.toAbortSignal()],$),M=null;const W=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let ue;try{let te;const be=L("auth");if(be){const se=be.username||"",Te=be.password||"";te={username:se,password:Te}}if(GR(j)){const se=new URL(j,Pt.origin);if(!te&&(se.username||se.password)){const Te=Uv(se.username),We=Uv(se.password);te={username:Te,password:We}}(se.username||se.password)&&(se.username="",se.password="",j=se.href)}if(te&&(Z.delete("authorization"),Z.set("Authorization","Basic "+btoa(qR((te.username||"")+":"+(te.password||""))))),le&&typeof j=="string"&&j.startsWith("data:")&&HR(j)>ye)throw new pe("maxContentLength size of "+ye+" exceeded",pe.ERR_BAD_RESPONSE,b,M);if(re&&T!=="get"&&T!=="head"){const se=await S(Z,_);if(typeof se=="number"&&isFinite(se)&&se>Pe)throw new pe("Request body larger than maxBodyLength limit",pe.ERR_BAD_REQUEST,b,M)}if(ne&&x&&T!=="get"&&T!=="head"&&(ue=await S(Z,_))!==0){let se=new a(j,{method:"POST",body:_,duplex:"half"}),Te;if(I.isFormData(_)&&(Te=se.headers.get("content-type"))&&Z.setContentType(Te),se.body){const[We,pt]=Lv(ue,cu(Iv(ne)));_=Bv(se.body,Vv,We,pt)}}I.isString(ge)||(ge=ge?"include":"omit");const Re=h&&"credentials"in a.prototype;if(I.isFormData(_)){const se=Z.getContentType();se&&/^multipart\/form-data/i.test(se)&&!/boundary=/i.test(se)&&Z.delete("content-type")}Z.set("User-Agent","axios/"+lm,!1);const X={...xe,signal:Y,method:T.toUpperCase(),headers:b1(Z.normalize()),body:_,duplex:"half",credentials:Re?ge:void 0};M=h&&new a(j,X);let oe=await(h?ee(M,xe):ee(j,X));if(le){const se=I.toFiniteNumber(oe.headers.get("content-length"));if(se!=null&&se>ye)throw new pe("maxContentLength size of "+ye+" exceeded",pe.ERR_BAD_RESPONSE,b,M)}const Ee=N&&(G==="stream"||G==="response");if(N&&oe.body&&(B||le||Ee&&W)){const se={};["status","statusText","headers"].forEach(Bt=>{se[Bt]=oe[Bt]});const Te=I.toFiniteNumber(oe.headers.get("content-length")),[We,pt]=B&&Lv(Te,cu(Iv(B),!0))||[];let jn=0;const $n=Bt=>{if(le&&(jn=Bt,jn>ye))throw new pe("maxContentLength size of "+ye+" exceeded",pe.ERR_BAD_RESPONSE,b,M);We&&We(Bt)};oe=new c(Bv(oe.body,Vv,$n,()=>{pt&&pt(),W&&W()}),se)}G=G||"text";let we=await E[I.findKey(E,G)||"text"](oe,b);if(le&&!N&&!Ee){let se;if(we!=null&&(typeof we.byteLength=="number"?se=we.byteLength:typeof we.size=="number"?se=we.size:typeof we=="string"&&(se=typeof r=="function"?new r().encode(we).byteLength:we.length)),typeof se=="number"&&se>ye)throw new pe("maxContentLength size of "+ye+" exceeded",pe.ERR_BAD_RESPONSE,b,M)}return!Ee&&W&&W(),await new Promise((se,Te)=>{T1(se,Te,{data:we,headers:Ht.from(oe.headers),status:oe.status,statusText:oe.statusText,config:b,request:M})})}catch(te){if(W&&W(),Y&&Y.aborted&&Y.reason instanceof pe){const be=Y.reason;throw be.config=b,M&&(be.request=M),te!==be&&(be.cause=te),be}throw te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new pe("Network Error",pe.ERR_NETWORK,b,M,te&&te.response),{cause:te.cause||te}):pe.from(te,te&&te.code,b,M,te&&te.response)}}},YR=new Map,R1=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let c=a.length,d=c,h,p,m=YR;for(;d--;)h=a[d],p=m.get(h),p===void 0&&m.set(h,p=d?new Map:KR(t)),m=p;return p};R1();const cm={http:hR,xhr:VR,fetch:{get:R1}};I.forEach(cm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const $v=e=>`- ${e}`,QR=e=>I.isFunction(e)||e===null||e===!1;function XR(e,t){e=I.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let c=0;c<n;c++){r=e[c];let d;if(o=r,!QR(r)&&(o=cm[(d=String(r)).toLowerCase()],o===void 0))throw new pe(`Unknown adapter '${d}'`);if(o&&(I.isFunction(o)||(o=o.get(t))))break;a[d||"#"+c]=o}if(!o){const c=Object.entries(a).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
340`+c.map($v).join(`
341`):" "+$v(c[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return o}const A1={getAdapter:XR,adapters:cm};function rh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function Wv(e){return rh(e),e.headers=Ht.from(e.headers),e.data=nh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),A1.getAdapter(e.adapter||ll.adapter,e)(e).then(function(r){rh(e),e.response=r;try{r.data=nh.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Ht.from(r.headers),r},function(r){if(!j1(r)&&(rh(e),r&&r.response)){e.response=r.response;try{r.response.data=nh.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ht.from(r.response.headers)}return Promise.reject(r)})}const Ou={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ou[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Hv={};Ou.transitional=function(t,n,r){function o(a,c){return"[Axios v"+lm+"] Transitional option '"+a+"'"+c+(r?". "+r:"")}return(a,c,d)=>{if(t===!1)throw new pe(o(c," has been removed"+(n?" in "+n:"")),pe.ERR_DEPRECATED);return n&&!Hv[c]&&(Hv[c]=!0,console.warn(o(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}};Ou.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function JR(e,t,n){if(typeof e!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],c=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(c){const d=e[a],h=d===void 0||c(d,a,e);if(h!==!0)throw new pe("option "+a+" must be "+h,pe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pe("Unknown option "+a,pe.ERR_BAD_OPTION)}}const Qc={assertOptions:JR,validators:Ou},Jt=Qc.validators;let Qs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dv,response:new Dv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=(()=>{if(!o.stack)return"";const c=o.stack.indexOf(`
342`);return c===-1?"":o.stack.slice(c+1)})();try{if(!r.stack)r.stack=a;else if(a){const c=a.indexOf(`
343`),d=c===-1?-1:a.indexOf(`
344`,c+1),h=d===-1?"":a.slice(d+1);String(r.stack).endsWith(h)||(r.stack+=`
345`+a)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ei(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Qc.assertOptions(r,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean),legacyInterceptorReqResOrdering:Jt.transitional(Jt.boolean),advertiseZstdAcceptEncoding:Jt.transitional(Jt.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:Qc.assertOptions(o,{encode:Jt.function,serialize:Jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Qc.assertOptions(n,{baseUrl:Jt.spelling("baseURL"),withXsrfToken:Jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&I.merge(a.common,a[n.method]);a&&I.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete a[E]}),n.headers=Ht.concat(c,a);const d=[];let h=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;h=h&&w.synchronous;const S=n.transitional||om;S&&S.legacyInterceptorReqResOrdering?d.unshift(w.fulfilled,w.rejected):d.push(w.fulfilled,w.rejected)});const p=[];this.interceptors.response.forEach(function(w){p.push(w.fulfilled,w.rejected)});let m,y=0,x;if(!h){const E=[Wv.bind(this),void 0];for(E.unshift(...d),E.push(...p),x=E.length,m=Promise.resolve(n);y<x;)m=m.then(E[y++],E[y++]);return m}x=d.length;let N=n;for(;y<x;){const E=d[y++],w=d[y++];try{N=E(N)}catch(S){w.call(this,S);break}}try{m=Wv.call(this,N)}catch(E){return Promise.reject(E)}for(y=0,x=p.length;y<x;)m=m.then(p[y++],p[y++]);return m}getUri(t){t=ei(this.defaults,t);const n=_1(t.baseURL,t.url,t.allowAbsoluteUrls);return E1(n,t.params,t.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(t){Qs.prototype[t]=function(n,r){return this.request(ei(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,c,d){return this.request(ei(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}Qs.prototype[t]=n(),t!=="query"&&(Qs.prototype[t+"Form"]=n(!0))});let ZR=class O1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const c=new Promise(d=>{r.subscribe(d),a=d}).then(o);return c.cancel=function(){r.unsubscribe(a)},c},t(function(a,c,d){r.reason||(r.reason=new cl(a,c,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
345subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new O1(function(o){t=o}),cancel:t}}};function eA(e){return function(n){return e.apply(null,n)}}function tA(e){return I.isObject(e)&&e.isAxiosError===!0}const op={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(op).forEach(([e,t])=>{op[t]=e});function M1(e){const t=new Qs(e),n=h1(Qs.prototype.request,t);return I.extend(n,Qs.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return M1(ei(e,o))},n}const lt=M1(ll);lt.Axios=Qs;lt.CanceledError=cl;lt.CancelToken=ZR;lt.isCancel=j1;lt.VERSION=lm;lt.toFormData=Au;lt.AxiosError=pe;lt.Cancel=lt.CanceledError;lt.all=function(t){return Promise.all(t)};lt.spread=eA;lt.isAxiosError=tA;lt.mergeConfig=ei;lt.AxiosHeaders=Ht;lt.formToJSON=e=>k1(I.isHTMLForm(e)?new FormData(e):e);lt.getAdapter=A1.getAdapter;lt.HttpStatusCode=op;lt.default=lt;const{Axios:YB,AxiosError:QB,CanceledError:XB,isCancel:JB,CancelToken:ZB,VERSION:e8,all:t8,Cancel:n8,isAxiosError:r8,spread:s8,toFormData:i8,AxiosHeaders:o8,HttpStatusCode:a8,formToJSON:l8,getAdapter:c8,mergeConfig:u8,create:d8}=lt,nA=typeof window>"u",qv=!nA&&window.self!==window.top,sh=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),jt=[];for(let e=0;e<256;++e)jt.push((e+256).toString(16).slice(1));function rA(e,t=0){return(jt[e[t+0]]+jt[e[t+1]]+jt[e[t+2]]+jt[e[t+3]]+"-"+jt[e[t+4]]+jt[e[t+5]]+"-"+jt[e[t+6]]+jt[e[t+7]]+"-"+jt[e[t+8]]+jt[e[t+9]]+"-"+jt[e[t+10]]+jt[e[t+11]]+jt[e[t+12]]+jt[e[t+13]]+jt[e[t+14]]+jt[e[t+15]]).toLowerCase()}let ih;const sA=new Uint8Array(16);function iA(){if(!ih){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ih=crypto.getRandomValues.bind(crypto)}return ih(sA)}const oA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gv={randomUUID:oA};function aA(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??iA();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,rA(r)}function lA(e,t,n){return Gv.randomUUID&&!e?Gv.randomUUID():aA(e)}class cA extends Error{constructor(t,n,r,o,a){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=o,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function wa({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:o}){const a=lt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(c=>{typeof window<"u"&&c.headers.set("X-Origin-URL",window.location.href);const d=lA();if(c.requestId=d,qv)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:e+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),r&&a.interceptors.response.use(c=>{var d;const h=(d=c.config)===null||d===void 0?void 0:d.requestId;try{qv&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,h,p,m,y,x,N,E;const w=((h=(d=c.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((m=(p=c.response)===null||p===void 0?void 0:p.data)===null||m===void 0?void 0:m.detail)||c.message,S=new cA(w,(y=c.response)===null||y===void 0?void 0:y.status,(N=(x=c.response)===null||x===void 0?void 0:x.data)===null||N===void 0?void 0:N.co
345de,(E=c.response)===null||E===void 0?void 0:E.data,c);return o==null||o(S),Promise.reject(S)}),a}function Kv(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(o,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return dA(t,n,a,r)}})}function uA(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function dA(e,t,n,r){const o=`/apps/${t}/entities/${n}`;return{async list(a,c,d,h){const p={};return a&&(p.sort=a),c&&(p.limit=c),d&&(p.skip=d),h&&(p.fields=Array.isArray(h)?h.join(","):h),e.get(o,{params:p})},async filter(a,c,d,h,p){const m={q:JSON.stringify(a)};return c&&(m.sort=c),d&&(m.limit=d),h&&(m.skip=h),p&&(m.fields=Array.isArray(p)?p.join(","):p),e.get(o,{params:m})},async get(a){return e.get(`${o}/${a}`)},async create(a){return e.post(o,a)},async update(a,c){return e.put(`${o}/${a}`,c)},async delete(a){return e.delete(`${o}/${a}`)},async deleteMany(a){return e.delete(o,{data:a})},async bulkCreate(a){return e.post(`${o}/bulk`,a)},async updateMany(a,c){return e.patch(`${o}/update-many`,{query:a,data:c})},async bulkUpdate(a){return e.put(`${o}/bulk`,a)},async importEntities(a){const c=new FormData;return c.append("file",a,a.name),e.post(`${o}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const c=`entities:${t}:${n}`;return r().subscribeToRoom(c,{update_model:p=>{var m;const y=uA(p.data);if(y){y.type!=="delete"&&(!((m=y.data)===null||m===void 0)&&m._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${y.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${y.id}")\` to fetch the full record.`);try{a(y)}catch(x){console.error("[Base44 SDK] Subscription callback error:",x)}}}})}}}function fA(e,t){return{async call(n,r,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:c,...d}=o??{},h={...d,...a&&{path_params:a},...c&&{query_params:c}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,h)}}}function Yv(e,t){const n=fA(e,t);return new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(a,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${d}`);let h,p;return d instanceof FormData||d&&Object.values(d).some(m=>m instanceof File)?(h=new FormData,Object.keys(d).forEach(m=>{d[m]instanceof File?h.append(m,d[m],d[m].name):typeof d[m]=="object"&&d[m]!==null?h.append(m,JSON.stringify(d[m])):h.append(m,d[m])}),p="multipart/form-data"):(h=d,p="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${c}`,h||d,{headers:{"Content-Type":p}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${c}`,h||d,{headers:{"Content-Type":p}})}}})}})}function hA(){return typeof window>"u"?!1:window!==window.parent}function pA(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),c=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${c},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",p),clearInterval(m),d.closed||d.close()},p=y=>{var x;if(y.origin!==n||y.source!==d||!(!((x=y.data)===null||x===void 0)&&x.access_token))return;h();const N=new URL(t),{access_token:E,is_new_user:w}=y.data;N.searchParams.set("access_token",E),w!=null&&N.searchParams.set("is_new_user",String(w)),window.location.href=N.toString()},m=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",p)}function mA(e,t,n,r){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(o){return e.put(`/apps/${n}/entities/User/me`,o)}
345,redirectToLogin(o){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=o?new URL(o,window.location.origin).toString():window.location.href,c=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=c},loginWithProvider(o,a="/"){const c=new URL(a,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(c)}`;let h;o==="sso"?h=`/apps/${n}/auth/sso/login`:h=`/apps/auth${o==="google"?"":`/${o}`}/login`;const p=`${r.appBaseUrl}/api${h}?${d}`;if(hA()){const m=`${p}&popup_origin=${encodeURIComponent(window.location.origin)}`;return pA(m,c,window.location.origin)}window.location.href=p},logout(o){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const a=o||window.location.href,c=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=c}},setToken(o,a=!0){if(o&&(e.defaults.headers.common.Authorization=`Bearer ${o}`,t.defaults.headers.common.Authorization=`Bearer ${o}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",o),window.localStorage.setItem("token",o)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(o,a,c){var d;try{const h=await e.post(`/apps/${n}/auth/login`,{email:o,password:a,...c&&{turnstile_token:c}}),{access_token:p,user:m}=h;return p&&this.setToken(p),{access_token:p,user:m}}catch(h){throw((d=h.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),h}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(o,a){return e.post(`/apps/${n}/users/invite-user`,{user_email:o,role:a})},register(o){return e.post(`/apps/${n}/auth/register`,o)},verifyOtp({email:o,otpCode:a}){return e.post(`/apps/${n}/auth/verify-otp`,{email:o,otp_code:a})},resendOtp(o){return e.post(`/apps/${n}/auth/resend-otp`,{email:o})},resetPasswordRequest(o){return e.post(`/apps/${n}/auth/reset-password-request`,{email:o})},resetPassword({resetToken:o,newPassword:a}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:o,new_password:a})},changePassword({userId:o,currentPassword:a,newPassword:c}){return e.post(`/apps/${n}/auth/change-password`,{user_id:o,current_password:a,new_password:c})}}}function gA(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)}}}function yA(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${n}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/connectors/${n}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}}}}function vA(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${n}/initiate`)).redirect_url}
345,async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${n}`)}}}function Ba(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:o=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(a=c.get(n),a){if(r&&xA(a,{storageKey:t}),o){c.delete(n);const d=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return a}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function xA(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function Qv(e,t,n){const r=(a,c)=>a?`${String(a).replace(/\/$/,"")}${c}`:c,o=a=>{const c=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([h,p])=>{p!=null&&c.set(h,String(p))})}return a&&new Headers(a).forEach((d,h)=>{c.set(h,d)}),c};return{async invoke(a,c){if(typeof c=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(p=>p instanceof File)?(d=new FormData,Object.keys(c).forEach(p=>{c[p]instanceof File?d.append(p,c[p],c[p].name):typeof c[p]=="object"&&c[p]!==null?d.append(p,JSON.stringify(c[p])):d.append(p,c[p])}),h="multipart/form-data"):(d=c,h="application/json"),e.post(`/apps/${t}/functions/${a}`,d||c,{headers:{"Content-Type":h}})},async fetch(a,c={}){const h=`/functions${a.startsWith("/")?a:`/${a}`}`,p=o(c.headers),m={...c,headers:p};return await fetch(r(n==null?void 0:n.baseURL,h),m)}}}function Xv({axios:e,getSocket:t,appId:n,serverUrl:r,token:o}){const a=`/apps/${n}/agents`,c={},d=()=>e.get(`${a}/conversations`),h=w=>e.get(`${a}/conversations/${w}`);return{getConversations:d,getConversation:h,listConversations:w=>e.get(`${a}/conversations`,{params:w}),createConversation:w=>e.post(`${a}/conversations`,w),addMessage:async(w,S)=>e.post(`${a}/conversations/v2/${w.id}/messages`,S),subscribeToConversation:(w,S)=>{const b=`/agent-conversations/${w}`,j=t(),T=h(w).then(_=>(c[w]=_,_));return j.subscribeToRoom(b,{connect:()=>{},update_model:async({data:_})=>{const R=JSON.parse(_);if(R._message){await T;const U=R._message,$=c[w];if($){const B=$.messages||[],ne=B.findIndex(Z=>Z.id===U.id),G=ne!==-1?B.map((Z,ge)=>ge===ne?U:Z):[...B,U];c[w]={...$,messages:G},S==null||S(c[w])}}}})},getWhatsAppConnectURL:w=>{const S=`${r}/api/apps/${n}/agents/${encodeURIComponent(w)}/whatsapp`,b=o??Ba();return b?`${S}?token=${b}`:S},getTelegramConnectURL:w=>{const S=`${r}/api/apps/${n}/agents/${encodeURIComponent(w)}/telegram`,b=o??Ba();return b?`${S}?token=${b}`:S}}}function Jv(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function wA(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const sr=Object.create(null);sr.open="0";sr.close="1";sr.ping="2";sr.pong="3";sr.message="4";sr.upgrade="5";sr.noop="6";const Xc=Object.create(null);Object.keys(sr).forEach(e=>{Xc[sr[e]]=e});const ap={type:"error",data:"parser error"},D1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",L1=typeof ArrayBuffer=="function",I1=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,um=({type:e,data:t},n,r)=>
vendor: 5,631 bytes, line 345
345D1&&t instanceof Blob?n?r(t):Zv(t,r):L1&&(t instanceof ArrayBuffer||I1(t))?n?r(t):Zv(new Blob([t]),r):r(sr[e]+(t||"")),Zv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ex(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let oh;function bA(e,t){if(D1&&e.data instanceof Blob)return e.data.arrayBuffer().then(ex).then(t);if(L1&&(e.data instanceof ArrayBuffer||I1(e.data)))return t(ex(e.data));um(e,!1,n=>{oh||(oh=new TextEncoder),t(oh.encode(n))})}const tx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ba=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<tx.length;e++)ba[tx.charCodeAt(e)]=e;const SA=e=>{let t=e.length*.75,n=e.length,r,o=0,a,c,d,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const p=new ArrayBuffer(t),m=new Uint8Array(p);for(r=0;r<n;r+=4)a=ba[e.charCodeAt(r)],c=ba[e.charCodeAt(r+1)],d=ba[e.charCodeAt(r+2)],h=ba[e.charCodeAt(r+3)],m[o++]=a<<2|c>>4,m[o++]=(c&15)<<4|d>>2,m[o++]=(d&3)<<6|h&63;return p},NA=typeof ArrayBuffer=="function",dm=(e,t)=>{if(typeof e!="string")return{type:"message",data:F1(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:CA(e.substring(1),t)}:Xc[n]?e.length>1?{type:Xc[n],data:e.substring(1)}:{type:Xc[n]}:ap},CA=(e,t)=>{if(NA){const n=SA(e);return F1(n,t)}else return{base64:!0,data:e}},F1=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},B1="�",EA=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,c)=>{um(a,!1,d=>{r[c]=d,++o===n&&t(r.join(B1))})})},kA=(e,t)=>{const n=e.split(B1),r=[];for(let o=0;o<n.length;o++){const a=dm(n[o],t);if(r.push(a),a.type==="error")break}return r};function jA(){return new TransformStream({transform(e,t){bA(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let ah;function Oc(e){return e.reduce((t,n)=>t+n.length,0)}function Mc(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function TA(e,t){ah||(ah=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(c,d){for(n.push(c);;){if(r===0){if(Oc(n)<1)break;const h=Mc(n,1);a=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Oc(n)<2)break;const h=Mc(n,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(Oc(n)<8)break;const h=Mc(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),m=p.getUint32(0);if(m>Math.pow(2,21)-1){d.enqueue(ap);break}o=m*Math.pow(2,32)+p.getUint32(4),r=3}else{if(Oc(n)<o)break;const h=Mc(n,o);d.enqueue(dm(a?h:ah.decode(h),t)),r=0}if(o===0||o>e){d.enqueue(ap);break}}}})}const V1=4;function ft(e){if(e)return _A(e)}function _A(e){for(var t in ft.prototype)e[t]=ft.prototype[t];return e}ft.prototype.on=ft.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ft.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ft.prototype.off=ft.prototype.removeListener=ft.prototype.removeAllListeners=ft.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ft.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};ft.prototype.emitReserved=ft.prototype.emit;ft.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ft.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Mu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),kn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),PA="arraybuffer";function U1(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const RA=kn.setTimeout,AA=kn.clearTimeout;function Du(e,t){t.useNativeTimers?(e.setTimeoutFn=RA.bind(kn),e.clearTimeoutFn=AA.bind(kn)):(e.setTimeoutFn=kn.setTimeout.bind(kn),e.clearTimeoutFn=kn.clearTimeout.bind(kn))}const OA=1.33;function MA(e){return typeof e=="string"?DA(e):Math.ceil((e.byteLength||e.size)*OA)}function DA(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function z1(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function LA(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function IA(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");
vendor: 6,261 bytes, line 345
345t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class FA extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class fm extends ft{constructor(t){super(),this.writable=!1,Du(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new FA(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=dm(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=LA(t);return n.length?"?"+n:""}}class BA extends fm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};kA(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,EA(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=z1()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let $1=!1;try{$1=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const VA=$1;function UA(){}class zA extends BA{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class er extends ft{constructor(t,n,r){super(),this.createRequest=t,Du(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=U1(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=er.requestsCount++,er.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=UA,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete er.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}er.requestsCount=0;er.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",nx);else if(typeof addEventListener=="function"){const e="onpagehide"in kn?"pagehide":"unload";addEventListener(e,nx,!1)}}function nx(){for(let e in er.requests)er.requests.hasOwnProperty(e)&&er.requests[e].abort()}const $A=(function(){const e=W1({xdomain:!1});return e&&e.responseType!==null})();class WA extends zA{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=$A&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new er(W1,this.uri(),t)}}function W1(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||VA))return new XMLHttpRequest}catch{}if(!t)try{return new kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const H1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class HA extends fm{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=H1?{}:U1(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}
vendor: 10,324 bytes, line 345
345this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;um(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}o&&Mu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=z1()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const lh=kn.WebSocket||kn.MozWebSocket;class qA extends HA{createSocket(t,n,r){return H1?new lh(t,n,r):n?new lh(t,n):new lh(t)}doWrite(t,n){this.ws.send(n)}}class GA extends fm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=TA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=jA();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:d,value:h})=>{d||(this.onPacket(h),a())}).catch(d=>{})};a();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Mu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const KA={websocket:qA,webtransport:GA,polling:WA},YA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,QA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lp(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=YA.exec(e||""),a={},c=14;for(;c--;)a[QA[c]]=o[c]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=XA(a,a.path),a.queryKey=JA(a,a.query),a}function XA(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function JA(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const cp=typeof addEventListener=="function"&&typeof removeEventListener=="function",Jc=[];cp&&addEventListener("offline",()=>{Jc.forEach(e=>e())},!1);class ds extends ft{constructor(t,n){if(super(),this.binaryType=PA,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=lp(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=lp(n.host).host);Du(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=IA(this.opts.query)),cp&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Jc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=V1,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&ds.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",ds.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=MA(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Mu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(ds.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),cp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Jc.indexOf(this._offlineEventListener);r!==-1&&Jc.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}ds.protocol=V1;class ZA extends ds{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;ds.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!r)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ds.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 10,982 bytes, line 345
345]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=n.name,this.emitReserved("upgradeError",x)}}))};function a(){r||(r=!0,m(),n.close(),n=null)}const c=y=>{const x=new Error("probe error: "+y);x.transport=n.name,a(),this.emitReserved("upgradeError",x)};function d(){c("transport closed")}function h(){c("socket closed")}function p(y){n&&y.name!==n.name&&a()}const m=()=>{n.removeListener("open",o),n.removeListener("error",c),n.removeListener("close",d),this.off("close",h),this.off("upgrading",p)};n.once("open",o),n.once("error",c),n.once("close",d),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let eO=class extends ZA{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>KA[o]).filter(o=>!!o)),super(t,r)}};function tO(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=lp(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const nO=typeof ArrayBuffer=="function",rO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,q1=Object.prototype.toString,sO=typeof Blob=="function"||typeof Blob<"u"&&q1.call(Blob)==="[object BlobConstructor]",iO=typeof File=="function"||typeof File<"u"&&q1.call(File)==="[object FileConstructor]";function hm(e){return nO&&(e instanceof ArrayBuffer||rO(e))||sO&&e instanceof Blob||iO&&e instanceof File}function Zc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Zc(e[n]))return!0;return!1}if(hm(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zc(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Zc(e[n]))return!0;return!1}function oO(e){const t=[],n=e.data,r=e;return r.data=up(n,t),r.attachments=t.length,{packet:r,buffers:t}}function up(e,t){if(!e)return e;if(hm(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=up(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=up(e[r],t));return n}return e}function aO(e,t){return e.data=dp(e.data,t),delete e.attachments,e}function dp(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=dp(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=dp(e[n],t));return e}const G1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],lO=5;var Ae;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ae||(Ae={}));class cO{constructor(t){this.replacer=t}encode(t){return(t.type===Ae.EVENT||t.type===Ae.ACK)&&Zc(t)?this.encodeAsBinary({type:t.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ae.BINARY_EVENT||t.type===Ae.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=oO(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class pm extends ft{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Ae.BINARY_EVENT;r||n.type===Ae.BINARY_ACK?(n.type=r?Ae.EVENT:Ae.ACK,this.reconstructor=new uO(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(hm(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Ae[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ae.BINARY_EVENT||r.type===Ae.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(a,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const d=Number(c);if(!K1(d)||d<0)throw new Error("Illegal attachments");if(d>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=d}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(pm.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ae.CONNECT:return uu(n);case Ae.DISCONNECT:return n===void 0;case Ae.CONNECT_ERROR:return typeof n=="string"||uu(n);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&G1.indexOf(n[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class uO{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=aO(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function dO(e){return typeof e=="string"}const K1=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function fO(e){return e===void 0||K1(e)}function uu(e){return Object.prototype.toString.call(e)==="[object Object]"}function hO(e,t){switch(e){case Ae.CONNECT:return t===void 0||uu(t);case Ae.DISCONNECT:return t===void 0;case Ae.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&G1.indexOf(t[0])===-1);case Ae.ACK:return Array.isArray(t);case Ae.CONNECT_ERROR:return typeof t=="string"||uu(t);default:return!1}}function pO(e){return dO(e.nsp)&&fO(e.id)&&hO(e.type,e.data)}const mO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pm,Encoder:cO,get PacketType(){return Ae},isPacketValid:pO,protocol:lO},Symbol.toStringTag,{value:"Module"}));function Bn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const gO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Y1 extends ft{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Bn(t,"open",this.onopen.bind(this)),Bn(t,"packet",this.onpacket.bind(this)),Bn(t,"error",this.onerror.bind(this)),Bn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(gO.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:Ae.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,y=n.pop();this._registerAckCallback(m,y),c.id=m}const d=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===t&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},o),c=(...d)=>{this.io.clearTimeoutFn(a),n.apply(this,d)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(c,d)=>c?o(c):r(d);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ae.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 345
345_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ae.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(t);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(t);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ae.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ae.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function vo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}vo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};vo.prototype.reset=function(){this.attempts=0};vo.prototype.setMin=function(e){this.ms=e};vo.prototype.setMax=function(e){this.max=e};vo.prototype.setJitter=function(e){this.jitter=e};class fp extends ft{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Du(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new vo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||mO;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new eO(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Bn(n,"open",function(){r.onopen(),t&&t()}),a=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),t?t(d):this.maybeReconnectOnOpen()},c=Bn(n,"error",a);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Bn(t,"ping",this.onping.bind(this)),Bn(t,"data",this.ondata.bind(this)),Bn(t,"error",this.onerror.bind(this)),Bn(t,"close",this.onclose.bind(this)),Bn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Mu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Y1(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
345cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ha={};function eu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=tO(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,c=ha[o]&&a in ha[o].nsps,d=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let h;return d?h=new fp(r,t):(ha[o]||(ha[o]=new fp(r,t)),h=ha[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(eu,{Manager:fp,Socket:Y1,io:eu,connect:eu});const yO=250;function rx(e,t){var n;const r=eu(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(n=e.token)!==null&&n!==void 0?n:Ba()}});return r.on("connect",async()=>{var o;return console.log("connect",r.id),(o=t.connect)===null||o===void 0?void 0:o.call(t)}),r.on("update_model",async o=>{var a;return(a=t.update_model)===null||a===void 0?void 0:a.call(t,o)}),r.on("error",async o=>{var a;return(a=t.error)===null||a===void 0?void 0:a.call(t,o)}),r.on("connect_error",async o=>{var a;return console.error("connect_error",o),(a=t.error)===null||a===void 0?void 0:a.call(t,o)}),r}function vO({config:e}){let t={...e};const n={},r={},o={connect:async()=>{const b=[];Object.keys(n).forEach(j=>{const T=x(j);T.length!==0&&(p(j),T.forEach(({connect:_})=>{const R=async()=>_==null?void 0:_();b.push(R())}))}),await Promise.all(b)},update_model:async b=>{const T=x(b.room).map(_=>{var R;return(R=_.update_model)===null||R===void 0?void 0:R.call(_,b)});await Promise.all(T)},error:async b=>{console.error("error",b);const j=Object.values(n).flat().map(T=>{var _;return(_=T.error)===null||_===void 0?void 0:_.call(T,b)});await Promise.all(j)}};let a=rx(e,o);function c(){d()}function d(){E(),a&&a.disconnect()}function h(b){c(),t={...t,...b},a=rx(t,o)}function p(b){a.emit("join",b)}function m(b){a.emit("leave",b)}async function y(b,j){var T;const _=JSON.stringify(j);return(T=o.update_model)===null||T===void 0?void 0:T.call(o,{room:b,data:_})}function x(b){var j;return(j=n[b])!==null&&j!==void 0?j:[]}function N(b){const j=r[b];j&&(clearTimeout(j),delete r[b])}function E(){Object.keys(r).forEach(b=>{var j,T;clearTimeout(r[b]),delete r[b],((T=(j=n[b])===null||j===void 0?void 0:j.length)!==null&&T!==void 0?T:0)===0&&delete n[b]})}function w(b){N(b),r[b]=setTimeout(()=>{var j,T;delete r[b],!(((T=(j=n[b])===null||j===void 0?void 0:j.length)!==null&&T!==void 0?T:0)>0)&&(m(b),delete n[b])},yO)}return{socket:a,subscribeToRoom:(b,j)=>{n[b]?N(b):(p(b),n[b]=[]),n[b].push(j);let T=!1;return()=>{var _,R;T||(T=!0,n[b]=(R=(_=n[b])===null||_===void 0?void 0:_.filter(U=>U!==j))!==null&&R!==void 0?R:[],n[b].length===0&&w(b))}},updateConfig:h,updateModel:y,disconnect:d}}const pa=typeof window<"u"?window:{base44SharedInstances:{}};function xO(e,t){return pa.base44SharedInstances||(pa.base44SharedInstances={}),pa.base44SharedInstances[e]||(pa.base44SharedInstances[e]={instance:t()}),pa.base44SharedInstances[e].instance}const wO="__user_heartbeat_event__",bO="__initialization_event__",SO="__session_duration_event__",sx="analytics-enable",ix="base44_analytics_session_id",NO={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},CO="analytics",ze=xO(CO,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...NO,...AO()}})),EO=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r})=>{var o;const{maxQueueSize:a,throttleTime:c,batchSize:d}=ze.config;if(!(!((o=ze.config)===null||o===void 0)&&o.enabled))return{track:()=>{},cleanup:()=>{}};let h;const p=`${t}/api/apps/${n}/analytics/track/batch`,m=async T=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:T}})},y=T=>{try{const _=JSON.stringify({events:T}),R=new Blob([_],{type:"application/json"});return typeof navigator>"u"||_.length>6e4||!navigator.sendBeacon(p,R)}catch{return!1}},x=async(T,_={})=>
345{if(T.length===0)return;const R=await RO(r),U=T.map(PO(R));try{(!_.isBeacon||!y(U))&&await m(U)}catch{}},N=()=>{ax(x,{throttleTime:c,batchSize:d})},E=T=>{if(ze.requestsQueue.length>=a)return;const _=_O();ze.requestsQueue.push({...T,..._}),N()},w=()=>{ax(x,{throttleTime:c,batchSize:d}),h=lx(E),jO()},S=()=>{ox(),h==null||h(),TO(E);const T=ze.requestsQueue.splice(0);x(T,{isBeacon:!0})},b=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&w())},j=()=>{ox(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",b)};return N(),h=lx(E),kO(E),typeof window<"u"&&window.addEventListener("visibilitychange",b),{track:E,cleanup:j}};function ox(){ze.isProcessing=!1}async function ax(e,t){if(ze.isProcessing)return;ze.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;ze.isProcessing&&ze.requestsQueue.length>0;){const o=ze.requestsQueue.splice(0,r);o.length&&await e(o),await new Promise(a=>setTimeout(a,n))}ze.isProcessing=!1}function lx(e){var t;if(ze.isHeartBeatProcessing||((t=ze.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};ze.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:wO})},ze.config.heartBeatInterval);return()=>{clearInterval(n),ze.isHeartBeatProcessing=!1}}function kO(e){typeof window>"u"||ze.wasInitializationTracked||(ze.wasInitializationTracked=!0,e({eventName:bO,properties:{referrer:document==null?void 0:document.referrer}}))}function jO(){typeof window>"u"||ze.sessionStartTime!==null||(ze.sessionStartTime=new Date().toISOString())}function TO(e){if(typeof window>"u"||ze.sessionStartTime===null)return;const t=new Date().getTime()-new Date(ze.sessionStartTime).getTime();ze.sessionStartTime=null,e({eventName:SO,properties:{sessionDuration:t}})}function _O(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function PO(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let ch=null;async function RO(e){if(!ze.sessionContext){if(!ch){const t=OO();ch=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}ze.sessionContext=await ch}return ze.sessionContext}function AO(){if(typeof window>"u")return;const t=new URLSearchParams(window.location.search).get(sx);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(sx);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function OO(){if(typeof window>"u")return sh();try{const e=localStorage.getItem(ix);if(!e){const t=sh();return localStorage.setItem(ix,t),t}return e}catch{return sh()}}function MO(e){var t,n;const{serverUrl:r="https://base44.app",appId:o,token:a,serviceToken:c,requiresAuth:d=!1,appBaseUrl:h,options:p,functionsVersion:m,headers:y}=e,x=typeof h=="string"?h:"",N={serverUrl:r,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:o,token:a};let E=null;const w=()=>(E||(E=vO({config:N})),E),S={...y,"X-App-Id":String(o)},b=m?{...S,"Base44-Functions-Version":m}:S,j=wa({baseURL:`${r}/api`,headers:S,token:a,onError:p==null?void 0:p.onError}),T=wa({baseURL:`${r}/api`,headers:b,token:a,interceptResponses:!1,onError:p==null?void 0:p.onError}),_={...S,...a?{"on-behalf-of":`Bearer ${a}`}:{}},R=wa({baseURL:`${r}/api`,headers:_,token:c,onError:p==null?void 0:p.onError}),U=wa({baseURL:`${r}/api`,headers:b,token:c,interceptResponses:!1}),$=mA(j,T,o,{appBaseUrl:x});if(typeof window<"u"){const Z=a||Ba();Z&&$.setToken(Z)}const B={entities:Kv({axios:j,appId:o,getSocket:w}),integrations:Yv(j,o),connectors:vA(j,o),auth:$,functions:Qv(T,o,{getAuthHeaders:()=>{const Z={},ge=a||Ba();return ge&&(Z.Authorization=`Bearer ${ge}`),Z},baseURL:(t=T.defaults)===null||t===void 0?void 0:t.baseURL}),agents:Xv({axios:j,getSocket:w,appId:o,serverUrl:r,token:a}),appLogs:Jv(j,o),users:wA(j,o),analytics:EO({axiosClient:j,serverUrl:r,appId:o,userAuthModule:$}),cleanup:()=>{B.analytics.cleanup(),E&&E.disconnect()}},ne={entities:Kv({axios:R,appId:o,getSocket:w}),integrations:Yv(R,o),sso:gA(R,o),connectors:yA(R,o),functions:Qv(U,o,{getAuthHeaders:()=>{const Z={};return c&&(Z.Authorization=`Bearer ${c}`),Z},baseURL:(n=U.defaults)===null||n===void 0?void 0:n.baseURL}
345),agents:Xv({axios:R,getSocket:w,appId:o,serverUrl:r,token:a}),appLogs:Jv(R,o),cleanup:()=>{E&&E.disconnect()}};return d&&typeof window<"u"&&setTimeout(async()=>{try{await B.auth.isAuthenticated()||B.auth.redirectToLogin(window.location.href)}catch(Z){console.error("Authentication check failed:",Z),B.auth.redirectToLogin(window.location.href)}},0),{...B,setToken(Z){B.auth.setToken(Z),E&&E.updateConfig({token:Z}),N.token=Z},getConfig(){return{serverUrl:r,appId:o,requiresAuth:d}},get asServiceRole(){if(!c)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ne}}}const Q1=typeof window>"u",DO=Q1?{localStorage:new Map}:window,Ta=DO.localStorage,LO=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Di=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(Q1)return t;const r=`base44_${LO(e)}`,o=new URLSearchParams(window.location.search),a=o.get(e);if(n){o.delete(e);const d=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(a)return Ta.setItem(r,a),a;if(t)return Ta.setItem(r,t),t;const c=Ta.getItem(r);return c||null},IO=()=>(Di("clear_access_token")==="true"&&(Ta.removeItem("base44_access_token"),Ta.removeItem("token")),{appId:Di("app_id",{defaultValue:"697e86af7261a6f5f8efd2ca"}),token:Di("access_token",{removeFromUrl:!0}),fromUrl:Di("from_url",{defaultValue:window.location.href}),functionsVersion:Di("functions_version",{defaultValue:"prod"}),appBaseUrl:Di("app_base_url",{defaultValue:void 0})}),Sa={...IO()},{appId:FO,token:BO,functionsVersion:VO,appBaseUrl:UO}=Sa,tn=MO({appId:FO,token:BO,functionsVersion:VO,serverUrl:"",requiresAuth:!1,appBaseUrl:UO}),X1=C.createContext(),zO=({children:e})=>{const[t,n]=C.useState(null),[r,o]=C.useState(!1),[a,c]=C.useState(!0),[d,h]=C.useState(!0),[p,m]=C.useState(null),[y,x]=C.useState(null);C.useEffect(()=>{N()},[]);const N=async()=>{var b,j;try{h(!0),m(null);const T=wa({baseURL:"/api/apps/public",headers:{"X-App-Id":Sa.appId},token:Sa.token,interceptResponses:!0});try{const _=await T.get(`/prod/public-settings/by-id/${Sa.appId}`);x(_),Sa.token?await E():(c(!1),o(!1)),h(!1)}catch(_){if(console.error("App state check failed:",_),_.status===403&&((j=(b=_.data)==null?void 0:b.extra_data)!=null&&j.reason)){const R=_.data.extra_data.reason;m(R==="auth_required"?{type:"auth_required",message:"Authentication required"}:R==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:R,message:_.message})}else m({type:"unknown",message:_.message||"Failed to load app"});h(!1),c(!1)}}catch(T){console.error("Unexpected error:",T),m({type:"unknown",message:T.message||"An unexpected error occurred"}),h(!1),c(!1)}},E=async()=>{try{c(!0);const b=await tn.auth.me();n(b),o(!0),c(!1)}catch(b){console.error("User auth check failed:",b),c(!1),o(!1),(b.status===401||b.status===403)&&m({type:"auth_required",message:"Authentication required"})}},w=(b=!0)=>{n(null),o(!1),b?tn.auth.logout(window.location.href):tn.auth.logout()},S=()=>{tn.auth.redirectToLogin(window.location.href)};return u.jsx(X1.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:d,authError:p,appPublicSettings:y,logout:w,navigateToLogin:S,checkAppState:N},children:e})},J1=()=>{const e=C.useContext(X1);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Lu=C.createContext(null);function mm(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const gm=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class $O extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function WO({children:e,isPresent:t}){const n=C.useId(),r=C.useRef(null),o=C.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=C.useContext(gm);return C.useInsertionEffect(()=>{const{width:c,height:d,top:h,left:p}=o.current;if(t||!r.current||!c||!d)return;r.current.dataset.motionPopId=n;
vendor: 7,939 bytes, lines 345-353
345const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
346          [data-motion-pop-id="${n}"] {
347            position: absolute !important;
348            width: ${c}px !important;
349            height: ${d}px !important;
350            top: ${h}px !important;
351            left: ${p}px !important;
352          }
353        `),()=>{document.head.removeChild(m)}},[t]),u.jsx($O,{isPresent:t,childRef:r,sizeRef:o,children:C.cloneElement(e,{ref:r})})}const HO=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:c})=>{const d=mm(qO),h=C.useId(),p=C.useCallback(y=>{d.set(y,!0);for(const x of d.values())if(!x)return;r&&r()},[d,r]),m=C.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:p,register:y=>(d.set(y,!1),()=>d.delete(y))}),a?[Math.random(),p]:[n,p]);return C.useMemo(()=>{d.forEach((y,x)=>d.set(x,!1))},[n]),C.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),c==="popLayout"&&(e=u.jsx(WO,{isPresent:n,children:e})),u.jsx(Lu.Provider,{value:m,children:e})};function qO(){return new Map}const ym=C.createContext({}),dn=e=>e;let Z1=dn;function vm(e){let t;return()=>(t===void 0&&(t=e()),t)}const ao=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wr=e=>e*1e3,br=e=>e/1e3,Dc=e=>e.key||"";function cx(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const xm=typeof window<"u",eS=xm?C.useLayoutEffect:C.useEffect,tS=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:c="sync"})=>{const d=C.useMemo(()=>cx(e),[e]),h=d.map(Dc),p=C.useRef(!0),m=C.useRef(d),y=mm(()=>new Map),[x,N]=C.useState(d),[E,w]=C.useState(d);eS(()=>{p.current=!1,m.current=d;for(let j=0;j<E.length;j++){const T=Dc(E[j]);h.includes(T)?y.delete(T):y.get(T)!==!0&&y.set(T,!1)}},[E,h.length,h.join("-")]);const S=[];if(d!==x){let j=[...d];for(let T=0;T<E.length;T++){const _=E[T],R=Dc(_);h.includes(R)||(j.splice(T,0,_),S.push(_))}c==="wait"&&S.length&&(j=S),w(cx(j)),N(d);return}const{forceRender:b}=C.useContext(ym);return u.jsx(u.Fragment,{children:E.map(j=>{const T=Dc(j),_=d===E||h.includes(T),R=()=>{if(y.has(T))y.set(T,!0);else return;let U=!0;y.forEach($=>{$||(U=!1)}),U&&(b==null||b(),w(m.current),o&&o())};return u.jsx(HO,{isPresent:_,initial:!p.current||r?void 0:!1,custom:_?void 0:n,presenceAffectsLayout:a,mode:c,onExitComplete:_?void 0:R,children:j},T)})})},GO={useManualTiming:!1};function KO(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(p){a.has(p)&&(h.schedule(p),e()),p(c)}const h={schedule:(p,m=!1,y=!1)=>{const N=y&&r?t:n;return m&&a.add(p),N.has(p)||N.add(p),p},cancel:p=>{n.delete(p),a.delete(p)},process:p=>{if(c=p,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,o&&(o=!1,h.process(p))}};return h}const Lc=["read","resolveKeyframes","update","preRender","render","postRender"],YO=40;function nS(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,c=Lc.reduce((b,j)=>(b[j]=KO(a),b),{}),{read:d,resolveKeyframes:h,update:p,preRender:m,render:y,postRender:x}=c,N=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,YO),1),o.timestamp=b,o.isProcessing=!0,d.process(o),h.process(o),p.process(o),m.process(o),y.process(o),x.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(N))},E=()=>{n=!0,r=!0,o.isProcessing||e(N)};return{schedule:Lc.reduce((b,j)=>{const T=c[j];return b[j]=(_,R=!1,U=!1)=>(n||E(),T.schedule(_,R,U)),b},{}),cancel:b=>{for(let j=0;j<Lc.length;j++)c[Lc[j]].cancel(b)},state:o,steps:c}}const{schedule:Ge,cancel:hs,state:Tt,steps:uh}=nS(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0),rS=C.createContext({strict:!1}),ux={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"]},lo={};for(const e in ux)lo[e]={isEnabled:t=>ux[e].some(n=>!!t[n])};function QO(e){for(const t in e)lo[t]={...lo[t],...e[t]}}const XO=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","ignoreStrict","viewport"]);function du(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XO.has(e)}let sS=e=>!du(e);function JO(e){e&&(sS=t=>t.startsWith("on")?!du(t):e(t))}try{JO(require("@emotion/is-prop-valid").default)}catch{}function ZO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(sS(o)||n===!0&&du(o)||!t&&!du(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function e3(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Iu=C.createContext({});function Va(e){return typeof e=="string"||Array.isArray(e)}function Fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const wm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bm=["initial",...wm];function Bu(e){return Fu(e.animate)||bm.some(t=>Va(e[t]))}function iS(e){return!!(Bu(e)||e.variants)}function t3(e,t){if(Bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Va(n)?n:void 0,animate:Va(r)?r:void 0}}return e.inherit!==!1?t:{}}function n3(e){const{initial:t,animate:n}=t3(e,C.useContext(Iu));return C.useMemo(()=>({initial:t,animate:n}),[dx(t),dx(n)])}function dx(e){return Array.isArray(e)?e.join(" "):e}const r3=Symbol.for("motionComponentSymbol");function Vi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function s3(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vi(n)&&(n.current=r))},[t])}const Sm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),i3="framerAppearId",oS="data-"+Sm(i3),{schedule:Nm}=nS(queueMicrotask,!1),aS=C.createContext({});function o3(e,t,n,r,o){var a,c;const{visualElement:d}=C.useContext(Iu),h=C.useContext(rS),p=C.useContext(Lu),m=C.useContext(gm).reducedMotion,y=C.useRef(null);r=r||h.renderer,!y.current&&r&&(y.current=r(e,{visualState:t,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const x=y.current,N=C.useContext(aS);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&a3(y.current,n,o,N);const E=C.useRef(!1);C.useInsertionEffect(()=>{x&&E.current&&x.update(n,p)});const w=n[oS],S=C.useRef(!!w&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,w))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,w)));return eS(()=>{x&&(E.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),Nm.render(x.render),S.current&&x.animationState&&x.animationState.animateChanges())}),C.useEffect(()=>{x&&(!S.current&&x.animationState&&x.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,w)}),S.current=!1))}),x}function a3(e,t,n,r){const{layoutId:o,layout:a,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lS(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!c||d&&Vi(d),visualElement:e,animationType:typeof a=="str
353ing"?a:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:p})}function lS(e){if(e)return e.options.allowProjection!==!1?e.projection:lS(e.parent)}function l3({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var a,c;e&&QO(e);function d(p,m){let y;const x={...C.useContext(gm),...p,layoutId:c3(p)},{isStatic:N}=x,E=n3(p),w=r(p,N);if(!N&&xm){u3();const S=d3(x);y=S.MeasureLayout,E.visualElement=o3(o,w,x,t,S.ProjectionNode)}return u.jsxs(Iu.Provider,{value:E,children:[y&&E.visualElement?u.jsx(y,{visualElement:E.visualElement,...x}):null,n(o,p,s3(w,E.visualElement,m),w,N,E.visualElement)]})}d.displayName=`motion.${typeof o=="string"?o:`create(${(c=(a=o.displayName)!==null&&a!==void 0?a:o.name)!==null&&c!==void 0?c:""})`}`;const h=C.forwardRef(d);return h[r3]=o,h}function c3({layoutId:e}){const t=C.useContext(ym).id;return t&&e!==void 0?t+"-"+e:e}function u3(e,t){C.useContext(rS).strict}function d3(e){const{drag:t,layout:n}=lo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const f3=["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 Cm(e){return typeof e!="string"||e.includes("-")?!1:!!(f3.indexOf(e)>-1||/[A-Z]/u.test(e))}function cS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const uS=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"]);function dS(e,t,n,r){cS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(uS.has(o)?o:Sm(o),t.attrs[o])}const Ft=e=>!!(e&&e.getVelocity),fu={};function h3(e){Object.assign(fu,e)}const ul=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ai=new Set(ul);function fS(e,{layout:t,layoutId:n}){return ai.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fu[e]||e==="opacity")}function Em(e,t,n){var r;const{style:o}=e,a={};for(const c in o)(Ft(o[c])||t.style&&Ft(t.style[c])||fS(c,e)||((r=n==null?void 0:n.getValue(c))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[c]=o[c]);return a}function hS(e,t,n){const r=Em(e,t,n);for(const o in e)if(Ft(e[o])||Ft(t[o])){const a=ul.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[a]=e[o]}return r}function fx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function km(e,t,n,r){if(typeof t=="function"){const[o,a]=fx(r);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=fx(r);t=t(n!==void 0?n:e.custom,o,a)}return t}const hp=e=>Array.isArray(e),p3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),m3=e=>hp(e)?e[e.length-1]||0:e;function tu(e){const t=Ft(e)?e.get():e;return p3(t)?t.toValue():t}function g3({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,a){const c={latestValues:y3(r,o,a,e),renderState:t()};return n&&(c.mount=d=>n(r,d,c)),c}const pS=e=>(t,n)=>{const r=C.useContext(Iu),o=C.useContext(Lu),a=()=>g3(e,t,r,o);return n?a():mm(a)};function y3(e,t,n,r){const o={},a=r(e,{});for(const x in a)o[x]=tu(a[x]);let{initial:c,animate:d}=e;const h=Bu(e),p=iS(e);t&&p&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const y=m?d:c;if(y&&typeof y!="boolean"&&!Fu(y)){const x=Array.isArray(y)?y:[y];for(let N=0;N<x.length;N++){const E=km(e,x[N]);if(E){const{transitionEnd:w,transition:S,...b}=E;for(const j in b){let T=b[j];if(Array.isArray(T)){const _=m?T.length-1:0;T=T[_]}T!==null&&(o[j]=T)}for(const j in w)o[j]=w[j]}}}return o}const jm=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mS=()=>({...jm(),attrs:{}}),gS=(e,t)=>
vendor: 4,250 bytes, line 353
353t&&typeof e=="number"?t.transform(e):e,Cr=(e,t,n)=>n>t?t:n<e?e:n,xo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ua={...xo,transform:e=>Cr(0,1,e)},Ic={...xo,default:1},dl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=dl("deg"),tr=dl("%"),ke=dl("px"),v3=dl("vh"),x3=dl("vw"),hx={...tr,parse:e=>tr.parse(e)/100,transform:e=>tr.transform(e*100)},w3={borderWidth:ke,borderTopWidth:ke,borderRightWidth:ke,borderBottomWidth:ke,borderLeftWidth:ke,borderRadius:ke,radius:ke,borderTopLeftRadius:ke,borderTopRightRadius:ke,borderBottomRightRadius:ke,borderBottomLeftRadius:ke,width:ke,maxWidth:ke,height:ke,maxHeight:ke,top:ke,right:ke,bottom:ke,left:ke,padding:ke,paddingTop:ke,paddingRight:ke,paddingBottom:ke,paddingLeft:ke,margin:ke,marginTop:ke,marginRight:ke,marginBottom:ke,marginLeft:ke,backgroundPositionX:ke,backgroundPositionY:ke},b3={rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:Ic,scaleX:Ic,scaleY:Ic,scaleZ:Ic,skew:Xr,skewX:Xr,skewY:Xr,distance:ke,translateX:ke,translateY:ke,translateZ:ke,x:ke,y:ke,z:ke,perspective:ke,transformPerspective:ke,opacity:Ua,originX:hx,originY:hx,originZ:ke},px={...xo,transform:Math.round},Tm={...w3,...b3,zIndex:px,size:ke,fillOpacity:Ua,strokeOpacity:Ua,numOctaves:px},S3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N3=ul.length;function C3(e,t,n){let r="",o=!0;for(let a=0;a<N3;a++){const c=ul[a],d=e[c];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(c.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const p=gS(d,Tm[c]);if(!h){o=!1;const m=S3[c]||c;r+=`${m}(${p}) `}n&&(t[c]=p)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}const yS=e=>t=>typeof t=="string"&&t.startsWith(e),vS=yS("--"),E3=yS("var(--"),_m=e=>E3(e)?k3.test(e.split("/*")[0].trim()):!1,k3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pm(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let c=!1,d=!1;for(const h in t){const p=t[h];if(ai.has(h)){c=!0;continue}else if(vS(h)){o[h]=p;continue}else{const m=gS(p,Tm[h]);h.startsWith("origin")?(d=!0,a[h]=m):r[h]=m}}if(t.transform||(c||n?r.transform=C3(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:m=0}=a;r.transformOrigin=`${h} ${p} ${m}`}}function mx(e,t,n){return typeof e=="string"?e:ke.transform(t+n*e)}function j3(e,t,n){const r=mx(t,e.x,e.width),o=mx(n,e.y,e.height);return`${r} ${o}`}const T3={offset:"stroke-dashoffset",array:"stroke-dasharray"},_3={offset:"strokeDashoffset",array:"strokeDasharray"};function P3(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?T3:_3;e[a.offset]=ke.transform(-r);const c=ke.transform(t),d=ke.transform(n);e[a.array]=`${c} ${d}`}function Rm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},m,y){if(Pm(e,p,y),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:N,dimensions:E}=e;x.transform&&(E&&(N.transform=x.transform),delete x.transform),E&&(o!==void 0||a!==void 0||N.transform)&&(N.transformOrigin=j3(E,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(x.x=t),n!==void 0&&(x.y=n),r!==void 0&&(x.scale=r),c!==void 0&&P3(x,c,d,h,!1)}const Am=e=>typeof e=="string"&&e.toLowerCase()==="svg",R3={useVisualState:pS({scrapeMotionValuesFromProps:hS,createRenderState:mS,onMount:(e,t,{renderState:n,latestValues:r})=>{Ge.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ge.render(()=>{Rm(n,r,Am(t.tagName),e.transformTemplate),dS(t,n)})}})},A3={useVisualState:pS({scrapeMotionValuesFromProps:Em,createRenderState:jm})};function xS(e,t,n){for(const r in t)!Ft(t[r])&&!fS(r,n)&&(e[r]=t[r])}function O3({transformTemplate:e},t){return C.useMemo(()=>{const n=jm();return Pm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function M3(e,t){const n=e.style||{},r={};return xS(r,n,e),Object.assign(r,O3(e,t)),r}function D3(e,t){const n={},r=M3(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"}
353`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function L3(e,t,n,r){const o=C.useMemo(()=>{const a=mS();return Rm(a,t,Am(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};xS(a,e.style,e),o.style={...a,...o.style}}return o}function I3(e=!1){return(n,r,o,{latestValues:a},c)=>{const h=(Cm(n)?L3:D3)(r,a,c,n),p=ZO(r,typeof n=="string",e),m=n!==C.Fragment?{...p,...h,ref:o}:{},{children:y}=r,x=C.useMemo(()=>Ft(y)?y.get():y,[y]);return C.createElement(n,{...m,children:x})}}function F3(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...Cm(r)?R3:A3,preloadedFeatures:e,useRender:I3(o),createVisualElement:t,Component:r};return l3(c)}}function wS(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}function Vu(e,t,n){const r=e.getProps();return km(r,t,n!==void 0?n:r.custom,e)}const B3=vm(()=>window.ScrollTimeline!==void 0);class V3{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(B3()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class U3 extends V3{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Om(e,t){return e?e[t]||e.default||e:void 0}const pp=2e4;function bS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<pp;)t+=n,r=e.next(t);return t>=pp?1/0:t}function Mm(e){return typeof e=="function"}function gx(e,t){e.timeline=t,e.onfinish=null}const Dm=e=>Array.isArray(e)&&typeof e[0]=="number",z3={linearEasing:void 0};function $3(e,t){const n=vm(e);return()=>{var r;return(r=z3[t])!==null&&r!==void 0?r:n()}}const hu=$3(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 19,507 bytes, line 353
353,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),SS=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let a=0;a<o;a++)r+=e(ao(0,o-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function NS(e){return!!(typeof e=="function"&&hu()||!e||typeof e=="string"&&(e in mp||hu())||Dm(e)||Array.isArray(e)&&e.every(NS))}const Na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function CS(e,t){if(e)return typeof e=="function"&&hu()?SS(e,t):Dm(e)?Na(e):Array.isArray(e)?e.map(n=>CS(n,t)||mp.easeOut):mp[e]}const Dn={x:!1,y:!1};function ES(){return Dn.x||Dn.y}function W3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const a=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function kS(e,t){const n=W3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function yx(e){return t=>{t.pointerType==="touch"||ES()||e(t)}}function H3(e,t,n={}){const[r,o,a]=kS(e,n),c=yx(d=>{const{target:h}=d,p=t(d);if(typeof p!="function"||!h)return;const m=yx(y=>{p(y),h.removeEventListener("pointerleave",m)});h.addEventListener("pointerleave",m,o)});return r.forEach(d=>{d.addEventListener("pointerenter",c,o)}),a}const jS=(e,t)=>t?e===t?!0:jS(e,t.parentElement):!1,Lm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,q3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function G3(e){return q3.has(e.tagName)||e.tabIndex!==-1}const Ca=new WeakSet;function vx(e){return t=>{t.key==="Enter"&&e(t)}}function dh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const K3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vx(()=>{if(Ca.has(n))return;dh(n,"down");const o=vx(()=>{dh(n,"up")}),a=()=>dh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function xx(e){return Lm(e)&&!ES()}function Y3(e,t,n={}){const[r,o,a]=kS(e,n),c=d=>{const h=d.currentTarget;if(!xx(d)||Ca.has(h))return;Ca.add(h);const p=t(d),m=(N,E)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),!(!xx(N)||!Ca.has(h))&&(Ca.delete(h),typeof p=="function"&&p(N,{success:E}))},y=N=>{m(N,n.useGlobalTarget||jS(h,N.target))},x=N=>{m(N,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",x,o)};return r.forEach(d=>{!G3(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,o),d.addEventListener("focus",p=>K3(p,o),o)}),a}function Q3(e){return e==="x"||e==="y"?Dn[e]?null:(Dn[e]=!0,()=>{Dn[e]=!1}):Dn.x||Dn.y?null:(Dn.x=Dn.y=!0,()=>{Dn.x=Dn.y=!1})}let nu;function X3(){nu=void 0}const nr={now:()=>(nu===void 0&&nr.set(Tt.isProcessing||GO.useManualTiming?Tt.timestamp:performance.now()),nu),set:e=>{nu=e,queueMicrotask(X3)}};function Im(e,t){e.indexOf(t)===-1&&e.push(t)}function Fm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bm{constructor(){this.subscriptions=[]}add(t){return Im(this.subscriptions,t),()=>Fm(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const c=this.subscriptions[a];c&&c(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function TS(e,t){return t?e*(1e3/t):0}const wx=30,J3=e=>!isNaN(parseFloat(e));class Z3{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const a=nr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},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=J3(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 Bm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ge.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wx);return TS(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function za(e,t){return new Z3(e,t)}function eM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,za(n))}function tM(e,t){const n=Vu(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const c in a){const d=m3(a[c]);eM(e,c,d)}}function nM(e){return!!(Ft(e)&&e.add)}function gp(e,t){const n=e.getValue("willChange");if(nM(n))return n.add(t)}function _S(e){return e.props[oS]}const PS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,rM=1e-7,sM=12;function iM(e,t,n,r,o){let a,c,d=0;do c=t+(n-t)/2,a=PS(c,r,o)-e,a>0?n=c:t=c;while(Math.abs(a)>rM&&++d<sM);return c}function fl(e,t,n,r){if(e===t&&n===r)return dn;const o=a=>iM(a,0,1,e,n);return a=>a===0||a===1?a:PS(o(a),t,r)}const RS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,AS=e=>t=>1-e(1-t),OS=fl(.33,1.53,.69,.99),Vm=AS(OS),MS=RS(Vm),DS=e=>(e*=2)<1?.5*Vm(e):.5*(2-Math.pow(2,-10*(e-1))),Um=e=>1-Math.sin(Math.acos(e)),LS=AS(Um),IS=RS(Um),FS=e=>/^0[^.\s]+$/u.test(e);function oM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||FS(e):!0}const BS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),aM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lM(e){const t=aM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function VS(e,t,n=1){const[r,o]=lM(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const c=a.trim();return BS(c)?parseFloat(c):c}return _m(o)?VS(o,t,n+1):o}const cM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),bx=e=>e===xo||e===ke,Sx=(e,t)=>parseFloat(e.split(", ")[t]),Nx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Sx(o[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?Sx(a[1],e):0}},uM=new Set(["x","y","z"]),dM=ul.filter(e=>!uM.has(e));function fM(e){const t=[];return dM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const co={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:Nx(4,13),y:Nx(5,14)};co.translateX=co.x;co.translateY=co.y;const US=e=>t=>t.test(e),hM={test:e=>e==="auto",parse:e=>e},zS=[xo,ke,tr,Xr,x3,v3,hM],Cx=e=>zS.find(US(e)),Xs=new Set;let yp=!1,vp=!1;function $S(){if(vp){const e=Array.from(Xs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=fM(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([a,c])=>{var d;(d=r.getValue(a))===null||d===void 0||d.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}vp=!1,yp=!1,Xs.forEach(e=>e.complete()),Xs.clear()}function WS(){Xs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vp=!0)})}function pM(){WS(),$S()}class zm{constructor(t,n,r,o,a,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=a,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xs.add(this),yp||(yp=!0,Ge.read(WS),Ge.resolveKeyframes($S))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const c=o==null?void 0:o.get(),d=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&n){const h=r.readValue(n,d);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=d),o&&c===void 0&&o.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _a=e=>Math.round(e*1e5)/1e5,$m=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mM(e){return e==null}const gM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wm=(e,t)=>n=>!!(typeof n=="string"&&gM.test(n)&&n.startsWith(e)||t&&!mM(n)&&Object.prototype.hasOwnProperty.call(n,t)),HS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,a,c,d]=r.match($m);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},yM=e=>Cr(0,255,e),fh={...xo,transform:e=>Math.round(yM(e))},Vs={test:Wm("rgb","red"),parse:HS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fh.transform(e)+", "+fh.transform(t)+", "+fh.transform(n)+", "+_a(Ua.transform(r))+")"};function vM(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const xp={test:Wm("#"),parse:vM,transform:Vs.transform},Ui={test:Wm("hsl","hue"),parse:HS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+tr.transform(_a(t))+", "+tr.transform(_a(n))+", "+_a(Ua.transform(r))+")"},It={test:e=>Vs.test(e)||xp.test(e)||Ui.test(e),parse:e=>Vs.test(e)?Vs.parse(e):Ui.test(e)?Ui.parse(e):xp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vs.transform(e):Ui.transform(e)},xM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match($m))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(xM))===null||n===void 0?void 0:n.length)||0)>0}const qS="number",GS="color",bM="var",SM="var(",Ex="${}",NM=/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 $a(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const d=t.replace(NM,h=>(It.test(h)?(r.color.push(a),o.push(GS),n.push(It.parse(h))):h.startsWith(SM)?(r.var.push(a),o.push(bM),n.push(h)):(r.number.push(a),o.push(qS),n.push(parseFloat(h))),++a,Ex)).split(Ex);return{values:n,split:d,indexes:r,types:o}}function KS(e){return $a(e).values}function YS(e){const{split:t,types:n}=$a(e),r=t.length;return o=>{let a="";for(let c=0;c<r;c++)if(a+=t[c],o[c]!==void 0){const d=n[c];d===qS?a+=_a(o[c]):d===GS?a+=It.transform(o[c]):a+=o[c]}return a}}const CM=e=>typeof e=="number"?0:e;function EM(e){const t=KS(e);return YS(e)(t.map(CM))}const ps={test:wM,parse:KS,createTransformer:YS,getAnimatableNone:EM},kM=new Set(["brightness","contrast","saturate","opacity"]);function jM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match($m)||[];if(!r)return e;const o=n.replace(r,"");let a=kM.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const TM=/\b([a-z-]*)\(.*?\)/gu,wp={...ps,getAnimatableNone:e=>{const t=e.match(TM);return t?t.map(jM).join(" "):e}},_M={...Tm,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:wp,WebkitFilter:wp},Hm=e=>_M[e];function QS(e,t){let n=Hm(e);return n!==wp&&(n=ps),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PM=new Set(["auto","none","0"]);function RM(e,t,n){let r=0,o;for(;r<e.length&&!o;){const a=e[r];typeof a=="string"&&!PM.has(a)&&$a(a).values.length&&(o=e[r]),r++}if(o&&n)for(const a of t)e[a]=QS(n,o)}class XS extends zm{constructor(t,n,r,o,a){super(t,n,r,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let p=t[h];if(typeof p=="string"&&(p=p.trim(),_m(p))){const m=VS(p,n.current);m!==void 0&&(t[h]=m),h===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!cM.has(r)||t.length!==2)return;const[o,a]=t,c=Cx(o),d=Cx(a);if(c!==d)if(bx(c)&&bx(d))for(let h=0;h<t.length;h++){const p=t[h];typeof p=="string"&&(t[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)oM(t[o])&&r.push(o);r.length&&RM(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=co[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const c=o.length-1,d=o[c];o[c]=co[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const kx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ps.test(e)||e==="0")&&!e.startsWith("url("));function AM(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 OM(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],c=kx(o,t),d=kx(a,t);return!c||!d?!1:AM(e)||(n==="spring"||Mm(n))&&r}const MM=e=>e!==null;function Uu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(MM),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const DM=40;class JS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=nr.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:a,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>DM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=nr.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:a,delay:c,onComplete:d,onUpdate:h,isGenerator:p}=this.options;if(!p&&!OM(t,r,o,a))if(c)this.options.duration=0;else{h==null||h(Uu(t,this.options,n)),d==null||d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Je=(e,t,n)=>e+(t-e)*n;function hh(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 LM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,c=0;if(!t)o=a=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,h=2*n-d;o=hh(h,d,e+1/3),a=hh(h,d,e),c=hh(h,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(c*255),alpha:r}}function pu(e,t){return n=>n>0?t:e}const ph=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},IM=[xp,Vs,Ui],FM=e=>IM.find(t=>t.test(e));function jx(e){const t=FM(e);if(!t)return!1;let n=t.parse(e);return t===Ui&&(n=LM(n)),n}const Tx=(e,t)=>{const n=jx(e),r=jx(t);if(!n||!r)return pu(e,t);const o={...n};return a=>(o.red=ph(n.red,r.red,a),o.green=ph(n.green,r.green,a),o.blue=ph(n.blue,r.blue,a),o.alpha=Je(n.alpha,r.alpha,a),Vs.transform(o))},BM=(e,t)=>n=>t(e(n)),hl=(...e)=>e.reduce(BM),bp=new Set(["none","hidden"]);function VM(e,t){return bp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function UM(e,t){return n=>Je(e,t,n)}function qm(e){return typeof e=="number"?UM:typeof e=="string"?_m(e)?pu:It.test(e)?Tx:WM:Array.isArray(e)?ZS:typeof e=="object"?It.test(e)?Tx:zM:pu}function ZS(e,t){const n=[...e],r=n.length,o=e.map((a,c)=>qm(a)(a,t[c]));return a=>{for(let c=0;c<r;c++)n[c]=o[c](a);return n}}function zM(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=qm(e[o])(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}}function $M(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const c=t.types[a],d=e.indexes[c][o[c]],h=(n=e.values[d])!==null&&n!==void 0?n:0;r[a]=h,o[c]++}return r}const WM=(e,t)=>{const n=ps.createTransformer(t),r=$a(e),o=$a(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?bp.has(e)&&!o.values.length||bp.has(t)&&!r.values.length?VM(e,t):hl(ZS($M(r,o),o.values),n):pu(e,t)};function eN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Je(e,t,n):qm(e)(e,t)}const HM=5;function tN(e,t,n){const r=Math.max(t-HM,0);return TS(n-e(r),t-r)}const nt={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}
vendor: 4,434 bytes, line 353
353,mh=.001;function qM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let o,a,c=1-t;c=Cr(nt.minDamping,nt.maxDamping,c),e=Cr(nt.minDuration,nt.maxDuration,br(e)),c<1?(o=p=>{const m=p*c,y=m*e,x=m-n,N=Sp(p,c),E=Math.exp(-y);return mh-x/N*E},a=p=>{const y=p*c*e,x=y*n+n,N=Math.pow(c,2)*Math.pow(p,2)*e,E=Math.exp(-y),w=Sp(Math.pow(p,2),c);return(-o(p)+mh>0?-1:1)*((x-N)*E)/w}):(o=p=>{const m=Math.exp(-p*e),y=(p-n)*e+1;return-mh+m*y},a=p=>{const m=Math.exp(-p*e),y=(n-p)*(e*e);return m*y});const d=5/e,h=KM(o,a,d);if(e=wr(e),isNaN(h))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const p=Math.pow(h,2)*r;return{stiffness:p,damping:c*2*Math.sqrt(r*p),duration:e}}}const GM=12;function KM(e,t,n){let r=n;for(let o=1;o<GM;o++)r=r-e(r)/t(r);return r}function Sp(e,t){return e*Math.sqrt(1-t*t)}const YM=["duration","bounce"],QM=["stiffness","damping","mass"];function _x(e,t){return t.some(n=>e[n]!==void 0)}function XM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!_x(e,QM)&&_x(e,YM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,a=2*Cr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:nt.mass,stiffness:o,damping:a}}else{const n=qM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function nN(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:a},{stiffness:h,damping:p,mass:m,duration:y,velocity:x,isResolvedFromDuration:N}=XM({...n,velocity:-br(n.velocity||0)}),E=x||0,w=p/(2*Math.sqrt(h*m)),S=c-a,b=br(Math.sqrt(h/m)),j=Math.abs(S)<5;r||(r=j?nt.restSpeed.granular:nt.restSpeed.default),o||(o=j?nt.restDelta.granular:nt.restDelta.default);let T;if(w<1){const R=Sp(b,w);T=U=>{const $=Math.exp(-w*b*U);return c-$*((E+w*b*S)/R*Math.sin(R*U)+S*Math.cos(R*U))}}else if(w===1)T=R=>c-Math.exp(-b*R)*(S+(E+b*S)*R);else{const R=b*Math.sqrt(w*w-1);T=U=>{const $=Math.exp(-w*b*U),B=Math.min(R*U,300);return c-$*((E+w*b*S)*Math.sinh(B)+R*S*Math.cosh(B))/R}}const _={calculatedDuration:N&&y||null,next:R=>{const U=T(R);if(N)d.done=R>=y;else{let $=0;w<1&&($=R===0?wr(E):tN(T,R,U));const B=Math.abs($)<=r,ne=Math.abs(c-U)<=o;d.done=B&&ne}return d.value=d.done?c:U,d},toString:()=>{const R=Math.min(bS(_),pp),U=SS($=>_.next(R*$).value,R,30);return R+"ms "+U}};return _}function Px({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:c,min:d,max:h,restDelta:p=.5,restSpeed:m}){const y=e[0],x={done:!1,value:y},N=B=>d!==void 0&&B<d||h!==void 0&&B>h,E=B=>d===void 0?h:h===void 0||Math.abs(d-B)<Math.abs(h-B)?d:h;let w=n*t;const S=y+w,b=c===void 0?S:c(S);b!==S&&(w=b-y);const j=B=>-w*Math.exp(-B/r),T=B=>b+j(B),_=B=>{const ne=j(B),G=T(B);x.done=Math.abs(ne)<=p,x.value=x.done?b:G};let R,U;const $=B=>{N(x.value)&&(R=B,U=nN({keyframes:[x.value,E(x.value)],velocity:tN(T,B,x.value),damping:o,stiffness:a,restDelta:p,restSpeed:m}))};return $(0),{calculatedDuration:null,next:B=>{let ne=!1;return!U&&R===void 0&&(ne=!0,_(B),$(B)),R!==void 0&&B>=R?U.next(B-R):(!ne&&_(B),x)}}}const JM=fl(.42,0,1,1),ZM=fl(0,0,.58,1),rN=fl(.42,0,.58,1),e4=e=>Array.isArray(e)&&typeof e[0]!="number",t4={linear:dn,easeIn:JM,easeInOut:rN,easeOut:ZM,circIn:Um,circInOut:IS,circOut:LS,backIn:Vm,backInOut:MS,backOut:OS,anticipate:DS},Rx=e=>{if(Dm(e)){Z1(e.length===4);const[t,n,r,o]=e;return fl(t,n,r,o)}else if(typeof e=="string")return t4[e];return e};function n4(e,t,n){const r=[],o=n||eN,a=e.length-1;for(let c=0;c<a;c++){let d=o(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||dn:t;d=hl(h,d)}r.push(d)}return r}function r4(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(Z1(a===t.length),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=n4(t,r,o),d=c.length,h=p=>{let m=0;if(d>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const y=ao(e[m],e[m+1],p);return c[m](y)};return n?p=>h(Cr(e[0],e[a-1],p)):h}function s4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ao(0,t,r);e.push(Je(n,1,o))}}function i4(e){const t=[0];return s4(t,e.length-1),t}function o4(e,t){return e.map(n=>n*t)}function a4(e,t){return e.map(()=>t||rN).splice(0,e.length-1)}function mu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}
vendor: 36,417 bytes, line 353
353){const o=e4(r)?r.map(Rx):Rx(r),a={done:!1,value:t[0]},c=o4(n&&n.length===t.length?n:i4(t),e),d=r4(c,t,{ease:Array.isArray(o)?o:a4(t,o)});return{calculatedDuration:e,next:h=>(a.value=d(h),a.done=h>=e,a)}}const l4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ge.update(t,!0),stop:()=>hs(t),now:()=>Tt.isProcessing?Tt.timestamp:nr.now()}},c4={decay:Px,inertia:Px,tween:mu,keyframes:mu,spring:nN},u4=e=>e/100;class Gm extends JS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:r,element:o,keyframes:a}=this.options,c=(o==null?void 0:o.KeyframeResolver)||zm,d=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new c(a,d,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:c=0}=this.options,d=Mm(n)?n:c4[n]||mu;let h,p;d!==mu&&typeof t[0]!="number"&&(h=hl(u4,eN(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});a==="mirror"&&(p=d({...this.options,keyframes:[...t].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=bS(m));const{calculatedDuration:y}=m,x=y+o,N=x*(r+1)-o;return{generator:m,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:x,totalDuration:N}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:B}=this.options;return{done:!0,value:B[B.length-1]}}const{finalKeyframe:o,generator:a,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:p,totalDuration:m,resolvedDuration:y}=r;if(this.startTime===null)return a.next(0);const{delay:x,repeat:N,repeatType:E,repeatDelay:w,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-x*(this.speed>=0?1:-1),j=this.speed>=0?b<0:b>m;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let T=this.currentTime,_=a;if(N){const B=Math.min(this.currentTime,m)/y;let ne=Math.floor(B),G=B%1;!G&&B>=1&&(G=1),G===1&&ne--,ne=Math.min(ne,N+1),!!(ne%2)&&(E==="reverse"?(G=1-G,w&&(G-=w/y)):E==="mirror"&&(_=c)),T=Cr(0,1,G)*y}const R=j?{done:!1,value:h[0]}:_.next(T);d&&(R.value=d(R.value));let{done:U}=R;!j&&p!==null&&(U=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return $&&o!==void 0&&(R.value=Uu(h,this.options,o)),S&&S(R.value),$&&this.finish(),R}get duration(){const{resolved:t}=this;return t?br(t.calculatedDuration):0}get time(){return br(this.currentTime)}set time(t){t=wr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=br(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=l4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const d4=new Set(["opacity","clipPath","filter","transform"]);function f4(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:c="loop",ease:d="easeInOut",times:h}={}){const p={[t]:n};h&&(p.offset=h);const m=CS(d,o);return Array.isArray(m)&&(p.easing=m),e.animate(p,{delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:c==="reverse"?"alternate":"normal"})}const h4=vm(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),gu=10,p4=2e4;function m4(e){return Mm(e.type)||e.type==="spring"||!NS(e.ease)}function g4(e,t){const n=new Gm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<p4;)r=n.sample(a),o.push(r.value),a+=gu;return{times:void 0,keyframes:o,duration:a-gu,ease:"linear"}}const sN={anticipate:DS,backInOut:MS,circInOut:IS};function y4(e){return e in sN}class Ax extends JS{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:a}=this.options;this.resolver=new XS(a,(c,d)=>this.onKeyframesResolved(c,d),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:a,ease:c,type:d,motionValue:h,name:p,startTime:m}=this.options;if(!(!((r=h.owner)===null||r===void 0)&&r.current))return!1;if(typeof c=="string"&&hu()&&y4(c)&&(c=sN[c]),m4(this.options)){const{onComplete:x,onUpdate:N,motionValue:E,element:w,...S}=this.options,b=g4(t,S);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,a=b.times,c=b.ease,d="keyframes"}const y=f4(h.owner.current,p,t,{...this.options,duration:o,times:a,ease:c});return y.startTime=m??this.calcStartTime(),this.pendingTimeline?(gx(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:x}=this.options;h.set(Uu(t,this.options,n)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:o,times:a,type:d,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return br(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return br(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return dn;const{animation:r}=n;gx(r,t)}return dn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:a,ease:c,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:m,onComplete:y,element:x,...N}=this.options,E=new Gm({...N,keyframes:r,duration:o,type:a,ease:c,times:d,isGenerator:!0}),w=wr(this.time);p.setWithVelocity(E.sample(w-gu).value,E.sample(w).value,gu)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:a,damping:c,type:d}=t;return h4()&&r&&d4.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&a!=="mirror"&&c!==0&&d!=="inertia"}}const v4={type:"spring",stiffness:500,damping:25,restSpeed:10},x4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),w4={type:"keyframes",duration:.8},b4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S4=(e,{keyframes:t})=>t.length>2?w4:ai.has(e)?e.startsWith("scale")?x4(t[1]):v4:b4;function N4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:c,repeatDelay:d,from:h,elapsed:p,...m}){return!!Object.keys(m).length}const Km=(e,t,n,r={},o,a)=>c=>{const d=Om(r,e)||{},h=d.delay||r.delay||0;let{elapsed:p=0}=r;p=p-wr(h);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:x=>{t.set(x),d.onUpdate&&d.onUpdate(x)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:a?void 0:o};N4(d)||(m={...m,...S4(e,m)}),m.duration&&(m.duration=wr(m.duration)),m.repeatDelay&&(m.repeatDelay=wr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(y=!0)),y&&!a&&t.get()!==void 0){const x=Uu(m.keyframes,d);if(x!==void 0)return Ge.update(()=>{m.onUpdate(x),m.onComplete()}),new U3([])}return!a&&Ax.supports(m)?new Ax(m):new Gm(m)};function C4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function iN(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:c=e.getDefaultTransition(),transitionEnd:d,...h}=t;r&&(c=r);const p=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const y in h){const x=e.getValue(y,(a=e.latestValues[y])!==null&&a!==void 0?a:null),N=h[y];if(N===void 0||m&&C4(m,y))continue;const E={delay:n,...Om(c||{},y)};let w=!1;if(window.MotionHandoffAnimation){const b=_S(e);if(b){const j=window.MotionHandoffAnimation(b,y,Ge);j!==null&&(E.startTime=j,w=!0)}}gp(e,y),x.start(Km(y,x,N,e.shouldReduceMotion&&ai.has(y)?{type:!1}:E,e,w));const S=x.animation;S&&p.push(S)}return d&&Promise.all(p).then(()=>{Ge.update(()=>{d&&tM(e,d)})}),p}function Np(e,t,n={}){var r;const o=Vu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const c=o?()=>Promise.all(iN(e,o,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:x}=a;return E4(e,t,m+p,y,x,n)}:()=>Promise.resolve(),{when:h}=a;if(h){const[p,m]=h==="beforeChildren"?[c,d]:[d,c];return p().then(()=>m())}else return Promise.all([c(),d(n.delay)])}function E4(e,t,n=0,r=0,o=1,a){const c=[],d=(e.variantChildren.size-1)*r,h=o===1?(p=0)=>p*r:(p=0)=>d-p*r;return Array.from(e.variantChildren).sort(k4).forEach((p,m)=>{p.notify("AnimationStart",t),c.push(Np(p,t,{...a,delay:n+h(m)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(c)}function k4(e,t){return e.sortNodePosition(t)}function j4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>Np(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=Np(e,t,n);else{const o=typeof t=="function"?Vu(e,t,n.custom):t;r=Promise.all(iN(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const T4=bm.length;function oN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<T4;n++){const r=bm[n],o=e.props[r];(Va(o)||o===!1)&&(t[r]=o)}return t}const _4=[...wm].reverse(),P4=wm.length;function R4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>j4(e,n,r)))}function A4(e){let t=R4(e),n=Ox(),r=!0;const o=h=>(p,m)=>{var y;const x=Vu(e,m,h==="exit"?(y=e.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(x){const{transition:N,transitionEnd:E,...w}=x;p={...p,...w,...E}}return p};function a(h){t=h(e)}function c(h){const{props:p}=e,m=oN(e.parent)||{},y=[],x=new Set;let N={},E=1/0;for(let S=0;S<P4;S++){const b=_4[S],j=n[b],T=p[b]!==void 0?p[b]:m[b],_=Va(T),R=b===h?j.isActive:null;R===!1&&(E=S);let U=T===m[b]&&T!==p[b]&&_;if(U&&r&&e.manuallyAnimateOnMount&&(U=!1),j.protectedKeys={...N},!j.isActive&&R===null||!T&&!j.prevProp||Fu(T)||typeof T=="boolean")continue;const $=O4(j.prevProp,T);let B=$||b===h&&j.isActive&&!U&&_||S>E&&_,ne=!1;const G=Array.isArray(T)?T:[T];let Z=G.reduce(o(b),{});R===!1&&(Z={});const{prevResolvedValues:ge={}}=j,xe={...ge,...Z},ye=re=>{B=!0,x.has(re)&&(ne=!0,x.delete(re)),j.needsAnimating[re]=!0;const L=e.getValue(re);L&&(L.liveStyle=!1)};for(const re in xe){const L=Z[re],ee=ge[re];if(N.hasOwnProperty(re))continue;let Y=!1;hp(L)&&hp(ee)?Y=!wS(L,ee):Y=L!==ee,Y?L!=null?ye(re):x.add(re):L!==void 0&&x.has(re)?ye(re):j.protectedKeys[re]=!0}j.prevProp=T,j.prevResolvedValues=Z,j.isActive&&(N={...N,...Z}),r&&e.blockInitialAnimation&&(B=!1),B&&(!(U&&$)||ne)&&y.push(...G.map(re=>({animation:re,options:{type:b}})))}if(x.size){const S={};x.forEach(b=>{const j=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),S[b]=j??null}),y.push({animation:S})}let w=!!y.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(y):Promise.resolve()}function d(h,p){var m;if(n[h].isActive===p)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(x=>{var N;return(N=x.animationState)===null||N===void 0?void 0:N.setActive(h,p)}),n[h].isActive=p;const y=c(h);for(const x in n)n[x].protectedKeys={};return y}return{animateChanges:c,setActive:d,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Ox(),r=!0}}}function O4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wS(t,e):!1}function Ms(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ox(){return{animate:Ms(!0),whileInView:Ms(),whileHover:Ms(),whileTap:Ms(),whileDrag:Ms(),whileFocus:Ms(),exit:Ms()}}class ys{constructor(t){this.isMounted=!1,this.node=t}update(){}}class M4 extends ys{constructor(t){super(t),t.animationState||(t.animationState=A4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fu(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(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let D4=0;class L4 extends ys{constructor(){super(...arguments),this.id=D4++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const I4={animation:{Feature:M4},exit:{Feature:L4}};function Wa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function pl(e){return{point:{x:e.pageX,y:e.pageY}}}const F4=e=>t=>Lm(t)&&e(t,pl(t));function Pa(e,t,n,r){return Wa(e,t,F4(n),r)}const Mx=(e,t)=>Math.abs(e-t);function B4(e,t){const n=Mx(e.x,t.x),r=Mx(e.y,t.y);return Math.sqrt(n**2+r**2)}class aN{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=yh(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,N=B4(y.offset,{x:0,y:0})>=3;if(!x&&!N)return;const{point:E}=y,{timestamp:w}=Tt;this.history.push({...E,timestamp:w});const{onStart:S,onMove:b}=this.handlers;x||(S&&S(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=gh(x,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:N,onSessionEnd:E,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=yh(y.type==="pointercancel"?this.lastMoveEventInfo:gh(x,this.transformPagePoint),this.history);this.startEvent&&N&&N(y,S),E&&E(y,S)},!Lm(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const c=pl(t),d=gh(c,this.transformPagePoint),{point:h}=d,{timestamp:p}=Tt;this.history=[{...h,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,yh(d,this.history)),this.removeListeners=hl(Pa(this.contextWindow,"pointermove",this.handlePointerMove),Pa(this.contextWindow,"pointerup",this.handlePointerUp),Pa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hs(this.updatePoint)}}function gh(e,t){return t?{point:t(e.point)}:e}function Dx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yh({point:e},t){return{point:e,delta:Dx(e,lN(t)),offset:Dx(e,V4(t)),velocity:U4(t,.1)}}function V4(e){return e[0]}function lN(e){return e[e.length-1]}function U4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=lN(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>wr(t)));)n--;if(!r)return{x:0,y:0};const a=br(o.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const c={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const cN=1e-4,z4=1-cN,$4=1+cN,uN=.01,W4=0-uN,H4=0+uN;function pn(e){return e.max-e.min}function q4(e,t,n){return Math.abs(e-t)<=n}function Lx(e,t,n,r=.5){e.origin=r,e.originPoint=Je(t.min,t.max,e.origin),e.scale=pn(n)/pn(t),e.translate=Je(n.min,n.max,e.origin)-e.originPoint,(e.scale>=z4&&e.scale<=$4||isNaN(e.scale))&&(e.scale=1),(e.translate>=W4&&e.translate<=H4||isNaN(e.translate))&&(e.translate=0)}function Ra(e,t,n,r){Lx(e.x,t.x,n.x,r?r.originX:void 0),Lx(e.y,t.y,n.y,r?r.originY:void 0)}function Ix(e,t,n){e.min=n.min+t.min,e.max=e.min+pn(t)}function G4(e,t,n){Ix(e.x,t.x,n.x),Ix(e.y,t.y,n.y)}function Fx(e,t,n){e.min=t.min-n.min,e.max=e.min+pn(t)}function Aa(e,t,n){Fx(e.x,t.x,n.x),Fx(e.y,t.y,n.y)}function K4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Je(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Je(n,e,r.max):Math.min(e,n)),e}function Bx(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 Y4(e,{top:t,left:n,bottom:r,right:o}){return{x:Bx(e.x,n,o),y:Bx(e.y,t,r)}}function Vx(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 Q4(e,t){return{x:Vx(e.x,t.x),y:Vx(e.y,t.y)}}function X4(e,t){let n=.5;const r=pn(e),o=pn(t);return o>r?n=ao(t.min,t.max-r,e.min):r>o&&(n=ao(e.min,e.max-o,t.min)),Cr(0,1,n)}function J4(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 Cp=.35;function Z4(e=Cp){return e===!1?e=0:e===!0&&(e=Cp),{x:Ux(e,"left","right"),y:Ux(e,"top","bottom")}}function Ux(e,t,n){return{min:zx(e,t),max:zx(e,n)}}function zx(e,t){return typeof e=="number"?e:e[t]||0}const $x=()=>({translate:0,scale:1,origin:0,originPoint:0}),zi=()=>({x:$x(),y:$x()}),Wx=()=>({min:0,max:0}),ot=()=>({x:Wx(),y:Wx()});function Sn(e){return[e("x"),e("y")]}function dN({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tD(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 vh(e){return e===void 0||e===1}function Ep({scale:e,scaleX:t,scaleY:n}){return!vh(e)||!vh(t)||!vh(n)}function Ds(e){return Ep(e)||fN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fN(e){return Hx(e.x)||Hx(e.y)}function Hx(e){return e&&e!=="0%"}function yu(e,t,n){const r=e-n,o=t*r;return n+o}function qx(e,t,n,r,o){return o!==void 0&&(e=yu(e,o,r)),yu(e,n,r)+t}function kp(e,t=0,n=1,r,o){e.min=qx(e.min,t,n,r,o),e.max=qx(e.max,t,n,r,o)}function hN(e,{x:t,y:n}){kp(e.x,t.translate,t.scale,t.originPoint),kp(e.y,n.translate,n.scale,n.originPoint)}const Gx=.999999999999,Kx=1.0000000000001;function nD(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,c;for(let d=0;d<o;d++){a=n[d],c=a.projectionDelta;const{visualElement:h}=a.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Wi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,hN(e,c)),r&&Ds(a.latestValues)&&Wi(e,a.latestValues))}t.x<Kx&&t.x>Gx&&(t.x=1),t.y<Kx&&t.y>Gx&&(t.y=1)}function $i(e,t){e.min=e.min+t,e.max=e.max+t}function Yx(e,t,n,r,o=.5){const a=Je(e.min,e.max,o);kp(e,t,n,a,r)}function Wi(e,t){Yx(e.x,t.x,t.scaleX,t.scale,t.originX),Yx(e.y,t.y,t.scaleY,t.scale,t.originY)}function pN(e,t){return dN(tD(e.getBoundingClientRect(),t))}function rD(e,t,n){const r=pN(e,n),{scroll:o}=t;return o&&($i(r.x,o.offset.x),$i(r.y,o.offset.y)),r}const mN=({current:e})=>e?e.ownerDocument.defaultView:null,sD=new WeakMap;class iD{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=ot(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pl(m).point)},a=(m,y)=>{const{drag:x,dragPropagation:N,onDragStart:E}=this.getProps();if(x&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Q3(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sn(S=>{let b=this.getAxisMotionValue(S).get()||0;if(tr.test(b)){const{projection:j}=this.visualElement;if(j&&j.layout){const T=j.layout.layoutBox[S];T&&(b=pn(T)*(parseFloat(b)/100))}}this.originPoint[S]=b}),E&&Ge.postRender(()=>E(m,y)),gp(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(m,y)=>{const{dragPropagation:x,dragDirectionLock:N,onDirectionLock:E,onDrag:w}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:S}=y;if(N&&this.currentDirection===null){this.currentDirection=oD(S),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",y.point,S),this.updateAxis("y",y.point,S),this.visualElement.render(),w&&w(m,y)},d=(m,y)=>this.stop(m,y),h=()=>Sn(m=>{var y;return this.getAnimationState(m)==="paused"&&((y=this.getAxisMotionValue(m).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new aN(t,{onSessionStart:o,onStart:a,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:mN(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Ge.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Fc(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=K4(c,this.constraints[t],this.elastic[t])),a.set(c)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Vi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Y4(o.layoutBox,n):this.constraints=!1,this.elastic=Z4(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Sn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=J4(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vi(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=rD(r,o.root,this.visualElement.getTransformPagePoint());let c=Q4(o.layout.layoutBox,a);if(n){const d=n(eD(c));this.hasMutatedConstraints=!!d,d&&(c=dN(d))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=Sn(m=>{if(!Fc(m,n,this.currentDirection))return;let y=h&&h[m]||{};c&&(y={min:0,max:0});const x=o?200:1e6,N=o?40:1e7,E={type:"inertia",velocity:r?t[m]:0,bounceStiffness:x,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...a,...y};return this.startAxisValueAnimation(m,E)});return Promise.all(p).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gp(this.visualElement,t),r.start(Km(t,r,0,n,this.visualElement,!1))}stopAnimation(){Sn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Sn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Sn(n=>{const{drag:r}=this.getProps();if(!Fc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:d}=o.layout.layoutBox[n];a.set(t[n]-Je(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vi(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Sn(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();o[c]=X4({min:h,max:h},this.constraints[c])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Sn(c=>{if(!Fc(c,t,null))return;const d=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];d.set(Je(h,p,o[c]))})}addListeners(){if(!this.visualElement.current)return;sD.set(this.visualElement,this);const t=this.visualElement.current,n=Pa(t,"pointerdown",h=>{const{drag:p,dragListener:m=!0}=this.getProps();p&&m&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();Vi(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ge.read(r);const c=Wa(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(Sn(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=h[m].translate,y.set(y.get()+h[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),a(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:c=Cp,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:c,dragMomentum:d}}}function Fc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class aD extends ys{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new iD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qx=e=>(t,n)=>{e&&Ge.postRender(()=>e(t,n))};class lD extends ys{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new aN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Qx(t),onStart:Qx(n),onMove:r,onEnd:(a,c)=>{delete this.session,o&&Ge.postRender(()=>o(a,c))}}}mount(){this.removePointerDownListener=Pa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function cD(){const e=C.useContext(Lu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.useId();C.useEffect(()=>r(o),[]);const a=C.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,a]:[!0]}const ru={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ma={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ke.test(e))e=parseFloat(e);else return e;const n=Xx(e,t.target.x),r=Xx(e,t.target.y);return`${n}% ${r}%`}},uD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ps.parse(e);if(o.length>5)return r;const a=ps.createTransformer(e),c=typeof o[0]!="number"?1:0,d=n.x.scale*t.x,h=n.y.scale*t.y;o[0+c]/=d,o[1+c]/=h;const p=Je(d,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=p),typeof o[3+c]=="number"&&(o[3+c]/=p),a(o)}};class dD extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;h3(fD),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ru.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,c=r.projection;return c&&(c.isPresent=a,o||t.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?c.promote():c.relegate()||Ge.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Nm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gN(e){const[t,n]=cD(),r=C.useContext(ym);return u.jsx(dD,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(aS),isPresent:t,safeToRemove:n})}const fD={borderRadius:{...ma,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ma,borderTopRightRadius:ma,borderBottomLeftRadius:ma,borderBottomRightRadius:ma,boxShadow:uD};function hD(e,t,n){const r=Ft(e)?e:za(e);return r.start(Km("",r,t,n)),r.animation}function pD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const mD=(e,t)=>e.depth-t.depth;class gD{constructor(){this.children=[],this.isDirty=!1}add(t){Im(this.children,t),this.isDirty=!0}remove(t){Fm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mD),this.isDirty=!1,this.children.forEach(t)}}function yD(e,t){const n=nr.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(hs(r),e(a-t))};return Ge.read(r,!0),()=>hs(r)}const yN=["TopLeft","TopRight","BottomLeft","BottomRight"],vD=yN.length,Jx=e=>typeof e=="string"?parseFloat(e):e,Zx=e=>typeof e=="number"||ke.test(e);function xD(e,t,n,r,o,a){o?(e.opacity=Je(0,n.opacity!==void 0?n.opacity:1,wD(r)),e.opacityExit=Je(t.opacity!==void 0?t.opacity:1,0,bD(r))):a&&(e.opacity=Je(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let c=0;c<vD;c++){const d=`border${yN[c]}Radius`;let h=ew(t,d),p=ew(n,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Zx(h)===Zx(p)?(e[d]=Math.max(Je(Jx(h),Jx(p),r),0),(tr.test(p)||tr.test(h))&&(e[d]+="%")):e[d]=p}(t.rotate||n.rotate)&&(e.rotate=Je(t.rotate||0,n.rotate||0,r))}function ew(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wD=vN(0,.5,LS),bD=vN(.5,.95,dn);function vN(e,t,n){return r=>r<e?0:r>t?1:n(ao(e,t,r))}function tw(e,t){e.min=t.min,e.max=t.max}function bn(e,t){tw(e.x,t.x),tw(e.y,t.y)}function nw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rw(e,t,n,r,o){return e-=t,e=yu(e,1/n,r),o!==void 0&&(e=yu(e,1/o,r)),e}function SD(e,t=0,n=1,r=.5,o,a=e,c=e){if(tr.test(t)&&(t=parseFloat(t),t=Je(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=Je(a.min,a.max,r);e===a&&(d-=t),e.min=rw(e.min,t,n,d,o),e.max=rw(e.max,t,n,d,o)}function sw(e,t,[n,r,o],a,c){SD(e,t[n],t[r],t[o],t.scale,a,c)}const ND=["x","scaleX","originX"],CD=["y","scaleY","originY"];function iw(e,t,n,r){sw(e.x,t,ND,n?n.x:void 0,r?r.x:void 0),sw(e.y,t,CD,n?n.y:void 0,r?r.y:void 0)}function ow(e){return e.translate===0&&e.scale===1}function xN(e){return ow(e.x)&&ow(e.y)}function aw(e,t){return e.min===t.min&&e.max===t.max}function ED(e,t){return aw(e.x,t.x)&&aw(e.y,t.y)}function lw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wN(e,t){return lw(e.x,t.x)&&lw(e.y,t.y)}function cw(e){return pn(e.x)/pn(e.y)}function uw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class kD{constructor(){this.members=[]}add(t){Im(this.members,t),t.scheduleRender()}remove(t){if(Fm(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){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jD(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((o||a||c)&&(r=`translate3d(${o}px, ${a}px, ${c}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:m,rotateX:y,rotateY:x,skewX:N,skewY:E}=n;p&&(r=`perspective(${p}px) ${r}`),m&&(r+=`rotate(${m}deg) `),y&&(r+=`rotateX(${y}deg) `),x&&(r+=`rotateY(${x}deg) `),N&&(r+=`skewX(${N}deg) `),E&&(r+=`skewY(${E}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(r+=`scale(${d}, ${h}
353)`),r||"none"}const Ls={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ea=typeof window<"u"&&window.MotionDebug!==void 0,xh=["","X","Y","Z"],TD={visibility:"hidden"},dw=1e3;let _D=0;function wh(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_S(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ge,!(o||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bN(r)}function SN({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(c={},d=t==null?void 0:t()){this.id=_D++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ea&&(Ls.totalNodes=Ls.resolvedTargetDeltas=Ls.recalculatedProjection=0),this.nodes.forEach(AD),this.nodes.forEach(ID),this.nodes.forEach(FD),this.nodes.forEach(OD),Ea&&window.MotionDebug.record(Ls)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new gD)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Bm),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pD(c),this.instance=c;const{layoutId:h,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||h)&&(this.isLayoutDirty=!0),e){let y;const x=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=yD(x,250),ru.hasAnimatedSinceResize&&(ru.hasAnimatedSinceResize=!1,this.nodes.forEach(hw))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeTargetChanged:N,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||m.getDefaultTransition()||$D,{onLayoutAnimationStart:S,onLayoutAnimationComplete:b}=m.getProps(),j=!this.targetLayout||!wN(this.targetLayout,E)||N,T=!x&&N;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||x&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,T);const _={...Om(w,"layout"),onPlay:S,onComplete:b};(m.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else x||hw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,hs(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.forEac
vendor: 20,077 bytes, line 353
353h(BD),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fw);return}this.isUpdating||this.nodes.forEach(DD),this.isUpdating=!1,this.nodes.forEach(LD),this.nodes.forEach(PD),this.nodes.forEach(RD),this.clearAllSnapshots();const d=nr.now();Tt.delta=Cr(0,1e3/60,d-Tt.timestamp),Tt.timestamp=d,Tt.isProcessing=!0,uh.update.process(Tt),uh.preRender.process(Tt),uh.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(MD),this.sharedNodes.forEach(VD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!xN(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;c&&(d||Ds(this.latestValues)||m)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),WD(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return ot();const h=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(HD))){const{scroll:m}=this.root;m&&($i(h.x,m.offset.x),$i(h.y,m.offset.y))}return h}removeElementScroll(c){var d;const h=ot();if(bn(h,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let p=0;p<this.path.length;p++){const m=this.path[p],{scroll:y,options:x}=m;m!==this.root&&y&&x.layoutScroll&&(y.wasRoot&&bn(h,c),$i(h.x,y.offset.x),$i(h.y,y.offset.y))}return h}applyTransform(c,d=!1){const h=ot();bn(h,c);for(let p=0;p<this.path.length;p++){const m=this.path[p];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Wi(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ds(m.latestValues)&&Wi(h,m.latestValues)}return Ds(this.latestValues)&&Wi(h,this.latestValues),h}removeTransform(c){const d=ot();bn(d,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!Ds(p.latestValues))continue;Ep(p.latestValues)&&p.updateSnapshot();const m=ot(),y=p.measurePageBox();bn(m,y),iw(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,m)}return Ds(this.latestValues)&&iw(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=Tt.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),Aa(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),bn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ot(),this.targetWithTransforms=ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),G4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):bn(this.target,this.layout.layoutBox),hN(this.target,this.targetDelta)):bn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const N=this.getClosestProjectingParent();N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),Aa(this.relativeTargetOrigin,this.target,N.target),bn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ea&&Ls.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ep(this.parent.latestValues)||fN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(p=!1),p)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;bn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,N=this.treeScale.y;nD(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ot());const{target:E}=d;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(nw(this.prevProjectionDelta.x,this.projectionDelta.x),nw(this.prevProjectionDelta.y,this.projectionDelta.y)),Ra(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==N||!uw(this.projectionDelta.x,this.prevProjectionDelta.x)||!uw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),Ea&&Ls.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zi(),this.projectionDelta=zi(),this.projectionDeltaWithTransform=zi()}setAnimationOrigin(c,d=!1){const h=this.snapshot,p=h?h.latestValues:{},m={...this.latestValues},y=zi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const x=ot(),N=h?h.source:void 0,E=this.layout?this.layout.source:void 0,w=N!==E,S=this.getStack(),b=!S||S.members.length<=1,j=!!(w&&!b&&this.options.crossfade===!0&&!this.path.some(zD));this.animationProgress=0;let T;this.mixTargetDelta=_=>{const R=_/1e3;pw(y.x,c.x,R),pw(y.y,c.y,R),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Aa(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UD(this.relativeTarget,this.relativeTargetOrigin,x,R),T&&ED(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=ot()),bn(T,this.relativeTarget)),w&&(this.animationValues=m,xD(m,p,this.latestValues,R,j,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(hs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{ru.hasAnimatedSinceResize=!0,this.currentAnimation=hD(0,dw,{...c,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:m}=c;if(!(!d||!h||!p)){if(this!==c&&this.layout&&p&&NN(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||ot();const y=pn(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const x=pn(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+x}bn(d,h),Wi(d,m),Ra(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new kD),this.sharedNodes.get(c).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:d}=this.options;return d?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:d}=this.options;return d?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&wh("z",c,p,this.animationValues);for(let m=0;m<xh.length;m++)wh(`rotate${xh[m]}`,c,p,this.animationValues),wh(`skew${xh[m]}`,c,p,this.animationValues);c.render();for(const m in p)c.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);c.scheduleRender()}getProjectionStyles(c){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return TD;const p={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=tu(c==null?void 0:c.pointerEvents)||"",p.transform=m?m(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=tu(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Ds(this.latestValues)&&(w.transform=m?m({},""):"none",this.hasProjected=!1),w}const x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=jD(this.projectionDeltaWithTransform,this.treeScale,x),m&&(p.transform=m(x,p.transform));const{x:N,y:E}=this.projectionDelta;p.transformOrigin=`${N.origin*100}% ${E.origin*100}% 0`,y.animationValues?p.opacity=y===this?(h=(d=x.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:p.opacity=y===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const w in fu){if(x[w]===void 0)continue;const{correct:S,applyTo:b}=fu[w],j=p.transform==="none"?x[w]:S(x[w],y);if(b){const T=b.length;for(let _=0;_<T;_++)p[b[_]]=j}else p[w]=j}return this.options.layoutId&&(p.pointerEvents=y===this?tu(c==null?void 0:c.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(fw),this.root.sharedNodes.clear()}}}function PD(e){e.updateLayout()}function RD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:a}=e.options,c=n.source!==e.layout.source;a==="size"?Sn(y=>{const x=c?n.measuredBox[y]:n.layoutBox[y],N=pn(x);x.min=r[y].min,x.max=x.min+N}):NN(a,n.layoutBox,r)&&Sn(y=>{const x=c?n.measuredBox[y]:n.layoutBox[y],N=pn(r[y]);x.max=x.min+N,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+N)});const d=zi();Ra(d,r,n.layoutBox);const h=zi();c?Ra(h,e.applyTransform(o,!0),n.measuredBox):Ra(h,r,n.layoutBox);const p=!xN(d);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:N}=y;if(x&&N){const E=ot();Aa(E,n.layoutBox,x.layoutBox);const w=ot();Aa(w,r,N.layoutBox),wN(E,w)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=E,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function AD(e){Ea&&Ls.totalNodes++,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 OD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function MD(e){e.clearSnapshot()}function fw(e){e.clearMeasurements()}function DD(e){e.isLayoutDirty=!1}function LD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ID(e){e.resolveTargetDelta()}function FD(e){e.calcProjection()}function BD(e){e.resetSkewAndRotation()}function VD(e){e.removeLeadSnapshot()}function pw(e,t,n){e.translate=Je(t.translate,0,n),e.scale=Je(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mw(e,t,n,r){e.min=Je(t.min,n.min,r),e.max=Je(t.max,n.max,r)}function UD(e,t,n,r){mw(e.x,t.x,n.x,r),mw(e.y,t.y,n.y,r)}function zD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $D={duration:.45,ease:[.4,0,.1,1]},gw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yw=gw("applewebkit/")&&!gw("chrome/")?Math.round:dn;function vw(e){e.min=yw(e.min),e.max=yw(e.max)}function WD(e){vw(e.x),vw(e.y)}function NN(e,t,n){return e==="position"||e==="preserve-aspect"&&!q4(cw(t),cw(n),.2)}function HD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const qD=SN({attachResizeListener:(e,t)=>Wa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bh={current:void 0},CN=SN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bh.current){const e=new qD({});e.mount(window),e.setOptions({layoutScroll:!0}),bh.current=e}return bh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),GD={pan:{Feature:lD},drag:{Feature:aD,ProjectionNode:CN,MeasureLayout:gN}};function xw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=r[o];a&&Ge.postRender(()=>a(t,pl(t)))}class KD extends ys{mount(){const{current:t}=this.node;t&&(this.unmount=H3(t,n=>(xw(this.node,n,"Start"),r=>xw(this.node,r,"End"))))}unmount(){}}class YD extends ys{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hl(Wa(this.node.current,"focus",()=>this.onFocus()),Wa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ww(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=r[o];a&&Ge.postRender(()=>a(t,pl(t)))}class QD extends ys{mount(){const{current:t}=this.node;t&&(this.unmount=Y3(t,n=>(ww(this.node,n,"Start"),(r,{success:o})=>ww(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const jp=new WeakMap,Sh=new WeakMap,XD=e=>{const t=jp.get(e.target);t&&t(e)},JD=e=>{e.forEach(XD)};function ZD({root:e,...t}){const n=e||document;Sh.has(n)||Sh.set(n,{});const r=Sh.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(JD,{root:e,...t})),r[o]}
vendor: 4,196 bytes, line 353
353function eL(e,t,n){const r=ZD(t);return jp.set(e,n),r.observe(e),()=>{jp.delete(e),r.unobserve(e)}}const tL={some:0,all:1};class nL extends ys{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:tL[o]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,a&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),x=p?m:y;x&&x(h)};return eL(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rL(t,n))&&this.startObserver()}unmount(){}}function rL({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const sL={inView:{Feature:nL},tap:{Feature:QD},focus:{Feature:YD},hover:{Feature:KD}},iL={layout:{ProjectionNode:CN,MeasureLayout:gN}},Tp={current:null},EN={current:!1};function oL(){if(EN.current=!0,!!xm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Tp.current=e.matches;e.addListener(t),t()}else Tp.current=!1}function aL(e,t,n){for(const r in t){const o=t[r],a=n[r];if(Ft(o))e.addValue(r,o);else if(Ft(a))e.addValue(r,za(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(r);e.addValue(r,za(c!==void 0?c:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bw=new WeakMap,lL=[...zS,It,ps],cL=e=>lL.find(US(e)),Sw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uL{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:a,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 x=nr.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ge.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!a,this.isControllingVariants=Bu(n),this.isVariantNode=iS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in y){const N=y[x];h[x]!==void 0&&Ft(N)&&N.set(h[x],!1)}}mount(t){this.current=t,bw.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)),EN.current||oL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bw.delete(this.current),this.projection&&this.projection.unmount(),hs(this.notifyUpdate),hs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];
vendor: 4,548 bytes, line 353
353n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ai.has(t),o=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a(),c&&c(),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 lo){const n=lo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ot()}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<Sw.length;r++){const o=Sw[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,c=t[a];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=aL(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=za(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(BS(o)||FS(o))?o=parseFloat(o):!cL(o)&&ps.test(n)&&(o=QS(t,n)),this.setBaseTarget(t,Ft(o)?o.get():o)),Ft(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const c=km(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[t])}if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ft(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class kN extends uL{constructor(){super(...arguments),this.KeyframeResolver=XS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[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;Ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function dL(e){return window.getComputedStyle(e)}class fL extends kN{constructor(){super(...arguments),this.type="html",this.renderInstance=cS}readValueFromInstance(t,n){if(ai.has(n)){const r=Hm(n);return r&&r.default||0}else{const r=dL(t),o=(vS(n)?r.getPropertyValue(n):r[n])||0;
353return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pN(t,n)}build(t,n,r){Pm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Em(t,n,r)}}class hL extends kN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ot}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ai.has(n)){const r=Hm(n);return r&&r.default||0}return n=uS.has(n)?n:Sm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hS(t,n,r)}build(t,n,r){Rm(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){dS(t,n,r,o)}mount(t){this.isSVGTag=Am(t.tagName),super.mount(t)}}const pL=(e,t)=>Cm(e)?new hL(t):new fL(t,{allowProjection:e!==C.Fragment}),mL=F3({...I4,...sL,...GD,...iL},pL),K=e3(mL);function Nt(e){return"/"+e.replace(/ /g,"-")}function Ze({children:e,href:t,page:n,variant:r="primary",size:o="default",icon:a=!0,className:c="",onClick:d}){const h="inline-flex items-center justify-center gap-2 font-semibold rounded-full transition-all duration-300",p={primary:"bg-gradient-to-r from-blue-600 to-blue-700 text-white hover:shadow-lg hover:shadow-blue-200 hover:from-blue-700 hover:to-blue-800",secondary:"bg-white text-blue-700 hover:bg-gray-50 shadow-sm border border-gray-200",outline:"border-2 border-blue-600 text-blue-700 hover:bg-blue-50",yellow:"bg-gradient-to-r from-yellow-400 to-yellow-500 text-black hover:shadow-lg hover:shadow-yellow-200 font-bold",ghost:"text-blue-700 hover:bg-blue-50",white:"bg-white text-gray-900 hover:bg-gray-100 shadow-lg"},m={small:"px-4 py-2 text-sm",default:"px-6 py-3 text-sm",large:"px-8 py-4 text-base"},y=`${h} ${p[r]} ${m[o]} ${c}`,x=u.jsxs(u.Fragment,{children:[e,a&&u.jsx(Oa,{className:"w-4 h-4"})]});return d?u.jsx("button",{onClick:d,className:y,children:x}):n?u.jsx(St,{to:Nt(n),className:y,children:x}):t?u.jsx("a",{href:t,className:y,children:x}):u.jsx("button",{className:y,children:x})}function gL(){const e=[{icon:tl,title:"Integrity",description:"Operating with transparency, honesty, and ethical standards in all we do."},{icon:Sb,title:"Collaboration",description:"Working together with partners to achieve shared goals and greater impact."},{icon:ku,title:"Sustainability",description:"Building long-term capacity for enduring positive change."},{icon:yb,title:"Accountability",description:"Taking responsibility for our actions and delivering on commitments."},{icon:Nr,title:"Community Impact",description:"Prioritizing the well-being and empowerment of Barbadian communities."}],t=[{year:"1997",event:"BANGO established as national umbrella body"},{year:"2005",event:"Launched first NGO capacity building program"},{year:"2010",event:"Achieved 100+ member organizations"},{year:"2015",event:"Introduced digital training platform"},{year:"2020",event:"Supported NGOs through COVID-19 pandemic"},{year:"2024",event:"Celebrating 25+ years of service"}],n=[{name:"Dr. Patricia Harris",role:"Executive Director",image:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=400&q=80"},{name:"Michael Thompson",role:"Board Chair",image:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=400&q=80"},{name:"Samantha Williams",role:"Programs Director",image:"https://images.unsplash.com/photo-1580489944761-15a19d654956?w=400&q=80"}];return u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-blue-800 to-blue-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-6",children:"About BANGO"}),u.jsx(K.h1,{initial:{opacity:0,y:20}
353,animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"The Voice of Barbados' NGO Sector"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"For over 25 years, BANGO has been uniting, supporting, and advocating for non-governmental organizations working to build a stronger Barbados."})]})]}),u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[u.jsxs(K.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-3xl p-8 sm:p-10",children:[u.jsx("div",{className:"w-16 h-16 bg-blue-600 rounded-2xl flex items-center justify-center mb-6",children:u.jsx(Oj,{className:"w-8 h-8 text-white"})}),u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Our Mission"}),u.jsx("p",{className:"text-gray-700 text-lg leading-relaxed",children:"To strengthen and support non-governmental organizations in Barbados through advocacy, capacity building, and collaboration, enabling them to effectively serve communities and contribute to national development."})]}),u.jsxs(K.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-gradient-to-br from-yellow-50 to-yellow-100 rounded-3xl p-8 sm:p-10",children:[u.jsx("div",{className:"w-16 h-16 bg-yellow-500 rounded-2xl flex items-center justify-center mb-6",children:u.jsx(Gk,{className:"w-8 h-8 text-white"})}),u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Our Vision"}),u.jsx("p",{className:"text-gray-700 text-lg leading-relaxed",children:"A resilient, well-governed, and sustainable NGO sector that plays a vital role in shaping an inclusive, prosperous, and equitable Barbados where all citizens thrive."})]})]})})}),u.jsx("section",{className:"py-20 sm:py-28 bg-gray-50",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-blue-100 text-blue-700 mb-4",children:"Our Role"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"The National Umbrella Body for NGOs"}),u.jsx("p",{className:"text-lg text-gray-600 mb-6 leading-relaxed",children:"As Barbados' premier NGO support organization, BANGO serves as the bridge between civil society and key stakeholders including government, donors, and international partners."}),u.jsx("ul",{className:"space-y-4",children:["Representing NGOs in national policy discussions","Facilitating access to funding and resources","Building partnerships with government and donors","Connecting local NGOs with international networks","Advocating for favorable operating environment"].map((r,o)=>u.jsxs(K.li,{initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex items-start gap-3",children:[u.jsx(Sr,{className:"w-6 h-6 text-blue-600 flex-shrink-0 mt-0.5"}),u.jsx("span",{className:"text-gray-700",children:r})]},o))})]}),u.jsxs(K.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"relative",children:[u.jsx("img",{src:"https://images.unsplash.com/photo-1517048676732-d65bc937f952?w=800&q=80",alt:"Team collaboration",className:"rounded-3xl shadow-2xl"}),u.jsx("div",{className:"absolute -bottom-6 -left-6 bg-white rounded-2xl p-6 shadow-xl",children:u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-full flex items-center justify-center",children:u.jsx(hn,{className:"w-7 h-7 text-blue-600"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-3xl font-bold text-gray-900",children:"150+"}),u.jsx("div",{className:"text-gray-500 text-sm",children:"Member NGOs"})]})]})})]})]})})}),u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-yellow-100 text-yellow-800 mb
353-4",children:"Our Values"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"The Principles That Guide Us"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Our values shape every aspect of our work and define how we serve the NGO community."})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((r,o)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gray-50 rounded-2xl p-8 hover:bg-gradient-to-br hover:from-blue-50 hover:to-yellow-50 transition-colors duration-300",children:[u.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-xl flex items-center justify-center mb-6",children:u.jsx(r.icon,{className:"w-7 h-7 text-blue-600"})}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:r.title}),u.jsx("p",{className:"text-gray-600",children:r.description})]},r.title))})]})}),u.jsx("section",{className:"py-20 sm:py-28 bg-gradient-to-br from-blue-800 to-blue-900",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-4",children:"Our Journey"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"25+ Years of Service"}),u.jsx("p",{className:"text-lg text-white/80 max-w-2xl mx-auto",children:"From our founding to today, BANGO has been at the forefront of NGO development in Barbados."})]}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute left-1/2 top-0 bottom-0 w-0.5 bg-white/20 hidden md:block"}),u.jsx("div",{className:"space-y-8",children:t.map((r,o)=>u.jsxs(K.div,{initial:{opacity:0,x:o%2===0?-30:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:`flex items-center gap-8 ${o%2===0?"md:flex-row":"md:flex-row-reverse"}`,children:[u.jsx("div",{className:`flex-1 ${o%2===0?"md:text-right":"md:text-left"}`,children:u.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 inline-block",children:[u.jsx("div",{className:"text-yellow-400 font-bold text-2xl mb-2",children:r.year}),u.jsx("p",{className:"text-white",children:r.event})]})}),u.jsx("div",{className:"w-4 h-4 bg-yellow-400 rounded-full flex-shrink-0 hidden md:block"}),u.jsx("div",{className:"flex-1"})]},r.year))})]})]})}),u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-blue-100 text-blue-700 mb-4",children:"Leadership"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Meet Our Team"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Dedicated professionals committed to strengthening Barbados' NGO sector."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:n.map((r,o)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"text-center group hidden",children:[u.jsx("div",{className:"relative mb-6 inline-block",children:u.jsx("img",{src:r.image,alt:r.name,className:"w-48 h-48 rounded-full object-cover mx-auto shadow-lg group-hover:shadow-xl transition-shadow"})}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-1",children:r.name}),u.jsx("p",{className:"text-blue-600 font-medium",children:r.role})]},r.name))})]})}),u.jsx("section",{className:"py-20 bg-gradient-to-r from-yellow-400 to-yellow-500",children:u.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-black mb-6",children:"Join the Movement"}),u.jsx("p",{className:"text-xl text-black/80 mb-8",children:"Become a member of BANGO and be part of strengthening civil society in Barbados."}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[u.jsx(Ze,{page:"Membership",variant:"white",size:"large",children:"Become a Member"}),u.jsx(Ze,{page:"Contact",variant:"ghost",size:"large",className:"text-black border-black/30 hover:bg-black/10",children:"Get in Touch"})]})]})})]})}const at=C.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:Rt("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}));at.displayName="Input";function Nw(e,t){if(typeof e=="function")return e(t);
vendor: 43,676 bytes, line 353
353e!=null&&(e.current=t)}function jN(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Nw(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Nw(e[o],null)}}}}function At(...e){return C.useCallback(jN(...e),e)}function Ha(e){const t=vL(e),n=C.forwardRef((r,o)=>{const{children:a,...c}=r,d=C.Children.toArray(a),h=d.find(wL);if(h){const p=h.props.children,m=d.map(y=>y===h?C.Children.count(p)>1?C.Children.only(null):C.isValidElement(p)?p.props.children:null:y);return u.jsx(t,{...c,ref:o,children:C.isValidElement(p)?C.cloneElement(p,void 0,m):null})}return u.jsx(t,{...c,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var yL=Ha("Slot");function vL(e){const t=C.forwardRef((n,r)=>{const{children:o,...a}=n;if(C.isValidElement(o)){const c=SL(o),d=bL(a,o.props);return o.type!==C.Fragment&&(d.ref=r?jN(r,c):c),C.cloneElement(o,d)}return C.Children.count(o)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xL=Symbol("radix.slottable");function wL(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xL}function bL(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...d)=>{const h=a(...d);return o(...d),h}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function SL(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const NL=Hp("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",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Wt=C.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const c=r?yL:"button";return u.jsx(c,{className:Rt(NL({variant:t,size:n,className:e})),ref:a,...o})});Wt.displayName="Button";var CL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rt=CL.reduce((e,t)=>{const n=Ha(`Primitive.${t}`),r=C.forwardRef((o,a)=>{const{asChild:c,...d}=o,h=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(h,{...d,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function EL(e,t){e&&sl.flushSync(()=>e.dispatchEvent(t))}var kL="Label",TN=C.forwardRef((e,t)=>u.jsx(rt.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));TN.displayName=kL;var _N=TN;const jL=Hp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ye=C.forwardRef(({className:e,...t},n)=>u.jsx(_N,{ref:n,className:Rt(jL(),e),...t}));Ye.displayName=_N.displayName;const zu=C.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:Rt("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}));zu.displayName="Textarea";function Cw(e,[t,n]){return Math.min(n,Math.max(t,e))}function ut(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ym(e,t=[]){let n=[];function r(a,c){const d=C.createContext(c),h=n.length;n=[...n,c];const p=y=>{var b;const{scope:x,children:N,...E}=y,w=((b=x==null?void 0:x[e])==null?void 0:b[h])||d,S=C.useMemo(()=>E,Object.values(E));return u.jsx(w.Provider,{value:S,children:N})};p.displayName=a+"Provider";function m(y,x){var w;const N=((w=x==null?void 0:x[e])==null?void 0:w[h])||d,E=C.useContext(N);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${a}\``)}return[p,m]}const o=()=>{const a=n.map(c=>C.createContext(c));return function(d){const h=(d==null?void 0:d[e])||a;return C.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return o.scopeName=e,[r,TL(o,...t)]}function TL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((d,{useScope:h,scopeName:p})=>{const y=h(a)[`__scope${p}`];return{...d,...y}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function _L(e){const t=e+"CollectionProvider",[n,r]=Ym(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=w=>{const{scope:S,children:b}=w,j=cn.useRef(null),T=cn.useRef(new Map).current;return u.jsx(o,{scope:S,itemMap:T,collectionRef:j,children:b})};c.displayName=t;const d=e+"CollectionSlot",h=Ha(d),p=cn.forwardRef((w,S)=>{const{scope:b,children:j}=w,T=a(d,b),_=At(S,T.collectionRef);return u.jsx(h,{ref:_,children:j})});p.displayName=d;const m=e+"CollectionItemSlot",y="data-radix-collection-item",x=Ha(m),N=cn.forwardRef((w,S)=>{const{scope:b,children:j,...T}=w,_=cn.useRef(null),R=At(S,_),U=a(m,b);return cn.useEffect(()=>(U.itemMap.set(_,{ref:_,...T}),()=>void U.itemMap.delete(_))),u.jsx(x,{[y]:"",ref:R,children:j})});N.displayName=m;function E(w){const S=a(e+"CollectionConsumer",w);return cn.useCallback(()=>{const j=S.collectionRef.current;if(!j)return[];const T=Array.from(j.querySelectorAll(`[${y}]`));return Array.from(S.itemMap.values()).sort((U,$)=>T.indexOf(U.ref.current)-T.indexOf($.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:c,Slot:p,ItemSlot:N},E,r]}var PL=C.createContext(void 0);function RL(e){const t=C.useContext(PL);return e||t||"ltr"}function ti(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function AL(e,t=globalThis==null?void 0:globalThis.document){const n=ti(e);C.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var OL="DismissableLayer",_p="dismissableLayer.update",ML="dismissableLayer.pointerDownOutside",DL="dismissableLayer.focusOutside",Ew,PN=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),RN=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:d,...h}=e,p=C.useContext(PN),[m,y]=C.useState(null),x=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=C.useState({}),E=At(t,$=>y($)),w=Array.from(p.layers),[S]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(S),j=m?w.indexOf(m):-1,T=p.layersWithOutsidePointerEventsDisabled.size>0,_=j>=b,R=FL($=>{const B=$.target,ne=[...p.branches].some(G=>G.contains(B));!_||ne||(o==null||o($),c==null||c($),$.defaultPrevented||d==null||d())},x),U=BL($=>{const B=$.target;[...p.branches].some(G=>G.contains(B))||(a==null||a($),c==null||c($),$.defaultPrevented||d==null||d())},x);return AL($=>{j===p.layers.size-1&&(r==null||r($),!$.defaultPrevented&&d&&($.preventDefault(),d()))},x),C.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ew=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),kw(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ew)}},[m,x,n,p]),C.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),kw())},[m,p]),C.useEffect(()=>{const $=()=>N({});return document.addEventListener(_p,$),()=>document.removeEventListener(_p,$)},[]),u.jsx(rt.div,{...h,ref:E,style:{pointerEvents:T?_?"auto":"none":void 0,...e.style},onFocusCapture:ut(e.onFocusCapture,U.onFocusCapture),onBlurCapture:ut(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:ut(e.onPointerDownCapture,R.onPointerDownCapture)})});RN.displayName=OL;var LL="DismissableLayerBranch",IL=C.forwardRef((e,t)=>{const n=C.useContext(PN),r=C.useRef(null),o=At(t,r);return C.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(rt.div,{...e,ref:o})});IL.displayName=LL;function FL(e,t=globalThis==null?void 0:globalThis.document){const n=ti(e),r=C.useRef(!1),o=C.useRef(()=>{});return C.useEffect(()=>{const a=d=>{if(d.target&&!r.current){let h=function(){AN(ML,n,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function BL(e,t=globalThis==null?void 0:globalThis.document){const n=ti(e),r=C.useRef(!1);return C.useEffect(()=>{const o=a=>{a.target&&!r.current&&AN(DL,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kw(){const e=new CustomEvent(_p);document.dispatchEvent(e)}function AN(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?EL(o,a):o.dispatchEvent(a)}var Nh=0;function VL(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jw()),document.body.insertAdjacentElement("beforeend",e[1]??jw()),Nh++,()=>{Nh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nh--}},[])}function jw(){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 Ch="focusScope.autoFocusOnMount",Eh="focusScope.autoFocusOnUnmount",Tw={bubbles:!1,cancelable:!0},UL="FocusScope",ON=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[d,h]=C.useState(null),p=ti(o),m=ti(a),y=C.useRef(null),x=At(t,w=>h(w)),N=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let w=function(T){if(N.paused||!d)return;const _=T.target;d.contains(_)?y.current=_:Jr(y.current,{select:!0})},S=function(T){if(N.paused||!d)return;const _=T.relatedTarget;_!==null&&(d.contains(_)||Jr(y.current,{select:!0}))},b=function(T){if(document.activeElement===document.body)for(const R of T)R.removedNodes.length>0&&Jr(d)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const j=new MutationObserver(b);return d&&j.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),j.disconnect()}}},[r,d,N.paused]),C.useEffect(()=>{if(d){Pw.add(N);const w=document.activeElement;if(!d.contains(w)){const b=new CustomEvent(Ch,Tw);d.addEventListener(Ch,p),d.dispatchEvent(b),b.defaultPrevented||(zL(GL(MN(d)),{select:!0}),document.activeElement===w&&Jr(d))}return()=>{d.removeEventListener(Ch,p),setTimeout(()=>{const b=new CustomEvent(Eh,Tw);d.addEventListener(Eh,m),d.dispatchEvent(b),b.defaultPrevented||Jr(w??document.body,{select:!0}),d.removeEventListener(Eh,m),Pw.remove(N)},0)}}},[d,p,m,N]);const E=C.useCallback(w=>{if(!n&&!r||N.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,b=document.activeElement;if(S&&b){const j=w.currentTarget,[T,_]=$L(j);T&&_?!w.shiftKey&&b===_?(w.preventDefault(),n&&Jr(T,{select:!0})):w.shiftKey&&b===T&&(w.preventDefault(),n&&Jr(_,{select:!0})):b===j&&w.preventDefault()}},[n,r,N.paused]);return u.jsx(rt.div,{tabIndex:-1,...c,ref:x,onKeyDown:E})});ON.displayName=UL;function zL(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jr(r,{select:t}),document.activeElement!==n)return}function $L(e){const t=MN(e),n=_w(t,e),r=_w(t.reverse(),e);return[n,r]}function MN(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _w(e,t){for(const n of e)if(!WL(n,{upTo:t}))return n}function WL(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 HL(e){return e instanceof HTMLInputElement&&"select"in e}function Jr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&HL(e)&&t&&e.select()}}var Pw=qL();function qL(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rw(e,t),e.unshift(t)},remove(t){var n;e=Rw(e,t),(n=e[0])==null||n.resume()}}}function Rw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function GL(e){return e.filter(t=>t.tagName!=="A")}var rn=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},KL=Wp[" useId ".trim().toString()]||(()=>{}),YL=0;function Qm(e){const[t,n]=C.useState(KL());return rn(()=>{n(r=>r??String(YL++))},[e]),t?`radix-${t}`:""}const QL=["top","right","bottom","left"],ms=Math.min,un=Math.max,vu=Math.round,Bc=Math.floor,rr=e=>({x:e,y:e}),XL={left:"right",right:"left",bottom:"top",top:"bottom"},JL={start:"end",end:"start"};function Pp(e,t,n){return un(e,ms(t,n))}function Er(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function wo(e){return e.split("-")[1]}function Xm(e){return e==="x"?"y":"x"}function Jm(e){return e==="y"?"height":"width"}const ZL=new Set(["top","bottom"]);function Zn(e){return ZL.has(kr(e))?"y":"x"}function Zm(e){return Xm(Zn(e))}function e5(e,t,n){n===void 0&&(n=!1);const r=wo(e),o=Zm(e),a=Jm(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=xu(c)),[c,xu(c)]}function t5(e){const t=xu(e);return[Rp(e),t,Rp(t)]}function Rp(e){return e.replace(/start|end/g,t=>JL[t])}const Aw=["left","right"],Ow=["right","left"],n5=["top","bottom"],r5=["bottom","top"];function s5(e,t,n){switch(e){case"top":case"bottom":return n?t?Ow:Aw:t?Aw:Ow;case"left":case"right":return t?n5:r5;default:return[]}}function i5(e,t,n,r){const o=wo(e);let a=s5(kr(e),n==="start",r);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Rp)))),a}function xu(e){return e.replace(/left|right|bottom|top/g,t=>XL[t])}function o5(e){return{top:0,right:0,bottom:0,left:0,...e}}function DN(e){return typeof e!="number"?o5(e):{top:e,right:e,bottom:e,left:e}}function wu(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Mw(e,t,n){let{reference:r,floating:o}=e;const a=Zn(t),c=Zm(t),d=Jm(c),h=kr(t),p=a==="y",m=r.x+r.width/2-o.width/2,y=r.y+r.height/2-o.height/2,x=r[d]/2-o[d]/2;let N;switch(h){case"top":N={x:m,y:r.y-o.height};break;case"bottom":N={x:m,y:r.y+r.height};break;case"right":N={x:r.x+r.width,y};break;case"left":N={x:r.x-o.width,y};break;default:N={x:r.x,y:r.y}}switch(wo(t)){case"start":N[c]-=x*(n&&p?-1:1);break;case"end":N[c]+=x*(n&&p?-1:1);break}return N}const a5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:c}=n,d=a.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y}=Mw(p,r,h),x=r,N={},E=0;for(let w=0;w<d.length;w++){const{name:S,fn:b}=d[w],{x:j,y:T,data:_,reset:R}=await b({x:m,y,initialPlacement:r,placement:x,strategy:o,middlewareData:N,rects:p,platform:c,elements:{reference:e,floating:t}});m=j??m,y=T??y,N={...N,[S]:{...N[S],..._}},R&&E<=50&&(E++,typeof R=="object"&&(R.placement&&(x=R.placement),R.rects&&(p=R.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:m,y}=Mw(p,x,h)),w=-1)}return{x:m,y,placement:x,strategy:o,middlewareData:N}};async function qa(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:c,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:x=!1,padding:N=0}=Er(t,e),E=DN(N),S=d[x?y==="floating"?"reference":"floating":y],b=wu(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(S)))==null||n?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),j=y==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),_=await(a.isElement==null?void 0:a.isElement(T))?await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1}:{x:1,y:1},R=wu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:j,offsetParent:T,strategy:h}):j);return{top:(b.top-R.top+E.top)/_.y,bottom:(R.bottom-b.bottom+E.bottom)/_.y,left:(b.left-R.left+E.left)/_.x,right:(R.right-b.right+E.right)/_.x}}const l5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:c,elements:d,middlewareData:h}=t,{element:p,padding:m=0}=Er(e,t)||{};if(p==null)return{};const y=DN(m),x={x:n,y:r},N=Zm(o),E=Jm(N),w=await c.getDimensions(p),S=N==="y",b=S?"top":"left",j=S?"bottom":"right",T=S?"clientHeight":"clientWidth",_=a.reference[E]+a.reference[N]-x[N]-a.floating[E],R=x[N]-a.reference[N],U=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let $=U?U[T]:0;(!$||!await(c.isElement==null?void 0:c.isElement(U)))&&($=d.floating[T]||a.floating[E]);const B=_/2-R/2,ne=$/2-w[E]/2-1,G=ms(y[b],ne),Z=ms(y[j],ne),ge=G,xe=$-w[E]-Z,ye=$/2-w[E]/2+B,Pe=Pp(ge,ye,xe),le=!h.arrow&&wo(o)!=null&&ye!==Pe&&a.reference[E]/2-(ye<ge?G:Z)-w[E]/2<0,re=le?ye<ge?ye-ge:ye-xe:0;return{[N]:x[N]+re,data:{[N]:Pe,centerOffset:ye-Pe-re,...le&&{alignmentOffset:re}},reset:le}}}),c5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:c,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...S}=Er(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=kr(o),j=Zn(d),T=kr(d)===d,_=await(h.isRTL==null?void 0:h.isRTL(p.floating)),R=x||(T||!w?[xu(d)]:t5(d)),U=E!=="none";!x&&U&&R.push(...i5(d,w,E,_));const $=[d,...R],B=await qa(t,S),ne=[];let G=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&ne.push(B[b]),y){const ye=e5(o,c,_);ne.push(B[ye[0]],B[ye[1]])}if(G=[...G,{placement:o,overflows:ne}],!ne.every(ye=>ye<=0)){var Z,ge;const ye=(((Z=a.flip)==null?void 0:Z.index)||0)+1,Pe=$[ye];if(Pe&&(!(y==="alignment"?j!==Zn(Pe):!1)||G.every(L=>Zn(L.placement)===j?L.overflows[0]>0:!0)))return{data:{index:ye,overflows:G},reset:{placement:Pe}};let le=(ge=G.filter(re=>re.overflows[0]<=0).sort((re,L)=>re.overflows[1]-L.overflows[1])[0])==null?void 0:ge.placement;if(!le)switch(N){case"bestFit":{var xe;const re=(xe=G.filter(L=>{if(U){const ee=Zn(L.placement);return ee===j||ee==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(ee=>ee>0).reduce((ee,Y)=>ee+Y,0)]).sort((L,ee)=>L[1]-ee[1])[0])==null?void 0:xe[0];re&&(le=re);break}case"initialPlacement":le=d;break}if(o!==le)return{reset:{placement:le}}}return{}}}};function Dw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lw(e){return QL.some(t=>e[t]>=0)}const u5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Er(e,t);switch(r){case"referenceHidden":{const a=await qa(t,{...o,elementContext:"reference"}),c=Dw(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Lw(c)}}}case"escaped":{const a=await qa(t,{...o,altBoundary:!0}),c=Dw(a,n.floating);return{data:{escapedOffsets:c,escaped:Lw(c)}}}default:return{}}}}},LN=new Set(["left","top"]);async function d5(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=kr(n),d=wo(n),h=Zn(n)==="y",p=LN.has(c)?-1:1,m=a&&h?-1:1,y=Er(t,e);let{mainAxis:x,crossAxis:N,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof E=="number"&&(N=d==="end"?E*-1:E),h?{x:N*m,y:x*p}:{x:x*p,y:N*m}}const f5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:c,middlewareData:d}=t,h=await d5(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:a+h.y,data:{...h,placement:c}}}}},h5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:d={fn:S=>{let{x:b,y:j}=S;return{x:b,y:j}}},...h}=Er(e,t),p={x:n,y:r},m=await qa(t,h),y=Zn(kr(o)),x=Xm(y);let N=p[x],E=p[y];if(a){const S=x==="y"?"top":"left",b=x==="y"?"bottom":"right",j=N+m[S],T=N-m[b];N=Pp(j,N,T)}if(c){const S=y==="y"?"top":"left",b=y==="y"?"bottom":"right",j=E+m[S],T=E-m[b];E=Pp(j,E,T)}const w=d.fn({...t,[x]:N,[y]:E});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[x]:a,[y]:c}}}}}},p5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=Er(e,t),m={x:n,y:r},y=Zn(o),x=Xm(y);let N=m[x],E=m[y];const w=Er(d,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(h){const T=x==="y"?"height":"width",_=a.reference[x]-a.floating[T]+S.mainAxis,R=a.reference[x]+a.reference[T]-S.mainAxis;N<_?N=_:N>R&&(N=R)}if(p){var b,j;const T=x==="y"?"width":"height",_=LN.has(kr(o)),R=a.reference[y]-a.floating[T]+(_&&((b=c.offset)==null?void 0:b[y])||0)+(_?0:S.crossAxis),U=a.reference[y]+a.reference[T]+(_?0:((j=c.offset)==null?void 0:j[y])||0)-(_?S.crossAxis:0);E<R?E=R:E>U&&(E=U)}return{[x]:N,[y]:E}}}},m5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:c,elements:d}=t,{apply:h=()=>{},...p}=Er(e,t),m=await qa(t,p),y=kr(o),x=wo(o),N=Zn(o)==="y",{width:E,height:w}=a.floating;let S,b;y==="top"||y==="bottom"?(S=y,b=x===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(b=y,S=x==="end"?"top":"bottom");const j=w-m.top-m.bottom,T=E-m.left-m.right,_=ms(w-m[S],j),R=ms(E-m[b],T),U=!t.middlewareData.shift;let $=_,B=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&($=j),U&&!x){const G=un(m.left,0),Z=un(m.right,0),ge=un(m.top,0),xe=un(m.bottom,0);N?B=E-2*(G!==0||Z!==0?G+Z:un(m.left,m.right)):$=w-2*(ge!==0||xe!==0?ge+xe:un(m.top,m.bottom))}await h({...t,availableWidth:B,availableHeight:$});const ne=await c.getDimensions(d.floating);return E!==ne.width||w!==ne.height?{reset:{rects:!0}}:{}}}};function $u(){return typeof window<"u"}function bo(e){return IN(e)?(e.nodeName||"").toLowerCase():"#document"}function fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function or(e){var t;return(t=(IN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IN(e){return $u()?e instanceof Node||e instanceof fn(e).Node:!1}function Vn(e){return $u()?e instanceof Element||e instanceof fn(e).Element:!1}function ir(e){return $u()?e instanceof HTMLElement||e instanceof fn(e).HTMLElement:!1}function Iw(e){return!$u()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fn(e).ShadowRoot}const g5=new Set(["inline","contents"]);function ml(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Un(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!g5.has(o)}const y5=new Set(["table","td","th"]);function v5(e){return y5.has(bo(e))}const x5=[":popover-open",":modal"];function Wu(e){return x5.some(t=>{try{return e.matches(t)}catch{return!1}})}const w5=["transform","translate","scale","rotate","perspective"],b5=["transform","translate","scale","rotate","perspective","filter"],S5=["paint","layout","strict","content"];function eg(e){const t=tg(),n=Vn(e)?Un(e):e;return w5.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||b5.some(r=>(n.willChange||"").includes(r))||S5.some(r=>(n.contain||"").includes(r))}function N5(e){let t=gs(e);for(;ir(t)&&!uo(t);){if(eg(t))return t;if(Wu(t))return null;t=gs(t)}return null}function tg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const C5=new Set(["html","body","#document"]);function uo(e){return C5.has(bo(e))}function Un(e){return fn(e).getComputedStyle(e)}function Hu(e){return Vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gs(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Iw(e)&&e.host||or(e);return Iw(t)?t.host:t}function FN(e){const t=gs(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ir(t)&&ml(t)?t:FN(t)}function Ga(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=FN(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),c=fn(o);if(a){const d=Ap(c);return t.concat(c,c.visualViewport||[],ml(o)?o:[],d&&n?Ga(d):[])}return t.concat(o,Ga(o,[],n))}function Ap(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function BN(e){const t=Un(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ir(e),a=o?e.offsetWidth:n,c=o?e.offsetHeight:r,d=vu(n)!==a||vu(r)!==c;return d&&(n=a,r=c),{width:n,height:r,$:d}}function ng(e){return Vn(e)?e:e.contextElement}function Hi(e){const t=ng(e);if(!ir(t))return rr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=BN(t);let c=(a?vu(n.width):n.width)/r,d=(a?vu(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const E5=rr(0);function VN(e){const t=fn(e);return!tg()||!t.visualViewport?E5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fn(e)?!1:t}function ni(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=ng(e);let c=rr(1);t&&(r?Vn(r)&&(c=Hi(r)):c=Hi(e));const d=k5(a,n,r)?VN(a):rr(0);let h=(o.left+d.x)/c.x,p=(o.top+d.y)/c.y,m=o.width/c.x,y=o.height/c.y;if(a){const x=fn(a),N=r&&Vn(r)?fn(r):r;let E=x,w=Ap(E);for(;w&&r&&N!==E;){const S=Hi(w),b=w.getBoundingClientRect(),j=Un(w),T=b.left+(w.clientLeft+parseFloat(j.paddingLeft))*S.x,_=b.top+(w.clientTop+parseFloat(j.paddingTop))*S.y;h*=S.x,p*=S.y,m*=S.x,y*=S.y,h+=T,p+=_,E=fn(w),w=Ap(E)}}return wu({width:m,height:y,x:h,y:p})}function qu(e,t){const n=Hu(e).scrollLeft;return t?t.left+n:ni(or(e)).left+n}function UN(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-qu(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function j5(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",c=or(r),d=t?Wu(t.floating):!1;if(r===c||d&&a)return n;let h={scrollLeft:0,scrollTop:0},p=rr(1);const m=rr(0),y=ir(r);if((y||!y&&!a)&&((bo(r)!=="body"||ml(c))&&(h=Hu(r)),ir(r))){const N=ni(r);p=Hi(r),m.x=N.x+r.clientLeft,m.y=N.y+r.clientTop}const x=c&&!y&&!a?UN(c,h):rr(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-h.scrollLeft*p.x+m.x+x.x,y:n.y*p.y-h.scrollTop*p.y+m.y+x.y}}function T5(e){return Array.from(e.getClientRects())}function _5(e){const t=or(e),n=Hu(e),r=e.ownerDocument.body,o=un(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=un(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+qu(e);const d=-n.scrollTop;return Un(r).direction==="rtl"&&(c+=un(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:d}}const Fw=25;function P5(e,t){const n=fn(e),r=or(e),o=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,d=0,h=0;if(o){a=o.width,c=o.height;const m=tg();(!m||m&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}const p=qu(r);if(p<=0){const m=r.ownerDocument,y=m.body,x=getComputedStyle(y),N=m.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(r.clientWidth-y.clientWidth-N);E<=Fw&&(a-=E)}else p<=Fw&&(a+=p);return{width:a,height:c,x:d,y:h}}const R5=new Set(["absolute","fixed"]);function A5(e,t){const n=ni(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ir(e)?Hi(e):rr(1),c=e.clientWidth*a.x,d=e.clientHeight*a.y,h=o*a.x,p=r*a.y;return{width:c,height:d,x:h,y:p}}function Bw(e,t,n){let r;if(t==="viewport")r=P5(e,n);else if(t==="document")r=_5(or(e));else if(Vn(t))r=A5(t,n);else{const o=VN(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wu(r)}function zN(e,t){const n=gs(e);return n===t||!Vn(n)||uo(n)?!1:Un(n).position==="fixed"||zN(n,t)}function O5(e,t){const n=t.get(e);if(n)return n;let r=Ga(e,[],!1).filter(d=>Vn(d)&&bo(d)!=="body"),o=null;const a=Un(e).position==="fixed";let c=a?gs(e):e;for(;Vn(c)&&!uo(c);){const d=Un(c),h=eg(c);!h&&d.position==="fixed"&&(o=null),(a?!h&&!o:!h&&d.position==="static"&&!!o&&R5.has(o.position)||ml(c)&&!h&&zN(e,c))?r=r.filter(m=>m!==c):o=d,c=gs(c)}return t.set(e,r),r}function M5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Wu(t)?[]:O5(t,this._c):[].concat(n),r],d=c[0],h=c.reduce((p,m)=>{const y=Bw(t,m,o);return p.top=un(y.top,p.top),p.right=ms(y.right,p.right),p.bottom=ms(y.bottom,p.bottom),p.left=un(y.left,p.left),p},Bw(t,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function D5(e){const{width:t,height:n}=BN(e);return{width:t,height:n}}function L5(e,t,n){const r=ir(t),o=or(t),a=n==="fixed",c=ni(e,!0,a,t);let d={scrollLeft:0,scrollTop:0};const h=rr(0);function p(){h.x=qu(o)}if(r||!r&&!a)if((bo(t)!=="body"||ml(o))&&(d=Hu(t)),r){const N=ni(t,!0,a,t);h.x=N.x+t.clientLeft,h.y=N.y+t.clientTop}else o&&p();a&&!r&&o&&p();const m=o&&!r&&!a?UN(o,d):rr(0),y=c.left+d.scrollLeft-h.x-m.x,x=c.top+d.scrollTop-h.y-m.y;return{x:y,y:x,width:c.width,height:c.height}}function kh(e){return Un(e).position==="static"}function Vw(e,t){if(!ir(e)||Un(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return or(e)===n&&(n=n.ownerDocument.body),n}function $N(e,t){const n=fn(e);if(Wu(e))return n;if(!ir(e)){let o=gs(e);for(;o&&!uo(o);){if(Vn(o)&&!kh(o))return o;o=gs(o)}return n}let r=Vw(e,t);for(;r&&v5(r)&&kh(r);)r=Vw(r,t);return r&&uo(r)&&kh(r)&&!eg(r)?n:r||N5(e)||n}const I5=async function(e){const t=this.getOffsetParent||$N,n=this.getDimensions,r=await n(e.floating);return{reference:L5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function F5(e){return Un(e).direction==="rtl"}const B5={convertOffsetParentRelativeRectToViewportRelativeRect:j5,getDocumentElement:or,getClippingRect:M5,getOffsetParent:$N,getElementRects:I5,getClientRects:T5,getDimensions:D5,getScale:Hi,isElement:Vn,isRTL:F5};function WN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function V5(e,t){let n=null,r;const o=or(e);function a(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();const p=e.getBoundingClientRect(),{left:m,top:y,width:x,height:N}=p;if(d||t(),!x||!N)return;const E=Bc(y),w=Bc(o.clientWidth-(m+x)),S=Bc(o.clientHeight-(y+N)),b=Bc(m),T={rootMargin:-E+"px "+-w+"px "+-S+"px "+-b+"px",threshold:un(0,ms(1,h))||1};let _=!0;function R(U){const $=U[0].intersectionRatio;if($!==h){if(!_)return c();$?c(!1,$):r=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!WN(p,e.getBoundingClientRect())&&c(),_=!1}try{n=new IntersectionObserver(R,{...T,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,T)}n.observe(e)}return c(!0),a}function U5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=ng(e),m=o||a?[...p?Ga(p):[],...Ga(t)]:[];m.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const y=p&&d?V5(p,n):null;let x=-1,N=null;c&&(N=new ResizeObserver(b=>{let[j]=b;j&&j.target===p&&N&&(N.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var T;(T=N)==null||T.observe(t)})),n()}),p&&!h&&N.observe(p),N.observe(t));let E,w=h?ni(e):null;h&&S();function S(){const b=ni(e);w&&!WN(w,b)&&n(),w=b,E=requestAnimationFrame(S)}return n(),()=>{var b;m.forEach(j=>{o&&j.removeEventListener("scroll",n),a&&j.removeEventListener("resize",n)}),y==null||y(),(b=N)==null||b.disconnect(),N=null,h&&cancelAnimationFrame(E)}}const z5=f5,$5=h5,W5=c5,H5=m5,q5=u5,Uw=l5,G5=p5,K5=(e,t,n)=>{const r=new Map,o={platform:B5,...n},a={...o.platform,_c:r};return a5(e,t,{...o,platform:a})};var Y5=typeof document<"u",Q5=function(){},su=Y5?C.useLayoutEffect:Q5;function bu(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,o;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(!bu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!bu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function HN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zw(e,t){const n=HN(e);return Math.round(t*n)/n}function jh(e){const t=C.useRef(e);return su(()=>{t.current=e}),t}function X5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:c}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[m,y]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,N]=C.useState(r);bu(x,r)||N(r);const[E,w]=C.useState(null),[S,b]=C.useState(null),j=C.useCallback(L=>{L!==U.current&&(U.current=L,w(L))},[]),T=C.useCallback(L=>{L!==$.current&&($.current=L,b(L))},[]),_=a||E,R=c||S,U=C.useRef(null),$=C.useRef(null),B=C.useRef(m),ne=h!=null,G=jh(h),Z=jh(o),ge=jh(p),xe=C.useCallback(()=>{if(!U.current||!$.current)return;const L={placement:t,strategy:n,middleware:x};Z.current&&(L.platform=Z.current),K5(U.current,$.current,L).then(ee=>{const Y={...ee,isPositioned:ge.current!==!1};ye.current&&!bu(B.current,Y)&&(B.current=Y,sl.flushSync(()=>{y(Y)}))})},[x,t,n,Z,ge]);su(()=>{p===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,y(L=>({...L,isPositioned:!1})))},[p]);const ye=C.useRef(!1);su(()=>(ye.current=!0,()=>{ye.current=!1}),[]),su(()=>{if(_&&(U.current=_),R&&($.current=R),_&&R){if(G.current)return G.current(_,R,xe);xe()}},[_,R,xe,G,ne]);const Pe=C.useMemo(()=>({reference:U,floating:$,setReference:j,setFloating:T}),[j,T]),le=C.useMemo(()=>({reference:_,floating:R}),[_,R]),re=C.useMemo(()=>{const L={position:n,left:0,top:0};if(!le.floating)return L;const ee=zw(le.floating,m.x),Y=zw(le.floating,m.y);return d?{...L,transform:"translate("+ee+"px, "+Y+"px)",...HN(le.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:Y}},[n,d,le.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:xe,refs:Pe,elements:le,floatingStyles:re}),[m,xe,Pe,le,re])}const J5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Uw({element:r.current,padding:o}).fn(n):{}:r?Uw({element:r,padding:o}).fn(n):{}}}},Z5=(e,t)=>({...z5(e),options:[e,t]}),e6=(e,t)=>({...$5(e),options:[e,t]}),t6=(e,t)=>({...G5(e),options:[e,t]}),n6=(e,t)=>({...W5(e),options:[e,t]}),r6=(e,t)=>({...H5(e),options:[e,t]}),s6=(e,t)=>({...q5(e),options:[e,t]}),i6=(e,t)=>({...J5(e),options:[e,t]});var o6="Arrow",qN=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return u.jsx(rt.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});qN.displayName=o6;var a6=qN;function l6(e){const[t,n]=C.useState(void 0);return rn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,d;if("borderBoxSize"in a){const h=a.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rg="Popper",[GN,KN]=Ym(rg),[c6,YN]=GN(rg),QN=e=>{const{__scopePopper:t,children:n}=e,[r,o]=C.useState(null);return u.jsx(c6,{scope:t,anchor:r,onAnchorChange:o,children:n})};QN.displayName=rg;var XN="PopperAnchor",JN=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=YN(XN,n),c=C.useRef(null),d=At(t,c),h=C.useRef(null);return C.useEffect(()=>{const p=h.current;h.current=(r==null?void 0:r.current)||c.current,p!==h.current&&a.onAnchorChange(h.current)}),r?null:u.jsx(rt.div,{...o,ref:d})});JN.displayName=XN;var sg="PopperContent",[u6,d6]=GN(sg),ZN=C.forwardRef((e,t)=>{var X,oe,Ee,we,se,Te;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:N="optimized",onPlaced:E,...w}=e,S=YN(sg,n),[b,j]=C.useState(null),T=At(t,We=>j(We)),[_,R]=C.useState(null),U=l6(_),$=(U==null?void 0:U.width)??0,B=(U==null?void 0:U.height)??0,ne=r+(a!=="center"?"-"+a:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Z=Array.isArray(p)?p:[p],ge=Z.length>0,xe={padding:G,boundary:Z.filter(h6),altBoundary:ge},{refs:ye,floatingStyles:Pe,placement:le,isPositioned:re,middlewareData:L}=X5({strategy:"fixed",placement:ne,whileElementsMounted:(...We)=>U5(...We,{animationFrame:N==="always"}),elements:{reference:S.anchor},middleware:[Z5({mainAxis:o+B,alignmentAxis:c}),h&&e6({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?t6():void 0,...xe}),h&&n6({...xe}),r6({...xe,apply:({elements:We,rects:pt,availableWidth:jn,availableHeight:$n})=>{const{width:Bt,height:vl}=pt.reference,Tr=We.floating.style;Tr.setProperty("--radix-popper-available-width",`${jn}px`),Tr.setProperty("--radix-popper-available-height",`${$n}px`),Tr.setProperty("--radix-popper-anchor-width",`${Bt}px`),Tr.setProperty("--radix-popper-anchor-height",`${vl}px`)}}),_&&i6({element:_,padding:d}),p6({arrowWidth:$,arrowHeight:B}),x&&s6({strategy:"referenceHidden",...xe})]}),[ee,Y]=n2(le),M=ti(E);rn(()=>{re&&(M==null||M())},[re,M]);const W=(X=L.arrow)==null?void 0:X.x,ue=(oe=L.arrow)==null?void 0:oe.y,te=((Ee=L.arrow)==null?void 0:Ee.centerOffset)!==0,[be,Re]=C.useState();return rn(()=>{b&&Re(window.getComputedStyle(b).zIndex)},[b]),u.jsx("div",{ref:ye.setFloating,"data-radix-popper-content-wrapper":"",style:{...Pe,transform:re?Pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[(we=L.transformOrigin)==null?void 0:we.x,(se=L.transformOrigin)==null?void 0:se.y].join(" "),...((Te=L.hide)==null?void 0:Te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(u6,{scope:n,placedSide:ee,onArrowChange:R,arrowX:W,arrowY:ue,shouldHideArrow:te,children:u.jsx(rt.div,{"data-side":ee,"data-align":Y,...w,ref:T,style:{...w.style,animation:re?void 0:"none"}})})})});ZN.displayName=sg;var e2="PopperArrow",f6={top:"bottom",right:"left",bottom:"top",left:"right"},t2=C.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=d6(e2,r),c=f6[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(a6,{...o,ref:n,style:{...o.style,display:"block"}})})});t2.displayName=e2;function h6(e){return e!==null}var p6=e=>({name:"transformOrigin",options:e,fn(t){var S,b,j;const{placement:n,rects:r,middlewareData:o}=t,c=((S=o.arrow)==null?void 0:S.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[p,m]=n2(n),y={start:"0%",center:"50%",end:"100%"}[m],x=(((b=o.arrow)==null?void 0:b.x)??0)+d/2,N=(((j=o.arrow)==null?void 0:j.y)??0)+h/2;let E="",w="";return p==="bottom"?(E=c?y:`${x}px`,w=`${-h}px`):p==="top"?(E=c?y:`${x}px`,w=`${r.floating.height+h}px`):p==="right"?(E=`${-h}px`,w=c?y:`${N}px`):p==="left"&&(E=`${r.floating.width+h}px`,w=c?y:`${N}px`),{data:{x:E,y:w}}}});function n2(e){const[t,n="center"]=e.split("-");return[t,n]}var m6=QN,g6=JN,y6=ZN,v6=t2,x6="Portal",r2=C.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[o,a]=C.useState(!1);rn(()=>a(!0),[]);const c=n||o&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?a_.createPortal(u.jsx(rt.div,{...r,ref:t}),c):null});r2.displayName=x6;var w6=Wp[" useInsertionEffect ".trim().toString()]||rn;function $w({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,c]=b6({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:o;{const m=C.useRef(e!==void 0);C.useEffect(()=>{const y=m.current;y!==d&&console.warn(`${r} is changing from ${y?"controlled":"uncontrolled"} to ${d?"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=d},[d,r])}const p=C.useCallback(m=>{var y;if(d){const x=S6(m)?m(e):m;x!==e&&((y=c.current)==null||y.call(c,x))}else a(m)},[d,e,a,c]);return[h,p]}function b6({defaultProp:e,onChange:t}){const[n,r]=C.useState(e),o=C.useRef(n),a=C.useRef(t);return w6(()=>{a.current=t},[t]),C.useEffect(()=>{var c;o.current!==n&&((c=a.current)==null||c.call(a,n),o.current=n)},[n,o]),[n,r,a]}function S6(e){return typeof e=="function"}function N6(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var s2=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"}),C6="VisuallyHidden",E6=C.forwardRef((e,t)=>
vendor: 14,309 bytes, lines 353-393
353u.jsx(rt.span,{...e,ref:t,style:{...s2,...e.style}}));E6.displayName=C6;var k6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Li=new WeakMap,Vc=new WeakMap,Uc={},Th=0,i2=function(e){return e&&(e.host||i2(e.parentNode))},j6=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=i2(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})},T6=function(e,t,n,r){var o=j6(t,Array.isArray(e)?e:[e]);Uc[n]||(Uc[n]=new WeakMap);var a=Uc[n],c=[],d=new Set,h=new Set(o),p=function(y){!y||d.has(y)||(d.add(y),p(y.parentNode))};o.forEach(p);var m=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(x){if(d.has(x))m(x);else try{var N=x.getAttribute(r),E=N!==null&&N!=="false",w=(Li.get(x)||0)+1,S=(a.get(x)||0)+1;Li.set(x,w),a.set(x,S),c.push(x),w===1&&E&&Vc.set(x,!0),S===1&&x.setAttribute(n,"true"),E||x.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",x,b)}})};return m(t),d.clear(),Th++,function(){c.forEach(function(y){var x=Li.get(y)-1,N=a.get(y)-1;Li.set(y,x),a.set(y,N),x||(Vc.has(y)||y.removeAttribute(r),Vc.delete(y)),N||y.removeAttribute(n)}),Th--,Th||(Li=new WeakMap,Li=new WeakMap,Vc=new WeakMap,Uc={})}},_6=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=k6(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),T6(r,o,n,"aria-hidden")):function(){return null}},Jn=function(){return Jn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Jn.apply(this,arguments)};function o2(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function P6(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var iu="right-scroll-bar-position",ou="width-before-scroll-bar",R6="with-scroll-bars-hidden",A6="--removed-body-scroll-bar-size";function _h(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function O6(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var M6=typeof window<"u"?C.useLayoutEffect:C.useEffect,Ww=new WeakMap;function D6(e,t){var n=O6(null,function(r){return e.forEach(function(o){return _h(o,r)})});return M6(function(){var r=Ww.get(n);if(r){var o=new Set(r),a=new Set(e),c=n.current;o.forEach(function(d){a.has(d)||_h(d,null)}),a.forEach(function(d){o.has(d)||_h(d,c)})}Ww.set(n,e)},[e]),n}function L6(e){return e}function I6(e,t){t===void 0&&(t=L6);var n=[],r=!1,o={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(a){var c=t(a,r);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(a){for(r=!0;n.length;){var c=n;n=[],c.forEach(a)}n={push:function(d){return a(d)},filter:function(){return n}}},assignMedium:function(a){r=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(a),c=n}var h=function(){var m=c;c=[],m.forEach(a)},p=function(){return Promise.resolve().then(h)};p(),n={push:function(m){c.push(m),p()},filter:function(m){return c=c.filter(m),n}}}};return o}function F6(e){e===void 0&&(e={});var t=I6(null);return t.options=Jn({async:!0,ssr:!1},e),t}var a2=function(e){var t=e.sideCar,n=o2(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 C.createElement(r,Jn({},n))};a2.isSideCarExport=!0;function B6(e,t){return e.useMedium(t),a2}var l2=F6(),Ph=function(){},Gu=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Ph,onWheelCapture:Ph,onTouchMoveCapture:Ph}),o=r[0],a=r[1],c=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,y=e.shards,x=e.sideCar,N=e.noRelative,E=e.noIsolation,w=e.inert,S=e.allowPinchZoom,b=e.as,j=b===void 0?"div":b,T=e.gapMode,_=o2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=x,U=D6([n,t]),$=Jn(Jn({},_),o);return C.createElement(C.Fragment,null,m&&C.createElement(R,{sideCar:l2,removeScrollBar:p,shards:y,noRelative:N,noIsolation:E,inert:w,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:T}),c?C.cloneElement(C.Children.only(d),Jn(Jn({},$),{ref:U})):C.createElement(j,Jn({},$,{className:h,ref:U}),d))});Gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gu.classNames={fullWidth:ou,zeroRight:iu};var V6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function U6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=V6();return t&&e.setAttribute("nonce",t),e}function z6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var W6=function(){var e=0,t=null;return{add:function(n){e==0&&(t=U6())&&(z6(t,n),$6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},H6=function(){var e=W6();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},c2=function(){var e=H6(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},q6={left:0,top:0,right:0,gap:0},Rh=function(e){return parseInt(e||"",10)||0},G6=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rh(n),Rh(r),Rh(o)]},K6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return q6;var t=G6(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])}},Y6=c2(),qi="data-scroll-locked",Q6=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
354  .`.concat(R6,` {
355   overflow: hidden `).concat(r,`;
356   padding-right: `).concat(d,"px ").concat(r,`;
357  }
358  body[`).concat(qi,`] {
359    overflow: hidden `).concat(r,`;
360    overscroll-behavior: contain;
361    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
362    padding-left: `.concat(o,`px;
363    padding-top: `).concat(a,`px;
364    padding-right: `).concat(c,`px;
365    margin-left:0;
366    margin-top:0;
367    margin-right: `).concat(d,"px ").concat(r,`;
368    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
369  }
370  
371  .`).concat(iu,` {
372    right: `).concat(d,"px ").concat(r,`;
373  }
374  
375  .`).concat(ou,` {
376    margin-right: `).concat(d,"px ").concat(r,`;
377  }
378  
379  .`).concat(iu," .").concat(iu,` {
380    right: 0 `).concat(r,`;
381  }
382  
383  .`).concat(ou," .").concat(ou,` {
384    margin-right: 0 `).concat(r,`;
385  }
386  
387  body[`).concat(qi,`] {
388    `).concat(A6,": ").concat(d,`px;
389  }
390`)},Hw=function(){var e=parseInt(document.body.getAttribute(qi)||"0",10);return isFinite(e)?e:0},X6=function(){C.useEffect(function(){return document.body.setAttribute(qi,(Hw()+1).toString()),function(){var e=Hw()-1;e<=0?document.body.removeAttribute(qi):document.body.setAttribute(qi,e.toString())}},[])},J6=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;X6();var a=C.useMemo(function(){return K6(o)},[o]);return C.createElement(Y6,{styles:Q6(a,!t,o,n?"":"!important")})},Op=!1;if(typeof window<"u")try{var zc=Object.defineProperty({},"passive",{get:function(){return Op=!0,!0}});window.addEventListener("test",zc,zc),window.removeEventListener("test",zc,zc)}catch{Op=!1}var Ii=Op?{passive:!1}:!1,Z6=function(e){return e.tagName==="TEXTAREA"},u2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Z6(e)&&n[t]==="visible")},eI=function(e){return u2(e,"overflowY")},tI=function(e){return u2(e,"overflowX")},qw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=d2(e,r);if(o){var a=f2(e,r),c=a[1],d=a[2];if(c>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nI=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rI=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},d2=function(e,t){return e==="v"?eI(t):tI(t)},f2=function(e,t){return e==="v"?nI(t):rI(t)},sI=function(e,t){return e==="h"&&t==="rtl"?-1:1},iI=function(e,t,n,r,o){var a=sI(e,window.getComputedStyle(t).direction),c=a*r,d=n.target,h=t.contains(d),p=!1,m=c>0,y=0,x=0;do{if(!d)break;var N=f2(e,d),E=N[0],w=N[1],S=N[2],b=w-S-a*E;(E||b)&&d2(e,d)&&(y+=b,x+=E);var j=d.parentNode;d=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(m&&Math.abs(y)<1||!m&&Math.abs(x)<1)&&(p=!0),p},$c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gw=function(e){return[e.deltaX,e.deltaY]},Kw=function(e){return e&&"current"in e?e.current:e},oI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aI=function(e){return`
391  .block-interactivity-`.concat(e,` {pointer-events: none;}
392  .allow-interactivity-`).concat(e,` {pointer-events: all;}
393`)},lI=0,Fi=[];function cI(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),o=C.useState(lI++)[0],a=C.useState(c2)[0],c=C.useRef(e);C.useEffect(function(){c.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=P6([e.lockRef.current],(e.shards||[]).map(Kw),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var d=C.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var b=$c(w),j=n.current,T="deltaX"in w?w.deltaX:j[0]-b[0],_="deltaY"in w?w.deltaY:j[1]-b[1],R,U=w.target,$=Math.abs(T)>Math.abs(_)?"h":"v";if("touches"in w&&$==="h"&&U.type==="range")return!1;var B=qw($,U);if(!B)return!0;if(B?R=$:(R=$==="v"?"h":"v",B=qw($,U)),!B)return!1;if(!r.current&&"changedTouches"in w&&(T||_)&&(r.current=R),!R)return!0;var ne=r.current||R;return iI(ne,S,w,ne==="h"?T:_)},[]),h=C.useCallback(function(w){var S=w;if(!(!Fi.length||Fi[Fi.length-1]!==a)){var b="deltaY"in S?Gw(S):$c(S),j=t.current.filter(function(R){return R.name===S.type&&(R.target===S.target||S.target===R.shadowParent)&&oI(R.delta,b)})[0];if(j&&j.should){S.cancelable&&S.preventDefault();return}if(!j){var T=(c.current.shards||[]).map(Kw).filter(Boolean).filter(function(R){return R.contains(S.target)}),_=T.length>0?d(S,T[0]):!c.current.noIsolation;_&&S.cancelable&&S.preventDefault()}}},[]),p=C.useCallback(function(w,S,b,j){var T={name:w,delta:S,target:b,should:j,shadowParent:uI(b)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(_){return _!==T})},1)},[]),m=C.useCallback(function(w){n.current=$c(w),r.current=void 0},[]),y=C.useCallback(function(w){p(w.type,Gw(w),w.target,d(w,e.lockRef.current))},[]),x=C.useCallback(function(w){p(w.type,$c(w),w.target,d(w,e.lockRef.current))},[]);C.useEffect(function(){return Fi.push(a),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",h,Ii),document.addEventListener("touchmove",h,Ii),document.addEventListener("touchstart",m,Ii),function(){Fi=Fi.filter(function(w){return w!==a}),document.removeEventListener("wheel",h,Ii),document.removeEventListener("touchmove",h,Ii),document.removeEventListener("touchstart",m,Ii)}},[]);var N=e.removeScrollBar,E=e.inert;return C.createElement(C.Fragment,null,E?C.createElement(a,{styles:aI(o)}):null,N?C.createElement(J6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dI=B6(l2,cI);var h2=C.forwardRef(function(e,t){return C.createElement(Gu,Jn({},e,{ref:t,sideCar:dI}))});h2.classNames=Gu.classNames;var fI=[" ","Enter","ArrowUp","ArrowDown"],hI=[" ","Enter"],ri="Select",[Ku,Yu,pI]=_L(ri),[So]=Ym(ri,[pI,KN]),Qu=KN(),[mI,vs]=So(ri),[gI,yI]=So(ri),p2=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:c,defaultValue:d,onValueChange:h,dir:p,name:m,autoComplete:y,disabled:x,required:N,form:E}=e,w=Qu(t),[S,b]=C.useState(null),[j,T]=C.useState(null),[_,R]=C.useState(!1),U=RL(p),[$,B]=$w({prop:r,defaultProp:o??!1,onChange:a,caller:ri}),[ne,G]=$w({prop:c,defaultProp:d,onChange:h,caller:ri}),Z=C.useRef(null),ge=S?E||!!S.closest("form"):!0,[xe,ye]=C.useState(new Set),Pe=Array.from(xe).map(le=>le.props.value).join(";");return u.jsx(m6,{...w,children:u.jsxs(mI,{required:N,scope:t,trigger:S,onTriggerChange:b,valueNode:j,onValueNodeChange:T,valueNodeHasChildren:_,onValueNodeHasChildrenChange:R,contentId:Qm(),value:ne,onValueChange:G,open:$,onOpenChange:B,dir:U,triggerPointerDownPosRef:Z,disabled:x,children:[u.jsx(Ku.Provider,{scope:t,children:u.jsx(gI,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(le=>{ye(re=>new Set(re).add(le))},[]),onNativeOptionRemove:C.useCallback(le=>{ye(re=>{const L=new Set(re);return L.delete(le),L})},[]),children:n})}),ge?u.jsxs(F2,{"aria-hidden":!0,required:N,tabIndex:-1,name:m,autoComplete:y,value:ne,onChange:le=>G(le.target.value),disabled:x,form:E,children:[ne===void 0?u.jsx("option",{value:""}):null,Array.from(xe)]},Pe):null]})})};p2.displayName=ri;var m2="SelectTrigger",g2=C.forwardRef((e,t)=>
vendor: 15,116 bytes, line 393
393{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Qu(n),c=vs(m2,n),d=c.disabled||r,h=At(t,c.onTriggerChange),p=Yu(n),m=C.useRef("touch"),[y,x,N]=V2(w=>{const S=p().filter(T=>!T.disabled),b=S.find(T=>T.value===c.value),j=U2(S,w,b);j!==void 0&&c.onValueChange(j.value)}),E=w=>{d||(c.onOpenChange(!0),N()),w&&(c.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(g6,{asChild:!0,...a,children:u.jsx(rt.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":B2(c.value)?"":void 0,...o,ref:h,onClick:ut(o.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&E(w)}),onPointerDown:ut(o.onPointerDown,w=>{m.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(E(w),w.preventDefault())}),onKeyDown:ut(o.onKeyDown,w=>{const S=y.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&x(w.key),!(S&&w.key===" ")&&fI.includes(w.key)&&(E(),w.preventDefault())})})})});g2.displayName=m2;var y2="SelectValue",v2=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:c="",...d}=e,h=vs(y2,n),{onValueNodeHasChildrenChange:p}=h,m=a!==void 0,y=At(t,h.onValueNodeChange);return rn(()=>{p(m)},[p,m]),u.jsx(rt.span,{...d,ref:y,style:{pointerEvents:"none"},children:B2(h.value)?u.jsx(u.Fragment,{children:c}):a})});v2.displayName=y2;var vI="SelectIcon",x2=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(rt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});x2.displayName=vI;var xI="SelectPortal",w2=e=>u.jsx(r2,{asChild:!0,...e});w2.displayName=xI;var si="SelectContent",b2=C.forwardRef((e,t)=>{const n=vs(si,e.__scopeSelect),[r,o]=C.useState();if(rn(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?sl.createPortal(u.jsx(S2,{scope:e.__scopeSelect,children:u.jsx(Ku.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(N2,{...e,ref:t})});b2.displayName=si;var Ln=10,[S2,xs]=So(si),wI="SelectContentImpl",bI=Ha("SelectContent.RemoveScroll"),N2=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:c,side:d,sideOffset:h,align:p,alignOffset:m,arrowPadding:y,collisionBoundary:x,collisionPadding:N,sticky:E,hideWhenDetached:w,avoidCollisions:S,...b}=e,j=vs(si,n),[T,_]=C.useState(null),[R,U]=C.useState(null),$=At(t,X=>_(X)),[B,ne]=C.useState(null),[G,Z]=C.useState(null),ge=Yu(n),[xe,ye]=C.useState(!1),Pe=C.useRef(!1);C.useEffect(()=>{if(T)return _6(T)},[T]),VL();const le=C.useCallback(X=>{const[oe,...Ee]=ge().map(Te=>Te.ref.current),[we]=Ee.slice(-1),se=document.activeElement;for(const Te of X)if(Te===se||(Te==null||Te.scrollIntoView({block:"nearest"}),Te===oe&&R&&(R.scrollTop=0),Te===we&&R&&(R.scrollTop=R.scrollHeight),Te==null||Te.focus(),document.activeElement!==se))return},[ge,R]),re=C.useCallback(()=>le([B,T]),[le,B,T]);C.useEffect(()=>{xe&&re()},[xe,re]);const{onOpenChange:L,triggerPointerDownPosRef:ee}=j;C.useEffect(()=>{if(T){let X={x:0,y:0};const oe=we=>{var se,Te;X={x:Math.abs(Math.round(we.pageX)-(((se=ee.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(we.pageY)-(((Te=ee.current)==null?void 0:Te.y)??0))}},Ee=we=>{X.x<=10&&X.y<=10?we.preventDefault():T.contains(we.target)||L(!1),document.removeEventListener("pointermove",oe),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",Ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",Ee,{capture:!0})}}},[T,L,ee]),C.useEffect(()=>{const X=()=>L(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[L]);const[Y,M]=V2(X=>{const oe=ge().filter(se=>!se.disabled),Ee=oe.find(se=>se.ref.current===document.activeElement),we=U2(oe,X,Ee);we&&setTimeout(()=>we.ref.current.focus())}),W=C.useCallback((X,oe,Ee)=>{const we=!Pe.current&&!Ee;(j.value!==void 0&&j.value===oe||we)&&(ne(X),we&&(Pe.current=!0))},[j.value]),ue=C.useCallback(()=>T==null?void 0:T.focus(),[T]),te=C.useCallback((X,oe,Ee)=>{const we=!Pe.current&&!Ee;(j.value!==void 0&&j.value===oe||we)&&Z(X)},[j.value]),be=r==="popper"?Mp:C2,Re=be===Mp?{side:d,sideOffset:h,align:p,alignOffset:m,arrowPadding:y,collisionBoundary:x,collisionPadding:N,sticky:E,hideWhenDetached:w,avoidCollisions:S}:{};return u.jsx(S2,{scope:n,content:T,viewport:R,onViewportChange:U,itemRefCallback:W,selectedItem:B,onItemLeave:ue,itemTextRefCallback:te,focusSelectedItem:re,selectedItemText:G,position:r,isPositioned:xe,searchRef:Y,children:u.jsx(h2,{as:bI,allowPinchZoom:!0,children:u.jsx(ON,{asChild:!0,trapped:j.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:ut(o,X=>{var oe;(oe=j.trigger)==null||oe.focus({preventScroll:!0}),X.preventDefault()}),children:u.jsx(RN,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:u.jsx(be,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:X=>X.preventDefault(),...b,...Re,onPlaced:()=>ye(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ut(b.onKeyDown,X=>{const oe=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!oe&&X.key.length===1&&M(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let we=ge().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(X.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const se=X.target,Te=we.indexOf(se);we=we.slice(Te+1)}setTimeout(()=>le(we)),X.preventDefault()}})})})})})})});N2.displayName=wI;var SI="SelectItemAlignedPosition",C2=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=vs(si,n),c=xs(si,n),[d,h]=C.useState(null),[p,m]=C.useState(null),y=At(t,$=>m($)),x=Yu(n),N=C.useRef(!1),E=C.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:b,focusSelectedItem:j}=c,T=C.useCallback(()=>{if(a.trigger&&a.valueNode&&d&&p&&w&&S&&b){const $=a.trigger.getBoundingClientRect(),B=p.getBoundingClientRect(),ne=a.valueNode.getBoundingClientRect(),G=b.getBoundingClientRect();if(a.dir!=="rtl"){const se=G.left-B.left,Te=ne.left-se,We=$.left-Te,pt=$.width+We,jn=Math.max(pt,B.width),$n=window.innerWidth-Ln,Bt=Cw(Te,[Ln,Math.max(Ln,$n-jn)]);d.style.minWidth=pt+"px",d.style.left=Bt+"px"}else{const se=B.right-G.right,Te=window.innerWidth-ne.right-se,We=window.innerWidth-$.right-Te,pt=$.width+We,jn=Math.max(pt,B.width),$n=window.innerWidth-Ln,Bt=Cw(Te,[Ln,Math.max(Ln,$n-jn)]);d.style.minWidth=pt+"px",d.style.right=Bt+"px"}const Z=x(),ge=window.innerHeight-Ln*2,xe=w.scrollHeight,ye=window.getComputedStyle(p),Pe=parseInt(ye.borderTopWidth,10),le=parseInt(ye.paddingTop,10),re=parseInt(ye.borderBottomWidth,10),L=parseInt(ye.paddingBottom,10),ee=Pe+le+xe+L+re,Y=Math.min(S.offsetHeight*5,ee),M=window.getComputedStyle(w),W=parseInt(M.paddingTop,10),ue=parseInt(M.paddingBottom,10),te=$.top+$.height/2-Ln,be=ge-te,Re=S.offsetHeight/2,X=S.offsetTop+Re,oe=Pe+le+X,Ee=ee-oe;if(oe<=te){const se=Z.length>0&&S===Z[Z.length-1].ref.current;d.style.bottom="0px";const Te=p.clientHeight-w.offsetTop-w.offsetHeight,We=Math.max(be,Re+(se?ue:0)+Te+re),pt=oe+We;d.style.height=pt+"px"}else{const se=Z.length>0&&S===Z[0].ref.current;d.style.top="0px";const We=Math.max(te,Pe+w.offsetTop+(se?W:0)+Re)+Ee;d.style.height=We+"px",w.scrollTop=oe-te+w.offsetTop}d.style.margin=`${Ln}px 0`,d.style.minHeight=Y+"px",d.style.maxHeight=ge+"px",r==null||r(),requestAnimationFrame(()=>N.current=!0)}},[x,a.trigger,a.valueNode,d,p,w,S,b,a.dir,r]);rn(()=>T(),[T]);const[_,R]=C.useState();rn(()=>{p&&R(window.getComputedStyle(p).zIndex)},[p]);const U=C.useCallback($=>{$&&E.current===!0&&(T(),j==null||j(),E.current=!1)},[T,j]);return u.jsx(CI,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:N,onScrollButtonChange:U,children:u.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:u.jsx(rt.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});C2.displayName=SI;var NI="SelectPopperPosition",Mp=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ln,...a}=e,c=Qu(n);return u.jsx(y6,{...c,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});Mp.displayName=NI;var[CI,ig]=So(si,{}),Dp="SelectViewport",E2=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=xs(Dp,n),c=ig(Dp,n),d=At(t,a.onViewportChange),h=C.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(Ku.Slot,{scope:n,children:u.jsx(rt.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ut(o.onScroll,p=>{const m=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:x}=c;if(x!=null&&x.current&&y){const N=Math.abs(h.current-m.scrollTop);if(N>0){const E=window.innerHeight-Ln*2,w=parseFloat(y.style.minHeight),S=parseFloat(y.style.height),b=Math.max(w,S);if(b<E){const j=b+N,T=Math.min(E,j),_=j-T;y.style.height=T+"px",y.style.bottom==="0px"&&(m.scrollTop=_>0?_:0,y.style.justifyContent="flex-end")}}}h.current=m.scrollTop})})})]})});E2.displayName=Dp;var k2="SelectGroup",[EI,kI]=So(k2),jI=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qm();return u.jsx(EI,{scope:n,id:o,children:u.jsx(rt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});jI.displayName=k2;var j2="SelectLabel",T2=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kI(j2,n);return u.jsx(rt.div,{id:o.id,...r,ref:t})});T2.displayName=j2;var Su="SelectItem",[TI,_2]=So(Su),P2=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...c}=e,d=vs(Su,n),h=xs(Su,n),p=d.value===r,[m,y]=C.useState(a??""),[x,N]=C.useState(!1),E=At(t,j=>{var T;return(T=h.itemRefCallback)==null?void 0:T.call(h,j,r,o)}),w=Qm(),S=C.useRef("touch"),b=()=>{o||(d.onValueChange(r),d.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 u.jsx(TI,{scope:n,value:r,disabled:o,textId:w,isSelected:p,onItemTextChange:C.useCallback(j=>{y(T=>T||((j==null?void 0:j.textContent)??"").trim())},[]),children:u.jsx(Ku.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:u.jsx(rt.div,{role:"option","aria-labelledby":w,"data-highlighted":x?"":void 0,"aria-selected":p&&x,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:E,onFocus:ut(c.onFocus,()=>N(!0)),onBlur:ut(c.onBlur,()=>N(!1)),onClick:ut(c.onClick,()=>{S.current!=="mouse"&&b()}),onPointerUp:ut(c.onPointerUp,()=>{S.current==="mouse"&&b()}),onPointerDown:ut(c.onPointerDown,j=>{S.current=j.pointerType}),onPointerMove:ut(c.onPointerMove,j=>{var T;S.current=j.pointerType,o?(T=h.onItemLeave)==null||T.call(h):S.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ut(c.onPointerLeave,j=>{var T;j.currentTarget===document.activeElement&&((T=h.onItemLeave)==null||T.call(h))}),onKeyDown:ut(c.onKeyDown,j=>{var _;((_=h.searchRef)==null?void 0:_.current)!==""&&j.key===" "||(hI.includes(j.key)&&b(),j.key===" "&&j.preventDefault())})})})})});P2.displayName=Su;var ka="SelectItemText",R2=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,c=vs(ka,n),d=xs(ka,n),h=_2(ka,n),p=yI(ka,n),[m,y]=C.useState(null),x=At(t,b=>y(b),h.onItemTextChange,b=>{var j;return(j=d.itemTextRefCallback)==null?void 0:j.call(d,b,h.value,h.disabled)}),N=m==null?void 0:m.textContent,E=C.useMemo(()=>u.jsx("option",{value:h.value,disabled:h.disabled,children:N},h.value),[h.disabled,h.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=p;return rn(()=>(w(E),()=>S(E)),[w,S,E]),u.jsxs(u.Fragment,{children:[u.jsx(rt.span,{id:h.textId,...a,ref:x}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren?sl.createPortal(a.children,c.valueNode):null]})});R2.displayName=ka;var A2="SelectItemIndicator",O2=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return _2(A2,n).isSelected?u.jsx(rt.span,{"aria-hidden":!0,...r,ref:t}):null});O2.displayName=A2;var Lp="SelectScrollUpButton",M2=C.forwardRef((e,t)=>{const n=xs(Lp,e.__scopeSelect),r=ig(Lp,e.__scopeSelect),[o,a]=C.useState(!1),c=At(t,r.onScrollButtonChange);return rn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const p=h.scrollTop>0;a(p)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),o?u.jsx(L2,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null});M2.displayName=Lp;var Ip="SelectScrollDownButton",D2=C.forwardRef((e,t)=>{const n=xs(Ip,e.__scopeSelect),r=ig(Ip,e.__scopeSelect),[o,a]=C.useState(!1),c=At(t,r.onScrollButtonChange);return rn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const p=h.scrollHeight-h.clientHeight,m=Math.ceil(h.scrollTop)<p;a(m)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),o?u.jsx(L2,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null});D2.displayName=Ip;var L2=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=xs("SelectScrollButton",n),c=C.useRef(null),d=Yu(n),h=C.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return C.useEffect(()=>()=>h(),[h]),rn(()=>{var m;const p=d().find(y=>y.ref.current===document.activeElement);(m=p==null?void 0:p.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),u.jsx(rt.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ut(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:ut(o.onPointerMove,()=>{var p;(p=a.onItemLeave)==null||p.call(a),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:ut(o.onPointerLeave,()=>{h()})})}),_I="SelectSeparator",I2=C.forwardRef((e,t)=>
vendor: 4,756 bytes, line 393
393{const{__scopeSelect:n,...r}=e;return u.jsx(rt.div,{"aria-hidden":!0,...r,ref:t})});I2.displayName=_I;var Fp="SelectArrow",PI=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qu(n),a=vs(Fp,n),c=xs(Fp,n);return a.open&&c.position==="popper"?u.jsx(v6,{...o,...r,ref:t}):null});PI.displayName=Fp;var RI="SelectBubbleInput",F2=C.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=C.useRef(null),a=At(r,o),c=N6(t);return C.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==t&&m){const y=new Event("change",{bubbles:!0});m.call(d,t),d.dispatchEvent(y)}},[c,t]),u.jsx(rt.select,{...n,style:{...s2,...n.style},ref:a,defaultValue:t})});F2.displayName=RI;function B2(e){return e===""||e===void 0}function V2(e){const t=ti(e),n=C.useRef(""),r=C.useRef(0),o=C.useCallback(c=>{const d=n.current+c;t(d),(function h(p){n.current=p,window.clearTimeout(r.current),p!==""&&(r.current=window.setTimeout(()=>h(""),1e3))})(d)},[t]),a=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function U2(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=AI(e,Math.max(a,0));o.length===1&&(c=c.filter(p=>p!==n));const h=c.find(p=>p.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function AI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var OI=p2,z2=g2,MI=v2,DI=x2,LI=w2,$2=b2,II=E2,W2=T2,H2=P2,FI=R2,BI=O2,q2=M2,G2=D2,K2=I2;const gl=OI,yl=MI,No=C.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(z2,{ref:r,className:Rt("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,u.jsx(DI,{asChild:!0,children:u.jsx(xb,{className:"h-4 w-4 opacity-50"})})]}));No.displayName=z2.displayName;const Y2=C.forwardRef(({className:e,...t},n)=>u.jsx(q2,{ref:n,className:Rt("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Fk,{className:"h-4 w-4"})}));Y2.displayName=q2.displayName;const Q2=C.forwardRef(({className:e,...t},n)=>u.jsx(G2,{ref:n,className:Rt("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(xb,{className:"h-4 w-4"})}));Q2.displayName=G2.displayName;const Co=C.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>u.jsx(LI,{children:u.jsxs($2,{ref:o,className:Rt("relative z-50 max-h-96 min-w-[8rem] overflow-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",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:[u.jsx(Y2,{}),u.jsx(II,{className:Rt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(Q2,{})]})}));Co.displayName=$2.displayName;const VI=C.forwardRef(({className:e,...t},n)=>u.jsx(W2,{ref:n,className:Rt("px-2 py-1.5 text-sm font-semibold",e),...t}));VI.displayName=W2.displayName;const dt=C.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(H2,{ref:r,className:Rt("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:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(BI,{children:u.jsx(Rk,{className:"h-4 w-4"})})}),u.jsx(FI,{children:t})]}));dt.displayName=H2.displayName;const UI=C.forwardRef(({className:e,...t},n)=>u.jsx(K2,{ref:n,className:Rt("-mx-1 my-1 h-px bg-muted",e),...t}));UI.displayName=K2.displayName;function zI(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let Bp=1;class $I{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>
vendor: 3,664 bytes, line 393
393{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Bp++,c=this.toasts.find(h=>h.id===a),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(h=>h.id===a?(this.publish({...h,...t,id:a,title:r}),{...h,...t,id:a,dismissible:d,title:r}):h):this.addToast({title:r,...o,dismissible:d,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,c;const d=o.then(async p=>{if(c=["resolve",p],cn.isValidElement(p))a=!1,this.create({id:r,type:"default",message:p});else if(HI(p)&&!p.ok){a=!1;const y=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,x=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,E=typeof y=="object"&&!cn.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:x,...E})}else if(p instanceof Error){a=!1;const y=typeof n.error=="function"?await n.error(p):n.error,x=typeof n.description=="function"?await n.description(p):n.description,E=typeof y=="object"&&!cn.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:x,...E})}else if(n.success!==void 0){a=!1;const y=typeof n.success=="function"?await n.success(p):n.success,x=typeof n.description=="function"?await n.description(p):n.description,E=typeof y=="object"&&!cn.isValidElement(y)?y:{message:y};this.create({id:r,type:"success",description:x,...E})}}).catch(async p=>{if(c=["reject",p],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(p):n.error,y=typeof n.description=="function"?await n.description(p):n.description,N=typeof m=="object"&&!cn.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:y,...N})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((p,m)=>d.then(()=>c[0]==="reject"?m(c[1]):p(c[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:h}:Object.assign(r,{unwrap:h})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Bp++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Nn=new $I,WI=(e,t)=>{const n=(t==null?void 0:t.id)||Bp++;return Nn.addToast({title:e,...t,id:n}),n},HI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qI=WI,GI=()=>Nn.toasts,KI=()=>Nn.getActiveToasts(),fo=Object.assign(qI,{success:Nn.success,info:Nn.info,warning:Nn.warning,error:Nn.error,custom:Nn.custom,message:Nn.message,promise:Nn.promise,dismiss:Nn.dismiss,loading:Nn.loading},{getHistory:GI,getToasts:KI});zI
vendor: 4,787 bytes, line 393
393("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 393
393left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
393YI(){const[e,t]=C.useState({name:"",email:"",phone:"",organization:"",inquiry_type:"",subject:"",message:""}),[n,r]=C.useState(!1),[o,a]=C.useState(!1),c=[{icon:io,title:"Visit Us",details:["BANGO Office","Bridgetown, St. Michael","Barbados, BB11000"]},{icon:Dh,title:"Call Us",details:["+1 (246) 555-0123","+1 (246) 555-0124"]},{icon:Kp,title:"Email Us",details:["[email protected]","[email protected]"]},{icon:Gp,title:"Office Hours",details:["Monday - Friday","8:00 AM - 4:30 PM"]}],d=[{value:"general",label:"General Inquiry"},{value:"membership",label:"Membership Information"},{value:"training",label:"Training & Workshops"},{value:"partnership",label:"Partnership Opportunities"},{value:"donation",label:"Donations & Support"},{value:"media",label:"Media & Press"}],h=[{icon:wb,label:"Facebook",url:"#"},{icon:jb,label:"Twitter",url:"#"},{icon:Nb,label:"Instagram",url:"#"},{icon:Cb,label:"LinkedIn",url:"#"}],p=async m=>{m.preventDefault(),r(!0);try{await tn.entities.ContactInquiry.create({...e,status:"new"}),a(!0),fo.success("Message sent successfully!")}catch{fo.error("Something went wrong. Please try again.")}finally{r(!1)}};return o?u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-teal-50 to-white flex items-center justify-center px-4 pt-20",children:u.jsxs(K.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-3xl p-8 sm:p-12 shadow-xl max-w-md text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(Sr,{className:"w-10 h-10 text-green-600"})}),u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Message Sent!"}),u.jsx("p",{className:"text-gray-600 mb-8",children:"Thank you for reaching out. Our team will respond to your inquiry within 1-2 business days."}),u.jsx(Wt,{onClick:()=>{a(!1),t({name:"",email:"",phone:"",organization:"",inquiry_type:"",subject:"",message:""})},className:"bg-teal-600 hover:bg-teal-700",children:"Send Another Message"})]})}):u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-blue-800 to-blue-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"w-20 h-20 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(vj,{className:"w-10 h-10 text-white"})}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Get in Touch"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Have questions about BANGO, membership, or how we can support your NGO? We'd love to hear from you."})]})]}),u.jsx("section",{className:"py-12 bg-white border-b border-gray-100",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:c.map((m,y)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:y*.1},className:"text-center p-6",children:[u.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-xl flex items-center justify-center mx-auto mb-4",children:u.jsx(m.icon,{className:"w-7 h-7 text-blue-600"})}),u.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:m.title}),m.details.map((x,N)=>u.jsx("p",{className:"text-gray-600 text-sm",children:x},N))]},m.title))})})}),u.jsx("section",{className:"py-20 bg-gray-50",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[u.jsxs(K.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Send Us a Message"}),u.jsxs("form",{onSubmit:p,className:"bg-white rounded-2xl p-8 shadow-lg space-y-5",children:[u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"name",children:"Full Name *"}),u.jsx(at,{id:"name",value:e.name,onChange:m=>t({...e,name:m.target.value}),placeholder:"Your name",className:"mt-1",required:!0})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"email",children:"Email Address *"}),u.jsx(at,{id:"email",type:"email",value:e.email,onChange:m=>t({...e,email:m.target.value}),placeholder:"[email protected]",className:"mt-1",required:!0})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"phone",children:"Phone Number"}),u.jsx(at,{id:"phone",value:e.phone,onChange:m=>t({...e,phone:m.target.value}),placeholder:"+1 (246) 000-0000",className:"mt-1"})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"organization",children:"Organization"}),u.jsx(at,{id:"organization",value:e.organization,onChange:m=>t({...e,organization:m.target.value}),placeholder:"Your organization name",className:"mt-1"})]})]}),u.jsxs("div",{children:[u.jsx(Ye,{children:"Type of Inquiry"}),u.jsxs(gl,{value:e.inquiry_type,onValueChange:m=>t({...e,inquiry_type:m}),children:[u.jsx(No,{className:"mt-1",children:u.jsx(yl,{placeholder:"Select inquiry type"})}),u.jsx(Co,{children:d.map(m=>u.jsx(dt,{value:m.value,children:m.label},m.value))})]})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"subject",children:"Subject"}),u.jsx(at,{id:"subject",value:e.subject,onChange:m=>t({...e,subject:m.target.value}),placeholder:"What is your message about?",className:"mt-1"})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"message",children:"Message *"}),u.jsx(zu,{id:"message",value:e.message,onChange:m=>t({...e,message:m.target.value}),placeholder:"How can we help you?",className:"mt-1",rows:5,required:!0})]}),u.jsx(Wt,{type:"submit",disabled:n,className:"w-full h-12 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold rounded-xl",children:n?u.jsx(Ma,{className:"w-5 h-5 animate-spin"}):u.jsxs(u.Fragment,{children:[u.jsx(kj,{className:"w-5 h-5 mr-2"}),"Send Message"]})})]})]}),u.jsxs(K.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"space-y-8",children:[u.jsx("div",{className:"bg-gray-200 rounded-2xl h-80 overflow-hidden",children:u.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d31094.77726075855!2d-59.62!3d13.1!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8c43f1f8c5e5e5e5%3A0x5e5e5e5e5e5e5e5e!2sBridgetown%2C%20Barbados!5e0!3m2!1sen!2sus!4v1234567890",width:"100%",height:"100%",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"BANGO Location"})}),u.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg",children:[u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Connect With Us"}),u.jsx("p",{className:"text-gray-600 mb-6",children:"Follow us on social media for the latest updates, events, and NGO sector news."}),u.jsx("div",{className:"flex gap-4",children:h.map(m=>u.jsx("a",{href:m.url,className:"w-12 h-12 bg-gray-100 rounded-xl flex items-center justify-center hover:bg-blue-100 hover:text-blue-600 transition-colors","aria-label":m.label,children:u.jsx(m.icon,{className:"w-6 h-6"})},m.label))})]}),u.jsxs("div",{className:"bg-gradient-to-br from-blue-700 to-blue-800 rounded-2xl p-6 text-white",children:[u.jsx("h3",{className:"text-lg font-bold mb-4",children:"Need Immediate Assistance?"}),u.jsx("p",{className:"text-white/80 mb-4",children:"For urgent inquiries, please call us directly during office hours."}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Dh,{className:"w-5 h-5"}),u.jsx("span",{className:"font-semibold",children:"+1 (246) 555-0123"})]})]}),u.jsxs("div",{className:"bg-yellow-50 rounded-2xl p-6",children:[u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Frequently Asked Questions"}),u.jsx("p",{className:"text-gray-600 text-sm mb-4",children:"Find quick answers to common questions about BANGO, membership, and our services."}),u.jsx("a",{href:"#",className:"text-yellow-800 font-semibold hover:text-yellow-900 flex items-center gap-2",children:"View FAQ →"})]})]})]})})})]})}function QI(){const[e,t]=C.useState("one_time"),[n,r]=C.useState(50),[o,a]=C.useState(""),[c,d]=C.useState({donor_name:"",email:"",message:"",is_anonymous:!1}),[h,p]=C.useState(!1),[m,y]=C.useState(!1),x=[25,50,100,250,500,1e3],N=[{amount:25,description:"Provides training materials for 5 NGO staff members"},{amount:50,description:"Sponsors one participant in a capacity building workshop"},{amount:100,description:"Supports a month of NGO helpline operations"},{amount:250,description:"Funds a governance toolkit for a small NGO"},{amount:500,description:"Enables a strategic planning session for an emerging NGO"},{amount:1e3,description:"Sponsors a full scholarship for an NGO leadership program"}],E=[{icon:hn,title:"Strengthen NGOs",description:"Help build the capacity of organizations serving communities across Barbados."},{icon:fs,title:"Fund Training",description:"Support professional development programs for NGO leaders and staff."},{icon:tl,title:"Improve Governance",description:"Enable better governance practices across the civil society sector."},{icon:ku,title:"Ensure Sustainability",description:"Help NGOs develop sustainable models for long-term impact."}],w=async b=>{b.preventDefault(),p(!0);const j=o?parseFloat(o):n;try{await tn.entities.Donation.create({...c,amount:j,currency:"BBD",donation_type:e,status:"pending"}
393),y(!0),fo.success("Thank you for your donation!")}catch{fo.error("Something went wrong. Please try again.")}finally{p(!1)}},S=()=>{const b=o?parseFloat(o):n,j=N.find(T=>T.amount===b);return j?j.description:b<25?"Every dollar helps strengthen NGOs in Barbados":b>1e3?"Your generous gift will have a transformative impact on the NGO sector":N.reduce((T,_)=>Math.abs(_.amount-b)<Math.abs(T.amount-b)?_:T).description};return m?u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-teal-50 to-white flex items-center justify-center px-4",children:u.jsxs(K.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-3xl p-8 sm:p-12 shadow-xl max-w-md text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(Sr,{className:"w-10 h-10 text-green-600"})}),u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Thank You for Your Support!"}),u.jsx("p",{className:"text-gray-600 mb-8",children:"Your donation helps strengthen NGOs across Barbados. You'll receive a confirmation email shortly with details about your contribution."}),u.jsx(Wt,{onClick:()=>y(!1),className:"bg-teal-600 hover:bg-teal-700",children:"Make Another Donation"})]})}):u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-yellow-400 to-yellow-500 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"w-20 h-20 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(Nr,{className:"w-10 h-10 text-white"})}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Support NGOs in Barbados"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/90 max-w-3xl mx-auto",children:"Your contribution directly strengthens non-governmental organizations working to improve lives in communities across Barbados."})]})]}),u.jsx("section",{className:"py-16 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsx("div",{className:"grid md:grid-cols-4 gap-6",children:E.map((b,j)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},className:"text-center",children:[u.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-xl flex items-center justify-center mx-auto mb-4",children:u.jsx(b.icon,{className:"w-7 h-7 text-blue-600"})}),u.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:b.title}),u.jsx("p",{className:"text-gray-600 text-sm",children:b.description})]},b.title))})})}),u.jsx("section",{className:"py-20 bg-gray-50",children:u.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-5 gap-8",children:[u.jsx("div",{className:"lg:col-span-3",children:u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8 shadow-lg",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Make a Donation"}),u.jsxs("form",{onSubmit:w,className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx(Ye,{className:"text-sm font-medium text-gray-700 mb-3 block",children:"Donation Type"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx("button",{type:"button",onClick:()=>t("one_time"),className:`py-3 px-4 rounded-xl font-semibold border-2 transition-all ${e==="one_time"?"bg-teal-50 border-teal-500 text-teal-700":"bg-white border-gray-200 text-gray-600 hover:border-teal-500"}`,children:"One-Time"}),u.jsx("button",{type:"button",onClick:()=>
393t("monthly"),className:`py-3 px-4 rounded-xl font-semibold border-2 transition-all ${e==="monthly"?"bg-teal-50 border-teal-500 text-teal-700":"bg-white border-gray-200 text-gray-600 hover:border-teal-500"}`,children:"Monthly"})]})]}),u.jsxs("div",{children:[u.jsx(Ye,{className:"text-sm font-medium text-gray-700 mb-3 block",children:"Select Amount (BBD)"}),u.jsx("div",{className:"grid grid-cols-3 gap-3 mb-3",children:x.map(b=>u.jsxs("button",{type:"button",onClick:()=>{r(b),a("")},className:`py-3 px-4 rounded-xl font-semibold border-2 transition-all ${n===b&&!o?"bg-blue-50 border-blue-500 text-blue-700":"bg-white border-gray-200 text-gray-600 hover:border-blue-500"}`,children:["$",b]},b))}),u.jsxs("div",{className:"relative",children:[u.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-500",children:"$"}),u.jsx(at,{type:"number",placeholder:"Custom amount",value:o,onChange:b=>{a(b.target.value),r(0)},className:"pl-8 h-12"})]})]}),u.jsx("div",{className:"bg-blue-50 rounded-xl p-4",children:u.jsxs("p",{className:"text-blue-700 text-sm",children:[u.jsx("strong",{children:"Your Impact:"})," ",S()]})}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"name",children:"Full Name"}),u.jsx(at,{id:"name",value:c.donor_name,onChange:b=>d({...c,donor_name:b.target.value}),placeholder:"Your full name",className:"mt-1",required:!0})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"email",children:"Email Address"}),u.jsx(at,{id:"email",type:"email",value:c.email,onChange:b=>d({...c,email:b.target.value}),placeholder:"[email protected]",className:"mt-1",required:!0})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"message",children:"Message (Optional)"}),u.jsx(zu,{id:"message",value:c.message,onChange:b=>d({...c,message:b.target.value}),placeholder:"Share why you're supporting BANGO...",className:"mt-1",rows:3})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",id:"anonymous",checked:c.is_anonymous,onChange:b=>d({...c,is_anonymous:b.target.checked}),className:"rounded border-gray-300"}),u.jsx(Ye,{htmlFor:"anonymous",className:"text-sm text-gray-600",children:"Make my donation anonymous"})]})]}),u.jsx(Wt,{type:"submit",disabled:h,className:"w-full h-14 bg-gradient-to-r from-yellow-400 to-yellow-500 hover:from-yellow-500 hover:to-yellow-600 text-black font-semibold text-lg rounded-xl",children:h?u.jsx(Ma,{className:"w-6 h-6 animate-spin"}):u.jsxs(u.Fragment,{children:[u.jsx(Nr,{className:"w-5 h-5 mr-2"}),"Donate $",o||n," ",e==="monthly"&&"/ month"]})}),u.jsx("p",{className:"text-center text-gray-500 text-xs",children:"Your donation is secure and will be processed safely."})]})]})}),u.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[u.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-gradient-to-br from-blue-700 to-blue-800 rounded-3xl p-6 text-white",children:[u.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Your Impact"}),u.jsx("ul",{className:"space-y-3",children:["Train NGO leaders","Provide essential resources","Support advocacy efforts","Build sustainable organizations"].map((b,j)=>u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx(Sr,{className:"w-5 h-5 text-yellow-300"}),u.jsx("span",{className:"text-white/90",children:b})]},j))})]}),u.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.1},className:"bg-white rounded-3xl p-6 shadow-lg",children:[u.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Other Ways to Give"}),u.jsxs("ul",{className:"space-y-4 text-sm text-gray-600",children:[u.jsxs("li",{children:[u.jsx("strong",{className:"text-gray-900",children:"Corporate Partnerships"}),u.jsx("p",{children:"Partner with BANGO to support the NGO sector."})]}),u.jsxs("li",{children:[u.jsx("strong",{className:"text-gray-900",children:"In-Kind Donations"}),u.jsx("p",{children:"Donate equipment, services, or expertise."})]}),u.jsxs("li",{children:[u.jsx("strong",{className:"text-gray-900",children:"Legacy Giving"}),u.jsx("p",{children:"Include BANGO in your estate planning."})]})]})]})]})]})})}),u.jsx("section",{className:"py-16 bg-white",children:u.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Trusted by the C
393ommunity"}),u.jsx("p",{className:"text-gray-600 mb-8",children:"BANGO is a registered non-profit organization committed to transparency and accountability. Your donations are used responsibly to support NGOs across Barbados."}),u.jsx("div",{className:"flex flex-wrap justify-center gap-8",children:[{value:"25+",label:"Years of Service"},{value:"150+",label:"NGOs Supported"},{value:"100%",label:"Mission Focused"}].map(b=>u.jsxs("div",{children:[u.jsx("div",{className:"text-3xl font-bold text-blue-600",children:b.value}),u.jsx("div",{className:"text-gray-500 text-sm",children:b.label})]},b.label))})]})})]})}function vt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function jr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function X2(e,t){const n=vt(e);if(isNaN(t))return jr(e,NaN);if(!t)return n;const r=n.getDate(),o=jr(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const a=o.getDate();return r>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}const J2=6048e5,XI=864e5,Z2=6e4,eC=36e5;let JI={};function Xu(){return JI}function Ka(e,t){var d,h,p,m;const n=Xu(),r=(t==null?void 0:t.weekStartsOn)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((m=(p=n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??0,o=vt(e),a=o.getDay(),c=(a<r?7:0)+a-r;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Nu(e){return Ka(e,{weekStartsOn:1})}function tC(e){const t=vt(e),n=t.getFullYear(),r=jr(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Nu(r),a=jr(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const c=Nu(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function Cu(e){const t=vt(e);return t.setHours(0,0,0,0),t}function Yw(e){const t=vt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ZI(e,t){const n=Cu(e),r=Cu(t),o=+n-Yw(n),a=+r-Yw(r);return Math.round((o-a)/XI)}function eF(e){const t=tC(e),n=jr(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Nu(n)}function Qw(e,t){const n=Cu(e),r=Cu(t);return+n==+r}function tF(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nF(e){if(!tF(e)&&typeof e!="number")return!1;const t=vt(e);return!isNaN(Number(t))}function rF(e){const t=vt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function sF(e,t){const n=vt(e.start),r=vt(e.end);let o=+n>+r;const a=o?+n:+r,c=o?r:n;c.setHours(0,0,0,0);let d=1;const h=[];for(;+c<=a;)h.push(vt(c)),c.setDate(c.getDate()+d),c.setHours(0,0,0,0);return o?h.reverse():h}function iF(e){const t=vt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function oF(e){const t=vt(e),n=jr(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const aF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lF=(e,t,n)=>{let r;const o=aF[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ah(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const cF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fF={date:Ah({formats:cF,defaultWidth:"full"}),time:Ah({formats:uF,defaultWidth:"full"}),dateTime:Ah({formats:dF,defaultWidth:"full"})},hF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pF=(e,t,n,r)=>hF[e];function ga(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=n!=null&&n.width?String(n.width):c;o=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[d]||e.values[c]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const mF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}
vendor: 6,572 bytes, line 393
393,yF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vF={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bF=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},SF={ordinalNumber:bF,era:ga({values:mF,defaultWidth:"wide"}),quarter:ga({values:gF,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ga({values:yF,defaultWidth:"wide"}),day:ga({values:vF,defaultWidth:"wide"}),dayPeriod:ga({values:xF,defaultWidth:"wide",formattingValues:wF,defaultFormattingWidth:"wide"})};function ya(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const c=a[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(d)?CF(d,y=>y.test(c)):NF(d,y=>y.test(c));let p;p=e.valueCallback?e.valueCallback(h):h,p=n.valueCallback?n.valueCallback(p):p;const m=t.slice(c.length);return{value:p,rest:m}}}function NF(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function CF(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function EF(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let c=e.valueCallback?e.valueCallback(a[0]):a[0];c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(o.length);return{value:c,rest:d}}}const kF=/^(\d+)(th|st|nd|rd)?/i,jF=/\d+/i,TF={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_F={any:[/^b/i,/^(a|c)/i]},PF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},RF={any:[/1/i,/2/i,/3/i,/4/i]},AF={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},OF={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MF={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},DF={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},IF={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FF={ordinalNumber:EF({matchPattern:kF,parsePattern:jF,valueCallback:e=>parseInt(e,10)}),era:ya({matchPatterns:TF,defaultMatchWidth:"wide",parsePatterns:_F,defaultParseWidth:"any"}),quarter:ya({matchPatterns:PF,defaultMatchWidth:"wide",parsePatterns:RF,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ya({matchPatterns:AF,defaultMatchWidth:"wide",parsePatterns:OF,defaultParseWidth:"any"}),day:ya({matchPatterns:MF,defaultMatchWidth:"wide",parsePatterns:DF,defaultParseWidth:"any"}),dayPeriod:ya({matchPatterns:LF,defaultMatchWidth:"any",parsePatterns:IF,defaultParseWidth:"any"})},BF={code:"en-US",formatDistance:lF,formatLong:fF,formatRelative:pF,localize:SF,match:FF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function VF(e){const t=vt(e);return ZI(t,oF(t))+1}function UF(e){const t=vt(e),n=+Nu(t)-+eF(t);return Math.round(n/J2)+1}function nC(e,t){var m,y,x,N;const n=vt(e),r=n.getFullYear(),o=Xu(),a=(t==null?void 0:t.firstWeekContainsDate)??((y=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??o.firstWeekContainsDate??((N=(x=o.locale)==null?void 0:x.options)==null?void 0:N.firstWeekContainsDate)??1,c=jr(e,0);c.setFullYear(r+1,0,a),c.setHours(0,0,0,0);const d=Ka(c,t),h=jr(e,0);h.setFullYear(r,0,a),h.setHours(0,0,0,0);const p=Ka(h,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function zF(e,t){var d,h,p,m;const n=Xu(),r=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(p=n.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)??1,o=nC(e,t),a=jr(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Ka(a,t)}function $F(e,t){const n=vt(e),r=+Ka(n,t)-+zF(n,t);return Math.round(r/J2)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Yr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ue(o,t.length)}},Bi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}
vendor: 4,661 bytes, line 393
393,Xw={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Yr.y(e,t)},Y:function(e,t,n,r){const o=nC(e,r),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return Ue(c,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ue(a,t.length)},R:function(e,t){const n=tC(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Yr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=$F(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Ue(o,t.length)},I:function(e,t,n){const r=UF(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Yr.d(e,t)},D:function(e,t,n){const r=VF(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ue(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ue(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Ue(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Bi.noon:r===0?o=Bi.midnight:o=r/12>
vendor: 4,402 bytes, line 393
393=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Bi.evening:r>=12?o=Bi.afternoon:r>=4?o=Bi.morning:o=Bi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Yr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Yr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Yr.s(e,t)},S:function(e,t){return Yr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Zw(r);case"XXXX":case"XX":return Is(r);case"XXXXX":case"XXX":default:return Is(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Zw(r);case"xxxx":case"xx":return Is(r);case"xxxxx":case"xxx":default:return Is(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Jw(r,":");case"OOOO":default:return"GMT"+Is(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Jw(r,":");case"zzzz":default:return"GMT"+Is(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ue(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ue(r,t.length)}};function Jw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Ue(a,2)}function Zw(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):Is(e,t)}function Is(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ue(Math.trunc(r/60),2),a=Ue(r%60,2);return n+o+t+a}const eb=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},WF=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return eb(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",eb(r,t)).replace("{{time}}",rC(o,t))},HF={p:rC,P:WF},qF=/^D+$/,GF=/^Y+$/,KF=["D","DD","YY","YYYY"];function YF(e){return qF.test(e)}function QF(e){return GF.test(e)}function XF(e,t,n){const r=JF(e,t,n);if(console.warn(r),KF.includes(e))throw new RangeError(r)}function JF(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ZF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tB=/^'([^]*?)'?$/,nB=/''/g,rB=/[a-zA-Z]/;function Ya(e,t,n){var m,y,x,N;const r=Xu(),o=r.locale??BF,a=r.firstWeekContainsDate??((y=(m=r.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??1,c=r.weekStartsOn??((N=(x=r.locale)==null?void 0:x.options)==null?void 0:N.weekStartsOn)??0,d=vt(e);if(!nF(d))throw new RangeError("Invalid time value");let h=t.match(eB).map(E=>{const w=E[0];if(w==="p"||w==="P"){const S=HF[w];return S(E,o.formatLong)}return E}).join("").match(ZF).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const w=E[0];if(w==="'")return{isToken:!1,value:sB(E)};if(Xw[w])return{isToken:!0,value:E};
393if(w.match(rB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:E}});o.localize.preprocessor&&(h=o.localize.preprocessor(d,h));const p={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return h.map(E=>{if(!E.isToken)return E.value;const w=E.value;(QF(w)||YF(w))&&XF(w,t,String(e));const S=Xw[w[0]];return S(d,w,o.localize,p)}).join("")}function sB(e){const t=e.match(tB);return t?t[1].replace(nB,"'"):e}function iB(e,t){const n=vt(e),r=vt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Vp(e,t){const r=cB(e);let o;if(r.date){const h=uB(r.date,2);o=dB(h.restDateString,h.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const a=o.getTime();let c=0,d;if(r.time&&(c=fB(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(d=hB(r.timezone),isNaN(d))return new Date(NaN)}else{const h=new Date(a+c),p=new Date(0);return p.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),p.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),p}return new Date(a+c+d)}const Wc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},oB=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,aB=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lB=/^([+-])(\d{2})(?::?(\d{2}))?$/;function cB(e){const t={},n=e.split(Wc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Wc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Wc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Wc.timezone.exec(r);
393o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function uB(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?o:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function dB(e,t){if(t===null)return new Date(NaN);const n=e.match(oB);if(!n)return new Date(NaN);const r=!!n[4],o=va(n[1]),a=va(n[2])-1,c=va(n[3]),d=va(n[4]),h=va(n[5])-1;if(r)return vB(t,d,h)?pB(t,d,h):new Date(NaN);{const p=new Date(0);return!gB(t,a,c)||!yB(t,o)?new Date(NaN):(p.setUTCFullYear(t,a,Math.max(o,c)),p)}}function va(e){return e?parseInt(e):1}function fB(e){const t=e.match(aB);if(!t)return NaN;const n=Oh(t[1]),r=Oh(t[2]),o=Oh(t[3]);return xB(n,r,o)?n*eC+r*Z2+o*1e3:NaN}function Oh(e){return e&&parseFloat(e.replace(",","."))||0}function hB(e){if(e==="Z")return 0;const t=e.match(lB);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return wB(r,o)?n*(r*eC+o*Z2):NaN}function pB(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}const mB=[31,null,31,30,31,30,31,31,30,31,30,31];function sC(e){return e%400===0||e%4===0&&e%100!==0}function gB(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(mB[t]||(sC(e)?29:28))}function yB(e,t){return t>=1&&t<=(sC(e)?366:365)}function vB(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function xB(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function wB(e,t){return t>=0&&t<=59}function bB(e,t){return X2(e,-1)}function SB(){const[e,t]=C.useState(new Date),[n,r]=C.useState("all"),[o,a]=C.useState("list"),{data:c=[],isLoading:d}=rl({queryKey:["events"],queryFn:()=>tn.entities.Event.filter({},"date"),initialData:[]}),h=[{id:1,title:"NGO Governance Workshop",description:"Learn best practices for board governance, legal compliance, and organizational management.",event_type:"workshop",date:"2025-02-15",start_time:"9:00 AM",end_time:"4:00 PM",location:"BANGO Conference Centre, Bridgetown",is_virtual:!1,is_featured:!0,capacity:30,price:150},{id:2,title:"Annual NGO Forum 2025",description:"Join NGO leaders from across Barbados for our flagship annual conference discussing sector trends and opportunities.",event_type:"forum",date:"2025-03-20",start_time:"10:00 AM",end_time:"5:00 PM",location:"Hilton Barbados Resort",is_virtual:!1,is_featured:!0,capacity:200,price:250},{id:3,title:"Grant Writing Masterclass",description:"Master the art of writing compelling grant proposals that win funding for your NGO.",event_type:"training",date:"2025-02-28",start_time:"2:00 PM",end_time:"5:00 PM",location:"Online",is_virtual:!0,is_featured:!1,capacity:50,price:75},{id:4,title:"NGO Networking Mixer",description:"Connect with fellow NGO professionals in a relaxed setting to share experiences and build partnerships.",event_type:"networking",date:"2025-03-05",start_time:"6:00 PM",end_time:"9:00 PM",location:"The Crane Resort",is_virtual:!1,is_featured:!1,capacity:80,price:0},{id:5,title:"Financial Management for NGOs",description:"Comprehensive 3-day training on accounting, budgeting, and financial reporting.",event_type:"training",date:"2025-03-10",start_time:"9:00 AM",end_time:"3:00 PM",location:"BANGO Conference Centre",is_virtual:!1,is_featured:!0,capacity:25,price:350},{id:6,title:"Impact Measurement Webinar",description:"Learn how to measure and communicate your NGO's social impact effectively.",event_type:"webinar",date:"2025-02-20",start_time:"11:00 AM",end_time:"12:30 PM",location:"Online (Zoom)",is_virtual:!0,is_featured:!1,capacity:100,price:0}],m=(c.length>0?c:h).filter(j=>n==="all"||j.event_type===n),y={workshop:{bg:"bg-blue-100",text:"text-blue-700",border:"border-blue-200"},conference:{bg:"bg-yellow-100",text:"text-yellow-800",border:"border-yellow-200"},forum:{bg:"bg-blue-100",text:"text-blue-700",border:"border-blue-200"},training:{bg:"bg-yellow-100",text:"text-yellow-800",border:"border-yellow-200"},networking:{bg:"bg-blue-100",text:"text-blue-700",border:"border-blue-200"},webinar:{bg:"bg-yellow-100",text:"text-yellow-800",border:"border-yellow-200"}},x=m.filter(j=>j.is_featured),N=m.filter(j=>!j.is_featured),E=iF(e),w=rF(e),S=sF({start:E,end:w}),b=j=>m.filter(T=>{if(!T.date)return!1;const _=typeof T.date=="string"?Vp(T.date):T.date;return Qw(_,j)});return u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-blue-800 to-blue-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
393ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-6",children:"Events & Calendar"}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Connect, Learn & Grow"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Join our workshops, conferences, forums, and networking events designed to strengthen NGOs across Barbados."})]})]}),u.jsx("section",{className:"py-8 bg-white border-b border-gray-100 sticky top-20 z-40",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(Xk,{className:"w-5 h-5 text-gray-400"}),u.jsxs(gl,{value:n,onValueChange:r,children:[u.jsx(No,{className:"w-48",children:u.jsx(yl,{placeholder:"Event Type"})}),u.jsxs(Co,{children:[u.jsx(dt,{value:"all",children:"All Events"}),u.jsx(dt,{value:"workshop",children:"Workshops"}),u.jsx(dt,{value:"conference",children:"Conferences"}),u.jsx(dt,{value:"forum",children:"Forums"}),u.jsx(dt,{value:"training",children:"Training"}),u.jsx(dt,{value:"networking",children:"Networking"}),u.jsx(dt,{value:"webinar",children:"Webinars"})]})]})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(Wt,{variant:o==="list"?"default":"outline",size:"sm",onClick:()=>a("list"),className:o==="list"?"bg-blue-600 hover:bg-blue-700":"",children:"List View"}),u.jsx(Wt,{variant:o==="calendar"?"default":"outline",size:"sm",onClick:()=>a("calendar"),className:o==="calendar"?"bg-blue-600 hover:bg-blue-700":"",children:"Calendar View"})]})]})})}),o==="list"?u.jsxs(u.Fragment,{children:[x.length>0&&u.jsx("section",{className:"py-16 bg-gradient-to-br from-teal-50 to-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"Featured Events"}),u.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:x.map((j,T)=>{var _,R,U;return u.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:T*.1},className:"bg-white rounded-2xl shadow-lg overflow-hidden border border-gray-100 hover:shadow-xl transition-shadow",children:u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${(_=y[j.event_type])==null?void 0:_.bg} ${(R=y[j.event_type])==null?void 0:R.text}`,children:(U=j.event_type)==null?void 0:U.toUpperCase()}),u.jsx("span",{className:"px-3 py-1 rounded-full text-xs font-semibold bg-yellow-100 text-yellow-800",children:"Featured"})]}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:j.title}),u.jsx("p",{className:"text-gray-600 mb-4 line-clamp-2",children:j.description}),u.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[u.jsx(io,{className:"w-4 h-4 text-blue-600"}),u.jsx("span",{className:"text-sm text-gray-600",children:j.location})]}),u.jsx("div",{className:"flex items-center",children:u.jsx("span",{className:"px-3 py-1.5 rounded-full text-sm font-semibold bg-yellow-100 text-yellow-800",children:"Coming Soon"})})]})},j.id)})})]})}),u.jsx("section",{className:"py-16 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"All Events"}),u.jsx("div",{className:"space-y-4",children:(x.length>0?N:m).map((j,T)=>{var _,R,U;return u.jsx(K.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:T*.05},className:"bg-white rounded-xl border border-gray-200 p-6 hover:shadow-lg transition-all group",children:u.jsx("div",{className:"flex flex-col md:flex-row md:items-center gap-6",children:u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[u.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${(_=y[j.event_type])==null?void 0:_.bg} ${(R=y[j.event_type])==null?void 0:R.text}`,children:(U=j.event_type)==null?void 0:U.toUpperCase()}),j.is_virtual&&u.jsx("span",{className:"px-2 py-1 rounded-full text-xs font-semibold bg-blue-50 text-blue-700",children:"Virtual"}),u.jsx("span",{className:"px-2 py-1 rounded-full text-xs font-semibold bg-yellow-100 text-yellow-800",children:"Coming Soon"})]}),u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1 group-hover:text-blue-700 transition-colors",children:j.title}),u.jsx("p",{className:"text-gray-600 text-sm mb-2 line-clamp-1",children:j.description}),u.jsx("div",{className:"flex flex-wrap items-center gap-4 text-sm text-gray-500",children:u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(io,{className:"w-4 h-4"}),j.location]})})]})})},j.id)})})]})})]}):u.jsx("section",{className:"py-16 bg-white",children:u.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:Ya(e,"MMMM yyyy")}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(Wt,{variant:"outline",size:"icon",onClick:()=>t(bB(e)),children:u.jsx(Mk,{className:"w-5 h-5"})}),u.jsx(Wt,{variant:"outline",size:"icon",onClick:()=>t(X2(e,1)),children:u.jsx(Lk,{className:"w-5 h-5"})})]})]}),u.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 overflow-hidden",children:[u.jsx("div",{className:"grid grid-cols-7 bg-gray-50 border-b border-gray-200",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(j=>u.jsx("div",{className:"py-3 text-center text-sm font-semibold text-gray-600",children:j},j))}),u.jsx("div",{className:"grid grid-cols-7",children:S.map((j,T)=>{const _=b(j);return u.jsxs("div",{className:`min-h-[100px] p-2 border-b border-r border-gray-100 ${iB(j,e)?"":"bg-gray-50 text-gray-400"}`,children:[u.jsx("div",{className:`text-sm font-medium mb-1 ${Qw(j,new Date)?"w-7 h-7 bg-blue-600 text-white rounded-full flex items-center justify-center":""}`,children:Ya(j,"d")}),u.jsxs("div",{className:"space-y-1",children:[_.slice(0,2).map(R=>{var U,$;return u.jsx("div",{className:`text-xs px-1.5 py-0.5 rounded truncate ${(U=y[R.event_type])==null?void 0:U.bg} ${($=y[R.event_type])==null?void 0:$.text}`,children:R.title},R.id)}),_.length>2&&u.jsxs("div",{className:"text-xs text-gray-500 pl-1",children:["+",_.length-2," more"]})]})]},j.toString())})})]})]})}),u.jsx("section",{className:"py-20 bg-gradient-to-r from-blue-700 to-blue-800",children:u.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Host Your Event with BANGO"}),u.jsx("p",{className:"text-xl text-white/90 mb-8",children:"Partner with us to organize workshops, conferences, or training sessions for the NGO community."}),u.jsx(Ze,{page:"Contact",variant:"white",size:"large",children:"Contact Us"})]})})]})}function NB(){return u.jsxs("section",{className:"relative min-h-[90vh] flex items-center overflow-hidden bg-gradient-to-br from-purple-900 via-purple-800 to-black",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
393ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsx("div",{className:"absolute top-20 right-10 w-96 h-96 bg-yellow-500/20 rounded-full blur-3xl"}),u.jsx("div",{className:"absolute bottom-20 left-10 w-72 h-72 bg-purple-400/20 rounded-full blur-3xl"}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 sm:py-32",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[u.jsxs(K.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[u.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-white/90 text-sm font-medium mb-6 backdrop-blur-sm",children:[u.jsx("span",{className:"w-2 h-2 bg-orange-400 rounded-full animate-pulse"}),"Barbados' National NGO Umbrella Body"]}),u.jsxs("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white leading-tight mb-6",children:["Strengthening NGOs."," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-yellow-400 to-yellow-300",children:"Empowering Communities."})," ","Building a Sustainable Barbados."]}),u.jsx("p",{className:"text-lg sm:text-xl text-white/80 mb-8 leading-relaxed max-w-xl",children:"BANGO unites, supports, and advocates for non-governmental organizations across Barbados, helping them become more sustainable, effective, and impactful in serving our communities."}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsx(Ze,{page:"Membership",variant:"white",size:"large",children:"Join BANGO"}),u.jsxs(Ze,{page:"Donate",variant:"yellow",size:"large",children:[u.jsx(Nr,{className:"w-5 h-5"}),"Support Our Work"]}),u.jsx(Ze,{page:"Training",variant:"ghost",size:"large",className:"text-white hover:bg-white/10",children:"View Trainings"})]})]}),u.jsx(K.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.2},className:"hidden lg:grid grid-cols-2 gap-4",children:[{icon:hn,value:"150+",label:"Member NGOs",color:"bg-purple-500"},{icon:Nr,value:"25+",label:"Years of Impact",color:"bg-yellow-500"},{icon:fs,value:"500+",label:"Professionals Trained",color:"bg-purple-600"},{icon:hn,value:"50K+",label:"Lives Impacted",color:"bg-yellow-600"}].map((e,t)=>u.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4+t*.1},className:"bg-white/10 backdrop-blur-md rounded-2xl p-6 border border-white/10 hover:bg-white/15 transition-colors",children:[u.jsx("div",{className:`w-12 h-12 ${e.color} rounded-xl flex items-center justify-center mb-4`,children:u.jsx(e.icon,{className:"w-6 h-6 text-white"})}),u.jsx("div",{className:"text-3xl font-bold text-white mb-1",children:e.value}),u.jsx("div",{className:"text-white/70 text-sm",children:e.label})]},e.label))})]})}),u.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:u.jsx("svg",{viewBox:"0 0 1440 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full",children:u.jsx("path",{d:"M0 50L48 45.8C96 41.7 192 33.3 288 35.3C384 37.3 480 49.7 576 54.2C672 58.7 768 55.3 864 48.5C960 41.7 1056 31.3 1152 31.7C1248 32 1344 43 1392 48.5L1440 54V100H1392C1344 100 1248 100 1152 100C1056 100 960 100 864 100C768 100 672 100 576 100C480 100 384 100 288 100C192 100 96 100 48 100H0V50Z",fill:"white"})})})]})}function CB(){const e=[{icon:tl,title:"Strengthen",description:"Building capacity and resilience within NGOs through training and support"},{icon:hn,title:"Connect",description:"Creating networks and partnerships that amplify collective impact"},{icon:Yp,title:"Advocate",description:"Representing NGO interests to government and stakeholders"},{icon:Sb,title:"Support",description:"Providing resources and guidance for sustainable operations"}];return u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[u.jsxs(K.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"relative",children:[u.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl",children:[u.jsx("img",{src:"https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?w=800&q=80",alt:"Community collaboration",className:"w-full h-[500px] object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-teal-900/60 to-transparent"})]}),u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},className:"absolute -bottom-8 -right-8 bg-white rounded-2xl shadow-xl p-6 max-w-xs",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[u.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center",children:u.jsx(hn,{className:"w-6 h-6 text-purple-600"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold text-gray-900",children:"150+"}),u.jsx("div",{className:"text-sm text-gray-500",children:"Member Organizations"})]})]}),u.jsx("p",{className:"text-sm text-gray-600",children:"United in purpose, working together for a stronger Barbados."})]})]}),u.jsxs(K.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-purple-50 text-purple-700 mb-4",children:"Who We Are"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"The Voice of Barbados' NGO Sector"}),u.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed",children:"BANGO is the national umbrella organization that brings together non-governmental organizations across Barbados. We serve as the collective voice of civil society, working to ensure NGOs have the support, resources, and representation they need to create lasting positive change in our 
393communities."}),u.jsx("div",{className:"grid sm:grid-cols-2 gap-6 mb-8",children:e.map((t,n)=>u.jsxs(K.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:n*.1},className:"flex gap-4",children:[u.jsx("div",{className:"w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center flex-shrink-0",children:u.jsx(t.icon,{className:"w-5 h-5 text-purple-600"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-gray-900 mb-1",children:t.title}),u.jsx("p",{className:"text-sm text-gray-600",children:t.description})]})]},t.title))}),u.jsx(Ze,{page:"About",children:"Learn More About Us"})]})]})})})}function EB(){const e=[{icon:Nr,label:"Health & Wellness",color:"from-purple-500 to-purple-600"},{icon:fs,label:"Education",color:"from-yellow-400 to-yellow-500"},{icon:tl,label:"Social Protection",color:"from-purple-600 to-purple-700"},{icon:aj,label:"Environment",color:"from-yellow-500 to-yellow-600"},{icon:sj,label:"Housing",color:"from-purple-700 to-purple-800"},{icon:hn,label:"Youth Development",color:"from-yellow-600 to-amber-500"}];return u.jsx("section",{className:"py-20 sm:py-28 bg-gradient-to-br from-gray-50 to-gray-100",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center max-w-3xl mx-auto mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-yellow-100 text-yellow-800 mb-4",children:"Why NGOs Matter"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"NGOs Are the Backbone of Community Development"}),u.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"Non-governmental organizations play a vital role in addressing social challenges, building community resilience, and driving sustainable development across Barbados. They reach where others cannot and serve those who need it most."})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:e.map((t,n)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:n*.1},className:"group bg-white rounded-2xl p-6 shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100",children:[u.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br ${t.color} flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300`,children:u.jsx(t.icon,{className:"w-7 h-7 text-white"})}),u.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:t.label})]},t.label))}),u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-purple-700 to-purple-800 rounded-3xl p-8 sm:p-12 text-center text-white",children:[u.jsx("h3",{className:"text-2xl sm:text-3xl font-bold mb-4",children:"Together, We Can Build a Stronger Barbados"}),u.jsx("p",{className:"text-white/80 text-lg max-w-2xl mx-auto mb-8",children:"When NGOs are well-supported and connected, communities thrive. BANGO ensures that our civil society sector has the strength to meet tomorrow's challenges."}),u.jsx("div",{className:"flex flex-wrap justify-center gap-8 text-center",children:[{value:"200K+",label:"Barbadians Served"},{value:"50+",label:"Community Projects"},{value:"100%",label:"Volunteer Driven"}].map(t=>u.jsxs("div",{children:[u.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-yellow-300",children:t.value}),u.jsx("div",{className:"text-white/70 text-sm mt-1",children:t.label})]},t.label))})]})]})})}function kB(){const e=[{icon:vb,title:"Capacity Building",description:"Strengthening organizational governance, leadership, and operational effectiveness of NGOs.",color:"bg-purple-500"},{icon:bb,title:"Training & Education",description:"Comprehensive professional development programs to equip NGO leaders and staff with essential skills.",color:"bg-yellow-500"},{icon:Eb,title:"Advocacy",description:"Representing the collective voice of NGOs in policy discu
393ssions and government engagement.",color:"bg-purple-600"},{icon:Qp,title:"Collaboration",description:"Fostering partnerships between NGOs, donors, corporations, and international organizations.",color:"bg-yellow-600"},{icon:ku,title:"Sustainability Support",description:"Helping NGOs develop sustainable business models and long-term growth strategies.",color:"bg-purple-700"},{icon:hn,title:"Networking",description:"Creating opportunities for NGOs to connect, share knowledge, and learn from each other.",color:"bg-yellow-700"}];return u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center max-w-3xl mx-auto mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-purple-50 text-purple-700 mb-4",children:"What We Do"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"Empowering NGOs to Create Lasting Impact"}),u.jsx("p",{className:"text-lg text-gray-600",children:"We provide comprehensive support to help NGOs thrive, from capacity building and training to advocacy and partnership development."})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:n*.1},className:"group relative bg-white rounded-2xl p-8 shadow-sm hover:shadow-xl transition-all duration-500 border border-gray-100 overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-gray-50 to-transparent rounded-full -translate-y-16 translate-x-16 group-hover:scale-150 transition-transform duration-500"}),u.jsx("div",{className:`w-14 h-14 ${t.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300`,children:u.jsx(t.icon,{className:"w-7 h-7 text-white"})}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:t.title}),u.jsx("p",{className:"text-gray-600 leading-relaxed",children:t.description})]},t.title))}),u.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mt-12",children:u.jsx(Ze,{page:"WhatWeDo",size:"large",children:"Explore All Services"})})]})})}function jB(){const{data:e=[],isLoading:t}=rl({queryKey:["upcoming-events"],queryFn:()=>tn.entities.Event.filter({},"date",3),initialData:[]}),n={workshop:"bg-purple-100 text-purple-700",conference:"bg-yellow-100 text-yellow-800",forum:"bg-purple-100 text-purple-700",training:"bg-yellow-100 text-yellow-800",networking:"bg-purple-100 text-purple-700",webinar:"bg-yellow-100 text-yellow-800"},r=[{id:1,title:"NGO Governance Workshop",event_type:"workshop",date:"2025-02-15",start_time:"9:00 AM",location:"BANGO Conference Centre",is_virtual:!1},{id:2,title:"Annual NGO Forum 2025",event_type:"forum",date:"2025-03-20",start_time:"10:00 AM",location:"Bridgetown",is_virtual:!1},{id:3,title:"Grant Writing Masterclass",event_type:"training",date:"2025-02-28",start_time:"2:00 PM",location:"Online",is_virtual:!0}],o=e.length>0?e:r;return u.jsx("section",{className:"py-20 sm:py-28 bg-gradient-to-br from-gray-50 to-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row justify-between items-start sm:items-end gap-6 mb-12",children:[u.jsxs("div",{children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-yellow-100 text-yellow-800 mb-4",children:"Upcoming Events"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900",children:"Join Us at Our Next Event"})]}),u.jsx(Ze,{page:"Events",variant:"outline",children:"View All Events"})]}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map((a,c)=>{var d;return u.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:c*.1},className:"group bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100",children:u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${n[a.event_type]||"bg-gray-100 text-gray-700"}`,children:(d=a.event_type)==null?void 0:d.replace("_"," ").toUpperCase()}),a.is_virtual&&u.jsx("span",{className:"px-3 py-1 rounded-full text-xs font-semibold bg-teal-50 text-teal-700",children:"Virtual"})]}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4 group-hover:text-teal-700 transition-colors",children:a.title}),u.jsxs("div",{className:"space-y-3 text-sm text-gray-600",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(qp,{className:"w-4 h-4 text-purple-600"}),u.jsx("span",{children:a.date?Ya(new Date(a.date),"MMMM d, yyyy"):"TBD"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Gp,{className:"w-4 h-4 text-purple-600"}),u.jsx("span",{children:a.start_time||"Time TBD"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(io,{className:"w-4 h-4 text-purple-600"}),u.jsx("span",{children:a.location||"Location TBD"})]})]}),u.jsxs(St,{to:Nt("Events"),className:"mt-6 inline-flex items-center gap-2 text-purple-700 font-semibold group-hover:gap-3 transition-all",children:["Learn More ",u.jsx(Oa,{className:"w-4 h-4"})]})]})},a.id)})})]})})}function TB(){const e=[{icon:hn,label:"Support NGO capacity building programs"},{icon:fs,label:"Fund training for community leaders"},{icon:tl,label:"Strengthen governance across the sector"},{icon:Nr,label:"Enable community-driven initiatives"}];return u.jsxs("section",{className:"py-20 sm:py-28 relative overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:"https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=1200&q=80",alt:"Community",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-700/95 to-purple-900/95"})]}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[u.jsxs(K.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-4",children:"Support Our Mission"}),u.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-white mb-6",children:"Help Us Strengthen NGOs Across Barbados"}),u.jsx("p",{className:"text-lg text-white/80 mb-8 leading-relaxed",children:"Your contribution directly supports the development and sustainability of non-governmental organizations working to improve lives in communities across Barbados."}),u.jsx("div",{className:"grid sm:grid-cols-2 gap-4 mb-8",children:e.map((t,n)=>u.jsxs(K.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-10 h-10 bg-white/20 rounded-lg flex items-center justify-center",children:u.jsx(t.icon,{className:"w-5 h-5 text-white"})}),u.jsx("span",{className:"text-white/90 text-sm",children:t.label})]},t.label))}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsxs(Ze,{page:"Donate",variant:"white",size:"large",children:[u.jsx(Nr,{className:"w-5 h-5"}),"Donate Now"]}),u.jsx(Ze,{page:"Membership",variant:"ghost",size:"large",className:"text-white border-white/30 hover:bg-white/10",children:"Become a Member"})]})]}),u.jsxs(K.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8 shadow-2xl",children:[u.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Make a Difference Today"}),u.jsxs("div",{className:"space-y-4 mb-6",children:[u.jsx("div",{className:"grid grid-cols-3 gap-3",children:["$25","$50","$100"].map(t=>u.jsx("button",{className:"py-3 px-4 border-2 border-gray-200 rounded-xl font-semibold text-gray-700 hover:border-purple-500 hover:text-purple-700 transition-colors",children:t},t))}),u.jsx("button",{className:"w-full py-3 px-4 border-2 border-gray-200 rounded-xl font-semibold text-gray-700 hover:border-purple-500 hover:text-purple-700 transition-colors",children:"Custom Amount"})]}),u.jsxs("div",{className:"flex gap-4 mb-6",children:[u.jsx("button",{className:"flex-1 py-3 px-4 bg-purple-50 text-purple-700 rounded-xl font-semibold border-2 border-purple-500",children:"One-Time"}),u.jsx("button",{className:"flex-1 py-3 px-4 bg-gray-50 text-gray-600 rounded-xl font-semibold border-2 border-gray-200 hover:border-purple-500 hover:text-purple-700 transition-colors",children:"Monthly"})]}),u.jsx(Ze,{page:"Donate",variant:"primary",size:"large",className:"w-full justify-center",children:"Continue to Donate"}),u.jsx("p",{className:"text-center text-gray-500 text-xs mt-4",children:"Secure donation powered by trusted payment providers"})]})]})})]})}function iC({variant:e="default"}){const[t,n]=C.useState(""),[r,o]=C.useState(!1),[a,c]=C.useState(!1),[d,h]=C.useState(""),p=async m=>{if(m.preventDefault(),!!t){o(!0),h("");try{await tn.entities.NewsletterSubscriber.create({email:t,is_active:!0}),c(!0),n("")}catch{h("Something went wrong. Please try again.")}finally{o(!1)}}};return e==="compact"?u.jsxs("form",{onSubmit:p,className:"flex gap-2",children:[u.jsx(at,{type:"email",placeholder:"Enter your email",value:t,onChange:m=>n(m.target.value),className:"flex-1 bg-white/10 border-white/20 text-white placeholder:text-white/60",disabled:r||a}),u.jsx(Wt,{type:"submit",disabled:r||a,className:"bg-white text-purple-700 hover:bg-gray-100",children:r?u.jsx(Ma,{className:"w-4 h-4 animate-spin"}):a?u.jsx(Sr,{className:"w-4 h-4"}):"Subscribe"})]}):u.jsx("div",{className:"relative",children:u.jsx(tS,{mode:"wait",children:a?u.jsxs(K.div,{initial:{opacity:0,y:10}
393,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"text-center py-4",children:[u.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:u.jsx(Sr,{className:"w-8 h-8 text-green-600"})}),u.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-2",children:"You're subscribed!"}),u.jsx("p",{className:"text-gray-600 text-sm",children:"Thank you for joining our community."})]}):u.jsxs(K.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onSubmit:p,className:"space-y-4",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(Kp,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),u.jsx(at,{type:"email",placeholder:"Enter your email address",value:t,onChange:m=>n(m.target.value),className:"pl-12 h-12 text-base border-gray-200 focus:border-purple-500 focus:ring-purple-500",disabled:r})]}),u.jsx(Wt,{type:"submit",disabled:r,className:"h-12 px-8 bg-gradient-to-r from-purple-600 to-purple-700 hover:from-purple-700 hover:to-purple-800 text-white font-semibold rounded-lg transition-all duration-300 shadow-lg hover:shadow-purple-200",children:r?u.jsx(Ma,{className:"w-5 h-5 animate-spin"}):"Subscribe"})]}),d&&u.jsx("p",{className:"text-red-500 text-sm",children:d}),u.jsx("p",{className:"text-gray-500 text-xs",children:"By subscribing, you agree to receive updates from BANGO. Unsubscribe anytime."})]})})})}function _B(){const e=[{icon:Mh,label:"NGO sector updates"},{icon:Eu,label:"Funding opportunities"},{icon:qp,label:"Event notifications"},{icon:Zr,label:"Resources & guides"}];return u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-purple-50 to-yellow-50 rounded-3xl p-8 sm:p-12 lg:p-16",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-purple-100 text-purple-700 mb-4",children:"Stay Connected"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Subscribe to Our Newsletter"}),u.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Get the latest updates on NGO news, funding opportunities, training programs, and events delivered straight to your inbox."}),u.jsx("div",{className:"grid grid-cols-2 gap-4",children:e.map((t,n)=>u.jsxs(K.div,{initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:n*.1},className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white rounded-lg shadow-sm flex items-center justify-center",children:u.jsx(t.icon,{className:"w-4 h-4 text-purple-600"})}),u.jsx("span",{className:"text-gray-700 text-sm font-medium",children:t.label})]},t.label))})]}),u.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-white rounded-2xl p-6 sm:p-8 shadow-lg",children:[u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Join Our Community"}),u.jsx("p",{className:"text-gray-600 text-sm mb-6",children:"Be part of over 2,000 subscribers keeping up with Barbados' NGO sector."}),u.jsx(iC,{})]})]})})})})}function PB(){return u.jsxs("div",{children:[u.jsx(NB,{}),u.jsx(CB,{}),u.jsx(EB,{}),u.jsx(kB,{}),u.jsx(jB,{}),u.jsx(TB,{}),u.jsx(_B,{})]})}function RB(){const[e,t]=C.useState({organization_name:"",contact_person:"",email:"",phone:"",website:"",year_established:"",mission_statement:"",membership_type:"",staff_count:"",volunteer_count:""}),[n,r]=C.useState(!1),[o,a]=C.useState(!1),c=[{icon:fs,title:"Training & Education",description:"20% discount on all BANGO training programs and exclusive access to member-only workshops."},{icon:Yp,title:"Advocacy & Representation",description:"Your voice in national policy discussions and representation to government and donors."},{icon:Qp,title:"Networking Opportunities",description:"Connect with 150+ NGOs, attend exclusive networking events, and build partnerships."},{icon:Eu,title:"Funding Access",description:"Early access to funding opportunities, grant writing support, and donor introductions."},{icon:hn,title:"Resource Library",description:"Full access to templates, guides, toolkits, and operational resources."},{icon:yb,title:"Recognition & Credibility",description:"BANGO membership badge, annual awards eligibility, and enhanced credibility."}],d=[{type:"full",name:"Full Membership",description:"For registered NGOs operating in Barbados",price:"$250",period:"per year",features:["Full voting rights","All training discounts","Complete resource access","Board eligibility","Full representation"]},{type:"associate",name:"Associate Membership",description:"For community groups and emerging organizations",price:"$150",period:"per year",features:["Non-voting membership","15% training discount","Basic resource access","Networking events","Advisory support"]},{type:"individual",name:"Individual Membership",description:"For NGO professionals and supporters",price:"$75",period:"per year",features:["Personal membership","10% training discount","Newsletter access","Event invitations","Professional network"]}],h=async p=>{p.preventDefault(),r(!0);try{await tn.entities.MembershipApplication.create({...e,year_established:e.year_established?parseInt(e.year_established):null,staff_count:e.staff_count?parseInt(e.staff_count):null,volunteer_count:e.volunteer_count?parseInt(e.volunteer_count):null,status:"pending"}),a(!0),fo.success("Application submitted successfully!")}catch{fo.error("Something went wrong. Please try again.")}finally{r(!1)}};return o?u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-teal-50 to-white flex items-center justify-center px-4 pt-20",children:u.jsxs(K.div,{initial:{opacity:0,scale:.9}
393,animate:{opacity:1,scale:1},className:"bg-white rounded-3xl p-8 sm:p-12 shadow-xl max-w-md text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(Sr,{className:"w-10 h-10 text-green-600"})}),u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Application Received!"}),u.jsx("p",{className:"text-gray-600 mb-8",children:"Thank you for applying to join BANGO. Our team will review your application and contact you within 5-7 business days."}),u.jsx(Wt,{onClick:()=>a(!1),className:"bg-teal-600 hover:bg-teal-700",children:"Submit Another Application"})]})}):u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-blue-800 to-blue-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"w-20 h-20 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(hn,{className:"w-10 h-10 text-white"})}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Join the BANGO Family"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Become part of Barbados' largest network of non-governmental organizations and unlock resources to strengthen your impact."})]})]}),u.jsx("section",{className:"py-20 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-blue-100 text-blue-700 mb-4",children:"Member Benefits"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Why Join BANGO?"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Membership unlocks a world of resources, connections, and opportunities for your organization."})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((p,m)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.1},className:"bg-gray-50 rounded-2xl p-8 hover:bg-gradient-to-br hover:from-blue-50 hover:to-white transition-colors",children:[u.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-xl flex items-center justify-center mb-6",children:u.jsx(p.icon,{className:"w-7 h-7 text-blue-600"})}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:p.title}),u.jsx("p",{className:"text-gray-600",children:p.description})]},p.title))})]})}),u.jsx("section",{className:"py-20 bg-gray-50",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-yellow-100 text-yellow-800 mb-4",children:"Membership Options"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Choose Your Membership"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Select the membership type that best fits your organization's needs."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:d.map((p,m)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.1},className:`bg-white rounded-3xl p-8 border-2 ${m===0?"border-blue-500 shadow-xl":"border-gray-200"} relative`,children:[m===0&&u.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-4 py-1 bg-blue-500 text-white text-sm font-semibold rounded-full",children:"Most Popular"}),u.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:p.name}),u.jsx("p",{className:"text-gray-600 text-sm mb-6",children:p.description}),u.jsx("div",{className:"mb-6"}),u.jsxs(Wt,{onClick:()=>{t({...e,membership_type:p.type}),document.getElementById("application-form").scrollIntoView({behavior:"smooth"})},className:`w-full h-12 ${m===0?"bg-blue-600 hover:bg-blue-700 text-white":"bg-gray-100 hover:bg-gray-200 text-gray-900"}`,children:["Apply Now ",u.jsx(Oa,{className:"w-4 h-4 ml-2"})]})]}
393,p.type))})]})}),u.jsx("section",{id:"application-form",className:"py-20 bg-white",children:u.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-blue-100 text-blue-700 mb-4",children:"Apply Now"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Membership Application"}),u.jsx("p",{className:"text-lg text-gray-600",children:"Complete the form below to start your BANGO membership journey."})]}),u.jsxs(K.form,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},onSubmit:h,className:"bg-gray-50 rounded-3xl p-8 space-y-6",children:[u.jsxs("div",{children:[u.jsx(Ye,{children:"Membership Type *"}),u.jsxs(gl,{value:e.membership_type,onValueChange:p=>t({...e,membership_type:p}),required:!0,children:[u.jsx(No,{className:"mt-1",children:u.jsx(yl,{placeholder:"Select membership type"})}),u.jsxs(Co,{children:[u.jsx(dt,{value:"full",children:"Full Membership - $250/year"}),u.jsx(dt,{value:"associate",children:"Associate Membership - $150/year"}),u.jsx(dt,{value:"individual",children:"Individual Membership - $75/year"})]})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"org_name",children:"Organization Name *"}),u.jsx(at,{id:"org_name",value:e.organization_name,onChange:p=>t({...e,organization_name:p.target.value}),placeholder:"Your NGO name",className:"mt-1",required:!0})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"year",children:"Year Established"}),u.jsx(at,{id:"year",type:"number",value:e.year_established,onChange:p=>t({...e,year_established:p.target.value}),placeholder:"e.g., 2010",className:"mt-1"})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"contact",children:"Contact Person *"}),u.jsx(at,{id:"contact",value:e.contact_person,onChange:p=>t({...e,contact_person:p.target.value}),placeholder:"Full name",className:"mt-1",required:!0})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"email",children:"Email Address *"}),u.jsx(at,{id:"email",type:"email",value:e.email,onChange:p=>t({...e,email:p.target.value}),placeholder:"[email protected]",className:"mt-1",required:!0})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"phone",children:"Phone Number"}),u.jsx(at,{id:"phone",value:e.phone,onChange:p=>t({...e,phone:p.target.value}),placeholder:"+1 (246) 000-0000",className:"mt-1"})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"website",children:"Website"}),u.jsx(at,{id:"website",value:e.website,onChange:p=>t({...e,website:p.target.value}),placeholder:"https://yourorganization.org",className:"mt-1"})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"staff",children:"Number of Staff"}),u.jsx(at,{id:"staff",type:"number",value:e.staff_count,onChange:p=>t({...e,staff_count:p.target.value}),placeholder:"e.g., 10",className:"mt-1"})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"volunteers",children:"Number of Volunteers"}),u.jsx(at,{id:"volunteers",type:"number",value:e.volunteer_count,onChange:p=>t({...e,volunteer_count:p.target.value}),placeholder:"e.g., 50",className:"mt-1"})]})]}),u.jsxs("div",{children:[u.jsx(Ye,{htmlFor:"mission",children:"Organization Mission"}),u.jsx(zu,{id:"mission",value:e.mission_statement,onChange:p=>t({...e,mission_statement:p.target.value}),placeholder:"Briefly describe your organization's mission and the communities you serve...",className:"mt-1",rows:4})]}),u.jsx(Wt,{type:"submit",disabled:n,className:"w-full h-14 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold text-lg rounded-xl",children:n?u.jsx(Ma,{className:"w-6 h-6 animate-spin"}):u.jsx(u.Fragment,{children:"Submit Application"})}),u.jsx("p",{className:"text-center text-gray-500 text-sm",children:"Our team will review your application and contact you within 5-7 business days."})]})]})}),u.jsx("section",{className:"py-20 bg-gradient-to-r from-yellow-400 to-yellow-500",children:u.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-black mb-6",children:"Questions About Membership?"}),u.jsx("p",{className:"text-xl text-black/80 mb-8",children:"Our team is here to help you find the right membership option for your organization."}),u.jsx(Ze,{page:"Contact",variant:"white",size:"large",children:"Contact Us"})]})})]})}function AB(){const[e,t]=C.useState("all"),[n,r]=C.useState(""),{data:o=[],isLoading:a}=rl({queryKey:["news-articles"],queryFn:()=>tn.entities.NewsArticle.filter({},"-published_date"),initialData:[]}),c=[{id:1,title:"New Grant Opportunity for Environmental NGOs",excerpt:"The Caribbean Climate Action Fund announces $500,000 in grants for organizations working on climate adaptation and environmental conservation.",content:"Full article content here...",category:"funding",image_url:"https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?w=800&q=80",published_date:"2025-01-10",is_featured:!0,author:"BANGO Team"},{id:2,title:"BANGO Hosts Successful Governance Workshop",excerpt:"Over 50 NGO leaders participated in our latest governance workshop, learning best practices for board management and compliance.",content:"Full article content here...",category:"ngo_news",image_url:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&q=80",published_date:"2025-01-08",is_featured:!0,author:"BANGO Team"}
393,{id:3,title:"Government Announces NGO Support Initiative",excerpt:"The Ministry of Social Development unveils a new program to strengthen partnerships between government and civil society organizations.",content:"Full article content here...",category:"policy",image_url:"https://images.unsplash.com/photo-1577563908411-5077b6dc7624?w=800&q=80",published_date:"2025-01-05",is_featured:!1,author:"BANGO Team"},{id:4,title:"Spotlight: Youth Development NGO Transforms Communities",excerpt:"Learn how Youth Empowerment Barbados has impacted over 1,000 young people through innovative mentorship and skills training programs.",content:"Full article content here...",category:"success_story",image_url:"https://images.unsplash.com/photo-1529390079861-591de354faf5?w=800&q=80",published_date:"2025-01-03",is_featured:!1,author:"BANGO Team"},{id:5,title:"Registration Now Open: Annual NGO Forum 2025",excerpt:"Join us for the most anticipated event of the year. Early bird pricing available until February 15.",content:"Full article content here...",category:"announcement",image_url:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&q=80",published_date:"2025-01-01",is_featured:!0,author:"BANGO Team"},{id:6,title:"International Donor Expands Caribbean Funding",excerpt:"Major international foundation increases its funding commitment for civil society organizations in the Caribbean region.",content:"Full article content here...",category:"funding",image_url:"https://images.unsplash.com/photo-1579621970563-ebec7560ff3e?w=800&q=80",published_date:"2024-12-28",is_featured:!1,author:"BANGO Team"}],h=(o.length>0?o:c).filter(x=>{var w;const N=e==="all"||x.category===e,E=x.title.toLowerCase().includes(n.toLowerCase())||((w=x.excerpt)==null?void 0:w.toLowerCase().includes(n.toLowerCase()));return N&&E}),p=h.filter(x=>x.is_featured),m=h.filter(x=>!x.is_featured),y={ngo_news:{label:"NGO News",icon:Yp,color:"bg-blue-100 text-blue-700"},funding:{label:"Funding",icon:Eu,color:"bg-yellow-100 text-yellow-800"},policy:{label:"Policy",icon:Zr,color:"bg-blue-100 text-blue-700"},announcement:{label:"Announcement",icon:Mh,color:"bg-yellow-100 text-yellow-800"},success_story:{label:"Success Story",icon:Rj,color:"bg-blue-100 text-blue-700"}};return u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-indigo-800 to-purple-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-6",children:"News & Updates"}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Stay Informed"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"The latest news, funding opportunities, policy updates, and success stories from Barbados' NGO sector."})]})]}),u.jsx("section",{className:"py-8 bg-white border-b border-gray-100 sticky top-20 z-40",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(kb,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),u.jsx(at,{placeholder:"Search news...",value:n,onChange:x=>r(x.target.value),className:"pl-12 h-12"})]}),u.jsxs(gl,{value:e,onValueChange:t,children:[u.jsx(No,{className:"w-full sm:w-48 h-12",children:u.jsx(yl,{placeholder:"Category"})}),u.jsxs(Co,{children:[u.jsx(dt,{value:"all",children:"All Categories"}),u.jsx(dt,{value:"ngo_news",children:"NGO News"}),u.jsx(dt,{value:"funding",children:"Funding Opportunities"}),u.jsx(dt,{value:"policy",children:"Policy Updates"}),u.jsx(dt,{value:"announcement",children:"Announcements"}),u.jsx(dt,{value:"success_story",children:"Success Stories"})]})]})]})})}),p.length>0&&u.jsx("section",{className:"py-16 bg-gray-50",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"Featured Stories"}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:p.slice(0,3).map((x,N)=>{var E,w;return u.jsxs(K.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:N*.1},className:`bg-white rounded-2xl overflow-hidden shadow-lg hover:shadow-xl transition-shadow group ${N===0?"lg:col-span-2 lg:row-span-2":""}`,children:[u.jsxs("div",{className:`relative ${N===0?"h-64 lg:h-full":"h-48"} overflow-hidden`,children:[u.jsx("img",{src:x.image_url,alt:x.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),u.jsxs("div",{className:"absolute bottom-4 left-4 right-4",children:[u.jsx("span",{className:`inline-block px-3 py-1 rounded-full text-xs font-semibold ${(E=y[x.category])==null?void 0:E.
393color} mb-2`,children:(w=y[x.category])==null?void 0:w.label}),u.jsx("h3",{className:`font-bold text-white ${N===0?"text-2xl":"text-lg"}`,children:x.title})]})]}),N!==0&&u.jsxs("div",{className:"p-4",children:[u.jsx("p",{className:"text-gray-600 text-sm line-clamp-2 mb-3",children:x.excerpt}),u.jsxs("div",{className:"flex items-center justify-between text-sm",children:[u.jsx("span",{className:"text-gray-500",children:x.published_date&&Ya(Vp(x.published_date),"MMM d, yyyy")}),u.jsxs("span",{className:"text-blue-600 font-medium flex items-center gap-1 group-hover:gap-2 transition-all",children:["Read More ",u.jsx(Oa,{className:"w-4 h-4"})]})]})]})]},x.id)})})]})}),u.jsx("section",{className:"py-16 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[u.jsxs("div",{className:"lg:col-span-2",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"Latest News"}),u.jsx("div",{className:"space-y-6",children:(p.length>0?m:h).map((x,N)=>{var E,w;return u.jsxs(K.article,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:N*.05},className:"flex flex-col sm:flex-row gap-6 bg-white rounded-xl border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow group",children:[u.jsx("div",{className:"sm:w-48 h-48 sm:h-auto flex-shrink-0",children:u.jsx("img",{src:x.image_url,alt:x.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),u.jsxs("div",{className:"flex-1 p-6 sm:p-4 sm:py-6",children:[u.jsx("span",{className:`inline-block px-2 py-1 rounded-full text-xs font-semibold ${(E=y[x.category])==null?void 0:E.color} mb-2`,children:(w=y[x.category])==null?void 0:w.label}),u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2 group-hover:text-teal-700 transition-colors",children:x.title}),u.jsx("p",{className:"text-gray-600 text-sm mb-4 line-clamp-2",children:x.excerpt}),u.jsxs("div",{className:"flex items-center justify-between text-sm",children:[u.jsxs("div",{className:"flex items-center gap-4 text-gray-500",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(qp,{className:"w-4 h-4"}),x.published_date&&Ya(Vp(x.published_date),"MMM d, yyyy")]}),u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Ij,{className:"w-4 h-4"}),x.author]})]}),u.jsxs("span",{className:"text-blue-600 font-medium flex items-center gap-1 group-hover:gap-2 transition-all",children:["Read ",u.jsx(Oa,{className:"w-4 h-4"})]})]})]})]},x.id)})})]}),u.jsxs("div",{className:"space-y-8",children:[u.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-gradient-to-br from-blue-700 to-blue-800 rounded-2xl p-6 text-white",children:[u.jsx(Mh,{className:"w-10 h-10 mb-4"}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Subscribe to Our Newsletter"}),u.jsx("p",{className:"text-white/80 text-sm mb-4",children:"Get the latest NGO news, funding opportunities, and updates delivered to your inbox."}),u.jsx(iC,{variant:"compact"})]}),u.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.1},className:"bg-white rounded-2xl border border-gray-200 p-6",children:[u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Categories"}),u.jsx("div",{className:"space-y-2",children:Object.entries(y).map(([x,N])=>u.jsxs("button",{onClick:()=>t(x),className:`w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-colors ${e===x?"bg-blue-50 text-blue-700":"hover:bg-gray-50 text-gray-600"}`,children:[u.jsx(N.icon,{className:"w-5 h-5"}),u.jsx("span",{className:"font-medium",children:N.label})]},x))})]}),u.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.2},className:"bg-yellow-50 rounded-2xl p-6",children:[u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Quick Access"}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("a",{href:"#",className:"block text-yellow-800 hover:text-yellow-900 font-medium",children:"→ Current Funding Opportunities"}),u.jsx("a",{href:"#",className:"block text-yellow-800 hover:text-yellow-900 font-medium",children:"→ Upcoming Events"}),u.jsx("a",{href:"#",className:"block text-yellow-800 hover:text-yellow-900 font-medium",children:"→ Policy Updates"}),u.jsx("a",{href:"#",className:"block text-yellow-800 hover:text-yellow-900 font-medium",children:"→ BANGO Announcements"})]})]})]})]})})})]})}function OB(){var N;const[e,t]=C.useState(""),[n,r]=C.useState("all"),{data:o=[],isLoading:a}=rl({queryKey:["resources"],queryFn:()=>tn.entities.Resource.list(),initialData:[]}),c=[{id:"starting_ngo",label:"Starting an NGO",icon:hn,color:"blue",description:"Step-by-step guid
393ance for establishing your organization"},{id:"governance",label:"Governance",icon:Tj,color:"blue",description:"Board management, policies, and compliance tools"},{id:"funding",label:"Funding & Financing",icon:Eu,color:"yellow",description:"Grants, donor readiness, and partnership resources"},{id:"sustainability",label:"Sustainability",icon:fs,color:"yellow",description:"Business models and long-term planning"},{id:"templates",label:"Templates",icon:Zr,color:"blue",description:"Ready-to-use documents and forms"},{id:"guides",label:"Guides",icon:fs,color:"yellow",description:"Comprehensive how-to guides and manuals"}],d=[{id:1,title:"NGO Registration Guide for Barbados",description:"Complete step-by-step guide to registering your NGO with the relevant authorities in Barbados.",category:"starting_ngo",resource_type:"pdf",is_member_only:!1},{id:2,title:"Board Governance Handbook",description:"Best practices for effective board governance, roles, responsibilities, and decision-making.",category:"governance",resource_type:"pdf",is_member_only:!0},{id:3,title:"Grant Proposal Template",description:"Professional grant proposal template with guidelines for writing compelling funding requests.",category:"funding",resource_type:"document",is_member_only:!1},{id:4,title:"Financial Policy Templates",description:"Essential financial policies including procurement, expense management, and audit procedures.",category:"templates",resource_type:"document",is_member_only:!0},{id:5,title:"Donor Database Tracker",description:"Spreadsheet template for tracking donor relationships, contributions, and communications.",category:"funding",resource_type:"spreadsheet",is_member_only:!1},{id:6,title:"Strategic Planning Workbook",description:"Interactive workbook to guide your organization through the strategic planning process.",category:"sustainability",resource_type:"pdf",is_member_only:!0},{id:7,title:"Volunteer Management Guide",description:"Comprehensive guide to recruiting, training, and retaining volunteers effectively.",category:"guides",resource_type:"pdf",is_member_only:!1},{id:8,title:"Annual Report Template",description:"Professional annual report template with sections for impact stories, financials, and goals.",category:"templates",resource_type:"document",is_member_only:!1},{id:9,title:"Bylaws Template",description:"Standard bylaws template for non-profit organizations in Barbados.",category:"governance",resource_type:"document",is_member_only:!0},{id:10,title:"Social Enterprise Business Model Canvas",description:"Framework for developing sustainable income-generating activities for your NGO.",category:"sustainability",resource_type:"pdf",is_member_only:!1}],p=(o.length>0?o:d).filter(E=>{var b;const w=n==="all"||E.category===n,S=E.title.toLowerCase().includes(e.toLowerCase())||((b=E.description)==null?void 0:b.toLowerCase().includes(e.toLowerCase()));return w&&S}),m={starting_ngo:{bg:"bg-blue-100",text:"text-blue-700",icon:"bg-blue-500"},governance:{bg:"bg-blue-100",text:"text-blue-700",icon:"bg-blue-500"},funding:{bg:"bg-yellow-100",text:"text-yellow-800",icon:"bg-yellow-500"},sustainability:{bg:"bg-yellow-100",text:"text-yellow-800",icon:"bg-yellow-500"},templates:{bg:"bg-blue-100",text:"text-blue-700",icon:"bg-blue-500"},guides:{bg:"bg-yellow-100",text:"text-yellow-800",icon:"bg-yellow-500"}},y={pdf:Zr,document:Zr,spreadsheet:Zr,video:Zr,link:Hk},x=[{title:"Register Your NGO",description:"Complete legal registration and establish your organization officially."},{title:"Build Your Foundation",description:"Develop governance structure, policies, and operational procedures."},{title:"Secure Funding",description:"Access grants, build donor relationships, and diversify revenue."},{title:"Ensure Sustainability",description:"Create long-term strategies for impact and organizational health."}];return u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-purple-800 to-indigo-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
393ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-6",children:"NGO Support & Resources"}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Everything You Need to Succeed"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Access guides, templates, toolkits, and expert resources to help your NGO grow and create lasting impact."})]})]}),u.jsx("section",{className:"py-16 bg-white border-b border-gray-100",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-12",children:"Your NGO Success Journey"}),u.jsx("div",{className:"grid md:grid-cols-4 gap-6",children:x.map((E,w)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.1},className:"relative",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[u.jsx("div",{className:"w-10 h-10 bg-blue-600 rounded-full flex items-center justify-center text-white font-bold",children:w+1}),w<3&&u.jsx("div",{className:"hidden md:block flex-1 h-0.5 bg-blue-200"})]}),u.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:E.title}),u.jsx("p",{className:"text-gray-600 text-sm",children:E.description})]},E.title))})]})}),u.jsx("section",{className:"py-16 bg-gray-50",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"Browse by Category"}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map((E,w)=>u.jsxs(K.button,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.05},onClick:()=>r(E.id),className:`p-6 rounded-2xl text-left transition-all ${n===E.id?`${m[E.id].bg} border-2 border-current ${m[E.id].text}`:"bg-white border border-gray-200 hover:shadow-lg"}`,children:[u.jsx("div",{className:`w-12 h-12 ${m[E.id].icon} rounded-xl flex items-center justify-center mb-4`,children:u.jsx(E.icon,{className:"w-6 h-6 text-white"})}),u.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:E.label}),u.jsx("p",{className:"text-gray-600 text-sm",children:E.description})]},E.id))})]})}),u.jsx("section",{className:"py-8 bg-white border-b border-gray-100 sticky top-20 z-40",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(kb,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),u.jsx(at,{placeholder:"Search resources...",value:e,onChange:E=>t(E.target.value),className:"pl-12 h-12"})]}),u.jsxs(gl,{value:n,onValueChange:r,children:[u.jsx(No,{className:"w-full sm:w-48 h-12",children:u.jsx(yl,{placeholder:"Category"})}),u.jsxs(Co,{children:[u.jsx(dt,{value:"all",children:"All Categories"}),c.map(E=>u.jsx(dt,{value:E.id,children:E.label},E.id))]})]})]})})}),u.jsx("section",{className:"py-16 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-8",children:[u.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:n==="all"?"All Resources":(N=c.find(E=>E.id===n))==null?void 0:N.label}),u.jsxs("span",{className:"text-gray-500",children:[p.length," resources"]})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:p.map((E,w)=>{var b,j,T,_;const S=y[E.resource_type]||Zr;return u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.05},className:"bg-white rounded-2xl border border-gray-200 p-6 hover:shadow-lg transition-all group",children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsx("div",{className:`w-12 h-12 ${((b=m[E.category])==null?void 0:b.icon)||"bg-gray-500"} rounded-xl flex items-center justify-center`,children:u.jsx(S,{className:"w-6 h-6 text-white"})}),E.is_member_only&&u.jsxs("span",{className:"flex items-center gap-1 px-2 py-1 bg-orange-100 text-orange-700 rounded-full text-xs font-semibold",children:[u.jsx(dj,{className:"w-3 h-3"}),"Members Only"]})]}),u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2 group-hover:text-teal-700 transition-colors",children:E.title}),u.jsx("p",{className:"text-gray-600 text-sm mb-4 line-clamp-2",children:E.description}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${(j=m[E.category])==null?void 0:j.bg}
393 ${(T=m[E.category])==null?void 0:T.text}`,children:(_=c.find(R=>R.id===E.category))==null?void 0:_.label}),u.jsxs(Wt,{variant:"ghost",size:"sm",className:"text-blue-600 hover:text-blue-700 hover:bg-blue-50",children:[u.jsx($k,{className:"w-4 h-4 mr-2"}),"Download"]})]})]},E.id)})}),p.length===0&&u.jsxs("div",{className:"text-center py-12",children:[u.jsx(Zk,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),u.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"No resources found"}),u.jsx("p",{className:"text-gray-600",children:"Try adjusting your search or filter criteria."})]})]})}),u.jsx("section",{className:"py-20 bg-gradient-to-br from-blue-700 to-blue-800",children:u.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-3xl p-8 sm:p-12 text-center",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-4",children:"Member Benefit"}),u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white mb-4",children:"Unlock All Resources as a Member"}),u.jsx("p",{className:"text-lg text-white/80 mb-8",children:"BANGO members get full access to our complete resource library, including exclusive templates, guides, and premium tools."}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[u.jsx(Ze,{page:"Membership",variant:"white",size:"large",children:"Become a Member"}),u.jsx(Ze,{page:"Contact",variant:"ghost",size:"large",className:"text-white border-white/30 hover:bg-white/10",children:"Request a Resource"})]})]})})})]})}function MB(){const e=[{title:"How to Start an NGO",description:"Complete guide to establishing and registering a non-governmental organization in Barbados.",duration:"2 days",format:"In-person"},{title:"NGO Governance & Compliance",description:"Best practices for board governance, legal compliance, and regulatory requirements.",duration:"1 day",format:"Hybrid"},{title:"Financial Management",description:"Accounting, budgeting, and financial reporting for non-profit organizations.",duration:"3 days",format:"In-person"},{title:"Fundraising & Donor Engagement",description:"Strategies for successful fundraising and building lasting donor relationships.",duration:"2 days",format:"Online"},{title:"Accessing Grants & Financing",description:"How to identify, apply for, and manage grant funding opportunities.",duration:"1 day",format:"Online"},{title:"Monitoring, Evaluation & Reporting",description:"Measuring impact, tracking outcomes, and reporting to stakeholders.",duration:"2 days",format:"Hybrid"},{title:"Strategic Planning",description:"Developing vision, mission, and multi-year strategic plans for NGOs.",duration:"2 days",format:"In-person"},{title:"Project Management",description:"Planning, implementing, and managing successful community projects.",duration:"3 days",format:"Hybrid"}],t=[{icon:io,title:"In-Person Workshops",description:"Interactive face-to-face training sessions at our conference centre with hands-on activities and networking opportunities.",features:["Small group sizes","Practical exercises","Networking breaks","Certificate of completion"]},{icon:wj,title:"Online Courses",description:"Flexible self-paced learning modules accessible from anywhere, designed for busy professionals.",features:["Learn at your pace","Video lessons","Interactive quizzes","Downloadable resources"]},{icon:hn,title:"Hybrid Learning",description:"Combination of online preparatory work and in-person intensive sessions for comprehensive learning.",features:["Pre-course modules","Live sessions","Group projects","Ongoing support"]}],n=[{title:"NGO Governance Workshop",date:"February 15, 2025",time:"9:00 AM - 4:00 PM",location:"BANGO Centre, Bridgetown",price:"$150"},{title:"Grant Writing Masterclass",date:"February 28, 2025",time:"2:00 PM - 5:00 PM",location:"Online (Zoom)",price:"$75"},{title:"Financial Management for NGOs",date:"March 10-12, 2025",time:"9:00 AM - 3:00 PM",location:"BANGO Centre, Bridgetown",price:"$350"}];return u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-blue-800 to-blue-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
393ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-6",children:"Training & Capacity Building"}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Equipping NGOs for Excellence"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto mb-8",children:"Professional development programs designed to give NGO leaders and staff the practical skills and knowledge they need to succeed."}),u.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"flex flex-wrap justify-center gap-4",children:[u.jsx(Ze,{page:"Events",variant:"white",size:"large",children:"View Training Calendar"}),u.jsx(Ze,{page:"Membership",variant:"ghost",size:"large",className:"text-white border-white/30 hover:bg-white/10",children:"Member Discounts"})]})]})]}),u.jsx("section",{className:"py-12 bg-white border-b border-gray-100",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 text-center",children:[{value:"500+",label:"Professionals Trained"},{value:"25+",label:"Training Programs"},{value:"95%",label:"Satisfaction Rate"},{value:"150+",label:"NGOs Served"}].map((r,o)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},children:[u.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-blue-700",children:r.value}),u.jsx("div",{className:"text-gray-600 text-sm mt-1",children:r.label})]},r.label))})})}),u.jsx("section",{className:"py-20 sm:py-28 bg-gray-50",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-blue-100 text-blue-700 mb-4",children:"Training Topics"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Comprehensive Curriculum"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"From governance to fundraising, our training programs cover every aspect of NGO management."})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map((r,o)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.05},className:"bg-white rounded-2xl p-6 shadow-sm hover:shadow-lg transition-all duration-300 border border-gray-100 group",children:[u.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4 group-hover:bg-blue-500 transition-colors",children:u.jsx(fs,{className:"w-6 h-6 text-blue-600 group-hover:text-white transition-colors"})}),u.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:r.title}),u.jsx("p",{className:"text-gray-600 text-sm mb-4",children:r.description}),u.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[u.jsxs("span",{className:"flex items-center gap-1 text-gray-500",children:[u.jsx(Gp,{className:"w-4 h-4"}),r.duration]}),u.jsx("span",{className:"px-2 py-1 bg-gray-100 rounded-full text-xs font-medium text-gray-600",children:r.format})]})]},r.title))})]})}),u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-blue-100 text-blue-700 mb-4",children:"Flexible Learning"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Choose Your Learning Style"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"We offer multiple training formats to suit your schedule and learning preferences."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((r,o)=>u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gradient-to-br from-gray-50 to-white rounded-3xl p-8 border border-gray-100 hover:shadow-xl transition-all duration-300",children:[u.jsx("div",{className:"w-16 h-16 bg-blue-100 rounded-2xl flex items-center justify-center mb-6",children:u.jsx(r.icon,{className:"w-8 h-8 text-blue-600"})}),u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:r.title}),u.jsx("p",{className:"text-gray-600 mb-6",children:r.description}),u.jsx("ul",{className:"space-y-3",children:r.features.map((a,c)=>u.jsxs("li",{className:"flex items-center gap-3 text-sm text-gray-700",children:[u.jsx(Sr,{className:"w-5 h-5 text-blue-600"}),a]},c))})]},r.title))})]})}),u.jsx("section",{className:"py-20 sm:py-28 bg-gradient-to-br from-blue-900 to-blue-800",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-4",children:"Coming Soon"}),u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-4",children:"Upcoming Sessions"}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Register for Training"}),u.jsx("p",{className:"text-lg text-white/80 max-w-2xl mx-auto",children:"Secure your spot in our upcoming training programs."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:n.map((r,o)=>u.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-white rounded-2xl p-6 shadow-xl",children:u.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:r.title})},r.title))}),u.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mt-12",children:u.jsx(Ze,{page:"Events",variant:"white",size:"large",children:"View Full Training Calendar"})})]})}),u.jsx("section",{className:"py-20 bg-white",children:u.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"bg-gradient-to-br from-yellow-50 to-yellow-100 rounded-3xl p-8 sm:p-12 text-center",children:[u.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-yellow-200 text-yellow-900 mb-4",children:"Member Benefit"}),u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-gray-900 mb-4",children:"BANGO Members Save 20% on All Training"}),u.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Join BANGO to access discounted training rates, exclusive workshops, and member-only learning resources."}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[u.jsx(Ze,{page:"Membership",variant:"yellow",size:"large",children:"Become a Member"}),u.jsx(Ze,{page:"Contact",variant:"outline",size:"large",children:"Learn More"})]})]})})})]})}function DB(){const e=[{id:"capacity",icon:vb,title:"NGO Capacity Building",color:"blue",description:"We strengthen the organizational foundations of NGOs, helping them build robust systems, effective governance, and sustainable operations.",features:["Organizational assessments and diagnostics","Governance structure development","Policy and procedure frameworks","Leadership development programs","Board effectiveness training","Strategic planning support"]},{id:"training",icon:bb,title:"Training & Education",color:"yellow",description:"Comprehensive professional development programs designed to equip NGO leaders and staff with essential skills for success.",features:["How to start and register an NGO","Financial management workshops","Project management certification","Monitoring and evaluation training","Digital transformation courses","Compliance and reporting workshops"]},{id:"advocacy",icon:Eb,title:"Advocacy & Representation",color:"blue",description:"We serve as the collective voice of NGOs in Barbados, advocating for policies that support a thriving civil society sector.",features:["Policy dialogue with government","Representation at national forums","Research and position papers","Stakeholder engagement","Legislative advocacy","Public awareness campaigns"]},{id:"collaboration",icon:Qp,title:"Collaboration & Networking",color:"yellow",description:"Building bridges between NGOs and connecting them with partners, donors, corporations, and international organizations.",features:["NGO networking events","Partnership facilitation","Donor introductions","Corporate engagement programs","International network access","Joint initiative coordination"]},{id:"sustainability",icon:ku,title:"Sustainability & Growth",color:"blue",description:"Helping NGOs transition from survival mode to long-term sustainability through diversified funding and strategic growth.",features:["Fundraising strategy development","Grant writing support","Social enterprise models","Revenue diversification","Impact measurement frameworks","Long-term planning support"]}],t={blue:{bg:"bg-blue-500",light:"bg-blue-50",text:"text-blue-700",border:"border-blue-200"},yellow:{bg:"bg-yellow-500",light:"bg-yellow-50",text:"text-yellow-800",border:"border-yellow-200"}};return u.jsxs("div",{children:[u.jsxs("section",{className:"relative py-24 sm:py-32 bg-gradient-to-br from-blue-800 to-blue-900 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-10",children:u.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
393ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx(K.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"inline-block px-4 py-1.5 rounded-full text-sm font-semibold bg-white/20 text-white mb-6",children:"What We Do"}),u.jsx(K.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:"Comprehensive Support for NGOs"}),u.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-xl text-white/80 max-w-3xl mx-auto",children:"From capacity building to advocacy, we provide the tools, resources, and support NGOs need to create lasting positive change in Barbados."})]})]}),u.jsx("section",{className:"py-20 sm:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx("div",{className:"grid md:grid-cols-5 gap-4 mb-16",children:e.map((n,r)=>u.jsxs(K.a,{href:`#${n.id}`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:`p-4 rounded-xl ${t[n.color].light} hover:shadow-md transition-all text-center group`,children:[u.jsx("div",{className:`w-12 h-12 ${t[n.color].bg} rounded-xl flex items-center justify-center mx-auto mb-3 group-hover:scale-110 transition-transform`,children:u.jsx(n.icon,{className:"w-6 h-6 text-white"})}),u.jsx("h3",{className:`font-semibold ${t[n.color].text} text-sm`,children:n.title})]},n.id))}),u.jsx("div",{className:"space-y-24",children:e.map((n,r)=>u.jsxs(K.div,{id:n.id,initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},className:`grid lg:grid-cols-2 gap-12 items-center ${r%2===1?"lg:flex-row-reverse":""}`,children:[u.jsxs("div",{className:r%2===1?"lg:order-2":"",children:[u.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full ${t[n.color].light} ${t[n.color].text} text-sm font-semibold mb-4`,children:[u.jsx(n.icon,{className:"w-4 h-4"}),n.title]}),u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:n.title}),u.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed",children:n.description}),u.jsx("div",{className:"grid sm:grid-cols-2 gap-4 mb-8",children:n.features.map((o,a)=>u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx(Sr,{className:`w-5 h-5 ${t[n.color].text} flex-shrink-0 mt-0.5`}),u.jsx("span",{className:"text-gray-700 text-sm",children:o})]},a))}),u.jsx(Ze,{page:"Contact",variant:"outline",children:"Learn More"})]}),u.jsx("div",{className:`relative ${r%2===1?"lg:order-1":""}`,children:u.jsx("div",{className:`${t[n.color].light} rounded-3xl p-8 aspect-square flex items-center justify-center`,children:u.jsx("div",{className:`w-32 h-32 ${t[n.color].bg} rounded-3xl flex items-center justify-center`,children:u.jsx(n.icon,{className:"w-16 h-16 text-white"})})})})]},n.id))})]})}),u.jsx("section",{className:"py-20 bg-gradient-to-r from-blue-700 to-blue-800",children:u.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Ready to Strengthen Your NGO?"}),u.jsx("p",{className:"text-xl text-white/90 mb-8",children:"Connect with BANGO today to learn how we 
393can support your organization's growth and impact."}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[u.jsx(Ze,{page:"Contact",variant:"white",size:"large",children:"Contact Us"}),u.jsx(Ze,{page:"Membership",variant:"ghost",size:"large",className:"text-white border-white/30 hover:bg-white/10",children:"Join BANGO"})]})]})})]})}function LB({children:e,currentPageName:t}){const[n,r]=C.useState(!1),[o,a]=C.useState(!1),c=[{name:"Home",page:"Home"},{name:"About Us",page:"About"},{name:"What We Do",page:"WhatWeDo"},{name:"Training",page:"Training"},{name:"Events",page:"Events"},{name:"Resources",page:"Resources"},{name:"News",page:"News"},{name:"Membership",page:"Membership"},{name:"Donate",page:"Donate"},{name:"Contact",page:"Contact"}];return u.jsxs("div",{className:"min-h-screen bg-white",children:[u.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md border-b border-gray-100",children:[u.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"flex items-center justify-between h-20",children:[u.jsxs(St,{to:Nt("Home"),className:"flex items-center gap-3",children:[u.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/697e86af7261a6f5f8efd2ca/16ca911f8_107F04EC-383F-40B3-9A6F-CF4F85C7835F.png",alt:"BANGO Logo",className:"h-14 w-auto"}),u.jsxs("div",{className:"hidden sm:block",children:[u.jsx("span",{className:"text-lg font-bold text-gray-900 tracking-tight",children:"BANGO"}),u.jsx("p",{className:"text-xs text-gray-500 -mt-0.5",children:"Barbados Association of NGOs"})]})]}),u.jsx("div",{className:"hidden lg:flex items-center gap-1",children:c.slice(0,7).map(d=>
393u.jsx(St,{to:Nt(d.page),className:`px-3 py-2 text-sm font-medium rounded-lg transition-all duration-200 ${t===d.page?"text-blue-700 bg-blue-50":"text-gray-600 hover:text-blue-700 hover:bg-gray-50"}`,children:d.name},d.page))}),u.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[u.jsx(St,{to:Nt("Membership"),className:"px-4 py-2.5 text-sm font-semibold text-blue-700 hover:text-blue-800 transition-colors",children:"Join BANGO"}),u.jsxs(St,{to:Nt("Donate"),className:"px-5 py-2.5 text-sm font-semibold text-black bg-gradient-to-r from-yellow-400 to-yellow-500 rounded-full hover:shadow-lg hover:shadow-yellow-200 transition-all duration-300 flex items-center gap-2",children:[u.jsx(Nr,{className:"w-4 h-4"}),"Donate"]})]}),u.jsx("button",{onClick:()=>r(!n),className:"lg:hidden p-2 text-gray-600 hover:text-gray-900 rounded-lg hover:bg-gray-100",children:n?u.jsx(Tb,{className:"w-6 h-6"}):u.jsx(gj,{className:"w-6 h-6"})})]})}),u.jsx(tS,{children:n&&u.jsx(K.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-white border-t border-gray-100 overflow-hidden",children:u.jsxs("div",{className:"px-4 py-4 space-y-1",children:[c.map(d=>u.jsx(St,{to:Nt(d.page),onClick:()=>r(!1),className:`block px-4 py-3 rounded-lg text-base font-medium ${t===d.page?"text-blue-700 bg-blue-50":"text-gray-600 hover:bg-gray-50"}`,children:d.name},d.page)),u.jsx("div",{className:"pt-4 flex flex-col gap-3",children:u.jsx(St,{to:Nt("Donate"),onClick:()=>r(!1),className:"w-full py-3 text-center font-semibold text-black bg-gradient-to-r from-yellow-400 to-yellow-500 rounded-full",children:"Donate Now"})})]})})})]}),u.jsx("main",{className:"pt-20",children:e}),u.jsx("footer",{className:"bg-gray-900 text-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs("div",{className:"py-16 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[u.jsxs("div",{className:"lg:col-span-1",children:[u.jsx("div",{className:"flex items-center gap-3 mb-6",children:u.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/697e86af7261a6f5f8efd2ca/16ca911f8_107F04EC-383F-40B3-9A6F-CF4F85C7835F.png",alt:"BANGO Logo",className:"h-12 w-auto"})}),u.jsx("p",{className:"text-gray-400 text-sm leading-relaxed mb-6",children:"Strengthening NGOs, empowering communities, and building a sustainable Barbados through collaboration and capacity building."}),u.jsx("div",{className:"flex gap-3",children:[wb,jb,Nb,Cb].map((d,h)=>u.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-gray-800 hover:bg-blue-600 flex items-center justify-center transition-colors",children:u.jsx(d,{className:"w-4 h-4"})},h))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-sm font-semibold uppercase tracking-wider text-gray-400 mb-6",children:"Quick Links"}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx(St,{to:Nt("About"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"About Us"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("WhatWeDo"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"What We Do"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("Training"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"Training"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("Events"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"Events"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("Membership"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"Membership"})})]})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-sm font-semibold uppercase tracking-wider text-gray-400 mb-6",children:"Resources"}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx(St,{to:Nt("Resources"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"NGO Resources"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("News"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"News & Updates"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("Resources"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"Funding Opportunities"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("Donate"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"Donate"})}),u.jsx("li",{children:u.jsx(St,{to:Nt("Contact"),className:"text-gray-300 hover:text-white transition-colors text-sm",children:"Contact Us"})})]})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-sm font-semibold uppercase tracking-wider text-gray-400 mb-6",children:"Contact Us"}),u.jsxs("ul",{className:"space-y-4",children:[u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx(io,{className:"w-5 h-5 text-yellow-500 flex-shrink-0 mt-0.5"}),u.jsx("span",{className:"text-gray-300 text-sm",children:"Bridgetown, Barbados"})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx(Dh,{className:"w-5 h-5 text-yellow-500 flex-shrink-0"}),u.jsx("span",{className:"text-gray-300 text-sm",children:"+1 (246) 555-0123"})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx(Kp,{className:"w-5 h-5 text-yellow-500 flex-shrink-0"}),u.jsx("span",{className:"text-gray-300 text-sm",children:"[email protected]"})]})]})]})]}),u.jsxs("div",{className:"py-6 border-t border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-4",children:[u.jsxs("p",{className:"text-gray-500 text-sm",children:["© ",new Date().getFullYear()," BANGO – Barbados Association of NGOs. All rights reserved."]}),u.jsxs("div",{className:"flex gap-6 text-sm text-gray-500",children:[u.jsx("a",{href:"#",className:"hover:text-gray-300 transition-colors",children:"Privacy Policy"}),u.jsx("a",{href:"#",className:"hover:text-gray-300 transition-colors",children:"Terms of Service"})]})]})]})})]})}const IB={About:gL,Contact:YI,Donate:QI,Events:SB,Home:PB,Membership:RB,News:AB,Resources:OB,Training:MB,WhatWeDo:DB},oC={mainPage:"Home",Pages:IB,Layout:LB};function FB(){const e=go(),{isAuthenticated:t}=J1(),{Pages:n,mainPage:r}=oC,o=r;return C.useEffect(()=>{const a=e.pathname;let c;if(a==="/"||a==="")c=o;else{const d=a.replace(/^\//,"").split("/")[0];c=Object.keys(n).find(m=>m.toLowerCase()===d.toLowerCase())||null}t&&c&&tn.appLogs.logUserInApp(c).catch(()=>{})},[e,t,n,o]),null}function BB({}){var o;const t=go().pathname.substring(1),{data:n,isFetched:r}=rl({queryKey:["user"],queryFn:async()=>{try{return{user:await tn.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return u.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:u.jsx("div",{className:"max-w-md w-full",children:u.jsxs("div",{className:"text-center space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),u.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),u.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",u.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&u.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:u.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),u.jsxs("div",{className:"text-left space-y-1",children:[u.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),u.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),u.jsx("div",{className:"pt-6",children:u.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[u.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const VB=()=>u.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:u.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:u.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),u.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),u.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),u.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[u.jsx("p",{children:"If you believe this is an error, you can:"}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Verify you are logged in with the correct account"}),u.jsx("li",{children:"Contact the app administrator for access"}),u.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:aC,Layout:tb,mainPage:UB}=oC,lC=UB,zB=aC[lC],nb=({children:e,currentPageName:t})=>tb?u.jsx(tb,{currentPageName:t,children:e}):u.jsx(u.Fragment,{children:e}),$B=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=J1();if(t||e)return u.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:u.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return u.jsx(VB,{});if(n.type==="auth_required")return r(),null}return u.jsxs(Z_,{children:[u.jsx(Gc,{path:"/",element:u.jsx(nb,{currentPageName:lC,children:u.jsx(zB,{})})}),Object.entries(aC).map(([o,a])=>u.jsx(Gc,{path:`/${o}`,element:u.jsx(nb,{currentPageName:o,children:u.jsx(a,{})})},o)),u.jsx(Gc,{path:"*",element:u.jsx(BB,{})})]})};function WB(){return u.jsx(zO,{children:u.jsxs(KT,{client:o_,children:[u.jsxs(oP,{children:[u.jsx(FB,{}),u.jsx($B,{})]}),u.jsx(ST,{})]})})}pk.createRoot(document.getElementById("root")).render(u.jsx(WB,{}));

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.