PageSourceSearch

https://radio-caridade-e3244d19.base44.app/assets/index-DlBMYSR0.js

js radio-caridade-e3244d19.base44.app collected 2026-10-03 03:07:46 UTC 816,383 bytes, 432 lines download raw bytes

vendor: 4,388 bytes, lines 1-9
1var Hy=e=>{throw TypeError(e)};var Ch=(e,t,n)=>t.has(e)||Hy("Cannot "+n);var O=(e,t,n)=>(Ch(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>t.has(e)?Hy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fe=(e,t,n,r)=>(Ch(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(Ch(e,t,"access private method"),n);var nu=(e,t,n,r)=>({set _(i){fe(e,t,i,n)},get _(){return O(e,t,r)}});function KE(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function Ap(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eh={exports:{}},Ua={},Ph={exports:{}},Be={};/**
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 Wy;function GE(){if(Wy)return Be;Wy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function v(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,w={};function j(D,G,pe){this.props=D,this.context=G,this.refs=w,this.updater=pe||N}j.prototype.isReactComponent={},j.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,G,"setState")},j.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function S(){}S.prototype=j.prototype;function E(D,G,pe){this.props=D,this.context=G,this.refs=w,this.updater=pe||N}var P=E.prototype=new S;P.constructor=E,k(P,j.prototype),P.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,V={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function R(D,G,pe){var ge,Re={},he=null,Y=null;if(G!=null)for(ge in G.ref!==void 0&&(Y=G.ref),G.key!==void 0&&(he=""+G.key),G)A.call(G,ge)&&!z.hasOwnProperty(ge)&&(Re[ge]=G[ge]);var we=arguments.length-2;if(we===1)Re.children=pe;else if(1<we){for(var _e=Array(we),Ae=0;Ae<we;Ae++)_e[Ae]=arguments[Ae+2];Re.children=_e}if(D&&D.defaultProps)for(ge in we=D.defaultProps,we)Re[ge]===void 0&&(Re[ge]=we[ge]);return{$$typeof:e,type:D,key:he,ref:Y,props:Re,_owner:V.current}}function K(D,G){return{$$typeof:e,type:D.type,key:G,ref:D.ref,props:D.props,_owner:D._owner}}function U(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function q(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(pe){return G[pe]})}var H=/\/+/g;function Z(D,G){return typeof D=="object"&&D!==null&&D.key!=null?q(""+D.key):G.toString(36)}function ce(D,G,pe,ge,Re){var he=typeof D;(he==="undefined"||he==="boolean")&&(D=null);var Y=!1;if(D===null)Y=!0;else switch(he){case"string":case"number":Y=!0;break;case"object":switch(D.$$typeof){case e:case t:Y=!0}}
vendor: 6,959 bytes, lines 9-25
9if(Y)return Y=D,Re=Re(Y),D=ge===""?"."+Z(Y,0):ge,T(Re)?(pe="",D!=null&&(pe=D.replace(H,"$&/")+"/"),ce(Re,G,pe,"",function(Ae){return Ae})):Re!=null&&(U(Re)&&(Re=K(Re,pe+(!Re.key||Y&&Y.key===Re.key?"":(""+Re.key).replace(H,"$&/")+"/")+D)),G.push(Re)),1;if(Y=0,ge=ge===""?".":ge+":",T(D))for(var we=0;we<D.length;we++){he=D[we];var _e=ge+Z(he,we);Y+=ce(he,G,pe,_e,Re)}else if(_e=v(D),typeof _e=="function")for(D=_e.call(D),we=0;!(he=D.next()).done;)he=he.value,_e=ge+Z(he,we++),Y+=ce(he,G,pe,_e,Re);else if(he==="object")throw G=String(D),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return Y}function ie(D,G,pe){if(D==null)return D;var ge=[],Re=0;return ce(D,ge,"","",function(he){return G.call(pe,he,Re++)}),ge}function ee(D){if(D._status===-1){var G=D._result;G=G(),G.then(function(pe){(D._status===0||D._status===-1)&&(D._status=1,D._result=pe)},function(pe){(D._status===0||D._status===-1)&&(D._status=2,D._result=pe)}),D._status===-1&&(D._status=0,D._result=G)}if(D._status===1)return D._result.default;throw D._result}var te={current:null},F={transition:null},se={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:F,ReactCurrentOwner:V};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:ie,forEach:function(D,G,pe){ie(D,function(){G.apply(this,arguments)},pe)},count:function(D){var G=0;return ie(D,function(){G++}),G},toArray:function(D){return ie(D,function(G){return G})||[]},only:function(D){if(!U(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Be.Component=j,Be.Fragment=n,Be.Profiler=i,Be.PureComponent=E,Be.StrictMode=r,Be.Suspense=f,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,Be.act=ne,Be.cloneElement=function(D,G,pe){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ge=k({},D.props),Re=D.key,he=D.ref,Y=D._owner;if(G!=null){if(G.ref!==void 0&&(he=G.ref,Y=V.current),G.key!==void 0&&(Re=""+G.key),D.type&&D.type.defaultProps)var we=D.type.defaultProps;for(_e in G)A.call(G,_e)&&!z.hasOwnProperty(_e)&&(ge[_e]=G[_e]===void 0&&we!==void 0?we[_e]:G[_e])}var _e=arguments.length-2;if(_e===1)ge.children=pe;else if(1<_e){we=Array(_e);for(var Ae=0;Ae<_e;Ae++)we[Ae]=arguments[Ae+2];ge.children=we}return{$$typeof:e,type:D.type,key:Re,ref:he,props:ge,_owner:Y}},Be.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:l,_context:D},D.Consumer=D},Be.createElement=R,Be.createFactory=function(D){var G=R.bind(null,D);return G.type=D,G},Be.createRef=function(){return{current:null}},Be.forwardRef=function(D){return{$$typeof:d,render:D}},Be.isValidElement=U,Be.lazy=function(D){return{$$typeof:p,_payload:{_status:-1,_result:D},_init:ee}},Be.memo=function(D,G){return{$$typeof:m,type:D,compare:G===void 0?null:G}},Be.startTransition=function(D){var G=F.transition;F.transition={};try{D()}finally{F.transition=G}},Be.unstable_act=ne,Be.useCallback=function(D,G){return te.current.useCallback(D,G)},Be.useContext=function(D){return te.current.useContext(D)},Be.useDebugValue=function(){},Be.useDeferredValue=function(D){return te.current.useDeferredValue(D)},Be.useEffect=function(D,G){return te.current.useEffect(D,G)},Be.useId=function(){return te.current.useId()},Be.useImperativeHandle=function(D,G,pe){return te.current.useImperativeHandle(D,G,pe)},Be.useInsertionEffect=function(D,G){return te.current.useInsertionEffect(D,G)},Be.useLayoutEffect=function(D,G){return te.current.useLayoutEffect(D,G)},Be.useMemo=function(D,G){return te.current.useMemo(D,G)},Be.useReducer=function(D,G,pe){return te.current.useReducer(D,G,pe)},Be.useRef=function(D){return te.current.useRef(D)},Be.useState=function(D){return te.current.useState(D)},Be.useSyncExternalStore=function(D,G,pe){return te.current.useSyncExternalStore(D,G,pe)},Be.useTransition=function(){return te.current.useTransition()},Be.version="18.3.1",Be}var Ky;function Op(){return Ky||(Ky=1,Ph.exports=GE()),Ph.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 Gy;function QE(){if(Gy)return Ua;Gy=1;var e=Op(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,m){var p,g={},v=null,N=null;m!==void 0&&(v=""+m),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(N=f.ref);for(p in f)r.call(f,p)&&!l.hasOwnProperty(p)&&(g[p]=f[p]);if(d&&d.defaultProps)for(p in f=d.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:d,key:v,ref:N,props:g,_owner:i.current}}return Ua.Fragment=n,Ua.jsx=c,Ua.jsxs=c,Ua}var Qy;function YE(){return Qy||(Qy=1,Eh.exports=QE()),Eh.exports}var a=YE(),b=Op();const yn=Ap(b),Mp=KE({__proto__:null,default:yn},[b]);var ru={},Th={exports:{}},cn={},_h={exports:{}},Rh={};/**
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 Yy;function XE(){return Yy||(Yy=1,(function(e){function t(F,se){var ne=F.length;F.push(se);e:for(;0<ne;){var D=ne-1>>>1,G=F[D];if(0<i(G,se))F[D]=se,F[ne]=G,ne=D;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var se=F[0],ne=F.pop();if(ne!==se){F[0]=ne;e:for(var D=0,G=F.length,pe=G>>>1;D<pe;){var ge=2*(D+1)-1,Re=F[ge],he=ge+1,Y=F[he];if(0>i(Re,ne))he<G&&0>i(Y,Re)?(F[D]=Y,F[he]=ne,D=he):(F[D]=Re,F[ge]=ne,D=ge);else if(he<G&&0>i(Y,ne))F[D]=Y,F[he]=ne,D=he;else break e}}return se}function i(F,se){var ne=F.sortIndex-se.sortIndex;return ne!==0?ne:F.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],m=[],p=1,g=null,v=3,N=!1,k=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(F){for(var se=n(m);se!==null;){if(se.callback===null)r(m);else if(se.startTime<=F)r(m),se.sortIndex=se.expirationTime,t(f,se);else break;se=n(m)}}function T(F){if(w=!1,P(F),!k)if(n(f)!==null)k=!0,ee(A);else{var se=n(m);
vendor: 50,005 bytes, lines 25-38
25se!==null&&te(T,se.startTime-F)}}function A(F,se){k=!1,w&&(w=!1,S(R),R=-1),N=!0;var ne=v;try{for(P(se),g=n(f);g!==null&&(!(g.expirationTime>se)||F&&!q());){var D=g.callback;if(typeof D=="function"){g.callback=null,v=g.priorityLevel;var G=D(g.expirationTime<=se);se=e.unstable_now(),typeof G=="function"?g.callback=G:g===n(f)&&r(f),P(se)}else r(f);g=n(f)}if(g!==null)var pe=!0;else{var ge=n(m);ge!==null&&te(T,ge.startTime-se),pe=!1}return pe}finally{g=null,v=ne,N=!1}}var V=!1,z=null,R=-1,K=5,U=-1;function q(){return!(e.unstable_now()-U<K)}function H(){if(z!==null){var F=e.unstable_now();U=F;var se=!0;try{se=z(!0,F)}finally{se?Z():(V=!1,z=null)}}else V=!1}var Z;if(typeof E=="function")Z=function(){E(H)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ie=ce.port2;ce.port1.onmessage=H,Z=function(){ie.postMessage(null)}}else Z=function(){j(H,0)};function ee(F){z=F,V||(V=!0,Z())}function te(F,se){R=j(function(){F(e.unstable_now())},se)}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(F){F.callback=null},e.unstable_continueExecution=function(){k||N||(k=!0,ee(A))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var se=3;break;default:se=v}var ne=v;v=se;try{return F()}finally{v=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,se){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ne=v;v=F;try{return se()}finally{v=ne}},e.unstable_scheduleCallback=function(F,se,ne){var D=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?D+ne:D):ne=D,F){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=ne+G,F={id:p++,callback:se,priorityLevel:F,startTime:ne,expirationTime:G,sortIndex:-1},ne>D?(F.sortIndex=ne,t(m,F),n(f)===null&&F===n(m)&&(w?(S(R),R=-1):w=!0,te(T,ne-D))):(F.sortIndex=G,t(f,F),k||N||(k=!0,ee(A))),F},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(F){var se=v;return function(){var ne=v;v=se;try{return F.apply(this,arguments)}finally{v=ne}}}})(Rh)),Rh}var Xy;function JE(){return Xy||(Xy=1,_h.exports=XE()),_h.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 Jy;function ZE(){if(Jy)return cn;Jy=1;var e=Op(),t=JE();function n(s){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+s,u=1;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function l(s,o){c(s,o),c(s+"Capture",o)}function c(s,o){for(i[s]=o,s=0;s<o.length;s++)r.add(o[s])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[: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]*$/,p={},g={};function v(s){return f.call(g,s)?!0:f.call(p,s)?!1:m.test(s)?g[s]=!0:(p[s]=!0,!1)}function N(s,o,u,h){if(u!==null&&u.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return h?!1:u!==null?!u.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function k(s,o,u,h){if(o===null||typeof o>"u"||N(s,o,u,h))return!0;if(h)return!1;if(u!==null)switch(u.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function w(s,o,u,h,x,y,C){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=h,this.attributeNamespace=x,this.mustUseProperty=u,this.propertyName=s,this.type=o,this.sanitizeURL=y,this.removeEmptyString=C}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){j[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var o=s[0];j[o]=new w(o,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){j[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){j[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){j[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){j[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){j[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){j[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){j[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function E(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 o=s.replace(S,E);j[o]=new w(o,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var o=s.replace(S,E);j[o]=new w(o,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var o=s.replace(S,E);j[o]=new w(o,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){j[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),j.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){j[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function P(s,o,u,h){var x=j.hasOwnProperty(o)?j[o]:null;(x!==null?x.type!==0:h||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(k(o,u,x,h)&&(u=null),h||x===null?v(o)&&(u===null?s.removeAttribute(o):s.setAttribute(o,""+u)):x.mustUseProperty?s[x.propertyName]=u===null?x.type===3?!1:"":u:(o=x.attributeName,h=x.attributeNamespace,u===null?s.removeAttribute(o):(x=x.type,u=x===3||x===4&&u===!0?"":""+u,h?s.setAttributeNS(h,o,u):s.setAttribute(o,u))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),V=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),q=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),F=Symbol.iterator;function se(s){return s===null||typeof s!="object"?null:(s=F&&s[F]||s["@@iterator"],typeof s=="function"?s:null)}var ne=Object.assign,D;function G(s){if(D===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);D=o&&o[1]||""}return`
34`+D+s}var pe=!1;function ge(s,o){if(!s||pe)return"";pe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(W){var h=W}Reflect.construct(s,[],o)}else{try{o.call()}catch(W){h=W}s.call(o.prototype)}else{try{throw Error()}catch(W){h=W}s()}}catch(W){if(W&&h&&typeof W.stack=="string"){for(var x=W.stack.split(`
35`),y=h.stack.split(`
36`),C=x.length-1,_=y.length-1;1<=C&&0<=_&&x[C]!==y[_];)_--;for(;1<=C&&0<=_;C--,_--)if(x[C]!==y[_]){if(C!==1||_!==1)do if(C--,_--,0>_||x[C]!==y[_]){var M=`
37`+x[C].replace(" at new "," at ");return s.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",s.displayName)),M}while(1<=C&&0<=_);break}}}finally{pe=!1,Error.prepareStackTrace=u}return(s=s?s.displayName||s.name:"")?G(s):""}function Re(s){switch(s.tag){case 5:return G(s.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return s=ge(s.type,!1),s;case 11:return s=ge(s.type.render,!1),s;case 1:return s=ge(s.type,!0),s;default:return""}}function he(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 z:return"Fragment";case V:return"Portal";case K:return"Profiler";case R:return"StrictMode";case Z:return"Suspense";case ce:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case q:return(s.displayName||"Context")+".Consumer";case U:return(s._context.displayName||"Context")+".Provider";case H:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ie:return o=s.displayName||null,o!==null?o:he(s.type)||"Memo";case ee:o=s._payload,s=s._init;try{return he(s(o))}catch{}}return null}function Y(s){var o=s.type;switch(s.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=o.render,s=s.displayName||s.name||"",o.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(o);case 8:return o===R?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function we(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function _e(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ae(s){var o=_e(s)?"checked":"value",u=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),h=""+s[o];if(!s.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var x=u.get,y=u.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return x.call(this)},set:function(C){h=""+C,y.call(this,C)}}),Object.defineProperty(s,o,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function Le(s){s._valueTracker||(s._valueTracker=Ae(s))}function De(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return s&&(h=_e(s)?s.checked?"true":"false":s.value),s=h,s!==u?(o.setValue(s),!0):!1}function mt(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 Et(s,o){var u=o.checked;return ne({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??s._wrapperState.initialChecked})}function Pt(s,o){var u=o.defaultValue==null?"":o.defaultValue,h=o.checked!=null?o.checked:o.defaultChecked;u=we(o.value!=null?o.value:u),s._wrapperState={initialChecked:h,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Pe(s,o){o=o.checked,o!=null&&P(s,"checked",o,!1)}function it(s,o){Pe(s,o);var u=we(o.value),h=o.type;if(u!=null)h==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+u):s.value!==""+u&&(s.value=""+u);else if(h==="submit"||h==="reset"){s.removeAttribute("value");return}o.hasOwnProperty("value")?Vt(s,o.type,u):o.hasOwnProperty("defaultValue")&&Vt(s,o.type,we(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(s.defaultChecked=!!o.defaultChecked)}function hn(s,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var h=o.type;if(!(h!=="submit"&&h!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+s._wrapperState.initialValue,u||o===s.value||(s.value=o),s.defaultValue=o}u=s.name,u!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,u!==""&&(s.name=u)}function Vt(s,o,u){(o!=="number"||mt(s.ownerDocument)!==s)&&(u==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+u&&(s.defaultValue=""+u))}var zr=Array.isArray;function qr(s,o,u,h){if(s=s.options,o){o={};for(var x=0;x<u.length;x++)o["$"+u[x]]=!0;for(u=0;u<s.length;u++)x=o.hasOwnProperty("$"+s[u].value),s[u].selected!==x&&(s[u].selected=x),x&&h&&(s[u].defaultSelected=!0)}else{for(u=""+we(u),o=null,x=0;x<s.length;x++){if(s[x].value===u){s[x].selected=!0,h&&(s[x].defaultSelected=!0);return}o!==null||s[x].disabled||(o=s[x])}o!==null&&(o.selected=!0)}}function vr(s,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return ne({},o,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function t0(s,o){var u=o.value;if(u==null){if(u=o.children,o=o.defaultValue,u!=null){if(o!=null)throw Error(n(92));if(zr(u)){if(1<u.length)throw Error(n(93));u=u[0]}o=u}o==null&&(o=""),u=o}s._wrapperState={initialValue:we(u)}}function n0(s,o){var u=we(o.value),h=we(o.defaultValue);u!=null&&(u=""+u,u!==s.value&&(s.value=u),o.defaultValue==null&&s.defaultValue!==u&&(s.defaultValue=u)),h!=null&&(s.defaultValue=""+h)}function r0(s){var o=s.textContent;o===s._wrapperState.initialValue&&o!==""&&o!==null&&(s.value=o)}function s0(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 Ld(s,o){return s==null||s==="http://www.w3.org/1999/xhtml"?s0(o):s==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Gl,o0=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,u,h,x){MSApp.execUnsafeLocalFunction(function(){return s(o,u,h,x)})}:s})(function(s,o){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=o;else{for(Gl=Gl||document.createElement("div"),Gl.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Gl.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;o.firstChild;)s.appendChild(o.firstChild)}});function ra(s,o){if(o){var u=s.firstChild;if(u&&u===s.lastChild&&u.nodeType===3){u.nodeValue=o;return}}s.textContent=o}var sa={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},Xk=["Webkit","ms","Moz","O"];Object.keys(sa).forEach(function(s){Xk.forEach(function(o){o=o+s.charAt(0).toUpperCase()+s.substring(1),sa[o]=sa[s]})});function i0(s,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||sa.hasOwnProperty(s)&&sa[s]?(""+o).trim():o+"px"}function a0(s,o){s=s.style;for(var u in o)if(o.hasOwnProperty(u)){var h=u.indexOf("--")===0,x=i0(u,o[u],h);u==="float"&&(u="cssFloat"),h?s.setProperty(u,x):s[u]=x}}var Jk=ne({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 Id(s,o){if(o){if(Jk[s]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Fd(s,o){if(s.indexOf("-")===-1)return typeof o.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 Vd=null;function Bd(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Ud=null,Lo=null,Io=null;function l0(s){if(s=Ca(s)){if(typeof Ud!="function")throw Error(n(280));var o=s.stateNode;o&&(o=xc(o),Ud(s.stateNode,s.type,o))}}function c0(s){Lo?Io?Io.push(s):Io=[s]:Lo=s}function u0(){if(Lo){var s=Lo,o=Io;if(Io=Lo=null,l0(s),o)for(s=0;s<o.length;s++)l0(o[s])}}function d0(s,o){return s(o)}function f0(){}var $d=!1;function h0(s,o,u){if($d)return s(o,u);$d=!0;try{return d0(s,o,u)}finally{$d=!1,(Lo!==null||Io!==null)&&(f0(),u0())}}function oa(s,o){var u=s.stateNode;if(u===null)return null;var h=xc(u);if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(s=s.type,h=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!h;break e;default:s=!1}if(s)return null;if(u&&typeof u!="function")throw Error(n(231,o,typeof u));return u}var zd=!1;if(d)try{var ia={};Object.defineProperty(ia,"passive",{get:function(){zd=!0}}),window.addEventListener("test",ia,ia),window.removeEventListener("test",ia,ia)}catch{zd=!1}function Zk(s,o,u,h,x,y,C,_,M){var W=Array.prototype.slice.call(arguments,3);try{o.apply(u,W)}catch(J){this.onError(J)}}var aa=!1,Ql=null,Yl=!1,qd=null,eC={onError:function(s){aa=!0,Ql=s}};function tC(s,o,u,h,x,y,C,_,M){aa=!1,Ql=null,Zk.apply(eC,arguments)}function nC(s,o,u,h,x,y,C,_,M){if(tC.apply(this,arguments),aa){if(aa){var W=Ql;aa=!1,Ql=null}else throw Error(n(198));Yl||(Yl=!0,qd=W)}}function Vs(s){var o=s,u=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(u=o.return),s=o.return;while(s)}return o.tag===3?u:null}function m0(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function p0(s){if(Vs(s)!==s)throw Error(n(188))}function rC(s){var o=s.alternate;if(!o){if(o=Vs(s),o===null)throw Error(n(188));return o!==s?null:s}for(var u=s,h=o;;){var x=u.return;if(x===null)break;var y=x.alternate;if(y===null){if(h=x.return,h!==null){u=h;continue}break}if(x.child===y.child){for(y=x.child;y;){if(y===u)return p0(x),s;if(y===h)return p0(x),o;y=y.sibling}throw Error(n(188))}if(u.return!==h.return)u=x,h=y;else{for(var C=!1,_=x.child;_;){if(_===u){C=!0,u=x,h=y;break}if(_===h){C=!0,h=x,u=y;break}_=_.sibling}if(!C){for(_=y.child;_;){if(_===u){C=!0,u=y,h=x;break}if(_===h){C=!0,h=y,u=x;break}_=_.sibling}if(!C)throw Error(n(189))}}if(u.alternate!==h)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?s:o}function g0(s){return s=rC(s),s!==null?x0(s):null}function x0(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var o=x0(s);if(o!==null)return o;s=s.sibling}return null}var y0=t.unstable_scheduleCallback,v0=t.unstable_cancelCallback,sC=t.unstable_shouldYield,oC=t.unstable_requestPaint,pt=t.unstable_now,iC=t.unstable_getCurrentPriorityLevel,Hd=t.unstable_ImmediatePriority,b0=t.unstable_UserBlockingPriority,Xl=t.unstable_NormalPriority,aC=t.unstable_LowPriority,w0=t.unstable_IdlePriority,Jl=null,Jn=null;function lC(s){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Jl,s,void 0,(s.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:dC,cC=Math.log,uC=Math.LN2;function dC(s){return s>>>=0,s===0?32:31-(cC(s)/uC|0)|0}var Zl=64,ec=4194304;function la(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 tc(s,o){var u=s.pendingLanes;if(u===0)return 0;var h=0,x=s.suspendedLanes,y=s.pingedLanes,C=u&268435455;if(C!==0){var _=C&~x;_!==0?h=la(_):(y&=C,y!==0&&(h=la(y)))}else C=u&~x,C!==0?h=la(C):y!==0&&(h=la(y));if(h===0)return 0;if(o!==0&&o!==h&&(o&x)===0&&(x=h&-h,y=o&-o,x>=y||x===16&&(y&4194240)!==0))return o;if((h&4)!==0&&(h|=u&16),o=s.entangledLanes,o!==0)for(s=s.entanglements,o&=h;0<o;)u=31-Ln(o),x=1<<u,h|=s[u],o&=~x;return h}function fC(s,o){switch(s){case 1:case 2:case 4:return o+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 o+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 hC(s,o){for(var u=s.suspendedLanes,h=s.pingedLanes,x=s.expirationTimes,y=s.pendingLanes;0<y;){var C=31-Ln(y),_=1<<C,M=x[C];M===-1?((_&u)===0||(_&h)!==0)&&(x[C]=fC(_,o)):M<=o&&(s.expiredLanes|=_),y&=~_}}function Wd(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function N0(){var s=Zl;return Zl<<=1,(Zl&4194240)===0&&(Zl=64),s}function Kd(s){for(var o=[],u=0;31>u;u++)o.push(s);return o}function ca(s,o,u){s.pendingLanes|=o,o!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,o=31-Ln(o),s[o]=u}function mC(s,o){var u=s.pendingLanes&~o;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=o,s.mutableReadLanes&=o,s.entangledLanes&=o,o=s.entanglements;var h=s.eventTimes;for(s=s.expirationTimes;0<u;){var x=31-Ln(u),y=1<<x;o[x]=0,h[x]=-1,s[x]=-1,u&=~y}}function Gd(s,o){var u=s.entangledLanes|=o;for(s=s.entanglements;u;){var h=31-Ln(u),x=1<<h;x&o|s[h]&o&&(s[h]|=o),u&=~x}}var Xe=0;function S0(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var j0,Qd,k0,C0,E0,Yd=!1,nc=[],Hr=null,Wr=null,Kr=null,ua=new Map,da=new Map,Gr=[],pC="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 P0(s,o){switch(s){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":Kr=null;break;case"pointerover":case"pointerout":ua.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":da.delete(o.pointerId)}}function fa(s,o,u,h,x,y){return s===null||s.nativeEvent!==y?(s={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:y,targetContainers:[x]},o!==null&&(o=Ca(o),o!==null&&Qd(o)),s):(s.eventSystemFlags|=h,o=s.targetContainers,x!==null&&o.indexOf(x)===-1&&o.push(x),s)}function gC(s,o,u,h,x){switch(o){case"focusin":return Hr=fa(Hr,s,o,u,h,x),!0;case"dragenter":return Wr=fa(Wr,s,o,u,h,x),!0;case"mouseover":return Kr=fa(Kr,s,o,u,h,x),!0;case"pointerover":var y=x.pointerId;return ua.set(y,fa(ua.get(y)||null,s,o,u,h,x)),!0;case"gotpointercapture":return y=x.pointerId,da.set(y,fa(da.get(y)||null,s,o,u,h,x)),!0}return!1}function T0(s){var o=Bs(s.target);if(o!==null){var u=Vs(o);if(u!==null){if(o=u.tag,o===13){if(o=m0(u),o!==null){s.blockedOn=o,E0(s.priority,function(){k0(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){s.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}s.blockedOn=null}function rc(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var u=Jd(s.domEventName,s.eventSystemFlags,o[0],s.nativeEvent);if(u===null){u=s.nativeEvent;var h=new u.constructor(u.type,u);Vd=h,u.target.dispatchEvent(h),Vd=null}else return o=Ca(u),o!==null&&Qd(o),s.blockedOn=u,!1;o.shift()}return!0}function _0(s,o,u){rc(s)&&u.delete(o)}function xC(){Yd=!1,Hr!==null&&rc(Hr)&&(Hr=null),Wr!==null&&rc(Wr)&&(Wr=null),Kr!==null&&rc(Kr)&&(Kr=null),ua.forEach(_0),da.forEach(_0)}function ha(s,o){s.blockedOn===o&&(s.blockedOn=null,Yd||(Yd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,xC)))}function ma(s){function o(x){return ha(x,s)}if(0<nc.length){ha(nc[0],s);for(var u=1;u<nc.length;u++){var h=nc[u];h.blockedOn===s&&(h.blockedOn=null)}}for(Hr!==null&&ha(Hr,s),Wr!==null&&ha(Wr,s),Kr!==null&&ha(Kr,s),ua.forEach(o),da.forEach(o),u=0;u<Gr.length;u++)h=Gr[u],h.blockedOn===s&&(h.blockedOn=null);for(;0<Gr.length&&(u=Gr[0],u.blockedOn===null);)T0(u),u.blockedOn===null&&Gr.shift()}var Fo=T.ReactCurrentBatchConfig,sc=!0;function yC(s,o,u,h){var x=Xe,y=Fo.transition;Fo.transition=null;try{Xe=1,Xd(s,o,u,h)}finally{Xe=x,Fo.transition=y}}function vC(s,o,u,h){var x=Xe,y=Fo.transition;Fo.transition=null;try{Xe=4,Xd(s,o,u,h)}finally{Xe=x,Fo.transition=y}}function Xd(s,o,u,h){if(sc){var x=Jd(s,o,u,h);if(x===null)gf(s,o,h,oc,u),P0(s,h);else if(gC(x,s,o,u,h))h.stopPropagation();else if(P0(s,h),o&4&&-1<pC.indexOf(s)){for(;x!==null;){var y=Ca(x);if(y!==null&&j0(y),y=Jd(s,o,u,h),y===null&&gf(s,o,h,oc,u),y===x)break;x=y}x!==null&&h.stopPropagation()}else gf(s,o,h,null,u)}}var oc=null;function Jd(s,o,u,h){if(oc=null,s=Bd(h),s=Bs(s),s!==null)if(o=Vs(s),o===null)s=null;else if(u=o.tag,u===13){if(s=m0(o),s!==null)return s;s=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null);return oc=s,null}function R0(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(iC()){case Hd:return 1;case b0:return 4;case Xl:case aC:return 16;case w0:return 536870912;default:return 16}default:return 16}}var Qr=null,Zd=null,ic=null;function A0(){if(ic)return ic;var s,o=Zd,u=o.length,h,x="value"in Qr?Qr.value:Qr.textContent,y=x.length;for(s=0;s<u&&o[s]===x[s];s++);var C=u-s;for(h=1;h<=C&&o[u-h]===x[y-h];h++);return ic=x.slice(s,1<h?1-h:void 0)}function ac(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function lc(){return!0}function O0(){return!1}function mn(s){function o(u,h,x,y,C){this._reactName=u,this._targetInst=x,this.type=h,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var _ in s)s.hasOwnProperty(_)&&(u=s[_],this[_]=u?u(y):y[_]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?lc:O0,this.isPropagationStopped=O0,this}return ne(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=lc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=lc)},persist:function(){},isPersistent:lc}),o}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ef=mn(Vo),pa=ne({},Vo,{view:0,detail:0}),bC=mn(pa),tf,nf,ga,cc=ne({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sf,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!==ga&&(ga&&s.type==="mousemove"?(tf=s.screenX-ga.screenX,nf=s.screenY-ga.screenY):nf=tf=0,ga=s),tf)},movementY:function(s){return"movementY"in s?s.movementY:nf}}),M0=mn(cc),wC=ne({},cc,{dataTransfer:0}),NC=mn(wC),SC=ne({},pa,{relatedTarget:0}),rf=mn(SC),jC=ne({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),kC=mn(jC),CC=ne({},Vo,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),EC=mn(CC),PC=ne({},Vo,{data:0}),D0=mn(PC),TC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_C={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"},RC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AC(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=RC[s])?!!o[s]:!1}function sf(){return AC}var OC=ne({},pa,{key:function(s){if(s.key){var o=TC[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=ac(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?_C[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sf,charCode:function(s){return s.type==="keypress"?ac(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?ac(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),MC=mn(OC),DC=ne({},cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L0=mn(DC),LC=ne({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sf}),IC=mn(LC),FC=ne({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),VC=mn(FC),BC=ne({},cc,{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}),UC=mn(BC),$C=[9,13,27,32],of=d&&"CompositionEvent"in window,xa=null;d&&"documentMode"in document&&(xa=document.documentMode);var zC=d&&"TextEvent"in window&&!xa,I0=d&&(!of||xa&&8<xa&&11>=xa),F0=" ",V0=!1;function B0(s,o){switch(s){case"keyup":return $C.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Bo=!1;function qC(s,o){switch(s){case"compositionend":return U0(o);case"keypress":return o.which!==32?null:(V0=!0,F0);case"textInput":return s=o.data,s===F0&&V0?null:s;default:return null}}function HC(s,o){if(Bo)return s==="compositionend"||!of&&B0(s,o)?(s=A0(),ic=Zd=Qr=null,Bo=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return I0&&o.locale!=="ko"?null:o.data;default:return null}}var WC={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 $0(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!WC[s.type]:o==="textarea"}function z0(s,o,u,h){c0(h),o=mc(o,"onChange"),0<o.length&&(u=new ef("onChange","change",null,u,h),s.push({event:u,listeners:o}))}var ya=null,va=null;function KC(s){ax(s,0)}function uc(s){var o=Ho(s);if(De(o))return s}function GC(s,o){if(s==="change")return o}var q0=!1;if(d){var af;if(d){var lf="oninput"in document;if(!lf){var H0=document.createElement("div");H0.setAttribute("oninput","return;"),lf=typeof H0.oninput=="function"}af=lf}else af=!1;q0=af&&(!document.documentMode||9<document.documentMode)}function W0(){ya&&(ya.detachEvent("onpropertychange",K0),va=ya=null)}function K0(s){if(s.propertyName==="value"&&uc(va)){var o=[];z0(o,va,s,Bd(s)),h0(KC,o)}}function QC(s,o,u){s==="focusin"?(W0(),ya=o,va=u,ya.attachEvent("onpropertychange",K0)):s==="focusout"&&W0()}function YC(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return uc(va)}function XC(s,o){if(s==="click")return uc(o)}function JC(s,o){if(s==="input"||s==="change")return uc(o)}function ZC(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var In=typeof Object.is=="function"?Object.is:ZC;function ba(s,o){if(In(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var u=Object.keys(s),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var x=u[h];if(!f.call(o,x)||!In(s[x],o[x]))return!1}return!0}function G0(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Q0(s,o){var u=G0(s);s=0;for(var h;u;){if(u.nodeType===3){if(h=s+u.textContent.length,s<=o&&h>=o)return{node:u,offset:o-s};s=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=G0(u)}}function Y0(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?Y0(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function X0(){for(var s=window,o=mt();o instanceof s.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)s=o.contentWindow;else break;o=mt(s.document)}return o}function cf(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}function eE(s){var o=X0(),u=s.focusedElem,h=s.selectionRange;if(o!==u&&u&&u.ownerDocument&&Y0(u.ownerDocument.documentElement,u)){if(h!==null&&cf(u)){if(o=h.start,s=h.end,s===void 0&&(s=o),"selectionStart"in u)u.selectionStart=o,u.selectionEnd=Math.min(s,u.value.length);else if(s=(o=u.ownerDocument||document)&&o.defaultView||window,s.getSelection){s=s.getSelection();var x=u.textContent.length,y=Math.min(h.start,x);h=h.end===void 0?y:Math.min(h.end,x),!s.extend&&y>h&&(x=h,h=y,y=x),x=Q0(u,y);var C=Q0(u,h);x&&C&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==C.node||s.focusOffset!==C.offset)&&(o=o.createRange(),o.setStart(x.node,x.offset),s.removeAllRanges(),y>h?(s.addRange(o),s.extend(C.node,C.offset)):(o.setEnd(C.node,C.offset),s.addRange(o)))}}for(o=[],s=u;s=s.parentNode;)s.nodeType===1&&o.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<o.length;u++)s=o[u],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var tE=d&&"documentMode"in document&&11>=document.documentMode,Uo=null,uf=null,wa=null,df=!1;function J0(s,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;df||Uo==null||Uo!==mt(h)||(h=Uo,"selectionStart"in h&&cf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),wa&&ba(wa,h)||(wa=h,h=mc(uf,"onSelect"),0<h.length&&(o=new ef("onSelect","select",null,o,u),s.push({event:o,listeners:h}),o.target=Uo)))}function dc(s,o){var u={};return u[s.toLowerCase()]=o.toLowerCase(),u["Webkit"+s]="webkit"+o,u["Moz"+s]="moz"+o,u}var $o={animationend:dc("Animation","AnimationEnd"),animationiteration:dc("Animation","AnimationIteration"),animationstart:dc("Animation","AnimationStart"),transitionend:dc("Transition","TransitionEnd")},ff={},Z0={};d&&(Z0=document.createElement("div").style,"AnimationEvent"in window||(delete $o.animationend.animation,delete $o.animationiteration.animation,delete $o.animationstart.animation),"TransitionEvent"in window||delete $o.transitionend.transition);function fc(s){if(ff[s])return ff[s];if(!$o[s])return s;var o=$o[s],u;for(u in o)if(o.hasOwnProperty(u)&&u in Z0)return ff[s]=o[u];return s}var ex=fc("animationend"),tx=fc("animationiteration"),nx=fc("animationstart"),rx=fc("transitionend"),sx=new Map,ox="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 Yr(s,o){sx.set(s,o),l(o,[s])}for(var hf=0;hf<ox.length;hf++){var mf=ox[hf],nE=mf.toLowerCase(),rE=mf[0].toUpperCase()+mf.slice(1);Yr(nE,"on"+rE)}Yr(ex,"onAnimationEnd"),Yr(tx,"onAnimationIteration"),Yr(nx,"onAnimationStart"),Yr("dblclick","onDoubleClick"),Yr("focusin","onFocus"),Yr("focusout","onBlur"),Yr(rx,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Na="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(" "),sE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Na));function ix(s,o,u){var h=s.type||"unknown-event";s.currentTarget=u,nC(h,o,void 0,s),s.currentTarget=null}function ax(s,o){o=(o&4)!==0;for(var u=0;u<s.length;u++){var h=s[u],x=h.event;h=h.listeners;e:{var y=void 0;if(o)for(var C=h.length-1;0<=C;C--){var _=h[C],M=_.instance,W=_.currentTarget;if(_=_.listener,M!==y&&x.isPropagationStopped())break e;ix(x,_,W),y=M}else for(C=0;C<h.length;C++){if(_=h[C],M=_.instance,W=_.currentTarget,_=_.listener,M!==y&&x.isPropagationStopped())break e;ix(x,_,W),y=M}}}if(Yl)throw s=qd,Yl=!1,qd=null,s}function nt(s,o){var u=o[Nf];u===void 0&&(u=o[Nf]=new Set);var h=s+"__bubble";u.has(h)||(lx(o,s,2,!1),u.add(h))}function pf(s,o,u){var h=0;o&&(h|=4),lx(u,s,h,o)}var hc="_reactListening"+Math.random().toString(36).slice(2);function Sa(s){if(!s[hc]){s[hc]=!0,r.forEach(function(u){u!=="selectionchange"&&(sE.has(u)||pf(u,!1,s),pf(u,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[hc]||(o[hc]=!0,pf("selectionchange",!1,o))}}function lx(s,o,u,h){switch(R0(o)){case 1:var x=yC;break;case 4:x=vC;break;default:x=Xd}u=x.bind(null,o,u,s),x=void 0,!zd||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(x=!0),h?x!==void 0?s.addEventListener(o,u,{capture:!0,passive:x}):s.addEventListener(o,u,!0):x!==void 0?s.addEventListener(o,u,{passive:x}):s.addEventListener(o,u,!1)}function gf(s,o,u,h,x){var y=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var _=h.stateNode.containerInfo;if(_===x||_.nodeType===8&&_.parentNode===x)break;if(C===4)for(C=h.return;C!==null;){var M=C.tag;if((M===3||M===4)&&(M=C.stateNode.containerInfo,M===x||M.nodeType===8&&M.parentNode===x))return;C=C.return}for(;_!==null;){if(C=Bs(_),C===null)return;if(M=C.tag,M===5||M===6){h=y=C;continue e}_=_.parentNode}}h=h.return}h0(function(){var W=y,J=Bd(u),re=[];e:{var X=sx.get(s);if(X!==void 0){var me=ef,ye=s;switch(s){case"keypress":if(ac(u)===0)break e;case"keydown":case"keyup":me=MC;break;case"focusin":ye="focus",me=rf;break;case"focusout":ye="blur",me=rf;break;case"beforeblur":case"afterblur":me=rf;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":me=M0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=NC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=IC;break;case ex:case tx:case nx:me=kC;break;case rx:me=VC;break;case"scroll":me=bC;break;case"wheel":me=UC;break;case"copy":case"cut":case"paste":me=EC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=L0}var Ne=(o&4)!==0,gt=!Ne&&s==="scroll",B=Ne?X!==null?X+"Capture":null:X;Ne=[];for(var L=W,$;L!==null;){$=L;var oe=$.stateNode;if($.tag===5&&oe!==null&&($=oe,B!==null&&(oe=oa(L,B),oe!=null&&Ne.push(ja(L,oe,$)))),gt)break;L=L.return}0<Ne.length&&(X=new me(X,ye,null,u,J),re.push({event:X,listeners:Ne}))}}if((o&7)===0){e:{if(X=s==="mouseover"||s==="pointerover",me=s==="mouseout"||s==="pointerout",X&&u!==Vd&&(ye=u.relatedTarget||u.fromElement)&&(Bs(ye)||ye[br]))break e;if((me||X)&&(X=J.window===J?J:(X=J.ownerDocument)?X.defaultView||X.parentWindow:window,me?(ye=u.relatedTarget||u.toElement,me=W,ye=ye?Bs(ye):null,ye!==null&&(gt=Vs(ye),ye!==gt||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(me=null,ye=W),me!==ye)){if(Ne=M0,oe="onMouseLeave",B="onMouseEnter",L="mouse",(s==="pointerout"||s==="pointerover")&&(Ne=L0,oe="onPointerLeave",B="onPointerEnter",L="pointer"),gt=me==null?X:Ho(me),$=ye==null?X:Ho(ye),X=new Ne(oe,L+"leave",me,u,J),X.target=gt,X.relatedTarget=$,oe=null,Bs(J)===W&&(Ne=new Ne(B,L+"enter",ye,u,J),Ne.target=$,Ne.relatedTarget=gt,oe=Ne),gt=oe,me&&ye)t:{for(Ne=me,B=ye,L=0,$=Ne;$;$=zo($))L++;for($=0,oe=B;oe;oe=zo(oe))$++;for(;0<L-$;)Ne=zo(Ne),L--;for(;0<$-L;)B=zo(B),$--;for(;L--;){if(Ne===B||B!==null&&Ne===B.alternate)break t;Ne=zo(Ne),B=zo(B)}Ne=null}else Ne=null;me!==null&&cx(re,X,me,Ne,!1),ye!==null&&gt!==null&&cx(re,gt,ye,Ne,!0)}}e:{if(X=W?Ho(W):window,me=X.nodeName&&X.nodeName.toLowerCase(),me==="select"||me==="input"&&X.type==="file")var Se=GC;else if($0(X))if(q0)Se=JC;else{Se=YC;var Ce=QC}else(me=X.nodeName)&&me.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(Se=XC);if(Se&&(Se=Se(s,W))){z0(re,Se,u,J);break e}Ce&&Ce(s,X,W),s==="focusout"&&(Ce=X._wrapperState)&&Ce.controlled&&X.type==="number"&&Vt(X,"number",X.value)}switch(Ce=W?Ho(W):window,s){case"focusin":($0(Ce)||Ce.contentEditable==="true")&&(Uo=Ce,uf=W,wa=null);break;case"focusout":wa=uf=Uo=null;break;case"mousedown":df=!0;break;case"contextmenu":case"mouseup":case"dragend":df=!1,J0(re,u,J);break;case"selectionchange":if(tE)break;case"keydown":case"keyup":J0(re,u,J)}var Ee;if(of)e:{switch(s){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Bo?B0(s,u)&&(Oe="onCompositionEnd"):s==="keydown"&&u.keyCode===229&&(Oe="onCompositionStart");Oe&&(I0&&u.locale!=="ko"&&(Bo||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Bo&&(Ee=A0()):(Qr=J,Zd="value"in Qr?Qr.value:Qr.textContent,Bo=!0)),Ce=mc(W,Oe),0<Ce.length&&(Oe=new D0(Oe,s,null,u,J),re.push({event:Oe,listeners:Ce}),Ee?Oe.data=Ee:(Ee=U0(u),Ee!==null&&(Oe.data=Ee)))),(Ee=zC?qC(s,u):HC(s,u))&&(W=mc(W,"onBeforeInput"),0<W.length&&(J=new D0("onBeforeInput","beforeinput",null,u,J),re.push({event:J,listeners:W}),J.data=Ee))}ax(re,o)})}function ja(s,o,u){return{instance:s,listener:o,currentTarget:u}}function mc(s,o){for(var u=o+"Capture",h=[];s!==null;){var x=s,y=x.stateNode;x.tag===5&&y!==null&&(x=y,y=oa(s,u),y!=null&&h.unshift(ja(s,y,x)),y=oa(s,o),y!=null&&h.push(ja(s,y,x))),s=s.return}return h}function zo(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function cx(s,o,u,h,x){for(var y=o._reactName,C=[];u!==null&&u!==h;){var _=u,M=_.alternate,W=_.stateNode;if(M!==null&&M===h)break;_.tag===5&&W!==null&&(_=W,x?(M=oa(u,y),M!=null&&C.unshift(ja(u,M,_))):x||(M=oa(u,y),M!=null&&C.push(ja(u,M,_)))),u=u.return}C.length!==0&&s.push({event:o,listeners:C})}var oE=/\r\n?/g,iE=/\u0000|\uFFFD/g;function ux(s){return(typeof s=="string"?s:""+s).replace(oE,`
38`).replace(iE,"")}function pc(s,o,u){if(o=ux(o),ux(s)!==o&&u)throw Error(n(425))}function gc(){}var xf=null,yf=null;function vf(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var bf=typeof setTimeout=="function"?setTimeout:void 0,aE=typeof clearTimeout=="function"?clearTimeout:void 0,dx=typeof Promise=="function"?Promise:void 0,lE=typeof queueMicrotask=="function"?queueMicrotask:typeof dx<"u"?function(s){return dx.resolve(null).then(s).catch(cE)}:bf;function cE(s){setTimeout(function(){throw s})}function wf(s,o){var u=o,h=0;do{var x=u.nextSibling;if(s.removeChild(u),x&&x.nodeType===8)if(u=x.data,u==="/$"){if(h===0){s.removeChild(x),ma(o);return}h--}else u!=="$"&&u!=="$?"&&u!=="$!"||h++;u=x}while(u);ma(o)}function Xr(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return s}function fx(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var u=s.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return s;o--}else u==="/$"&&o++}s=s.previousSibling}return null}var qo=Math.random().toString(36).slice(2),Zn="__reactFiber$"+qo,ka="__reactProps$"+qo,br="__reactContainer$"+qo,Nf="__reactEvents$"+qo,uE="__reactListeners$"+qo,dE="__reactHandles$"+qo;function Bs(s){var o=s[Zn];if(o)return o;for(var u=s.parentNode;u;){if(o=u[br]||u[Zn]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(s=fx(s);s!==null;){if(u=s[Zn])return u;s=fx(s)}return o}s=u,u=s.parentNode}return null}function Ca(s){return s=s[Zn]||s[br],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Ho(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function xc(s){return s[ka]||null}var Sf=[],Wo=-1;function Jr(s){return{current:s}}function rt(s){0>Wo||(s.current=Sf[Wo],Sf[Wo]=null,Wo--)}function tt(s,o){Wo++,Sf[Wo]=s.current,s.current=o}var Zr={},Bt=Jr(Zr),rn=Jr(!1),Us=Zr;function Ko(s,o){var u=s.type.contextTypes;if(!u)return Zr;var h=s.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===o)return h.__reactInternalMemoizedMaskedChildContext;var x={},y;for(y in u)x[y]=o[y];return h&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=o,s.__reactInternalMemoizedMaskedChildContext=x),x}function sn(s){return s=s.childContextTypes,s!=null}function yc(){rt(rn),rt(Bt)}function hx(s,o,u){if(Bt.current!==Zr)throw Error(n(168));tt(Bt,o),tt(rn,u)}function mx(s,o,u){var h=s.stateNode;if(o=o.childContextTypes,typeof h.getChildContext!="function")return u;h=h.getChildContext();
vendor: 4,580 bytes, line 38
38for(var x in h)if(!(x in o))throw Error(n(108,Y(s)||"Unknown",x));return ne({},u,h)}function vc(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Zr,Us=Bt.current,tt(Bt,s),tt(rn,rn.current),!0}function px(s,o,u){var h=s.stateNode;if(!h)throw Error(n(169));u?(s=mx(s,o,Us),h.__reactInternalMemoizedMergedChildContext=s,rt(rn),rt(Bt),tt(Bt,s)):rt(rn),tt(rn,u)}var wr=null,bc=!1,jf=!1;function gx(s){wr===null?wr=[s]:wr.push(s)}function fE(s){bc=!0,gx(s)}function es(){if(!jf&&wr!==null){jf=!0;var s=0,o=Xe;try{var u=wr;for(Xe=1;s<u.length;s++){var h=u[s];do h=h(!0);while(h!==null)}wr=null,bc=!1}catch(x){throw wr!==null&&(wr=wr.slice(s+1)),y0(Hd,es),x}finally{Xe=o,jf=!1}}return null}var Go=[],Qo=0,wc=null,Nc=0,jn=[],kn=0,$s=null,Nr=1,Sr="";function zs(s,o){Go[Qo++]=Nc,Go[Qo++]=wc,wc=s,Nc=o}function xx(s,o,u){jn[kn++]=Nr,jn[kn++]=Sr,jn[kn++]=$s,$s=s;var h=Nr;s=Sr;var x=32-Ln(h)-1;h&=~(1<<x),u+=1;var y=32-Ln(o)+x;if(30<y){var C=x-x%5;y=(h&(1<<C)-1).toString(32),h>>=C,x-=C,Nr=1<<32-Ln(o)+x|u<<x|h,Sr=y+s}else Nr=1<<y|u<<x|h,Sr=s}function kf(s){s.return!==null&&(zs(s,1),xx(s,1,0))}function Cf(s){for(;s===wc;)wc=Go[--Qo],Go[Qo]=null,Nc=Go[--Qo],Go[Qo]=null;for(;s===$s;)$s=jn[--kn],jn[kn]=null,Sr=jn[--kn],jn[kn]=null,Nr=jn[--kn],jn[kn]=null}var pn=null,gn=null,ot=!1,Fn=null;function yx(s,o){var u=Tn(5,null,null,0);u.elementType="DELETED",u.stateNode=o,u.return=s,o=s.deletions,o===null?(s.deletions=[u],s.flags|=16):o.push(u)}function vx(s,o){switch(s.tag){case 5:var u=s.type;return o=o.nodeType!==1||u.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(s.stateNode=o,pn=s,gn=Xr(o.firstChild),!0):!1;case 6:return o=s.pendingProps===""||o.nodeType!==3?null:o,o!==null?(s.stateNode=o,pn=s,gn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(u=$s!==null?{id:Nr,overflow:Sr}:null,s.memoizedState={dehydrated:o,treeContext:u,retryLane:1073741824},u=Tn(18,null,null,0),u.stateNode=o,u.return=s,s.child=u,pn=s,gn=null,!0):!1;default:return!1}}function Ef(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Pf(s){if(ot){var o=gn;if(o){var u=o;if(!vx(s,o)){if(Ef(s))throw Error(n(418));o=Xr(u.nextSibling);var h=pn;o&&vx(s,o)?yx(h,u):(s.flags=s.flags&-4097|2,ot=!1,pn=s)}}else{if(Ef(s))throw Error(n(418));s.flags=s.flags&-4097|2,ot=!1,pn=s}}}function bx(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;pn=s}function Sc(s){if(s!==pn)return!1;if(!ot)return bx(s),ot=!0,!1;var o;if((o=s.tag!==3)&&!(o=s.tag!==5)&&(o=s.type,o=o!=="head"&&o!=="body"&&!vf(s.type,s.memoizedProps)),o&&(o=gn)){if(Ef(s))throw wx(),Error(n(418));for(;o;)yx(s,o),o=Xr(o.nextSibling)}if(bx(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8){var u=s.data;if(u==="/$"){if(o===0){gn=Xr(s.nextSibling);break e}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++}s=s.nextSibling}gn=null}}else gn=pn?Xr(s.stateNode.nextSibling):null;return!0}function wx(){for(var s=gn;s;)s=Xr(s.nextSibling)}function Yo(){gn=pn=null,ot=!1}function Tf(s){Fn===null?Fn=[s]:Fn.push(s)}var hE=T.ReactCurrentBatchConfig;function Ea(s,o,u){if(s=u.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var h=u.stateNode}if(!h)throw Error(n(147,s));var x=h,y=""+s;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===y?o.ref:(o=function(C){var _=x.refs;C===null?delete _[y]:_[y]=C},o._stringRef=y,o)}if(typeof s!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,s))}return s}function jc(s,o){throw s=Object.prototype.toString.call(o),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s))}function Nx(s){var o=s._init;return o(s._payload)}function Sx(s){function o(B,L){if(s){var $=B.deletions;$===null?(B.deletions=[L],B.flags|=16):$.push(L)}}function u(B,L){if(!s)return null;for(;L!==null;)o(B,L),L=L.sibling;return null}function h(B,L){for(B=new Map;L!==null;)L.key!==null?B.set(L.key,L):B.set(L.index,L),L=L.sibling;return B}function x(B,L){return B=ls(B,L),B.index=0,B.sibling=null,B}function y(B,L,$){return B.index=$,s?($=B.alternate,$!==null?($=$.index,$<L?(B.flags|=2,L):$):(B.flags|=2,L)):(B.flags|=1048576,L)}function C(B){return s&&B.alternate===null&&(B.flags|=2),B}function _(B,L,$,oe){return L===null||L.tag!==6?(L=bh($,B.mode,oe),L.return=B,L):(L=x(L,$),L.return=B,L)}function M(B,L,$,oe){var Se=$.type;return Se===z?J(B,L,$.props.children,oe,$.key):L!==null&&(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===ee&&Nx(Se)===L.t
vendor: 12,313 bytes, line 38
38ype)?(oe=x(L,$.props),oe.ref=Ea(B,L,$),oe.return=B,oe):(oe=Gc($.type,$.key,$.props,null,B.mode,oe),oe.ref=Ea(B,L,$),oe.return=B,oe)}function W(B,L,$,oe){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=wh($,B.mode,oe),L.return=B,L):(L=x(L,$.children||[]),L.return=B,L)}function J(B,L,$,oe,Se){return L===null||L.tag!==7?(L=Xs($,B.mode,oe,Se),L.return=B,L):(L=x(L,$),L.return=B,L)}function re(B,L,$){if(typeof L=="string"&&L!==""||typeof L=="number")return L=bh(""+L,B.mode,$),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return $=Gc(L.type,L.key,L.props,null,B.mode,$),$.ref=Ea(B,null,L),$.return=B,$;case V:return L=wh(L,B.mode,$),L.return=B,L;case ee:var oe=L._init;return re(B,oe(L._payload),$)}if(zr(L)||se(L))return L=Xs(L,B.mode,$,null),L.return=B,L;jc(B,L)}return null}function X(B,L,$,oe){var Se=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return Se!==null?null:_(B,L,""+$,oe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case A:return $.key===Se?M(B,L,$,oe):null;case V:return $.key===Se?W(B,L,$,oe):null;case ee:return Se=$._init,X(B,L,Se($._payload),oe)}if(zr($)||se($))return Se!==null?null:J(B,L,$,oe,null);jc(B,$)}return null}function me(B,L,$,oe,Se){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return B=B.get($)||null,_(L,B,""+oe,Se);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case A:return B=B.get(oe.key===null?$:oe.key)||null,M(L,B,oe,Se);case V:return B=B.get(oe.key===null?$:oe.key)||null,W(L,B,oe,Se);case ee:var Ce=oe._init;return me(B,L,$,Ce(oe._payload),Se)}if(zr(oe)||se(oe))return B=B.get($)||null,J(L,B,oe,Se,null);jc(L,oe)}return null}function ye(B,L,$,oe){for(var Se=null,Ce=null,Ee=L,Oe=L=0,Rt=null;Ee!==null&&Oe<$.length;Oe++){Ee.index>Oe?(Rt=Ee,Ee=null):Rt=Ee.sibling;var We=X(B,Ee,$[Oe],oe);if(We===null){Ee===null&&(Ee=Rt);break}s&&Ee&&We.alternate===null&&o(B,Ee),L=y(We,L,Oe),Ce===null?Se=We:Ce.sibling=We,Ce=We,Ee=Rt}if(Oe===$.length)return u(B,Ee),ot&&zs(B,Oe),Se;if(Ee===null){for(;Oe<$.length;Oe++)Ee=re(B,$[Oe],oe),Ee!==null&&(L=y(Ee,L,Oe),Ce===null?Se=Ee:Ce.sibling=Ee,Ce=Ee);return ot&&zs(B,Oe),Se}for(Ee=h(B,Ee);Oe<$.length;Oe++)Rt=me(Ee,B,Oe,$[Oe],oe),Rt!==null&&(s&&Rt.alternate!==null&&Ee.delete(Rt.key===null?Oe:Rt.key),L=y(Rt,L,Oe),Ce===null?Se=Rt:Ce.sibling=Rt,Ce=Rt);return s&&Ee.forEach(function(cs){return o(B,cs)}),ot&&zs(B,Oe),Se}function Ne(B,L,$,oe){var Se=se($);if(typeof Se!="function")throw Error(n(150));if($=Se.call($),$==null)throw Error(n(151));for(var Ce=Se=null,Ee=L,Oe=L=0,Rt=null,We=$.next();Ee!==null&&!We.done;Oe++,We=$.next()){Ee.index>Oe?(Rt=Ee,Ee=null):Rt=Ee.sibling;var cs=X(B,Ee,We.value,oe);if(cs===null){Ee===null&&(Ee=Rt);break}s&&Ee&&cs.alternate===null&&o(B,Ee),L=y(cs,L,Oe),Ce===null?Se=cs:Ce.sibling=cs,Ce=cs,Ee=Rt}if(We.done)return u(B,Ee),ot&&zs(B,Oe),Se;if(Ee===null){for(;!We.done;Oe++,We=$.next())We=re(B,We.value,oe),We!==null&&(L=y(We,L,Oe),Ce===null?Se=We:Ce.sibling=We,Ce=We);return ot&&zs(B,Oe),Se}for(Ee=h(B,Ee);!We.done;Oe++,We=$.next())We=me(Ee,B,Oe,We.value,oe),We!==null&&(s&&We.alternate!==null&&Ee.delete(We.key===null?Oe:We.key),L=y(We,L,Oe),Ce===null?Se=We:Ce.sibling=We,Ce=We);return s&&Ee.forEach(function(WE){return o(B,WE)}),ot&&zs(B,Oe),Se}function gt(B,L,$,oe){if(typeof $=="object"&&$!==null&&$.type===z&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case A:e:{for(var Se=$.key,Ce=L;Ce!==null;){if(Ce.key===Se){if(Se=$.type,Se===z){if(Ce.tag===7){u(B,Ce.sibling),L=x(Ce,$.props.children),L.return=B,B=L;break e}}else if(Ce.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===ee&&Nx(Se)===Ce.type){u(B,Ce.sibling),L=x(Ce,$.props),L.ref=Ea(B,Ce,$),L.return=B,B=L;break e}u(B,Ce);break}else o(B,Ce);Ce=Ce.sibling}$.type===z?(L=Xs($.props.children,B.mode,oe,$.key),L.return=B,B=L):(oe=Gc($.type,$.key,$.props,null,B.mode,oe),oe.ref=Ea(B,L,$),oe.return=B,B=oe)}return C(B);case V:e:{for(Ce=$.key;L!==null;){if(L.key===Ce)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){u(B,L.sibling),L=x(L,$.children||[]),L.return=B,B=L;break e}else{u(B,L);break}else o(B,L);L=L.sibling}L=wh($,B.mode,oe),L.return=B,B=L}return C(B);case ee:return Ce=$._init,gt(B,L,Ce($._payload),oe)}if(zr($))return ye(B,L,$,oe);if(se($))return Ne(B,L,$,oe);jc(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,L!==null&&L.tag===6?(u(B,L.sibling),L=x(L,$),L.return=B,B=L):(u(B,L),L=bh($,B.mode,oe),L.return=B,B=L),C(B)):u(B,L)}return gt}var Xo=Sx(!0),jx=Sx(!1),kc=Jr(null),Cc=null,Jo=null,_f=null;function Rf(){_f=Jo=Cc=null}function Af(s){var o=kc.current;rt(kc),s._currentValue=o}function Of(s,o,u){for(;s!==null;){var h=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),s===u)break;s=s.return}}function Zo(s,o){Cc=s,_f=Jo=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&o)!==0&&(on=!0),s.firstContext=null)}function Cn(s){var o=s._currentValue;if(_f!==s)if(s={context:s,memoizedValue:o,next:null},Jo===null){if(Cc===null)throw Error(n(308));Jo=s,Cc.dependencies={lanes:0,firstContext:s}}else Jo=Jo.next=s;return o}var qs=null;function Mf(s){qs===null?qs=[s]:qs.push(s)}function kx(s,o,u,h){var x=o.interleaved;return x===null?(u.next=u,Mf(o)):(u.next=x.next,x.next=u),o.interleaved=u,jr(s,h)}function jr(s,o){s.lanes|=o;var u=s.alternate;for(u!==null&&(u.lanes|=o),u=s,s=s.return;s!==null;)s.childLanes|=o,u=s.alternate,u!==null&&(u.childLanes|=o),u=s,s=s.return;return u.tag===3?u.stateNode:null}var ts=!1;function Df(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cx(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function kr(s,o){return{eventTime:s,lane:o,tag:0,payload:null,callback:null,next:null}}function ns(s,o,u){var h=s.updateQueue;if(h===null)return null;if(h=h.shared,(qe&2)!==0){var x=h.pending;return x===null?o.next=o:(o.next=x.next,x.next=o),h.pending=o,jr(s,u)}return x=h.interleaved,x===null?(o.next=o,Mf(h)):(o.next=x.next,x.next=o),h.interleaved=o,jr(s,u)}function Ec(s,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194240)!==0)){var h=o.lanes;h&=s.pendingLanes,u|=h,o.lanes=u,Gd(s,u)}}function Ex(s,o){var u=s.updateQueue,h=s.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var x=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var C={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};y===null?x=y=C:y=y.next=C,u=u.next}while(u!==null);y===null?x=y=o:y=y.next=o}else x=y=o;u={baseState:h.baseState,firstBaseUpdate:x,lastBaseUpdate:y,shared:h.shared,effects:h.effects},s.updateQueue=u;return}s=u.lastBaseUpdate,s===null?u.firstBaseUpdate=o:s.next=o,u.lastBaseUpdate=o}function Pc(s,o,u,h){var x=s.updateQueue;ts=!1;var y=x.firstBaseUpdate,C=x.lastBaseUpdate,_=x.shared.pending;if(_!==null){x.shared.pending=null;var M=_,W=M.next;M.next=null,C===null?y=W:C.next=W,C=M;var J=s.alternate;J!==null&&(J=J.updateQueue,_=J.lastBaseUpdate,_!==C&&(_===null?J.firstBaseUpdate=W:_.next=W,J.lastBaseUpdate=M))}if(y!==null){var re=x.baseState;C=0,J=W=M=null,_=y;do{var X=_.lane,me=_.eventTime;if((h&X)===X){J!==null&&(J=J.next={eventTime:me,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var ye=s,Ne=_;switch(X=o,me=u,Ne.tag){case 1:if(ye=Ne.payload,typeof ye=="function"){re=ye.call(me,re,X);break e}re=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ne.payload,X=typeof ye=="function"?ye.call(me,re,X):ye,X==null)break e;re=ne({},re,X);break e;case 2:ts=!0}}_.callback!==null&&_.lane!==0&&(s.flags|=64,X=x.effects,X===null?x.effects=[_]:X.push(_))}else me={eventTime:me,lane:X,tag:_.tag,payload:_.payload,callback:_.callback,next:null},J===null?(W=J=me,M=re):J=J.next=me,C|=X;if(_=_.next,_===null){if(_=x.shared.pending,_===null)break;X=_,_=X.next,X.next=null,x.lastBaseUpdate=X,x.shared.pending=null}}while(!0);if(J===null&&(M=re),x.baseState=M,x.firstBaseUpdate=W,x.lastBaseUpdate=J,o=x.shared.interleaved,o!==null){x=o;do C|=x.lane,x=x.next;while(x!==o)}else y===null&&(x.shared.lanes=0);Ks|=C,s.lanes=C,s.memoizedState=re}}function Px(s,o,u){if(s=o.effects,o.effects=null,s!==null)for(o=0;o<s.length;o++){var h=s[o],x=h.callback;if(x!==null){if(h.callback=null,h=u,typeof x!="function")throw Error(n(191,x));x.call(h)}}}var Pa={},er=Jr(Pa),Ta=Jr(Pa),_a=Jr(Pa);function Hs(s){if(s===Pa)throw Error(n(174));return s}function Lf(s,o){switch(tt(_a,o),tt(Ta,s),tt(er,Pa),s=o.nodeType,s){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Ld(null,"");break;default:s=s===8?o.parentNode:o,o=s.namespaceURI||null,s=s.tagName,o=Ld(o,s)}rt(er),tt(er,o)}function ei(){rt(er),rt(Ta),rt(_a)}function Tx(s){Hs(_a.current);var o=Hs(er.current),u=Ld(o,s.type);o!==u&&(tt(Ta,s),tt(er,u))}function If(s){Ta.current===s&&(rt(er),rt(Ta))}var at=Jr(0);function Tc(s){for(var o=s;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ff=[];function Vf(){for(var s=0;s<Ff.length;s++)Ff[s]._workInProgressVersionPrimary=null;Ff.length=0}var _c=T.ReactCurrentDispatcher,Bf=T.ReactCurrentBatchConfig,Ws=0,lt=null,St=null,Tt=null,Rc=!1,Ra=!1,Aa=0,mE=0;function Ut(){throw Error(n(321))}function Uf(s,o){if(o===null)return!1;for(var u=0;u<o.length&&u<s.length;u++)if(!In(s[u],o[u]))return!1;return!0}function $f(s,o,u,h,x,y){if(Ws=y,lt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,_c.current=s===null||s.memoizedState===null?yE:vE,s=u(h,x),Ra){y=0;do{if(Ra=!1,Aa=0,25<=y)throw Error(n(301));y+=1,Tt=St=null,o.updateQueue=null,_c.current=bE,s=u(h,x)}while(Ra)}if(_c.current=Mc,o=St!==null&&St.next!==null,Ws=0,Tt=St=lt=null,Rc=!1,o)throw Error(n(300));return s}function zf(){var s=Aa!==0;return Aa=0,s}function tr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?lt.memoizedState=Tt=s:Tt=Tt.next=s,Tt}function En(){if(St===null){var s=lt.alternate;s=s!==null?s.memoizedState:null}else s=St.next;var o=Tt===null?lt.memoizedState:Tt.next;if(o!==null)Tt=o,St=s;else{if(s===null)throw Error(n(310));St=s,s={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},Tt===null?lt.memoizedState=Tt=s:Tt=Tt.next=s}return Tt}function Oa(s,o){return typeof o=="function"?o(s):o}function qf(s){var o=En(),u=o.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=s;var h=St,x=h.baseQueue,y=u.pending;if(y!==null){if(x!==null){var C=x.next;x.next=y.next,y.next=C}h.baseQueue=x=y,u.pending=null}if(x!==null){y=x.next,h=h.baseState;var _=C=null,M=null,W=y;do{var J=W.lane;if((Ws&J)===J)M!==null&&(M=M.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),h=W.hasEagerState?W.eagerState:s(h,W.action);else{var re={lane:J,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};M===null?(_=M=re,C=h):M=M.next=re,lt.lanes|=J,Ks|=J}W=W.next}while(W!==null&&W!==y);M===null?C=h:M.next=_,In(h,o.memoizedState)||(on=!0),o.memoizedState=h,o.baseState=C,o.baseQueue=M,u.lastRenderedState=h}if(s=u.interleaved,s!==null){x=s;do y=x.lane,lt.lanes|=y,Ks|=y,x=x.next;while(x!==s)}else x===null&&(u.lanes=0);return[o.memoizedState,u.dispatch]}function Hf(s){var o=En(),u=o.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=s;var h=u.dispatch,x=u.pending,y=o.memoizedState;if(x!==null){u.pending=null;var C=x=x.next;do y=s(y,C.action),C=C.next;while(C!==x);In(y,o.memoizedState)||(on=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),u.lastRenderedState=y}return[y,h]}function _x(){}function Rx(s,o){var u=lt,h=En(),x=o(),y=!In(h.memoizedState,x);if(y&&(h.memoizedState=x,on=!0),h=h.queue,Wf(Mx.bind(null,u,h,s),[s]),h.get
vendor: 4,386 bytes, line 38
38Snapshot!==o||y||Tt!==null&&Tt.memoizedState.tag&1){if(u.flags|=2048,Ma(9,Ox.bind(null,u,h,x,o),void 0,null),_t===null)throw Error(n(349));(Ws&30)!==0||Ax(u,o,x)}return x}function Ax(s,o,u){s.flags|=16384,s={getSnapshot:o,value:u},o=lt.updateQueue,o===null?(o={lastEffect:null,stores:null},lt.updateQueue=o,o.stores=[s]):(u=o.stores,u===null?o.stores=[s]:u.push(s))}function Ox(s,o,u,h){o.value=u,o.getSnapshot=h,Dx(o)&&Lx(s)}function Mx(s,o,u){return u(function(){Dx(o)&&Lx(s)})}function Dx(s){var o=s.getSnapshot;s=s.value;try{var u=o();return!In(s,u)}catch{return!0}}function Lx(s){var o=jr(s,1);o!==null&&$n(o,s,1,-1)}function Ix(s){var o=tr();return typeof s=="function"&&(s=s()),o.memoizedState=o.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:s},o.queue=s,s=s.dispatch=xE.bind(null,lt,s),[o.memoizedState,s]}function Ma(s,o,u,h){return s={tag:s,create:o,destroy:u,deps:h,next:null},o=lt.updateQueue,o===null?(o={lastEffect:null,stores:null},lt.updateQueue=o,o.lastEffect=s.next=s):(u=o.lastEffect,u===null?o.lastEffect=s.next=s:(h=u.next,u.next=s,s.next=h,o.lastEffect=s)),s}function Fx(){return En().memoizedState}function Ac(s,o,u,h){var x=tr();lt.flags|=s,x.memoizedState=Ma(1|o,u,void 0,h===void 0?null:h)}function Oc(s,o,u,h){var x=En();h=h===void 0?null:h;var y=void 0;if(St!==null){var C=St.memoizedState;if(y=C.destroy,h!==null&&Uf(h,C.deps)){x.memoizedState=Ma(o,u,y,h);return}}lt.flags|=s,x.memoizedState=Ma(1|o,u,y,h)}function Vx(s,o){return Ac(8390656,8,s,o)}function Wf(s,o){return Oc(2048,8,s,o)}function Bx(s,o){return Oc(4,2,s,o)}function Ux(s,o){return Oc(4,4,s,o)}function $x(s,o){if(typeof o=="function")return s=s(),o(s),function(){o(null)};if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function zx(s,o,u){return u=u!=null?u.concat([s]):null,Oc(4,4,$x.bind(null,o,s),u)}function Kf(){}function qx(s,o){var u=En();o=o===void 0?null:o;var h=u.memoizedState;return h!==null&&o!==null&&Uf(o,h[1])?h[0]:(u.memoizedState=[s,o],s)}function Hx(s,o){var u=En();o=o===void 0?null:o;var h=u.memoizedState;return h!==null&&o!==null&&Uf(o,h[1])?h[0]:(s=s(),u.memoizedState=[s,o],s)}function Wx(s,o,u){return(Ws&21)===0?(s.baseState&&(s.baseState=!1,on=!0),s.memoizedState=u):(In(u,o)||(u=N0(),lt.lanes|=u,Ks|=u,s.baseState=!0),o)}function pE(s,o){var u=Xe;Xe=u!==0&&4>u?u:4,s(!0);var h=Bf.transition;Bf.transition={};try{s(!1),o()}finally{Xe=u,Bf.transition=h}}function Kx(){return En().memoizedState}function gE(s,o,u){var h=is(s);if(u={lane:h,action:u,hasEagerState:!1,eagerState:null,next:null},Gx(s))Qx(o,u);else if(u=kx(s,o,u,h),u!==null){var x=Yt();$n(u,s,h,x),Yx(u,o,h)}}function xE(s,o,u){var h=is(s),x={lane:h,action:u,hasEagerState:!1,eagerState:null,next:null};if(Gx(s))Qx(o,x);else{var y=s.alternate;if(s.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var C=o.lastRenderedState,_=y(C,u);if(x.hasEagerState=!0,x.eagerState=_,In(_,C)){var M=o.interleaved;M===null?(x.next=x,Mf(o)):(x.next=M.next,M.next=x),o.interleaved=x;return}}catch{}finally{}u=kx(s,o,x,h),u!==null&&(x=Yt(),$n(u,s,h,x),Yx(u,o,h))}}function Gx(s){var o=s.alternate;return s===lt||o!==null&&o===lt}function Qx(s,o){Ra=Rc=!0;var u=s.pending;u===null?o.next=o:(o.next=u.next,u.next=o),s.pending=o}function Yx(s,o,u){if((u&4194240)!==0){var h=o.lanes;h&=s.pendingLanes,u|=h,o.lanes=u,Gd(s,u)}}var Mc={readContext:Cn,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useInsertionEffect:Ut,useLayoutEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useMutableSource:Ut,useSyncExternalStore:Ut,useId:Ut,unstable_isNewReconciler:!1},yE={readContext:Cn,useCallback:function(s,o){return tr().memoizedState=[s,o===void 0?null:o],s},useContext:Cn,useEffect:Vx,useImperativeHandle:function(s,o,u){return u=u!=null?u.concat([s]):null,Ac(4194308,4,$x.bind(null,o,s),u)},useLayoutEffect:function(s,o){return Ac(4194308,4,s,o)},useInsertionEffect:function(s,o){return Ac(4,2,s,o)},useMemo:function(s,o){var u=tr();return o=o===void 0?null:o,s=s(),u.memoizedState=[s,o],s},useReducer:function(s,o,u){var h=tr();return o=u!==void 0?u(o):o,h.memoizedState=h.baseState=o,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:o},h.queue=s,s=s.dispatch=gE.bind(null,lt,s),[h.memoizedState,s]}
vendor: 6,593 bytes, lines 38-40
38,useRef:function(s){var o=tr();return s={current:s},o.memoizedState=s},useState:Ix,useDebugValue:Kf,useDeferredValue:function(s){return tr().memoizedState=s},useTransition:function(){var s=Ix(!1),o=s[0];return s=pE.bind(null,s[1]),tr().memoizedState=s,[o,s]},useMutableSource:function(){},useSyncExternalStore:function(s,o,u){var h=lt,x=tr();if(ot){if(u===void 0)throw Error(n(407));u=u()}else{if(u=o(),_t===null)throw Error(n(349));(Ws&30)!==0||Ax(h,o,u)}x.memoizedState=u;var y={value:u,getSnapshot:o};return x.queue=y,Vx(Mx.bind(null,h,y,s),[s]),h.flags|=2048,Ma(9,Ox.bind(null,h,y,u,o),void 0,null),u},useId:function(){var s=tr(),o=_t.identifierPrefix;if(ot){var u=Sr,h=Nr;u=(h&~(1<<32-Ln(h)-1)).toString(32)+u,o=":"+o+"R"+u,u=Aa++,0<u&&(o+="H"+u.toString(32)),o+=":"}else u=mE++,o=":"+o+"r"+u.toString(32)+":";return s.memoizedState=o},unstable_isNewReconciler:!1},vE={readContext:Cn,useCallback:qx,useContext:Cn,useEffect:Wf,useImperativeHandle:zx,useInsertionEffect:Bx,useLayoutEffect:Ux,useMemo:Hx,useReducer:qf,useRef:Fx,useState:function(){return qf(Oa)},useDebugValue:Kf,useDeferredValue:function(s){var o=En();return Wx(o,St.memoizedState,s)},useTransition:function(){var s=qf(Oa)[0],o=En().memoizedState;return[s,o]},useMutableSource:_x,useSyncExternalStore:Rx,useId:Kx,unstable_isNewReconciler:!1},bE={readContext:Cn,useCallback:qx,useContext:Cn,useEffect:Wf,useImperativeHandle:zx,useInsertionEffect:Bx,useLayoutEffect:Ux,useMemo:Hx,useReducer:Hf,useRef:Fx,useState:function(){return Hf(Oa)},useDebugValue:Kf,useDeferredValue:function(s){var o=En();return St===null?o.memoizedState=s:Wx(o,St.memoizedState,s)},useTransition:function(){var s=Hf(Oa)[0],o=En().memoizedState;return[s,o]},useMutableSource:_x,useSyncExternalStore:Rx,useId:Kx,unstable_isNewReconciler:!1};function Vn(s,o){if(s&&s.defaultProps){o=ne({},o),s=s.defaultProps;for(var u in s)o[u]===void 0&&(o[u]=s[u]);return o}return o}function Gf(s,o,u,h){o=s.memoizedState,u=u(h,o),u=u==null?o:ne({},o,u),s.memoizedState=u,s.lanes===0&&(s.updateQueue.baseState=u)}var Dc={isMounted:function(s){return(s=s._reactInternals)?Vs(s)===s:!1},enqueueSetState:function(s,o,u){s=s._reactInternals;var h=Yt(),x=is(s),y=kr(h,x);y.payload=o,u!=null&&(y.callback=u),o=ns(s,y,x),o!==null&&($n(o,s,x,h),Ec(o,s,x))},enqueueReplaceState:function(s,o,u){s=s._reactInternals;var h=Yt(),x=is(s),y=kr(h,x);y.tag=1,y.payload=o,u!=null&&(y.callback=u),o=ns(s,y,x),o!==null&&($n(o,s,x,h),Ec(o,s,x))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var u=Yt(),h=is(s),x=kr(u,h);x.tag=2,o!=null&&(x.callback=o),o=ns(s,x,h),o!==null&&($n(o,s,h,u),Ec(o,s,h))}};function Xx(s,o,u,h,x,y,C){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(h,y,C):o.prototype&&o.prototype.isPureReactComponent?!ba(u,h)||!ba(x,y):!0}function Jx(s,o,u){var h=!1,x=Zr,y=o.contextType;return typeof y=="object"&&y!==null?y=Cn(y):(x=sn(o)?Us:Bt.current,h=o.contextTypes,y=(h=h!=null)?Ko(s,x):Zr),o=new o(u,y),s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Dc,s.stateNode=o,o._reactInternals=s,h&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=y),o}function Zx(s,o,u,h){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==s&&Dc.enqueueReplaceState(o,o.state,null)}function Qf(s,o,u,h){var x=s.stateNode;x.props=u,x.state=s.memoizedState,x.refs={},Df(s);var y=o.contextType;typeof y=="object"&&y!==null?x.context=Cn(y):(y=sn(o)?Us:Bt.current,x.context=Ko(s,y)),x.state=s.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Gf(s,o,y,u),x.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(o=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),o!==x.state&&Dc.enqueueReplaceState(x,x.state,null),Pc(s,u,x,h),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function ti(s,o){try{var u="",h=o;do u+=Re(h),h=h.return;while(h);var x=u}catch(y){x=`
39Error generating stack: `+y.message+`
40`+y.stack}return{value:s,source:o,stack:x,digest:null}}function Yf(s,o,u){return{value:s,source:null,stack:u??null,digest:o??null}}function Xf(s,o){try{console.error(o.value)}catch(u){setTimeout(function(){throw u})}}var wE=typeof WeakMap=="function"?WeakMap:Map;function ey(s,o,u){u=kr(-1,u),u.tag=3,u.payload={element:null};var h=o.value;return u.callback=function(){$c||($c=!0,fh=h),Xf(s,o)},u}function ty(s,o,u){u=kr(-1,u),u.tag=3;var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var x=o.value;u.payload=function(){return h(x)},u.callback=function(){Xf(s,o)}}var y=s.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(u.callback=function(){Xf(s,o),typeof h!="function"&&(ss===null?ss=new Set([this]):ss.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})}),u}function ny(s,o,u){var h=s.pingCache;if(h===null){h=s.pingCache=new wE;var x=new Set;h.set(o,x)}else x=h.get(o),x===void 0&&(x=new Set,h.set(o,x));x.has(u)||(x.add(u),s=DE.bind(null,s,o,u),o.then(s,s))}function ry(s){do{var o;if((o=s.tag===13)&&(o=s.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return s;s=s.return}while(s!==null);return null}function sy(s,o,u,h,x){return(s.mode&1)===0?(s===o?s.flags|=65536:(s.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(o=kr(-1,1),o.tag=2,ns(u,o,1))),u.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var NE=T.ReactCurrentOwner,on=!1;function Qt(s,o,u,h){o.child=s===null?jx(o,null,u,h):Xo(o,s.child,u,h)}function oy(s,o,u,h,x){u=u.render;var y=o.ref;return Zo(o,x),h=$f(s,o,u,h,y,x),u=zf(),s!==null&&!on?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~x,Cr(s,o,x)):(ot&&u&&kf(o),o.flags|=1,Qt(s,o,h,x),o.child)}function iy(s,o,u,h,x){if(s===null){var y=u.type;return typeof y=="function"&&!vh(y)&&y.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(o.tag=15,o.type=y,ay(s,o,y,h,x)):(s=Gc(u.type,null,h,o,o.mode,x),s.ref=o.ref,s.return=o,o.child=s)}if(y=s.child,(s.lanes&x)===0){var C=y.memoizedProps;if(u=u.compare,u=u!==null?u:ba,u(C,h)&&s.ref===o.ref)return Cr(s,o,x)}return o.flags|=1,s=ls(y,h),s.ref=o.ref,s.return=o,o.child=s}function ay(s,o,u,h,x){if(s!==null){var y=s.memoizedProps;
vendor: 41,361 bytes, line 40
40if(ba(y,h)&&s.ref===o.ref)if(on=!1,o.pendingProps=h=y,(s.lanes&x)!==0)(s.flags&131072)!==0&&(on=!0);else return o.lanes=s.lanes,Cr(s,o,x)}return Jf(s,o,u,h,x)}function ly(s,o,u){var h=o.pendingProps,x=h.children,y=s!==null?s.memoizedState:null;if(h.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},tt(ri,xn),xn|=u;else{if((u&1073741824)===0)return s=y!==null?y.baseLanes|u:u,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:s,cachePool:null,transitions:null},o.updateQueue=null,tt(ri,xn),xn|=s,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=y!==null?y.baseLanes:u,tt(ri,xn),xn|=h}else y!==null?(h=y.baseLanes|u,o.memoizedState=null):h=u,tt(ri,xn),xn|=h;return Qt(s,o,x,u),o.child}function cy(s,o){var u=o.ref;(s===null&&u!==null||s!==null&&s.ref!==u)&&(o.flags|=512,o.flags|=2097152)}function Jf(s,o,u,h,x){var y=sn(u)?Us:Bt.current;return y=Ko(o,y),Zo(o,x),u=$f(s,o,u,h,y,x),h=zf(),s!==null&&!on?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~x,Cr(s,o,x)):(ot&&h&&kf(o),o.flags|=1,Qt(s,o,u,x),o.child)}function uy(s,o,u,h,x){if(sn(u)){var y=!0;vc(o)}else y=!1;if(Zo(o,x),o.stateNode===null)Ic(s,o),Jx(o,u,h),Qf(o,u,h,x),h=!0;else if(s===null){var C=o.stateNode,_=o.memoizedProps;C.props=_;var M=C.context,W=u.contextType;typeof W=="object"&&W!==null?W=Cn(W):(W=sn(u)?Us:Bt.current,W=Ko(o,W));var J=u.getDerivedStateFromProps,re=typeof J=="function"||typeof C.getSnapshotBeforeUpdate=="function";re||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(_!==h||M!==W)&&Zx(o,C,h,W),ts=!1;var X=o.memoizedState;C.state=X,Pc(o,h,C,x),M=o.memoizedState,_!==h||X!==M||rn.current||ts?(typeof J=="function"&&(Gf(o,u,J,h),M=o.memoizedState),(_=ts||Xx(o,u,_,h,X,M,W))?(re||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=M),C.props=h,C.state=M,C.context=W,h=_):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{C=o.stateNode,Cx(s,o),_=o.memoizedProps,W=o.type===o.elementType?_:Vn(o.type,_),C.props=W,re=o.pendingProps,X=C.context,M=u.contextType,typeof M=="object"&&M!==null?M=Cn(M):(M=sn(u)?Us:Bt.current,M=Ko(o,M));var me=u.getDerivedStateFromProps;(J=typeof me=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(_!==re||X!==M)&&Zx(o,C,h,M),ts=!1,X=o.memoizedState,C.state=X,Pc(o,h,C,x);var ye=o.memoizedState;_!==re||X!==ye||rn.current||ts?(typeof me=="function"&&(Gf(o,u,me,h),ye=o.memoizedState),(W=ts||Xx(o,u,W,h,X,ye,M)||!1)?(J||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(h,ye,M),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(h,ye,M)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||_===s.memoizedProps&&X===s.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||_===s.memoizedProps&&X===s.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ye),C.props=h,C.state=ye,C.context=M,h=W):(typeof C.componentDidUpdate!="function"||_===s.memoizedProps&&X===s.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||_===s.memoizedProps&&X===s.memoizedState||(o.flags|=1024),h=!1)}return Zf(s,o,u,h,y,x)}function Zf(s,o,u,h,x,y){cy(s,o);var C=(o.flags&128)!==0;if(!h&&!C)return x&&px(o,u,!1),Cr(s,o,y);h=o.stateNode,NE.current=o;var _=C&&typeof u.getDerivedStateFromError!="function"?null:h.render();return o.flags|=1,s!==null&&C?(o.child=Xo(o,s.child,null,y),o.child=Xo(o,null,_,y)):Qt(s,o,_,y),o.memoizedState=h.state,x&&px(o,u,!0),o.child}function dy(s){var o=s.stateNode;o.pendingContext?hx(s,o.pendingContext,o.pendingContext!==o.context):o.context&&hx(s,o.context,!1),Lf(s,o.containerInfo)}function fy(s,o,u,h,x){return Yo(),Tf(x),o.flags|=256,Qt(s,o,u,h),o.child}var eh={dehydrated:null,treeContext:null,retryLane:0};function th(s){return{baseLanes:s,cachePool:null,transitions:null}}function hy(s,o,u){var h=o.pendingProps,x=at.current,y=!1,C=(o.flags&128)!==0,_;if((_=C)||(_=s!==null&&s.memoizedState===null?!1:(x&2)!==0),_?(y=!0,o.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),tt(at,x&1),s===null)return Pf(o),s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((o.mode&1)===0?o.lanes=1:s.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(C=h.children,s=h.fallback,y?(h=o.mode,y=o.child,C={mode:"hidden",children:C},(h&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=C):y=Qc(C,h,0,null),s=Xs(s,h,u,null),y.return=o,s.return=o,y.sibling=s,o.child=y,o.child.memoizedState=th(u),o.memoizedState=eh,s):nh(o,C));if(x=s.memoizedState,x!==null&&(_=x.dehydrated,_!==null))return SE(s,o,C,h,_,x,u);if(y){y=h.fallback,C=o.mode,x=s.child,_=x.sibling;var M={mode:"hidden",children:h.children};return(C&1)===0&&o.child!==x?(h=o.child,h.childLanes=0,h.pendingProps=M,o.deletions=null):(h=ls(x,M),h.subtreeFlags=x.subtreeFlags&14680064),_!==null?y=ls(_,y):(y=Xs(y,C,u,null),y.flags|=2),y.return=o,h.return=o,h.sibling=y,o.child=h,h=y,y=o.child,C=s.child.memoizedState,C=C===null?th(u):{baseLanes:C.baseLanes|u,cachePool:null,transitions:C.transitions},y.memoizedState=C,y.childLanes=s.childLanes&~u,o.memoizedState=eh,h}return y=s.child,s=y.sibling,h=ls(y,{mode:"visible",children:h.children}),(o.mode&1)===0&&(h.lanes=u),h.return=o,h.sibling=null,s!==null&&(u=o.deletions,u===null?(o.deletions=[s],o.flags|=16):u.push(s)),o.child=h,o.memoizedState=null,h}function nh(s,o){return o=Qc({mode:"visible",children:o},s.mode,0,null),o.return=s,s.child=o}function Lc(s,o,u,h){return h!==null&&Tf(h),Xo(o,s.child,null,u),s=nh(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function SE(s,o,u,h,x,y,C){if(u)return o.flags&256?(o.flags&=-257,h=Yf(Error(n(422))),Lc(s,o,C,h)):o.memoizedState!==null?(o.child=s.child,o.flags|=128,null):(y=h.fallback,x=o.mode,h=Qc({mode:"visible",children:h.children},x,0,null),y=Xs(y,x,C,null),y.flags|=2,h.return=o,y.return=o,h.sibling=y,o.child=h,(o.mode&1)!==0&&Xo(o,s.child,null,C),o.child.memoizedState=th(C),o.memoizedState=eh,y);if((o.mode&1)===0)return Lc(s,o,C,null);if(x.data==="$!"){if(h=x.nextSibling&&x.nextSibling.dataset,h)var _=h.dgst;return h=_,y=Error(n(419)),h=Yf(y,h,void 0),Lc(s,o,C,h)}if(_=(C&s.childLanes)!==0,on||_){if(h=_t,h!==null){switch(C&-C){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(h.suspendedLanes|C))!==0?0:x,x!==0&&x!==y.retryLane&&(y.retryLane=x,jr(s,x),$n(h,s,x,-1))}return yh(),h=Yf(Error(n(421))),Lc(s,o,C,h)}return x.data==="$?"?(o.flags|=128,o.child=s.child,o=LE.bind(null,s),x._reactRetry=o,null):(s=y.treeContext,gn=Xr(x.nextSibling),pn=o,ot=!0,Fn=null,s!==null&&(jn[kn++]=Nr,jn[kn++]=Sr,jn[kn++]=$s,Nr=s.id,Sr=s.overflow,$s=o),o=nh(o,h.children),o.flags|=4096,o)}function my(s,o,u){s.lanes|=o;var h=s.alternate;h!==null&&(h.lanes|=o),Of(s.return,o,u)}function rh(s,o,u,h,x){var y=s.memoizedState;y===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:x}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=h,y.tail=u,y.tailMode=x)}function py(s,o,u){var h=o.pendingProps,x=h.revealOrder,y=h.tail;if(Qt(s,o,h.children,u),h=at.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&my(s,u,o);else if(s.tag===19)my(s,u,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}h&=1}if(tt(at,h),(o.mode&1)===0)o.memoizedState=null;else switch(x){case"forwards":for(u=o.child,x=null;u!==null;)s=u.alternate,s!==null&&Tc(s)===null&&(x=u),u=u.sibling;u=x,u===null?(x=o.child,o.child=null):(x=u.sibling,u.sibling=null),rh(o,!1,x,u,y);break;case"backwards":for(u=null,x=o.child,o.child=null;x!==null;){if(s=x.alternate,s!==null&&Tc(s)===null){o.child=x;break}s=x.sibling,x.sibling=u,u=x,x=s}rh(o,!0,u,null,y);break;case"together":rh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ic(s,o){(o.mode&1)===0&&s!==null&&(s.alternate=null,o.alternate=null,o.flags|=2)}function Cr(s,o,u){if(s!==null&&(o.dependencies=s.dependencies),Ks|=o.lanes,(u&o.childLanes)===0)return null;if(s!==null&&o.child!==s.child)throw Error(n(153));if(o.child!==null){for(s=o.child,u=ls(s,s.pendingProps),o.child=u,u.return=o;s.sibling!==null;)s=s.sibling,u=u.sibling=ls(s,s.pendingProps),u.return=o;u.sibling=null}return o.child}function jE(s,o,u){switch(o.tag){case 3:dy(o),Yo();break;case 5:Tx(o);break;case 1:sn(o.type)&&vc(o);break;case 4:Lf(o,o.stateNode.containerInfo);break;case 10:var h=o.type._context,x=o.memoizedProps.value;tt(kc,h._currentValue),h._currentValue=x;break;case 13:if(h=o.memoizedState,h!==null)return h.dehydrated!==null?(tt(at,at.current&1),o.flags|=128,null):(u&o.child.childLanes)!==0?hy(s,o,u):(tt(at,at.current&1),s=Cr(s,o,u),s!==null?s.sibling:null);tt(at,at.current&1);break;case 19:if(h=(u&o.childLanes)!==0,(s.flags&128)!==0){if(h)return py(s,o,u);o.flags|=128}if(x=o.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),tt(at,at.current),h)break;return null;case 22:case 23:return o.lanes=0,ly(s,o,u)}return Cr(s,o,u)}var gy,sh,xy,yy;gy=function(s,o){for(var u=o.child;u!==null;){if(u.tag===5||u.tag===6)s.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},sh=function(){},xy=function(s,o,u,h){var x=s.memoizedProps;if(x!==h){s=o.stateNode,Hs(er.current);var y=null;switch(u){case"input":x=Et(s,x),h=Et(s,h),y=[];break;case"select":x=ne({},x,{value:void 0}),h=ne({},h,{value:void 0}),y=[];break;case"textarea":x=vr(s,x),h=vr(s,h),y=[];break;default:typeof x.onClick!="function"&&typeof h.onClick=="function"&&(s.onclick=gc)}Id(u,h);var C;u=null;for(W in x)if(!h.hasOwnProperty(W)&&x.hasOwnProperty(W)&&x[W]!=null)if(W==="style"){var _=x[W];for(C in _)_.hasOwnProperty(C)&&(u||(u={}),u[C]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(i.hasOwnProperty(W)?y||(y=[]):(y=y||[]).push(W,null));for(W in h){var M=h[W];if(_=x!=null?x[W]:void 0,h.hasOwnProperty(W)&&M!==_&&(M!=null||_!=null))if(W==="style")if(_){for(C in _)!_.hasOwnProperty(C)||M&&M.hasOwnProperty(C)||(u||(u={}),u[C]="");for(C in M)M.hasOwnProperty(C)&&_[C]!==M[C]&&(u||(u={}),u[C]=M[C])}else u||(y||(y=[]),y.push(W,u)),u=M;else W==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,_=_?_.__html:void 0,M!=null&&_!==M&&(y=y||[]).push(W,M)):W==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(W,""+M):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(i.hasOwnProperty(W)?(M!=null&&W==="onScroll"&&nt("scroll",s),y||_===M||(y=[])):(y=y||[]).push(W,M))}u&&(y=y||[]).push("style",u);var W=y;(o.updateQueue=W)&&(o.flags|=4)}},yy=function(s,o,u,h){u!==h&&(o.flags|=4)};function Da(s,o){if(!ot)switch(s.tailMode){case"hidden":o=s.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?s.tail=null:u.sibling=null;break;case"collapsed":u=s.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:h.sibling=null}}function $t(s){var o=s.alternate!==null&&s.alternate.child===s.child,u=0,h=0;if(o)for(var x=s.child;x!==null;)u|=x.lanes|x.childLanes,h|=x.subtreeFlags&14680064,h|=x.flags&14680064,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)u|=x.lanes|x.childLanes,h|=x.subtreeFlags,h|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=h,s.childLanes=u,o}function kE(s,o,u){var h=o.pendingProps;switch(Cf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(o),null;case 1:return sn(o.type)&&yc(),$t(o),null;case 3:return h=o.stateNode,ei(),rt(rn),rt(Bt),Vf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(s===null||s.child===null)&&(Sc(o)?o.flags|=4:s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Fn!==null&&(ph(Fn),Fn=null))),sh(s,o),$t(o),null;case 5:If(o);var x=Hs(_a.current);if(u=o.type,s!==null&&o.stateNode!=null)xy(s,o,u,h,x),s.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!h){if(o.stateNode===null)throw Error(n(166));return $t(o),null}if(s=Hs(er.current),Sc(o)){h=o.stateNode,u=o.type;var y=o.memoizedProps;switch(h[Zn]=o,h[ka]=y,s=(o.mode&1)!==0,u){case"dialog":nt("cancel",h),nt("close",h);break;case"iframe":case"object":case"embed":nt("load",h);break;case"video":case"audio":for(x=0;x<Na.length;x++)nt(Na[x],h);break;case"source":nt("error",h);break;case"img":case"image":case"link":nt("error",h),nt("load",h);break;case"details":nt("toggle",h);break;case"input":Pt(h,y),nt("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!y.multiple},nt("invalid",h);break;case"textarea":t0(h,y),nt("invalid",h)}Id(u,y),x=null;for(var C in y)if(y.hasOwnProperty(C)){var _=y[C];C==="children"?typeof _=="string"?h.textContent!==_&&(y.suppressHydrationWarning!==!0&&pc(h.textContent,_,s),x=["children",_]):typeof _=="number"&&h.textContent!==""+_&&(y.suppressHydrationWarning!==!0&&pc(h.textContent,_,s),x=["children",""+_]):i.hasOwnProperty(C)&&_!=null&&C==="onScroll"&&nt("scroll",h)}switch(u){case"input":Le(h),hn(h,y,!0);break;case"textarea":Le(h),r0(h);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(h.onclick=gc)}h=x,o.updateQueue=h,h!==null&&(o.flags|=4)}else{C=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=s0(u)),s==="http://www.w3.org/1999/xhtml"?u==="script"?(s=C.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof h.is=="string"?s=C.createElement(u,{is:h.is}):(s=C.createElement(u),u==="select"&&(C=s,h.multiple?C.multiple=!0:h.size&&(C.size=h.size))):s=C.createElementNS(s,u),s[Zn]=o,s[ka]=h,gy(s,o,!1,!1),o.stateNode=s;e:{switch(C=Fd(u,h),u){case"dialog":nt("cancel",s),nt("close",s),x=h;break;case"iframe":case"object":case"embed":nt("load",s),x=h;break;case"video":case"audio":for(x=0;x<Na.length;x++)nt(Na[x],s);x=h;break;case"source":nt("error",s),x=h;break;case"img":case"image":case"link":nt("error",s),nt("load",s),x=h;break;case"details":nt("toggle",s),x=h;break;case"input":Pt(s,h),x=Et(s,h),nt("invalid",s);break;case"option":x=h;break;case"select":s._wrapperState={wasMultiple:!!h.multiple},x=ne({},h,{value:void 0}),nt("invalid",s);break;case"textarea":t0(s,h),x=vr(s,h),nt("invalid",s);break;default:x=h}Id(u,x),_=x;for(y in _)if(_.hasOwnProperty(y)){var M=_[y];y==="style"?a0(s,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&o0(s,M)):y==="children"?typeof M=="string"?(u!=="textarea"||M!=="")&&ra(s,M):typeof M=="number"&&ra(s,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(i.hasOwnProperty(y)?M!=null&&y==="onScroll"&&nt("scroll",s):M!=null&&P(s,y,M,C))}switch(u){case"input":Le(s),hn(s,h,!1);break;case"textarea":Le(s),r0(s);break;case"option":h.value!=null&&s.setAttribute("value",""+we(h.value));break;case"select":s.multiple=!!h.multiple,y=h.value,y!=null?qr(s,!!h.multiple,y,!1):h.defaultValue!=null&&qr(s,!!h.multiple,h.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=gc)}switch(u){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return $t(o),null;case 6:if(s&&o.stateNode!=null)yy(s,o,s.memoizedProps,h);else{if(typeof h!="string"&&o.stateNode===null)throw Error(n(166));if(u=Hs(_a.current),Hs(er.current),Sc(o)){if(h=o.stateNode,u=o.memoizedProps,h[Zn]=o,(y=h.nodeValue!==u)&&(s=pn,s!==null))switch(s.tag){case 3:pc(h.nodeValue,u,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&pc(h.nodeValue,u,(s.mode&1)!==0)}y&&(o.flags|=4)}else h=(u.nodeType===9?u:u.ownerDocument).createTextNode(h),h[Zn]=o,o.stateNode=h}return $t(o),null;case 13:if(rt(at),h=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(ot&&gn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)wx(),Yo(),o.flags|=98560,y=!1;else if(y=Sc(o),h!==null&&h.dehydrated!==null){if(s===null){if(!y)throw Error(n(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Zn]=o}else Yo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;$t(o),y=!1}else Fn!==null&&(ph(Fn),Fn=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=u,o):(h=h!==null,h!==(s!==null&&s.memoizedState!==null)&&h&&(o.child.flags|=8192,(o.mode&1)!==0&&(s===null||(at.current&1)!==0?jt===0&&(jt=3):yh())),o.updateQueue!==null&&(o.flags|=4),$t(o),null);case 4:return ei(),sh(s,o),s===null&&Sa(o.stateNode.containerInfo),$t(o),null;case 10:return Af(o.type._context),$t(o),null;case 17:return sn(o.type)&&yc(),$t(o),null;case 19:if(rt(at),y=o.memoizedState,y===null)return $t(o),null;if(h=(o.flags&128)!==0,C=y.rendering,C===null)if(h)Da(y,!1);else{if(jt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(C=Tc(s),C!==null){for(o.flags|=128,Da(y,!1),h=C.updateQueue,h!==null&&(o.updateQueue=h,o.flags|=4),o.subtreeFlags=0,h=u,u=o.child;u!==null;)y=u,s=h,y.flags&=14680066,C=y.alternate,C===null?(y.childLanes=0,y.lanes=s,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=C.childLanes,y.lanes=C.lanes,y.child=C.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=C.memoizedProps,y.memoizedState=C.memoizedState,y.updateQueue=C.updateQueue,y.type=C.type,s=C.dependencies,y.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),u=u.sibling;return tt(at,at.current&1|2),o.child}s=s.sibling}y.tail!==null&&pt()>si&&(o.flags|=128,h=!0,Da(y,!1),o.lanes=4194304)}else{if(!h)if(s=Tc(C),s!==null){if(o.flags|=128,h=!0,u=s.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),Da(y,!0),y.tail===null&&y.tailMode==="hidden"&&!C.alternate&&!ot)return $t(o),null}else 2*pt()-y.renderingStartTime>si&&u!==1073741824&&(o.flags|=128,h=!0,Da(y,!1),o.lanes=4194304);y.isBackwards?(C.sibling=o.child,o.child=C):(u=y.last,u!==null?u.sibling=C:o.child=C,y.last=C)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=pt(),o.sibling=null,u=at.current,tt(at,h?u&1|2:u&1),o):($t(o),null);case 22:case 23:return xh(),h=o.memoizedState!==null,s!==null&&s.memoizedState!==null!==h&&(o.flags|=8192),h&&(o.mode&1)!==0?(xn&1073741824)!==0&&($t(o),o.subtreeFlags&6&&(o.flags|=8192)):$t(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function CE(s,o){switch(Cf(o),o.tag){case 1:return sn(o.type)&&yc(),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return ei(),rt(rn),rt(Bt),Vf(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 5:return If(o),null;case 13:if(rt(at),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Yo()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return rt(at),null;case 4:return ei(),null;case 10:return Af(o.type._context),null;case 22:case 23:return xh(),null;case 24:return null;default:return null}}var Fc=!1,zt=!1,EE=typeof WeakSet=="function"?WeakSet:Set,xe=null;function ni(s,o){var u=s.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(h){ut(s,o,h)}else u.current=null}function oh(s,o,u){try{u()}catch(h){ut(s,o,h)}}var vy=!1;function PE(s,o){if(xf=sc,s=X0(),cf(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{u=(u=s.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var x=h.anchorOffset,y=h.focusNode;h=h.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var C=0,_=-1,M=-1,W=0,J=0,re=s,X=null;t:for(;;){for(var me;re!==u||x!==0&&re.nodeType!==3||(_=C+x),re!==y||h!==0&&re.nodeType!==3||(M=C+h),re.nodeType===3&&(C+=re.nodeValue.length),(me=re.firstChild)!==null;)X=re,re=me;for(;;){if(re===s)break t;if(X===u&&++W===x&&(_=C),X===y&&++J===h&&(M=C),(me=re.nextSibling)!==null)break;re=X,X=re.parentNode}re=me}u=_===-1||M===-1?null:{start:_,end:M}}else u=null}u=u||{start:0,end:0}}else u=null;for(yf={focusedElem:s,selectionRange:u},sc=!1,xe=o;xe!==null;)if(o=xe,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,xe=s;else for(;xe!==null;){o=xe;try{var ye=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var Ne=ye.memoizedProps,gt=ye.memoizedState,B=o.stateNode,L=B.getSnapshotBeforeUpdate(o.elementType===o.type?Ne:Vn(o.type,Ne),gt);B.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var $=o.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(oe){ut(o,o.return,oe)}if(s=o.sibling,s!==null){s.return=o.return,xe=s;break}xe=o.return}return ye=vy,vy=!1,ye}function La(s,o,u){var h=o.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var x=h=h.next;do{if((x.tag&s)===s){var y=x.destroy;x.destroy=void 0,y!==void 0&&oh(o,u,y)}x=x.next}while(x!==h)}}function Vc(s,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var u=o=o.next;do{if((u.tag&s)===s){var h=u.create;u.destroy=h()}u=u.next}while(u!==o)}}function ih(s){var o=s.ref;if(o!==null){var u=s.stateNode;switch(s.tag){case 5:s=u;break;default:s=u}typeof o=="function"?o(s):o.current=s}}function by(s){var o=s.alternate;o!==null&&(s.alternate=null,by(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&(delete o[Zn],delete o[ka],delete o[Nf],delete o[uE],delete o[dE])),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 wy(s){return s.tag===5||s.tag===3||s.tag===4}function Ny(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||wy(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 ah(s,o,u){var h=s.tag;if(h===5||h===6)s=s.stateNode,o?u.nodeType===8?u.parentNode.insertBefore(s,o):u.insertBefore(s,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(s,u)):(o=u,o.appendChild(s)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=gc));else if(h!==4&&(s=s.child,s!==null))for(ah(s,o,u),s=s.sibling;s!==null;)ah(s,o,u),s=s.sibling}function lh(s,o,u){var h=s.tag;if(h===5||h===6)s=s.stateNode,o?u.insertBefore(s,o):u.appendChild(s);else if(h!==4&&(s=s.child,s!==null))for(lh(s,o,u),s=s.sibling;s!==null;)lh(s,o,u),s=s.sibling}var Mt=null,Bn=!1;function rs(s,o,u){for(u=u.child;u!==null;)Sy(s,o,u),u=u.sibling}function Sy(s,o,u){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Jl,u)}catch{}switch(u.tag){case 5:zt||ni(u,o);case 6:var h=Mt,x=Bn;Mt=null,rs(s,o,u),Mt=h,Bn=x,Mt!==null&&(Bn?(s=Mt,u=u.stateNode,s.nodeType===8?s.parentNode.removeChild(u):s.removeChild(u)):Mt.removeChild(u.stateNode));break;case 18:Mt!==null&&(Bn?(s=Mt,u=u.stateNode,s.nodeType===8?wf(s.parentNode,u):s.nodeType===1&&wf(s,u),ma(s)):wf(Mt,u.stateNode));break;case 4:h=Mt,x=Bn,Mt=u.stateNode.containerInfo,Bn=!0,rs(s,o,u),Mt=h,Bn=x;break;case 0:case 11:case 14:case 15:if(!zt&&(h=u.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){x=h=h.next;do{var y=x,C=y.destroy;y=y.tag,C!==void 0&&((y&2)!==0||(y&4)!==0)&&oh(u,o,C),x=x.next}while(x!==h)}rs(s,o,u);break;case 1:if(!zt&&(ni(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=u.memoizedProps,h.state=u.memoizedState,h.componentWillUnmount()}catch(_){ut(u,o,_)}rs(s,o,u);break;case 21:rs(s,o,u);break;case 22:u.mode&1?(zt=(h=zt)||u.memoizedState!==null,rs(s,o,u),zt=h):rs(s,o,u);break;default:rs(s,o,u)}}function jy(s){var o=s.updateQueue;if(o!==null){s.updateQueue=null;var u=s.stateNode;u===null&&(u=s.stateNode=new EE),o.forEach(function(h){var x=IE.bind(null,s,h);u.has(h)||(u.add(h),h.then(x,x))})}}function Un(s,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var x=u[h];try{var y=s,C=o,_=C;e:for(;_!==null;){switch(_.tag){case 5:Mt=_.stateNode,Bn=!1;break e;case 3:Mt=_.stateNode.containerInfo,Bn=!0;break e;case 4:Mt=_.stateNode.containerInfo,Bn=!0;break e}_=_.return}if(Mt===null)throw Error(n(160));Sy(y,C,x),Mt=null,Bn=!1;var M=x.alternate;M!==null&&(M.return=null),x.return=null}catch(W){ut(x,o,W)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)ky(o,s),o=o.sibling}function ky(s,o){var u=s.alternate,h=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Un(o,s),nr(s),h&4){try{La(3,s,s.return),Vc(3,s)}catch(Ne){ut(s,s.return,Ne)}try{La(5,s,s.return)}catch(Ne){ut(s,s.return,Ne)}}break;case 1:Un(o,s),nr(s),h&512&&u!==null&&ni(u,u.return);break;case 5:if(Un(o,s),nr(s),h&512&&u!==null&&ni(u,u.return),s.flags&32){var x=s.stateNode;try{ra(x,"")}catch(Ne){ut(s,s.return,Ne)}}if(h&4&&(x=s.stateNode,x!=null)){var y=s.memoizedProps,C=u!==null?u.memoizedProps:y,_=s.type,M=s.updateQueue;if(s.updateQueue=null,M!==null)try{_==="input"&&y.type==="radio"&&y.name!=null&&Pe(x,y),Fd(_,C);var W=Fd(_,y);for(C=0;C<M.length;C+=2){var J=M[C],re=M[C+1];J==="style"?a0(x,re):J==="dangerouslySetInnerHTML"?o0(x,re):J==="children"?ra(x,re):P(x,J,re,W)}switch(_){case"input":it(x,y);break;case"textarea":n0(x,y);break;case"select":var X=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!y.multiple;var me=y.value;me!=null?qr(x,!!y.multiple,me,!1):X!==!!y.multiple&&(y.defaultValue!=null?qr(x,!!y.multiple,y.defaultValue,!0):qr(x,!!y.multiple,y.multiple?[]:"",!1))}x[ka]=y}catch(Ne){ut(s,s.return,Ne)}}break;case 6:if(Un(o,s),nr(s),h&4){if(s.stateNode===null)throw Error(n(162));x=s.stateNode,y=s.memoizedProps;try{x.nodeValue=y}catch(Ne){ut(s,s.return,Ne)}}break;case 3:if(Un(o,s),nr(s),h&4&&u!==null&&u.memoizedState.isDehydrated)try{ma(o.containerInfo)}catch(Ne){ut(s,s.return,Ne)}break;case 4:Un(o,s),nr(s);break;case 13:Un(o,s),nr(s),x=s.child,x.flags&8192&&(y=x.memoizedState!==null,x.stateNode.isHidden=y,!y||x.alternate!==null&&x.alternate.memoizedState!==null||(dh=pt())),h&4&&jy(s);break;case 22:if(J=u!==null&&u.memoizedState!==null,s.mode&1?(zt=(W=zt)||J,Un(o,s),zt=W):Un(o,s),nr(s),h&8192){if(W=s.memoizedState!==null,(s.stateNode.isHidden=W)&&!J&&(s.mode&1)!==0)for(xe=s,J=s.child;J!==null;){for(re=xe=J;xe!==null;){switch(X=xe,me=X.child,X.tag){case 0:case 11:case 14:case 15:La(4,X,X.return);break;case 1:ni(X,X.return);var ye=X.stateNode;if(typeof ye.componentWillUnmount=="function"){h=X,u=X.return;try{o=h,ye.props=o.memoizedProps,ye.state=o.memoizedState,ye.componentWillUnmount()}catch(Ne){ut(h,u,Ne)}}break;case 5:ni(X,X.return);break;case 22:if(X.memoizedState!==null){Py(re);continue}}me!==null?(me.return=X,xe=me):Py(re)}J=J.sibling}e:for(J=null,re=s;;){if(re.tag===5){if(J===null){J=re;try{x=re.stateNode,W?(y=x.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(_=re.stateNode,M=re.memoizedProps.style,C=M!=null&&M.hasOwnProperty("display")?M.display:null,_.style.display=i0("display",C))}catch(Ne){ut(s,s.return,Ne)}}}else if(re.tag===6){if(J===null)try{re.stateNode.nodeValue=W?"":re.memoizedProps}catch(Ne){ut(s,s.return,Ne)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===s)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===s)break e;for(;re.sibling===null;){if(re.return===null||re.return===s)break e;J===re&&(J=null),re=re.return}J===re&&(J=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:Un(o,s),nr(s),h&4&&jy(s);break;case 21:break;default:Un(o,s),nr(s)}}function nr(s){var o=s.flags;if(o&2){try{e:{for(var u=s.return;u!==null;){if(wy(u)){var h=u;break e}u=u.return}throw Error(n(160))}switch(h.tag){case 5:var x=h.stateNode;h.flags&32&&(ra(x,""),h.flags&=-33);var y=Ny(s);lh(s,y,x);break;case 3:case 4:var C=h.stateNode.containerInfo,_=Ny(s);ah(s,_,C);break;default:throw Error(n(161))}}catch(M){ut(s,s.return,M)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function TE(s,o,u){xe=s,Cy(s)}function Cy(s,o,u){for(var h=(s.mode&1)!==0;xe!==null;){var x=xe,y=x.child;if(x.tag===22&&h){var C=x.memoizedState!==null||Fc;if(!C){var _=x.alternate,M=_!==null&&_.memoizedState!==null||zt;_=Fc;var W=zt;if(Fc=C,(zt=M)&&!W)for(xe=x;xe!==null;)C=xe,M=C.child,C.tag===22&&C.memoizedState!==null?Ty(x):M!==null?(M.return=C,xe=M):Ty(x);for(;y!==null;)xe=y,Cy(y),y=y.sibling;xe=x,Fc=_,zt=W}Ey(s)}else(x.subtreeFlags&8772)!==0&&y!==null?(y.return=x,xe=y):Ey(s)}}function Ey(s){for(;xe!==null;){var o=xe;if((o.flags&8772)!==0){var u=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:zt||Vc(5,o);break;case 1:var h=o.stateNode;if(o.flags&4&&!zt)if(u===null)h.componentDidMount();else{var x=o.elementType===o.type?u.memoizedProps:Vn(o.type,u.memoizedProps);h.componentDidUpdate(x,u.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&Px(o,y,h);break;case 3:var C=o.updateQueue;if(C!==null){if(u=null,o.child!==null)switch(o.child.tag){case 5:u=o.child.stateNode;break;case 1:u=o.child.stateNode}Px(o,C,u)}break;case 5:var _=o.stateNode;if(u===null&&o.flags&4){u=_;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&u.focus();break;case"img":M.src&&(u.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var W=o.alternate;if(W!==null){var J=W.memoizedState;if(J!==null){var re=J.dehydrated;re!==null&&ma(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}zt||o.flags&512&&ih(o)}catch(X){ut(o,o.return,X)}}if(o===s){xe=null;break}if(u=o.sibling,u!==null){u.return=o.return,xe=u;break}xe=o.return}}function Py(s){for(;xe!==null;){var o=xe;if(o===s){xe=null;break}var u=o.sibling;if(u!==null){u.return=o.return,xe=u;break}xe=o.return}}function Ty(s){for(;xe!==null;){var o=xe;try{switch(o.tag){case 0:case 11:case 15:var u=o.return;try{Vc(4,o)}catch(M){ut(o,u,M)}break;case 1:var h=o.stateNode;if(typeof h.componentDidMount=="function"){var x=o.return;try{h.componentDidMount()}catch(M){ut(o,x,M)}}var y=o.return;try{ih(o)}catch(M){ut(o,y,M)}break;case 5:var C=o.return;try{ih(o)}catch(M){ut(o,C,M)}}}catch(M){ut(o,o.return,M)}if(o===s){xe=null;break}var _=o.sibling;if(_!==null){_.return=o.return,xe=_;break}xe=o.return}}var _E=Math.ceil,Bc=T.ReactCurrentDispatcher,ch=T.ReactCurrentOwner,Pn=T.ReactCurrentBatchConfig,qe=0,_t=null,bt=null,Dt=0,xn=0,ri=Jr(0),jt=0,Ia=null,Ks=0,Uc=0,uh=0,Fa=null,an=null,dh=0,si=1/0,Er=null,$c=!1,fh=null,ss=null,zc=!1,os=null,qc=0,Va=0,hh=null,Hc=-1,Wc=0;function Yt(){return(qe&6)!==0?pt():Hc!==-1?Hc:Hc=pt()}function is(s){return(s.mode&1)===0?1:(qe&2)!==0&&Dt!==0?Dt&-Dt:hE.transition!==null?(Wc===0&&(Wc=N0()),Wc):(s=Xe,s!==0||(s=window.event,s=s===void 0?16:R0(s.type)),s)}function $n(s,o,u,h){if(50<Va)throw Va=0,hh=null,Error(n(185));ca(s,u,h),((qe&2)===0||s!==_t)&&(s===_t&&((qe&2)===0&&(Uc|=u),jt===4&&as(s,Dt)),ln(s,h),u===1&&qe===0&&(o.mode&1)===0&&(si=pt()+500,bc&&es()))}function ln(s,o){var u=s.callbackNode;hC(s,o);var h=tc(s,s===_t?Dt:0);if(h===0)u!==null&&v0(u),s.callbackNode=null,s.callbackPriority=0;else if(o=h&-h,s.callbackPriority!==o){if(u!=null&&v0(u),o===1)s.tag===0?fE(Ry.bind(null,s)):gx(Ry.bind(null,s)),lE(function(){(qe&6)===0&&es()}),u=null;else{switch(S0(h)){case 1:u=Hd;break;case 4:u=b0;break;case 16:u=Xl;break;case 536870912:u=w0;break;default:u=Xl}u=Vy(u,_y.bind(null,s))}s.callbackPriority=o,s.callbackNode=u}}function _y(s,o){if(Hc=-1,Wc=0,(qe&6)!==0)throw Error(n(327));var u=s.callbackNode;if(oi()&&s.callbackNode!==u)return null;var h=tc(s,s===_t?Dt:0);if(h===0)return null;if((h&30)!==0||(h&s.expiredLanes)!==0||o)o=Kc(s,h);else{o=h;var x=qe;qe|=2;var y=Oy();(_t!==s||Dt!==o)&&(Er=null,si=pt()+500,Qs(s,o));do try{OE();break}catch(_){Ay(s,_)}while(!0);Rf(),Bc.current=y,qe=x,bt!==null?o=0:(_t=null,Dt=0,o=jt)}if(o!==0){if(o===2&&(x=Wd(s),x!==0&&(h=x,o=mh(s,x))),o===1)throw u=Ia,Qs(s,0),as(s,h),ln(s,pt()),u;if(o===6)as(s,h);else{if(x=s.current.alternate,(h&30)===0&&!RE(x)&&(o=Kc(s,h),o===2&&(y=Wd(s),y!==0&&(h=y,o=mh(s,y))),o===1))throw u=Ia,Qs(s,0),as(s,h),ln(s,pt()),u;switch(s.finishedWork=x,s.finishedLanes=h,o){case 0:case 1:throw Error(n(345));case 2:Ys(s,an,Er);break;case 3:if(as(s,h),(h&130023424)===h&&(o=dh+500-pt(),10<o)){if(tc(s,0)!==0)break;if(x=s.suspendedLanes,(x&h)!==h){Yt(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=bf(Ys.bind(null,s,an,Er),o);break}Ys(s,an,Er);break;case 4:if(as(s,h),(h&4194240)===h)break;for(o=s.eventTimes,x=-1;0<h;){var C=31-Ln(h);y=1<<C,C=o[C],C>x&&(x=C),h&=~y}if(h=x,h=pt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*_E(h/1960))-h,10<h){s.timeoutHandle=bf(Ys.bind(null,s,an,Er),h);break}Ys(s,an,Er);break;case 5:Ys(s,an,Er);break;default:throw Error(n(329))}}}return ln(s,pt()),s.callbackNode===u?_y.bind(null,s):null}function mh(s,o){var u=Fa;return s.current.memoizedState.isDehydrated&&(Qs(s,o).flags|=256),s=Kc(s,o),s!==2&&(o=an,an=u,o!==null&&ph(o)),s}function ph(s){an===null?an=s:an.push.apply(an,s)}function RE(s){for(var o=s;;){if(o.flags&16384){var u=o.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var h=0;h<u.length;h++){var x=u[h],y=x.getSnapshot;x=x.value;try{if(!In(y(),x))return!1}catch{return!1}}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function as(s,o){for(o&=~uh,o&=~Uc,s.suspendedLanes|=o,s.pingedLanes&=~o,s=s.expirationTimes;0<o;){var u=31-Ln(o),h=1<<u;s[u]=-1,o&=~h}}function Ry(s){if((qe&6)!==0)throw Error(n(327));oi();var o=tc(s,0);if((o&1)===0)return ln(s,pt()),null;var u=Kc(s,o);if(s.tag!==0&&u===2){var h=Wd(s);h!==0&&(o=h,u=mh(s,h))}if(u===1)throw u=Ia,Qs(s,0),as(s,o),ln(s,pt()),u;if(u===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=o,Ys(s,an,Er),ln(s,pt()),null}function gh(s,o){var u=qe;qe|=1;try{return s(o)}finally{qe=u,qe===0&&(si=pt()+500,bc&&es())}}function Gs(s){os!==null&&os.tag===0&&(qe&6)===0&&oi();var o=qe;qe|=1;var u=Pn.transition,h=Xe;try{if(Pn.transition=null,Xe=1,s)return s()}finally{Xe=h,Pn.transition=u,qe=o,(qe&6)===0&&es()}}function xh(){xn=ri.current,rt(ri)}function Qs(s,o){s.finishedWork=null,s.finishedLanes=0;var u=s.timeoutHandle;if(u!==-1&&(s.timeoutHandle=-1,aE(u)),bt!==null)for(u=bt.return;u!==null;){var h=u;switch(Cf(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&yc();break;case 3:ei(),rt(rn),rt(Bt),Vf();break;case 5:If(h);break;case 4:ei();break;case 13:rt(at);break;case 19:rt(at);break;case 10:Af(h.type._context);break;case 22:case 23:xh()}u=u.return}if(_t=s,bt=s=ls(s.current,null),Dt=xn=o,jt=0,Ia=null,uh=Uc=Ks=0,an=Fa=null,qs!==null){for(o=0;o<qs.length;o++)if(u=qs[o],h=u.interleaved,h!==null){u.interleaved=null;var x=h.next,y=u.pending;if(y!==null){var C=y.next;y.next=x,h.next=C}u.pending=h}qs=null}return s}function Ay(s,o){do{var u=bt;try{if(Rf(),_c.current=Mc,Rc){for(var h=lt.memoizedState;h!==null;){var x=h.queue;x!==null&&(x.pending=null),h=h.next}Rc=!1}if(Ws=0,Tt=St=lt=null,Ra=!1,Aa=0,ch.current=null,u===null||u.return===null){jt=1,Ia=o,bt=null;break}e:{var y=s,C=u.return,_=u,M=o;if(o=Dt,_.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var W=M,J=_,re=J.tag;if((J.mode&1)===0&&(re===0||re===11||re===15)){var X=J.alternate;X?(J.updateQueue=X.updateQueue,J.memoizedState=X.memoizedState,J.lanes=X.lanes):(J.updateQueue=null,J.memoizedState=null)}var me=ry(C);if(me!==null){me.flags&=-257,sy(me,C,_,y,o),me.mode&1&&ny(y,W,o),o=me,M=W;var ye=o.updateQueue;if(ye===null){var Ne=new Set;Ne.add(M),o.updateQueue=Ne}else ye.add(M);break e}else{if((o&1)===0){ny(y,W,o),yh();break e}M=Error(n(426))}}else if(ot&&_.mode&1){var gt=ry(C);if(gt!==null){(gt.flags&65536)===0&&(gt.flags|=256),sy(gt,C,_,y,o),Tf(ti(M,_));break e}}y=M=ti(M,_),jt!==4&&(jt=2),Fa===null?Fa=[y]:Fa.push(y),y=C;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var B=ey(y,M,o);Ex(y,B);break e;case 1:_=M;var L=y.type,$=y.stateNode;if((y.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ss===null||!ss.has($)))){y.flags|=65536,o&=-o,y.lanes|=o;var oe=ty(y,_,o);Ex(y,oe);break e}}y=y.return}while(y!==null)}Dy(u)}catch(Se){o=Se,bt===u&&u!==null&&(bt=u=u.return);continue}break}while(!0)}function Oy(){var s=Bc.current;return Bc.current=Mc,s===null?Mc:s}function yh(){(jt===0||jt===3||jt===2)&&(jt=4),_t===null||(Ks&268435455)===0&&(Uc&268435455)===0||as(_t,Dt)}function Kc(s,o){var u=qe;qe|=2;var h=Oy();(_t!==s||Dt!==o)&&(Er=null,Qs(s,o));do try{AE();break}catch(x){Ay(s,x)}while(!0);if(Rf(),qe=u,Bc.current=h,bt!==null)throw Error(n(261));return _t=null,Dt=0,jt}function AE(){for(;bt!==null;)My(bt)}function OE(){for(;bt!==null&&!sC();)My(bt)}function My(s){var o=Fy(s.alternate,s,xn);s.memoizedProps=s.pendingProps,o===null?Dy(s):bt=o,ch.current=null}function Dy(s){var o=s;do{var u=o.alternate;if(s=o.return,(o.flags&32768)===0){if(u=kE(u,o,xn),u!==null){bt=u;return}}else{if(u=CE(u,o),u!==null){u.flags&=32767,bt=u;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{jt=6,bt=null;return}}if(o=o.sibling,o!==null){bt=o;return}bt=o=s}while(o!==null);jt===0&&(jt=5)}function Ys(s,o,u){var h=Xe,x=Pn.transition;try{Pn.transition=null,Xe=1,ME(s,o,u,h)}finally{Pn.transition=x,Xe=h}return null}function ME(s,o,u,h){do oi();while(os!==null);if((qe&6)!==0)throw Error(n(327));u=s.finishedWork;var x=s.finishedLanes;if(u===null)return null;if(s.finishedWork=null,s.finishedLanes=0,u===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var y=u.lanes|u.childLanes;if(mC(s,y),s===_t&&(bt=_t=null,Dt=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||zc||(zc=!0,Vy(Xl,function(){return oi(),null})),y=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||y){y=Pn.transition,Pn.transition=null;var C=Xe;Xe=1;var _=qe;qe|=4,ch.current=null,PE(s,u),ky(u,s),eE(yf),sc=!!xf,yf=xf=null,s.current=u,TE(u),oC(),qe=_,Xe=C,Pn.transition=y}else s.current=u;if(zc&&(zc=!1,os=s,qc=x),y=s.pendingLanes,y===0&&(ss=null),lC(u.stateNode),ln(s,pt()),o!==null)for(h=s.onRecoverableError,u=0;u<o.length;u++)x=o[u],h(x.value,{componentStack:x.stack,digest:x.digest});if($c)throw $c=!1,s=fh,fh=null,s;return(qc&1)!==0&&s.tag!==0&&oi(),y=s.pendingLanes,(y&1)!==0?s===hh?Va++:(Va=0,hh=s):Va=0,es(),null}function oi(){if(os!==null){var s=S0(qc),o=Pn.transition,u=Xe;try{if(Pn.transition=null,Xe=16>s?16:s,os===null)var h=!1;else{if(s=os,os=null,qc=0,(qe&6)!==0)throw Error(n(331));var x=qe;for(qe|=4,xe=s.current;xe!==null;){var y=xe,C=y.child;if((xe.flags&16)!==0){var _=y.deletions;if(_!==null){for(var M=0;M<_.length;M++){var W=_[M];for(xe=W;xe!==null;){var J=xe;switch(J.tag){case 0:case 11:case 15:La(8,J,y)}var re=J.child;if(re!==null)re.return=J,xe=re;else for(;xe!==null;){J=xe;var X=J.sibling,me=J.return;if(by(J),J===W){xe=null;break}if(X!==null){X.return=me,xe=X;break}xe=me}}}var ye=y.alternate;if(ye!==null){var Ne=ye.child;if(Ne!==null){ye.child=null;do{var gt=Ne.sibling;Ne.sibling=null,Ne=gt}while(Ne!==null)}}xe=y}}if((y.subtreeFlags&2064)!==0&&C!==null)C.return=y,xe=C;else e:for(;xe!==null;){if(y=xe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:La(9,y,y.return)}var B=y.sibling;if(B!==null){B.return=y.return,xe=B;break e}xe=y.return}}var L=s.current;for(xe=L;xe!==null;){C=xe;var $=C.child;if((C.subtreeFlags&2064)!==0&&$!==null)$.return=C,xe=$;else e:for(C=L;xe!==null;){if(_=xe,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:Vc(9,_)}}catch(Se){ut(_,_.return,Se)}if(_===C){xe=null;break e}var oe=_.sibling;if(oe!==null){oe.return=_.return,xe=oe;break e}xe=_.return}}if(qe=x,es(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Jl,s)}catch{}h=!0}return h}finally{Xe=u,Pn.transition=o}}return!1}function Ly(s,o,u){o=ti(u,o),o=ey(s,o,1),s=ns(s,o,1),o=Yt(),s!==null&&(ca(s,1,o),ln(s,o))}function ut(s,o,u){if(s.tag===3)Ly(s,s,u);else for(;o!==null;){if(o.tag===3){Ly(o,s,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ss===null||!ss.has(h))){s=ti(u,s),s=ty(o,s,1),o=ns(o,s,1),s=Yt(),o!==null&&(ca(o,1,s),ln(o,s)
vendor: 4,691 bytes, line 40
40);break}}o=o.return}}function DE(s,o,u){var h=s.pingCache;h!==null&&h.delete(o),o=Yt(),s.pingedLanes|=s.suspendedLanes&u,_t===s&&(Dt&u)===u&&(jt===4||jt===3&&(Dt&130023424)===Dt&&500>pt()-dh?Qs(s,0):uh|=u),ln(s,o)}function Iy(s,o){o===0&&((s.mode&1)===0?o=1:(o=ec,ec<<=1,(ec&130023424)===0&&(ec=4194304)));var u=Yt();s=jr(s,o),s!==null&&(ca(s,o,u),ln(s,u))}function LE(s){var o=s.memoizedState,u=0;o!==null&&(u=o.retryLane),Iy(s,u)}function IE(s,o){var u=0;switch(s.tag){case 13:var h=s.stateNode,x=s.memoizedState;x!==null&&(u=x.retryLane);break;case 19:h=s.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(o),Iy(s,u)}var Fy;Fy=function(s,o,u){if(s!==null)if(s.memoizedProps!==o.pendingProps||rn.current)on=!0;else{if((s.lanes&u)===0&&(o.flags&128)===0)return on=!1,jE(s,o,u);on=(s.flags&131072)!==0}else on=!1,ot&&(o.flags&1048576)!==0&&xx(o,Nc,o.index);switch(o.lanes=0,o.tag){case 2:var h=o.type;Ic(s,o),s=o.pendingProps;var x=Ko(o,Bt.current);Zo(o,u),x=$f(null,o,h,s,x,u);var y=zf();return o.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,sn(h)?(y=!0,vc(o)):y=!1,o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Df(o),x.updater=Dc,o.stateNode=x,x._reactInternals=o,Qf(o,h,s,u),o=Zf(null,o,h,!0,y,u)):(o.tag=0,ot&&y&&kf(o),Qt(null,o,x,u),o=o.child),o;case 16:h=o.elementType;e:{switch(Ic(s,o),s=o.pendingProps,x=h._init,h=x(h._payload),o.type=h,x=o.tag=VE(h),s=Vn(h,s),x){case 0:o=Jf(null,o,h,s,u);break e;case 1:o=uy(null,o,h,s,u);break e;case 11:o=oy(null,o,h,s,u);break e;case 14:o=iy(null,o,h,Vn(h.type,s),u);break e}throw Error(n(306,h,""))}return o;case 0:return h=o.type,x=o.pendingProps,x=o.elementType===h?x:Vn(h,x),Jf(s,o,h,x,u);case 1:return h=o.type,x=o.pendingProps,x=o.elementType===h?x:Vn(h,x),uy(s,o,h,x,u);case 3:e:{if(dy(o),s===null)throw Error(n(387));h=o.pendingProps,y=o.memoizedState,x=y.element,Cx(s,o),Pc(o,h,null,u);var C=o.memoizedState;if(h=C.element,y.isDehydrated)if(y={element:h,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){x=ti(Error(n(423)),o),o=fy(s,o,h,u,x);break e}else if(h!==x){x=ti(Error(n(424)),o),o=fy(s,o,h,u,x);break e}else for(gn=Xr(o.stateNode.containerInfo.firstChild),pn=o,ot=!0,Fn=null,u=jx(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Yo(),h===x){o=Cr(s,o,u);break e}Qt(s,o,h,u)}o=o.child}return o;case 5:return Tx(o),s===null&&Pf(o),h=o.type,x=o.pendingProps,y=s!==null?s.memoizedProps:null,C=x.children,vf(h,x)?C=null:y!==null&&vf(h,y)&&(o.flags|=32),cy(s,o),Qt(s,o,C,u),o.child;case 6:return s===null&&Pf(o),null;case 13:return hy(s,o,u);case 4:return Lf(o,o.stateNode.containerInfo),h=o.pendingProps,s===null?o.child=Xo(o,null,h,u):Qt(s,o,h,u),o.child;case 11:return h=o.type,x=o.pendingProps,x=o.elementType===h?x:Vn(h,x),oy(s,o,h,x,u);case 7:return Qt(s,o,o.pendingProps,u),o.child;case 8:return Qt(s,o,o.pendingProps.children,u),o.child;case 12:return Qt(s,o,o.pendingProps.children,u),o.child;case 10:e:{if(h=o.type._context,x=o.pendingProps,y=o.memoizedProps,C=x.value,tt(kc,h._currentValue),h._currentValue=C,y!==null)if(In(y.value,C)){if(y.children===x.children&&!rn.current){o=Cr(s,o,u);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var _=y.dependencies;if(_!==null){C=y.child;for(var M=_.firstContext;M!==null;){if(M.context===h){if(y.tag===1){M=kr(-1,u&-u),M.tag=2;var W=y.updateQueue;if(W!==null){W=W.shared;var J=W.pending;J===null?M.next=M:(M.next=J.next,J.next=M),W.pending=M}}y.lanes|=u,M=y.alternate,M!==null&&(M.lanes|=u),Of(y.return,u,o),_.lanes|=u;break}M=M.next}}else if(y.tag===10)C=y.type===o.type?null:y.child;else if(y.tag===18){if(C=y.return,C===null)throw Error(n(341));C.lanes|=u,_=C.alternate,_!==null&&(_.lanes|=u),Of(C,u,o),C=y.sibling}else C=y.child;if(C!==null)C.return=y;else for(C=y;C!==null;){if(C===o){C=null;break}if(y=C.sibling,y!==null){y.return=C.return,C=y;break}C=C.return}y=C}Qt(s,o,x.children,u),o=o.child}return o;case 9:return x=o.type,h=o.pendingProps.children,Zo(o,u),x=Cn(x),h=h(x),o.flags|=1,Qt(s,o,h,u),o.child;case 14:return h=o.type,x=Vn(h,o.pendingProps),x=Vn(h.type,x),iy(s,o,h,x,u);case 15:return ay(s,o,o.type,o.pendingProps,u);case 17:return h=o.type,x=o.pendingProps,x=o.elementType===h?x:Vn(h,x),Ic(s,o),o.tag=1,sn(h)?(s=!0,vc(o)):s=!1,Zo(o,u),Jx(o,h,x),Qf(o,h,x,u),Zf(null,o,h,!0,s,u);case 19:return py(s,o,u);case 22:return ly(s,o,u)}throw Error(n(156,o.tag))};function Vy(s,o){return y0(s,o)}function FE(s,o,u,h){this.tag=s,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 2,815 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(s,o,u,h){return new FE(s,o,u,h)}function vh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function VE(s){if(typeof s=="function")return vh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===H)return 11;if(s===ie)return 14}return 2}function ls(s,o){var u=s.alternate;return u===null?(u=Tn(s.tag,o,s.key,s.mode),u.elementType=s.elementType,u.type=s.type,u.stateNode=s.stateNode,u.alternate=s,s.alternate=u):(u.pendingProps=o,u.type=s.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=s.flags&14680064,u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,o=s.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=s.sibling,u.index=s.index,u.ref=s.ref,u}function Gc(s,o,u,h,x,y){var C=2;if(h=s,typeof s=="function")vh(s)&&(C=1);else if(typeof s=="string")C=5;else e:switch(s){case z:return Xs(u.children,x,y,o);case R:C=8,x|=8;break;case K:return s=Tn(12,u,o,x|2),s.elementType=K,s.lanes=y,s;case Z:return s=Tn(13,u,o,x),s.elementType=Z,s.lanes=y,s;case ce:return s=Tn(19,u,o,x),s.elementType=ce,s.lanes=y,s;case te:return Qc(u,x,y,o);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case U:C=10;break e;case q:C=9;break e;case H:C=11;break e;case ie:C=14;break e;case ee:C=16,h=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return o=Tn(C,u,o,x),o.elementType=s,o.type=h,o.lanes=y,o}function Xs(s,o,u,h){return s=Tn(7,s,h,o),s.lanes=u,s}function Qc(s,o,u,h){return s=Tn(22,s,h,o),s.elementType=te,s.lanes=u,s.stateNode={isHidden:!1},s}function bh(s,o,u){return s=Tn(6,s,null,o),s.lanes=u,s}function wh(s,o,u){return o=Tn(4,s.children!==null?s.children:[],s.key,o),o.lanes=u,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}function BE(s,o,u,h,x){this.tag=o,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=Kd(0),this.expirationTimes=Kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kd(0),this.identifierPrefix=h,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Nh(s,o,u,h,x,y,C,_,M){return s=new BE(s,o,u,_,M),o===1?(o=1,y===!0&&(o|=8)):o=0,y=Tn(3,null,null,o),s.current=y,y.stateNode=s,y.memoizedState={element:h,isDehydrated:u,cac
vendor: 1,570 bytes, line 40
40he:null,transitions:null,pendingSuspenseBoundaries:null},Df(y),s}function UE(s,o,u){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:h==null?null:""+h,children:s,containerInfo:o,implementation:u}}function By(s){if(!s)return Zr;s=s._reactInternals;e:{if(Vs(s)!==s||s.tag!==1)throw Error(n(170));var o=s;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(sn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(s.tag===1){var u=s.type;if(sn(u))return mx(s,u,o)}return o}function Uy(s,o,u,h,x,y,C,_,M){return s=Nh(u,h,!0,s,x,y,C,_,M),s.context=By(null),u=s.current,h=Yt(),x=is(u),y=kr(h,x),y.callback=o??null,ns(u,y,x),s.current.lanes=x,ca(s,x,h),ln(s,h),s}function Yc(s,o,u,h){var x=o.current,y=Yt(),C=is(x);return u=By(u),o.context===null?o.context=u:o.pendingContext=u,o=kr(y,C),o.payload={element:s},h=h===void 0?null:h,h!==null&&(o.callback=h),s=ns(x,o,C),s!==null&&($n(s,x,C,y),Ec(s,x,C)),C}function Xc(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 $y(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var u=s.retryLane;s.retryLane=u!==0&&u<o?u:o}}function Sh(s,o){$y(s,o),(s=s.alternate)&&$y(s,o)}function $E(){return null}var zy=typeof reportError=="function"?reportError:function(s){console.error(s)};function jh(s){this._internalRoot=s}Jc.prototype.render=jh.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(n(409));
vendor: 5,588 bytes, line 40
40Yc(s,o,null,null)},Jc.prototype.unmount=jh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;Gs(function(){Yc(null,s,null,null)}),o[br]=null}};function Jc(s){this._internalRoot=s}Jc.prototype.unstable_scheduleHydration=function(s){if(s){var o=C0();s={blockedOn:null,target:s,priority:o};for(var u=0;u<Gr.length&&o!==0&&o<Gr[u].priority;u++);Gr.splice(u,0,s),u===0&&T0(s)}};function kh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Zc(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function qy(){}function zE(s,o,u,h,x){if(x){if(typeof h=="function"){var y=h;h=function(){var W=Xc(C);y.call(W)}}var C=Uy(o,h,s,0,null,!1,!1,"",qy);return s._reactRootContainer=C,s[br]=C.current,Sa(s.nodeType===8?s.parentNode:s),Gs(),C}for(;x=s.lastChild;)s.removeChild(x);if(typeof h=="function"){var _=h;h=function(){var W=Xc(M);_.call(W)}}var M=Nh(s,0,!1,null,null,!1,!1,"",qy);return s._reactRootContainer=M,s[br]=M.current,Sa(s.nodeType===8?s.parentNode:s),Gs(function(){Yc(o,M,u,h)}),M}function eu(s,o,u,h,x){var y=u._reactRootContainer;if(y){var C=y;if(typeof x=="function"){var _=x;x=function(){var M=Xc(C);_.call(M)}}Yc(o,C,s,x)}else C=zE(u,o,s,x,h);return Xc(C)}j0=function(s){switch(s.tag){case 3:var o=s.stateNode;if(o.current.memoizedState.isDehydrated){var u=la(o.pendingLanes);u!==0&&(Gd(o,u|1),ln(o,pt()),(qe&6)===0&&(si=pt()+500,es()))}break;case 13:Gs(function(){var h=jr(s,1);if(h!==null){var x=Yt();$n(h,s,1,x)}}),Sh(s,1)}},Qd=function(s){if(s.tag===13){var o=jr(s,134217728);if(o!==null){var u=Yt();$n(o,s,134217728,u)}Sh(s,134217728)}},k0=function(s){if(s.tag===13){var o=is(s),u=jr(s,o);if(u!==null){var h=Yt();$n(u,s,o,h)}Sh(s,o)}},C0=function(){return Xe},E0=function(s,o){var u=Xe;try{return Xe=s,o()}finally{Xe=u}},Ud=function(s,o,u){switch(o){case"input":if(it(s,u),o=u.name,u.type==="radio"&&o!=null){for(u=s;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==s&&h.form===s.form){var x=xc(h);if(!x)throw Error(n(90));De(h),it(h,x)}}}break;case"textarea":n0(s,u);break;case"select":o=u.value,o!=null&&qr(s,!!u.multiple,o,!1)}},d0=gh,f0=Gs;var qE={usingClientEntryPoint:!1,Events:[Ca,Ho,xc,c0,u0,gh]},Ba={findFiberByHostInstance:Bs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HE={bundleType:Ba.bundleType,version:Ba.version,rendererPackageName:Ba.rendererPackageName,rendererConfig:Ba.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=g0(s),s===null?null:s.stateNode},findFiberByHostInstance:Ba.findFiberByHostInstance||$E,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 tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{Jl=tu.inject(HE),Jn=tu}catch{}}return cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qE,cn.createPortal=function(s,o){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kh(o))throw Error(n(200));return UE(s,o,null,u)},cn.createRoot=function(s,o){if(!kh(s))throw Error(n(299));var u=!1,h="",x=zy;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),o=Nh(s,1,!1,null,null,u,!1,h,x),s[br]=o.current,Sa(s.nodeType===8?s.parentNode:s),new jh(o)},cn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=g0(o),s=s===null?null:s.stateNode,s},cn.flushSync=function(s){return Gs(s)},cn.hydrate=function(s,o,u){if(!Zc(o))throw Error(n(200));return eu(null,s,o,!0,u)},cn.hydrateRoot=function(s,o,u){if(!kh(s))throw Error(n(405));var h=u!=null&&u.hydratedSources||null,x=!1,y="",C=zy;if(u!=null&&(u.unstable_strictMode===!0&&(x=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onRecoverableError!==void 0&&(C=u.onRecoverableError)),o=Uy(o,null,s,1,u??null,x,!1,y,C),s[br]=o.current,Sa(s),h)for(s=0;s<h.length;s++)u=h[s],x=u._getVersion,x=x(u._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[u,x]:o.mutableSourceEagerHydrationData.push(u,x);return new Jc(o)},cn.render=function(s,o,u){if(!Zc(o))throw Error(n(200));return eu(null,s,o,!1,u)},cn.unmountComponentAtNode=function(s){if(!Zc(s))throw Error(n(40));return s._reactRootContainer?(Gs(function(){eu(null,null,s,!1,function(){s._reactRootContainer=null,s[br]=null})}),!0):!1},cn.unstable_batchedUpdates=gh,cn.unstable_renderSubtreeIntoContainer=function(s,o,u,h){if(!Zc(u))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return eu(s,o,u,!1,h)},cn.version="18.3.1-next-f1338f8080-20240426",cn}var Zy;function p1(){if(Zy)return Th.exports;Zy=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(),Th.exports=ZE(),Th.exports}var ev;
40function eP(){if(ev)return ru;ev=1;var e=p1();return ru.createRoot=e.createRoot,ru.hydrateRoot=e.hydrateRoot,ru}var tP=eP();const nP=Ap(tP),rP=20,sP=1e6,Mr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Ah=0;function oP(){return Ah=(Ah+1)%Number.MAX_VALUE,Ah.toString()}const Oh=new Map,tv=e=>{if(Oh.has(e))return;const t=setTimeout(()=>{Oh.delete(e),al({type:Mr.REMOVE_TOAST,toastId:e})},sP);Oh.set(e,t)},iP=(e,t)=>{switch(t.type){case Mr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,rP)};case Mr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Mr.DISMISS_TOAST:{const{toastId:n}=t;return n?tv(n):e.toasts.forEach(r=>{tv(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Mr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},wu=[];let Nu={toasts:[]};function al(e){Nu=iP(Nu,e),wu.forEach(t=>{t(Nu)})}function aP({...e}){const t=oP(),n=i=>al({type:Mr.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>al({type:Mr.DISMISS_TOAST,toastId:t});return al({type:Mr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function lP(){const[e,t]=b.useState(Nu);return b.useEffect(()=>(wu.push(t),()=>{const n=wu.indexOf(t);n>-1&&wu.splice(n,1)}),[e]),{...e,toast:aP,dismiss:n=>al({type:Mr.DISMISS_TOAST,toastId:n})}}function g1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=g1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function x1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=g1(e))&&(r&&(r+=" "),r+=t);return r}const nv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rv=x1,ld=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,c=Object.keys(i).map(m=>{const p=n==null?void 0:n[m],g=l==null?void 0:l[m];if(p===null)return null;const v=nv(p)||nv(g);return i[m][v]}),d=n&&Object.entries(n).reduce((m,p)=>{let[g,v]=p;return v===void 0||(m[g]=v),m},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((m,p)=>{let{class:g,className:v,...N}=p;return Object.entries(N).every(k=>{let[w,j]=k;return Array.isArray(j)?j.includes({...l,...d}[w]):{...l,...d}[w]===j})?[...m,g,v]:m},[]);return rv(e,c,f,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 cP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),y1=(...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 uP={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 dP=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:c,...d},f)=>b.createElement("svg",{ref:f,...uP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:y1("lucide",i),...d},[...c.map(([m,p])=>b.createElement(m,p)),...Array.isArray(l)?l:[l]]));/**
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=b.forwardRef(({className:r,...i},l)=>b.createElement(dP,{ref:l,iconNode:t,className:y1(`lucide-${cP(e)}`,r),...i}));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 fP=[["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"}]],Iu=je("Bell",fP);/**
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 hP=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],vm=je("BookMarked",hP);/**
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 mP=[["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"}]],vo=je("BookOpen",mP);/**
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 pP=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],bm=je("Bot",pP);/**
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 gP=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],xP=je("CalendarDays",gP);/**
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 yP=[["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"}]],lr=je("Calendar",yP);/**
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 vP=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Oi=je("Camera",vP);/**
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 bP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qi=je("Check",bP);/**
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 wP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Dp=je("ChevronDown",wP);/**
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 NP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],SP=je("ChevronUp",NP);/**
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 jP=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Fr=je("CircleCheckBig",jP);/**
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 kP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],cd=je("Clock",kP);/**
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 CP=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],wm=je("Copy",CP);/**
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 EP=[["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"}]],Lp=je("DollarSign",EP);/**
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 PP=[["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"}]],Xt=je("Download",PP);/**
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 TP=[["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"}]],_P=je("ExternalLink",TP);/**
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 RP=[["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"}]],AP=je("Eye",RP);/**
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 OP=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],MP=je("Facebook",OP);/**
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 DP=[["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"}]],ht=je("Heart",DP);/**
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 LP=[["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"}]],IP=je("House",LP);/**
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 FP=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],v1=je("LayoutDashboard",FP);
165/**
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 VP=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],BP=je("Link",VP);/**
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 UP=[["path",{d:"M21 15V6",key:"h1cx4g"}],["path",{d:"M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",key:"8saifv"}],["path",{d:"M12 12H3",key:"18klou"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M12 18H3",key:"11ftsu"}]],Fu=je("ListMusic",UP);/**
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 $P=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vu=je("LoaderCircle",$P);/**
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 zP=[["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"}]],bo=je("Mail",zP);/**
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 qP=[["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"}]],Ip=je("MapPin",qP);/**
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 HP=[["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"}]],WP=je("Menu",HP);/**
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 KP=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Mh=je("MessageCircle",KP);/**
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 GP=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],sv=je("MessageSquare",GP);/**
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 QP=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],YP=je("MicVocal",QP);/**
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 XP=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],Bu=je("Mic",XP);/**
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 JP=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],ZP=je("Moon",JP);/**
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 eT=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],cr=je("Music",eT);
225/**
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 tT=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],hl=je("Pause",tT);/**
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 nT=[["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"}]],b1=je("Phone",nT);/**
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 rT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],wo=je("Play",rT);/**
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 sT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ml=je("Plus",sT);/**
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 oT=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],ks=je("Radio",oT);/**
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 iT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],aT=je("RefreshCw",iT);/**
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 lT=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],w1=je("Search",lT);/**
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 cT=[["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"}]],Mi=je("Send",cT);/**
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 uT=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],go=je("Share2",uT);/**
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 dT=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],ov=je("Smartphone",dT);/**
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 fT=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],_s=je("Sparkles",fT);/**
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 hT=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],mT=je("Star",hT);/**
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 pT=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],gT=je("Sun",pT);/**
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 xT=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],yT=je("ThumbsUp",xT);/**
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 vT=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 4,838 bytes, lines 300-345
300],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],bT=je("Trash2",vT);/**
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 wT=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],Nm=je("Trophy",wT);/**
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 NT=[["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"}]],ST=je("Twitter",NT);/**
311 * @license lucide-react v0.475.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const jT=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],kT=je("Upload",jT);/**
316 * @license lucide-react v0.475.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const CT=[["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"}]],N1=je("User",CT);/**
321 * @license lucide-react v0.475.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const ET=[["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"}]],ud=je("Users",ET);/**
326 * @license lucide-react v0.475.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const PT=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],TT=je("Volume2",PT);/**
331 * @license lucide-react v0.475.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const _T=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],RT=je("VolumeX",_T);/**
336 * @license lucide-react v0.475.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const AT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ol=je("X",AT);/**
341 * @license lucide-react v0.475.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const OT=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],MT=je("Youtube",OT),Fp="-",DT=e=>{const t=IT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const d=c.split(Fp);return d[0]===""&&d.length!==1&&d.shift(),S1(d,t)||LT(c)},getConflictingClassGroupIds:(c,d)=>{const f=n[c]||[];return d&&r[c]?[...f,...r[c]]:f}}},S1=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?S1(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(Fp);return(c=t.validators.find(({validator:d})=>d(l)))==null?void 0:c.classGroupId},iv=/^\[(.+)\]$/,LT=e=>{if(iv.test(e)){const t=iv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},IT=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)Sm(n[i],r,i,t);return r},Sm=(e,t,n,r)=>{e.forEach(i=>
vendor: 4,199 bytes, line 345
345{if(typeof i=="string"){const l=i===""?t:av(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(FT(i)){Sm(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,c])=>{Sm(c,av(t,l),n,r)})})},av=(e,t)=>{let n=e;return t.split(Fp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},FT=e=>e.isThemeGetter,VT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(l,c)=>{n.set(l,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let c=n.get(l);if(c!==void 0)return c;if((c=r.get(l))!==void 0)return i(l,c),c},set(l,c){n.has(l)?n.set(l,c):i(l,c)}}},jm="!",km=":",BT=km.length,UT=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const l=[];let c=0,d=0,f=0,m;for(let k=0;k<i.length;k++){let w=i[k];if(c===0&&d===0){if(w===km){l.push(i.slice(f,k)),f=k+BT;continue}if(w==="/"){m=k;continue}}w==="["?c++:w==="]"?c--:w==="("?d++:w===")"&&d--}const p=l.length===0?i:i.substring(f),g=$T(p),v=g!==p,N=m&&m>f?m-f:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:N}};if(t){const i=t+km,l=r;r=c=>c.startsWith(i)?l(c.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=l=>n({className:l,parseClassName:i})}return r},$T=e=>e.endsWith(jm)?e.substring(0,e.length-1):e.startsWith(jm)?e.substring(1):e,zT=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let l=[];return r.forEach(c=>{c[0]==="["||t[c]?(i.push(...l.sort(),c),l=[]):l.push(c)}),i.push(...l.sort()),i}},qT=e=>({cache:VT(e.cacheSize),parseClassName:UT(e),sortModifiers:zT(e),...DT(e)}),HT=/\s+/,WT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=t,c=[],d=e.trim().split(HT);let f="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:g,modifiers:v,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:w}=n(p);if(g){f=p+(f.length>0?" "+f:f);continue}let j=!!w,S=r(j?k.substring(0,w):k);if(!S){if(!j){f=p+(f.length>0?" "+f:f);continue}if(S=r(k),!S){f=p+(f.length>0?" "+f:f);continue}j=!1}const E=l(v).join(":"),P=N?E+jm:E,T=P+S;if(c.includes(T))continue;c.push(T);const A=i(S,j);for(let V=0;V<A.length;++V){const z=A[V];c.push(P+z)}f=p+(f.length>0?" "+f:f)}return f};function KT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=j1(t))&&(r&&(r+=" "),r+=n);return r}const j1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=j1(e[r]))&&(n&&(n+=" "),n+=t);return n};function GT(e,...t){let n,r,i,l=c;function c(f){const m=t.reduce((p,g)=>g(p),e());return n=qT(m),r=n.cache.get,i=n.cache.set,l=d,d(f)}function d(f){const m=r(f);if(m)return m;const p=WT(f,n);return i(f,p),p}return function(){return l(KT.apply(null,arguments))}}const kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},k1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,C1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QT=/^\d+\/\d+$/,YT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XT=/\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$/,JT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ZT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,e_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ii=e=>QT.test(e),Ve=e=>!!e&&!Number.isNaN(Number(e)),us=e=>!!e&&Number.isInteger(Number(e)),Dh=e=>e.endsWith("%")&&Ve(e.slice(0,-1)),Pr=e=>YT.test(e),t_=()=>!0,n_=e=>XT.test(e)&&!JT.test(e),E1=()=>!1,r_=e=>ZT.test(e),s_=e=>e_.test(e),o_=e=>!ve(e)&&!be(e),i_=e=>Hi(e,_1,E1),ve=e=>k1.test(e),Js=e=>Hi(e,R1,n_),Lh=e=>Hi(e,d_,Ve),lv=e=>Hi(e,P1,E1),a_=e=>Hi(e,T1,s_),su=e=>Hi(e,A1,r_),be=e=>C1.test(e),$a=e=>Wi(e,R1),l_=e=>Wi(e,f_),cv=e=>Wi(e,P1),c_=e=>Wi(e,_1),u_=e=>Wi(e,T1),ou=e=>Wi(e,A1,!0),Hi=(e,t,n)=>{const r=k1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Wi=(e,t,n=!1)=>{const r=C1.exec(e);return r?r[1]?t(r[1]):n:!1},P1=e=>e==="position"||e==="percentage",T1=e=>e==="image"||e==="url",_1=e=>e==="length"||e==="size"||e==="bg-size",R1=e=>
vendor: 4,261 bytes, line 345
345e==="length",d_=e=>e==="number",f_=e=>e==="family-name",A1=e=>e==="shadow",h_=()=>{const e=kt("color"),t=kt("font"),n=kt("text"),r=kt("font-weight"),i=kt("tracking"),l=kt("leading"),c=kt("breakpoint"),d=kt("container"),f=kt("spacing"),m=kt("radius"),p=kt("shadow"),g=kt("inset-shadow"),v=kt("text-shadow"),N=kt("drop-shadow"),k=kt("blur"),w=kt("perspective"),j=kt("aspect"),S=kt("ease"),E=kt("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),be,ve],V=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],R=()=>[be,ve,f],K=()=>[ii,"full","auto",...R()],U=()=>[us,"none","subgrid",be,ve],q=()=>["auto",{span:["full",us,be,ve]},us,be,ve],H=()=>[us,"auto",be,ve],Z=()=>["auto","min","max","fr",be,ve],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...R()],te=()=>[ii,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],F=()=>[e,be,ve],se=()=>[...T(),cv,lv,{position:[be,ve]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",c_,i_,{size:[be,ve]}],G=()=>[Dh,$a,Js],pe=()=>["","none","full",m,be,ve],ge=()=>["",Ve,$a,Js],Re=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Ve,Dh,cv,lv],we=()=>["","none",k,be,ve],_e=()=>["none",Ve,be,ve],Ae=()=>["none",Ve,be,ve],Le=()=>[Ve,be,ve],De=()=>[ii,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pr],breakpoint:[Pr],color:[t_],container:[Pr],"drop-shadow":[Pr],ease:["in","out","in-out"],font:[o_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pr],shadow:[Pr],spacing:["px",Ve],text:[Pr],"text-shadow":[Pr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ii,ve,be,j]}],container:["container"],columns:[{columns:[Ve,ve,be,d]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:A()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{start:K()}],end:[{end:K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[us,"auto",be,ve]}],basis:[{basis:[ii,"full","auto",d,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,ii,"auto","initial","none",ve]}],grow:[{grow:["",Ve,be,ve]}],shrink:[{shrink:["",Ve,be,ve]}],order:[{order:[us,"first","last","none",be,ve]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":H()}
vendor: 11,074 bytes, line 345
345],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[d,"screen",...te()]}],"min-w":[{"min-w":[d,"screen","none",...te()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",n,$a,Js]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,be,Lh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dh,ve]}],"font-family":[{font:[l_,ve,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:[i,be,ve]}],"line-clamp":[{"line-clamp":[Ve,"none",be,Lh]}],leading:[{leading:[l,...R()]}],"list-image":[{"list-image":["none",be,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",be,Js]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ve,"auto",be,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ve]}],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",be,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},us,be,ve],radial:["",be,ve],conic:[us,be,ve]},u_,a_]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,be,ve]}],"outline-w":[{outline:["",Ve,$a,Js]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",p,ou,su]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,ou,su]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ve,Js]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",v,ou,su]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ve,be,ve]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"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":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[be,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ve]}],filter:[{filter:["","none",be,ve]}],blur:[{blur:we()}],brightness:[{brightness:[Ve,be,ve]}],contrast:[{contrast:[Ve,be,ve]}],"drop-shadow":[{"drop-shadow":["","none",N,ou,su]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ve,be,ve]}],"hue-rotate":[{"hue-rotate":[Ve,be,ve]}],invert:[{invert:["",Ve,be,ve]}],saturate:[{saturate:[Ve,be,ve]}],sepia:[{sepia:["",Ve,be,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ve]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,be,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,be,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,be,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,be,ve]}],"backdrop-invert":[{"backdrop-invert":["",Ve,be,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,be,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,be,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,be,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",be,ve]}],ease:[{ease:["linear","initial",S,be,ve]}],delay:[{delay:[Ve,be,ve]}],animate:[{animate:["none",E,be,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,be,ve]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[be,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:De()}],"translate-x":[{"translate-x":De()}],"translate-y":[{"translate-y":De()}],"translate-z":[{"translate-z":De()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}
vendor: 5,887 bytes, line 345
345],"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",be,ve]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",be,ve]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ve,$a,Js,Lh]}],stroke:[{stroke:["none",...F()]}],"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"]}},O1=GT(h_);function Ye(...e){return O1(x1(e))}const M1=b.forwardRef(({...e},t)=>a.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}));M1.displayName="ToastProvider";const D1=b.forwardRef(({...e},t)=>a.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}));D1.displayName="ToastViewport";const m_=ld("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"}}),L1=b.forwardRef(({className:e,variant:t,...n},r)=>a.jsx("div",{ref:r,className:Ye(m_({variant:t}),e),...n}));L1.displayName="Toast";
345const p_=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("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}));p_.displayName="ToastAction";const I1=b.forwardRef(({className:e,...t},n)=>a.jsx("button",{ref:n,className:Ye("absolute right-2 top-2 rounded-md p-1 text-foreground/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:a.jsx(Ol,{className:"h-4 w-4"})}));I1.displayName="ToastClose";const F1=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("text-sm font-semibold",e),...t}));F1.displayName="ToastTitle";const V1=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("text-sm opacity-90",e),...t}));V1.displayName="ToastDescription";function g_(){const{toasts:e}=lP();return a.jsxs(M1,{children:[e.map(function({id:t,title:n,description:r,action:i,...l}){return a.jsxs(L1,{...l,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(F1,{children:n}),r&&a.jsx(V1,{children:r})]}),i,a.jsx(I1,{})]},t)}),a.jsx(D1,{})]})}var Ki=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(){}},x_={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ps,Rp,s1,y_=(s1=class{constructor(){ke(this,ps,x_);ke(this,Rp,!1)}setTimeoutProvider(e){fe(this,ps,e)}setTimeout(e,t){return O(this,ps).setTimeout(e,t)}clearTimeout(e){O(this,ps).clearTimeout(e)}setInterval(e,t){return O(this,ps).setInterval(e,t)}clearInterval(e){O(this,ps).clearInterval(e)}},ps=new WeakMap,Rp=new WeakMap,s1),ro=new y_;function v_(e){setTimeout(e,0)}var No=typeof window>"u"||"Deno"in globalThis;function en(){}function b_(e,t){return typeof e=="function"?e(t):e}function Cm(e){return typeof e=="number"&&e>=0&&e!==1/0}function B1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cs(e,t){return typeof e=="function"?e(t):e}function Mn(e,t){return typeof e=="function"?e(t):e}function uv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:c,stale:d}=e;if(c){if(r){if(t.queryHash!==Vp(c,t.options))return!1}else if(!pl(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||i&&i!==t.state.fetchStatus||l&&!l(t))}function dv(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(So(t.options.mutationKey)!==So(l))return!1}else if(!pl(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Vp(e,t){return((t==null?void 0:t.queryKeyHashFn)||So)(e)}function So(e){return JSON.stringify(e,(t,n)=>Em(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function pl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>pl(e[n],t[n])):!1}var w_=Object.prototype.hasOwnProperty;function U1(e,t){if(e===t)return e;const n=fv(e)&&fv(t);if(!n&&!(Em(e)&&Em(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,d=n?new Array(c):{};let f=0;for(let m=0;m<c;m++){const p=n?m:l[m],g=e[p],v=t[p];if(g===v){d[p]=g,(n?m<i:w_.call(e,p))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[p]=v;continue}const N=U1(g,v);d[p]=N,N===g&&f++}return i===c&&f===i?e:d}function Uu(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 fv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Em(e){if(!hv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!hv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hv(e){return Object.prototype.toString.call(e)==="[object Object]"}function N_(e){return new Promise(t=>{ro.setTimeout(t,e)})}function Pm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?U1(e,t):t}function S_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function j_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Bp=Symbol();function $1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Bp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function z1(e,t){return typeof e=="function"?e(...t):!!e}var io,gs,wi,o1,k_=(o1=class extends Ki{constructor(){super();ke(this,io);ke(this,gs);ke(this,wi);fe(this,wi,t=>{if(!No&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){O(this,gs)||this.setEventListener(O(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,gs))==null||t.call(this),fe(this,gs,void 0))}setEventListener(t){var n;
vendor: 5,241 bytes, line 345
345fe(this,wi,t),(n=O(this,gs))==null||n.call(this),fe(this,gs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){O(this,io)!==t&&(fe(this,io,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof O(this,io)=="boolean"?O(this,io):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},io=new WeakMap,gs=new WeakMap,wi=new WeakMap,o1),Up=new k_;function Tm(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var C_=v_;function E_(){let e=[],t=0,n=d=>{d()},r=d=>{d()},i=C_;const l=d=>{t?e.push(d):i(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&i(()=>{r(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||c()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{i=d}}}var Ct=E_(),Ni,xs,Si,i1,P_=(i1=class extends Ki{constructor(){super();ke(this,Ni,!0);ke(this,xs);ke(this,Si);fe(this,Si,t=>{if(!No&&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,xs)||this.setEventListener(O(this,Si))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,xs))==null||t.call(this),fe(this,xs,void 0))}setEventListener(t){var n;fe(this,Si,t),(n=O(this,xs))==null||n.call(this),fe(this,xs,t(this.setOnline.bind(this)))}setOnline(t){O(this,Ni)!==t&&(fe(this,Ni,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return O(this,Ni)}},Ni=new WeakMap,xs=new WeakMap,Si=new WeakMap,i1),$u=new P_;function T_(e){return Math.min(1e3*2**e,3e4)}function q1(e){return(e??"online")==="online"?$u.isOnline():!0}var _m=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function H1(e){let t=!1,n=0,r;const i=Tm(),l=()=>i.status!=="pending",c=w=>{var j;if(!l()){const S=new _m(w);v(S),(j=e.onCancel)==null||j.call(e,S)}},d=()=>{t=!0},f=()=>{t=!1},m=()=>Up.isFocused()&&(e.networkMode==="always"||$u.isOnline())&&e.canRun(),p=()=>q1(e.networkMode)&&e.canRun(),g=w=>{l()||(r==null||r(),i.resolve(w))},v=w=>{l()||(r==null||r(),i.reject(w))},N=()=>new Promise(w=>{var j;r=S=>{(l()||m())&&w(S)},(j=e.onPause)==null||j.call(e)}).then(()=>{var w;r=void 0,l()||(w=e.onContinue)==null||w.call(e)}),k=()=>{if(l())return;let w;const j=n===0?e.initialPromise:void 0;try{w=j??e.fn()}catch(S){w=Promise.reject(S)}Promise.resolve(w).then(g).catch(S=>{var V;if(l())return;const E=e.retry??(No?0:3),P=e.retryDelay??T_,T=typeof P=="function"?P(n,S):P,A=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,S);if(t||!A){v(S);return}n++,(V=e.onFail)==null||V.call(e,n,S),N_(T).then(()=>m()?void 0:N()).then(()=>{t?v(S):k()})})};return{promise:i,status:()=>i.status,cancel:c,continue:()=>(r==null||r(),i),cancelRetry:d,continueRetry:f,canStart:p,start:()=>(p()?k():N().then(k),i)}}var ao,a1,W1=(a1=class{constructor(){ke(this,ao)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cm(this.gcTime)&&fe(this,ao,ro.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(No?1/0:300*1e3))}clearGcTimeout(){O(this,ao)&&(ro.clearTimeout(O(this,ao)),fe(this,ao,void 0))}},ao=new WeakMap,a1),lo,ji,On,co,At,Pl,uo,Hn,Tr,l1,__=(l1=class extends W1{constructor(t){super();ke(this,Hn);ke(this,lo);ke(this,ji);ke(this,On);ke(this,co);ke(this,At);ke(this,Pl);ke(this,uo);fe(this,uo,!1),fe(this,Pl,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,co,t.client),fe(this,On,O(this,co).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,lo,mv(this.options)),this.state=t.state??O(this,lo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=O(this,At))==null?void 0:t.promise}setOptions(t){if(this.options={...O(this,Pl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=mv(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),fe(this,lo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,On).remove(this)}setData(t,n){const r=Pm(this.state.data,t,this.options);return Ie(this,Hn,Tr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ie(this,Hn,Tr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=O(this,At))==null?void 0:r.promise;return(i=O(this,At))==null||i.cancel(t),n?n.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,lo))}isActive(){return this.observers.some(t=>Mn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bp||this.state.dataUpdateCount+this.state.errorUpdate
345Count===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:!B1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,At))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,At))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),O(this,On).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,At)&&(O(this,uo)?O(this,At).cancel({revert:!0}):O(this,At).cancelRetry()),this.scheduleGc()),O(this,On).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,Hn,Tr).call(this,{type:"invalidate"})}async fetch(t,n){var f,m,p,g,v,N,k,w,j,S,E,P;if(this.state.fetchStatus!=="idle"&&((f=O(this,At))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(O(this,At))return O(this,At).continueRetry(),O(this,At).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(A=>A.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,i=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(fe(this,uo,!0),r.signal)})},l=()=>{const T=$1(this.options,n),V=(()=>{const z={client:O(this,co),queryKey:this.queryKey,meta:this.meta};return i(z),z})();return fe(this,uo,!1),this.options.persister?this.options.persister(T,V,this):T(V)},d=(()=>{const T={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:O(this,co),state:this.state,fetchFn:l};return i(T),T})();(m=this.options.behavior)==null||m.onFetch(d,this),fe(this,ji,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=d.fetchOptions)==null?void 0:p.meta))&&Ie(this,Hn,Tr).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),fe(this,At,H1({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:T=>{T instanceof _m&&T.revert&&this.setState({...O(this,ji),fetchStatus:"idle"}),r.abort()},onFail:(T,A)=>{Ie(this,Hn,Tr).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{Ie(this,Hn,Tr).call(this,{type:"pause"})},onContinue:()=>{Ie(this,Hn,Tr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const T=await O(this,At).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(N=(v=O(this,On).config).onSuccess)==null||N.call(v,T,this),(w=(k=O(this,On).config).onSettled)==null||w.call(k,T,this.state.error,this),T}catch(T){if(T instanceof _m){if(T.silent)return O(this,At).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Ie(this,Hn,Tr).call(this,{type:"error",error:T}),(S=(j=O(this,On).config).onError)==null||S.call(j,T,this),(P=(E=O(this,On).config).onSettled)==null||P.call(E,this.state.data,T,this),T}finally{this.scheduleGc()}}},lo=new WeakMap,ji=new WeakMap,On=new WeakMap,co=new WeakMap,At=new WeakMap,Pl=new WeakMap,uo=new WeakMap,Hn=new WeakSet,Tr=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,...K1(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...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 fe(this,ji,t.manual?i:void 0),i;case"error":const l=t.error;
vendor: 13,753 bytes, line 345
345return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),O(this,On).notify({query:this,type:"updated",action:t})})},l1);function K1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mv(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 un,ze,Tl,Jt,fo,ki,_r,ys,_l,Ci,Ei,ho,mo,vs,Pi,Qe,Ya,Rm,Am,Om,Mm,Dm,Lm,Im,G1,c1,R_=(c1=class extends Ki{constructor(t,n){super();ke(this,Qe);ke(this,un);ke(this,ze);ke(this,Tl);ke(this,Jt);ke(this,fo);ke(this,ki);ke(this,_r);ke(this,ys);ke(this,_l);ke(this,Ci);ke(this,Ei);ke(this,ho);ke(this,mo);ke(this,vs);ke(this,Pi,new Set);this.options=n,fe(this,un,t),fe(this,ys,null),fe(this,_r,Tm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,ze).addObserver(this),pv(O(this,ze),this.options)?Ie(this,Qe,Ya).call(this):this.updateResult(),Ie(this,Qe,Mm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fm(O(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fm(O(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ie(this,Qe,Dm).call(this),Ie(this,Qe,Lm).call(this),O(this,ze).removeObserver(this)}setOptions(t){const n=this.options,r=O(this,ze);if(this.options=O(this,un).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mn(this.options.enabled,O(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ie(this,Qe,Im).call(this),O(this,ze).setOptions(this.options),n._defaulted&&!Uu(this.options,n)&&O(this,un).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,ze),observer:this});const i=this.hasListeners();i&&gv(O(this,ze),r,this.options,n)&&Ie(this,Qe,Ya).call(this),this.updateResult(),i&&(O(this,ze)!==r||Mn(this.options.enabled,O(this,ze))!==Mn(n.enabled,O(this,ze))||Cs(this.options.staleTime,O(this,ze))!==Cs(n.staleTime,O(this,ze)))&&Ie(this,Qe,Rm).call(this);const l=Ie(this,Qe,Am).call(this);i&&(O(this,ze)!==r||Mn(this.options.enabled,O(this,ze))!==Mn(n.enabled,O(this,ze))||l!==O(this,vs))&&Ie(this,Qe,Om).call(this,l)}getOptimisticResult(t){const n=O(this,un).getQueryCache().build(O(this,un),t),r=this.createResult(n,t);return O_(this,r)&&(fe(this,Jt,r),fe(this,ki,this.options),fe(this,fo,O(this,ze).state)),r}getCurrentResult(){return O(this,Jt)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&O(this,_r).status==="pending"&&O(this,_r).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){O(this,Pi).add(t)}getCurrentQuery(){return O(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=O(this,un).defaultQueryOptions(t),r=O(this,un).getQueryCache().build(O(this,un),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ie(this,Qe,Ya).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Jt)))}createResult(t,n){var K;const r=O(this,ze),i=this.options,l=O(this,Jt),c=O(this,fo),d=O(this,ki),m=t!==r?t.state:O(this,Tl),{state:p}=t;let g={...p},v=!1,N;if(n._optimisticResults){const U=this.hasListeners(),q=!U&&pv(t,n),H=U&&gv(t,r,n,i);(q||H)&&(g={...g,...K1(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:k,errorUpdatedAt:w,status:j}=g;N=g.data;let S=!1;if(n.placeholderData!==void 0&&N===void 0&&j==="pending"){let U;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(U=l.data,S=!0):U=typeof n.placeholderData=="function"?n.placeholderData((K=O(this,Ei))==null?void 0:K.state.data,O(this,Ei)):n.placeholderData,U!==void 0&&(j="success",N=Pm(l==null?void 0:l.data,U,n),v=!0)}if(n.select&&N!==void 0&&!S)if(l&&N===(c==null?void 0:c.data)&&n.select===O(this,_l))N=O(this,Ci);else try{fe(this,_l,n.select),N=n.select(N),N=Pm(l==null?void 0:l.data,N,n),fe(this,Ci,N),fe(this,ys,null)}catch(U){fe(this,ys,U)}O(this,ys)&&(k=O(this,ys),N=O(this,Ci),w=Date.now(),j="error");const E=g.fetchStatus==="fetching",P=j==="pending",T=j==="error",A=P&&E,V=N!==void 0,R={status:j,fetchStatus:g.fetchStatus,isPending:P,isSuccess:j==="success",isError:T,isInitialLoading:A,isLoading:A,data:N,dataUpdatedAt:g.dataUpdatedAt,error:k,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:E,isRefetching:E&&!P,isLoadingError:T&&!V,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:T&&V,isStale:$p(t,n),refetch:this.refetch,promise:O(this,_r),isEnabled:Mn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const U=Z=>{R.status==="error"?Z.reject(R.error):R.data!==void 0&&Z.resolve(R.data)},q=()=>{const Z=fe(this,_r,R.promise=Tm());U(Z)},H=O(this,_r);switch(H.status){case"pending":t.queryHash===r.queryHash&&U(H);break;case"fulfilled":(R.status==="error"||R.data!==H.value)&&q();break;case"rejected":(R.status!=="error"||R.error!==H.reason)&&q();break}}return R}updateResult(){const t=O(this,Jt),n=this.createResult(O(this,ze),this.options);if(fe(this,fo,O(this,ze).state),fe(this,ki,this.options),O(this,fo).data!==void 0&&fe(this,Ei,O(this,ze)),Uu(n,t))return;fe(this,Jt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!O(this,Pi).size)return!0;const c=new Set(l??O(this,Pi));return this.options.throwOnError&&c.add("error"),Object.keys(O(this,Jt)).some(d=>{const f=d;return O(this,Jt)[f]!==t[f]&&c.has(f)})};Ie(this,Qe,G1).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ie(this,Qe,Mm).call(this)}},un=new WeakMap,ze=new WeakMap,Tl=new WeakMap,Jt=new WeakMap,fo=new WeakMap,ki=new WeakMap,_r=new WeakMap,ys=new WeakMap,_l=new WeakMap,Ci=new WeakMap,Ei=new WeakMap,ho=new WeakMap,mo=new WeakMap,vs=new WeakMap,Pi=new WeakMap,Qe=new WeakSet,Ya=function(t){Ie(this,Qe,Im).call(this);let n=O(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(en)),n},Rm=function(){Ie(this,Qe,Dm).call(this);const t=Cs(this.options.staleTime,O(this,ze));if(No||O(this,Jt).isStale||!Cm(t))return;const r=B1(O(this,Jt).dataUpdatedAt,t)+1;fe(this,ho,ro.setTimeout(()=>{O(this,Jt).isStale||this.updateResult()},r))},Am=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,ze)):this.options.refetchInterval)??!1},Om=function(t){Ie(this,Qe,Lm).call(this),fe(this,vs,t),!(No||Mn(this.options.enabled,O(this,ze))===!1||!Cm(O(this,vs))||O(this,vs)===0)&&fe(this,mo,ro.setInterval(()=>{(this.options.refetchIntervalInBackground||Up.isFocused())&&Ie(this,Qe,Ya).call(this)},O(this,vs)))},Mm=function(){Ie(this,Qe,Rm).call(this),Ie(this,Qe,Om).call(this,Ie(this,Qe,Am).call(this))},Dm=function(){O(this,ho)&&(ro.clearTimeout(O(this,ho)),fe(this,ho,void 0))},Lm=function(){O(this,mo)&&(ro.clearInterval(O(this,mo)),fe(this,mo,void 0))},Im=function(){const t=O(this,un).getQueryCache().build(O(this,un),this.options);if(t===O(this,ze))return;const n=O(this,ze);fe(this,ze,t),fe(this,Tl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},G1=function(t){Ct.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(O(this,Jt))}),O(this,un).getQueryCache().notify({query:O(this,ze),type:"observerResultsUpdated"})})},c1);function A_(e,t){return Mn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function pv(e,t){return A_(e,t)||e.state.data!==void 0&&Fm(e,t,t.refetchOnMount)}function Fm(e,t,n){if(Mn(t.enabled,e)!==!1&&Cs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$p(e,t)}return!1}function gv(e,t,n,r){return(e!==t||Mn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$p(e,n)}function $p(e,t){return Mn(t.enabled,e)!==!1&&e.isStaleByTime(Cs(t.staleTime,e))}function O_(e,t){return!Uu(e.getCurrentResult(),t)}function xv(e){return{onFetch:(t,n)=>{var p,g,v,N,k;const r=t.options,i=(v=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,l=((N=t.state.data)==null?void 0:N.pages)||[],c=((k=t.state.data)==null?void 0:k.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const m=async()=>{let w=!1;const j=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},S=$1(t.options,t.fetchOptions),E=async(P,T,A)=>{if(w)return Promise.reject();if(T==null&&P.pages.length)return Promise.resolve(P);const z=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:T,direction:A?"backward":"forward",meta:t.options.meta};return j(q),q})(),R=await S(z),{maxPages:K}=t.options,U=A?j_:S_;return{pages:U(P.pages,R,K),pageParams:U(P.pageParams,T,K)}};if(i&&l.length){const P=i==="backward",T=P?M_:yv,A={pages:l,pageParams:c},V=T(r,A);d=await E(A,V,P)}else{const P=e??l.length;do{const T=f===0?c[0]??r.initialPageParam:yv(r,d);if(f>0&&T==null)break;d=await E(d,T),f++}while(f<P)}return d};t.options.persister?t.fetchFn=()=>{var w,j;return(j=(w=t.options).persister)==null?void 0:j.call(w,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function yv(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 M_(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 Rl,rr,Zt,po,sr,fs,u1,D_=(u1=class extends W1{constructor(t){super();ke(this,sr);ke(this,Rl);ke(this,rr);ke(this,Zt);ke(this,po);fe(this,Rl,t.client),this.mutationId=t.mutationId,fe(this,Zt,t.mutationCache),fe(this,rr,[]),this.state=t.state||Q1(),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,rr).includes(t)||(O(this,rr).push(t),this.clearGcTimeout(),O(this,Zt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,rr,O(this,rr).filter(n=>n!==t)),this.scheduleGc(),O(this,Zt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){O(this,rr).length||(this.state.status==="pending"?this.scheduleGc():O(this,Zt).remove(this))}continue(){var t;return((t=O(this,po))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,d,f,m,p,g,v,N,k,w,j,S,E,P,T,A,V,z,R,K;const n=()=>{Ie(this,sr,fs).call(this,{type:"continue"})},r={client:O(this,Rl),meta:this.options.meta,mutationKey:this.options.mutationKey};fe(this,po,H1({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(U,q)=>{Ie(this,sr,fs).call(this,{type:"failed",failureCount:U,error:q})},onPause:()=>{Ie(this,sr,fs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,Zt).canRun(this)}));const i=this.state.status==="pending",l=!O(this,po).canStart();try{if(i)n();else{Ie(this,sr,fs).call(this,{type:"pending",variables:t,isPaused:l}),await((d=(c=O(this,Zt).config).onMutate)==null?void 0:d.call(c,t,this,r));const q=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,t,r));q!==this.state.context&&Ie(this,sr,fs).call(this,{type:"pending",context:q,variables:t,isPaused:l})}const U=await O(this,po).start();return await((g=(p=O(this,Zt).config).onSuccess)==null?void 0:g.call(p,U,t,this.state.context,this,r)),await((N=(v=this.options).onSuccess)==null?void 0:N.call(v,U,t,this.state.context,r)),await((w=(k=O(this,Zt).config).onSettled)==null?void 0:w.call(k,U,null,this.state.variables,this.state.context,this,r)),await((S=(j=this.options).onSettled)==null?void 0:S.call(j,U,null,t,this.state.context,r)),Ie(this,sr,fs).call(this,{type:"success",data:U}),U}catch(U){try{throw await((P=(E=O(this,Zt).config).onError)==null?void 0:P.call(E,U,t,this.state.context,this,r)),await((A=(T=this.options).onError)==null?void 0:A.call(T,U,t,this.state.context,r)),await((z=(V=O(this,Zt).config).onSettled)==null?void 0:z.call(V,void 0,U,this.state.variables,this.state.context,this,r)),await((K=(R=this.options).onSettled)==null?void 0:K.call(R,void 0,U,t,this.state.context,r)),U}finally{Ie(this,sr,fs).call(this,{type:"error",error:U})}}finally{O(this,Zt).runNext(this)}}},Rl=new WeakMap,rr=new WeakMap,Zt=new WeakMap,po=new WeakMap,sr=new WeakSet,fs=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};
345case"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),Ct.batch(()=>{O(this,rr).forEach(r=>{r.onMutationUpdate(t)}),O(this,Zt).notify({mutation:this,type:"updated",action:t})})},u1);function Q1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Rr,Wn,Al,d1,L_=(d1=class extends Ki{constructor(t={}){super();ke(this,Rr);ke(this,Wn);ke(this,Al);this.config=t,fe(this,Rr,new Set),fe(this,Wn,new Map),fe(this,Al,0)}build(t,n,r){const i=new D_({client:t,mutationCache:this,mutationId:++nu(this,Al)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){O(this,Rr).add(t);const n=iu(t);if(typeof n=="string"){const r=O(this,Wn).get(n);r?r.push(t):O(this,Wn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(O(this,Rr).delete(t)){const n=iu(t);if(typeof n=="string"){const r=O(this,Wn).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&O(this,Wn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=iu(t);if(typeof n=="string"){const r=O(this,Wn).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=iu(t);if(typeof n=="string"){const i=(r=O(this,Wn).get(n))==null?void 0:r.find(l=>
vendor: 9,029 bytes, line 345
345l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ct.batch(()=>{O(this,Rr).forEach(t=>{this.notify({type:"removed",mutation:t})}),O(this,Rr).clear(),O(this,Wn).clear()})}getAll(){return Array.from(O(this,Rr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dv(n,r))}findAll(t={}){return this.getAll().filter(n=>dv(t,n))}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ct.batch(()=>Promise.all(t.map(n=>n.continue().catch(en))))}},Rr=new WeakMap,Wn=new WeakMap,Al=new WeakMap,d1);function iu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ar,bs,dn,Or,Ir,Su,Vm,f1,I_=(f1=class extends Ki{constructor(n,r){super();ke(this,Ir);ke(this,Ar);ke(this,bs);ke(this,dn);ke(this,Or);fe(this,Ar,n),this.setOptions(r),this.bindMethods(),Ie(this,Ir,Su).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=O(this,Ar).defaultMutationOptions(n),Uu(this.options,r)||O(this,Ar).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,dn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&So(r.mutationKey)!==So(this.options.mutationKey)?this.reset():((i=O(this,dn))==null?void 0:i.state.status)==="pending"&&O(this,dn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=O(this,dn))==null||n.removeObserver(this)}onMutationUpdate(n){Ie(this,Ir,Su).call(this),Ie(this,Ir,Vm).call(this,n)}getCurrentResult(){return O(this,bs)}reset(){var n;(n=O(this,dn))==null||n.removeObserver(this),fe(this,dn,void 0),Ie(this,Ir,Su).call(this),Ie(this,Ir,Vm).call(this)}mutate(n,r){var i;return fe(this,Or,r),(i=O(this,dn))==null||i.removeObserver(this),fe(this,dn,O(this,Ar).getMutationCache().build(O(this,Ar),this.options)),O(this,dn).addObserver(this),O(this,dn).execute(n)}},Ar=new WeakMap,bs=new WeakMap,dn=new WeakMap,Or=new WeakMap,Ir=new WeakSet,Su=function(){var r;const n=((r=O(this,dn))==null?void 0:r.state)??Q1();fe(this,bs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Vm=function(n){Ct.batch(()=>{var r,i,l,c,d,f,m,p;if(O(this,Or)&&this.hasListeners()){const g=O(this,bs).variables,v=O(this,bs).context,N={client:O(this,Ar),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((i=(r=O(this,Or)).onSuccess)==null||i.call(r,n.data,g,v,N),(c=(l=O(this,Or)).onSettled)==null||c.call(l,n.data,null,g,v,N)):(n==null?void 0:n.type)==="error"&&((f=(d=O(this,Or)).onError)==null||f.call(d,n.error,g,v,N),(p=(m=O(this,Or)).onSettled)==null||p.call(m,void 0,n.error,g,v,N))}this.listeners.forEach(g=>{g(O(this,bs))})})},f1),or,h1,F_=(h1=class extends Ki{constructor(t={}){super();ke(this,or);this.config=t,fe(this,or,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??Vp(i,n);let c=this.get(l);return c||(c=new __({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){O(this,or).has(t.queryHash)||(O(this,or).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=O(this,or).get(t.queryHash);n&&(t.destroy(),n===t&&O(this,or).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ct.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return O(this,or).get(t)}getAll(){return[...O(this,or).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>uv(t,r)):n}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},or=new WeakMap,h1),dt,ws,Ns,Ti,_i,Ss,Ri,Ai,m1,V_=(m1=class{constructor(e={}){ke(this,dt);ke(this,ws);ke(this,Ns);ke(this,Ti);ke(this,_i);ke(this,Ss);ke(this,Ri);ke(this,Ai);fe(this,dt,e.queryCache||new F_),fe(this,ws,e.mutationCache||new L_),fe(this,Ns,e.defaultOptions||{}),fe(this,Ti,new Map),fe(this,_i,new Map),fe(this,Ss,0)}mount(){nu(this,Ss)._++,O(this,Ss)===1&&(fe(this,Ri,Up.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onFocus())})),fe(this,Ai,$u.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onOnline())})))}unmount(){var e,t;nu(this,Ss)._--,O(this,Ss)===0&&((e=O(this,Ri))==null||e.call(this),fe(this,Ri,void 0),(t=O(this,Ai))==null||t.call(this),fe(this,Ai,void 0))}isFetching(e){return O(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,ws).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=O(this,dt).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,dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=O(this,dt).get(r.queryHash),l=i==null?void 0:i.state.data,c=b_(t,l);if(c!==void 0)return O(this,dt).build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Ct.batch(()=>O(this,dt).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,dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=O(this,dt);Ct.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=O(this,dt);return Ct.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ct.batch(()=>O(this,dt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(en).catch(en)}invalidateQueries(e,t={}){return Ct.batch(()=>(O(this,dt).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=Ct.batch(()=>O(this,dt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(en)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(en)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=O(this,dt).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=xv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(en).catch(en)}ensureInfiniteQueryData(e){return e.behavior=xv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $u.isOnline()?O(this,ws).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,dt)}getMutationCache(){return O(this,ws)}getDefaultOptions(){return O(this,Ns)}setDefaultOptions(e){fe(this,Ns,e)}setQueryDefaults(e,t){O(this,Ti).set(So(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...O(this,Ti).values()],n={};return t.forEach(r=>{pl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){O(this,_i).set(So(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...O(this,_i).values()],n={};return t.forEach(r=>{pl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...O(this,Ns).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vp(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===Bp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Ns).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,dt).clear(),O(this,ws).clear()}},dt=new WeakMap,ws=new WeakMap,Ns=new WeakMap,Ti=new WeakMap,_i=new WeakMap,Ss=new WeakMap,Ri=new WeakMap,Ai=new WeakMap,m1),Y1=b.createContext(void 0),nn=e=>{const t=b.useContext(Y1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},B_=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(Y1.Provider,{value:e,children:t})),X1=b.createContext(!1),U_=()=>b.useContext(X1);X1.Provider;function $_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
345var z_=b.createContext($_()),q_=()=>b.useContext(z_),H_=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},W_=e=>{b.useEffect(()=>{e.clearReset()},[e])},K_=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||z1(n,[e.error,r])),G_=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Q_=(e,t)=>e.isLoading&&e.isFetching&&!t,Y_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,vv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function X_(e,t,n){var g,v,N,k,w;const r=U_(),i=q_(),l=nn(),c=l.defaultQueryOptions(e);(v=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||v.call(g,c),c._optimisticResults=r?"isRestoring":"optimistic",G_(c),H_(c,i),W_(i);const d=!l.getQueryCache().get(c.queryHash),[f]=b.useState(()=>new t(l,c)),m=f.getOptimisticResult(c),p=!r&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(j=>{const S=p?f.subscribe(Ct.batchCalls(j)):en;return f.updateResult(),S},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),b.useEffect(()=>{f.setOptions(c)},[c,f]),Y_(c,m))throw vv(c,f,i);if(K_({result:m,errorResetBoundary:i,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((k=(N=l.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||k.call(N,c,m),c.experimental_prefetchInRender&&!No&&Q_(m,r)){const j=d?vv(c,f,i):(w=l.getQueryCache().get(c.queryHash))==null?void 0:w.promise;j==null||j.catch(en).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?m:f.trackResult(m)}function Ot(e,t){return X_(e,R_)}function yt(e,t){const n=nn(),[r]=b.useState(()=>new I_(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);const i=b.useSyncExternalStore(b.useCallback(c=>r.subscribe(Ct.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=b.useCallback((c,d)=>{r.mutate(c,d).catch(en)},[r]);if(i.error&&z1(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}const J_=new V_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});function Z_(){const[e,t]=b.useState(!1),n=b.useRef(!1),[r,i]=b.useState(!1),l=b.useRef(!1),[c,d]=b.useState(!1),f=b.useRef(!1),m=b.useRef([]),p=b.useRef([]),g=b.useRef([]),v=b.useRef(null),N=(R=!1)=>{const K=document.createElement("div");return K.style.position="absolute",K.style.pointerEvents="none",K.style.transition="all 0.1s ease-in-out",K.style.zIndex="9999",R?K.style.border="2px solid #2563EB":(K.style.border="2px solid #95a5fc",K.style.backgroundColor="rgba(99, 102, 241, 0.05)"),K},k=(R,K,U=!1)=>{if(!K||!n.current)return;K.offsetWidth;const q=K.getBoundingClientRect();R.style.top=`${q.top+window.scrollY}px`,R.style.left=`${q.left+window.scrollX}px`,R.style.width=`${q.width}px`,R.style.height=`${q.height}px`;let H=R.querySelector("div");H||(H=document.createElement("div"),H.textContent=K.tagName.toLowerCase(),H.style.position="absolute",H.style.top="-27px",H.style.left="-2px",H.style.padding="2px 8px",H.style.fontSize="11px",H.style.fontWeight=U?"500":"400",H.style.color=U?"#ffffff":"#526cff",H.style.backgroundColor=U?"#526cff":"#DBEAFE",H.style.borderRadius="3px",H.style.boxShadow="none",H.style.minWidth="24px",H.style.textAlign="center",R.appendChild(H))},w=R=>{if(!R)return[];const K=[...document.querySelectorAll(`[data-source-location="${R}"]`)];return K.length>0?K:[...document.querySelectorAll(`[data-visual-selector-id="${R}"]`)]},j=()=>{m.current.forEach(R=>{R&&R.parentNode&&R.remove()}),m.current=[],g.current=[]},S=R=>{if(!n.current||l.current)return;if(f.current){j();return}if(R.target.tagName.toLowerCase()==="path"){j();return}const K=R.target.closest("[data-source-location], [data-visual-selector-id]");if(!K){j();return}const U=K.dataset.sourceLocation||K.dataset.visualSelectorId;if(K.dataset.sourceLocation,v.current===U){j();return}const q=w(U);j(),q.forEach(H=>{const Z=N(!1);document.body.appendChild(Z),m.current.push(Z),k(Z,H)}),g.current=q},E=()=>{l.current||j()},P=R=>{var ie;if(!n.current)return;if(f.current){R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation(),window.parent.postMessage({type:"close-dropdowns"},"*");return}if(R.target.tagName.toLowerCase()==="path")return;R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation();const K=R.target.closest("[data-source-location], [data-visual-selector-id]");if(!K)return;const U=K.dataset.sourceLocation||K.dataset.visualSelectorId;K.dataset.sourceLocation,p.current.forEach(ee=>{ee&&ee.parentNode&&ee.remove()}
345),p.current=[],w(U).forEach(ee=>{const te=N(!0);document.body.appendChild(te),p.current.push(te),k(te,ee,!0)}),v.current=U,j();const H=K.getBoundingClientRect(),Z={top:H.top,left:H.left,right:H.right,bottom:H.bottom,width:H.width,height:H.height,centerX:H.left+H.width/2,centerY:H.top+H.height/2},ce={type:"element-selected",tagName:K.tagName,classes:((ie=K.className)==null?void 0:ie.baseVal)||K.className||"",visualSelectorId:U,content:K.innerText,dataSourceLocation:K.dataset.sourceLocation,isDynamicContent:K.dataset.dynamicContent==="true",linenumber:K.dataset.linenumber,filename:K.dataset.filename,position:Z};window.parent.postMessage(ce,"*")},T=()=>{p.current.forEach(R=>{R&&R.parentNode&&R.remove()}),p.current=[],v.current=null},A=(R,K,U=!1)=>{const q=w(R);q.length!==0&&(q.forEach(H=>{var Z;if(U)H.className=K;else{const ce=((Z=H.className)==null?void 0:Z.baseVal)||H.className||"";H.className=O1(ce,K)}}),setTimeout(()=>{var H,Z;v.current===R&&p.current.forEach((ce,ie)=>{ie<q.length&&k(ce,q[ie])}),g.current.length>0&&((Z=(H=g.current[0])==null?void 0:H.dataset)==null?void 0:Z.visualSelectorId)===R&&m.current.forEach((ie,ee)=>{ee<g.current.length&&k(ie,g.current[ee])})},50))},V=(R,K)=>{const U=w(R);U.length!==0&&(U.forEach(q=>{q.innerText=K}),setTimeout(()=>{v.current===R&&p.current.forEach((q,H)=>{H<U.length&&k(q,U[H])})},50))},z=R=>{t(R),n.current=R,R?(document.body.style.cursor="crosshair",document.addEventListener("mouseover",S),document.addEventListener("mouseout",E),document.addEventListener("click",P,!0)):(j(),p.current.forEach(K=>{K&&K.parentNode&&K.remove()}),p.current=[],g.current=[],v.current=null,document.body.style.cursor="default",document.removeEventListener("mouseover",S),document.removeEventListener("mouseout",E),document.removeEventListener("click",P,!0))};return b.useEffect(()=>{document.querySelectorAll("[data-linenumber]:not([data-visual-selector-id])").forEach((q,H)=>{const Z=`visual-id-${q.dataset.filename}-${q.dataset.linenumber}-${H}`;q.dataset.visualSelectorId=Z});const K=()=>{if(v.current){const q=w(v.current);if(q.length>0){const Z=q[0].getBoundingClientRect(),ce=window.innerHeight,ie=window.innerWidth,ee=Z.top<ce&&Z.bottom>0&&Z.left<ie&&Z.right>0,te={top:Z.top,left:Z.left,right:Z.right,bottom:Z.bottom,width:Z.width,height:Z.height,centerX:Z.left+Z.width/2,centerY:Z.top+Z.height/2};window.parent.postMessage({type:"element-position-update",position:te,isInViewport:ee,visualSelectorId:v.current},"*")}}},U=q=>{const H=q.data;switch(H.type){case"toggle-visual-edit-mode":z(H.data.enabled);break;case"update-classes":H.data&&H.data.classes!==void 0?A(H.data.visualSelectorId,H.data.classes,H.data.replace||!1):console.warn("[Agent] Invalid update-classes message:",H);break;case"unselect-element":T();break;case"refresh-page":window.location.reload();break;case"update-content":H.data&&H.data.content!==void 0?V(H.data.visualSelectorId,H.data.content):console.warn("[Agent] Invalid update-content message:",H);break;case"request-element-position":if(v.current){const Z=w(v.current);if(Z.length>0){const ie=Z[0].getBoundingClientRect(),ee=window.innerHeight,te=window.innerWidth,F=ie.top<ee&&ie.bottom>0&&ie.left<te&&ie.right>0,se={top:ie.top,left:ie.left,right:ie.right,bottom:ie.bottom,width:ie.width,height:ie.height,centerX:ie.left+ie.width/2,centerY:ie.top+ie.height/2};window.parent.postMessage({type:"element-position-update",position:se,isInViewport:F,visualSelectorId:v.current},"*")}}break;case"popover-drag-state":H.data&&H.data.isDragging!==void 0&&(i(H.data.isDragging),l.current=H.data.isDragging,H.data.isDragging&&j());break;case"dropdown-state":H.data&&H.data.isOpen!==void 0&&(d(H.data.isOpen),f.current=H.data.isOpen,H.data.isOpen&&j());break}};return window.addEventListener("message",U),window.addEventListener("scroll",K,!0),document.addEventListener("scroll",K,!0),window.parent.postMessage({type:"visual-edit-agent-ready"},"*"),()=>{window.removeEventListener("message",U),window.removeEventListener("scroll",K,!0),document.removeEventListener("scroll",K,!0),document.removeEventListener("mouseover",S),document.removeEventListener("mouseout",E),document.removeEventListener("click",P,!0),j(),p.current.forEach(q=>{q&&q.parentNode&&q.remove()})}},[]),b.useEffect(()=>{n.current=e},[e]),b.useEffect(()=>{l.current=r},[r]),b.useEffect(()=>{f.current=c},[c]),b.useEffect(()=>{const R=()=>
345{if(v.current){const U=w(v.current);p.current.forEach((q,H)=>{H<U.length&&k(q,U[H])})}g.current.length>0&&m.current.forEach((U,q)=>{q<g.current.length&&k(U,g.current[q])})},K=new MutationObserver(U=>{U.some(H=>{const Z=ie=>{if(ie.nodeType===Node.ELEMENT_NODE){if(ie.dataset&&ie.dataset.visualSelectorId)return!0;for(let ee=0;ee<ie.children.length;ee++)if(Z(ie.children[ee]))return!0}return!1};return H.type==="attributes"&&(H.attributeName==="style"||H.attributeName==="class"||H.attributeName==="width"||H.attributeName==="height")&&Z(H.target)})&&setTimeout(R,50)});return K.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["style","class","width","height"]}),window.addEventListener("resize",R),window.addEventListener("scroll",R),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R),K.disconnect()}},[]),null}var Ml=p1();const eR=Ap(Ml);/**
346 * @remix-run/router v1.23.0
347 *
348 * Copyright (c) Remix Software Inc.
349 *
350 * This source code is licensed under the MIT license found in the
351 * LICENSE.md file in the root directory of this source tree.
352 *
353 * @license MIT
354 */function gl(){return gl=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},gl.apply(this,arguments)}var js;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(js||(js={}));const bv="popstate";function tR(e){e===void 0&&(e={});function t(r,i){let{pathname:l,search:c,hash:d}=r.location;return Bm("",{pathname:l,search:c,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:zu(i)}return rR(t,n,null,e)}function Nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function J1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nR(){return Math.random().toString(36).substr(2,8)}function wv(e,t){return{usr:e.state,key:e.key,idx:t}}function Bm(e,t,n,r){return n===void 0&&(n=null),gl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gi(t):t,{state:n,key:t&&t.key||r||nR()})}function zu(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 Gi(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 rR(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,c=i.history,d=js.Pop,f=null,m=p();m==null&&(m=0,c.replaceState(gl({},c.state,{idx:m}),""));function p(){return(c.state||{idx:null}).idx}function g(){d=js.Pop;let j=p(),S=j==null?null:j-m;m=j,f&&f({action:d,location:w.location,delta:S})}function v(j,S){d=js.Push;let E=Bm(w.location,j,S);m=p()+1;let P=wv(E,m),T=w.createHref(E);try{c.pushState(P,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}l&&f&&f({action:d,location:w.location,delta:1})}function N(j,S){d=js.Replace;let E=Bm(w.location,j,S);m=p();let P=wv(E,m),T=w.createHref(E);c.replaceState(P,"",T),l&&f&&f({action:d,location:w.location,delta:0})}function k(j){let S=i.location.origin!=="null"?i.location.origin:i.location.href,E=typeof j=="string"?j:zu(j);return E=E.replace(/ $/,"%20"),Nt(S,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,S)}let w={get action(){return d},get location(){return e(i,c)},listen(j){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(bv,g),f=j,()=>{i.removeEventListener(bv,g),f=null}},createHref(j){return t(i,j)},createURL:k,encodeLocation(j){let S=k(j);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:N,go(j){return c.go(j)}};return w}var Nv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Nv||(Nv={}));
vendor: 9,009 bytes, lines 354-363
354function sR(e,t,n){return n===void 0&&(n="/"),oR(e,t,n)}function oR(e,t,n,r){let i=typeof t=="string"?Gi(t):t,l=zp(i.pathname||"/",n);if(l==null)return null;let c=Z1(e);iR(c);let d=null;for(let f=0;d==null&&f<c.length;++f){let m=yR(l);d=pR(c[f],m)}return d}function Z1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(l,c,d)=>{let f={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};f.relativePath.startsWith("/")&&(Nt(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let m=Es([r,f.relativePath]),p=n.concat(f);l.children&&l.children.length>0&&(Nt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),Z1(l.children,t,p,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:hR(m,l.index),routesMeta:p})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))i(l,c);else for(let f of eN(l.path))i(l,c,f)}),t}function eN(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let c=eN(r.join("/")),d=[];return d.push(...c.map(f=>f===""?l:[l,f].join("/"))),i&&d.push(...c),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function iR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aR=/^:[\w-]+$/,lR=3,cR=2,uR=1,dR=10,fR=-2,Sv=e=>e==="*";function hR(e,t){let n=e.split("/"),r=n.length;return n.some(Sv)&&(r+=fR),t&&(r+=cR),n.filter(i=>!Sv(i)).reduce((i,l)=>i+(aR.test(l)?lR:l===""?uR:dR),r)}function mR(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function pR(e,t,n){let{routesMeta:r}=e,i={},l="/",c=[];for(let d=0;d<r.length;++d){let f=r[d],m=d===r.length-1,p=l==="/"?t:t.slice(l.length)||"/",g=gR({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},p),v=f.route;if(!g)return null;Object.assign(i,g.params),c.push({params:i,pathname:Es([l,g.pathname]),pathnameBase:NR(Es([l,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(l=Es([l,g.pathnameBase]))}return c}function gR(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xR(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],c=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:r.reduce((m,p,g)=>{let{paramName:v,isOptional:N}=p;if(v==="*"){let w=d[g]||"";c=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const k=d[g];return N&&!k?m[v]=void 0:m[v]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:e}}function xR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),J1(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function yR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return J1(!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 zp(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 vR(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Gi(e):e;return{pathname:n?n.startsWith("/")?n:bR(n,t):t,search:SR(r),hash:jR(i)}}function bR(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ih(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 wR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tN(e,t){let n=wR(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function nN(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Gi(e):(i=gl({},e),Nt(!i.pathname||!i.pathname.includes("?"),Ih("?","pathname","search",i)),Nt(!i.pathname||!i.pathname.includes("#"),Ih("#","pathname","hash",i)),Nt(!i.search||!i.search.includes("#"),Ih("#","search","hash",i)));let l=e===""||i.pathname==="",c=l?"/":i.pathname,d;if(c==null)d=n;else{let g=t.length-1;if(!r&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;i.pathname=v.join("/")}d=g>=0?t[g]:"/"}let f=vR(i,d),m=c&&c!=="/"&&c.endsWith("/"),p=(l||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(m||p)&&(f.pathname+="/"),f}const Es=e=>e.join("/").replace(/\/\/+/g,"/"),NR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rN=["post","put","patch","delete"];new Set(rN);const CR=["get",...rN];new Set(CR);/**
355 * React Router v6.30.1
356 *
357 * Copyright (c) Remix Software Inc.
358 *
359 * This source code is licensed under the MIT license found in the
360 * LICENSE.md file in the root directory of this source tree.
361 *
362 * @license MIT
363 */function xl(){return xl=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},xl.apply(this,arguments)}const qp=b.createContext(null),ER=b.createContext(null),Ro=b.createContext(null),dd=b.createContext(null),Ao=b.createContext({outlet:null,matches:[],isDataRoute:!1}),sN=b.createContext(null);function PR(e,t){let{relative:n}=t===void 0?{}:t;Dl()||Nt(!1);let{basename:r,navigator:i}=b.useContext(Ro),{hash:l,pathname:c,search:d}=iN(e,{relative:n}),f=c;return r!=="/"&&(f=c==="/"?r:Es([r,c])),i.createHref({pathname:f,search:d,hash:l})}function Dl(){return b.useContext(dd)!=null}function Oo(){return Dl()||Nt(!1),b.useContext(dd).location}function oN(e){b.useContext(Ro).static||b.useLayoutEffect(e)}function TR(){let{isDataRoute:e}=b.useContext(Ao);return e?$R():_R()}function _R(){Dl()||Nt(!1);let e=b.useContext(qp),{basename:t,future:n,navigator:r}=b.useContext(Ro),{matches:i}=b.useContext(Ao),{pathname:l}=Oo(),c=JSON.stringify(tN(i,n.v7_relativeSplatPath)),d=b.useRef(!1);return oN(()=>{d.current=!0}),b.useCallback(function(m,p){if(p===void 0&&(p={}),!d.current)return;if(typeof m=="number"){r.go(m);return}let g=nN(m,JSON.parse(c),l,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Es([t,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[t,r,c,l,e])}function iN(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Ro),{matches:i}=b.useContext(Ao),{pathname:l}=Oo(),c=JSON.stringify(tN(i,r.v7_relativeSplatPath));return b.useMemo(()=>nN(e,JSON.parse(c),l,n==="path"),[e,c,l,n])}function RR(e,t){return AR(e,t)}function AR(e,t,n,r){Dl()||Nt(!1);let{navigator:i}=b.useContext(Ro),{matches:l}=b.useContext(Ao),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let f=c?c.pathnameBase:"/";c&&c.route;let m=Oo(),p;if(t){var g;let j=typeof t=="string"?Gi(t):t;f==="/"||(g=j.pathname)!=null&&g.startsWith(f)||Nt(!1),p=j}else p=m;let v=p.pathname||"/",N=v;if(f!=="/"){let j=f.replace(/^\//,"").split("/");N="/"+v.replace(/^\//,"").split("/").slice(j.length).join("/")}let k=sR(e,{pathname:N}),w=IR(k&&k.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Es([f,i.encodeLocation?i.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?f:Es([f,i.encodeLocation?i.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,n,r);return t&&w?b.createElement(dd.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:js.Pop}},w):w}function OR(){let e=UR(),t=kR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application 
363Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const MR=b.createElement(OR,null);class DR extends b.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?b.createElement(Ao.Provider,{value:this.props.routeContext},b.createElement(sN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function LR(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(qp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Ao.Provider,{value:t},r)}function IR(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let c=e,d=(i=n)==null?void 0:i.errors;if(d!=null){let p=c.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);p>=0||Nt(!1),c=c.slice(0,Math.min(c.length,p+1))}let f=!1,m=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<c.length;p++){let g=c[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:v,errors:N}=n,k=g.route.loader&&v[g.route.id]===void 0&&(!N||N[g.route.id]===void 0);if(g.route.lazy||k){f=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((p,g,v)=>{let N,k=!1,w=null,j=null;n&&(N=d&&g.route.id?d[g.route.id]:void 0,w=g.route.errorElement||MR,f&&(m<0&&v===0?(zR("route-fallback"),k=!0,j=null):m===v&&(k=!0,j=g.route.hydrateFallbackElement||null)));let S=t.concat(c.slice(0,v+1)),E=()=>{let P;return N?P=w:k?P=j:g.route.Component?P=b.createElement(g.route.Component,null):g.route.element?P=g.route.element:P=p,b.createElement(LR,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:n!=null},children:P})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?b.createElement(DR,{location:n.location,revalidation:n.revalidation,component:w,error:N,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):E()},null)}var aN=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(aN||{}),lN=(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})(lN||{});function FR(e){let t=b.useContext(qp);return t||Nt(!1),t}function VR(e){let t=b.useContext(ER);return t||Nt(!1),t}function BR(e){let t=b.useContext(Ao);return t||Nt(!1),t}function cN(e){let t=BR(),n=t.matches[t.matches.length-1];return n.route.id||Nt(!1),n.route.id}function UR(){var e;let t=b.useContext(sN),n=VR(),r=cN();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $R(){let{router:e}=FR(aN.UseNavigateStable),t=cN(lN.UseNavigateStable),n=b.useRef(!1);return oN(()=>{n.current=!0}),b.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xl({fromRouteId:t},l)))},[e,t])}const jv={};function zR(e,t,n){jv[e]||(jv[e]=!0)}function qR(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Xa(e){Nt(!1)}function HR(e){let{basename:t="/",children:n=null,location:r,navigationType:i=js.Pop,navigator:l,static:c=!1,future:d}=e;Dl()&&Nt(!1);let f=t.replace(/^\/*/,"/"),m=b.useMemo(()=>({basename:f,navigator:l,static:c,future:xl({v7_relativeSplatPath:!1},d)}),[f,d,l,c]);typeof r=="string"&&(r=Gi(r));let{pathname:p="/",search:g="",hash:v="",state:N=null,key:k="default"}=r,w=b.useMemo(()=>{let j=zp(p,f);return j==null?null:{location:{pathname:j,search:g,hash:v,state:N,key:k},navigationType:i}},[f,p,g,v,N,k,i]);return w==null?null:b.createElement(Ro.Provider,{value:m},b.createElement(dd.Provider,{children:n,value:w}))}function WR(e){let{children:t,location:n}=e;return RR(Um(t),n)}new Promise(()=>{});function Um(e,t){t===void 0&&(t=[]);let n=[];
363return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let l=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Um(r.props.children,l));return}r.type!==Xa&&Nt(!1),!r.props.index||!r.props.children||Nt(!1);let c={id:r.props.id||l.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=Um(r.props.children,l)),n.push(c)}),n}/**
364 * React Router DOM v6.30.1
365 *
366 * Copyright (c) Remix Software Inc.
367 *
368 * This source code is licensed under the MIT license found in the
369 * LICENSE.md file in the root directory of this source tree.
370 *
371 * @license MIT
372 */function $m(){return $m=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},$m.apply(this,arguments)}function KR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function GR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QR(e,t){return e.button===0&&(!t||t==="_self")&&!GR(e)}const YR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],XR="6";try{window.__reactRouterVersion=XR}catch{}const JR="startTransition",kv=Mp[JR];function ZR(e){let{basename:t,children:n,future:r,window:i}=e,l=b.useRef();l.current==null&&(l.current=tR({window:i,v5Compat:!0}));let c=l.current,[d,f]=b.useState({action:c.action,location:c.location}),{v7_startTransition:m}=r||{},p=b.useCallback(g=>{m&&kv?kv(()=>f(g)):f(g)},[f,m]);return b.useLayoutEffect(()=>c.listen(p),[c,p]),b.useEffect(()=>qR(r),[r]),b.createElement(HR,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:c,future:r})}const eA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vn=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:c,state:d,target:f,to:m,preventScrollReset:p,viewTransition:g}=t,v=KR(t,YR),{basename:N}=b.useContext(Ro),k,w=!1;if(typeof m=="string"&&tA.test(m)&&(k=m,eA))try{let P=new URL(window.location.href),T=m.startsWith("//")?new URL(P.protocol+m):new URL(m),A=zp(T.pathname,N);T.origin===P.origin&&A!=null?m=A+T.search+T.hash:w=!0}catch{}let j=PR(m,{relative:i}),S=nA(m,{replace:c,state:d,target:f,preventScrollReset:p,relative:i,viewTransition:g});function E(P){r&&r(P),P.defaultPrevented||S(P)}return b.createElement("a",$m({},v,{href:k||j,onClick:w||l?r:E,ref:n,target:f}))});var Cv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cv||(Cv={}));var Ev;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ev||(Ev={}));function nA(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:c,viewTransition:d}=t===void 0?{}:t,f=TR(),m=Oo(),p=iN(e,{relative:c}
vendor: 8,276 bytes, lines 372-373
372);return b.useCallback(g=>{if(QR(g,n)){g.preventDefault();let v=r!==void 0?r:zu(m)===zu(p);f(e,{replace:v,state:i,preventScrollReset:l,relative:c,viewTransition:d})}},[m,f,p,r,i,n,e,l,c,d])}function uN(e,t){return function(){return e.apply(t,arguments)}}const{toString:rA}=Object.prototype,{getPrototypeOf:Di}=Object,{iterator:Ll,toStringTag:dN}=Symbol,qu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yl=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),qu(n,t))return!0;n=Di(n)}return!1},sA=(e,t)=>e!=null&&yl(e,t)?e[t]:void 0,Hp=(e=>t=>{const n=rA.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yn=e=>(e=e.toLowerCase(),t=>Hp(t)===e),fd=e=>t=>typeof t===e,{isArray:jo}=Array,Li=fd("undefined");function Qi(e){return e!==null&&!Li(e)&&e.constructor!==null&&!Li(e.constructor)&&fn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fN=Yn("ArrayBuffer");function oA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fN(e.buffer),t}const iA=fd("string"),fn=fd("function"),hN=fd("number"),Yi=e=>e!==null&&typeof e=="object",aA=e=>e===!0||e===!1,ju=e=>{if(!Yi(e))return!1;const t=Di(e);return(t===null||t===Object.prototype||Di(t)===null)&&!yl(e,dN)&&!yl(e,Ll)},lA=e=>{if(!Yi(e)||Qi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cA=Yn("Date"),uA=Yn("File"),dA=e=>!!(e&&typeof e.uri<"u"),fA=e=>e&&typeof e.getParts<"u",hA=Yn("Blob"),mA=Yn("FileList"),pA=e=>Yi(e)&&fn(e.pipe);function gA(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Pv=gA(),Tv=typeof Pv.FormData<"u"?Pv.FormData:void 0,xA=e=>{if(!e)return!1;if(Tv&&e instanceof Tv)return!0;const t=Di(e);if(!t||t===Object.prototype||!fn(e.append))return!1;const n=Hp(e);return n==="formdata"||n==="object"&&fn(e.toString)&&e.toString()==="[object FormData]"},yA=Yn("URLSearchParams"),[vA,bA,wA,NA]=["ReadableStream","Request","Response","Headers"].map(Yn),SA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Il(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),jo(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Qi(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let d;for(r=0;r<c;r++)d=l[r],t.call(null,e[d],d,e)}}function mN(e,t){if(Qi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pN=e=>!Li(e)&&e!==so;function zm(...e){const{caseless:t,skipUndefined:n}=pN(this)&&this||{},r={},i=(l,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=t&&typeof c=="string"&&mN(r,c)||c,f=qu(r,d)?r[d]:void 0;ju(f)&&ju(l)?r[d]=zm(f,l):ju(l)?r[d]=zm({},l):jo(l)?r[d]=l.slice():(!n||!Li(l))&&(r[d]=l)};for(let l=0,c=e.length;l<c;l++){const d=e[l];if(!d||Qi(d)||(Il(d,i),typeof d!="object"||jo(d)))continue;const f=Object.getOwnPropertySymbols(d);for(let m=0;m<f.length;m++){const p=f[m];DA.call(d,p)&&i(d[p],p)}}return r}const jA=(e,t,n,{allOwnKeys:r}={})=>(Il(t,(i,l)=>{n&&fn(i)?Object.defineProperty(e,l,{__proto__:null,value:uN(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),kA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CA=(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)},EA=(e,t,n,r)=>{let i,l,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)c=i[l],(!r||r(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Di(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},PA=(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},TA=e=>{if(!e)return null;if(jo(e))return e;let t=e.length;if(!hN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_A=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Di(Uint8Array)),RA=(e,t)=>{const r=(e&&e[Ll]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},AA=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},OA=Yn("HTMLFormElement"),MA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:DA}=Object.prototype,LA=Yn("RegExp"),gN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Il(n,(i,l)=>{let c;(c=t(i,l,e))!==!1&&(r[l]=c||i)}),Object.defineProperties(e,r)},IA=e=>{gN(e,(t,n)=>{if(fn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(fn(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+"'")})}})},FA=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return jo(e)?r(e):r(String(e).split(t)),n},VA=()=>{},BA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function UA(e){return!!(e&&fn(e.append)&&e[dN]==="FormData"&&e[Ll])}const $A=e=>{const t=new WeakSet,n=r=>{if(Yi(r)){if(t.has(r))return;if(Qi(r))return r;if(!("toJSON"in r)){t.add(r);const i=jo(r)?[]:{};return Il(r,(l,c)=>{const d=n(l);!Li(d)&&(i[c]=d)}),t.delete(r),i}}return r};return n(e)},zA=Yn("AsyncFunction"),qA=e=>e&&(Yi(e)||fn(e))&&fn(e.then)&&fn(e.catch),xN=((e,t)=>e?setImmediate:t?((n,r)=>(so.addEventListener("message",({source:i,data:l})=>{i===so&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),so.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fn(so.postMessage)),HA=typeof queueMicrotask<"u"?queueMicrotask.bind(so):typeof process<"u"&&process.nextTick||xN,yN=e=>e!=null&&fn(e[Ll]),WA=e=>e!=null&&yl(e,Ll)&&yN(e),I={isArray:jo,isArrayBuffer:fN,isBuffer:Qi,isFormData:xA,isArrayBufferView:oA,isString:iA,isNumber:hN,isBoolean:aA,isObject:Yi,isPlainObject:ju,isEmptyObject:lA,isReadableStream:vA,isRequest:bA,isResponse:wA,isHeaders:NA,isUndefined:Li,isDate:cA,isFile:uA,isReactNativeBlob:dA,isReactNative:fA,isBlob:hA,isRegExp:LA,isFunction:fn,isStream:pA,isURLSearchParams:yA,isTypedArray:_A,isFileList:mA,forEach:Il,merge:zm,extend:jA,trim:SA,stripBOM:kA,inherits:CA,toFlatObject:EA,kindOf:Hp,kindOfTest:Yn,endsWith:PA,toArray:TA,forEachEntry:RA,matchAll:AA,isHTMLForm:OA,hasOwnProperty:qu,hasOwnProp:qu,hasOwnInPrototypeChain:yl,getSafeProp:sA,reduceDescriptors:gN,freezeMethods:IA,toObjectSet:FA,toCamelCase:MA,noop:VA,toFiniteNumber:BA,findKey:mN,global:so,isContextDefined:pN,isSpecCompliantForm:UA,toJSONObject:$A,isAsyncFn:zA,isThenable:qA,setImmediate:xN,asap:HA,isIterable:yN,isSafeIterable:WA},KA=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"]),GA=e=>{const t={};let n,r,i;return e&&e.split(`
373`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),r=c.substring(i+1).trim(),!(!n||t[n]&&KA[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function QA(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 YA=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),XA=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Wp(e,t){return I.isArray(e)?e.map(n=>Wp(n,t)):QA(String(e).replace(t,""))}const JA=e=>Wp(e,YA),ZA=e=>Wp(e,XA);function vN(e){const t=Object.create(null);return I.forEach(e.toJSON(),(n,r)=>{t[r]=ZA(n)}),t}const _v=Symbol("internals");function za(e){return e&&String(e).trim().toLowerCase()}function ku(e){return e===!1||e==null?e:I.isArray(e)?e.map(ku):JA(String(e))}function e5(e){const t=Object.create(null),n=/([^\s,;
373=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const t5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fh(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function n5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function r5(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,l,c){return this[r].call(this,t,i,l,c)},configurable:!0})})}let Kt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(d,f,m){const p=za(f);if(!p)return;const g=I.findKey(i,p);(!g||i[g]===void 0||m===!0||m===void 0&&i[g]!==!1)&&(i[g||f]=ku(d))}const c=(d,f)=>I.forEach(d,(m,p)=>l(m,p,f));if(I.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(I.isString(t)&&(t=t.trim())&&!t5(t))c(GA(t),n);else if(I.isObject(t)&&I.isSafeIterable(t)){let d=Object.create(null),f,m;for(const p of t){if(!I.isArray(p))throw new TypeError("Object iterator must return a key-value pair");m=p[0],I.hasOwnProp(d,m)?(f=d[m],d[m]=I.isArray(f)?[...f,p[1]]:[f,p[1]]):d[m]=p[1]}c(d,n)}else t!=null&&l(n,t,r);return this}get(t,n){if(t=za(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return e5(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=za(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(c){if(c=za(c),c){const d=I.findKey(r,c);d&&(!n||Fh(r,r[d],d,n))&&(delete r[d],i=!0)}}return I.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||Fh(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return I.forEach(this,(i,l)=>{const c=I.findKey(r,l);if(c){n[c]=ku(i),delete n[l];return}const d=t?n5(l):String(l).trim();d!==l&&delete n[l],n[d]=ku(i),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=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(`
374`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[_v]=this[_v]={accessors:{}}).accessors,i=this.prototype;function l(c){const d=za(c);r[d]||(r5(i,c),r[d]=!0)}return I.isArray(t)?t.forEach(l):l(t),this}};Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Kt);const s5="[REDACTED ****]";function o5(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 i5(e,t){const n=new Set(t.map(l=>String(l).toLowerCase())),r=[],i=l=>{if(l===null||typeof l!="object"||I.isBuffer(l))return l;if(r.indexOf(l)!==-1)return;l instanceof Kt&&(l=l.toJSON()),r.push(l);let c;if(I.isArray(l))c=[],l.forEach((d,f)=>{const m=i(d);I.isUndefined(m)||(c[f]=m)});else{if(!I.isPlainObject(l)&&o5(l))return r.pop(),l;c=Object.create(null);for(const[d,f]of Object.entries(l)){const m=n.has(d.toLowerCase())?s5:i(f);I.isUndefined(m)||(c[d]=m)}}return r.pop(),c};return i(e)}let ue=class bN extends Error{static from(t,n,r,i,l,c){const d=new bN(t.message,n||t.code,r,i,l);return Object.defineProperty(d,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),c&&Object.assign(d,c),d}constructor(t,n,r,i,l){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),i&&(this.request=i),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,n=t&&I.hasOwnProp(t,"redact")?t.redact:void 0,r=I.isArray(n)&&n.length>
vendor: 4,749 bytes, line 374
3740?i5(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}}};ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ue.ERR_BAD_OPTION="ERR_BAD_OPTION";ue.ECONNABORTED="ECONNABORTED";ue.ETIMEDOUT="ETIMEDOUT";ue.ECONNREFUSED="ECONNREFUSED";ue.ERR_NETWORK="ERR_NETWORK";ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ue.ERR_DEPRECATED="ERR_DEPRECATED";ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ue.ERR_CANCELED="ERR_CANCELED";ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ue.ERR_INVALID_URL="ERR_INVALID_URL";ue.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const a5=null,wN=100;function qm(e){return I.isPlainObject(e)||I.isArray(e)}function NN(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Vh(e,t,n){return e?e.concat(t).map(function(i,l){return i=NN(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function l5(e){return I.isArray(e)&&!e.some(qm)}const c5=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function hd(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(E,P){return!I.isUndefined(P[E])});const r=n.metaTokens,i=n.visitor||k,l=n.dots,c=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?wN:n.maxDepth,m=d&&I.isSpecCompliantForm(t),p=[];if(!I.isFunction(i))throw new TypeError("visitor must be a function");function g(S){if(S===null)return"";if(I.isDate(S))return S.toISOString();if(I.isBoolean(S))return S.toString();if(!m&&I.isBlob(S))throw new ue("Blob is not supported. Use a Buffer instead.");if(I.isArrayBuffer(S)||I.isTypedArray(S)){if(m&&typeof d=="function")return new d([S]);if(typeof Buffer<"u")return Buffer.from(S);throw new ue("Blob is not supported. Use a Buffer instead.",ue.ERR_NOT_SUPPORT)}return S}function v(S){if(S>f)throw new ue("Object is too deeply nested ("+S+" levels). Max depth: "+f,ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}function N(S,E){if(f===1/0)return JSON.stringify(S);const P=[];return JSON.stringify(S,function(A,V){if(!I.isObject(V))return V;for(;P.length&&P[P.length-1]!==this;)P.pop();return P.push(V),v(E+P.length-1),V})}function k(S,E,P){let T=S;if(I.isReactNative(t)&&I.isReactNativeBlob(S))return t.append(Vh(P,E,l),g(S)),!1;if(S&&!P&&typeof S=="object"){if(I.endsWith(E,"{}"))E=r?E:E.slice(0,-2),S=N(S,1);else if(I.isArray(S)&&l5(S)||(I.isFileList(S)||I.endsWith(E,"[]"))&&(T=I.toArray(S)))return E=NN(E),T.forEach(function(V,z){!(I.isUndefined(V)||V===null)&&t.append(c===!0?Vh([E],z,l):c===null?E:E+"[]",g(V))}),!1}return qm(S)?!0:(t.append(Vh(P,E,l),g(S)),!1)}const w=Object.assign(c5,{defaultVisitor:k,convertValue:g,isVisitable:qm});function j(S,E,P=0){if(!I.isUndefined(S)){if(v(P),p.indexOf(S)!==-1)throw new Error("Circular reference detected in "+E.join("."));p.push(S),I.forEach(S,function(A,V){(!(I.isUndefined(A)||A===null)&&i.call(t,A,I.isString(V)?V.trim():V,E,w))===!0&&j(A,E?E.concat(V):[V],P+1)}),p.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return j(e),t}function Rv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Kp(e,t){this._pairs=[],e&&hd(e,this,t)}const SN=Kp.prototype;SN.append=function(t,n){this._pairs.push([t,n])};SN.toString=function(t){const n=t?r=>t.call(this,r,Rv):Rv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function u5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jN(e,t,n){if(!t)return e;e=e||"";const r=I.isFunction(n)?{serialize:n}:n,i=I.getSafeProp(r,"encode")||u5,l=I.getSafeProp(r,"serialize");let c;if(l?c=l(t,r):c=I.isURLSearchParams(t)?t.toString():new Kp(t,r).toString(i),c){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Av{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 Gp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},d5=typeof URLSearchParams<"u"?URLSearchParams:Kp,f5=typeof FormData<"u"?FormData:null,h5=typeof Blob<"u"?Blob:null,m5={isBrowser:!0,classes:{
vendor: 2,427 bytes, line 374
374URLSearchParams:d5,FormData:f5,Blob:h5},protocols:["http","https","file","blob","url","data"]},Qp=typeof window<"u"&&typeof document<"u",Hm=typeof navigator=="object"&&navigator||void 0,p5=Qp&&(!Hm||["ReactNative","NativeScript","NS"].indexOf(Hm.product)<0),g5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",x5=Qp&&window.location.href||"http://localhost",y5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qp,hasStandardBrowserEnv:p5,hasStandardBrowserWebWorkerEnv:g5,navigator:Hm,origin:x5},Symbol.toStringTag,{value:"Module"})),Ft={...y5,...m5};function v5(e,t){return hd(e,new Ft.classes.URLSearchParams,{visitor:function(n,r,i,l){return Ft.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}const Ov=wN;function kN(e){if(e>Ov)throw new ue("FormData field is too deeply nested ("+e+" levels). Max depth: "+Ov,ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b5(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)kN(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function w5(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r<i;r++)l=n[r],t[l]=e[l];return t}function CN(e){function t(n,r,i,l){kN(l);let c=n[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=l>=n.length;return c=!c&&I.isArray(i)?i.length:c,f?(I.hasOwnProp(i,c)?i[c]=I.isArray(i[c])?i[c].concat(r):[i[c],r]:i[c]=r,!d):((!I.hasOwnProp(i,c)||!I.isObject(i[c]))&&(i[c]=[]),t(n,r,i[c],l)&&I.isArray(i[c])&&(i[c]=w5(i[c])),!d)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(b5(r),i,n,0)}),n}return null}const ai=(e,t)=>e!=null&&I.hasOwnProp(e,t)?e[t]:void 0;function N5(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 Fl={transitional:Gp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=I.isObject(t);if(l&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i?JSON.stringify(CN(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;
vendor: 4,623 bytes, line 374
374if(l){const f=ai(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return v5(t,f).toString();if((d=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=ai(this,"env"),p=m&&m.FormData;return hd(d?{"files[]":t}:t,p&&new p,f)}}return l||i?(n.setContentType("application/json",!1),N5(t)):t}],transformResponse:[function(t){const n=ai(this,"transitional")||Fl.transitional,r=n&&n.forcedJSONParsing,i=ai(this,"responseType"),l=i==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!i||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,ai(this,"parseReviver"))}catch(f){if(d)throw f.name==="SyntaxError"?ue.from(f,ue.ERR_BAD_RESPONSE,this,null,ai(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ft.classes.FormData,Blob:Ft.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=>{Fl.headers[e]={}});function Bh(e,t){const n=this||Fl,r=t||n,i=Kt.from(r.headers);let l=r.data;return I.forEach(e,function(d){l=d.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function EN(e){return!!(e&&e.__CANCEL__)}let Vl=class extends ue{constructor(t,n,r){super(t??"canceled",ue.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function PN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ue("Request failed with status code "+n.status,n.status>=400&&n.status<500?ue.ERR_BAD_REQUEST:ue.ERR_BAD_RESPONSE,n.config,n.request,n))}function S5(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function j5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,c;return t=t!==void 0?t:1e3,function(f){const m=Date.now(),p=r[l];c||(c=m),n[i]=f,r[i]=m;let g=l,v=0;for(;g!==i;)v+=n[g++],g=g%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),m-c<t)return;const N=p&&m-p;return N?Math.round(v*1e3/N):void 0}}function k5(e,t){let n=0,r=1e3/t,i,l;const c=(m,p=Date.now())=>{n=p,i=null,l&&(clearTimeout(l),l=null),e(...m)};return[(...m)=>{const p=Date.now(),g=p-n;g>=r?c(m,p):(i=m,l||(l=setTimeout(()=>{l=null,c(i)},r-g)))},()=>i&&c(i)]}const Hu=(e,t,n=3)=>{let r=0;const i=j5(50,250);return k5(l=>{if(!l||typeof l.loaded!="number")return;const c=l.loaded,d=l.lengthComputable?l.total:void 0,f=d!=null?Math.min(c,d):c,m=Math.max(0,f-r),p=i(m);r=Math.max(r,f);const g={loaded:f,total:d,progress:d?f/d:void 0,bytes:m,rate:p||void 0,estimated:p&&d?(d-f)/p:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},n)},Mv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Dv=e=>(...t)=>I.asap(()=>e(...t)),C5=Ft.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ft.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ft.origin),Ft.navigator&&/(msie|trident)/i.test(Ft.navigator.userAgent)):()=>!0,E5=Ft.hasStandardBrowserEnv?{write(e,t,n,r,i,l,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(i)&&d.push(`domain=${i}`),l===!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+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function P5(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T5(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const _5=/^https?:(?!\/\/)/i,R5=/[\t\n\r]/g;function A5(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function O5(e){return A5(e).replace(R5,"")}function Lv(e,t){if(typeof e=="string"&&_5.test(O5(e)))throw new ue('Invalid URL: missing "//" after protocol',ue.ERR_INVALID_URL,t)}function TN(e,t,n,r){Lv(t,r);let i=!P5(t);return e&&(i||n===!1)?(Lv(e,r),T5(e,t)):t}const Iv=e=>e instanceof Kt?{...e}:e;function ko(e,t){e=e||{},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,g,v,N){return I.isPlainObject(p)&&I.isPlainObject(g)?I.merge.call({caseless:N}
vendor: 1,643 bytes, line 374
374,p,g):I.isPlainObject(g)?I.merge({},g):I.isArray(g)?g.slice():g}function i(p,g,v,N){if(I.isUndefined(g)){if(!I.isUndefined(p))return r(void 0,p,v,N)}else return r(p,g,v,N)}function l(p,g){if(!I.isUndefined(g))return r(void 0,g)}function c(p,g){if(I.isUndefined(g)){if(!I.isUndefined(p))return r(void 0,p)}else return r(void 0,g)}function d(p){const g=I.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!I.isUndefined(g))if(I.isPlainObject(g)){if(I.hasOwnProp(g,p))return g[p]}else return;const v=I.hasOwnProp(e,"transitional")?e.transitional:void 0;if(I.isPlainObject(v)&&I.hasOwnProp(v,p))return v[p]}function f(p,g,v){if(I.hasOwnProp(t,v))return r(p,g);if(I.hasOwnProp(e,v))return r(void 0,p)}const m={url:l,method:l,data:l,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:f,headers:(p,g,v)=>i(Iv(p),Iv(g),v,!0)};return I.forEach(Object.keys({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=I.hasOwnProp(m,g)?m[g]:i,N=I.hasOwnProp(e,g)?e[g]:void 0,k=I.hasOwnProp(t,g)?t[g]:void 0,w=v(N,k,g);I.isUndefined(w)&&v!==f||(n[g]=w)}),I.hasOwnProp(t,"validateStatus")&&I.isUndefined(t.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(I.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 15,196 bytes, lines 374-380
374idateStatus),n}const M5=["content-type","content-length"];function D5(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{M5.includes(r.toLowerCase())&&e.set(r,i)})}const L5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function _N(e){const t=ko({},e),n=v=>I.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let i=n("withXSRFToken");const l=n("xsrfHeaderName"),c=n("xsrfCookieName");let d=n("headers");const f=n("auth"),m=n("baseURL"),p=n("allowAbsoluteUrls"),g=n("url");if(t.headers=d=Kt.from(d),t.url=jN(TN(m,g,p,t),n("params"),n("paramsSerializer")),f){const v=I.getSafeProp(f,"username")||"",N=I.getSafeProp(f,"password")||"";try{d.set("Authorization","Basic "+btoa(v+":"+(N?L5(N):"")))}catch(k){throw ue.from(k,ue.ERR_BAD_OPTION_VALUE,e)}}if(I.isFormData(r)&&(Ft.hasStandardBrowserEnv||Ft.hasStandardBrowserWebWorkerEnv||I.isReactNative(r)?d.setContentType(void 0):I.isFunction(r.getHeaders)&&D5(d,r.getHeaders(),n("formDataHeaderPolicy"))),Ft.hasStandardBrowserEnv&&(I.isFunction(i)&&(i=i(t)),i===!0||i==null&&C5(t.url))){const N=l&&c&&E5.read(c);N&&d.set(l,N)}return t}const I5=typeof XMLHttpRequest<"u",F5=I5&&function(e){return new Promise(function(n,r){const i=_N(e);let l=i.data;const c=Kt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:m}=i,p,g,v,N,k;function w(){N&&N(),k&&k(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let j=new XMLHttpRequest;j.open(i.method.toUpperCase(),i.url,!0),j.timeout=i.timeout;function S(){if(!j)return;const P=Kt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),A={data:!d||d==="text"||d==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:P,config:e,request:j};PN(function(z){n(z),w()},function(z){r(z),w()},A),j=null}"onloadend"in j?j.onloadend=S:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.startsWith("file:"))||setTimeout(S)},j.onabort=function(){j&&(r(new ue("Request aborted",ue.ECONNABORTED,e,j)),w(),j=null)},j.onerror=function(T){const A=T&&T.message?T.message:"Network Error",V=new ue(A,ue.ERR_NETWORK,e,j);V.event=T||null,r(V),w(),j=null},j.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||Gp;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),r(new ue(T,A.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,j)),w(),j=null},l===void 0&&c.setContentType(null),"setRequestHeader"in j&&I.forEach(vN(c),function(T,A){j.setRequestHeader(A,T)}),I.isUndefined(i.withCredentials)||(j.withCredentials=!!i.withCredentials),d&&d!=="json"&&(j.responseType=i.responseType),m&&([v,k]=Hu(m,!0),j.addEventListener("progress",v)),f&&j.upload&&([g,N]=Hu(f),j.upload.addEventListener("progress",g),j.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(p=P=>{j&&(r(!P||P.type?new Vl(null,e,j):P),j.abort(),w(),j=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const E=S5(i.url);if(E&&!Ft.protocols.includes(E)){r(new ue("Unsupported protocol "+E+":",ue.ERR_BAD_REQUEST,e)),w();return}j.send(l||null)})},V5=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(f){if(!r){r=!0,c();const m=f instanceof Error?f:this.reason;n.abort(m instanceof ue?m:new Vl(m instanceof Error?m.message:m))}};let l=t&&setTimeout(()=>{l=null,i(new ue(`timeout of ${t}ms exceeded`,ue.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i,{once:!0}));const{signal:d}=n;return d.unsubscribe=()=>I.asap(c),d},B5=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},U5=async function*(e,t){for await(const n of $5(e))yield*B5(n,t)},$5=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()}},Fv=(e,t,n,r)=>{const i=U5(e,t);let l=0,c,d=f=>{c||(c=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:m,value:p}=await i.next();if(m){d(),f.close();return}let g=p.byteLength;if(n){let v=l+=g;n(v)}f.enqueue(new Uint8Array(p))}catch(m){throw d(m),m}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},Wu=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,z5=(e,t,n)=>t+2<n&&Wu(e.charCodeAt(t+1))&&Wu(e.charCodeAt(t+2));function q5(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 k=r.charCodeAt(N+1),w=r.charCodeAt(N+2);Wu(k)&&Wu(w)&&(c-=2,N+=2)}let f=0,m=d-1;const p=N=>N>=2&&r.charCodeAt(N-2)===37&&r.charCodeAt(N-1)===51&&(r.charCodeAt(N)===68||r.charCodeAt(N)===100);m>=0&&(r.charCodeAt(m)===61?(f++,m--):p(m)&&(f++,m-=3)),f===1&&m>=0&&(r.charCodeAt(m)===61||p(m))&&f++;const v=Math.floor(c/4)*3-(f||0);return v>0?v:0}let l=0;for(let c=0,d=r.length;c<d;c++){const f=r.charCodeAt(c);if(f===37&&z5(r,c,d))l+=1,c+=2;else if(f<128)l+=1;else if(f<2048)l+=2;else if(f>=55296&&f<=56319&&c+1<d){const m=r.charCodeAt(c+1);m>=56320&&m<=57343?(l+=4,c++):l+=3}else l+=3}return l}const Yp="1.18.1",Vv=64*1024,{isFunction:au}=I,H5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Bv=e=>{if(!I.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Uv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},W5=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},K5=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:i,Request:l,Response:c}=e,d=i?au(i):typeof fetch=="function",f=au(l),m=au(c);if(!d)return!1;const p=d&&au(n),g=d&&(typeof r=="function"?(S=>E=>S.encode(E))(new r):async S=>new Uint8Array(await new l(S).arrayBuffer())),v=f&&p&&Uv(()=>{let S=!1;const E=new l(Ft.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),P=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),S&&!P}),N=m&&p&&Uv(()=>I.isReadableStream(new c("").body)),k={stream:N&&(S=>S.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!k[S]&&(k[S]=(E,P)=>{let T=E&&E[S];if(T)return T.call(E);throw new ue(`Response type '${S}' is not supported`,ue.ERR_NOT_SUPPORT,P)})});const w=async S=>{if(S==null)return 0;if(I.isBlob(S))return S.size;if(I.isSpecCompliantForm(S))return(await new l(Ft.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(I.isArrayBufferView(S)||I.isArrayBuffer(S))return S.byteLength;if(I.isURLSearchParams(S)&&(S=S+""),I.isString(S))return(await g(S)).byteLength},j=async(S,E)=>{const P=I.toFiniteNumber(S.getContentLength());return P??w(E)};return async S=>{let{url:E,method:P,data:T,signal:A,cancelToken:V,timeout:z,onDownloadProgress:R,onUploadProgress:K,responseType:U,headers:q,withCredentials:H="same-origin",fetchOptions:Z,maxContentLength:ce,maxBodyLength:ie}=_N(S);const ee=I.isNumber(ce)&&ce>-1,te=I.isNumber(ie)&&ie>-1,F=he=>I.hasOwnProp(S,he)?S[he]:void 0;let se=i||fetch;U=U?(U+"").toLowerCase():"text";let ne=V5([A,V&&V.toAbortSignal()],z),D=null;const G=ne&&ne.unsubscribe&&(()=>{ne.unsubscribe()});let pe,ge=null;const Re=()=>new ue("Request body larger than maxBodyLength limit",ue.ERR_BAD_REQUEST,S,D);try{let he;const Y=F("auth");if(Y){const Pe=I.getSafeProp(Y,"username")||"",it=I.getSafeProp(Y,"password")||"";he={username:Pe,password:it}}if(W5(E)){const Pe=new URL(E,Ft.origin);if(!he&&(Pe.username||Pe.password)){const it=Bv(Pe.username),hn=Bv(Pe.password);he={username:it,password:hn}}(Pe.username||Pe.password)&&(Pe.username="",Pe.password="",E=Pe.href)}if(he&&(q.delete("authorization"),q.set("Authorization","Basic "+btoa(H5((he.username||"")+":"+(he.password||""))))),ee&&typeof E=="string"&&E.startsWith("data:")&&q5(E)>ce)throw new ue("maxContentLength size of "+ce+" exceeded",ue.ERR_BAD_RESPONSE,S,D);if(te&&P!=="get"&&P!=="head"){const Pe=await w(T);if(typeof Pe=="number"&&isFinite(Pe)&&(pe=Pe,Pe>ie))throw Re()}const we=te&&(I.isReadableStream(T)||I.isStream(T)),_e=(Pe,it,hn)=>Fv(Pe,Vv,Vt=>{if(te&&Vt>ie)throw ge=Re();it&&it(Vt)},hn);if(v&&P!=="get"&&P!=="head"&&(K||we)){if(pe=pe??await j(q,T),pe!==0||we){let Pe=new l(E,{method:"POST",body:T,duplex:"half"}),it;if(I.isFormData(T)&&(it=Pe.headers.get("content-type"))&&q.setContentType(it),Pe.body){const[hn,Vt]=K&&Mv(pe,Hu(Dv(K)))||[];T=_e(Pe.body,hn,Vt)}}}else if(we&&!f&&p&&P!=="get"&&P!=="head")T=_e(T);else if(we&&f&&!v&&P!=="get"&&P!=="head")throw new ue("Stream request bodies are not supported by the current fetch implementation",ue.ERR_NOT_SUPPORT,S,D);I.isString(H)||(H=H?"include":"omit");const Ae=f&&"credentials"in l.prototype;if(I.isFormData(T)){const Pe=q.getContentType();Pe&&/^multipart\/form-data/i.test(Pe)&&!/boundary=/i.test(Pe)&&q.delete("content-type")}q.set("User-Agent","axios/"+Yp,!1);const Le={...Z,signal:ne,method:P.toUpperCase(),headers:vN(q.normalize()),body:T,duplex:"half",credentials:Ae?H:void 0};D=f&&new l(E,Le);let De=await(f?se(D,Z):se(E,Le));const mt=Kt.from(De.headers);if(ee){const Pe=I.toFiniteNumber(mt.getContentLength());if(Pe!=null&&Pe>ce)throw new ue("maxContentLength size of "+ce+" exceeded",ue.ERR_BAD_RESPONSE,S,D)}const Et=N&&(U==="stream"||U==="response");if(N&&De.body&&(R||ee||Et&&G)){const Pe={};["status","statusText","headers"].forEach(vr=>{Pe[vr]=De[vr]});const it=I.toFiniteNumber(mt.getContentLength()),[hn,Vt]=R&&Mv(it,Hu(Dv(R),!0))||[];let zr=0;const qr=vr=>{if(ee&&(zr=vr,zr>ce))throw new ue("maxContentLength size of "+ce+" exceeded",ue.ERR_BAD_RESPONSE,S,D);hn&&hn(vr)};De=new c(Fv(De.body,Vv,qr,()=>{Vt&&Vt(),G&&G()}),Pe)}U=U||"text";let Pt=await k[I.findKey(k,U)||"text"](De,S);if(ee&&!N&&!Et){let Pe;if(Pt!=null&&(typeof Pt.byteLength=="number"?Pe=Pt.byteLength:typeof Pt.size=="number"?Pe=Pt.size:typeof Pt=="string"&&(Pe=typeof r=="function"?new r().encode(Pt).byteLength:Pt.length)),typeof Pe=="number"&&Pe>ce)throw new ue("maxContentLength size of "+ce+" exceeded",ue.ERR_BAD_RESPONSE,S,D)}return!Et&&G&&G(),await new Promise((Pe,it)=>{PN(Pe,it,{data:Pt,headers:Kt.from(De.headers),status:De.status,statusText:De.statusText,config:S,request:D})})}catch(he){if(G&&G(),ne&&ne.aborted&&ne.reason instanceof ue){const Y=ne.reason;throw Y.config=S,D&&(Y.request=D),he!==Y&&Object.defineProperty(Y,"cause",{__proto__:null,value:he,writable:!0,enumerable:!1,configurable:!0}),Y}if(ge)throw D&&!ge.request&&(ge.request=D),ge;if(he instanceof ue)throw D&&!he.request&&(he.request=D),he;if(he&&he.name==="TypeError"&&/Load failed|fetch/i.test(he.message)){const Y=new ue("Network Error",ue.ERR_NETWORK,S,D,he&&he.response);throw Object.defineProperty(Y,"cause",{__proto__:null,value:he.cause||he,writable:!0,enumerable:!1,configurable:!0}),Y}throw ue.from(he,he&&he.code,S,D,he&&he.response)}}},G5=new Map,RN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,l=[r,i,n];let c=l.length,d=c,f,m,p=G5;for(;d--;)f=l[d],m=p.get(f),m===void 0&&p.set(f,m=d?new Map:K5(t)),p=m;return m};RN();const Xp={http:a5,xhr:F5,fetch:{get:RN}};I.forEach(Xp,(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}`,Q5=e=>I.isFunction(e)||e===null||e===!1;function Y5(e,t){e=I.isArray(e)?e:[e];const{length:n}=e;let r,i;const l={};for(let c=0;c<n;c++){r=e[c];let d;if(i=r,!Q5(r)&&(i=Xp[(d=String(r)).toLowerCase()],i===void 0))throw new ue(`Unknown adapter '${d}'`);if(i&&(I.isFunction(i)||(i=i.get(t))))break;l[d||"#"+c]=i}if(!i){const c=Object.entries(l).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
375`+c.map($v).join(`
376`):" "+$v(c[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+d,ue.ERR_NOT_SUPPORT)}return i}const AN={getAdapter:Y5,adapters:Xp};function Uh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vl(null,e)}function zv(e){return Uh(e),e.headers=Kt.from(e.headers),e.data=Bh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),AN.getAdapter(e.adapter||Fl.adapter,e)(e).then(function(r){Uh(e),e.response=r;try{r.data=Bh.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Kt.from(r.headers),r},function(r){if(!EN(r)&&(Uh(e),r&&r.response)){e.response=r.response;try{r.response.data=Bh.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Kt.from(r.response.headers)}return Promise.reject(r)})}const md={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{md[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qv={};md.transitional=function(t,n,r){function i(l,c){return"[Axios v"+Yp+"] Transitional option '"+l+"'"+c+(r?". "+r:"")}return(l,c,d)=>{if(t===!1)throw new ue(i(c," has been removed"+(n?" in "+n:"")),ue.ERR_DEPRECATED);return n&&!qv[c]&&(qv[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,d):!0}};md.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function X5(e,t,n){if(typeof e!="object"||e===null)throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],c=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(c){const d=e[l],f=d===void 0||c(d,l,e);if(f!==!0)throw new ue("option "+l+" must be "+f,ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ue("Unknown option "+l,ue.ERR_BAD_OPTION)}}const Cu={assertOptions:X5,validators:md},qt=Cu.validators;let xo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Av,response:new Av}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=(()=>{if(!i.stack)return"";const c=i.stack.indexOf(`
377`);return c===-1?"":i.stack.slice(c+1)})();try{if(!r.stack)r.stack=l;else if(l){const c=l.indexOf(`
378`),d=c===-1?-1:l.indexOf(`
379`,c+1),f=d===-1?"":l.slice(d+1);String(r.stack).endsWith(f)||(r.stack+=`
380`+l)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ko(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Cu.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean),legacyInterceptorReqResOrdering:qt.transitional(qt.boolean),advertiseZstdAcceptEncoding:qt.transitional(qt.boolean),validateStatusUndefinedResolves:qt.transitional(qt.boolean)}
vendor: 3,165 bytes, line 380
380,!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:Cu.assertOptions(i,{encode:qt.function,serialize:qt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Cu.assertOptions(n,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&I.merge(l.common,l[n.method]);l&&I.forEach(["delete","get","head","post","put","patch","query","common"],k=>{delete l[k]}),n.headers=Kt.concat(c,l);const d=[];let f=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;f=f&&w.synchronous;const j=n.transitional||Gp;j&&j.legacyInterceptorReqResOrdering?d.unshift(w.fulfilled,w.rejected):d.push(w.fulfilled,w.rejected)});const m=[];this.interceptors.response.forEach(function(w){m.push(w.fulfilled,w.rejected)});let p,g=0,v;if(!f){const k=[zv.bind(this),void 0];for(k.unshift(...d),k.push(...m),v=k.length,p=Promise.resolve(n);g<v;)p=p.then(k[g++],k[g++]);return p}v=d.length;let N=n;for(;g<v;){const k=d[g++],w=d[g++];try{N=k(N)}catch(j){w.call(this,j);break}}try{p=zv.call(this,N)}catch(k){return Promise.reject(k)}for(g=0,v=m.length;g<v;)p=p.then(m[g++],m[g++]);return p}getUri(t){t=ko(this.defaults,t);const n=TN(t.baseURL,t.url,t.allowAbsoluteUrls,t);return jN(n,t.params,t.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(t){xo.prototype[t]=function(n,r){return this.request(ko(r||{},{method:t,url:n,data:r&&I.hasOwnProp(r,"data")?r.data:void 0}))}});I.forEach(["post","put","patch","query"],function(t){function n(r){return function(l,c,d){return this.request(ko(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}xo.prototype[t]=n(),t!=="query"&&(xo.prototype[t+"Form"]=n(!0))});let J5=class ON{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const c=new Promise(d=>{r.subscribe(d),l=d}).then(i);return c.cancel=function(){r.unsubscribe(l)},c},t(function(l,c,d){r.reason||(r.reason=new Vl(l,c,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(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 ON(function(i){t=i}),cancel:t}}};function Z5(e){return function(n){return e.apply(null,n)}}function e4(e){return I.isObject(e)&&e.isAxiosError===!0}const Wm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
380alContent: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(Wm).forEach(([e,t])=>{Wm[t]=e});function MN(e){const t=new xo(e),n=uN(xo.prototype.request,t);return I.extend(n,xo.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return MN(ko(e,i))},n}const vt=MN(Fl);vt.Axios=xo;vt.CanceledError=Vl;vt.CancelToken=J5;vt.isCancel=EN;vt.VERSION=Yp;vt.toFormData=hd;vt.AxiosError=ue;vt.Cancel=vt.CanceledError;vt.all=function(t){return Promise.all(t)};vt.spread=Z5;vt.isAxiosError=e4;vt.mergeConfig=ko;vt.AxiosHeaders=Kt;vt.formToJSON=e=>CN(I.isHTMLForm(e)?new FormData(e):e);vt.getAdapter=AN.getAdapter;vt.HttpStatusCode=Wm;vt.default=vt;const{Axios:LU,AxiosError:IU,CanceledError:FU,isCancel:VU,CancelToken:BU,VERSION:UU,all:$U,Cancel:zU,isAxiosError:qU,spread:HU,toFormData:WU,AxiosHeaders:KU,HttpStatusCode:GU,formToJSON:QU,getAdapter:YU,mergeConfig:XU,create:JU}=vt,DN=typeof window>"u",Hv=!DN&&window.self!==window.top,t4=!DN&&typeof document>"u",$h=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Lt=[];for(let e=0;e<256;++e)Lt.push((e+256).toString(16).slice(1));function n4(e,t=0){return(Lt[e[t+0]]+Lt[e[t+1]]+Lt[e[t+2]]+Lt[e[t+3]]+"-"+Lt[e[t+4]]+Lt[e[t+5]]+"-"+Lt[e[t+6]]+Lt[e[t+7]]+"-"+Lt[e[t+8]]+Lt[e[t+9]]+"-"+Lt[e[t+10]]+Lt[e[t+11]]+Lt[e[t+12]]+Lt[e[t+13]]+Lt[e[t+14]]+Lt[e[t+15]]).toLowerCase()}let zh;const r4=new Uint8Array(16);function s4(){if(!zh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");zh=crypto.getRandomValues.bind(crypto)}return zh(r4)}const o4=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Wv={randomUUID:o4};function i4(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??s4();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,n4(r)}function a4(e,t,n){return Wv.randomUUID&&!e?Wv.randomUUID():i4(e)}const qa=typeof window<"u"?window:{base44SharedInstances:{}};function l4(e,t){return qa.base44SharedInstances||(qa.base44SharedInstances={}),qa.base44SharedInstances[e]||(qa.base44SharedInstances[e]={instance:t()}),qa.base44SharedInstances[e].instance}const c4="__user_heartbeat_event__",u4="__initialization_event__",d4="__session_duration_event__",Kv="analytics-enable",Gv="base44_analytics_session_id",f4={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},h4="analytics",Ze=l4(h4,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...f4,...w4()}})),m4=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r})=>{var i;const{maxQueueSize:l,throttleTime:c,batchSize:d}=Ze.config;if(!(!((i=Ze.config)===null||i===void 0)&&i.enabled)||t4)return{track:()=>{},cleanup:()=>{}};let f;const m=`${t}/api/apps/${n}/analytics/track/batch`,p=async P=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:P}})},g=P=>{try{const T=JSON.stringify({events:P}),A=new Blob([T],{type:"application/json"});return typeof navigator>"u"||T.length>6e4||!navigator.sendBeacon(m,A)}catch{return!1}},v=async(P,T={})=>
380{if(P.length===0)return;const A=await b4(r),V=P.map(v4(A));try{(!T.isBeacon||!g(V))&&await p(V)}catch{}},N=()=>{Yv(v,{throttleTime:c,batchSize:d})},k=P=>{if(Ze.requestsQueue.length>=l)return;const T=y4();Ze.requestsQueue.push({...P,...T}),N()},w=()=>{Yv(v,{throttleTime:c,batchSize:d}),f=Xv(k),g4()},j=()=>{Qv(),f==null||f(),x4(k);const P=Ze.requestsQueue.splice(0);v(P,{isBeacon:!0})},S=()=>{typeof window>"u"||(document.visibilityState==="hidden"?j():document.visibilityState==="visible"&&w())},E=()=>{Qv(),f==null||f(),typeof window<"u"&&window.removeEventListener("visibilitychange",S)};return N(),f=Xv(k),p4(k),typeof window<"u"&&window.addEventListener("visibilitychange",S),{track:k,cleanup:E}};function Qv(){Ze.isProcessing=!1}async function Yv(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 i=Ze.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(l=>setTimeout(l,n))}Ze.isProcessing=!1}function Xv(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:c4})},Ze.config.heartBeatInterval);return()=>{clearInterval(n),Ze.isHeartBeatProcessing=!1}}function p4(e){typeof window>"u"||Ze.wasInitializationTracked||(Ze.wasInitializationTracked=!0,e({eventName:u4,properties:{referrer:document==null?void 0:document.referrer}}))}function g4(){typeof window>"u"||Ze.sessionStartTime!==null||(Ze.sessionStartTime=new Date().toISOString())}function x4(e){if(typeof window>"u"||Ze.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Ze.sessionStartTime).getTime();Ze.sessionStartTime=null,e({eventName:d4,properties:{sessionDuration:t}})}function y4(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function v4(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let qh=null;async function b4(e){if(!Ze.sessionContext){if(!qh){const t=Jp();qh=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}Ze.sessionContext=await qh}return Ze.sessionContext}function w4(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(Kv);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(Kv);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function Jp(){if(typeof window>"u")return $h();try{const e=localStorage.getItem(Gv);if(!e){const t=$h();return localStorage.setItem(Gv,t),t}return e}catch{return $h()}}class N4 extends Error{constructor(t,n,r,i,l){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Ja({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const l=vt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(c=>{typeof window<"u"&&window.location&&(c.headers.set("X-Origin-URL",window.location.href),c.headers.get("Authorization")||c.headers.set("X-Base44-Anonymous-Id",Jp()));const d=a4();if(c.requestId=d,Hv)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&&l.interceptors.response.use(c=>{var d;const f=(d=c.config)===null||d===void 0?void 0:d.requestId;try{Hv&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,f,m,p,g,v,N,k;const w=((f=(d=c.response)===null||d===void 0?void 0:d.data)===null||f===void 0?void 0:f.message)||((p=(m=c.response)===null||m===void 0?void 0:m.data)===null||p===void 0?void 0:p.detail)||c.message,j=new N4(w,(g=c.response)===null||g===void 0?void 0:g.status,(N=(v=c.response)===null||v===void 0?void 0:v.data)===null||N===void 0?void 0:N.co
380de,(k=c.response)===null||k===void 0?void 0:k.data,c);return i==null||i(j),Promise.reject(j)}),l}function Jv(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(i,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return j4(t,n,l,r)}})}function S4(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 j4(e,t,n,r){const i=`/apps/${t}/entities/${n}`;return{async list(l,c,d,f){const m={};return l&&(m.sort=l),c&&(m.limit=c),d&&(m.skip=d),f&&(m.fields=Array.isArray(f)?f.join(","):f),e.get(i,{params:m})},async filter(l,c,d,f,m){const p={q:JSON.stringify(l)};return c&&(p.sort=c),d&&(p.limit=d),f&&(p.skip=f),m&&(p.fields=Array.isArray(m)?m.join(","):m),e.get(i,{params:p})},async get(l){return e.get(`${i}/${l}`)},async create(l){return e.post(i,l)},async update(l,c){return e.put(`${i}/${l}`,c)},async delete(l){return e.delete(`${i}/${l}`)},async deleteMany(l){return e.delete(i,{data:l})},async bulkCreate(l){return e.post(`${i}/bulk`,l)},async updateMany(l,c){return e.patch(`${i}/update-many`,{query:l,data:c})},async bulkUpdate(l){return e.put(`${i}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),e.post(`${i}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${t}:${n}`;return r().subscribeToRoom(c,{update_model:m=>{var p;const g=S4(m.data);if(g){g.type!=="delete"&&(!((p=g.data)===null||p===void 0)&&p._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${g.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("${g.id}")\` to fetch the full record.`);try{l(g)}catch(v){console.error("[Base44 SDK] Subscription callback error:",v)}}}})}}}function k4(e,t){return{async call(n,r,i){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:l,queryParams:c,...d}=i??{},f={...d,...l&&{path_params:l},...c&&{query_params:c}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,f)}}}function Zv(e,t){const n=k4(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(l,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 f,m;return d instanceof FormData||d&&Object.values(d).some(p=>p instanceof File)?(f=new FormData,Object.keys(d).forEach(p=>{d[p]instanceof File?f.append(p,d[p],d[p].name):typeof d[p]=="object"&&d[p]!==null?f.append(p,JSON.stringify(d[p])):f.append(p,d[p])}),m="multipart/form-data"):(f=d,m="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${c}`,f||d,{headers:{"Content-Type":m}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${c}`,f||d,{headers:{"Content-Type":m}})}}})}})}function C4(){return typeof window>"u"?!1:window!==window.parent}function E4(e,t,n){const l=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=${l},top=${c},resizable=yes,scrollbars=yes`);if(!d)return;const f=()=>{window.removeEventListener("message",m),clearInterval(p),d.closed||d.close()},m=g=>{var v;if(g.origin!==n||g.source!==d||!(!((v=g.data)===null||v===void 0)&&v.access_token))return;f();const N=new URL(t),{access_token:k,is_new_user:w}=g.data;N.searchParams.set("access_token",k),w!=null&&N.searchParams.set("is_new_user",String(w)),window.location.href=N.toString()},p=setInterval(()=>{d.closed&&f()},500);window.addEventListener("message",m)}function P4(e,t,n,r){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(i){return e.put(`/apps/${n}/entities/User/me`,i)},redirectToLogin(i){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=i?new URL(i,window.location.origin).toString():window.location.href,c=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(i,l="/"){const c=new URL(l,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(c)}`;let f;i==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${i==="google"?"":`/${i}`}/login`;const m=`${r.appBaseUrl}/api${f}?${d}`;if(C4()){const p=`${m}&popup_origin=${encodeURIComponent(window.location.origin)}`;return E4(p,c,window.location.origin)}window.location.href=m}
380,logout(i){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 l=i||window.location.href,c=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(i,l=!0){if(i&&(e.defaults.headers.common.Authorization=`Bearer ${i}`,t.defaults.headers.common.Authorization=`Bearer ${i}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",i),window.localStorage.setItem("token",i)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(i,l,c){var d;try{const f=await e.post(`/apps/${n}/auth/login`,{email:i,password:l,...c&&{turnstile_token:c}}),{access_token:m,user:p}=f;return m&&this.setToken(m),{access_token:m,user:p}}catch(f){throw((d=f.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(i,l){return e.post(`/apps/${n}/users/invite-user`,{user_email:i,role:l})},register(i){return e.post(`/apps/${n}/auth/register`,i)},verifyOtp({email:i,otpCode:l}){return e.post(`/apps/${n}/auth/verify-otp`,{email:i,otp_code:l})},resendOtp(i){return e.post(`/apps/${n}/auth/resend-otp`,{email:i})},resetPasswordRequest(i){return e.post(`/apps/${n}/auth/reset-password-request`,{email:i})},resetPassword({resetToken:i,newPassword:l}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:i,new_password:l})},changePassword({userId:i,currentPassword:l,newPassword:c}){return e.post(`/apps/${n}/auth/change-password`,{user_id:i,current_password:l,new_password:c})}}}function T4(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)}}}function _4(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 l=await e.get(`/apps/${t}/external-auth/tokens/${n}`);return{accessToken:l.access_token,connectionConfig:(r=l.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 l=await e.get(`/apps/${t}/external-auth/tokens/connectors/${n}`);return{accessToken:l.access_token,connectionConfig:(r=l.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 l=await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`);return{accessToken:l.access_token,connectionConfig:(r=l.connection_config)!==null&&r!==void 0?r:null}}}}function R4(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},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 Ii(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(n),l){if(r&&A4(l,{storageKey:t}),i){c.delete(n);const d=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function A4(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 eb(e,t,n){const r=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,i=l=>{const c=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();
380Object.entries(d).forEach(([f,m])=>{m!=null&&c.set(f,String(m))})}return l&&new Headers(l).forEach((d,f)=>{c.set(f,d)}),c};return{async invoke(l,c){if(typeof c=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${c}`);let d,f;return c instanceof FormData||c&&Object.values(c).some(m=>m instanceof File)?(d=new FormData,Object.keys(c).forEach(m=>{c[m]instanceof File?d.append(m,c[m],c[m].name):typeof c[m]=="object"&&c[m]!==null?d.append(m,JSON.stringify(c[m])):d.append(m,c[m])}),f="multipart/form-data"):(d=c,f="application/json"),e.post(`/apps/${t}/functions/${l}`,d||c,{headers:{"Content-Type":f}})},async fetch(l,c={}){const f=`/functions${l.startsWith("/")?l:`/${l}`}`,m=i(c.headers),p={...c,headers:m};return await fetch(r(n==null?void 0:n.baseURL,f),p)}}}function tb({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const l=`/apps/${n}/agents`,c={},d=()=>e.get(`${l}/conversations`),f=w=>e.get(`${l}/conversations/${w}`);return{getConversations:d,getConversation:f,listConversations:w=>e.get(`${l}/conversations`,{params:w}),createConversation:w=>e.post(`${l}/conversations`,w),addMessage:async(w,j)=>e.post(`${l}/conversations/v2/${w.id}/messages`,j),subscribeToConversation:(w,j)=>{const S=`/agent-conversations/${w}`,E=t(),P=f(w).then(T=>(c[w]=T,T));return E.subscribeToRoom(S,{connect:()=>{},update_model:async({data:T})=>{const A=JSON.parse(T);if(A._message){await P;const V=A._message,z=c[w];if(z){const R=z.messages||[],K=R.findIndex(q=>q.id===V.id),U=K!==-1?R.map((q,H)=>H===K?V:q):[...R,V];c[w]={...z,messages:U},j==null||j(c[w])}}}})},getWhatsAppConnectURL:w=>{const j=`${r}/api/apps/${n}/agents/${encodeURIComponent(w)}/whatsapp`,S=i??Ii();return S?`${j}?token=${S}`:j},getTelegramConnectURL:w=>{const j=`${r}/api/apps/${n}/agents/${encodeURIComponent(w)}/telegram`,S=i??Ii();return S?`${j}?token=${S}`:j}}}function nb({serverUrl:e,token:t,appId:n}){return{connection:()=>{var i;return{baseURL:`${e}/api/apps/${n}/ai/openai/v1`,token:(i=t??Ii())!==null&&i!==void 0?i:""}}}}function rb(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 O4(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 gr=Object.create(null);gr.open="0";gr.close="1";gr.ping="2";gr.pong="3";gr.message="4";gr.upgrade="5";gr.noop="6";const Eu=Object.create(null);Object.keys(gr).forEach(e=>{Eu[gr[e]]=e});const Km={type:"error",data:"parser error"},LN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",IN=typeof ArrayBuffer=="function",FN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Zp=({type:e,data:t},n,r)=>LN&&t instanceof Blob?n?r(t):sb(t,r):IN&&(t instanceof ArrayBuffer||FN(t))?n?r(t):sb(new Blob([t]),r):r(gr[e]+(t||"")),sb=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ob(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Hh;function M4(e,t){if(LN&&e.data instanceof Blob)return e.data.arrayBuffer().then(ob).then(t);if(IN&&(e.data instanceof ArrayBuffer||FN(e.data)))return t(ob(e.data));Zp(e,!1,n=>{Hh||(Hh=new TextEncoder),t(Hh.encode(n))})}const ib="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Za=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<ib.length;e++)Za[ib.charCodeAt(e)]=e;const D4=e=>{let t=e.length*.75,n=e.length,r,i=0,l,c,d,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const m=new ArrayBuffer(t),p=new Uint8Array(m);for(r=0;r<n;r+=4)l=Za[e.charCodeAt(r)],c=Za[e.charCodeAt(r+1)],d=Za[e.charCodeAt(r+2)],f=Za[e.charCodeAt(r+3)],p[i++]=l<<2|c>>4,p[i++]=(c&15)<<4|d>>2,p[i++]=(d&3)<<6|f&63;return m},L4=typeof ArrayBuffer=="function",eg=(e,t)=>{if(typeof e!="string")return{type:"message",data:VN(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:I4(e.substring(1),t)}:Eu[n]?e.length>1?{type:Eu[n],data:e.substring(1)}:{type:Eu[n]}:Km},I4=(e,t)=>
vendor: 20,831 bytes, line 380
380{if(L4){const n=D4(e);return VN(n,t)}else return{base64:!0,data:e}},VN=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},BN="�",F4=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((l,c)=>{Zp(l,!1,d=>{r[c]=d,++i===n&&t(r.join(BN))})})},V4=(e,t)=>{const n=e.split(BN),r=[];for(let i=0;i<n.length;i++){const l=eg(n[i],t);if(r.push(l),l.type==="error")break}return r};function B4(){return new TransformStream({transform(e,t){M4(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const l=new DataView(i.buffer);l.setUint8(0,126),l.setUint16(1,r)}else{i=new Uint8Array(9);const l=new DataView(i.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Wh;function lu(e){return e.reduce((t,n)=>t+n.length,0)}function cu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=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 U4(e,t){Wh||(Wh=new TextDecoder);const n=[];let r=0,i=-1,l=!1;return new TransformStream({transform(c,d){for(n.push(c);;){if(r===0){if(lu(n)<1)break;const f=cu(n,1);l=(f[0]&128)===128,i=f[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(lu(n)<2)break;const f=cu(n,2);i=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),r=3}else if(r===2){if(lu(n)<8)break;const f=cu(n,8),m=new DataView(f.buffer,f.byteOffset,f.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){d.enqueue(Km);break}i=p*Math.pow(2,32)+m.getUint32(4),r=3}else{if(lu(n)<i)break;const f=cu(n,i);d.enqueue(eg(l?f:Wh.decode(f),t)),r=0}if(i===0||i>e){d.enqueue(Km);break}}}})}const UN=4;function wt(e){if(e)return $4(e)}function $4(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};wt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.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,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};wt.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,i=n.length;r<i;++r)n[r].apply(this,t)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const pd=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Dn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),z4="arraybuffer";function $N(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const q4=Dn.setTimeout,H4=Dn.clearTimeout;function gd(e,t){t.useNativeTimers?(e.setTimeoutFn=q4.bind(Dn),e.clearTimeoutFn=H4.bind(Dn)):(e.setTimeoutFn=Dn.setTimeout.bind(Dn),e.clearTimeoutFn=Dn.clearTimeout.bind(Dn))}const W4=1.33;function K4(e){return typeof e=="string"?G4(e):Math.ceil((e.byteLength||e.size)*W4)}function G4(e){let t=0,n=0;for(let r=0,i=e.length;r<i;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 zN(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Q4(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Y4(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let l=n[r].split("=");t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class X4 extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class tg extends wt{constructor(t){super(),this.writable=!1,gd(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 X4(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=eg(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=Q4(t);return n.length?"?"+n:""}}class J4 extends tg{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)};V4(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,F4(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]=zN()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let qN=!1;try{qN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Z4=qN;function eO(){}class tO extends J4{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",(i,l)=>{this.onError("xhr post error",i,l)})}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 ur extends wt{constructor(t,n,r){super(),this.createRequest=t,gd(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=$N(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 i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}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 i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.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(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.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=eO,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.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()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ab);else if(typeof addEventListener=="function"){const e="onpagehide"in Dn?"pagehide":"unload";addEventListener(e,ab,!1)}}function ab(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const nO=(function(){const e=HN({xdomain:!1});return e&&e.responseType!==null})();class rO extends tO{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=nO&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ur(HN,this.uri(),t)}}function HN(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Z4))return new XMLHttpRequest}catch{}if(!t)try{return new Dn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const WN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class sO extends tg{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=WN?{}:$N(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(i){return this.emitReserved("error",i)}this.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],i=n===t.length-1;Zp(r,this.supportsBinary,l=>{try{this.doWrite(r,l)}catch{}i&&pd(()=>{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]=zN()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Kh=Dn.WebSocket||Dn.MozWebSocket;class oO extends sO{createSocket(t,n,r){return WN?new Kh(t,n,r):n?new Kh(t,n):new Kh(t)}doWrite(t,n){this.ws.send(n)}}class iO extends tg{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=U4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=B4();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const l=()=>{r.read().then(({done:d,value:f})=>{d||(this.onPacket(f),l())}).catch(d=>{})};l();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],i=n===t.length-1;this._writer.write(r).then(()=>{i&&pd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const aO={websocket:oO,webtransport:iO,polling:rO},lO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Gm(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 i=lO.exec(e||""),l={},c=14;for(;c--;)l[cO[c]]=i[c]||"";return n!=-1&&r!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=uO(l,l.path),l.queryKey=dO(l,l.query),l}function uO(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 dO(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,l){i&&(n[i]=l)}),n}const Qm=typeof addEventListener=="function"&&typeof removeEventListener=="function",Pu=[];Qm&&addEventListener("offline",()=>{Pu.forEach(e=>e())},!1);class Ps extends wt{constructor(t,n){if(super(),this.binaryType=z4,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=Gm(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=Gm(n.host).host);gd(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 i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=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=Y4(this.opts.query)),Qm&&(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"})},Pu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=UN,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&&Ps.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",Ps.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 i=this.writeBuffer[r].data;if(i&&(n+=K4(i)),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,pd(()=>{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,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const l={type:t,data:n,options:r};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),i&&this.once("flush",i),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(Ps.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(),Qm&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Pu.indexOf(this._offlineEventListener);r!==-1&&Pu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ps.protocol=UN;class fO extends Ps{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;Ps.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ps.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 11,000 bytes, line 380
380]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function l(){r||(r=!0,p(),n.close(),n=null)}const c=g=>{const v=new Error("probe error: "+g);v.transport=n.name,l(),this.emitReserved("upgradeError",v)};function d(){c("transport closed")}function f(){c("socket closed")}function m(g){n&&g.name!==n.name&&l()}const p=()=>{n.removeListener("open",i),n.removeListener("error",c),n.removeListener("close",d),this.off("close",f),this.off("upgrading",m)};n.once("open",i),n.once("error",c),n.once("close",d),this.once("close",f),this.once("upgrading",m),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 hO=class extends fO{constructor(t,n={}){const r=typeof t=="object",i=r?{...t}:{...n};(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(l=>aO[l]).filter(l=>!!l)),super(r?i:t,i)}};function mO(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=Gm(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 l=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+l+":"+r.port+t,r.href=r.protocol+"://"+l+(n&&n.port===r.port?"":":"+r.port),r}const pO=typeof ArrayBuffer=="function",gO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,KN=Object.prototype.toString,xO=typeof Blob=="function"||typeof Blob<"u"&&KN.call(Blob)==="[object BlobConstructor]",yO=typeof File=="function"||typeof File<"u"&&KN.call(File)==="[object FileConstructor]";function ng(e){return pO&&(e instanceof ArrayBuffer||gO(e))||xO&&e instanceof Blob||yO&&e instanceof File}function Tu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Tu(e[n]))return!0;return!1}if(ng(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Tu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Tu(e[n]))return!0;return!1}function vO(e){const t=[],n=e.data,r=e;return r.data=Ym(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Ym(e,t){if(!e)return e;if(ng(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]=Ym(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]=Ym(e[r],t));return n}return e}function bO(e,t){return e.data=Xm(e.data,t),delete e.attachments,e}function Xm(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]=Xm(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Xm(e[n],t));return e}const GN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],wO=5;var Fe;(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"})(Fe||(Fe={}));class NO{constructor(t){this.replacer=t}encode(t){return(t.type===Fe.EVENT||t.type===Fe.ACK)&&Tu(t)?this.encodeAsBinary({type:t.type===Fe.EVENT?Fe.BINARY_EVENT:Fe.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Fe.BINARY_EVENT||t.type===Fe.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=vO(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class rg extends wt{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===Fe.BINARY_EVENT;r||n.type===Fe.BINARY_ACK?(n.type=r?Fe.EVENT:Fe.ACK,this.reconstructor=new SO(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ng(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(Fe[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Fe.BINARY_EVENT||r.type===Fe.BINARY_ACK){const l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(l,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const d=Number(c);if(!QN(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 l=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(l,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const l=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(l,n+1))}if(t.charAt(++n)){const l=this.tryParse(t.substr(n));if(rg.isPayloadValid(r.type,l))r.data=l;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 Fe.CONNECT:return Ku(n);case Fe.DISCONNECT:return n===void 0;case Fe.CONNECT_ERROR:return typeof n=="string"||Ku(n);case Fe.EVENT:case Fe.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&GN.indexOf(n[0])===-1);case Fe.ACK:case Fe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class SO{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=bO(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function jO(e){return typeof e=="string"}const QN=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function kO(e){return e===void 0||QN(e)}function Ku(e){return Object.prototype.toString.call(e)==="[object Object]"}function CO(e,t){switch(e){case Fe.CONNECT:return t===void 0||Ku(t);case Fe.DISCONNECT:return t===void 0;case Fe.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&GN.indexOf(t[0])===-1);case Fe.ACK:return Array.isArray(t);case Fe.CONNECT_ERROR:return typeof t=="string"||Ku(t);default:return!1}}function EO(e){return jO(e.nsp)&&kO(e.id)&&CO(e.type,e.data)}const PO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:rg,Encoder:NO,get PacketType(){return Fe},isPacketValid:EO,protocol:wO},Symbol.toStringTag,{value:"Module"}));function Kn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const TO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class YN extends wt{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=[Kn(t,"open",this.onopen.bind(this)),Kn(t,"packet",this.onpacket.bind(this)),Kn(t,"error",this.onerror.bind(this)),Kn(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,i,l;if(TO.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:Fe.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,g=n.pop();this._registerAckCallback(p,g),c.id=p}const d=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,f=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(f?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const l=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"))},i),c=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...n){return new Promise((r,i)=>{const l=(c,d)=>c?i(c):r(d);l.withError=!0,n.push(l),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((i,...l)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...l)),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:Fe.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 380
380_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 Fe.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 Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(t);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(t);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.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(...i){r||(r=!0,n.packet({type:Fe.ACK,id:t,data:i}))}}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:Fe.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 Xi(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}Xi.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};Xi.prototype.reset=function(){this.attempts=0};Xi.prototype.setMin=function(e){this.ms=e};Xi.prototype.setMax=function(e){this.max=e};Xi.prototype.setJitter=function(e){this.jitter=e};class Jm extends wt{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,gd(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 Xi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||PO;this.encoder=new i.Encoder,this.decoder=new i.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 hO(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Kn(n,"open",function(){r.onopen(),t&&t()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),t?t(d):this.maybeReconnectOnOpen()},c=Kn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{i(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),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(Kn(t,"ping",this.onping.bind(this)),Kn(t,"data",this.ondata.bind(this)),Kn(t,"error",this.onerror.bind(this)),Kn(t,"close",this.onclose.bind(this)),Kn(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){pd(()=>{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 YN(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)}
380cleanup(){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(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):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 _u(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=mO(e,t.path||"/socket.io"),r=n.source,i=n.id,l=n.path,c=Ha[i]&&l in Ha[i].nsps,d=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let f;return d?f=new Jm(r,t):(Ha[i]||(Ha[i]=new Jm(r,t)),f=Ha[i]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(_u,{Manager:Jm,Socket:YN,io:_u,connect:_u});const _O=250;function lb(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Ii(),i={app_id:e.appId,token:r};r||(i.anonymous_id=Jp());const l=_u(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return l.on("connect",async()=>{var c;return console.log("connect",l.id),(c=t.connect)===null||c===void 0?void 0:c.call(t)}),l.on("update_model",async c=>{var d;return(d=t.update_model)===null||d===void 0?void 0:d.call(t,c)}),l.on("error",async c=>{var d;return(d=t.error)===null||d===void 0?void 0:d.call(t,c)}),l.on("connect_error",async c=>{var d;return console.error("connect_error",c),(d=t.error)===null||d===void 0?void 0:d.call(t,c)}),l}function RO({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const S=[];Object.keys(n).forEach(E=>{const P=v(E);P.length!==0&&(m(E),P.forEach(({connect:T})=>{const A=async()=>T==null?void 0:T();S.push(A())}))}),await Promise.all(S)},update_model:async S=>{const P=v(S.room).map(T=>{var A;return(A=T.update_model)===null||A===void 0?void 0:A.call(T,S)});await Promise.all(P)},error:async S=>{console.error("error",S);const E=Object.values(n).flat().map(P=>{var T;return(T=P.error)===null||T===void 0?void 0:T.call(P,S)});await Promise.all(E)}};let l=lb(e,i);function c(){d()}function d(){k(),l&&l.disconnect()}function f(S){c(),t={...t,...S},l=lb(t,i)}function m(S){l.emit("join",S)}function p(S){l.emit("leave",S)}async function g(S,E){var P;const T=JSON.stringify(E);return(P=i.update_model)===null||P===void 0?void 0:P.call(i,{room:S,data:T})}function v(S){var E;return(E=n[S])!==null&&E!==void 0?E:[]}function N(S){const E=r[S];E&&(clearTimeout(E),delete r[S])}function k(){Object.keys(r).forEach(S=>{var E,P;clearTimeout(r[S]),delete r[S],((P=(E=n[S])===null||E===void 0?void 0:E.length)!==null&&P!==void 0?P:0)===0&&delete n[S]})}function w(S){N(S),r[S]=setTimeout(()=>{var E,P;delete r[S],!(((P=(E=n[S])===null||E===void 0?void 0:E.length)!==null&&P!==void 0?P:0)>0)&&(p(S),delete n[S])},_O)}return{socket:l,subscribeToRoom:(S,E)=>{n[S]?N(S):(m(S),n[S]=[]),n[S].push(E);let P=!1;return()=>{var T,A;P||(P=!0,n[S]=(A=(T=n[S])===null||T===void 0?void 0:T.filter(V=>V!==E))!==null&&A!==void 0?A:[],n[S].length===0&&w(S))}},updateConfig:f,updateModel:g,disconnect:d}}function AO(e){var t,n;const{serverUrl:r="https://base44.app",appId:i,token:l,serviceToken:c,requiresAuth:d=!1,appBaseUrl:f,options:m,functionsVersion:p,headers:g}=e,v=typeof f=="string"?f:"",N={serverUrl:r,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:i,token:l};let k=null;const w=()=>(k||(k=RO({config:N})),k),j={...g,"X-App-Id":String(i)},S=p?{...j,"Base44-Functions-Version":p}:j,E=Ja({baseURL:`${r}/api`,headers:j,token:l,onError:m==null?void 0:m.onError}),P=Ja({baseURL:`${r}/api`,headers:S,token:l,interceptResponses:!1,onError:m==null?void 0:m.onError}),T={...j,...l?{"on-behalf-of":`Bearer ${l}`}:{}},A=Ja({baseURL:`${r}/api`,headers:T,token:c,onError:m==null?void 0:m.onError}),V=Ja({baseURL:`${r}/api`,headers:S,token:c,interceptResponses:!1}),z=P4(E,P,i,{appBaseUrl:v});if(typeof window<"u"){const q=l||Ii();q&&z.setToken(q)}const R={entities:Jv({axios:E,appId:i,getSocket:w}),integrations:Zv(E,i),connectors:R4(E,i),auth:z,functions:eb(P,i,{getAuthHeaders:()=>{const q={},H=l||Ii();return H&&(q.Authorization=`Bearer ${H}`),q},baseURL:(t=P.defaults)===null||t===void 0?void 0:t.baseURL}),agents:tb({axios:E,getSocket:w,appId:i,serverUrl:r,token:l}),aiGateway:nb({serverUrl:r,token:l,appId:i}
380),appLogs:rb(E,i),users:O4(E,i),analytics:m4({axiosClient:E,serverUrl:r,appId:i,userAuthModule:z}),cleanup:()=>{R.analytics.cleanup(),k&&k.disconnect()}},K={entities:Jv({axios:A,appId:i,getSocket:w}),integrations:Zv(A,i),sso:T4(A,i),connectors:_4(A,i),functions:eb(V,i,{getAuthHeaders:()=>{const q={};return c&&(q.Authorization=`Bearer ${c}`),q},baseURL:(n=V.defaults)===null||n===void 0?void 0:n.baseURL}),agents:tb({axios:A,getSocket:w,appId:i,serverUrl:r,token:l}),aiGateway:nb({serverUrl:r,token:c,appId:i}),appLogs:rb(A,i),cleanup:()=>{k&&k.disconnect()}};return d&&typeof window<"u"&&setTimeout(async()=>{try{await R.auth.isAuthenticated()||R.auth.redirectToLogin(window.location.href)}catch(q){console.error("Authentication check failed:",q),R.auth.redirectToLogin(window.location.href)}},0),{...R,setToken(q){R.auth.setToken(q),k&&k.updateConfig({token:q}),N.token=q},getConfig(){return{serverUrl:r,appId:i,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 K}}}const XN=typeof window>"u",OO=XN?{localStorage:new Map}:window,Gh=OO.localStorage,MO=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Wa=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(XN)return t;const r=`base44_${MO(e)}`,i=new URLSearchParams(window.location.search),l=i.get(e);if(n){i.delete(e);const d=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Gh.setItem(r,l),l;if(t)return Gh.setItem(r,t),t;const c=Gh.getItem(r);return c||null},DO=()=>({appId:Wa("app_id",{defaultValue:"69136f7f840770cde3244d19"}),serverUrl:Wa("server_url",{defaultValue:"https://base44.app"}),token:Wa("access_token",{removeFromUrl:!0}),fromUrl:Wa("from_url",{defaultValue:window.location.href}),functionsVersion:Wa("functions_version")}),hi={...DO()},{appId:LO,serverUrl:IO,token:FO,functionsVersion:VO}=hi,Me=AO({appId:LO,serverUrl:IO,token:FO,functionsVersion:VO,requiresAuth:!1}),JN=b.createContext(),BO=({children:e})=>{const[t,n]=b.useState(null),[r,i]=b.useState(!1),[l,c]=b.useState(!0),[d,f]=b.useState(!0),[m,p]=b.useState(null),[g,v]=b.useState(null);b.useEffect(()=>{N()},[]);const N=async()=>{var S,E;try{f(!0),p(null);const P=Ja({baseURL:`${hi.serverUrl}/api/apps/public`,headers:{"X-App-Id":hi.appId},token:hi.token,interceptResponses:!0});try{const T=await P.get(`/prod/public-settings/by-id/${hi.appId}`);v(T),hi.token?await k():(c(!1),i(!1)),f(!1)}catch(T){if(console.error("App state check failed:",T),T.status===403&&((E=(S=T.data)==null?void 0:S.extra_data)!=null&&E.reason)){const A=T.data.extra_data.reason;p(A==="auth_required"?{type:"auth_required",message:"Authentication required"}:A==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:A,message:T.message})}else p({type:"unknown",message:T.message||"Failed to load app"});f(!1),c(!1)}}catch(P){console.error("Unexpected error:",P),p({type:"unknown",message:P.message||"An unexpected error occurred"}),f(!1),c(!1)}},k=async()=>{try{c(!0);const S=await Me.auth.me();n(S),i(!0),c(!1)}catch(S){console.error("User auth check failed:",S),c(!1),i(!1),(S.status===401||S.status===403)&&p({type:"auth_required",message:"Authentication required"})}},w=(S=!0)=>{n(null),i(!1),S?Me.auth.logout(window.location.href):Me.auth.logout()},j=()=>{Me.auth.redirectToLogin(window.location.href)};return a.jsx(JN.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:l,isLoadingPublicSettings:d,authError:m,appPublicSettings:g,logout:w,navigateToLogin:j,checkAppState:N},children:e})},ZN=()=>{const e=b.useContext(JN);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function Ke(e){return"/"+e.toLowerCase().replace(/ /g,"-")}function cb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eS(...e){return t=>{let n=!1;const r=e.map(i=>{const l=cb(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():cb(e[i],null)}}}}function et(...e){return b.useCallback(eS(...e),e)}function vl(e){const t=$O(e),n=b.forwardRef((r,i)=>{const{children:l,...c}=r,d=b.Children.toArray(l),f=d.find(qO);if(f){const m=f.props.children,p=d.map(g=>g===f?b.Children.count(m)>1?b.Children.only(null):b.isValidElement(m)?m.props.children:null:g);return a.jsx(t,{...c,ref:i,children:b.isValidElement(m)?b.cloneElement(m,void 0,p):null})}return a.jsx(t,{...c,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var UO=vl("Slot");function $O(e){const t=b.forwardRef((n,r)=>{const{children:i,...l}=n;if(b.isValidElement(i)){const c=WO(i),d=HO(l,i.props);return i.type!==b.Fragment&&(d.ref=r?eS(r,c):c),b.cloneElement(i,d)}return b.Children.count(i)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zO=Symbol("radix.slottable");function qO(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zO}function HO(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...d)=>{const f=l(...d);return i(...d),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}
vendor: 6,027 bytes, line 380
380:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function WO(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const KO=ld("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"}}),ae=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},l)=>{const c=r?UO:"button";return a.jsx(c,{className:Ye(KO({variant:t,size:n,className:e})),ref:l,...i})});ae.displayName="Button";const He=b.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:Ye("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}));He.displayName="Input";const le=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("rounded-xl border bg-card text-card-foreground shadow",e),...t}));le.displayName="Card";const dr=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("flex flex-col space-y-1.5 p-6",e),...t}));dr.displayName="CardHeader";const fr=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("font-semibold leading-none tracking-tight",e),...t}));fr.displayName="CardTitle";const GO=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("text-sm text-muted-foreground",e),...t}));GO.displayName="CardDescription";const de=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("p-6 pt-0",e),...t}));de.displayName="CardContent";const QO=b.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Ye("flex items-center p-6 pt-0",e),...t}));QO.displayName="CardFooter";function Gu(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Mo(e,t=[]){let n=[];function r(l,c){const d=b.createContext(c),f=n.length;n=[...n,c];const m=g=>{var S;const{scope:v,children:N,...k}=g,w=((S=v==null?void 0:v[e])==null?void 0:S[f])||d,j=b.useMemo(()=>k,Object.values(k));return a.jsx(w.Provider,{value:j,children:N})};m.displayName=l+"Provider";function p(g,v){var w;const N=((w=v==null?void 0:v[e])==null?void 0:w[f])||d,k=b.useContext(N);if(k)return k;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[m,p]}const i=()=>{const l=n.map(c=>b.createContext(c));return function(d){const f=(d==null?void 0:d[e])||l;return b.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return i.scopeName=e,[r,YO(i,...t)]}function YO(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const c=r.reduce((d,{useScope:f,scopeName:m})=>{const g=f(l)[`__scope${m}`];return{...d,...g}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Gt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},XO=Mp[" useInsertionEffect ".trim().toString()]||Gt;function Fi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,l,c]=JO({defaultProp:t,onChange:n}),d=e!==void 0,f=d?e:i;{const p=b.useRef(e!==void 0);b.useEffect(()=>{const g=p.current;g!==d&&console.warn(`${r} is changing from ${g?"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.`),p.current=d},[d,r])}const m=b.useCallback(p=>{var g;if(d){const v=ZO(p)?p(e):p;v!==e&&((g=c.current)==null||g.call(c,v))}else l(p)},[d,e,l,c]);return[f,m]}function JO({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),i=b.useRef(n),l=b.useRef(t);return XO(()=>{l.current=t},[t]),b.useEffect(()=>{var c;i.current!==n&&((c=l.current)==null||c.call(l,n),i.current=n)},[n,i]),[n,r,l]}function ZO(e){return typeof e=="function"}var eM=b.createContext(void 0);function xd(e){const t=b.useContext(eM);return e||t||"ltr"}function sg(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function og(e){const[t,n]=b.useState(void 0);return Gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let c,d;if("borderBoxSize"in l){const f=l.borderBoxSize,m=Array.isArray(f)?f[0]:f;c=m.inlineSize,d=m.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 tM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=tM.reduce((e,t)=>
380{const n=vl(`Primitive.${t}`),r=b.forwardRef((i,l)=>{const{asChild:c,...d}=i,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(f,{...d,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nM(e,t){e&&Ml.flushSync(()=>e.dispatchEvent(t))}function ig(e){const t=e+"CollectionProvider",[n,r]=Mo(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=w=>{const{scope:j,children:S}=w,E=yn.useRef(null),P=yn.useRef(new Map).current;return a.jsx(i,{scope:j,itemMap:P,collectionRef:E,children:S})};c.displayName=t;const d=e+"CollectionSlot",f=vl(d),m=yn.forwardRef((w,j)=>{const{scope:S,children:E}=w,P=l(d,S),T=et(j,P.collectionRef);return a.jsx(f,{ref:T,children:E})});m.displayName=d;const p=e+"CollectionItemSlot",g="data-radix-collection-item",v=vl(p),N=yn.forwardRef((w,j)=>{const{scope:S,children:E,...P}=w,T=yn.useRef(null),A=et(j,T),V=l(p,S);return yn.useEffect(()=>(V.itemMap.set(T,{ref:T,...P}),()=>void V.itemMap.delete(T))),a.jsx(v,{[g]:"",ref:A,children:E})});N.displayName=p;function k(w){const j=l(e+"CollectionConsumer",w);return yn.useCallback(()=>{const E=j.collectionRef.current;if(!E)return[];const P=Array.from(E.querySelectorAll(`[${g}]`));return Array.from(j.itemMap.values()).sort((V,z)=>P.indexOf(V.ref.current)-P.indexOf(z.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:c,Slot:m,ItemSlot:N},k,r]}var tS=["PageUp","PageDown"],nS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],rS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ji="Slider",[Zm,rM,sM]=ig(Ji),[sS]=Mo(Ji,[sM]),[oM,yd]=sS(Ji),oS=b.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:l=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:m=[r],value:p,onValueChange:g=()=>{},onValueCommit:v=()=>{},inverted:N=!1,form:k,...w}=e,j=b.useRef(new Set),S=b.useRef(0),P=c==="horizontal"?iM:aM,[T=[],A]=Fi({prop:p,defaultProp:m,onChange:q=>{var Z;(Z=[...j.current][S.current])==null||Z.focus(),g(q)}}),V=b.useRef(T);function z(q){const H=fM(T,q);U(q,H)}function R(q){U(q,S.current)}function K(){const q=V.current[S.current];T[S.current]!==q&&v(T)}function U(q,H,{commit:Z}={commit:!1}){const ce=gM(l),ie=xM(Math.round((q-r)/l)*l+r,ce),ee=Gu(ie,[r,i]);A((te=[])=>{const F=uM(te,ee,H);if(pM(F,f*l)){S.current=F.indexOf(ee);const se=String(F)!==String(te);return se&&Z&&v(F),se?F:te}else return te})}return a.jsx(oM,{scope:e.__scopeSlider,name:n,disabled:d,min:r,max:i,valueIndexToChangeRef:S,thumbs:j.current,values:T,orientation:c,form:k,children:a.jsx(Zm.Provider,{scope:e.__scopeSlider,children:a.jsx(Zm.Slot,{scope:e.__scopeSlider,children:a.jsx(P,{"aria-disabled":d,"data-disabled":d?"":void 0,...w,ref:t,onPointerDown:Ue(w.onPointerDown,()=>{d||(V.current=T)}),min:r,max:i,inverted:N,onSlideStart:d?void 0:z,onSlideMove:d?void 0:R,onSlideEnd:d?void 0:K,onHomeKeyDown:()=>!d&&U(r,0,{commit:!0}),onEndKeyDown:()=>!d&&U(i,T.length-1,{commit:!0}),onStepKeyDown:({event:q,direction:H})=>{if(!d){const ie=tS.includes(q.key)||q.shiftKey&&nS.includes(q.key)?10:1,ee=S.current,te=T[ee],F=l*ie*H;U(te+F,ee,{commit:!0})}}})})})})});oS.displayName=Ji;var[iS,aS]=sS(Ji,{startEdge:"left",endEdge:"right",size:"width",direction:1}),iM=b.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:l,onSlideStart:c,onSlideMove:d,onSlideEnd:f,onStepKeyDown:m,...p}=e,[g,v]=b.useState(null),N=et(t,P=>v(P)),k=b.useRef(void 0),w=xd(i),j=w==="ltr",S=j&&!l||!j&&l;function E(P){const T=k.current||g.getBoundingClientRect(),A=[0,T.width],z=ag(A,S?[n,r]:[r,n]);return k.current=T,z(P-T.left)}return a.jsx(iS,{scope:e.__scopeSlider,startEdge:S?"left":"right",endEdge:S?"right":"left",direction:S?1:-1,size:"width",children:a.jsx(lS,{dir:w,"data-orientation":"horizontal",...p,ref:N,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:P=>{const T=E(P.clientX);c==null||c(T)},onSlideMove:P=>{const T=E(P.clientX);d==null||d(T)},onSlideEnd:()=>{k.current=void 0,f==null||f()},onStepKeyDown:P=>{const A=rS[S?"from-left":"from-right"].includes(P.key);m==null||m({event:P,direction:A?-1:1})}})})}),aM=b.forwardRef((e,t)=>
380{const{min:n,max:r,inverted:i,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...m}=e,p=b.useRef(null),g=et(t,p),v=b.useRef(void 0),N=!i;function k(w){const j=v.current||p.current.getBoundingClientRect(),S=[0,j.height],P=ag(S,N?[r,n]:[n,r]);return v.current=j,P(w-j.top)}return a.jsx(iS,{scope:e.__scopeSlider,startEdge:N?"bottom":"top",endEdge:N?"top":"bottom",size:"height",direction:N?1:-1,children:a.jsx(lS,{"data-orientation":"vertical",...m,ref:g,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const j=k(w.clientY);l==null||l(j)},onSlideMove:w=>{const j=k(w.clientY);c==null||c(j)},onSlideEnd:()=>{v.current=void 0,d==null||d()},onStepKeyDown:w=>{const S=rS[N?"from-bottom":"from-top"].includes(w.key);f==null||f({event:w,direction:S?-1:1})}})})}),lS=b.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:l,onHomeKeyDown:c,onEndKeyDown:d,onStepKeyDown:f,...m}=e,p=yd(Ji,n);return a.jsx($e.span,{...m,ref:t,onKeyDown:Ue(e.onKeyDown,g=>{g.key==="Home"?(c(g),g.preventDefault()):g.key==="End"?(d(g),g.preventDefault()):tS.concat(nS).includes(g.key)&&(f(g),g.preventDefault())}),onPointerDown:Ue(e.onPointerDown,g=>{const v=g.target;v.setPointerCapture(g.pointerId),g.preventDefault(),p.thumbs.has(v)?v.focus():r(g)}),onPointerMove:Ue(e.onPointerMove,g=>{g.target.hasPointerCapture(g.pointerId)&&i(g)}),onPointerUp:Ue(e.onPointerUp,g=>{const v=g.target;v.hasPointerCapture(g.pointerId)&&(v.releasePointerCapture(g.pointerId),l(g))})})}),cS="SliderTrack",uS=b.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=yd(cS,n);return a.jsx($e.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});uS.displayName=cS;var ep="SliderRange",dS=b.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=yd(ep,n),l=aS(ep,n),c=b.useRef(null),d=et(t,c),f=i.values.length,m=i.values.map(v=>mS(v,i.min,i.max)),p=f>1?Math.min(...m):0,g=100-Math.max(...m);return a.jsx($e.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:d,style:{...e.style,[l.startEdge]:p+"%",[l.endEdge]:g+"%"}})});dS.displayName=ep;var tp="SliderThumb",fS=b.forwardRef((e,t)=>{const n=rM(e.__scopeSlider),[r,i]=b.useState(null),l=et(t,d=>i(d)),c=b.useMemo(()=>r?n().findIndex(d=>d.ref.current===r):-1,[n,r]);return a.jsx(lM,{...e,ref:l,index:c})}),lM=b.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...l}=e,c=yd(tp,n),d=aS(tp,n),[f,m]=b.useState(null),p=et(t,E=>m(E)),g=f?c.form||!!f.closest("form"):!0,v=og(f),N=c.values[r],k=N===void 0?0:mS(N,c.min,c.max),w=dM(r,c.values.length),j=v==null?void 0:v[d.size],S=j?hM(j,k,d.direction):0;return b.useEffect(()=>{if(f)return c.thumbs.add(f),()=>{c.thumbs.delete(f)}},[f,c.thumbs]),a.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${k}% + ${S}px)`},children:[a.jsx(Zm.ItemSlot,{scope:e.__scopeSlider,children:a.jsx($e.span,{role:"slider","aria-label":e["aria-label"]||w,"aria-valuemin":c.min,"aria-valuenow":N,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...l,ref:p,style:N===void 0?{display:"none"}:e.style,onFocus:Ue(e.onFocus,()=>{c.valueIndexToChangeRef.current=r})})}),g&&a.jsx(hS,{name:i??(c.name?c.name+(c.values.length>1?"[]":""):void 0),form:c.form,value:N},r)]})});fS.displayName=tp;var cM="RadioBubbleInput",hS=b.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const i=b.useRef(null),l=et(i,r),c=sg(t);return b.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&p){const g=new Event("input",{bubbles:!0});p.call(d,t),d.dispatchEvent(g)}},[c,t]),a.jsx($e.input,{style:{display:"none"},...n,ref:l,defaultValue:t})});hS.displayName=cM;function uM(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,l)=>i-l)}function mS(e,t,n){const l=100/(n-t)*(e-t);return Gu(l,[0,100])}function dM(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function fM(e,t){if(e.length===1)return 0;const n=e.map(i=>
380Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function hM(e,t,n){const r=e/2,l=ag([0,50],[0,r]);return(r-l(t)*n)*n}function mM(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function pM(e,t){if(t>0){const n=mM(e);return Math.min(...n)>=t}return!0}function ag(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function gM(e){return(String(e).split(".")[1]||"").length}function xM(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var pS=oS,yM=uS,vM=dS,bM=fS;const gS=b.forwardRef(({className:e,...t},n)=>a.jsxs(pS,{ref:n,className:Ye("relative flex w-full touch-none select-none items-center",e),...t,children:[a.jsx(yM,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:a.jsx(vM,{className:"absolute h-full bg-primary"})}),a.jsx(bM,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));gS.displayName=pS.displayName;const vd=b.createContext(null);function lg(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const cg=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class wM extends b.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 NM({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=b.useContext(cg);return b.useInsertionEffect(()=>{const{width:c,height:d,top:f,left:m}=i.current;if(t||!r.current||!c||!d)return;r.current.dataset.motionPopId=n;const p=document.createElement("style");return l&&(p.nonce=l),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
381          [data-motion-pop-id="${n}"] {
382            position: absolute !important;
383            width: ${c}px !important;
384            height: ${d}px !important;
385            top: ${f}px !important;
386            left: ${m}px !important;
387          }
388        `),()=>{document.head.removeChild(p)}},[t]),a.jsx(wM,{isPresent:t,childRef:r,sizeRef:i,children:b.cloneElement(e,{ref:r})})}const SM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:l,mode:c})=>{const d=lg(jM),f=b.useId(),m=b.useCallback(g=>{d.set(g,!0);for(const v of d.values())if(!v)return;r&&r()},[d,r]),p=b.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:m,register:g=>(d.set(g,!1),()=>d.delete(g))}),l?[Math.random(),m]:[n,m]);return b.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),b.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),c==="popLayout"&&(e=a.jsx(NM,{isPresent:n,children:e})),a.jsx(vd.Provider,{value:p,children:e})};function jM(){return new Map}const ug=b.createContext({}),wn=e=>e;let xS=wn;function dg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Vi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dr=e=>e*1e3,Lr=e=>e/1e3,uu=e=>e.key||"";function ub(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const fg=typeof window<"u",yS=fg?b.useLayoutEffect:b.useEffect,vS=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:l=!0,mode:c="sync"})=>{const d=b.useMemo(()=>ub(e),[e]),f=d.map(uu),m=b.useRef(!0),p=b.useRef(d),g=lg(()=>new Map),[v,N]=b.useState(d),[k,w]=b.useState(d);yS(()=>{m.current=!1,p.current=d;for(let E=0;E<k.length;E++){const P=uu(k[E]);f.includes(P)?g.delete(P):g.get(P)!==!0&&g.set(P,!1)}},[k,f.length,f.join("-")]);const j=[];if(d!==v){let E=[...d];for(let P=0;P<k.length;P++){const T=k[P],A=uu(T);f.includes(A)||(E.splice(P,0,T),j.push(T))}c==="wait"&&j.length&&(E=j),w(ub(E)),N(d);return}const{forceRender:S}=b.useContext(ug);return a.jsx(a.Fragment,{children:k.map(E=>{const P=uu(E),T=d===k||f.includes(P),A=()=>{if(g.has(P))g.set(P,!0);else return;let V=!0;g.forEach(z=>{z||(V=!1)}),V&&(S==null||S(),w(p.current),i&&i())};return a.jsx(SM,{isPresent:T,initial:!m.current||r?void 0:!1,custom:T?void 0:n,presenceAffectsLayout:l,mode:c,onExitComplete:T?void 0:A,children:E},P)})})},kM={useManualTiming:!1};function CM(e){let t=new Set,n=new Set,r=!1,i=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(f.schedule(m),e()),m(c)}const f={schedule:(m,p=!1,g=!1)=>{const N=g&&r?t:n;return p&&l.add(m),N.has(m)||N.add(m),m},cancel:m=>{n.delete(m),l.delete(m)},process:m=>{if(c=m,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,i&&(i=!1,f.process(m))}};return f}const du=["read","resolveKeyframes","update","preRender","render","postRender"],EM=40;function bS(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=du.reduce((S,E)=>(S[E]=CM(l),S),{}),{read:d,resolveKeyframes:f,update:m,preRender:p,render:g,postRender:v}=c,N=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,EM),1),i.timestamp=S,i.isProcessing=!0,d.process(i),f.process(i),m.process(i),p.process(i),g.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(N))},k=()=>{n=!0,r=!0,i.isProcessing||e(N)};return{schedule:du.reduce((S,E)=>{const P=c[E];return S[E]=(T,A=!1,V=!1)=>(n||k(),P.schedule(T,A,V)),S},{}),cancel:S=>{for(let E=0;E<du.length;E++)c[du[E]].cancel(S)},state:i,steps:c}}const{schedule:st,cancel:Rs,state:It,steps:Qh}=bS(typeof requestAnimationFrame<"u"?requestAnimationFrame:wn,!0),wS=b.createContext({strict:!1}),db={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"]},Bi={};for(const e in db)Bi[e]={isEnabled:t=>db[e].some(n=>!!t[n])};function PM(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}const TM=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 Qu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||TM.has(e)}let NS=e=>!Qu(e);function _M(e){e&&(NS=t=>t.startsWith("on")?!Qu(t):e(t))}try{_M(require("@emotion/is-prop-valid").default)}catch{}
vendor: 5,755 bytes, line 388
388function RM(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(NS(i)||n===!0&&Qu(i)||!t&&!Qu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function AM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const bd=b.createContext({});function bl(e){return typeof e=="string"||Array.isArray(e)}function wd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const hg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mg=["initial",...hg];function Nd(e){return wd(e.animate)||mg.some(t=>bl(e[t]))}function SS(e){return!!(Nd(e)||e.variants)}function OM(e,t){if(Nd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bl(n)?n:void 0,animate:bl(r)?r:void 0}}return e.inherit!==!1?t:{}}function MM(e){const{initial:t,animate:n}=OM(e,b.useContext(bd));return b.useMemo(()=>({initial:t,animate:n}),[fb(t),fb(n)])}function fb(e){return Array.isArray(e)?e.join(" "):e}const DM=Symbol.for("motionComponentSymbol");function mi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LM(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mi(n)&&(n.current=r))},[t])}const pg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),IM="framerAppearId",jS="data-"+pg(IM),{schedule:gg}=bS(queueMicrotask,!1),kS=b.createContext({});function FM(e,t,n,r,i){var l,c;const{visualElement:d}=b.useContext(bd),f=b.useContext(wS),m=b.useContext(vd),p=b.useContext(cg).reducedMotion,g=b.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:d,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p}));const v=g.current,N=b.useContext(kS);v&&!v.projection&&i&&(v.type==="html"||v.type==="svg")&&VM(g.current,n,i,N);const k=b.useRef(!1);b.useInsertionEffect(()=>{v&&k.current&&v.update(n,m)});const w=n[jS],j=b.useRef(!!w&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,w))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,w)));return yS(()=>{v&&(k.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),gg.render(v.render),j.current&&v.animationState&&v.animationState.animateChanges())}),b.useEffect(()=>{v&&(!j.current&&v.animationState&&v.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),j.current=!1))}),v}function VM(e,t,n,r){const{layoutId:i,layout:l,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:CS(e.parent)),e.projection.setOptions({layoutId:i,layout:l,alwaysMeasureLayout:!!c||d&&mi(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:m})}function CS(e){if(e)return e.options.allowProjection!==!1?e.projection:CS(e.parent)}function BM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var l,c;e&&PM(e);function d(m,p){let g;const v={...b.useContext(cg),...m,layoutId:UM(m)},{isStatic:N}=v,k=MM(m),w=r(m,N);if(!N&&fg){$M();const j=zM(v);g=j.MeasureLayout,k.visualElement=FM(i,w,v,t,j.ProjectionNode)}return a.jsxs(bd.Provider,{value:k,children:[g&&k.visualElement?a.jsx(g,{visualElement:k.visualElement,...v}):null,n(i,m,LM(w,k.visualElement,p),w,N,k.visualElement)]})}d.displayName=`motion.${typeof i=="string"?i:`create(${(c=(l=i.displayName)!==null&&l!==void 0?l:i.name)!==null&&c!==void 0?c:""})`}`;const f=b.forwardRef(d);return f[DM]=i,f}function UM({layoutId:e}){const t=b.useContext(ug).id;return t&&e!==void 0?t+"-"+e:e}function $M(e,t){b.useContext(wS).strict}function zM(e){const{drag:t,layout:n}=Bi;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 qM=["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 xg(e){return typeof e!="string"||e.includes("-")?!1:!!(qM.indexOf(e)>-1||/[A-Z]/u.test(e))}function ES(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const l in n)e.style.setProperty(l,n[l])}const PS=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 TS(e,t,n,r){ES(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(PS.has(i)?i:pg(i),t.attrs[i])}const Wt=e=>!!(e&&e.getVelocity),Yu={};function HM(e){Object.assign(Yu,e)}const Bl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Do=new Set(Bl);function _S(e,{layout:t,layoutId:n}){return Do.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Yu[e]||e==="opacity")}function yg(e,t,n){var r;const{style:i}=e,l={};for(const c in i)(Wt(i[c])||t.style&&Wt(t.style[c])||_S(c,e)||((r=n==null?void 0:n.getValue(c))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(l[c]=i[c]);return l}function RS(e,t,n){const r=yg(e,t,n);for(const i in e)if(Wt(e[i])||Wt(t[i])){const l=Bl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[l]=e[i]}return r}function hb(e){const t=[{},{}];
vendor: 4,296 bytes, line 388
388return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function vg(e,t,n,r){if(typeof t=="function"){const[i,l]=hb(r);t=t(n!==void 0?n:e.custom,i,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,l]=hb(r);t=t(n!==void 0?n:e.custom,i,l)}return t}const np=e=>Array.isArray(e),WM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KM=e=>np(e)?e[e.length-1]||0:e;function Ru(e){const t=Wt(e)?e.get():e;return WM(t)?t.toValue():t}function GM({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,l){const c={latestValues:QM(r,i,l,e),renderState:t()};return n&&(c.mount=d=>n(r,d,c)),c}const AS=e=>(t,n)=>{const r=b.useContext(bd),i=b.useContext(vd),l=()=>GM(e,t,r,i);return n?l():lg(l)};function QM(e,t,n,r){const i={},l=r(e,{});for(const v in l)i[v]=Ru(l[v]);let{initial:c,animate:d}=e;const f=Nd(e),m=SS(e);t&&m&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let p=n?n.initial===!1:!1;p=p||c===!1;const g=p?d:c;if(g&&typeof g!="boolean"&&!wd(g)){const v=Array.isArray(g)?g:[g];for(let N=0;N<v.length;N++){const k=vg(e,v[N]);if(k){const{transitionEnd:w,transition:j,...S}=k;for(const E in S){let P=S[E];if(Array.isArray(P)){const T=p?P.length-1:0;P=P[T]}P!==null&&(i[E]=P)}for(const E in w)i[E]=w[E]}}}return i}const bg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),OS=()=>({...bg(),attrs:{}}),MS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vr=(e,t,n)=>n>t?t:n<e?e:n,Zi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wl={...Zi,transform:e=>Vr(0,1,e)},fu={...Zi,default:1},Ul=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hs=Ul("deg"),hr=Ul("%"),Te=Ul("px"),YM=Ul("vh"),XM=Ul("vw"),mb={...hr,parse:e=>hr.parse(e)/100,transform:e=>hr.transform(e*100)},JM={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},ZM={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:fu,scaleX:fu,scaleY:fu,scaleZ:fu,skew:hs,skewX:hs,skewY:hs,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:wl,originX:mb,originY:mb,originZ:Te},pb={...Zi,transform:Math.round},wg={...JM,...ZM,zIndex:pb,size:Te,fillOpacity:wl,strokeOpacity:wl,numOctaves:pb},e3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t3=Bl.length;function n3(e,t,n){let r="",i=!0;for(let l=0;l<t3;l++){const c=Bl[l],d=e[c];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(c.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const m=MS(d,wg[c]);if(!f){i=!1;const p=e3[c]||c;r+=`${p}(${m}) `}n&&(t[c]=m)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}const DS=e=>t=>typeof t=="string"&&t.startsWith(e),LS=DS("--"),r3=DS("var(--"),Ng=e=>r3(e)?s3.test(e.split("/*")[0].trim()):!1,s3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sg(e,t,n){const{style:r,vars:i,transformOrigin:l}=e;let c=!1,d=!1;for(const f in t){const m=t[f];if(Do.has(f)){c=!0;continue}else if(LS(f)){i[f]=m;continue}else{const p=MS(m,wg[f]);f.startsWith("origin")?(d=!0,l[f]=p):r[f]=p}}if(t.transform||(c||n?r.transform=n3(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:m="50%",originZ:p=0}=l;r.transformOrigin=`${f} ${m} ${p}`}}function gb(e,t,n){return typeof e=="string"?e:Te.transform(t+n*e)}function o3(e,t,n){const r=gb(t,e.x,e.width),i=gb(n,e.y,e.height);return`${r} ${i}`}const i3={offset:"stroke-dashoffset",array:"stroke-dasharray"},a3={offset:"strokeDashoffset",array:"strokeDasharray"};function l3(e,t,n=1,r=0,i=!0){e.pathLength=1;const l=i?i3:a3;e[l.offset]=Te.transform(-r);const c=Te.transform(t),d=Te.transform(n);e[l.array]=`${c} ${d}`}function jg(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:l,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m}
vendor: 23,185 bytes, line 388
388,p,g){if(Sg(e,m,g),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:N,dimensions:k}=e;v.transform&&(k&&(N.transform=v.transform),delete v.transform),k&&(i!==void 0||l!==void 0||N.transform)&&(N.transformOrigin=o3(k,i!==void 0?i:.5,l!==void 0?l:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),c!==void 0&&l3(v,c,d,f,!1)}const kg=e=>typeof e=="string"&&e.toLowerCase()==="svg",c3={useVisualState:AS({scrapeMotionValuesFromProps:RS,createRenderState:OS,onMount:(e,t,{renderState:n,latestValues:r})=>{st.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),st.render(()=>{jg(n,r,kg(t.tagName),e.transformTemplate),TS(t,n)})}})},u3={useVisualState:AS({scrapeMotionValuesFromProps:yg,createRenderState:bg})};function IS(e,t,n){for(const r in t)!Wt(t[r])&&!_S(r,n)&&(e[r]=t[r])}function d3({transformTemplate:e},t){return b.useMemo(()=>{const n=bg();return Sg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function f3(e,t){const n=e.style||{},r={};return IS(r,n,e),Object.assign(r,d3(e,t)),r}function h3(e,t){const n={},r=f3(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function m3(e,t,n,r){const i=b.useMemo(()=>{const l=OS();return jg(l,t,kg(r),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};IS(l,e.style,e),i.style={...l,...i.style}}return i}function p3(e=!1){return(n,r,i,{latestValues:l},c)=>{const f=(xg(n)?m3:h3)(r,l,c,n),m=RM(r,typeof n=="string",e),p=n!==b.Fragment?{...m,...f,ref:i}:{},{children:g}=r,v=b.useMemo(()=>Wt(g)?g.get():g,[g]);return b.createElement(n,{...p,children:v})}}function g3(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const c={...xg(r)?c3:u3,preloadedFeatures:e,useRender:p3(i),createVisualElement:t,Component:r};return BM(c)}}function FS(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 Sd(e,t,n){const r=e.getProps();return vg(r,t,n!==void 0?n:r.custom,e)}const x3=dg(()=>window.ScrollTimeline!==void 0);class y3{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(i=>{if(x3()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,l)=>{i&&i(),this.animations[l].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 v3 extends y3{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Cg(e,t){return e?e[t]||e.default||e:void 0}const rp=2e4;function VS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rp;)t+=n,r=e.next(t);return t>=rp?1/0:t}function Eg(e){return typeof e=="function"}function xb(e,t){e.timeline=t,e.onfinish=null}const Pg=e=>Array.isArray(e)&&typeof e[0]=="number",b3={linearEasing:void 0};function w3(e,t){const n=dg(e);return()=>{var r;return(r=b3[t])!==null&&r!==void 0?r:n()}}const Xu=w3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),BS=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let l=0;l<i;l++)r+=e(Vi(0,i-1,l))+", ";return`linear(${r.substring(0,r.length-2)})`};function US(e){return!!(typeof e=="function"&&Xu()||!e||typeof e=="string"&&(e in sp||Xu())||Pg(e)||Array.isArray(e)&&e.every(US))}const el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function $S(e,t){if(e)return typeof e=="function"&&Xu()?BS(e,t):Pg(e)?el(e):Array.isArray(e)?e.map(n=>$S(n,t)||sp.easeOut):sp[e]}const zn={x:!1,y:!1};function zS(){return zn.x||zn.y}function N3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const l=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}function qS(e,t){const n=N3(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function yb(e){return t=>{t.pointerType==="touch"||zS()||e(t)}}function S3(e,t,n={}){const[r,i,l]=qS(e,n),c=yb(d=>{const{target:f}=d,m=t(d);if(typeof m!="function"||!f)return;const p=yb(g=>{m(g),f.removeEventListener("pointerleave",p)});f.addEventListener("pointerleave",p,i)});return r.forEach(d=>{d.addEventListener("pointerenter",c,i)}),l}const HS=(e,t)=>t?e===t?!0:HS(e,t.parentElement):!1,Tg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,j3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function k3(e){return j3.has(e.tagName)||e.tabIndex!==-1}const tl=new WeakSet;function vb(e){return t=>{t.key==="Enter"&&e(t)}}function Yh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const C3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vb(()=>{if(tl.has(n))return;Yh(n,"down");const i=vb(()=>{Yh(n,"up")}),l=()=>Yh(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bb(e){return Tg(e)&&!zS()}function E3(e,t,n={}){const[r,i,l]=qS(e,n),c=d=>{const f=d.currentTarget;if(!bb(d)||tl.has(f))return;tl.add(f);const m=t(d),p=(N,k)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!bb(N)||!tl.has(f))&&(tl.delete(f),typeof m=="function"&&m(N,{success:k}))},g=N=>{p(N,n.useGlobalTarget||HS(f,N.target))},v=N=>{p(N,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",v,i)};return r.forEach(d=>{!k3(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,i),d.addEventListener("focus",m=>C3(m,i),i)}),l}function P3(e){return e==="x"||e==="y"?zn[e]?null:(zn[e]=!0,()=>{zn[e]=!1}):zn.x||zn.y?null:(zn.x=zn.y=!0,()=>{zn.x=zn.y=!1})}let Au;function T3(){Au=void 0}const mr={now:()=>(Au===void 0&&mr.set(It.isProcessing||kM.useManualTiming?It.timestamp:performance.now()),Au),set:e=>{Au=e,queueMicrotask(T3)}};function _g(e,t){e.indexOf(t)===-1&&e.push(t)}function Rg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ag{constructor(){this.subscriptions=[]}add(t){return _g(this.subscriptions,t),()=>Rg(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let l=0;l<i;l++){const c=this.subscriptions[l];c&&c(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function WS(e,t){return t?e*(1e3/t):0}const wb=30,_3=e=>!isNaN(parseFloat(e));class R3{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const l=mr.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=mr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_3(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 Ag);const r=this.events[t].add(n);return t==="change"?()=>{r(),st.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=mr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wb);return WS(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 Nl(e,t){return new R3(e,t)}function A3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nl(n))}function O3(e,t){const n=Sd(e,t);let{transitionEnd:r={},transition:i={},...l}=n||{};l={...l,...r};for(const c in l){const d=KM(l[c]);A3(e,c,d)}}function M3(e){return!!(Wt(e)&&e.add)}function op(e,t){const n=e.getValue("willChange");if(M3(n))return n.add(t)}function KS(e){return e.props[jS]}const GS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,D3=1e-7,L3=12;function I3(e,t,n,r,i){let l,c,d=0;do c=t+(n-t)/2,l=GS(c,r,i)-e,l>0?n=c:t=c;while(Math.abs(l)>D3&&++d<L3);return c}function $l(e,t,n,r){if(e===t&&n===r)return wn;const i=l=>I3(l,0,1,e,n);return l=>l===0||l===1?l:GS(i(l),t,r)}const QS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,YS=e=>t=>1-e(1-t),XS=$l(.33,1.53,.69,.99),Og=YS(XS),JS=QS(Og),ZS=e=>(e*=2)<1?.5*Og(e):.5*(2-Math.pow(2,-10*(e-1))),Mg=e=>1-Math.sin(Math.acos(e)),ej=YS(Mg),tj=QS(Mg),nj=e=>/^0[^.\s]+$/u.test(e);function F3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nj(e):!0}const rj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),V3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function B3(e){const t=V3.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function sj(e,t,n=1){const[r,i]=B3(e);if(!r)return;const l=window.getComputedStyle(t).getPropertyValue(r);if(l){const c=l.trim();return rj(c)?parseFloat(c):c}return Ng(i)?sj(i,t,n+1):i}const U3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Nb=e=>e===Zi||e===Te,Sb=(e,t)=>parseFloat(e.split(", ")[t]),jb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Sb(i[1],t);{const l=r.match(/^matrix\((.+)\)$/u);return l?Sb(l[1],e):0}},$3=new Set(["x","y","z"]),z3=Bl.filter(e=>!$3.has(e));function q3(e){const t=[];return z3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ui={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:jb(4,13),y:jb(5,14)};Ui.translateX=Ui.x;Ui.translateY=Ui.y;const oj=e=>t=>t.test(e),H3={test:e=>e==="auto",parse:e=>e},ij=[Zi,Te,hr,hs,XM,YM,H3],kb=e=>ij.find(oj(e)),yo=new Set;let ip=!1,ap=!1;function aj(){if(ap){const e=Array.from(yo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=q3(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([l,c])=>{var d;(d=r.getValue(l))===null||d===void 0||d.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ap=!1,ip=!1,yo.forEach(e=>e.complete()),yo.clear()}function lj(){yo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ap=!0)})}function W3(){lj(),aj()}class Dg{constructor(t,n,r,i,l,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=i,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yo.add(this),ip||(ip=!0,st.read(lj),st.resolveKeyframes(aj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let l=0;l<t.length;l++)if(t[l]===null)if(l===0){const c=i==null?void 0:i.get(),d=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),i&&c===void 0&&i.set(t[0])}else t[l]=t[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ll=e=>Math.round(e*1e5)/1e5,Lg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function K3(e){return e==null}const G3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ig=(e,t)=>n=>!!(typeof n=="string"&&G3.test(n)&&n.startsWith(e)||t&&!K3(n)&&Object.prototype.hasOwnProperty.call(n,t)),cj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,l,c,d]=r.match(Lg);return{[e]:parseFloat(i),[t]:parseFloat(l),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},Q3=e=>Vr(0,255,e),Xh={...Zi,transform:e=>Math.round(Q3(e))},oo={test:Ig("rgb","red"),parse:cj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xh.transform(e)+", "+Xh.transform(t)+", "+Xh.transform(n)+", "+ll(wl.transform(r))+")"};function Y3(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const lp={test:Ig("#"),parse:Y3,transform:oo.transform},pi={test:Ig("hsl","hue"),parse:cj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+hr.transform(ll(t))+", "+hr.transform(ll(n))+", "+ll(wl.transform(r))+")"},Ht={test:e=>oo.test(e)||lp.test(e)||pi.test(e),parse:e=>oo.test(e)?oo.parse(e):pi.test(e)?pi.parse(e):lp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oo.transform(e):pi.transform(e)},X3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function J3(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(X3))===null||n===void 0?void 0:n.length)||0)>0}const uj="number",dj="color",Z3="var",eD="var(",Cb="${}",tD=/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 Sl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let l=0;const d=t.replace(tD,f=>(Ht.test(f)?(r.color.push(l),i.push(dj),n.push(Ht.parse(f))):f.startsWith(eD)?(r.var.push(l),i.push(Z3),n.push(f)):(r.number.push(l),i.push(uj),n.push(parseFloat(f))),++l,Cb)).split(Cb);return{values:n,split:d,indexes:r,types:i}}function fj(e){return Sl(e).values}function hj(e){const{split:t,types:n}=Sl(e),r=t.length;return i=>{let l="";for(let c=0;c<r;c++)if(l+=t[c],i[c]!==void 0){const d=n[c];d===uj?l+=ll(i[c]):d===dj?l+=Ht.transform(i[c]):l+=i[c]}return l}}const nD=e=>typeof e=="number"?0:e;function rD(e){const t=fj(e);return hj(e)(t.map(nD))}const As={test:J3,parse:fj,createTransformer:hj,getAnimatableNone:rD},sD=new Set(["brightness","contrast","saturate","opacity"]);function oD(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lg)||[];if(!r)return e;const i=n.replace(r,"");let l=sD.has(t)?1:0;return r!==n&&(l*=100),t+"("+l+i+")"}const iD=/\b([a-z-]*)\(.*?\)/gu,cp={...As,getAnimatableNone:e=>{const t=e.match(iD);return t?t.map(oD).join(" "):e}},aD={...wg,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:cp,WebkitFilter:cp},Fg=e=>aD[e];function mj(e,t){let n=Fg(e);return n!==cp&&(n=As),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lD=new Set(["auto","none","0"]);function cD(e,t,n){let r=0,i;for(;r<e.length&&!i;){const l=e[r];typeof l=="string"&&!lD.has(l)&&Sl(l).values.length&&(i=e[r]),r++}if(i&&n)for(const l of t)e[l]=mj(n,i)}class pj extends Dg{constructor(t,n,r,i,l){super(t,n,r,i,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let m=t[f];if(typeof m=="string"&&(m=m.trim(),Ng(m))){const p=sj(m,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!U3.has(r)||t.length!==2)return;const[i,l]=t,c=kb(i),d=kb(l);if(c!==d)if(Nb(c)&&Nb(d))for(let f=0;f<t.length;f++){const m=t[f];typeof m=="string"&&(t[f]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)F3(t[i])&&r.push(i);r.length&&cD(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=Ui[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const l=n.getValue(r);l&&l.jump(this.measuredOrigin,!1);const c=i.length-1,d=i[c];i[c]=Ui[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(([f,m])=>{n.getValue(f).set(m)}),this.resolveNoneKeyframes()}}const Eb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(As.test(e)||e==="0")&&!e.startsWith("url("));function uD(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 dD(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=Eb(i,t),d=Eb(l,t);return!c||!d?!1:uD(e)||(n==="spring"||Eg(n))&&r}const fD=e=>e!==null;function jd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(fD),l=t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const hD=40;class gj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:l=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=mr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:l,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>hD?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&W3(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=mr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:l,delay:c,onComplete:d,onUpdate:f,isGenerator:m}=this.options;if(!m&&!dD(t,r,i,l))if(c)this.options.duration=0;else{f==null||f(jd(t,this.options,n)),d==null||d(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},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 ct=(e,t,n)=>e+(t-e)*n;function Jh(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 mD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,l=0,c=0;if(!t)i=l=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;i=Jh(f,d,e+1/3),l=Jh(f,d,e),c=Jh(f,d,e-1/3)}return{red:Math.round(i*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:r}}function Ju(e,t){return n=>n>0?t:e}const Zh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pD=[lp,oo,pi],gD=e=>pD.find(t=>t.test(e));function Pb(e){const t=gD(e);if(!t)return!1;let n=t.parse(e);return t===pi&&(n=mD(n)),n}const Tb=(e,t)=>{const n=Pb(e),r=Pb(t);if(!n||!r)return Ju(e,t);const i={...n};return l=>(i.red=Zh(n.red,r.red,l),i.green=Zh(n.green,r.green,l),i.blue=Zh(n.blue,r.blue,l),i.alpha=ct(n.alpha,r.alpha,l),oo.transform(i))},xD=(e,t)=>n=>t(e(n)),zl=(...e)=>e.reduce(xD),up=new Set(["none","hidden"]);function yD(e,t){return up.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vD(e,t){return n=>ct(e,t,n)}function Vg(e){return typeof e=="number"?vD:typeof e=="string"?Ng(e)?Ju:Ht.test(e)?Tb:ND:Array.isArray(e)?xj:typeof e=="object"?Ht.test(e)?Tb:bD:Ju}function xj(e,t){const n=[...e],r=n.length,i=e.map((l,c)=>Vg(l)(l,t[c]));return l=>{for(let c=0;c<r;c++)n[c]=i[c](l);return n}}function bD(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Vg(e[i])(e[i],t[i]));return i=>{for(const l in r)n[l]=r[l](i);return n}}function wD(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const c=t.types[l],d=e.indexes[c][i[c]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[l]=f,i[c]++}return r}const ND=(e,t)=>{const n=As.createTransformer(t),r=Sl(e),i=Sl(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?up.has(e)&&!i.values.length||up.has(t)&&!r.values.length?yD(e,t):zl(xj(wD(r,i),i.values),n):Ju(e,t)};function yj(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Vg(e)(e,t)}const SD=5;
vendor: 5,338 bytes, line 388
388function vj(e,t,n){const r=Math.max(t-SD,0);return WS(n-e(r),t-r)}const ft={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},em=.001;function jD({duration:e=ft.duration,bounce:t=ft.bounce,velocity:n=ft.velocity,mass:r=ft.mass}){let i,l,c=1-t;c=Vr(ft.minDamping,ft.maxDamping,c),e=Vr(ft.minDuration,ft.maxDuration,Lr(e)),c<1?(i=m=>{const p=m*c,g=p*e,v=p-n,N=dp(m,c),k=Math.exp(-g);return em-v/N*k},l=m=>{const g=m*c*e,v=g*n+n,N=Math.pow(c,2)*Math.pow(m,2)*e,k=Math.exp(-g),w=dp(Math.pow(m,2),c);return(-i(m)+em>0?-1:1)*((v-N)*k)/w}):(i=m=>{const p=Math.exp(-m*e),g=(m-n)*e+1;return-em+p*g},l=m=>{const p=Math.exp(-m*e),g=(n-m)*(e*e);return p*g});const d=5/e,f=CD(i,l,d);if(e=Dr(e),isNaN(f))return{stiffness:ft.stiffness,damping:ft.damping,duration:e};{const m=Math.pow(f,2)*r;return{stiffness:m,damping:c*2*Math.sqrt(r*m),duration:e}}}const kD=12;function CD(e,t,n){let r=n;for(let i=1;i<kD;i++)r=r-e(r)/t(r);return r}function dp(e,t){return e*Math.sqrt(1-t*t)}const ED=["duration","bounce"],PD=["stiffness","damping","mass"];function _b(e,t){return t.some(n=>e[n]!==void 0)}function TD(e){let t={velocity:ft.velocity,stiffness:ft.stiffness,damping:ft.damping,mass:ft.mass,isResolvedFromDuration:!1,...e};if(!_b(e,PD)&&_b(e,ED))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,l=2*Vr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ft.mass,stiffness:i,damping:l}}else{const n=jD(e);t={...t,...n,mass:ft.mass},t.isResolvedFromDuration=!0}return t}function bj(e=ft.visualDuration,t=ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:m,mass:p,duration:g,velocity:v,isResolvedFromDuration:N}=TD({...n,velocity:-Lr(n.velocity||0)}),k=v||0,w=m/(2*Math.sqrt(f*p)),j=c-l,S=Lr(Math.sqrt(f/p)),E=Math.abs(j)<5;r||(r=E?ft.restSpeed.granular:ft.restSpeed.default),i||(i=E?ft.restDelta.granular:ft.restDelta.default);let P;if(w<1){const A=dp(S,w);P=V=>{const z=Math.exp(-w*S*V);return c-z*((k+w*S*j)/A*Math.sin(A*V)+j*Math.cos(A*V))}}else if(w===1)P=A=>c-Math.exp(-S*A)*(j+(k+S*j)*A);else{const A=S*Math.sqrt(w*w-1);P=V=>{const z=Math.exp(-w*S*V),R=Math.min(A*V,300);return c-z*((k+w*S*j)*Math.sinh(R)+A*j*Math.cosh(R))/A}}const T={calculatedDuration:N&&g||null,next:A=>{const V=P(A);if(N)d.done=A>=g;else{let z=0;w<1&&(z=A===0?Dr(k):vj(P,A,V));const R=Math.abs(z)<=r,K=Math.abs(c-V)<=i;d.done=R&&K}return d.value=d.done?c:V,d},toString:()=>{const A=Math.min(VS(T),rp),V=BS(z=>T.next(A*z).value,A,30);return A+"ms "+V}};return T}function Rb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:f,restDelta:m=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},N=R=>d!==void 0&&R<d||f!==void 0&&R>f,k=R=>d===void 0?f:f===void 0||Math.abs(d-R)<Math.abs(f-R)?d:f;let w=n*t;const j=g+w,S=c===void 0?j:c(j);S!==j&&(w=S-g);const E=R=>-w*Math.exp(-R/r),P=R=>S+E(R),T=R=>{const K=E(R),U=P(R);v.done=Math.abs(K)<=m,v.value=v.done?S:U};let A,V;const z=R=>{N(v.value)&&(A=R,V=bj({keyframes:[v.value,k(v.value)],velocity:vj(P,R,v.value),damping:i,stiffness:l,restDelta:m,restSpeed:p}))};return z(0),{calculatedDuration:null,next:R=>{let K=!1;return!V&&A===void 0&&(K=!0,T(R),z(R)),A!==void 0&&R>=A?V.next(R-A):(!K&&T(R),v)}}}const _D=$l(.42,0,1,1),RD=$l(0,0,.58,1),wj=$l(.42,0,.58,1),AD=e=>Array.isArray(e)&&typeof e[0]!="number",OD={linear:wn,easeIn:_D,easeInOut:wj,easeOut:RD,circIn:Mg,circInOut:tj,circOut:ej,backIn:Og,backInOut:JS,backOut:XS,anticipate:ZS},Ab=e=>{if(Pg(e)){xS(e.length===4);const[t,n,r,i]=e;return $l(t,n,r,i)}else if(typeof e=="string")return OD[e];return e};function MD(e,t,n){const r=[],i=n||yj,l=e.length-1;for(let c=0;c<l;c++){let d=i(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||wn:t;d=zl(f,d)}r.push(d)}return r}function DD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const l=e.length;if(xS(l===t.length),l===1)return()=>t[0];if(l===2&&e[0]===e[1])return()=>t[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=MD(t,r,i),d=c.length,f=m=>{let p=0;if(d>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const g=Vi(e[p],e[p+1],m);return c[p](g)};return n?m=>f(Vr(e[0],e[l-1],m)):f}function LD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Vi(0,t,r);e.push(ct(n,1,i))}}function ID(e){const t=[0];return LD(t,e.length-1),t}function FD(e,t){return e.map(n=>n*t)}function VD(e,t){return e.map(()=>t||wj).splice(0,e.length-1)}function Zu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=AD(r)?r.map(Ab):Ab(r),l={done:!1,value:t[0]},c=FD(n&&n.length===t.length?n:ID(t),e),d=DD(c,t,{ease:Array.isArray(i)?i:VD(t,i)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const BD=e=>{const t=({timestamp:n})=>e(n);return{start:()=>st.update(t,!0),stop:()=>Rs(t),now:()=>It.isProcessing?It.timestamp:mr.now()}},UD={decay:Rb,inertia:Rb,tween:Zu,keyframes:Zu,spring:bj},$D=e=>e/100;class Bg extends gj{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=()=>
vendor: 71,048 bytes, line 388
388{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:l}=this.options,c=(i==null?void 0:i.KeyframeResolver)||Dg,d=(f,m)=>this.onKeyframesResolved(f,m);this.resolver=new c(l,d,n,r,i),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:i=0,repeatType:l,velocity:c=0}=this.options,d=Eg(n)?n:UD[n]||Zu;let f,m;d!==Zu&&typeof t[0]!="number"&&(f=zl($D,yj(t[0],t[1])),t=[0,100]);const p=d({...this.options,keyframes:t});l==="mirror"&&(m=d({...this.options,keyframes:[...t].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=VS(p));const{calculatedDuration:g}=p,v=g+i,N=v*(r+1)-i;return{generator:p,mirroredGenerator:m,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:v,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:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:i,generator:l,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:m,totalDuration:p,resolvedDuration:g}=r;if(this.startTime===null)return l.next(0);const{delay:v,repeat:N,repeatType:k,repeatDelay:w,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/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 S=this.currentTime-v*(this.speed>=0?1:-1),E=this.speed>=0?S<0:S>p;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let P=this.currentTime,T=l;if(N){const R=Math.min(this.currentTime,p)/g;let K=Math.floor(R),U=R%1;!U&&R>=1&&(U=1),U===1&&K--,K=Math.min(K,N+1),!!(K%2)&&(k==="reverse"?(U=1-U,w&&(U-=w/g)):k==="mirror"&&(T=c)),P=Vr(0,1,U)*g}const A=E?{done:!1,value:f[0]}:T.next(P);d&&(A.value=d(A.value));let{done:V}=A;!E&&m!==null&&(V=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return z&&i!==void 0&&(A.value=jd(f,this.options,i)),j&&j(A.value),z&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Lr(t.calculatedDuration):0}get time(){return Lr(this.currentTime)}set time(t){t=Dr(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=Lr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=BD,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):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 zD=new Set(["opacity","clipPath","filter","transform"]);function qD(e,t,n,{delay:r=0,duration:i=300,repeat:l=0,repeatType:c="loop",ease:d="easeInOut",times:f}={}){const m={[t]:n};f&&(m.offset=f);const p=$S(d,i);return Array.isArray(p)&&(m.easing=p),e.animate(m,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const HD=dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ed=10,WD=2e4;function KD(e){return Eg(e.type)||e.type==="spring"||!US(e.ease)}function GD(e,t){const n=new Bg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let l=0;for(;!r.done&&l<WD;)r=n.sample(l),i.push(r.value),l+=ed;return{times:void 0,keyframes:i,duration:l-ed,ease:"linear"}}const Nj={anticipate:ZS,backInOut:JS,circInOut:tj};function QD(e){return e in Nj}class Ob extends gj{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:l}=this.options;this.resolver=new pj(l,(c,d)=>this.onKeyframesResolved(c,d),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:l,ease:c,type:d,motionValue:f,name:m,startTime:p}=this.options;if(!(!((r=f.owner)===null||r===void 0)&&r.current))return!1;if(typeof c=="string"&&Xu()&&QD(c)&&(c=Nj[c]),KD(this.options)){const{onComplete:v,onUpdate:N,motionValue:k,element:w,...j}=this.options,S=GD(t,j);t=S.keyframes,t.length===1&&(t[1]=t[0]),i=S.duration,l=S.times,c=S.ease,d="keyframes"}const g=qD(f.owner.current,m,t,{...this.options,duration:i,times:l,ease:c});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(xb(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:v}=this.options;f.set(jd(t,this.options,n)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:l,type:d,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Lr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Lr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Dr(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 wn;const{animation:r}=n;xb(r,t)}return wn}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:i,type:l,ease:c,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:p,onComplete:g,element:v,...N}=this.options,k=new Bg({...N,keyframes:r,duration:i,type:l,ease:c,times:d,isGenerator:!0}),w=Dr(this.time);m.setWithVelocity(k.sample(w-ed).value,k.sample(w).value,ed)}const{onStop:f}=this.options;f&&f(),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:i,repeatType:l,damping:c,type:d}=t;return HD()&&r&&zD.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&l!=="mirror"&&c!==0&&d!=="inertia"}}const YD={type:"spring",stiffness:500,damping:25,restSpeed:10},XD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JD={type:"keyframes",duration:.8},ZD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e6=(e,{keyframes:t})=>t.length>2?JD:Do.has(e)?e.startsWith("scale")?XD(t[1]):YD:ZD;function t6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:l,repeatType:c,repeatDelay:d,from:f,elapsed:m,...p}){return!!Object.keys(p).length}const Ug=(e,t,n,r={},i,l)=>c=>{const d=Cg(r,e)||{},f=d.delay||r.delay||0;let{elapsed:m=0}=r;m=m-Dr(f);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-m,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:i};t6(d)||(p={...p,...e6(e,p)}),p.duration&&(p.duration=Dr(p.duration)),p.repeatDelay&&(p.repeatDelay=Dr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(g=!0)),g&&!l&&t.get()!==void 0){const v=jd(p.keyframes,d);if(v!==void 0)return st.update(()=>{p.onUpdate(v),p.onComplete()}),new v3([])}return!l&&Ob.supports(p)?new Ob(p):new Bg(p)};function n6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Sj(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var l;let{transition:c=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(c=r);const m=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const g in f){const v=e.getValue(g,(l=e.latestValues[g])!==null&&l!==void 0?l:null),N=f[g];if(N===void 0||p&&n6(p,g))continue;const k={delay:n,...Cg(c||{},g)};let w=!1;if(window.MotionHandoffAnimation){const S=KS(e);if(S){const E=window.MotionHandoffAnimation(S,g,st);E!==null&&(k.startTime=E,w=!0)}}op(e,g),v.start(Ug(g,v,N,e.shouldReduceMotion&&Do.has(g)?{type:!1}:k,e,w));const j=v.animation;j&&m.push(j)}return d&&Promise.all(m).then(()=>{st.update(()=>{d&&O3(e,d)})}),m}function fp(e,t,n={}){var r;const i=Sd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(l=n.transitionOverride);const c=i?()=>Promise.all(Sj(e,i,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=l;return r6(e,t,p+m,g,v,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[m,p]=f==="beforeChildren"?[c,d]:[d,c];return m().then(()=>p())}else return Promise.all([c(),d(n.delay)])}function r6(e,t,n=0,r=0,i=1,l){const c=[],d=(e.variantChildren.size-1)*r,f=i===1?(m=0)=>m*r:(m=0)=>d-m*r;return Array.from(e.variantChildren).sort(s6).forEach((m,p)=>{m.notify("AnimationStart",t),c.push(fp(m,t,{...l,delay:n+f(p)}).then(()=>m.notify("AnimationComplete",t)))}),Promise.all(c)}function s6(e,t){return e.sortNodePosition(t)}function o6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(l=>fp(e,l,n));r=Promise.all(i)}else if(typeof t=="string")r=fp(e,t,n);else{const i=typeof t=="function"?Sd(e,t,n.custom):t;r=Promise.all(Sj(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const i6=mg.length;function jj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<i6;n++){const r=mg[n],i=e.props[r];(bl(i)||i===!1)&&(t[r]=i)}return t}const a6=[...hg].reverse(),l6=hg.length;function c6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>o6(e,n,r)))}function u6(e){let t=c6(e),n=Mb(),r=!0;const i=f=>(m,p)=>{var g;const v=Sd(e,p,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:N,transitionEnd:k,...w}=v;m={...m,...w,...k}}return m};function l(f){t=f(e)}function c(f){const{props:m}=e,p=jj(e.parent)||{},g=[],v=new Set;let N={},k=1/0;for(let j=0;j<l6;j++){const S=a6[j],E=n[S],P=m[S]!==void 0?m[S]:p[S],T=bl(P),A=S===f?E.isActive:null;A===!1&&(k=j);let V=P===p[S]&&P!==m[S]&&T;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),E.protectedKeys={...N},!E.isActive&&A===null||!P&&!E.prevProp||wd(P)||typeof P=="boolean")continue;const z=d6(E.prevProp,P);let R=z||S===f&&E.isActive&&!V&&T||j>k&&T,K=!1;const U=Array.isArray(P)?P:[P];let q=U.reduce(i(S),{});A===!1&&(q={});const{prevResolvedValues:H={}}=E,Z={...H,...q},ce=te=>{R=!0,v.has(te)&&(K=!0,v.delete(te)),E.needsAnimating[te]=!0;const F=e.getValue(te);F&&(F.liveStyle=!1)};for(const te in Z){const F=q[te],se=H[te];if(N.hasOwnProperty(te))continue;let ne=!1;np(F)&&np(se)?ne=!FS(F,se):ne=F!==se,ne?F!=null?ce(te):v.add(te):F!==void 0&&v.has(te)?ce(te):E.protectedKeys[te]=!0}E.prevProp=P,E.prevResolvedValues=q,E.isActive&&(N={...N,...q}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(V&&z)||K)&&g.push(...U.map(te=>({animation:te,options:{type:S}})))}if(v.size){const j={};v.forEach(S=>{const E=e.getBaseTarget(S),P=e.getValue(S);P&&(P.liveStyle=!0),j[S]=E??null}),g.push({animation:j})}let w=!!g.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(g):Promise.resolve()}function d(f,m){var p;if(n[f].isActive===m)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(v=>{var N;return(N=v.animationState)===null||N===void 0?void 0:N.setActive(f,m)}),n[f].isActive=m;const g=c(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:c,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Mb(),r=!0}}}function d6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!FS(t,e):!1}function Zs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mb(){return{animate:Zs(!0),whileInView:Zs(),whileHover:Zs(),whileTap:Zs(),whileDrag:Zs(),whileFocus:Zs(),exit:Zs()}}class Ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}class f6 extends Ls{constructor(t){super(t),t.animationState||(t.animationState=u6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wd(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 h6=0;class m6 extends Ls{constructor(){super(...arguments),this.id=h6++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const p6={animation:{Feature:f6},exit:{Feature:m6}};function jl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ql(e){return{point:{x:e.pageX,y:e.pageY}}}const g6=e=>t=>Tg(t)&&e(t,ql(t));function cl(e,t,n,r){return jl(e,t,g6(n),r)}const Db=(e,t)=>Math.abs(e-t);function x6(e,t){const n=Db(e.x,t.x),r=Db(e.y,t.y);return Math.sqrt(n**2+r**2)}class kj{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:l=!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 g=nm(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,N=x6(g.offset,{x:0,y:0})>=3;if(!v&&!N)return;const{point:k}=g,{timestamp:w}=It;this.history.push({...k,timestamp:w});const{onStart:j,onMove:S}=this.handlers;v||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=tm(v,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:N,onSessionEnd:k,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=nm(g.type==="pointercancel"?this.lastMoveEventInfo:tm(v,this.transformPagePoint),this.history);this.startEvent&&N&&N(g,j),k&&k(g,j)},!Tg(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const c=ql(t),d=tm(c,this.transformPagePoint),{point:f}=d,{timestamp:m}=It;this.history=[{...f,timestamp:m}];const{onSessionStart:p}=n;p&&p(t,nm(d,this.history)),this.removeListeners=zl(cl(this.contextWindow,"pointermove",this.handlePointerMove),cl(this.contextWindow,"pointerup",this.handlePointerUp),cl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rs(this.updatePoint)}}function tm(e,t){return t?{point:t(e.point)}:e}function Lb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nm({point:e},t){return{point:e,delta:Lb(e,Cj(t)),offset:Lb(e,y6(t)),velocity:v6(t,.1)}}function y6(e){return e[0]}function Cj(e){return e[e.length-1]}function v6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Cj(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Dr(t)));)n--;if(!r)return{x:0,y:0};const l=Lr(i.timestamp-r.timestamp);if(l===0)return{x:0,y:0};const c={x:(i.x-r.x)/l,y:(i.y-r.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const Ej=1e-4,b6=1-Ej,w6=1+Ej,Pj=.01,N6=0-Pj,S6=0+Pj;function Sn(e){return e.max-e.min}function j6(e,t,n){return Math.abs(e-t)<=n}function Ib(e,t,n,r=.5){e.origin=r,e.originPoint=ct(t.min,t.max,e.origin),e.scale=Sn(n)/Sn(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=b6&&e.scale<=w6||isNaN(e.scale))&&(e.scale=1),(e.translate>=N6&&e.translate<=S6||isNaN(e.translate))&&(e.translate=0)}function ul(e,t,n,r){Ib(e.x,t.x,n.x,r?r.originX:void 0),Ib(e.y,t.y,n.y,r?r.originY:void 0)}function Fb(e,t,n){e.min=n.min+t.min,e.max=e.min+Sn(t)}function k6(e,t,n){Fb(e.x,t.x,n.x),Fb(e.y,t.y,n.y)}function Vb(e,t,n){e.min=t.min-n.min,e.max=e.min+Sn(t)}function dl(e,t,n){Vb(e.x,t.x,n.x),Vb(e.y,t.y,n.y)}function C6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ct(n,e,r.max):Math.min(e,n)),e}function Bb(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 E6(e,{top:t,left:n,bottom:r,right:i}){return{x:Bb(e.x,n,i),y:Bb(e.y,t,r)}}function Ub(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 P6(e,t){return{x:Ub(e.x,t.x),y:Ub(e.y,t.y)}}function T6(e,t){let n=.5;const r=Sn(e),i=Sn(t);return i>r?n=Vi(t.min,t.max-r,e.min):r>i&&(n=Vi(e.min,e.max-i,t.min)),Vr(0,1,n)}function _6(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 hp=.35;function R6(e=hp){return e===!1?e=0:e===!0&&(e=hp),{x:$b(e,"left","right"),y:$b(e,"top","bottom")}}function $b(e,t,n){return{min:zb(e,t),max:zb(e,n)}}function zb(e,t){return typeof e=="number"?e:e[t]||0}const qb=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:qb(),y:qb()}),Hb=()=>({min:0,max:0}),xt=()=>({x:Hb(),y:Hb()});function Rn(e){return[e("x"),e("y")]}function Tj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function A6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function O6(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 rm(e){return e===void 0||e===1}function mp({scale:e,scaleX:t,scaleY:n}){return!rm(e)||!rm(t)||!rm(n)}function eo(e){return mp(e)||_j(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _j(e){return Wb(e.x)||Wb(e.y)}function Wb(e){return e&&e!=="0%"}function td(e,t,n){const r=e-n,i=t*r;return n+i}function Kb(e,t,n,r,i){return i!==void 0&&(e=td(e,i,r)),td(e,n,r)+t}function pp(e,t=0,n=1,r,i){e.min=Kb(e.min,t,n,r,i),e.max=Kb(e.max,t,n,r,i)}function Rj(e,{x:t,y:n}){pp(e.x,t.translate,t.scale,t.originPoint),pp(e.y,n.translate,n.scale,n.originPoint)}const Gb=.999999999999,Qb=1.0000000000001;function M6(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let l,c;for(let d=0;d<i;d++){l=n[d],c=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&yi(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,Rj(e,c)),r&&eo(l.latestValues)&&yi(e,l.latestValues))}t.x<Qb&&t.x>Gb&&(t.x=1),t.y<Qb&&t.y>Gb&&(t.y=1)}function xi(e,t){e.min=e.min+t,e.max=e.max+t}function Yb(e,t,n,r,i=.5){const l=ct(e.min,e.max,i);pp(e,t,n,l,r)}function yi(e,t){Yb(e.x,t.x,t.scaleX,t.scale,t.originX),Yb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Aj(e,t){return Tj(O6(e.getBoundingClientRect(),t))}function D6(e,t,n){const r=Aj(e,n),{scroll:i}=t;return i&&(xi(r.x,i.offset.x),xi(r.y,i.offset.y)),r}const Oj=({current:e})=>e?e.ownerDocument.defaultView:null,L6=new WeakMap;class I6{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=xt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ql(p).point)},l=(p,g)=>{const{drag:v,dragPropagation:N,onDragStart:k}=this.getProps();if(v&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=P3(v),!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),Rn(j=>{let S=this.getAxisMotionValue(j).get()||0;if(hr.test(S)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[j];P&&(S=Sn(P)*(parseFloat(S)/100))}}this.originPoint[j]=S}),k&&st.postRender(()=>k(p,g)),op(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(p,g)=>{const{dragPropagation:v,dragDirectionLock:N,onDirectionLock:k,onDrag:w}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:j}=g;if(N&&this.currentDirection===null){this.currentDirection=F6(j),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),w&&w(p,g)},d=(p,g)=>this.stop(p,g),f=()=>Rn(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new kj(t,{onSessionStart:i,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Oj(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:l}=this.getProps();l&&st.postRender(()=>l(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:i}=this.getProps();if(!r||!hu(t,i,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=C6(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&mi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=E6(i.layoutBox,n):this.constraints=!1,this.elastic=R6(r),l!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Rn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=_6(i.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const l=D6(r,i.root,this.visualElement.getTransformPagePoint());let c=P6(i.layout.layoutBox,l);if(n){const d=n(A6(c));this.hasMutatedConstraints=!!d,d&&(c=Tj(d))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},m=Rn(p=>{if(!hu(p,n,this.currentDirection))return;let g=f&&f[p]||{};c&&(g={min:0,max:0});const v=i?200:1e6,N=i?40:1e7,k={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(p,k)});return Promise.all(m).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return op(this.visualElement,t),r.start(Ug(t,r,0,n,this.visualElement,!1))}stopAnimation(){Rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Rn(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Rn(n=>{const{drag:r}=this.getProps();if(!hu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,l=this.getAxisMotionValue(n);if(i&&i.layout){const{min:c,max:d}=i.layout.layoutBox[n];l.set(t[n]-ct(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Rn(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const f=d.get();i[c]=T6({min:f,max:f},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Rn(c=>{if(!hu(c,t,null))return;const d=this.getAxisMotionValue(c),{min:f,max:m}=this.constraints[c];d.set(ct(f,m,i[c]))})}addListeners(){if(!this.visualElement.current)return;L6.set(this.visualElement,this);const t=this.visualElement.current,n=cl(t,"pointerdown",f=>{const{drag:m,dragListener:p=!0}=this.getProps();m&&p&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();mi(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,l=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),st.read(r);const c=jl(window,"resize",()=>this.scalePositionWithinConstraints()),d=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(Rn(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:l=!1,dragElastic:c=hp,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function hu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function F6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class V6 extends Ls{constructor(t){super(t),this.removeGroupControls=wn,this.removeListeners=wn,this.controls=new I6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xb=e=>(t,n)=>{e&&st.postRender(()=>e(t,n))};class B6 extends Ls{constructor(){super(...arguments),this.removePointerDownListener=wn}onPointerDown(t){this.session=new kj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xb(t),onStart:Xb(n),onMove:r,onEnd:(l,c)=>{delete this.session,i&&st.postRender(()=>i(l,c))}}}mount(){this.removePointerDownListener=cl(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 U6(){const e=b.useContext(vd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();b.useEffect(()=>r(i),[]);const l=b.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,l]:[!0]}const Ou={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ka={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=Jb(e,t.target.x),r=Jb(e,t.target.y);return`${n}% ${r}%`}},$6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=As.parse(e);if(i.length>5)return r;const l=As.createTransformer(e),c=typeof i[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;i[0+c]/=d,i[1+c]/=f;const m=ct(d,f,.5);return typeof i[2+c]=="number"&&(i[2+c]/=m),typeof i[3+c]=="number"&&(i[3+c]/=m),l(i)}};class z6 extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:l}=t;HM(q6),l&&(n.group&&n.group.add(l),r&&r.register&&i&&r.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Ou.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:l}=this.props,c=r.projection;return c&&(c.isPresent=l,i||t.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||st.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Mj(e){const[t,n]=U6(),r=b.useContext(ug);return a.jsx(z6,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(kS),isPresent:t,safeToRemove:n})}const q6={borderRadius:{...Ka,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ka,borderTopRightRadius:Ka,borderBottomLeftRadius:Ka,borderBottomRightRadius:Ka,boxShadow:$6};function H6(e,t,n){const r=Wt(e)?e:Nl(e);return r.start(Ug("",r,t,n)),r.animation}function W6(e){return e instanceof SVGElement&&e.tagName!=="svg"}const K6=(e,t)=>e.depth-t.depth;class G6{constructor(){this.children=[],this.isDirty=!1}add(t){_g(this.children,t),this.isDirty=!0}remove(t){Rg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K6),this.isDirty=!1,this.children.forEach(t)}}function Q6(e,t){const n=mr.now(),r=({timestamp:i})=>{const l=i-n;l>=t&&(Rs(r),e(l-t))};return st.read(r,!0),()=>Rs(r)}const Dj=["TopLeft","TopRight","BottomLeft","BottomRight"],Y6=Dj.length,Zb=e=>typeof e=="string"?parseFloat(e):e,ew=e=>typeof e=="number"||Te.test(e);function X6(e,t,n,r,i,l){i?(e.opacity=ct(0,n.opacity!==void 0?n.opacity:1,J6(r)),e.opacityExit=ct(t.opacity!==void 0?t.opacity:1,0,Z6(r))):l&&(e.opacity=ct(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let c=0;c<Y6;c++){const d=`border${Dj[c]}Radius`;let f=tw(t,d),m=tw(n,d);if(f===void 0&&m===void 0)continue;f||(f=0),m||(m=0),f===0||m===0||ew(f)===ew(m)?(e[d]=Math.max(ct(Zb(f),Zb(m),r),0),(hr.test(m)||hr.test(f))&&(e[d]+="%")):e[d]=m}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function tw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const J6=Lj(0,.5,ej),Z6=Lj(.5,.95,wn);function Lj(e,t,n){return r=>r<e?0:r>t?1:n(Vi(e,t,r))}function nw(e,t){e.min=t.min,e.max=t.max}function _n(e,t){nw(e.x,t.x),nw(e.y,t.y)}function rw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sw(e,t,n,r,i){return e-=t,e=td(e,1/n,r),i!==void 0&&(e=td(e,1/i,r)),e}function eL(e,t=0,n=1,r=.5,i,l=e,c=e){if(hr.test(t)&&(t=parseFloat(t),t=ct(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=ct(l.min,l.max,r);e===l&&(d-=t),e.min=sw(e.min,t,n,d,i),e.max=sw(e.max,t,n,d,i)}function ow(e,t,[n,r,i],l,c){eL(e,t[n],t[r],t[i],t.scale,l,c)}const tL=["x","scaleX","originX"],nL=["y","scaleY","originY"];function iw(e,t,n,r){ow(e.x,t,tL,n?n.x:void 0,r?r.x:void 0),ow(e.y,t,nL,n?n.y:void 0,r?r.y:void 0)}function aw(e){return e.translate===0&&e.scale===1}function Ij(e){return aw(e.x)&&aw(e.y)}function lw(e,t){return e.min===t.min&&e.max===t.max}function rL(e,t){return lw(e.x,t.x)&&lw(e.y,t.y)}function cw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fj(e,t){return cw(e.x,t.x)&&cw(e.y,t.y)}function uw(e){return Sn(e.x)/Sn(e.y)}function dw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sL{constructor(){this.members=[]}add(t){_g(this.members,t),t.scheduleRender()}remove(t){if(Rg(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const l=this.members[i];if(l.isPresent!==!1){r=l;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:i}=t.options;i===!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 oL(e,t,n){let r="";const i=e.x.translate/t.x,l=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((i||l||c)&&(r=`translate3d(${i}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:m,rotate:p,rotateX:g,rotateY:v,skewX:N,skewY:k}=n;m&&(r=`perspective(${m}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),N&&(r+=`skewX(${N}deg) `),k&&(r+=`skewY(${k}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const to={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nl=typeof window<"u"&&window.MotionDebug!==void 0,sm=["","X","Y","Z"],iL={visibility:"hidden"},fw=1e3;let aL=0;function om(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vj(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=KS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",st,!(i||l))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vj(r)}function Bj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(c={},d=t==null?void 0:t()){this.id=aL++,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,nl&&(to.totalNodes=to.resolvedTargetDeltas=to.recalculatedProjection=0),this.nodes.forEach(uL),this.nodes.forEach(pL),this.nodes.forEach(gL),this.nodes.forEach(dL),nl&&window.MotionDebug.record(to)},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 f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new G6)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Ag),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const f=this.eventHandlers.get(c);f&&f.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W6(c),this.instance=c;const{layoutId:f,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||f)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Q6(v,250),Ou.hasAnimatedSinceResize&&(Ou.hasAnimatedSinceResize=!1,this.nodes.forEach(mw))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:N,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||wL,{onLayoutAnimationStart:j,onLayoutAnimationComplete:S}=p.getProps(),E=!this.targetLayout||!Fj(this.targetLayout,k)||N,P=!v&&N;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||v&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,P);const T={...Cg(w,"layout"),onPlay:j,onComplete:S};(p.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else v||mw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}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,Rs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xL),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&&Vj(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hw);return}this.isUpdating||this.nodes.forEach(hL),this.isUpdating=!1,this.nodes.forEach(mL),this.nodes.forEach(lL),this.nodes.forEach(cL),this.clearAllSnapshots();const d=mr.now();It.delta=Vr(0,1e3/60,d-It.timestamp),It.timestamp=d,It.isProcessing=!0,Qh.update.process(It),Qh.preRender.process(It),Qh.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fL),this.sharedNodes.forEach(yL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),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 f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Ij(this.projectionDelta),f=this.getTransformTemplate(),m=f?f(this.latestValues,""):void 0,p=m!==this.prevTransformTemplateValue;c&&(d||eo(this.latestValues)||p)&&(i(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return c&&(f=this.removeTransform(f)),NL(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return xt();const f=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(SL))){const{scroll:p}=this.root;p&&(xi(f.x,p.offset.x),xi(f.y,p.offset.y))}return f}removeElementScroll(c){var d;const f=xt();if(_n(f,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:v}=p;p!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&_n(f,c),xi(f.x,g.offset.x),xi(f.y,g.offset.y))}return f}applyTransform(c,d=!1){const f=xt();_n(f,c);for(let m=0;m<this.path.length;m++){const p=this.path[m];!d&&p.options.layoutScroll&&p.scroll&&p!==p.root&&yi(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),eo(p.latestValues)&&yi(f,p.latestValues)}return eo(this.latestValues)&&yi(f,this.latestValues),f}removeTransform(c){const d=xt();_n(d,c);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!m.instance||!eo(m.latestValues))continue;mp(m.latestValues)&&m.updateSnapshot();const p=xt(),g=m.measurePageBox();_n(p,g),iw(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,p)}return eo(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!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=It.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),dl(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),_n(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),k6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_n(this.target,this.layout.layoutBox),Rj(this.target,this.targetDelta)):_n(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=xt(),this.relativeTargetOrigin=xt(),dl(this.relativeTargetOrigin,this.target,N.target),_n(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nl&&to.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mp(this.parent.latestValues)||_j(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(),f=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===It.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;_n(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,N=this.treeScale.y;M6(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=xt());const{target:k}=d;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rw(this.prevProjectionDelta.x,this.projectionDelta.x),rw(this.prevProjectionDelta.y,this.projectionDelta.y)),ul(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==N||!dw(this.projectionDelta.x,this.prevProjectionDelta.x)||!dw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k)),nl&&to.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 f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gi(),this.projectionDelta=gi(),this.projectionDeltaWithTransform=gi()}setAnimationOrigin(c,d=!1){const f=this.snapshot,m=f?f.latestValues:{},p={...this.latestValues},g=gi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=xt(),N=f?f.source:void 0,k=this.layout?this.layout.source:void 0,w=N!==k,j=this.getStack(),S=!j||j.members.length<=1,E=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(bL));this.animationProgress=0;let P;this.mixTargetDelta=T=>{const A=T/1e3;pw(g.x,c.x,A),pw(g.y,c.y,A),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(dl(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vL(this.relativeTarget,this.relativeTargetOrigin,v,A),P&&rL(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=xt()),_n(P,this.relativeTarget)),w&&(this.animationValues=p,X6(p,m,this.latestValues,A,E,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},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&&(Rs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{Ou.hasAnimatedSinceResize=!0,this.currentAnimation=H6(0,fw,{...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(fw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:f,layout:m,latestValues:p}=c;if(!(!d||!f||!m)){if(this!==c&&this.layout&&m&&Uj(this.options.animationType,this.layout.layoutBox,m.layoutBox)){f=this.target||xt();const g=Sn(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+g;const v=Sn(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+v}_n(d,f),yi(d,p),ul(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new sL),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.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:f}={}){const m=this.getStack();m&&m.promote(this,f),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:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const m={};f.z&&om("z",c,m,this.animationValues);for(let p=0;p<sm.length;p++)om(`rotate${sm[p]}`,c,m,this.animationValues),om(`skew${sm[p]}`,c,m,this.animationValues);c.render();for(const p in m)c.setStaticValue(p,m[p]),this.animationValues&&(this.animationValues[p]=m[p]);c.scheduleRender()}getProjectionStyles(c){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iL;const m={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Ru(c==null?void 0:c.pointerEvents)||"",m.transform=p?p(this.latestValues,""):"none",m;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=Ru(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!eo(this.latestValues)&&(w.transform=p?p({},""):"none",this.hasProjected=!1),w}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),m.transform=oL(this.projectionDeltaWithTransform,this.treeScale,v),p&&(m.transform=p(v,m.transform));const{x:N,y:k}=this.projectionDelta;m.transformOrigin=`${N.origin*100}% ${k.origin*100}% 0`,g.animationValues?m.opacity=g===this?(f=(d=v.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:m.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const w in Yu){if(v[w]===void 0)continue;const{correct:j,applyTo:S}=Yu[w],E=m.transform==="none"?v[w]:j(v[w],g);if(S){const P=S.length;for(let T=0;T<P;T++)m[S[T]]=E}else m[w]=E}return this.options.layoutId&&(m.pointerEvents=g===this?Ru(c==null?void 0:c.pointerEvents)||"":"none"),m}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(hw),this.root.sharedNodes.clear()}}}function lL(e){e.updateLayout()}function cL(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:i}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?Rn(g=>{const v=c?n.measuredBox[g]:n.layoutBox[g],N=Sn(v);v.min=r[g].min,v.max=v.min+N}):Uj(l,n.layoutBox,r)&&Rn(g=>{const v=c?n.measuredBox[g]:n.layoutBox[g],N=Sn(r[g]);v.max=v.min+N,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+N)});const d=gi();ul(d,r,n.layoutBox);const f=gi();c?ul(f,e.applyTransform(i,!0),n.measuredBox):ul(f,r,n.layoutBox);const m=!Ij(d);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:N}=g;if(v&&N){const k=xt();dl(k,n.layoutBox,v.layoutBox);const w=xt();dl(w,r,N.layoutBox),Fj(k,w)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=k,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function uL(e){nl&&to.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 dL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fL(e){e.clearSnapshot()}function hw(e){e.clearMeasurements()}function hL(e){e.isLayoutDirty=!1}function mL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pL(e){e.resolveTargetDelta()}function gL(e){e.calcProjection()}function xL(e){e.resetSkewAndRotation()}function yL(e){e.removeLeadSnapshot()}function pw(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gw(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function vL(e,t,n,r){gw(e.x,t.x,n.x,r),gw(e.y,t.y,n.y,r)}function bL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wL={duration:.45,ease:[.4,0,.1,1]},xw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yw=xw("applewebkit/")&&!xw("chrome/")?Math.round:wn;function vw(e){e.min=yw(e.min),e.max=yw(e.max)}function NL(e){vw(e.x),vw(e.y)}function Uj(e,t,n){return e==="position"||e==="preserve-aspect"&&!j6(uw(t),uw(n),.2)}function SL(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const jL=Bj({attachResizeListener:(e,t)=>jl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),im={current:void 0},$j=Bj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!im.current){const e=new jL({});e.mount(window),e.setOptions({layoutScroll:!0}),im.current=e}return im.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),kL={pan:{Feature:B6},drag:{Feature:V6,ProjectionNode:$j,MeasureLayout:Mj}};function bw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,l=r[i];l&&st.postRender(()=>l(t,ql(t)))}class CL extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=S3(t,n=>(bw(this.node,n,"Start"),r=>bw(this.node,r,"End"))))}unmount(){}}class EL extends Ls{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=zl(jl(this.node.current,"focus",()=>this.onFocus()),jl(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 i="onTap"+(n==="End"?"":n),l=r[i];l&&st.postRender(()=>l(t,ql(t)))}class PL extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=E3(t,n=>(ww(this.node,n,"Start"),(r,{success:i})=>ww(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gp=new WeakMap,am=new WeakMap,TL=e=>{const t=gp.get(e.target);t&&t(e)},_L=e=>{e.forEach(TL)};function RL({root:e,...t}){const n=e||document;am.has(n)||am.set(n,{});const r=am.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(_L,{root:e,...t})),r[i]}function AL(e,t,n){const r=RL(t);return gp.set(e,n),r.observe(e),()=>{gp.delete(e),r.unobserve(e)}}const OL={some:0,all:1};class ML extends Ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:OL[i]},d=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=m?p:g;v&&v(f)};return AL(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(DL(t,n))&&this.startObserver()}unmount(){}}function DL({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LL={inView:{Feature:ML},tap:{Feature:PL},focus:{Feature:EL},hover:{Feature:CL}},IL={layout:{ProjectionNode:$j,MeasureLayout:Mj}},xp={current:null},zj={current:!1};function FL(){if(zj.current=!0,!!fg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xp.current=e.matches;e.addListener(t),t()}else xp.current=!1}function VL(e,t,n){for(const r in t){const i=t[r],l=n[r];if(Wt(i))e.addValue(r,i);else if(Wt(l))e.addValue(r,Nl(i,{owner:e}));else if(l!==i)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(i):c.hasAnimated||c.set(i)}else{const c=e.getStaticValue(r);e.addValue(r,Nl(c!==void 0?c:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Nw=new WeakMap,BL=[...ij,Ht,As],UL=e=>BL.find(oj(e)),Sw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $L{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:l,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=Dg,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 v=mr.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,st.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Nd(n),this.isVariantNode=SS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in g){const N=g[v];f[v]!==void 0&&Wt(N)&&N.set(f[v],!1)}}mount(t){this.current=t,Nw.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)),zj.current||FL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Nw.delete(this.current),this.projection&&this.projection.unmount(),Rs(this.notifyUpdate),Rs(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];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Do.has(t),i=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&st.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),l(),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 Bi){const n=Bi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}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 i=Sw[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const l="on"+i,c=t[l];c&&(this.propEventSubscriptions[i]=this.on(i,c))}this.prevMotionValues=VL(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=Nl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=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 i!=null&&(typeof i=="string"&&(rj(i)||nj(i))?i=parseFloat(i):!UL(i)&&As.test(n)&&(i=mj(t,n)),this.setBaseTarget(t,Wt(i)?i.get():i)),Wt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const c=vg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(i=c[t])}if(r&&i!==void 0)return i;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!Wt(l)?l:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ag),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class qj extends $L{constructor(){super(...arguments),this.KeyframeResolver=pj}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;Wt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function zL(e){return window.getComputedStyle(e)}class qL extends qj{constructor(){super(...arguments),this.type="html",this.renderInstance=ES}readValueFromInstance(t,n){if(Do.has(n)){const r=Fg(n);return r&&r.default||0}else{const r=zL(t),i=(LS(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Aj(t,n)}build(t,n,r){Sg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yg(t,n,r)}}class HL extends qj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Do.has(n)){const r=Fg(n);return r&&r.default||0}return n=PS.has(n)?n:pg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return RS(t,n,r)}build(t,n,r){jg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){TS(t,n,r,i)}mount(t){this.isSVGTag=kg(t.tagName),super.mount(t)}}const WL=(e,t)=>xg(e)?new HL(t):new qL(t,{allowProjection:e!==b.Fragment}),KL=g3({...p6,...LL,...kL,...IL},WL),Q=AM(KL),GL="https://stream.zeno.fm/cbbnte3le8itv";function QL(){var R,K;const[e,t]=b.useState(!1),[n,r]=b.useState(75),[i,l]=b.useState(!1),c=b.useRef(null),[d,f]=b.useState(2547),[m,p]=b.useState(0),[g,v]=b.useState(""),[N,k]=b.useState(""),[w,j]=b.useState(!1),{data:S=[]}=Ot({queryKey:["active-announcements"],queryFn:()=>Me.entities.Announcement.filter({active:!0}),initialData:[]}),E=yt({mutationFn:U=>Me.entities.NewsletterSubscriber.create(U),onSuccess:()=>{j(!0),v(""),k("")}});b.useEffect(()=>{const U=setInterval(()=>{f(q=>Math.max(1500,q+Math.floor(Math.random()*12)-5))},3e3);return()=>clearInterval(U)},[]),b.useEffect(()=>{if(S.length>1){const U=setInterval(()=>{p(q=>(q+1)%S.length)},6e3);return()=>clearInterval(U)}},[S.length]),b.useEffect(()=>{c.current&&(c.current.volume=n/100)},[n]);const P=()=>{c.current&&(e?c.current.pause():c.current.play().catch(U=>{console.error("Erro ao reproduzir:",U)}),t(!e))},T=()=>{c.current&&(c.current.muted=!i,l(!i))},A=()=>{const U=window.location.href;window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(U)}`,"_blank","width=600,height=400")},V={text:"Porque Deus amou o mundo de tal maneira que deu o seu Filho unigênito, para que todo aquele que nele crê não pereça, mas tenha a vida eterna.",reference:"João 3:16"}
388,z=[{label:"Ouvintes Ativos",value:d.toLocaleString("pt-BR"),icon:"👥"},{label:"Programas",value:"15+",icon:"🎙️"},{label:"Anos no Ar",value:"10+",icon:"📻"}];return a.jsxs("div",{className:"pb-20 md:pb-0",children:[S.length>0&&a.jsx(Q.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},className:"bg-gradient-to-r from-amber-500 to-orange-600 text-white py-3 px-4",children:a.jsxs("div",{className:"flex items-center justify-center gap-3 max-w-7xl mx-auto",children:[a.jsx(Iu,{className:"w-4 h-4 animate-pulse flex-shrink-0"}),a.jsxs("p",{className:"text-sm font-semibold text-center",children:[a.jsxs("span",{className:"font-black uppercase tracking-wide mr-2",children:["📢 ",(R=S[m])==null?void 0:R.title,":"]}),(K=S[m])==null?void 0:K.message]}),S.length>1&&a.jsxs("span",{className:"text-xs opacity-70 flex-shrink-0",children:["(",m+1,"/",S.length,")"]})]})},m),a.jsx("audio",{ref:c,src:GL,preload:"none"}),a.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950",children:[a.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wMiI+PHBhdGggZD0iTTM2IDEzNGg4djlsLTQtNC00IDV6Ii8+PC9nPjwvZz48L3N2Zz4=')] opacity-10"}),a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(251,146,60,0.08),transparent_50%),radial-gradient(ellipse_at_bottom_right,rgba(234,179,8,0.06),transparent_50%)]"}),a.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-32",children:a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs(Q.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"inline-flex items-center gap-3 bg-gradient-to-r from-red-500/10 to-orange-500/10 border border-red-400/20 backdrop-blur-md px-6 py-3 rounded-full mb-10 shadow-lg",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse shadow-lg shadow-red-500/50"}),a.jsx("div",{className:"absolute inset-0 w-2 h-2 bg-red-500 rounded-full animate-ping"})]}),a.jsx("span",{className:"text-sm font-bold text-white tracking-[0.2em] uppercase",children:"AO VIVO"})]}),a.jsx(Q.h1,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"text-6xl md:text-8xl font-black mb-8 bg-gradient-to-r from-white via-amber-50 to-white bg-clip-text text-transparent tracking-tight leading-[1.1]",children:"Rádio Caridade"}),a.jsx(Q.p,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3},className:"text-xl md:text-2xl text-slate-300 mb-16 font-light max-w-3xl mx-auto leading-relaxed",children:"A Palavra de Deus transformando vidas através da música e mensagens inspiradoras"}),a.jsx(Q.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.4},children:a.jsx(le,{className:"max-w-3xl mx-auto shadow-2xl border border-white/10 bg-gradient-to-br from-white/5 to-white/10 backdrop-blur-2xl",children:a.jsxs(de,{className:"p-14",children:[a.jsx("div",{className:"flex items-center justify-center gap-6 mb-6",children:a.jsx(Q.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:a.jsx(ae,{size:"lg",onClick:P,className:"w-28 h-28 rounded-full bg-gradient-to-br from-amber-500 via-orange-500 to-amber-600 hover:from-amber-400 hover:via-orange-400 hover:to-amber-500 shadow-2xl shadow-amber-500/30 hover:shadow-amber-500/60 transition-all duration-300 ring-4 ring-amber-500/20",children:e?a.jsx(hl,{className:"w-10 h-10 text-white"}):a.jsx(wo,{className:"w-10 h-10 ml-1 text-white"})})})}),a.jsxs("div",{className:"mb-12",children:[a.jsx("p",{className:"text-xs text-slate-400 mb-3 uppercase tracking-[0.2em] font-semibold",children:"Tocando agora"}),a.jsx("p",{className:"text-3xl font-bold text-white tracking-tight",children:e?"Rádio Caridade - AO VIVO":"Clique para ouvir"})]}),a.jsxs("div",{className:"flex items-center justify-center gap-5 bg-gradient-to-r from-white/5 to-white/10 rounded-2xl p-5 border border-white/10 shadow-inner",children:[a.jsx(ae,{variant:"ghost",size:"icon",onClick:T,className:"text-white hover:text-amber-400 hover:bg-white/10",children:i?a.jsx(RT,{className:"w-5 h-5"}):a.jsx(TT,{className:"w-5 h-5"})}),a.jsx("div",{className:"w-56",children:a.jsx(gS,{value:[n],onValueChange:U=>r(U[0]),max:100,step:1,className:"cursor-pointer",disabled:i})}),a.jsxs("span",{className:"text-sm text-white font-bold w-14 text-right",children:[i?"0":n,"%"]})]}),e&&a.jsxs(Q.div,{initial:{opacity:0}
388,animate:{opacity:1},className:"mt-6 flex items-center justify-center gap-3",children:[a.jsx("div",{className:"flex gap-1",children:[...Array(5)].map((U,q)=>a.jsx(Q.div,{className:"w-1 bg-gradient-to-t from-amber-500 to-red-500 rounded-full",animate:{height:["8px","24px","8px"]},transition:{duration:.8,repeat:1/0,delay:q*.1}},q))}),a.jsx("span",{className:"text-sm font-bold text-red-400 tracking-wider",children:"● TRANSMITINDO"})]}),!e&&a.jsx("p",{className:"text-sm text-slate-400 mt-8 font-medium tracking-wide",children:"🎵 Transmissão 24 horas • 7 dias por semana"})]})})}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-4xl mx-auto mt-12",children:z.map((U,q)=>a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6+q*.1},whileHover:{y:-5},children:a.jsx(le,{className:"text-center hover:shadow-2xl transition-all duration-300 border border-white/10 bg-gradient-to-br from-white/5 to-white/10 backdrop-blur-2xl group",children:a.jsxs(de,{className:"p-10",children:[a.jsx("div",{className:"text-5xl mb-5 group-hover:scale-110 transition-transform duration-300",children:U.icon}),a.jsx("p",{className:"text-5xl font-black text-white mb-3 group-hover:text-amber-400 transition-colors duration-300",children:U.value}),a.jsx("p",{className:"text-xs text-slate-300 font-semibold uppercase tracking-[0.15em]",children:U.label})]})})},U.label))})]})})]}),a.jsxs("section",{className:"py-28 bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(251,146,60,0.08),transparent_70%)]"}),a.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 relative",children:a.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[a.jsx(Q.div,{initial:{scale:0},whileInView:{scale:1},viewport:{once:!0},className:"inline-block mb-6",children:a.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-amber-500 to-orange-600 rounded-3xl flex items-center justify-center mx-auto shadow-2xl shadow-amber-500/30",children:a.jsx(go,{className:"w-10 h-10 text-white"})})}),a.jsx("h2",{className:"text-5xl md:text-6xl font-black mb-6 text-white tracking-tight leading-tight",children:"Compartilhe a Palavra de Deus"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-300 mb-12 font-light max-w-2xl mx-auto leading-relaxed",children:"Ajude mais pessoas a conhecerem a Rádio Caridade e fortaleça a fé de milhares"}),a.jsx(Q.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:a.jsxs(ae,{onClick:A,size:"lg",className:"bg-gradient-to-r from-amber-500 via-orange-500 to-amber-600 hover:from-amber-400 hover:via-orange-400 hover:to-amber-500 text-white shadow-2xl shadow-amber-500/30 hover:shadow-amber-500/50 text-lg px-16 py-8 font-bold rounded-full transition-all duration-300",children:[a.jsx(go,{className:"w-6 h-6 mr-3"}),"Compartilhar Agora"]})})]})})]}),a.jsx("section",{className:"py-16 bg-gradient-to-br from-indigo-50 to-purple-50",children:a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-purple-100 px-4 py-2 rounded-full mb-6",children:[a.jsx(ov,{className:"w-4 h-4 text-purple-600"}),a.jsx("span",{className:"text-sm font-medium text-purple-900",children:"USE COMO APLICATIVO"})]}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-gray-900",children:"Adicione à Tela Inicial"}),a.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Use nosso site como um aplicativo no seu celular!"}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsx(le,{className:"text-left border-2 border-blue-200 hover:shadow-xl transition-shadow",children:a.jsxs(de,{className:"p-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"w-12 h-12 bg-blue-500 rounded-xl flex items-center justify-center",children:a.jsx("span",{className:"text-2xl",children:"📱"})}),a.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"iPhone / Safari"})]}),a.jsxs("ol",{className:"space-y-3 text-gray-700",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-bold text-blue-600 text-lg",children:"1."}),a.jsx("span",{children:"Toque no botão de compartilhar 📤"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-bold text-blue-600 text-lg",children:"2."}),a.jsx("span",{children:'Role e toque em "Adicionar à Tela Inicial"'})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-bold text-blue-600 text-lg",children:"3."}),a.jsx("span",{children:'Toque em "Adicionar" - pronto! 🎉'})]})]})]})}),a.jsx(le,{className:"text-left border-2 border-green-200 hover:shadow-xl transition-shadow",children:a.jsxs(de,{className:"p-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"w-12 h-12 bg-green-600 rounded-xl flex items-center justify-center",children:a.jsx("span",{className:"text-2xl",children:"🤖"})}),a.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Android / Chrome"})]}),a.jsxs("ol",{className:"space-y-3 text-gray-700",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-bold text-green-600 text-lg",children:"1."}),a.jsx("span",{children:"Toque nos 3 pontos (menu) ⋮"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-bold text-green-600 text-lg",children:"2."}),a.jsx("span",{children:'Toque em "Adicionar à tela inicial"'})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"font-bold text-green-600 text-lg",children:"3."}),a.jsx("span",{children:"Confirme - pronto! 🎉"})]})]})]})})]}),a.jsx("div",{className:"mt-8 p-6 bg-amber-50 border-2 border-amber-200 rounded-xl",children:a.jsx("p",{className:"text-gray-700 font-medium text-lg",children:"✨ Depois de adicionar, o ícone da Rádio Caridade aparecerá na sua tela inicial como um app de verdade!"})})]})})}),a.jsx("section",{className:"py-16 bg-gradient-to-br from-blue-50 to-indigo-50",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-blue-100 px-4 py-2 rounded-full mb-4",children:[a.jsx(ov,{className:"w-4 h-4 text-blue-600"}),a.jsx("span",{className:"text-sm font-medium text-blue-900",children:"APLICATIVOS MÓVEL"})]}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-gray-900",children:"Ouça em Qualquer Aplicativo de Rádio"}),a.jsx("p",{className:"text-xl text-gray-600 mb-2",children:"A Rádio Caridade está disponível nos principais apps de streaming"}),a.jsx("p",{className:"text-sm text-gray-500",children:'📻 Procure por "Rádio Caridade" nos aplicativos abaixo'})]}),a.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-7xl mx-auto",children:[a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:a.jsx(le,{className:"h-full border-2 border-blue-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-blue-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"📻"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"TuneIn Radio"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no TuneIn"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/tunein-radio/id418987775",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=tunein.player",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-purple-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-purple-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-purple-500 to-pink-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"🎙️"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"Radio.net"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no Radio.net"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/radio-net/id424641708",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=net.radio.player",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-orange-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-orange-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-orange-500 to-red-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"📱"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"Simple Radio"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no Simple Radio"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/simple-radio-live-am-fm/id1208832087",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.streema.simpleradio",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-teal-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-teal-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-teal-500 to-cyan-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"🎵"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"myTuner Radio"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no myTuner"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/mytuner-radio-live-fm-stations/id390528450",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.appgeneration.itunerfree",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-emerald-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-emerald-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-emerald-500 to-green-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"🌍"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"Radio Garden"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no Radio Garden"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/radio-garden-live/id1339670993",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.jonathanpuckey.radiogarden",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.5},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-lime-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-lime-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-lime-500 to-green-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"🤖"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"RadioDroid"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Gratuito e open-source"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(ae,{size:"sm",className:"w-full bg-gray-300 text-gray-500 cursor-not-allowed",disabled:!0,children:"Apenas Android"}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=net.programmierecke.radiodroid2",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.6},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-rose-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-rose-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-rose-500 to-pink-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"🎧"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"Radioline"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no Radioline"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/radioline/id453427613",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.radioline.and
388roid",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.7},whileHover:{scale:1.05},children:a.jsx(le,{className:"h-full border-2 border-red-200 hover:shadow-2xl transition-all bg-gradient-to-br from-white to-red-50",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-red-500 to-rose-600 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg",children:a.jsx("span",{className:"text-2xl",children:"❤️"})}),a.jsx("h3",{className:"text-lg font-bold mb-2 text-gray-900",children:"iHeartRadio"}),a.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Ouça no iHeart"}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("a",{href:"https://apps.apple.com/br/app/iheartradio/id290638154",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-black hover:bg-gray-800 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"iOS"]})}),a.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.clearchannel.iheartradio.controller",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{size:"sm",className:"w-full bg-green-600 hover:bg-green-700 text-white",children:[a.jsx(Xt,{className:"w-4 h-4 mr-2"}),"Android"]})})]})]})})})]}),a.jsx("div",{className:"mt-10 max-w-3xl mx-auto",children:a.jsx(le,{className:"border-2 border-amber-200 bg-gradient-to-r from-amber-50 to-orange-50",children:a.jsxs(de,{className:"p-6",children:[a.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-3 text-center",children:"Como Ouvir a Rádio Caridade:"}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-4 text-center",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl mb-2",children:"1️⃣"}),a.jsx("p",{className:"text-sm text-gray-700",children:"Baixe qualquer app acima"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl mb-2",children:"2️⃣"}),a.jsx("p",{className:"text-sm text-gray-700",children:'Procure "Rádio Caridade"'})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-3xl mb-2",children:"3️⃣"}),a.jsx("p",{className:"text-sm text-gray-700",children:"Aperte play e ouça!"})]})]})]})})})]})}),a.jsx("section",{className:"py-24 bg-gradient-to-br from-slate-50 via-white to-slate-50",children:a.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsx(Q.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},children:a.jsx(le,{className:"relative overflow-hidden border-2 border-amber-100 shadow-2xl bg-gradient-to-br from-white to-amber-50/20",children:a.jsxs(de,{className:"p-12 md:p-16 relative",children:[a.jsxs("div",{className:"flex items-center justify-center gap-3 mb-10",children:[a.jsx(_s,{className:"w-7 h-7 text-amber-600"}),a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-slate-900 tracking-tight",children:"Versículo do Dia"})]}),a.jsxs("blockquote",{className:"text-2xl md:text-3xl text-slate-800 mb-8 leading-relaxed font-serif text-center",children:['"',V.text,'"']}),a.jsxs("p",{className:"text-center text-amber-700 font-bold text-xl tracking-wide",children:["— ",V.reference]})]})})})})}),a.jsx("section",{className:"py-24 bg-white",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsx("h2",{className:"text-4xl md:text-5xl font-black text-center mb-5 text-slate-900 tracking-tight",children:"Como Podemos Ajudar Você?"}),a.jsx("p",{className:"text-center text-slate-600 mb-16 text-xl font-light",children:"Estamos aqui para servir e apoiar sua jornada espiritual"}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[a.jsx(Q.div,{whileHover:{scale:1.02},transition:{type:"spring",stiffness:300},children:a.jsx(vn,{to:Ke("Schedule"),children:a.jsx(le,{className:"h-full hover:shadow-2xl transition-all duration-300 border-2 border-slate-200 hover:border-blue-400 cursor-pointer group bg-gradient-to-br from-white to-blue-50/30",children:a.jsxs(de,{className:"p-12",children:[a.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-blue-600 to-blue-700 rounded-2xl flex items-center justify-center mb-8 group-hover:scale-110 transition-transform duration-300 shadow-xl shadow-blue-600/30",children:a.jsx(lr,{className:"w-10 h-10 text-white"})}),a.jsx("h3",{className:"text-2xl md:text-3xl font-black mb-4 text-slate-900 tracking-tight",children:"Ver Programação"}),a.jsx("p",{className:"text-slate-600 leading-relaxed text-lg",children:"Confira a grade completa de programas e não perca nenhum momento especial."})]})})})}),a.jsx(Q.div,{whileHover:{scale:1.02},transition:{type:"spring",stiffness:300},children:a.jsx(vn,{to:Ke("PrayerRequests"),children:a.jsx(le,{className:"h-full hover:shadow-2xl transition-all duration-300 border-2 border-slate-200 hover:border-rose-400 cursor-pointer group bg-gradient-to-br from-white to-rose-50/30",children:a.jsxs(de,{className:"p-12",children:[a.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-rose-600 to-rose-700 rounded-2xl flex items-center justify-center mb-8 group-hover:scale-110 transition-transform duration-300 shadow-xl shadow-rose-600/30",children:a.jsx(ht,{className:"w-10 h-10 text-white"})}),a.jsx("h3",{className:"text-2xl md:text-3xl font-black mb-4 text-slate-900 tracking-tight",children:"Enviar Pedido de Oração"}),a.jsx("p",{className:"text-slate-600 leading-relaxed text-lg",children:"Compartilhe suas necessidades e deixe nossa comunidade orar por você."})]})})})})]})]})}),a.jsx("section",{className:"py-20 bg-gradient-to-br from-amber-50 to-orange-50",children:a.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-amber-100 border border-amber-200 px-5 py-2 rounded-full mb-6",children:[a.jsx(Iu,{className:"w-4 h-4 text-amber-700"}),a.jsx("span",{className:"text-sm font-bold text-amber-900 uppercase tracking-widest",children:"Newsletter"})]}),a.jsx("h2",{className:"text-4xl md:text-5xl font-black mb-4 text-slate-900 tracking-tight",children:"Receba Nossas Novidades"}),a.jsx("p",{className:"text-xl text-slate-600 mb-8 font-light",children:"Fique por dentro de eventos, mensagens e programas especiais"}),w?a.jsxs("div",{className:"bg-green-100 border-2 border-green-300 rounded-2xl p-8 max-w-lg mx-auto",children:[a.jsx("p",{className:"text-2xl font-black text-green-700",children:"✓ Inscrição realizada!"}),a.jsx("p",{className:"text-green-600 mt-2",children:"Você receberá nossas novida
388des em breve. Deus abençoe!"})]}):a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-xl mx-auto",children:[a.jsx(He,{placeholder:"Seu nome",value:N,onChange:U=>k(U.target.value),className:"py-6 px-4 border-2 border-amber-200 focus:border-amber-400 rounded-xl"}),a.jsx(He,{placeholder:"Seu e-mail",type:"email",value:g,onChange:U=>v(U.target.value),className:"py-6 px-4 border-2 border-amber-200 focus:border-amber-400 rounded-xl"}),a.jsx(ae,{onClick:()=>g&&E.mutate({name:N,email:g}),disabled:E.isPending||!g,className:"bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-400 hover:to-orange-500 text-white px-8 py-6 rounded-xl shadow-lg font-bold whitespace-nowrap",children:E.isPending?"...":"Inscrever"})]})]})})}),a.jsxs("section",{className:"py-32 bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wMiI+PHBhdGggZD0iTTM2IDEzNGg4djlsLTQtNC00IDV6Ci8+PC9nPjwvZz48L3N2Zz4=')] opacity-20"}),a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(251,146,60,0.1),transparent_60%)]"}),a.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative",children:a.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[a.jsx(_s,{className:"w-16 h-16 text-amber-400 mx-auto mb-8 animate-pulse"}),a.jsx("h2",{className:"text-5xl md:text-7xl font-black mb-10 bg-gradient-to-r from-white via-amber-50 to-white bg-clip-text text-transparent tracking-tight leading-tight",children:"Nossa Missão"}),a.jsxs("p",{className:"text-2xl md:text-3xl text-slate-300 leading-relaxed font-light max-w-4xl mx-auto",children:["A Rádio Caridade existe para levar ",a.jsx("span",{className:"font-bold text-amber-400",children:"esperança, amor"})," e a transformadora ",a.jsx("span",{className:"font-bold text-amber-400",children:"Palavra de Deus"})," até você. Através de programas inspiradores, música cristã e mensagens de fé, buscamos tocar corações e fortalecer a sua jornada espiritual."]})]})})]})]})}const jw=["Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"];function YL(){const[e,t]=b.useState(jw[new Date().getDay()-1]||"Segunda"),{data:n,isLoading:r}=Ot({queryKey:["programs"],queryFn:()=>Me.entities.Program.list(),initialData:[]}),i=n.filter(l=>l.day_of_week===e).sort((l,c)=>l.start_time.localeCompare(c.start_time));return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-blue-500/10 to-purple-500/10 border border-blue-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(ks,{className:"w-5 h-5 text-blue-600"}),a.jsx("span",{className:"text-sm font-bold text-blue-900 tracking-[0.2em] uppercase",children:"Programação"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Nossa Programação"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Confira os programas da semana"})]}),a.jsx("div",{className:"mb-12 overflow-x-auto pb-2",children:a.jsx("div",{className:"flex gap-3 min-w-max justify-center",children:jw.map((l,c)=>a.jsx(Q.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:c*.05},whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>t(l),className:`px-8 py-4 rounded-2xl font-bold transition-all duration-300 whitespace-nowrap shadow-lg ${e===l?"bg-gradient-to-r from-amber-500 via-orange-500 to-amber-600 text-white shadow-amber-500/30 scale-105":"bg-white text-slate-700 hover:bg-gradient-to-r hover:from-amber-50 hover:to-orange-50 border-2 border-slate-200 hover:border-amber-300"}`,children:l},l))})}),a.jsx("div",{className:"space-y-6",children:r?Array(4).fill(0).map((l,c)=>
vendor: 6,560 bytes, line 388
388a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:c*.1},children:a.jsx(le,{className:"border-2 border-slate-200 shadow-lg",children:a.jsx(de,{className:"p-8",children:a.jsxs("div",{className:"flex gap-6 animate-pulse",children:[a.jsx("div",{className:"w-40 h-40 bg-slate-200 rounded-2xl flex-shrink-0"}),a.jsxs("div",{className:"flex-1 space-y-4",children:[a.jsx("div",{className:"h-8 bg-slate-200 rounded-xl w-3/4"}),a.jsx("div",{className:"h-6 bg-slate-200 rounded-lg w-1/2"}),a.jsx("div",{className:"h-4 bg-slate-200 rounded-lg w-full"}),a.jsx("div",{className:"h-4 bg-slate-200 rounded-lg w-5/6"})]})]})})})},c)):i.length>0?i.map((l,c)=>a.jsx(Q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:c*.1},whileHover:{y:-5},children:a.jsx(le,{className:"hover:shadow-2xl transition-all duration-300 border-2 border-slate-200 hover:border-amber-300 group overflow-hidden bg-gradient-to-br from-white to-slate-50/30",children:a.jsx(de,{className:"p-8",children:a.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-6",children:[l.image_url&&a.jsxs("div",{className:"relative overflow-hidden rounded-2xl shadow-xl flex-shrink-0",children:[a.jsx("img",{src:l.image_url,alt:l.title,className:"w-full md:w-40 h-40 object-cover group-hover:scale-110 transition-transform duration-500"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex flex-col md:flex-row md:items-start justify-between gap-4 mb-4",children:[a.jsx("h3",{className:"text-3xl font-black text-slate-900 group-hover:text-amber-600 transition-colors tracking-tight leading-tight",children:l.title}),a.jsxs("div",{className:"flex items-center gap-2 bg-gradient-to-r from-amber-500 to-orange-600 px-5 py-2.5 rounded-full shadow-lg shadow-amber-500/30 flex-shrink-0",children:[a.jsx(cd,{className:"w-5 h-5 text-white"}),a.jsxs("span",{className:"text-sm font-bold text-white",children:[l.start_time," - ",l.end_time]})]})]}),l.host&&a.jsxs("div",{className:"flex items-center gap-2 mb-4 text-slate-600",children:[a.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-full flex items-center justify-center",children:a.jsx(N1,{className:"w-4 h-4 text-white"})}),a.jsx("span",{className:"font-bold text-lg",children:l.host})]}),l.description&&a.jsx("p",{className:"text-slate-600 leading-relaxed text-lg",children:l.description})]})]})})})},l.id)):a.jsx(le,{className:"border-2 border-dashed border-slate-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs(de,{className:"p-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-slate-100 rounded-full flex items-center justify-center mx-auto mb-6",children:a.jsx(ks,{className:"w-12 h-12 text-slate-400"})}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-3",children:"Nenhum programa programado"}),a.jsxs("p",{className:"text-slate-500 text-lg",children:["Não há programas agendados para ",e,"."]})]})})})]})})}const $r=b.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:Ye("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}));$r.displayName="Textarea";function XL(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var $g=e=>{const{present:t,children:n}=e,r=JL(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),l=et(r.ref,ZL(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:l}):null};$g.displayName="Presence";function JL(e){const[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),l=b.useRef("none"),c=e?"mounted":"unmounted",[d,f]=XL(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const m=mu(r.current);l.current=d==="mounted"?m:"none"},[d]),Gt(()=>{const m=r.current,p=i.current;if(p!==e){const v=l.current,N=mu(m);e?f("MOUNT"):N==="none"||(m==null?void 0:m.display)==="none"?f("UNMOUNT"):f(p&&v!==N?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),Gt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,g=N=>{const w=mu(r.current).includes(CSS.escape(N.animationName));if(N.target===t&&w&&(f("ANIMATION_END"),!i.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},v=N=>{N.target===t&&(l.current=mu(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:b.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}function mu(e){return(e==null?void 0:e.animationName)||"none"}function ZL(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kd="Checkbox",[eI]=Mo(kd),[tI,zg]=eI(kd);function nI(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:l,form:c,name:d,onCheckedChange:f,required:m,value:p="on",internal_do_not_use_render:g}=e,[v,N]=Fi({prop:n,defaultProp:i??!1,onChange:f,caller:kd}),[k,w]=b.useState(null),[j,S]=b.useState(null),E=b.useRef(!1),P=k?!!c||!!k.closest("form"):!0,T={checked:v,disabled:l,setChecked:N,control:k,setControl:w,name:d,form:c,value:p,hasConsumerStoppedPropagationRef:E,required:m,defaultChecked:Ts(i)?!1:i,isFormControl:P,bubbleInput:j,setBubbleInput:S};return a.jsx(tI,{scope:t,...T,children:rI(g)?g(T):r})}var Hj="CheckboxTrigger",Wj=b.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:l,value:c,disabled:d,checked:f,required:m,setControl:p,setChecked:g,hasConsumerStoppedPropagationRef:v,isFormControl:N,bubbleInput:k}=zg(Hj,e),w=et(i,p),j=b.useRef(f);return b.useEffect(()=>{const S=l==null?void 0:l.form;if(S){const E=()=>g(j.current);
388return S.addEventListener("reset",E),()=>S.removeEventListener("reset",E)}},[l,g]),a.jsx($e.button,{type:"button",role:"checkbox","aria-checked":Ts(f)?"mixed":f,"aria-required":m,"data-state":Xj(f),"data-disabled":d?"":void 0,disabled:d,value:c,...r,ref:w,onKeyDown:Ue(t,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Ue(n,S=>{g(E=>Ts(E)?!0:!E),k&&N&&(v.current=S.isPropagationStopped(),v.current||S.stopPropagation())})})});Wj.displayName=Hj;var qg=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:l,required:c,disabled:d,value:f,onCheckedChange:m,form:p,...g}=e;return a.jsx(nI,{__scopeCheckbox:n,checked:i,defaultChecked:l,disabled:d,required:c,onCheckedChange:m,name:r,form:p,value:f,internal_do_not_use_render:({isFormControl:v})=>a.jsxs(a.Fragment,{children:[a.jsx(Wj,{...g,ref:t,__scopeCheckbox:n}),v&&a.jsx(Yj,{__scopeCheckbox:n})]})})});qg.displayName=kd;var Kj="CheckboxIndicator",Gj=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,l=zg(Kj,n);return a.jsx($g,{present:r||Ts(l.checked)||l.checked===!0,children:a.jsx($e.span,{"data-state":Xj(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});Gj.displayName=Kj;var Qj="CheckboxBubbleInput",Yj=b.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:l,defaultChecked:c,required:d,disabled:f,name:m,value:p,form:g,bubbleInput:v,setBubbleInput:N}=zg(Qj,e),k=et(n,N),w=sg(l),j=og(r);b.useEffect(()=>{const E=v;if(!E)return;const P=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(P,"checked").set,V=!i.current;if(w!==l&&A){const z=new Event("click",{bubbles:V});E.indeterminate=Ts(l),A.call(E,Ts(l)?!1:l),E.dispatchEvent(z)}},[v,w,l,i]);const S=b.useRef(Ts(l)?!1:l);return a.jsx($e.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??S.current,required:d,disabled:f,name:m,value:p,form:g,...t,tabIndex:-1,ref:k,style:{...t.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Yj.displayName=Qj;function rI(e){return typeof e=="function"}function Ts(e){return e==="indeterminate"}function Xj(e){return Ts(e)?"indeterminate":e?"checked":"unchecked"}const $i=b.forwardRef(({className:e,...t},n)=>a.jsx(qg,{ref:n,className:Ye("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:a.jsx(Gj,{className:Ye("flex items-center justify-center text-current"),children:a.jsx(qi,{className:"h-4 w-4"})})}));$i.displayName=qg.displayName;var sI="Label",Jj=b.forwardRef((e,t)=>a.jsx($e.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Jj.displayName=sI;var Zj=Jj;const oI=ld("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tn=b.forwardRef(({className:e,...t},n)=>a.jsx(Zj,{ref:n,className:Ye(oI(),e),...t}));tn.displayName=Zj.displayName;function iI(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 yp=1;class aI{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{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,...i}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:yp++,c=this.toasts.find(f=>f.id===l),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),c?this.toasts=this.toasts.map(f=>f.id===l?(this.publish({...f,...t,id:l,title:r}),{...f,...t,id:l,dismissible:d,title:r}):f):this.addToast({title:r,...i,dismissible:d,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>
vendor: 3,038 bytes, line 388
388this.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 i=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,c;const d=i.then(async m=>{if(c=["resolve",m],yn.isValidElement(m))l=!1,this.create({id:r,type:"default",message:m});else if(cI(m)&&!m.ok){l=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${m.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${m.status}`):n.description,k=typeof g=="object"&&!yn.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...k})}else if(m instanceof Error){l=!1;const g=typeof n.error=="function"?await n.error(m):n.error,v=typeof n.description=="function"?await n.description(m):n.description,k=typeof g=="object"&&!yn.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...k})}else if(n.success!==void 0){l=!1;const g=typeof n.success=="function"?await n.success(m):n.success,v=typeof n.description=="function"?await n.description(m):n.description,k=typeof g=="object"&&!yn.isValidElement(g)?g:{message:g};this.create({id:r,type:"success",description:v,...k})}}).catch(async m=>{if(c=["reject",m],n.error!==void 0){l=!1;const p=typeof n.error=="function"?await n.error(m):n.error,g=typeof n.description=="function"?await n.description(m):n.description,N=typeof p=="object"&&!yn.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,...N})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((m,p)=>d.then(()=>c[0]==="reject"?p(c[1]):m(c[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||yp++;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 An=new aI,lI=(e,t)=>{const n=(t==null?void 0:t.id)||yp++;return An.addToast({title:e,...t,id:n}),n},cI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",uI=lI,dI=()=>An.toasts,fI=()=>An.getActiveToasts(),Ge=Object.assign(uI,{success:An.success,info:An.info,warning:An.warning,error:An.error,custom:An.custom,message:An.message,promise:An.promise,dismiss:An.dismiss,loading:An.loading},{getHistory:dI,getToasts:fI});iI
vendor: 14,873 bytes, line 388
388("[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;left: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 
388hI(){const[e,t]=b.useState({name:"",prayer_text:"",is_anonymous:!1}),[n,r]=b.useState(!1),i=nn(),{data:l,isLoading:c}=Ot({queryKey:["prayers"],queryFn:()=>Me.entities.PrayerRequest.filter({status:"approved"},"-created_date",10),initialData:[]}),d=yt({mutationFn:m=>Me.entities.PrayerRequest.create(m),onSuccess:()=>{i.invalidateQueries({queryKey:["prayers"]}),r(!0),t({name:"",prayer_text:"",is_anonymous:!1}),setTimeout(()=>r(!1),5e3),Ge.success("Pedido enviado com sucesso!")}}),f=m=>{if(m.preventDefault(),!e.prayer_text.trim()){Ge.error("Por favor, escreva seu pedido de oração.");return}d.mutate(e)};return a.jsx("div",{className:"min-h-screen py-12 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-pink-100 px-4 py-2 rounded-full mb-4",children:[a.jsx(ht,{className:"w-4 h-4 text-pink-600"}),a.jsx("span",{className:"text-sm font-medium text-pink-900",children:"ORAÇÃO"})]}),a.jsx("h1",{className:"text-4xl font-bold mb-4 text-gray-900",children:"Pedidos de Oração"}),a.jsx("p",{className:"text-xl text-gray-600",children:"Compartilhe suas necessidades e oremos juntos"})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[a.jsx(Q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:a.jsxs(le,{className:"shadow-xl border-2 border-pink-100",children:[a.jsx(dr,{className:"bg-gradient-to-br from-pink-50 to-purple-50 border-b border-pink-100",children:a.jsxs(fr,{className:"flex items-center gap-2 text-2xl",children:[a.jsx(_s,{className:"w-6 h-6 text-pink-600"}),"Envie seu Pedido"]})}),a.jsx(de,{className:"p-6",children:a.jsx(vS,{mode:"wait",children:n?a.jsxs(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"py-12 text-center",children:[a.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:a.jsx(Fr,{className:"w-10 h-10 text-green-600"})}),a.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Pedido Enviado!"}),a.jsx("p",{className:"text-gray-600",children:"Obrigado por compartilhar. Estaremos orando por você."})]}):a.jsxs(Q.form,{initial:{opacity:1},exit:{opacity:0},onSubmit:f,className:"space-y-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(tn,{htmlFor:"name",children:"Seu Nome"}),a.jsx(He,{id:"name",value:e.name,onChange:m=>t({...e,name:m.target.value}),placeholder:"Digite seu nome",disabled:e.is_anonymous,className:"border-pink-200 focus:border-pink-400"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(tn,{htmlFor:"prayer_text",children:"Seu Pedido de Oração *"}),a.jsx($r,{id:"prayer_text",value:e.prayer_text,onChange:m=>t({...e,prayer_text:m.target.value}),placeholder:"Compartilhe seu pedido de oração...",rows:6,className:"border-pink-200 focus:border-pink-400 resize-none",required:!0})]}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx($i,{id:"anonymous",checked:e.is_anonymous,onCheckedChange:m=>t({...e,is_anonymous:m})}),a.jsx(tn,{htmlFor:"anonymous",className:"text-sm font-normal cursor-pointer",children:"Enviar anonimamente"})]}),a.jsx(ae,{type:"submit",className:"w-full bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-lg py-6",disabled:d.isPending,children:d.isPending?a.jsxs(a.Fragment,{children:[a.jsx(Vu,{className:"w-5 h-5 mr-2 animate-spin"}),"Enviando..."]}):a.jsxs(a.Fragment,{children:[a.jsx(Mi,{className:"w-5 h-5 mr-2"}),"Enviar Pedido"]})})]})})})]})}),a.jsx(Q.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},children:a.jsxs(le,{className:"shadow-xl border-2 border-amber-100",children:[a.jsx(dr,{className:"bg-gradient-to-br from-amber-50 to-orange-50 border-b border-amber-100",children:a.jsxs(fr,{className:"flex items-center gap-2 text-2xl",children:[a.jsx(ht,{className:"w-6 h-6 text-amber-600"}),"Pedidos Recentes"]})}),a.jsx(de,{className:"p-6",children:a.jsx("div",{className:"space-y-4 max-h-[600px] overflow-y-auto",children:c?a.jsxs("div",{className:"text-center py-12 text-gray-500",children:[a.jsx(Vu,{className:"w-8 h-8 animate-spin mx-auto mb-2"}),"Carregando..."]}):l.length>0?l.map((m,p)=>a.jsx(Q.div,{initial:{opacity:0,y:10}
388,animate:{opacity:1,y:0},transition:{delay:p*.1},className:"bg-gradient-to-br from-white to-amber-50 p-4 rounded-lg border border-amber-200 hover:shadow-md transition-shadow",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-amber-400 to-orange-500 rounded-full flex items-center justify-center flex-shrink-0",children:a.jsx(ht,{className:"w-5 h-5 text-white"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-semibold text-gray-900 mb-1",children:m.is_anonymous?"Anônimo":m.name||"Anônimo"}),a.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:m.prayer_text}),a.jsx("p",{className:"text-xs text-gray-500 mt-2",children:new Date(m.created_date).toLocaleDateString("pt-BR")})]})]})},m.id)):a.jsxs("div",{className:"text-center py-12 text-gray-500",children:[a.jsx(ht,{className:"w-12 h-12 mx-auto mb-3 text-gray-400"}),a.jsx("p",{children:"Nenhum pedido ainda."}),a.jsx("p",{className:"text-sm",children:"Seja o primeiro a compartilhar!"})]})})})]})})]})]})})}const li=[{text:"Porque Deus amou o mundo de tal maneira que deu o seu Filho unigênito, para que todo aquele que nele crê não pereça, mas tenha a vida eterna.",reference:"João 3:16"},{text:"Posso todas as coisas naquele que me fortalece.",reference:"Filipenses 4:13"},{text:"O Senhor é o meu pastor; nada me faltará.",reference:"Salmos 23:1"},{text:"Confia no Senhor de todo o teu coração e não te estribes no teu próprio entendimento.",reference:"Provérbios 3:5"},{text:"Entrega o teu caminho ao Senhor; confia nele, e ele o fará.",reference:"Salmos 37:5"},{text:"Eis que estou convosco todos os dias, até a consumação dos séculos.",reference:"Mateus 28:20"},{text:"Porque eu bem sei os pensamentos que tenho a vosso respeito, diz o Senhor; pensamentos de paz, e não de mal, para vos dar o fim que esperais.",reference:"Jeremias 29:11"},{text:"O amor é sofredor, é benigno; o amor não é invejoso; o amor não trata com leviandade, não se ensoberbece.",reference:"1 Coríntios 13:4"}],mI=[{name:"Esperança",emoji:"🌟"},{name:"Amor",emoji:"❤️"},{name:"Força",emoji:"💪"},{name:"Paz",emoji:"🕊️"},{name:"Fé",emoji:"✝️"},{name:"Gratidão",emoji:"🙏"}];function pI(){const[e,t]=b.useState(li[0]),[n,r]=b.useState(!1),[i,l]=b.useState(null),c=async(d=null)=>{r(!0);try{const f=d?`Gere um versículo bíblico em português sobre ${d} e formate como JSON com 'text' e 'reference'.`:"Gere um versículo bíblico inspirador em português e formate como JSON com 'text' e 'reference'.",m=await Me.integrations.Core.InvokeLLM({prompt:f,response_json_schema:{type:"object",properties:{text:{type:"string"},reference:{type:"string"}}}});if(m.text&&m.reference)t(m);else{const p=li[Math.floor(Math.random()*li.length)];t(p)}}catch{const m=li[Math.floor(Math.random()*li.length)];t(m)}r(!1)};return a.jsx("div",{className:"min-h-screen py-12 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-blue-100 px-4 py-2 rounded-full mb-4",children:[a.jsx(vo,{className:"w-4 h-4 text-blue-600"}),a.jsx("span",{className:"text-sm font-medium text-blue-900",children:"A PALAVRA"})]}),a.jsx("h1",{className:"text-4xl font-bold mb-4 text-gray-900",children:"Versículos Bíblicos"}),a.jsx("p",{className:"text-xl text-gray-600",children:"Encontre inspiração e fortalecimento na Palavra de Deus"})]}),a.jsxs("div",{className:"mb-8",children:[a.jsx("h2",{className:"text-center text-lg font-semibold text-gray-700 mb-4",children:"Buscar por tema:"}),a.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:mI.map(d=>a.jsxs(ae,{variant:i===d.name?"default":"outline",onClick:()=>{l(d.name),c(d.name)},className:`${i===d.name?"bg-gradient-to-r from-blue-500 to-purple-600":"hover:border-blue-400"}`,children:[a.jsx("span",{className:"mr-2",children:d.emoji}),d.name]},d.name))})]}),a.jsx(vS,{mode:"wait",children:a.jsx(Q.div,{initial:{opacity:0,scale:.95,y:20}
388,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-20},transition:{duration:.3},children:a.jsxs(le,{className:"relative overflow-hidden shadow-2xl border-2 border-blue-200",children:[a.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50 opacity-50"}),a.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-gradient-to-br from-amber-200 to-orange-200 rounded-full blur-3xl opacity-20 -translate-y-32 translate-x-32"}),a.jsxs(de,{className:"relative p-12 md:p-16",children:[a.jsx("div",{className:"flex justify-center mb-8",children:a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-amber-400 to-orange-500 rounded-full flex items-center justify-center shadow-lg",children:a.jsx(_s,{className:"w-8 h-8 text-white"})})}),a.jsxs("blockquote",{className:"text-xl md:text-2xl text-gray-800 italic mb-8 leading-relaxed text-center font-serif",children:['"',e.text,'"']}),a.jsxs("p",{className:"text-center text-xl font-bold bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent mb-8",children:["— ",e.reference]}),a.jsx("div",{className:"flex justify-center",children:a.jsx(ae,{onClick:()=>{l(null),c()},disabled:n,size:"lg",className:"bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 shadow-lg",children:n?a.jsxs(a.Fragment,{children:[a.jsx(Vu,{className:"w-5 h-5 mr-2 animate-spin"}),"Buscando..."]}):a.jsxs(a.Fragment,{children:[a.jsx(aT,{className:"w-5 h-5 mr-2"}),"Novo Versículo"]})})})]})]})},e.reference)}),a.jsxs("div",{className:"mt-12",children:[a.jsx("h2",{className:"text-2xl font-bold text-center mb-6 text-gray-900",children:"Versículos Populares"}),a.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:li.slice(0,6).map((d,f)=>a.jsx(Q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:f*.05},children:a.jsx(le,{className:"cursor-pointer hover:shadow-lg transition-all border-2 border-transparent hover:border-blue-200 group",onClick:()=>t(d),children:a.jsxs(de,{className:"p-6",children:[a.jsxs("p",{className:"text-gray-700 mb-2 line-clamp-2 group-hover:text-blue-700 transition-colors",children:['"',d.text,'"']}),a.jsx("p",{className:"text-sm font-semibold text-amber-600",children:d.reference})]})})},f))})]})]})})}const gI=ld("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Co({className:e,variant:t,...n}){return a.jsx("div",{className:Ye(gI({variant:t}),e),...n})}const kw={assistente_oracao:{name:"Assistente de Oração",description:"Recebe pedidos de oração, oferece conforto espiritual e compartilha versículos bíblicos",icon:ht,color:"from-pink-500 to-rose-600",bgColor:"bg-pink-50",borderColor:"border-pink-200"},gestor_programacao:{name:"Gestor de Programação",description:"Gerencia a grade de programas, horários e informações da rádio",icon:lr,color:"from-blue-500 to-indigo-600",bgColor:"bg-blue-50",borderColor:"border-blue-200"},moderador_oracao:{name:"Moderador de Oração",description:"Revisa e aprova pedidos de oração, mantendo a qualidade do conteúdo",icon:_s,color:"from-purple-500 to-violet-600",bgColor:"bg-purple-50",borderColor:"border-purple-200"}};function xI(){const[e,t]=b.useState(null),n=Object.keys(kw);return a.jsx("div",{className:"min-h-screen py-12 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-indigo-100 px-4 py-2 rounded-full mb-4",children:[a.jsx(bm,{className:"w-4 h-4 text-indigo-600"}),a.jsx("span",{className:"text-sm font-medium text-indigo-900",children:"ASSISTENTES IA"})]}),a.jsx("h1",{className:"text-4xl font-bold mb-4 text-gray-900",children:"Assistentes Inteligentes"}),a.jsx("p",{className:"text-xl text-gray-600",children:"Nossos agentes de IA estão aqui para ajudar você"})]}),a.jsx(le,{className:"mb-8 border-2 border-amber-200 bg-gradient-to-r from-amber-50 to-orange-50",children:a.jsx(de,{className:"p-6",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center flex-shrink-0",children:a.jsx(sv,{className:"w-6 h-6 text-white"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Converse via WhatsApp"}),a.jsx("p",{className:"text-gray-700 mb-2",children:'Todos os nossos assistentes estão disponíveis no WhatsApp! Clique em "Conectar WhatsApp" em qualquer agente abaixo para começar a conversar.'}),a.jsx("p",{className:"text-sm text-gray-600",children:"💬 Atendimento 24/7 • 🤖 Respostas instantâneas • 🙏 Sempre disponível para você"})]})]})})}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map((r,i)=>{const l=kw[r],c=l.icon;return a.jsx(Q.div,{initial:{opacity:0,y:20}
388,animate:{opacity:1,y:0},transition:{delay:i*.1},children:a.jsxs(le,{className:`h-full hover:shadow-2xl transition-all border-2 ${l.borderColor} ${l.bgColor} group`,children:[a.jsxs(dr,{children:[a.jsx("div",{className:`w-14 h-14 bg-gradient-to-br ${l.color} rounded-2xl flex items-center justify-center mb-4 group-hover:scale-110 transition-transform`,children:a.jsx(c,{className:"w-7 h-7 text-white"})}),a.jsx(fr,{className:"text-xl font-bold text-gray-900",children:l.name})]}),a.jsxs(de,{className:"space-y-4",children:[a.jsx("p",{className:"text-gray-700 leading-relaxed",children:l.description}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(Co,{variant:"outline",className:"bg-white",children:[a.jsx(bm,{className:"w-3 h-3 mr-1"}),"IA Avançada"]}),a.jsx(Co,{variant:"outline",className:"bg-white",children:"24/7"})]}),a.jsx("div",{className:"pt-4 space-y-2",children:a.jsx("a",{href:Me.agents.getWhatsAppConnectURL(r),target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{className:`w-full bg-gradient-to-r ${l.color} hover:opacity-90`,children:[a.jsx(sv,{className:"w-4 h-4 mr-2"}),"Conectar WhatsApp"]})})})]})]})},r)})}),a.jsxs("div",{className:"mt-12 grid md:grid-cols-2 gap-6",children:[a.jsxs(le,{className:"border-2 border-green-200 bg-green-50",children:[a.jsx(dr,{children:a.jsxs(fr,{className:"flex items-center gap-2",children:[a.jsx(ht,{className:"w-5 h-5 text-green-600"}),"Como Funciona?"]})}),a.jsxs(de,{className:"space-y-2 text-gray-700",children:[a.jsx("p",{children:'✅ Clique em "Conectar WhatsApp"'}),a.jsx("p",{children:"✅ Faça login se necessário"}),a.jsx("p",{children:"✅ Autorize a conexão"}),a.jsx("p",{children:"✅ Comece a conversar!"})]})]}),a.jsxs(le,{className:"border-2 border-blue-200 bg-blue-50",children:[a.jsx(dr,{children:a.jsxs(fr,{className:"flex items-center gap-2",children:[a.jsx(_s,{className:"w-5 h-5 text-blue-600"}),"Recursos"]})}),a.jsxs(de,{className:"space-y-2 text-gray-700",children:[a.jsx("p",{children:"🤖 Inteligência Artificial avançada"}),a.jsx("p",{children:"📖 Conhecimento bíblico profundo"}),a.jsx("p",{children:"💬 Conversas naturais e empáticas"}),a.jsx("p",{children:"🔒 Suas conversas são privadas"})]})]})]})]})})}function yI(){const[e,t]=b.useState(""),[n,r]=b.useState("Todos"),{data:i,isLoading:l}=Ot({queryKey:["blog-posts"],queryFn:()=>Me.entities.BlogPost.filter({published:!0},"-created_date"),initialData:[]}),c=["Todos","Reflexão","Testemunho","Notícia","Estudo Bíblico"],d=i.filter(f=>{const m=f.title.toLowerCase().includes(e.toLowerCase())||f.content.toLowerCase().includes(e.toLowerCase()),p=n==="Todos"||f.category===n;return m&&p});return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-blue-500/10 to-indigo-500/10 border border-blue-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(vo,{className:"w-5 h-5 text-blue-600"}),a.jsx("span",{className:"text-sm font-bold text-blue-900 tracking-[0.2em] uppercase",children:"Blog"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Reflexões e Artigos"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Conteúdo inspirador para sua jornada espiritual"})]}),a.jsxs("div",{className:"mb-12 space-y-6",children:[a.jsxs(Q.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"relative max-w-2xl mx-auto",children:[a.jsx(w1,{className:"absolute left-5 top-1/2 transform -translate-y-1/2 text-slate-400 w-5 h-5"}),a.jsx(He,{placeholder:"Buscar artigos...",value:e,onChange:f=>t(f.target.value),className:"pl-14 pr-6 py-7 text-lg border-2 border-slate-200 focus:border-blue-400 rounded-2xl shadow-lg"})]}),a.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:c.map(f=>
388a.jsx(Co,{variant:n===f?"default":"outline",className:`cursor-pointer px-6 py-3 text-sm font-semibold transition-all duration-300 ${n===f?"bg-gradient-to-r from-amber-500 to-orange-600 text-white shadow-xl shadow-amber-500/30 scale-105":"bg-white hover:bg-amber-50 border-2 border-slate-200 hover:border-amber-300 text-slate-700"}`,onClick:()=>r(f),children:f},f))})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:l?a.jsxs("div",{className:"text-center col-span-full py-20",children:[a.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-4 border-slate-200 border-t-blue-600 mb-4"}),a.jsx("p",{className:"text-slate-500 font-medium",children:"Carregando..."})]}):d.length>0?d.map((f,m)=>a.jsx(Q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:m*.1},whileHover:{y:-8},children:a.jsxs(le,{className:"h-full hover:shadow-2xl transition-all duration-300 border-2 border-slate-200 hover:border-amber-300 group overflow-hidden bg-gradient-to-br from-white to-slate-50/30",children:[f.image_url&&a.jsxs("div",{className:"relative overflow-hidden",children:[a.jsx("img",{src:f.image_url,alt:f.title,className:"w-full h-56 object-cover group-hover:scale-110 transition-transform duration-500"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),a.jsxs(de,{className:"p-8",children:[a.jsx(Co,{className:"mb-4 bg-gradient-to-r from-blue-500 to-indigo-600 text-white px-4 py-1.5 text-xs font-bold shadow-lg",children:f.category}),a.jsx("h3",{className:"text-2xl font-black mb-3 text-slate-900 group-hover:text-amber-600 transition-colors leading-tight tracking-tight",children:f.title}),f.excerpt&&a.jsx("p",{className:"text-slate-600 mb-6 line-clamp-3 leading-relaxed",children:f.excerpt}),a.jsxs("div",{className:"flex items-center gap-5 text-sm text-slate-500 border-t border-slate-200 pt-4",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(lr,{className:"w-4 h-4 text-blue-600"}),a.jsx("span",{className:"font-medium",children:new Date(f.created_date).toLocaleDateString("pt-BR")})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(N1,{className:"w-4 h-4 text-blue-600"}),a.jsx("span",{className:"font-medium",children:f.created_by})]})]})]})]})},f.id)):a.jsxs("div",{className:"text-center col-span-full py-20",children:[a.jsx(vo,{className:"w-16 h-16 text-slate-300 mx-auto mb-4"}),a.jsx("p",{className:"text-slate-500 text-lg font-medium",children:"Nenhum artigo encontrado."})]})})]})})}function vI(){const[e,t]=b.useState({name:"",email:"",phone:"",subject:"",message:""}),[n,r]=b.useState(!1),i=yt({mutationFn:c=>Me.entities.ContactMessage.create(c),onSuccess:()=>{r(!0),t({name:"",email:"",phone:"",subject:"",message:""}),setTimeout(()=>r(!1),5e3),Ge.success("Mensagem enviada com sucesso!")}}),l=c=>{c.preventDefault(),i.mutate(e)};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-emerald-500/10 to-teal-500/10 border border-emerald-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(bo,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"text-sm font-bold text-emerald-900 tracking-[0.2em] uppercase",children:"Contato"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Entre em Contato"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Estamos aqui para ouvir você"})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[a.jsx(Q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:a.jsxs(le,{className:"shadow-2xl border-2 border-slate-200 bg-gradient-to-br from-white to-slate-50/30",children:[a.jsx(dr,{className:"bg-gradient-to-br from-emerald-50 to-teal-50 border-b border-emerald-100 pb-8",children:a.jsx(fr,{className:"text-3xl font-black text-slate-900 tracking-tight",children:"Envie sua Mensagem"})}),a.jsx(de,{children:n?a.jsxs(Q.div,{initial:{opacity:0,scale:.9}
388,animate:{opacity:1,scale:1},className:"py-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full flex items-center justify-center mx-auto mb-6 shadow-2xl shadow-green-500/30",children:a.jsx(Fr,{className:"w-12 h-12 text-white"})}),a.jsx("h3",{className:"text-3xl font-black text-slate-900 mb-3",children:"Mensagem Enviada!"}),a.jsx("p",{className:"text-slate-600 text-lg",children:"Responderemos em breve."})]}):a.jsxs("form",{onSubmit:l,className:"space-y-6",children:[a.jsx(He,{placeholder:"Seu Nome *",value:e.name,onChange:c=>t({...e,name:c.target.value}),required:!0,className:"py-6 px-4 border-2 border-slate-200 focus:border-emerald-400 rounded-xl"}),a.jsx(He,{type:"email",placeholder:"Seu Email *",value:e.email,onChange:c=>t({...e,email:c.target.value}),required:!0,className:"py-6 px-4 border-2 border-slate-200 focus:border-emerald-400 rounded-xl"}),a.jsx(He,{placeholder:"Telefone",value:e.phone,onChange:c=>t({...e,phone:c.target.value}),className:"py-6 px-4 border-2 border-slate-200 focus:border-emerald-400 rounded-xl"}),a.jsx(He,{placeholder:"Assunto",value:e.subject,onChange:c=>t({...e,subject:c.target.value}),className:"py-6 px-4 border-2 border-slate-200 focus:border-emerald-400 rounded-xl"}),a.jsx($r,{placeholder:"Sua Mensagem *",rows:6,value:e.message,onChange:c=>t({...e,message:c.target.value}),required:!0,className:"border-2 border-slate-200 focus:border-emerald-400 rounded-xl resize-none"}),a.jsxs(ae,{type:"submit",className:"w-full bg-gradient-to-r from-emerald-500 via-teal-500 to-emerald-600 hover:from-emerald-400 hover:via-teal-400 hover:to-emerald-500 text-white shadow-xl shadow-emerald-500/30 hover:shadow-emerald-500/50 text-lg py-7 font-bold rounded-xl transition-all duration-300",disabled:i.isPending,children:[a.jsx(Mi,{className:"w-5 h-5 mr-2"}),i.isPending?"Enviando...":"Enviar Mensagem"]})]})})]})}),a.jsxs(Q.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"space-y-6",children:[a.jsx(le,{className:"shadow-2xl border-2 border-slate-200 overflow-hidden bg-gradient-to-br from-white to-slate-50/30",children:a.jsx(de,{className:"p-8",children:a.jsxs("div",{className:"space-y-6",children:[a.jsxs(Q.div,{whileHover:{x:5},className:"flex items-start gap-4 p-4 rounded-xl hover:bg-emerald-50/50 transition-all",children:[a.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-emerald-500 to-teal-600 rounded-xl flex items-center justify-center flex-shrink-0 shadow-lg shadow-emerald-500/30",children:a.jsx(b1,{className:"w-7 h-7 text-white"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-black text-slate-900 mb-1 text-lg",children:"Telefone"}),a.jsx("a",{href:"https://wa.me/5511981565347",target:"_blank",rel:"noopener noreferrer",className:"text-slate-600 hover:text-emerald-600 transition-colors text-lg block",children:"(11) 98156-5347"}),a.jsx("a",{href:"https://wa.me/5511981565347",target:"_blank",rel:"noopener noreferrer",className:"text-emerald-600 hover:underline text-sm font-semibold",children:"Chamar no WhatsApp"})]})]}),a.jsxs(Q.div,{whileHover:{x:5},className:"flex items-start gap-4 p-4 rounded-xl hover:bg-blue-50/50 transition-all",children:[a.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center flex-shrink-0 shadow-lg shadow-blue-500/30",children:a.jsx(bo,{className:"w-7 h-7 text-white"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-black text-slate-900 mb-1 text-lg",children:"Email"}),a.jsx("a",{href:"mailto:[email protected]",className:"text-slate-600 hover:text-blue-600 transition-colors text-lg",children:"[email protected]"})]})]}),a.jsxs(Q.div,{whileHover:{x:5},className:"flex items-start gap-4 p-4 rounded-xl hover:bg-amber-50/50 transition-all",children:[a.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-amber-500 to-orange-600 rounded-xl flex items-center justify-center flex-shrink-0 shadow-lg shadow-amber-500/30",children:a.jsx(Ip,{className:"w-7 h-7 text-white"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-black text-slate-900 mb-1 text-lg",children:"Endereço"}),a.jsx("p",{className:"text-slate-600 text-lg",children:"São Paulo, Brasil"})]})]})]})})}),a.jsx(le,{className:"shadow-2xl border-2 border-amber-200 overflow-hidden bg-gradient-to-br from-amber-50 to-orange-50/30",children:a.jsxs(de,{className:"p-8",children:[a.jsx("h3",{className:"font-black text-slate-900 mb-4 text-2xl tracking-tight",children:"Horário de Atendimento"}),a.jsxs("div",{className:"space-y-3 text-slate-700",children:[a.jsx("p",{className:"text-lg",children:"📻 Transmitindo 24 horas por dia"}),a.jsx("p",{className:"text-lg",children:"📧 Respondemos emails em até 48h"}),a.jsx("p",{className:"text-lg",children:"📱 WhatsApp disponível durante o dia"})]})]})})]})]})]})})}function bI(){const[e,t]=b.useState("Todos"),{data:n,isLoading:r}=Ot({queryKey:["photos"],queryFn:()=>Me.entities.Photo.list("-created_date"),initialData:[]}),i=["Todos","Eventos","Equipe","Ouvintes","Estúdio"],l=e==="Todos"?n:n.filter(c=>c.category===e);return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20}
388,animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-indigo-500/10 to-purple-500/10 border border-indigo-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(Oi,{className:"w-5 h-5 text-indigo-600"}),a.jsx("span",{className:"text-sm font-bold text-indigo-900 tracking-[0.2em] uppercase",children:"Galeria"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Nossa Galeria de Fotos"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Momentos especiais da Rádio Caridade"})]}),a.jsx("div",{className:"flex flex-wrap justify-center gap-3 mb-12",children:i.map(c=>a.jsx(Co,{variant:e===c?"default":"outline",className:`cursor-pointer px-6 py-3 text-sm font-semibold transition-all duration-300 ${e===c?"bg-gradient-to-r from-indigo-500 via-purple-500 to-indigo-600 text-white shadow-xl shadow-indigo-500/30 scale-105":"bg-white hover:bg-indigo-50 border-2 border-slate-200 hover:border-indigo-300 text-slate-700"}`,onClick:()=>t(c),children:c},c))}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:r?a.jsxs("div",{className:"col-span-full text-center py-20",children:[a.jsx("div",{className:"inline-block animate-spin rounded-full h-16 w-16 border-4 border-slate-200 border-t-indigo-600 mb-4"}),a.jsx("p",{className:"text-slate-500 font-medium text-lg",children:"Carregando..."})]}):l.length>0?l.map((c,d)=>a.jsx(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:d*.05},whileHover:{y:-8},children:a.jsx(le,{className:"overflow-hidden hover:shadow-2xl transition-all duration-300 group border-2 border-slate-200 hover:border-indigo-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs("div",{className:"relative aspect-square",children:[a.jsx("img",{src:c.image_url,alt:c.title||"Foto",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:a.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-5 text-white",children:[c.title&&a.jsx("h3",{className:"font-black mb-2 text-lg tracking-tight",children:c.title}),c.description&&a.jsx("p",{className:"text-sm text-gray-200 leading-relaxed",children:c.description})]})})]})})},c.id)):a.jsx(le,{className:"col-span-full border-2 border-dashed border-slate-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs("div",{className:"p-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-slate-100 rounded-full flex items-center justify-center mx-auto mb-6",children:a.jsx(Oi,{className:"w-12 h-12 text-slate-400"})}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-3",children:"Nenhuma foto encontrada"}),a.jsx("p",{className:"text-slate-500 text-lg",children:"Não há fotos nesta categoria no momento."})]})})})]})})}function wI(){const[e,t]=b.useState({name:"",testimony:"",is_anonymous:!1}),[n,r]=b.useState(!0),i=nn(),{data:l,isLoading:c}=Ot({queryKey:["testimonies"],queryFn:()=>Me.entities.Testimony.filter({status:"approved"},"-created_date",20),initialData:[]}),d=yt({mutationFn:m=>Me.entities.Testimony.create(m),onSuccess:()=>{i.invalidateQueries({queryKey:["testimonies"]}
388),t({name:"",testimony:"",is_anonymous:!1}),r(!1),Ge.success("Testemunho enviado! Será publicado após aprovação."),setTimeout(()=>r(!0),5e3)}}),f=m=>{m.preventDefault(),d.mutate(e)};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-pink-500/10 to-rose-500/10 border border-pink-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(ht,{className:"w-5 h-5 text-pink-600"}),a.jsx("span",{className:"text-sm font-bold text-pink-900 tracking-[0.2em] uppercase",children:"Testemunhos"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Testemunhos de Fé"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Histórias de transformação e esperança"})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[a.jsx(Q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:a.jsx(le,{className:"shadow-2xl border-2 border-slate-200 sticky top-4 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs(de,{className:"p-8",children:[a.jsx("h2",{className:"text-3xl font-black mb-6 text-slate-900 tracking-tight",children:"Compartilhe seu Testemunho"}),n?a.jsxs("form",{onSubmit:f,className:"space-y-6",children:[a.jsx(He,{placeholder:"Seu Nome",value:e.name,onChange:m=>t({...e,name:m.target.value}),disabled:e.is_anonymous,className:"py-6 px-4 border-2 border-slate-200 focus:border-pink-400 rounded-xl"}),a.jsx($r,{placeholder:"Compartilhe seu testemunho... *",rows:8,value:e.testimony,onChange:m=>t({...e,testimony:m.target.value}),required:!0,className:"border-2 border-slate-200 focus:border-pink-400 rounded-xl resize-none"}),a.jsxs("div",{className:"flex items-center space-x-3 p-4 bg-slate-50 rounded-xl",children:[a.jsx($i,{id:"anonymous",checked:e.is_anonymous,onCheckedChange:m=>t({...e,is_anonymous:m}),className:"h-5 w-5"}),a.jsx(tn,{htmlFor:"anonymous",className:"cursor-pointer font-semibold text-slate-700",children:"Enviar anonimamente"})]}),a.jsxs(ae,{type:"submit",className:"w-full bg-gradient-to-r from-pink-500 via-rose-500 to-pink-600 hover:from-pink-400 hover:via-rose-400 hover:to-pink-500 text-white shadow-xl shadow-pink-500/30 hover:shadow-pink-500/50 text-lg py-7 font-bold rounded-xl transition-all duration-300",disabled:d.isPending,children:[a.jsx(Mi,{className:"w-5 h-5 mr-2"}),d.isPending?"Enviando...":"Enviar Testemunho"]})]}):a.jsxs(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center py-12",children:[a.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-pink-500 to-rose-600 rounded-full flex items-center justify-center mx-auto mb-4 shadow-2xl shadow-pink-500/30",children:a.jsx(ht,{className:"w-10 h-10 text-white"})}),a.jsx("h3",{className:"text-2xl font-black text-slate-900 mb-2",children:"Testemunho Enviado!"}),a.jsx("p",{className:"text-slate-600",children:"Será publicado após aprovação."})]})]})})}),a.jsx("div",{className:"space-y-6",children:c?a.jsxs("div",{className:"text-center py-20",children:[a.jsx("div",{className:"inline-block animate-spin rounded-full h-16 w-16 border-4 border-slate-200 border-t-pink-600 mb-4"}),a.jsx("p",{className:"text-slate-500 font-medium text-lg",children:"Carregando..."})]}):l.length>0?l.map((m,p)=>a.jsx(Q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:p*.1},whileHover:{y:-5},children:a.jsx(le,{className:`hover:shadow-2xl transition-all duration-300 border-2 overflow-hidden ${m.status==="featured"?"border-amber-300 bg-gradient-to-br from-amber-50 to-orange-50/30":"border-slate-200 bg-gradient-to-br from-white to-slate-50/30"}`,children:a.jsx(de,{className:"p-8",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-pink-500 to-rose-600 rounded-full flex items-center justify-center flex-shrink-0 shadow-lg shadow-pink-500/30",children:a.jsx(ht,{className:"w-7 h-7 text-white"})}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx("p",{className:"font-black text-slate-900 text-lg",children:m.is_anonymous?"Anônimo":m.name||"Anônimo"}),m.status==="featured"&&a.jsxs(Co,{className:"bg-gradient-to-r from-amber-500 to-orange-600 text-white px-3 py-1 shadow-lg shadow-amber-500/30",children:[a.jsx(_s,{className:"w-3 h-3 mr-1"}),"Destaque"]})]}),a.jsxs("p",{className:"text-slate-700 leading-relaxed text-lg mb-4 italic",children:['"',m.testimony,'"']}),a.jsx("p",{className:"text-sm text-slate-500 font-semibold",children:new Date(m.created_date).toLocaleDateString("pt-BR")})]})]})})})},m.id)):a.jsx(le,{className:"border-2 border-dashed border-slate-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs(de,{className:"p-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-slate-100 rounded-full flex items-center justify-center mx-auto mb-6",children:a.jsx(ht,{className:"w-12 h-12 text-slate-400"})}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-3",children:"Nenhum testemunho ainda"}),a.jsx("p",{className:"text-slate-500 text-lg",children:"Seja o primeiro a compartilhar!"})]})})})]})]})})}function Xn(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 Eo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const e2=6048e5,NI=864e5;let SI={};function Cd(){return SI}function kl(e,t){var d,f,m,p;const n=Cd(),r=(t==null?void 0:t.weekStartsOn)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((p=(m=n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,i=Xn(e),l=i.getDay(),c=(l<r?7:0)+l-r;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}
vendor: 19,147 bytes, line 388
388function nd(e){return kl(e,{weekStartsOn:1})}function t2(e){const t=Xn(e),n=t.getFullYear(),r=Eo(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=nd(r),l=Eo(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=nd(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function Cw(e){const t=Xn(e);return t.setHours(0,0,0,0),t}function Ew(e){const t=Xn(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 jI(e,t){const n=Cw(e),r=Cw(t),i=+n-Ew(n),l=+r-Ew(r);return Math.round((i-l)/NI)}function kI(e){const t=t2(e),n=Eo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nd(n)}function CI(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function EI(e){if(!CI(e)&&typeof e!="number")return!1;const t=Xn(e);return!isNaN(Number(t))}function PI(e){const t=Xn(e),n=Eo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const TI={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"}},_I=(e,t,n)=>{let r;const i=TI[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function lm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const RI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},AI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},OI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},MI={date:lm({formats:RI,defaultWidth:"full"}),time:lm({formats:AI,defaultWidth:"full"}),dateTime:lm({formats:OI,defaultWidth:"full"})},DI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},LI=(e,t,n,r)=>DI[e];function Ga(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=n!=null&&n.width?String(n.width):c;i=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[d]||e.values[c]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const II={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VI={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"]},BI={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"]},UI={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"}},$I={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"}},zI=(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"},qI={ordinalNumber:zI,era:Ga({values:II,defaultWidth:"wide"}),quarter:Ga({values:FI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ga({values:VI,defaultWidth:"wide"}),day:Ga({values:BI,defaultWidth:"wide"}),dayPeriod:Ga({values:UI,defaultWidth:"wide",formattingValues:$I,defaultFormattingWidth:"wide"})};function Qa(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const c=l[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?WI(d,g=>g.test(c)):HI(d,g=>g.test(c));let m;m=e.valueCallback?e.valueCallback(f):f,m=n.valueCallback?n.valueCallback(m):m;const p=t.slice(c.length);return{value:m,rest:p}}}function HI(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function WI(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function KI(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let c=e.valueCallback?e.valueCallback(l[0]):l[0];c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(i.length);return{value:c,rest:d}}}const GI=/^(\d+)(th|st|nd|rd)?/i,QI=/\d+/i,YI={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},XI={any:[/^b/i,/^(a|c)/i]},JI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZI={any:[/1/i,/2/i,/3/i,/4/i]},eF={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},tF={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]},nF={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},rF={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]},sF={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},oF={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}},iF={ordinalNumber:KI({matchPattern:GI,parsePattern:QI,valueCallback:e=>parseInt(e,10)}),era:Qa({matchPatterns:YI,defaultMatchWidth:"wide",parsePatterns:XI,defaultParseWidth:"any"}),quarter:Qa({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:ZI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qa({matchPatterns:eF,defaultMatchWidth:"wide",parsePatterns:tF,defaultParseWidth:"any"}),day:Qa({matchPatterns:nF,defaultMatchWidth:"wide",parsePatterns:rF,defaultParseWidth:"any"}),dayPeriod:Qa({matchPatterns:sF,defaultMatchWidth:"any",parsePatterns:oF,defaultParseWidth:"any"})},aF={code:"en-US",formatDistance:_I,formatLong:MI,formatRelative:LI,localize:qI,match:iF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lF(e){const t=Xn(e);return jI(t,PI(t))+1}function cF(e){const t=Xn(e),n=+nd(t)-+kI(t);return Math.round(n/e2)+1}function n2(e,t){var p,g,v,N;const n=Xn(e),r=n.getFullYear(),i=Cd(),l=(t==null?void 0:t.firstWeekContainsDate)??((g=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((N=(v=i.locale)==null?void 0:v.options)==null?void 0:N.firstWeekContainsDate)??1,c=Eo(e,0);c.setFullYear(r+1,0,l),c.setHours(0,0,0,0);const d=kl(c,t),f=Eo(e,0);f.setFullYear(r,0,l),f.setHours(0,0,0,0);const m=kl(f,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=m.getTime()?r:r-1}function uF(e,t){var d,f,m,p;const n=Cd(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(m=n.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,i=n2(e,t),l=Eo(e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),kl(l,t)}function dF(e,t){const n=Xn(e),r=+kl(n,t)-+uF(n,t);return Math.round(r/e2)+1}function Je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ds={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Je(n+1,2)},d(e,t){return Je(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 Je(e.getHours()%12||12,t.length)},H(e,t){return Je(e.getHours(),t.length)},m(e,t){return Je(e.getMinutes(),t.length)},s(e,t){return Je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Je(i,t.length)}},ci={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pw={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ds.y(e,t)},Y:function(e,t,n,r){const i=n2(e,r),l=i>0?i:1-i;if(t==="YY"){const c=l%100;return Je(c,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):Je(l,t.length)},R:function(e,t){const n=t2(e);return Je(n,t.length)},u:function(e,t){const n=e.getFullYear();return Je(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 Je(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 Je(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 ds.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 Je(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 i=dF(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Je(i,t.length)},I:function(e,t,n){const r=cF(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ds.d(e,t)},D:function(e,t,n){const r=lF(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Je(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 i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return Je(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return Je(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Je(i,t.length);case"io":return n.ordinalNumber(i,{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 i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ci.noon:r===0?i=ci.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ci.evening:r>=12?i=ci.afternoon:r>=4?i=ci.morning:i=ci.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{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 ds.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ds.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ds.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ds.s(e,t)},S:function(e,t){return ds.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return _w(r);case"XXXX":case"XX":return no(r);case"XXXXX":case"XXX":default:return no(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return _w(r);case"xxxx":case"xx":return no(r);case"xxxxx":case"xxx":default:return no(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Tw(r,":");case"OOOO":default:return"GMT"+no(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Tw(r,":");case"zzzz":default:return"GMT"+no(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Je(r,t.length)},T:function(e,t,n){const r=e.getTime();return Je(r,t.length)}};function Tw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+Je(l,2)}function _w(e,t){return e%60===0?(e>0?"-":"+")+Je(Math.abs(e)/60,2):no(e,t)}function no(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Je(Math.trunc(r/60),2),l=Je(r%60,2);return n+i+t+l}const Rw=(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"})}},r2=(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"})}},fF=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Rw(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",Rw(r,t)).replace("{{time}}",r2(i,t))},hF={p:r2,P:fF},mF=/^D+$/,pF=/^Y+$/,gF=["D","DD","YY","YYYY"];function xF(e){return mF.test(e)}function yF(e){return pF.test(e)}function vF(e,t,n){const r=bF(e,t,n);if(console.warn(r),gF.includes(e))throw new RangeError(r)}function bF(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 wF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SF=/^'([^]*?)'?$/,jF=/''/g,kF=/[a-zA-Z]/;function fl(e,t,n){var p,g,v,N;const r=Cd(),i=r.locale??aF,l=r.firstWeekContainsDate??((g=(p=r.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,c=r.weekStartsOn??((N=(v=r.locale)==null?void 0:v.options)==null?void 0:N.weekStartsOn)??0,d=Xn(e);if(!EI(d))throw new RangeError("Invalid time value");let f=t.match(NF).map(k=>{const w=k[0];if(w==="p"||w==="P"){const j=hF[w];return j(k,i.formatLong)}return k}).join("").match(wF).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const w=k[0];if(w==="'")return{isToken:!1,value:CF(k)};if(Pw[w])return{isToken:!0,value:k};
388if(w.match(kF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:k}});i.localize.preprocessor&&(f=i.localize.preprocessor(d,f));const m={firstWeekContainsDate:l,weekStartsOn:c,locale:i};return f.map(k=>{if(!k.isToken)return k.value;const w=k.value;(yF(w)||xF(w))&&vF(w,t,String(e));const j=Pw[w[0]];return j(d,w,i.localize,m)}).join("")}function CF(e){const t=e.match(SF);return t?t[1].replace(jF,"'"):e}function EF(){const{data:e,isLoading:t}=Ot({queryKey:["events"],queryFn:()=>Me.entities.Event.list("date"),initialData:[]}),n=e.filter(i=>new Date(i.date)>=new Date),r=e.filter(i=>new Date(i.date)<new Date).slice(0,6);return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-purple-500/10 to-pink-500/10 border border-purple-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(lr,{className:"w-5 h-5 text-purple-600"}),a.jsx("span",{className:"text-sm font-bold text-purple-900 tracking-[0.2em] uppercase",children:"Eventos"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Eventos e Programações Especiais"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Participe dos nossos eventos ao vivo"})]}),a.jsxs("div",{className:"mb-16",children:[a.jsx("h2",{className:"text-4xl font-black mb-8 text-slate-900 tracking-tight",children:"🎉 Próximos Eventos"}),t?a.jsxs("div",{className:"text-center py-20",children:[a.jsx("div",{className:"inline-block animate-spin rounded-full h-16 w-16 border-4 border-slate-200 border-t-purple-600 mb-4"}),a.jsx("p",{className:"text-slate-500 font-medium text-lg",children:"Carregando..."})]}):n.length>0?a.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:n.map((i,l)=>a.jsx(Q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:l*.1},whileHover:{y:-8},children:a.jsxs(le,{className:"h-full hover:shadow-2xl transition-all duration-300 border-2 border-slate-200 hover:border-purple-300 group overflow-hidden bg-gradient-to-br from-white to-slate-50/30",children:[i.image_url&&a.jsxs("div",{className:"relative overflow-hidden",children:[a.jsx("img",{src:i.image_url,alt:i.title,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-500"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),a.jsxs(de,{className:"p-8",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h3",{className:"text-3xl font-black text-slate-900 group-hover:text-purple-600 transition-colors leading-tight tracking-tight flex-1",children:i.title}),i.is_live&&a.jsxs(Co,{className:"bg-gradient-to-r from-red-500 to-rose-600 text-white px-4 py-1.5 shadow-lg shadow-red-500/30 font-bold ml-3",children:[a.jsx("div",{className:"w-2 h-2 bg-white rounded-full mr-2 animate-pulse"}),"AO VIVO"]})]}),i.description&&a.jsx("p",{className:"text-slate-600 mb-6 leading-relaxed text-lg",children:i.description}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-3 bg-slate-100 rounded-xl p-3",children:[a.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-purple-500 to-pink-600 rounded-full flex items-center justify-center",children:a.jsx(lr,{className:"w-5 h-5 text-white"})}),a.jsx("span",{className:"font-semibold text-slate-700",children:fl(new Date(i.date),"dd/MM/yyyy")})]}),a.jsxs("div",{className:"flex items-center gap-3 bg-slate-100 rounded-xl p-3",children:[a.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-full flex items-center justify-center",children:a.jsx(cd,{className:"w-5 h-5 text-white"})}),a.jsx("span",{className:"font-semibold text-slate-700",children:fl(new Date(i.date),"HH:mm")}
388)]}),i.location&&a.jsxs("div",{className:"flex items-center gap-3 bg-slate-100 rounded-xl p-3",children:[a.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-amber-500 to-orange-600 rounded-full flex items-center justify-center",children:a.jsx(Ip,{className:"w-5 h-5 text-white"})}),a.jsx("span",{className:"font-semibold text-slate-700",children:i.location})]})]})]})]})},i.id))}):a.jsx(le,{className:"border-2 border-dashed border-slate-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs(de,{className:"p-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-slate-100 rounded-full flex items-center justify-center mx-auto mb-6",children:a.jsx(lr,{className:"w-12 h-12 text-slate-400"})}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-3",children:"Nenhum evento programado"}),a.jsx("p",{className:"text-slate-500 text-lg",children:"Fique ligado! Em breve teremos novidades."})]})})]}),r.length>0&&a.jsxs("div",{children:[a.jsx("h2",{className:"text-4xl font-black mb-8 text-slate-900 tracking-tight",children:"📅 Eventos Realizados"}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:r.map((i,l)=>a.jsx(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:l*.1},whileHover:{y:-5},children:a.jsxs(le,{className:"hover:shadow-xl transition-all opacity-80 hover:opacity-100 border-2 border-slate-200 overflow-hidden bg-gradient-to-br from-white to-slate-50/30",children:[i.image_url&&a.jsx("div",{className:"relative overflow-hidden",children:a.jsx("img",{src:i.image_url,alt:i.title,className:"w-full h-48 object-cover group-hover:scale-110 transition-transform duration-500"})}),a.jsxs(de,{className:"p-5",children:[a.jsx("h3",{className:"font-black text-slate-900 mb-2 text-lg leading-tight tracking-tight",children:i.title}),a.jsx("p",{className:"text-sm text-slate-500 font-semibold",children:fl(new Date(i.date),"dd/MM/yyyy")})]})]})},i.id))})]})]})})}function PF(){const[e,t]=b.useState(null);b.useRef({});const{data:n,isLoading:r}=Ot({queryKey:["recent-songs"],queryFn:()=>Me.entities.Song.list("-played_at",50),initialData:[]}),i=c=>{if(!c)return null;const d=c.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&]+)/);return d?d[1]:null},l=c=>{t(e===c?null:c)};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-purple-500/10 to-pink-500/10 border border-purple-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(cr,{className:"w-5 h-5 text-purple-600"}),a.jsx("span",{className:"text-sm font-bold text-purple-900 tracking-[0.2em] uppercase",children:"Músicas Tocadas"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Músicas Recentes"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Confira o que tocou na rádio"})]}),a.jsx("div",{className:"space-y-4",children:r?a.jsxs("div",{className:"text-center py-20",children:[a.jsx("div",{className:"inline-block animate-spin rounded-full h-16 w-16 border-4 border-slate-200 border-t-purple-600 mb-4"}),a.jsx("p",{className:"text-slate-500 font-medium text-lg",children:"Carregando..."})]}):n.length>0?n.map((c,d)=>a.jsx(Q.div,{initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{delay:d*.03},whileHover:{x:5},children:a.jsx(le,{className:"hover:shadow-2xl transition-all duration-300 border-2 border-slate-200 hover:border-purple-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs(de,{className:"p-6",children:[a.jsxs("div",{className:"flex items-center gap-5",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-purple-500 via-pink-500 to-purple-600 rounded-2xl flex items-center justify-center flex-shrink-0 shadow-lg shadow-purple-500/30",children:a.jsx(cr,{className:"w-8 h-8 text-white"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h3",{className:"font-black text-slate-900 truncate text-xl tracking-tight",children:c.title}),a.jsx("p",{className:"text-base text-slate-600 truncate font-semibold",children:c.artist}),c.album&&a.jsx("p",{className:"text-sm text-slate-500 truncate",children:c.album})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[c.played_at&&a.jsxs("div",{className:"flex items-center gap-2 bg-slate-100 px-4 py-2 rounded-xl",children:[a.jsx(cd,{className:"w-5 h-5 text-purple-600"}),a.jsx("span",{className:"whitespace-nowrap font-bold text-slate-700",children:fl(new Date(c.played_at),"HH:mm")}
388)]}),c.youtube_url&&a.jsxs(a.Fragment,{children:[a.jsx(ae,{onClick:()=>l(c.id),className:"bg-gradient-to-r from-purple-500 to-pink-600 hover:from-purple-400 hover:to-pink-500 text-white shadow-lg",children:e===c.id?a.jsx(hl,{className:"w-4 h-4"}):a.jsx(wo,{className:"w-4 h-4"})}),a.jsx("a",{href:c.youtube_url,target:"_blank",rel:"noopener noreferrer",children:a.jsx(ae,{variant:"outline",className:"border-purple-300 text-purple-600 hover:bg-purple-50",children:a.jsx(_P,{className:"w-4 h-4"})})})]})]})]}),e===c.id&&i(c.youtube_url)&&a.jsx(Q.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mt-4",children:a.jsx("iframe",{width:"100%",height:"315",src:`https://www.youtube.com/embed/${i(c.youtube_url)}?autoplay=1`,title:c.title,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"rounded-xl"})})]})})},c.id)):a.jsx(le,{className:"border-2 border-dashed border-slate-300 bg-gradient-to-br from-white to-slate-50/30",children:a.jsxs(de,{className:"p-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-slate-100 rounded-full flex items-center justify-center mx-auto mb-6",children:a.jsx(cr,{className:"w-12 h-12 text-slate-400"})}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-3",children:"Nenhuma música registrada"}),a.jsx("p",{className:"text-slate-500 text-lg",children:"As músicas tocadas aparecerão aqui em breve!"})]})})})]})})}function TF(){const[e,t]=b.useState({donor_name:"",amount:"",message:"",is_anonymous:!1,is_recurring:!1}),[n,r]=b.useState(!1),i=nn(),l=yt({mutationFn:f=>Me.entities.Donation.create(f),onSuccess:()=>{i.invalidateQueries({queryKey:["donations"]}),r(!0),t({donor_name:"",amount:"",message:"",is_anonymous:!1,is_recurring:!1}),setTimeout(()=>r(!1),5e3),Ge.success("Obrigado pela sua contribuição!")}}),c=f=>{f.preventDefault(),l.mutate({...e,amount:parseFloat(e.amount)})},d=[20,50,100,200];return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-emerald-500/10 to-green-500/10 border border-emerald-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(ht,{className:"w-5 h-5 text-emerald-600"}),a.jsx("span",{className:"text-sm font-bold text-emerald-900 tracking-[0.2em] uppercase",children:"Contribua"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Faça sua Doação"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light max-w-3xl mx-auto",children:"Ajude a manter a Rádio Caridade no ar"})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[a.jsx(Q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:a.jsxs(le,{className:"shadow-2xl border-2 border-slate-200 bg-gradient-to-br from-white to-slate-50/30",children:[a.jsx(dr,{className:"bg-gradient-to-br from-emerald-50 to-green-50 border-b border-emerald-100 pb-8",children:a.jsx(fr,{className:"text-3xl font-black text-slate-900 tracking-tight",children:"Sua Contribuição"})}),a.jsx(de,{children:n?a.jsxs(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"py-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full flex items-center justify-center mx-auto mb-6 shadow-2xl shadow-green-500/30",children:a.jsx(Fr,{className:"w-12 h-12 text-white"})}),a.jsx("h3",{className:"text-3xl font-black text-slate-900 mb-3",children:"Obrigado!"}),a.jsx("p",{className:"text-slate-600 text-lg",children:"Sua generosidade faz a diferença!"})]}):a.jsxs("form",{onSubmit:c,className:"space-y-6",children:[a.jsx(He,{placeholder:"Seu Nome",value:e.donor_name,onChange:f=>t({...e,donor_name:f.target.value}),disabled:e.is_anonymous,className:"py-6 px-4 border-2 border-slate-200 focus:border-emerald-400 rounded-xl"}),a.jsxs("div",{children:[a.jsx(He,{type:"number",step:"0.01",placeholder:"Valor da Doação (R$) *",value:e.amount,onChange:f=>t({...e,amount:f.target.value}),required:!0,className:"py-6 px-4 border-2 border-slate-200 focus:border-emerald-400 rounded-xl"}),a.jsx("div",{className:"flex gap-2 mt-3 flex-wrap",children:d.map(f=>a.jsxs(ae,{type:"button",variant:"outline",className:"border-2 border-slate-200 hover:border-emerald-400 hover:bg-emerald-50 font-bold",onClick:()=>t({...e,amount:f.toString()}),children:["R$ ",f]},f))})]}),a.jsx($r,{placeholder:"Mensagem (opcional)",rows:4,value:e.message,onChange:f=>t({...e,message:f.target.value}),className:"border-2 border-slate-200 focus:border-emerald-400 rounded-xl resize-none"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center space-x-3 p-4 bg-slate-50 rounded-xl",children:[a.jsx($i,{id:"anonymous",checked:e.is_anonymous,onCheckedChange:f=>t({...e,is_anonymous:f}),className:"h-5 w-5"}),a.jsx(tn,{htmlFor:"anonymous",className:"cursor-pointer font-semibold text-slate-700",children:"Doar anonimamente"})]}),a.jsxs("div",{className:"flex items-center space-x-3 p-4 bg-slate-50 rounded-xl",children:[a.jsx($i,{id:"recurring",checked:e.is_recurring,onCheckedChange:f=>t({...e,is_recurring:f}),className:"h-5 w-5"}),a.jsx(tn,{htmlFor:"recurring",className:"cursor-pointer font-semibold text-slate-700",children:"Doação mensal"})]})]}),a.jsxs(ae,{type:"submit",className:"w-full bg-gradient-to-r from-emerald-500 via-green-500 to-emerald-600 hover:from-emerald-400 hover:via-green-400 hover:to-emerald-500 text-white shadow-xl shadow-emerald-500/30 hover:shadow-emerald-500/50 text-lg py-7 font-bold rounded-xl transition-all duration-300",disabled:l.isPending,children:[a.jsx(Lp,{className:"w-5 h-5 mr-2"}),l.isPending?"Processando...":"Fazer Doação"]})]})})]})}),a.jsxs(Q.div,{initial:{opacity:0,x:20}
388,animate:{opacity:1,x:0},className:"space-y-6",children:[a.jsx(le,{className:"bg-gradient-to-br from-amber-50 to-orange-50 border-2 border-amber-200 shadow-2xl",children:a.jsxs(de,{className:"p-8",children:[a.jsx("h3",{className:"text-2xl font-black mb-6 text-slate-900 tracking-tight",children:"Por que doar?"}),a.jsxs("ul",{className:"space-y-3 text-gray-700",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-green-600 font-bold",children:"✓"}),a.jsx("span",{children:"Mantém a rádio no ar 24 horas por dia"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-green-600 font-bold",children:"✓"}),a.jsx("span",{children:"Ajuda a produzir conteúdo de qualidade"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-green-600 font-bold",children:"✓"}),a.jsx("span",{children:"Leva a Palavra de Deus a mais pessoas"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-green-600 font-bold",children:"✓"}),a.jsx("span",{children:"Apoia eventos e programações especiais"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-green-600 font-bold",children:"✓"}),a.jsx("span",{children:"Contribui para melhorias técnicas"})]})]})]})}),a.jsx(le,{className:"bg-gradient-to-br from-blue-50 to-indigo-50 border-2 border-blue-200 shadow-2xl",children:a.jsxs(de,{className:"p-8",children:[a.jsx("h3",{className:"text-2xl font-black mb-6 text-slate-900 tracking-tight",children:"Outras formas de contribuir"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-gray-900 mb-1",children:"PIX"}),a.jsx("p",{className:"text-lg font-mono text-gray-900 bg-white px-3 py-2 rounded border border-blue-300",children:"11979612829"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-gray-900 mb-1",children:"Transferência"}),a.jsxs("p",{className:"text-sm text-gray-600",children:["Banco: Exemplo Bank",a.jsx("br",{}),"Agência: 0001",a.jsx("br",{}),"Conta: 12345-6"]})]})]})]})}),a.jsx(le,{className:"bg-gradient-to-br from-purple-50 to-pink-50 border-2 border-purple-200 shadow-2xl",children:a.jsxs(de,{className:"p-8 text-center",children:[a.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-purple-500 to-pink-600 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg shadow-purple-500/30",children:a.jsx(ht,{className:"w-8 h-8 text-white"})}),a.jsx("p",{className:"text-gray-700 italic",children:'"Cada um dê conforme determinou em seu coração, não com pesar ou por obrigação, pois Deus ama quem dá com alegria."'}),a.jsx("p",{className:"text-sm text-purple-700 font-semibold mt-2",children:"2 Coríntios 9:7"})]})})]})]})]})})}function _F(){const[e,t]=b.useState(!1),n=window.location.origin,r="Ouça a Rádio Caridade - A Palavra de Deus transformando vidas! 🙏📻",i="5511981565347",l=()=>{navigator.clipboard.writeText(n),t(!0),Ge.success("Link copiado!"),setTimeout(()=>t(!1),2e3)},c=()=>{window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(n)}`,"_blank","width=600,height=400")},d=()=>{window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(r)}&url=${encodeURIComponent(n)}`,"_blank","width=600,height=400")},f=()=>{window.open(`https://wa.me/?text=${encodeURIComponent(r+" "+n)}`,"_blank")},m=()=>{window.location.href=`mailto:?subject=${encodeURIComponent("Rádio Caridade")}&body=${encodeURIComponent(r+`
389
390`+n)}`},p=async()=>{if(navigator.share)try{await navigator.share({title:"Rádio Caridade",text:r,url:n}),Ge.success("Compartilhado com sucesso!")}catch(g){g.name!=="AbortError"&&Ge.error("Erro ao compartilhar")}else l()};return a.jsx("div",{className:"min-h-screen py-12 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-blue-100 px-4 py-2 rounded-full mb-4",children:[a.jsx(go,{className:"w-4 h-4 text-blue-600"}),a.jsx("span",{className:"text-sm font-medium text-blue-900",children:"COMPARTILHAR"})]}),a.jsx("h1",{className:"text-4xl font-bold mb-4 text-gray-900",children:"Compartilhe a Rádio Caridade"}),a.jsx("p",{className:"text-xl text-gray-600",children:"Ajude mais pessoas a conhecerem a Palavra de Deus"})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx(Q.div,{initial:{opacity:0,scale:.95}
390,animate:{opacity:1,scale:1},children:a.jsx(le,{className:"border-2 border-amber-200 shadow-xl",children:a.jsxs(de,{className:"p-8 text-center",children:[a.jsx(go,{className:"w-16 h-16 text-amber-600 mx-auto mb-4"}),a.jsx("h2",{className:"text-2xl font-bold mb-4 text-gray-900",children:"Compartilhar Agora"}),a.jsxs(ae,{onClick:p,size:"lg",className:"bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-600 hover:to-orange-700 text-lg px-8 py-6",children:[a.jsx(go,{className:"w-5 h-5 mr-2"}),"Compartilhar Rádio"]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},children:a.jsx(le,{className:"shadow-lg",children:a.jsxs(de,{className:"p-6",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(BP,{className:"w-5 h-5 text-gray-600"}),a.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Link Direto"})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(He,{value:n,readOnly:!0,className:"font-mono text-sm"}),a.jsx(ae,{onClick:l,variant:"outline",className:"flex-shrink-0",children:e?a.jsxs(a.Fragment,{children:[a.jsx(qi,{className:"w-4 h-4 mr-2 text-green-600"}),"Copiado!"]}):a.jsxs(a.Fragment,{children:[a.jsx(wm,{className:"w-4 h-4 mr-2"}),"Copiar"]})})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},children:a.jsx(le,{className:"shadow-lg",children:a.jsxs(de,{className:"p-6",children:[a.jsx("h3",{className:"text-lg font-bold mb-4 text-gray-900",children:"Compartilhar em Redes Sociais"}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[a.jsxs(ae,{onClick:c,className:"bg-[#1877F2] hover:bg-[#166FE5] text-white",children:[a.jsx(MP,{className:"w-5 h-5 mr-2"}),"Facebook"]}),a.jsxs(ae,{onClick:d,className:"bg-[#1DA1F2] hover:bg-[#1A94DA] text-white",children:[a.jsx(ST,{className:"w-5 h-5 mr-2"}),"Twitter"]}),a.jsxs(ae,{onClick:f,className:"bg-[#25D366] hover:bg-[#22C55E] text-white",children:[a.jsx(Mh,{className:"w-5 h-5 mr-2"}),"WhatsApp"]}),a.jsxs(ae,{onClick:m,className:"bg-gray-700 hover:bg-gray-800 text-white",children:[a.jsx(bo,{className:"w-5 h-5 mr-2"}),"E-mail"]})]})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:a.jsx(le,{className:"shadow-lg",children:a.jsxs(de,{className:"p-6",children:[a.jsx("h3",{className:"text-lg font-bold mb-4 text-gray-900",children:"Mensagens Prontas para Compartilhar"}),a.jsx("div",{className:"space-y-3",children:["🙏 Conheça a Rádio Caridade! Músicas gospel e mensagens que transformam vidas. Ouça agora!","📻 A Palavra de Deus 24 horas no ar! Sintonize a Rádio Caridade e fortaleça sua fé.","✨ Que benção! Descobri a Rádio Caridade e quero compartilhar com vocês. Vale muito a pena ouvir!","❤️ Rádio Caridade: levando esperança através da música e da Palavra de Deus. Ouça você também!"].map((g,v)=>a.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg border border-gray-200",children:[a.jsx("p",{className:"text-sm text-gray-700 mb-2",children:g}),a.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>{navigator.clipboard.writeText(g+`
391
392`+n),Ge.success("Mensagem copiada!")},children:[a.jsx(wm,{className:"w-3 h-3 mr-1"}),"Copiar"]})]},v))})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:a.jsx(le,{className:"bg-gradient-to-br from-green-50 to-emerald-50 border-2 border-green-200 shadow-lg",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx(Mh,{className:"w-12 h-12 text-green-600 mx-auto mb-3"}),a.jsx("h3",{className:"text-xl font-bold mb-2 text-gray-900",children:"Fale Conosco pelo WhatsApp"}),a.jsx("p",{className:"text-gray-600 mb-4",children:"Entre em contato direto com a Rádio Caridade"}),a.jsx("a",{href:`https://wa.me/${i}`,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{size:"lg",className:"bg-[#25D366] hover:bg-[#22C55E] text-white",children:[a.jsx(Mh,{className:"w-5 h-5 mr-2"}),"Abrir WhatsApp"]})})]})})}),a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:a.jsx(le,{className:"bg-gradient-to-br from-purple-50 to-pink-50 border-2 border-purple-200",children:a.jsxs(de,{className:"p-6 text-center",children:[a.jsx("h3",{className:"text-xl font-bold mb-4 text-gray-900",children:"Seu Compartilhamento Faz a Diferença"}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-4 text-center",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-3xl font-bold text-purple-600 mb-1",children:"2.5K+"}),a.jsx("p",{className:"text-sm text-gray-600",children:"Ouvintes Alcançados"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-3xl font-bold text-purple-600 mb-1",children:"24/7"}),a.jsx("p",{className:"text-sm text-gray-600",children:"Horas no Ar"})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-3xl font-bold text-purple-600 mb-1",children:"10+"}),a.jsx("p",{className:"text-sm text-gray-600",children:"Anos de Ministério"})]})]})]})})})]})]})})}function Os(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function RF(e,t=globalThis==null?void 0:globalThis.document){const n=Os(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}
vendor: 36,089 bytes, line 392
392var AF="DismissableLayer",vp="dismissableLayer.update",OF="dismissableLayer.pointerDownOutside",MF="dismissableLayer.focusOutside",Aw,s2=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),o2=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,m=b.useContext(s2),[p,g]=b.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=b.useState({}),k=et(t,z=>g(z)),w=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),S=w.indexOf(j),E=p?w.indexOf(p):-1,P=m.layersWithOutsidePointerEventsDisabled.size>0,T=E>=S,A=IF(z=>{const R=z.target,K=[...m.branches].some(U=>U.contains(R));!T||K||(i==null||i(z),c==null||c(z),z.defaultPrevented||d==null||d())},v),V=FF(z=>{const R=z.target;[...m.branches].some(U=>U.contains(R))||(l==null||l(z),c==null||c(z),z.defaultPrevented||d==null||d())},v);return RF(z=>{E===m.layers.size-1&&(r==null||r(z),!z.defaultPrevented&&d&&(z.preventDefault(),d()))},v),b.useEffect(()=>{if(p)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Aw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),Ow(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Aw)}},[p,v,n,m]),b.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),Ow())},[p,m]),b.useEffect(()=>{const z=()=>N({});return document.addEventListener(vp,z),()=>document.removeEventListener(vp,z)},[]),a.jsx($e.div,{...f,ref:k,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,V.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,A.onPointerDownCapture)})});o2.displayName=AF;var DF="DismissableLayerBranch",LF=b.forwardRef((e,t)=>{const n=b.useContext(s2),r=b.useRef(null),i=et(t,r);return b.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),a.jsx($e.div,{...e,ref:i})});LF.displayName=DF;function IF(e,t=globalThis==null?void 0:globalThis.document){const n=Os(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const l=d=>{if(d.target&&!r.current){let f=function(){i2(OF,n,m,{discrete:!0})};const m={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function FF(e,t=globalThis==null?void 0:globalThis.document){const n=Os(e),r=b.useRef(!1);return b.useEffect(()=>{const i=l=>{l.target&&!r.current&&i2(MF,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ow(){const e=new CustomEvent(vp);document.dispatchEvent(e)}function i2(e,t,n,{discrete:r}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?nM(i,l):i.dispatchEvent(l)}var cm=0;function VF(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mw()),document.body.insertAdjacentElement("beforeend",e[1]??Mw()),cm++,()=>{cm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cm--}},[])}function Mw(){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 um="focusScope.autoFocusOnMount",dm="focusScope.autoFocusOnUnmount",Dw={bubbles:!1,cancelable:!0},BF="FocusScope",a2=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...c}=e,[d,f]=b.useState(null),m=Os(i),p=Os(l),g=b.useRef(null),v=et(t,w=>f(w)),N=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let w=function(P){if(N.paused||!d)return;const T=P.target;d.contains(T)?g.current=T:ms(g.current,{select:!0})},j=function(P){if(N.paused||!d)return;const T=P.relatedTarget;T!==null&&(d.contains(T)||ms(g.current,{select:!0}))},S=function(P){if(document.activeElement===document.body)for(const A of P)A.removedNodes.length>0&&ms(d)};document.addEventListener("focusin",w),document.addEventListener("focusout",j);const E=new MutationObserver(S);return d&&E.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",j),E.disconnect()}}},[r,d,N.paused]),b.useEffect(()=>{if(d){Iw.add(N);const w=document.activeElement;if(!d.contains(w)){const S=new CustomEvent(um,Dw);d.addEventListener(um,m),d.dispatchEvent(S),S.defaultPrevented||(UF(WF(l2(d)),{select:!0}),document.activeElement===w&&ms(d))}return()=>{d.removeEventListener(um,m),setTimeout(()=>{const S=new CustomEvent(dm,Dw);d.addEventListener(dm,p),d.dispatchEvent(S),S.defaultPrevented||ms(w??document.body,{select:!0}),d.removeEventListener(dm,p),Iw.remove(N)},0)}}},[d,m,p,N]);const k=b.useCallback(w=>{if(!n&&!r||N.paused)return;const j=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,S=document.activeElement;if(j&&S){const E=w.currentTarget,[P,T]=$F(E);P&&T?!w.shiftKey&&S===T?(w.preventDefault(),n&&ms(P,{select:!0})):w.shiftKey&&S===P&&(w.preventDefault(),n&&ms(T,{select:!0})):S===E&&w.preventDefault()}},[n,r,N.paused]);return a.jsx($e.div,{tabIndex:-1,...c,ref:v,onKeyDown:k})});a2.displayName=BF;function UF(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ms(r,{select:t}),document.activeElement!==n)return}function $F(e){const t=l2(e),n=Lw(t,e),r=Lw(t.reverse(),e);return[n,r]}function l2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lw(e,t){for(const n of e)if(!zF(n,{upTo:t}))return n}function zF(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 qF(e){return e instanceof HTMLInputElement&&"select"in e}function ms(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qF(e)&&t&&e.select()}}var Iw=HF();function HF(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Fw(e,t),e.unshift(t)},remove(t){var n;e=Fw(e,t),(n=e[0])==null||n.resume()}}}function Fw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function WF(e){return e.filter(t=>t.tagName!=="A")}var KF=Mp[" useId ".trim().toString()]||(()=>{}),GF=0;function Hl(e){const[t,n]=b.useState(KF());return Gt(()=>{n(r=>r??String(GF++))},[e]),t?`radix-${t}`:""}const QF=["top","right","bottom","left"],Ms=Math.min,bn=Math.max,rd=Math.round,pu=Math.floor,pr=e=>({x:e,y:e}),YF={left:"right",right:"left",bottom:"top",top:"bottom"},XF={start:"end",end:"start"};function bp(e,t,n){return bn(e,Ms(t,n))}function Br(e,t){return typeof e=="function"?e(t):e}function Ur(e){return e.split("-")[0]}function ea(e){return e.split("-")[1]}function Hg(e){return e==="x"?"y":"x"}function Wg(e){return e==="y"?"height":"width"}const JF=new Set(["top","bottom"]);function ar(e){return JF.has(Ur(e))?"y":"x"}function Kg(e){return Hg(ar(e))}function ZF(e,t,n){n===void 0&&(n=!1);const r=ea(e),i=Kg(e),l=Wg(i);let c=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=sd(c)),[c,sd(c)]}function eV(e){const t=sd(e);return[wp(e),t,wp(t)]}function wp(e){return e.replace(/start|end/g,t=>XF[t])}const Vw=["left","right"],Bw=["right","left"],tV=["top","bottom"],nV=["bottom","top"];function rV(e,t,n){switch(e){case"top":case"bottom":return n?t?Bw:Vw:t?Vw:Bw;case"left":case"right":return t?tV:nV;default:return[]}}function sV(e,t,n,r){const i=ea(e);let l=rV(Ur(e),n==="start",r);return i&&(l=l.map(c=>c+"-"+i),t&&(l=l.concat(l.map(wp)))),l}function sd(e){return e.replace(/left|right|bottom|top/g,t=>YF[t])}function oV(e){return{top:0,right:0,bottom:0,left:0,...e}}function c2(e){return typeof e!="number"?oV(e):{top:e,right:e,bottom:e,left:e}}function od(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Uw(e,t,n){let{reference:r,floating:i}=e;const l=ar(t),c=Kg(t),d=Wg(c),f=Ur(t),m=l==="y",p=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,v=r[d]/2-i[d]/2;let N;switch(f){case"top":N={x:p,y:r.y-i.height};break;case"bottom":N={x:p,y:r.y+r.height};break;case"right":N={x:r.x+r.width,y:g};break;case"left":N={x:r.x-i.width,y:g};break;default:N={x:r.x,y:r.y}}switch(ea(t)){case"start":N[c]-=v*(n&&m?-1:1);break;case"end":N[c]+=v*(n&&m?-1:1);break}return N}const iV=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:c}=n,d=l.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:g}=Uw(m,r,f),v=r,N={},k=0;for(let w=0;w<d.length;w++){const{name:j,fn:S}=d[w],{x:E,y:P,data:T,reset:A}=await S({x:p,y:g,initialPlacement:r,placement:v,strategy:i,middlewareData:N,rects:m,platform:c,elements:{reference:e,floating:t}});p=E??p,g=P??g,N={...N,[j]:{...N[j],...T}},A&&k<=50&&(k++,typeof A=="object"&&(A.placement&&(v=A.placement),A.rects&&(m=A.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:p,y:g}=Uw(m,v,f)),w=-1)}return{x:p,y:g,placement:v,strategy:i,middlewareData:N}};async function Cl(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:c,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:v=!1,padding:N=0}=Br(t,e),k=c2(N),j=d[v?g==="floating"?"reference":"floating":g],S=od(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(j)))==null||n?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:m,rootBoundary:p,strategy:f})),E=g==="floating"?{x:r,y:i,width:c.floating.width,height:c.floating.height}:c.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),T=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},A=od(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:E,offsetParent:P,strategy:f}):E);return{top:(S.top-A.top+k.top)/T.y,bottom:(A.bottom-S.bottom+k.bottom)/T.y,left:(S.left-A.left+k.left)/T.x,right:(A.right-S.right+k.right)/T.x}}const aV=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:c,elements:d,middlewareData:f}=t,{element:m,padding:p=0}=Br(e,t)||{};if(m==null)return{};const g=c2(p),v={x:n,y:r},N=Kg(i),k=Wg(N),w=await c.getDimensions(m),j=N==="y",S=j?"top":"left",E=j?"bottom":"right",P=j?"clientHeight":"clientWidth",T=l.reference[k]+l.reference[N]-v[N]-l.floating[k],A=v[N]-l.reference[N],V=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let z=V?V[P]:0;(!z||!await(c.isElement==null?void 0:c.isElement(V)))&&(z=d.floating[P]||l.floating[k]);const R=T/2-A/2,K=z/2-w[k]/2-1,U=Ms(g[S],K),q=Ms(g[E],K),H=U,Z=z-w[k]-q,ce=z/2-w[k]/2+R,ie=bp(H,ce,Z),ee=!f.arrow&&ea(i)!=null&&ce!==ie&&l.reference[k]/2-(ce<H?U:q)-w[k]/2<0,te=ee?ce<H?ce-H:ce-Z:0;return{[N]:v[N]+te,data:{[N]:ie,centerOffset:ce-ie-te,...ee&&{alignmentOffset:te}},reset:ee}}}),lV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:c,initialPlacement:d,platform:f,elements:m}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:w=!0,...j}=Br(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const S=Ur(i),E=ar(d),P=Ur(d)===d,T=await(f.isRTL==null?void 0:f.isRTL(m.floating)),A=v||(P||!w?[sd(d)]:eV(d)),V=k!=="none";!v&&V&&A.push(...sV(d,w,k,T));const z=[d,...A],R=await Cl(t,j),K=[];let U=((r=l.flip)==null?void 0:r.overflows)||[];if(p&&K.push(R[S]),g){const ce=ZF(i,c,T);K.push(R[ce[0]],R[ce[1]])}if(U=[...U,{placement:i,overflows:K}],!K.every(ce=>ce<=0)){var q,H;const ce=(((q=l.flip)==null?void 0:q.index)||0)+1,ie=z[ce];if(ie&&(!(g==="alignment"?E!==ar(ie):!1)||U.every(F=>ar(F.placement)===E?F.overflows[0]>0:!0)))return{data:{index:ce,overflows:U},reset:{placement:ie}};let ee=(H=U.filter(te=>te.overflows[0]<=0).sort((te,F)=>te.overflows[1]-F.overflows[1])[0])==null?void 0:H.placement;if(!ee)switch(N){case"bestFit":{var Z;const te=(Z=U.filter(F=>{if(V){const se=ar(F.placement);return se===E||se==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(se=>se>0).reduce((se,ne)=>se+ne,0)]).sort((F,se)=>F[1]-se[1])[0])==null?void 0:Z[0];te&&(ee=te);break}case"initialPlacement":ee=d;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};function $w(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zw(e){return QF.some(t=>e[t]>=0)}const cV=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Br(e,t);switch(r){case"referenceHidden":{const l=await Cl(t,{...i,elementContext:"reference"}),c=$w(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:zw(c)}}}case"escaped":{const l=await Cl(t,{...i,altBoundary:!0}),c=$w(l,n.floating);return{data:{escapedOffsets:c,escaped:zw(c)}}}default:return{}}}}},u2=new Set(["left","top"]);async function uV(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),c=Ur(n),d=ea(n),f=ar(n)==="y",m=u2.has(c)?-1:1,p=l&&f?-1:1,g=Br(t,e);let{mainAxis:v,crossAxis:N,alignmentAxis:k}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof k=="number"&&(N=d==="end"?k*-1:k),f?{x:N*p,y:v*m}:{x:v*m,y:N*p}}const dV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:c,middlewareData:d}=t,f=await uV(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:l+f.y,data:{...f,placement:c}}}}},fV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:j=>{let{x:S,y:E}=j;return{x:S,y:E}}},...f}=Br(e,t),m={x:n,y:r},p=await Cl(t,f),g=ar(Ur(i)),v=Hg(g);let N=m[v],k=m[g];if(l){const j=v==="y"?"top":"left",S=v==="y"?"bottom":"right",E=N+p[j],P=N-p[S];N=bp(E,N,P)}if(c){const j=g==="y"?"top":"left",S=g==="y"?"bottom":"right",E=k+p[j],P=k-p[S];k=bp(E,k,P)}const w=d.fn({...t,[v]:N,[g]:k});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[v]:l,[g]:c}}}}}},hV=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:m=!0}=Br(e,t),p={x:n,y:r},g=ar(i),v=Hg(g);let N=p[v],k=p[g];const w=Br(d,t),j=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const P=v==="y"?"height":"width",T=l.reference[v]-l.floating[P]+j.mainAxis,A=l.reference[v]+l.reference[P]-j.mainAxis;N<T?N=T:N>A&&(N=A)}if(m){var S,E;const P=v==="y"?"width":"height",T=u2.has(Ur(i)),A=l.reference[g]-l.floating[P]+(T&&((S=c.offset)==null?void 0:S[g])||0)+(T?0:j.crossAxis),V=l.reference[g]+l.reference[P]+(T?0:((E=c.offset)==null?void 0:E[g])||0)-(T?j.crossAxis:0);k<A?k=A:k>V&&(k=V)}return{[v]:N,[g]:k}}}},mV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:c,elements:d}=t,{apply:f=()=>{},...m}=Br(e,t),p=await Cl(t,m),g=Ur(i),v=ea(i),N=ar(i)==="y",{width:k,height:w}=l.floating;let j,S;g==="top"||g==="bottom"?(j=g,S=v===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(S=g,j=v==="end"?"top":"bottom");const E=w-p.top-p.bottom,P=k-p.left-p.right,T=Ms(w-p[j],E),A=Ms(k-p[S],P),V=!t.middlewareData.shift;let z=T,R=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(z=E),V&&!v){const U=bn(p.left,0),q=bn(p.right,0),H=bn(p.top,0),Z=bn(p.bottom,0);N?R=k-2*(U!==0||q!==0?U+q:bn(p.left,p.right)):z=w-2*(H!==0||Z!==0?H+Z:bn(p.top,p.bottom))}await f({...t,availableWidth:R,availableHeight:z});const K=await c.getDimensions(d.floating);return k!==K.width||w!==K.height?{reset:{rects:!0}}:{}}}};function Ed(){return typeof window<"u"}function ta(e){return d2(e)?(e.nodeName||"").toLowerCase():"#document"}function Nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yr(e){var t;return(t=(d2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function d2(e){return Ed()?e instanceof Node||e instanceof Nn(e).Node:!1}function Gn(e){return Ed()?e instanceof Element||e instanceof Nn(e).Element:!1}function xr(e){return Ed()?e instanceof HTMLElement||e instanceof Nn(e).HTMLElement:!1}function qw(e){return!Ed()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nn(e).ShadowRoot}const pV=new Set(["inline","contents"]);function Wl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Qn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pV.has(i)}const gV=new Set(["table","td","th"]);function xV(e){return gV.has(ta(e))}const yV=[":popover-open",":modal"];function Pd(e){return yV.some(t=>{try{return e.matches(t)}catch{return!1}})}const vV=["transform","translate","scale","rotate","perspective"],bV=["transform","translate","scale","rotate","perspective","filter"],wV=["paint","layout","strict","content"];function Gg(e){const t=Qg(),n=Gn(e)?Qn(e):e;return vV.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)||bV.some(r=>(n.willChange||"").includes(r))||wV.some(r=>(n.contain||"").includes(r))}function NV(e){let t=Ds(e);for(;xr(t)&&!zi(t);){if(Gg(t))return t;if(Pd(t))return null;t=Ds(t)}return null}function Qg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SV=new Set(["html","body","#document"]);function zi(e){return SV.has(ta(e))}function Qn(e){return Nn(e).getComputedStyle(e)}function Td(e){return Gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ds(e){if(ta(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qw(e)&&e.host||yr(e);return qw(t)?t.host:t}function f2(e){const t=Ds(e);return zi(t)?e.ownerDocument?e.ownerDocument.body:e.body:xr(t)&&Wl(t)?t:f2(t)}function El(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=f2(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),c=Nn(i);if(l){const d=Np(c);return t.concat(c,c.visualViewport||[],Wl(i)?i:[],d&&n?El(d):[])}return t.concat(i,El(i,[],n))}function Np(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function h2(e){const t=Qn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xr(e),l=i?e.offsetWidth:n,c=i?e.offsetHeight:r,d=rd(n)!==l||rd(r)!==c;return d&&(n=l,r=c),{width:n,height:r,$:d}}function Yg(e){return Gn(e)?e:e.contextElement}function vi(e){const t=Yg(e);if(!xr(t))return pr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=h2(t);let c=(l?rd(n.width):n.width)/r,d=(l?rd(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const jV=pr(0);function m2(e){const t=Nn(e);return!Qg()||!t.visualViewport?jV:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kV(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nn(e)?!1:t}function Po(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=Yg(e);let c=pr(1);t&&(r?Gn(r)&&(c=vi(r)):c=vi(e));const d=kV(l,n,r)?m2(l):pr(0);let f=(i.left+d.x)/c.x,m=(i.top+d.y)/c.y,p=i.width/c.x,g=i.height/c.y;if(l){const v=Nn(l),N=r&&Gn(r)?Nn(r):r;let k=v,w=Np(k);for(;w&&r&&N!==k;){const j=vi(w),S=w.getBoundingClientRect(),E=Qn(w),P=S.left+(w.clientLeft+parseFloat(E.paddingLeft))*j.x,T=S.top+(w.clientTop+parseFloat(E.paddingTop))*j.y;f*=j.x,m*=j.y,p*=j.x,g*=j.y,f+=P,m+=T,k=Nn(w),w=Np(k)}}return od({width:p,height:g,x:f,y:m})}function _d(e,t){const n=Td(e).scrollLeft;return t?t.left+n:Po(yr(e)).left+n}function p2(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_d(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function CV(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",c=yr(r),d=t?Pd(t.floating):!1;if(r===c||d&&l)return n;let f={scrollLeft:0,scrollTop:0},m=pr(1);const p=pr(0),g=xr(r);if((g||!g&&!l)&&((ta(r)!=="body"||Wl(c))&&(f=Td(r)),xr(r))){const N=Po(r);m=vi(r),p.x=N.x+r.clientLeft,p.y=N.y+r.clientTop}const v=c&&!g&&!l?p2(c,f):pr(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+p.x+v.x,y:n.y*m.y-f.scrollTop*m.y+p.y+v.y}}function EV(e){return Array.from(e.getClientRects())}function PV(e){const t=yr(e),n=Td(e),r=e.ownerDocument.body,i=bn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=bn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+_d(e);const d=-n.scrollTop;return Qn(r).direction==="rtl"&&(c+=bn(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:c,y:d}}const Hw=25;function TV(e,t){const n=Nn(e),r=yr(e),i=n.visualViewport;let l=r.clientWidth,c=r.clientHeight,d=0,f=0;if(i){l=i.width,c=i.height;const p=Qg();(!p||p&&t==="fixed")&&(d=i.offsetLeft,f=i.offsetTop)}const m=_d(r);if(m<=0){const p=r.ownerDocument,g=p.body,v=getComputedStyle(g),N=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,k=Math.abs(r.clientWidth-g.clientWidth-N);k<=Hw&&(l-=k)}else m<=Hw&&(l+=m);return{width:l,height:c,x:d,y:f}}const _V=new Set(["absolute","fixed"]);function RV(e,t){const n=Po(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=xr(e)?vi(e):pr(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,f=i*l.x,m=r*l.y;return{width:c,height:d,x:f,y:m}}function Ww(e,t,n){let r;if(t==="viewport")r=TV(e,n);else if(t==="document")r=PV(yr(e));else if(Gn(t))r=RV(t,n);else{const i=m2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return od(r)}function g2(e,t){const n=Ds(e);return n===t||!Gn(n)||zi(n)?!1:Qn(n).position==="fixed"||g2(n,t)}function AV(e,t){const n=t.get(e);if(n)return n;let r=El(e,[],!1).filter(d=>Gn(d)&&ta(d)!=="body"),i=null;const l=Qn(e).position==="fixed";let c=l?Ds(e):e;for(;Gn(c)&&!zi(c);){const d=Qn(c),f=Gg(c);!f&&d.position==="fixed"&&(i=null),(l?!f&&!i:!f&&d.position==="static"&&!!i&&_V.has(i.position)||Wl(c)&&!f&&g2(e,c))?r=r.filter(p=>p!==c):i=d,c=Ds(c)}return t.set(e,r),r}function OV(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const c=[...n==="clippingAncestors"?Pd(t)?[]:AV(t,this._c):[].concat(n),r],d=c[0],f=c.reduce((m,p)=>{const g=Ww(t,p,i);return m.top=bn(g.top,m.top),m.right=Ms(g.right,m.right),m.bottom=Ms(g.bottom,m.bottom),m.left=bn(g.left,m.left),m},Ww(t,d,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function MV(e){const{width:t,height:n}=h2(e);return{width:t,height:n}}function DV(e,t,n){const r=xr(t),i=yr(t),l=n==="fixed",c=Po(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=pr(0);function m(){f.x=_d(i)}if(r||!r&&!l)if((ta(t)!=="body"||Wl(i))&&(d=Td(t)),r){const N=Po(t,!0,l,t);f.x=N.x+t.clientLeft,f.y=N.y+t.clientTop}else i&&m();l&&!r&&i&&m();const p=i&&!r&&!l?p2(i,d):pr(0),g=c.left+d.scrollLeft-f.x-p.x,v=c.top+d.scrollTop-f.y-p.y;return{x:g,y:v,width:c.width,height:c.height}}function fm(e){return Qn(e).position==="static"}function Kw(e,t){if(!xr(e)||Qn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yr(e)===n&&(n=n.ownerDocument.body),n}function x2(e,t){const n=Nn(e);if(Pd(e))return n;if(!xr(e)){let i=Ds(e);for(;i&&!zi(i);){if(Gn(i)&&!fm(i))return i;i=Ds(i)}return n}let r=Kw(e,t);for(;r&&xV(r)&&fm(r);)r=Kw(r,t);return r&&zi(r)&&fm(r)&&!Gg(r)?n:r||NV(e)||n}const LV=async function(e){const t=this.getOffsetParent||x2,n=this.getDimensions,r=await n(e.floating);return{reference:DV(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function IV(e){return Qn(e).direction==="rtl"}const FV={convertOffsetParentRelativeRectToViewportRelativeRect:CV,getDocumentElement:yr,getClippingRect:OV,getOffsetParent:x2,getElementRects:LV,getClientRects:EV,getDimensions:MV,getScale:vi,isElement:Gn,isRTL:IV};function y2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VV(e,t){let n=null,r;const i=yr(e);function l(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function c(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const m=e.getBoundingClientRect(),{left:p,top:g,width:v,height:N}=m;if(d||t(),!v||!N)return;const k=pu(g),w=pu(i.clientWidth-(p+v)),j=pu(i.clientHeight-(g+N)),S=pu(p),P={rootMargin:-k+"px "+-w+"px "+-j+"px "+-S+"px",threshold:bn(0,Ms(1,f))||1};let T=!0;function A(V){const z=V[0].intersectionRatio;if(z!==f){if(!T)return c();z?c(!1,z):r=setTimeout(()=>{c(!1,1e-7)},1e3)}z===1&&!y2(m,e.getBoundingClientRect())&&c(),T=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return c(!0),l}function BV(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,m=Yg(e),p=i||l?[...m?El(m):[],...El(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),l&&S.addEventListener("resize",n)});const g=m&&d?VV(m,n):null;let v=-1,N=null;c&&(N=new ResizeObserver(S=>{let[E]=S;E&&E.target===m&&N&&(N.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var P;(P=N)==null||P.observe(t)})),n()}),m&&!f&&N.observe(m),N.observe(t));let k,w=f?Po(e):null;f&&j();function j(){const S=Po(e);w&&!y2(w,S)&&n(),w=S,k=requestAnimationFrame(j)}return n(),()=>{var S;p.forEach(E=>{i&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),g==null||g(),(S=N)==null||S.disconnect(),N=null,f&&cancelAnimationFrame(k)}}const UV=dV,$V=fV,zV=lV,qV=mV,HV=cV,Gw=aV,WV=hV,KV=(e,t,n)=>{const r=new Map,i={platform:FV,...n},l={...i.platform,_c:r};return iV(e,t,{...i,platform:l})};var GV=typeof document<"u",QV=function(){},Mu=GV?b.useLayoutEffect:QV;function id(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,i;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(!id(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!id(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function v2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qw(e,t){const n=v2(e);return Math.round(t*n)/n}function hm(e){const t=b.useRef(e);return Mu(()=>{t.current=e}),t}function YV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:f,open:m}=e,[p,g]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,N]=b.useState(r);id(v,r)||N(r);const[k,w]=b.useState(null),[j,S]=b.useState(null),E=b.useCallback(F=>{F!==V.current&&(V.current=F,w(F))},[]),P=b.useCallback(F=>{F!==z.current&&(z.current=F,S(F))},[]),T=l||k,A=c||j,V=b.useRef(null),z=b.useRef(null),R=b.useRef(p),K=f!=null,U=hm(f),q=hm(i),H=hm(m),Z=b.useCallback(()=>{if(!V.current||!z.current)return;const F={placement:t,strategy:n,middleware:v};q.current&&(F.platform=q.current),KV(V.current,z.current,F).then(se=>{const ne={...se,isPositioned:H.current!==!1};ce.current&&!id(R.current,ne)&&(R.current=ne,Ml.flushSync(()=>{g(ne)}))})},[v,t,n,q,H]);Mu(()=>{m===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,g(F=>({...F,isPositioned:!1})))},[m]);const ce=b.useRef(!1);Mu(()=>(ce.current=!0,()=>{ce.current=!1}),[]),Mu(()=>{if(T&&(V.current=T),A&&(z.current=A),T&&A){if(U.current)return U.current(T,A,Z);Z()}},[T,A,Z,U,K]);const ie=b.useMemo(()=>({reference:V,floating:z,setReference:E,setFloating:P}),[E,P]),ee=b.useMemo(()=>({reference:T,floating:A}),[T,A]),te=b.useMemo(()=>{const F={position:n,left:0,top:0};if(!ee.floating)return F;const se=Qw(ee.floating,p.x),ne=Qw(ee.floating,p.y);return d?{...F,transform:"translate("+se+"px, "+ne+"px)",...v2(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:ne}},[n,d,ee.floating,p.x,p.y]);return b.useMemo(()=>({...p,update:Z,refs:ie,elements:ee,floatingStyles:te}),[p,Z,ie,ee,te])}const XV=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Gw({element:r.current,padding:i}).fn(n):{}:r?Gw({element:r,padding:i}).fn(n):{}}}},JV=(e,t)=>({...UV(e),options:[e,t]}),ZV=(e,t)=>({...$V(e),options:[e,t]}),eB=(e,t)=>({...WV(e),options:[e,t]}),tB=(e,t)=>({...zV(e),options:[e,t]}),nB=(e,t)=>({...qV(e),options:[e,t]}),rB=(e,t)=>({...HV(e),options:[e,t]}),sB=(e,t)=>({...XV(e),options:[e,t]});var oB="Arrow",b2=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return a.jsx($e.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});b2.displayName=oB;var iB=b2,Xg="Popper",[w2,N2]=Mo(Xg),[aB,S2]=w2(Xg),j2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=b.useState(null);return a.jsx(aB,{scope:t,anchor:r,onAnchorChange:i,children:n})};j2.displayName=Xg;var k2="PopperAnchor",C2=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=S2(k2,n),c=b.useRef(null),d=et(t,c),f=b.useRef(null);return b.useEffect(()=>{const m=f.current;f.current=(r==null?void 0:r.current)||c.current,m!==f.current&&l.onAnchorChange(f.current)}),r?null:a.jsx($e.div,{...i,ref:d})});C2.displayName=k2;var Jg="PopperContent",[lB,cB]=w2(Jg),E2=b.forwardRef((e,t)=>{var Y,we,_e,Ae,Le,De;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:N="optimized",onPlaced:k,...w}=e,j=S2(Jg,n),[S,E]=b.useState(null),P=et(t,mt=>E(mt)),[T,A]=b.useState(null),V=og(T),z=(V==null?void 0:V.width)??0,R=(V==null?void 0:V.height)??0,K=r+(l!=="center"?"-"+l:""),U=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},q=Array.isArray(m)?m:[m],H=q.length>0,Z={padding:U,boundary:q.filter(dB),altBoundary:H},{refs:ce,floatingStyles:ie,placement:ee,isPositioned:te,middlewareData:F}=YV({strategy:"fixed",placement:K,whileElementsMounted:(...mt)=>BV(...mt,{animationFrame:N==="always"}),elements:{reference:j.anchor},middleware:[JV({mainAxis:i+R,alignmentAxis:c}),f&&ZV({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?eB():void 0,...Z}),f&&tB({...Z}),nB({...Z,apply:({elements:mt,rects:Et,availableWidth:Pt,availableHeight:Pe})=>{const{width:it,height:hn}=Et.reference,Vt=mt.floating.style;Vt.setProperty("--radix-popper-available-width",`${Pt}px`),Vt.setProperty("--radix-popper-available-height",`${Pe}px`),Vt.setProperty("--radix-popper-anchor-width",`${it}px`),Vt.setProperty("--radix-popper-anchor-height",`${hn}px`)}}),T&&sB({element:T,padding:d}),fB({arrowWidth:z,arrowHeight:R}),v&&rB({strategy:"referenceHidden",...Z})]}),[se,ne]=_2(ee),D=Os(k);Gt(()=>{te&&(D==null||D())},[te,D]);const G=(Y=F.arrow)==null?void 0:Y.x,pe=(we=F.arrow)==null?void 0:we.y,ge=((_e=F.arrow)==null?void 0:_e.centerOffset)!==0,[Re,he]=b.useState();return Gt(()=>{S&&he(window.getComputedStyle(S).zIndex)},[S]),a.jsx("div",{ref:ce.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:te?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(Ae=F.transformOrigin)==null?void 0:Ae.x,(Le=F.transformOrigin)==null?void 0:Le.y].join(" "),...((De=F.hide)==null?void 0:De.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(lB,{scope:n,placedSide:se,onArrowChange:A,arrowX:G,arrowY:pe,shouldHideArrow:ge,children:a.jsx($e.div,{"data-side":se,"data-align":ne,...w,ref:P,style:{...w.style,animation:te?void 0:"none"}})})})});E2.displayName=Jg;var P2="PopperArrow",uB={top:"bottom",right:"left",bottom:"top",left:"right"},T2=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=cB(P2,r),c=uB[l.placedSide];return a.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:a.jsx(iB,{...i,ref:n,style:{...i.style,display:"block"}})})});T2.displayName=P2;function dB(e){return e!==null}var fB=e=>({name:"transformOrigin",options:e,fn(t){var j,S,E;const{placement:n,rects:r,middlewareData:i}=t,c=((j=i.arrow)==null?void 0:j.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[m,p]=_2(n),g={start:"0%",center:"50%",end:"100%"}[p],v=(((S=i.arrow)==null?void 0:S.x)??0)+d/2,N=(((E=i.arrow)==null?void 0:E.y)??0)+f/2;let k="",w="";return m==="bottom"?(k=c?g:`${v}px`,w=`${-f}px`):m==="top"?(k=c?g:`${v}px`,w=`${r.floating.height+f}px`):m==="right"?(k=`${-f}px`,w=c?g:`${N}px`):m==="left"&&(k=`${r.floating.width+f}px`,w=c?g:`${N}px`),{data:{x:k,y:w}}}});function _2(e){const[t,n="center"]=e.split("-");return[t,n]}var hB=j2,mB=C2,pB=E2,gB=T2,xB="Portal",R2=b.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[i,l]=b.useState(!1);Gt(()=>l(!0),[]);const c=n||i&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?eR.createPortal(a.jsx($e.div,{...r,ref:t}),c):null});R2.displayName=xB;var A2=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"}),yB="VisuallyHidden",vB=b.forwardRef((e,t)=>a.jsx($e.span,{...e,ref:t,style:{...A2,...e.style}}));vB.displayName=yB;var bB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ui=new WeakMap,gu=new WeakMap,xu={},mm=0,O2=function(e){return e&&(e.host||O2(e.parentNode))},wB=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=O2(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})},NB=function(e,t,n,r){var i=wB(t,Array.isArray(e)?e:[e]);xu[n]||(xu[n]=new WeakMap);var l=xu[n],c=[],d=new Set,f=new Set(i),m=function(g){!g||d.has(g)||(d.add(g),m(g.parentNode))};i.forEach(m);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))p(v);else try{var N=v.getAttribute(r),k=N!==null&&N!=="false",w=(ui.get(v)||0)+1,j=(l.get(v)||0)+1;ui.set(v,w),l.set(v,j),c.push(v),w===1&&k&&gu.set(v,!0),j===1&&v.setAttribute(n,"true"),k||v.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};
vendor: 6,080 bytes, lines 392-407
392return p(t),d.clear(),mm++,function(){c.forEach(function(g){var v=ui.get(g)-1,N=l.get(g)-1;ui.set(g,v),l.set(g,N),v||(gu.has(g)||g.removeAttribute(r),gu.delete(g)),N||g.removeAttribute(n)}),mm--,mm||(ui=new WeakMap,ui=new WeakMap,gu=new WeakMap,xu={})}},SB=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=bB(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),NB(r,i,n,"aria-hidden")):function(){return null}},ir=function(){return ir=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},ir.apply(this,arguments)};function M2(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function jB(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var Du="right-scroll-bar-position",Lu="width-before-scroll-bar",kB="with-scroll-bars-hidden",CB="--removed-body-scroll-bar-size";function pm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function EB(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var PB=typeof window<"u"?b.useLayoutEffect:b.useEffect,Yw=new WeakMap;function TB(e,t){var n=EB(null,function(r){return e.forEach(function(i){return pm(i,r)})});return PB(function(){var r=Yw.get(n);if(r){var i=new Set(r),l=new Set(e),c=n.current;i.forEach(function(d){l.has(d)||pm(d,null)}),l.forEach(function(d){i.has(d)||pm(d,c)})}Yw.set(n,e)},[e]),n}function _B(e){return e}function RB(e,t){t===void 0&&(t=_B);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,r);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(r=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(d){return l(d)},filter:function(){return n}}},assignMedium:function(l){r=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(l),c=n}var f=function(){var p=c;c=[],p.forEach(l)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(p){c.push(p),m()},filter:function(p){return c=c.filter(p),n}}}};return i}function AB(e){e===void 0&&(e={});var t=RB(null);return t.options=ir({async:!0,ssr:!1},e),t}var D2=function(e){var t=e.sideCar,n=M2(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 b.createElement(r,ir({},n))};D2.isSideCarExport=!0;function OB(e,t){return e.useMedium(t),D2}var L2=AB(),gm=function(){},Rd=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:gm,onWheelCapture:gm,onTouchMoveCapture:gm}),i=r[0],l=r[1],c=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,p=e.enabled,g=e.shards,v=e.sideCar,N=e.noRelative,k=e.noIsolation,w=e.inert,j=e.allowPinchZoom,S=e.as,E=S===void 0?"div":S,P=e.gapMode,T=M2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=v,V=TB([n,t]),z=ir(ir({},T),i);return b.createElement(b.Fragment,null,p&&b.createElement(A,{sideCar:L2,removeScrollBar:m,shards:g,noRelative:N,noIsolation:k,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:n,gapMode:P}),c?b.cloneElement(b.Children.only(d),ir(ir({},z),{ref:V})):b.createElement(E,ir({},z,{className:f,ref:V}),d))});Rd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rd.classNames={fullWidth:Lu,zeroRight:Du};var MB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function DB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=MB();return t&&e.setAttribute("nonce",t),e}function LB(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FB=function(){var e=0,t=null;return{add:function(n){e==0&&(t=DB())&&(LB(t,n),IB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VB=function(){var e=FB();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},I2=function(){var e=VB(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},BB={left:0,top:0,right:0,gap:0},xm=function(e){return parseInt(e||"",10)||0},UB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[xm(n),xm(r),xm(i)]},$B=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BB;var t=UB(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])}},zB=I2(),bi="data-scroll-locked",qB=function(e,t,n,r){var i=e.left,l=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
393  .`.concat(kB,` {
394   overflow: hidden `).concat(r,`;
395   padding-right: `).concat(d,"px ").concat(r,`;
396  }
397  body[`).concat(bi,`] {
398    overflow: hidden `).concat(r,`;
399    overscroll-behavior: contain;
400    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
401    padding-left: `.concat(i,`px;
402    padding-top: `).concat(l,`px;
403    padding-right: `).concat(c,`px;
404    margin-left:0;
405    margin-top:0;
406    margin-right: `).concat(d,"px ").concat(r,`;
407    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";
407")].filter(Boolean).join(""),`
408  }
409  
410  .`).concat(Du,` {
411    right: `).concat(d,"px ").concat(r,`;
412  }
413  
414  .`).concat(Lu,` {
415    margin-right: `).concat(d,"px ").concat(r,`;
416  }
417  
418  .`).concat(Du," .").concat(Du,` {
419    right: 0 `).concat(r,`;
420  }
421  
422  .`).concat(Lu," .").concat(Lu,` {
423    margin-right: 0 `).concat(r,`;
424  }
425  
426  body[`).concat(bi,`] {
427    `).concat(CB,": ").concat(d,`px;
428  }
429`)},Xw=function(){var e=parseInt(document.body.getAttribute(bi)||"0",10);return isFinite(e)?e:0},HB=function(){b.useEffect(function(){return document.body.setAttribute(bi,(Xw()+1).toString()),function(){var e=Xw()-1;e<=0?document.body.removeAttribute(bi):document.body.setAttribute(bi,e.toString())}},[])},WB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;HB();var l=b.useMemo(function(){return $B(i)},[i]);return b.createElement(zB,{styles:qB(l,!t,i,n?"":"!important")})},Sp=!1;if(typeof window<"u")try{var yu=Object.defineProperty({},"passive",{get:function(){return Sp=!0,!0}});window.addEventListener("test",yu,yu),window.removeEventListener("test",yu,yu)}catch{Sp=!1}var di=Sp?{passive:!1}:!1,KB=function(e){return e.tagName==="TEXTAREA"},F2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KB(e)&&n[t]==="visible")},GB=function(e){return F2(e,"overflowY")},QB=function(e){return F2(e,"overflowX")},Jw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=V2(e,r);if(i){var l=B2(e,r),c=l[1],d=l[2];if(c>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},YB=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},XB=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},V2=function(e,t){return e==="v"?GB(t):QB(t)},B2=function(e,t){return e==="v"?YB(t):XB(t)},JB=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZB=function(e,t,n,r,i){var l=JB(e,window.getComputedStyle(t).direction),c=l*r,d=n.target,f=t.contains(d),m=!1,p=c>0,g=0,v=0;do{if(!d)break;var N=B2(e,d),k=N[0],w=N[1],j=N[2],S=w-j-l*k;(k||S)&&V2(e,d)&&(g+=S,v+=k);var E=d.parentNode;d=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(p&&Math.abs(g)<1||!p&&Math.abs(v)<1)&&(m=!0),m},vu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zw=function(e){return[e.deltaX,e.deltaY]},e1=function(e){return e&&"current"in e?e.current:e},e8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},t8=function(e){return`
430  .block-interactivity-`.concat(e,` {pointer-events: none;}
431  .allow-interactivity-`).concat(e,` {pointer-events: all;}
432`)},n8=0,fi=[];function r8(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(n8++)[0],l=b.useState(I2)[0],c=b.useRef(e);b.useEffect(function(){c.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=jB([e.lockRef.current],(e.shards||[]).map(e1),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEac
vendor: 4,634 bytes, line 432
432h(function(j){return j.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var d=b.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var S=vu(w),E=n.current,P="deltaX"in w?w.deltaX:E[0]-S[0],T="deltaY"in w?w.deltaY:E[1]-S[1],A,V=w.target,z=Math.abs(P)>Math.abs(T)?"h":"v";if("touches"in w&&z==="h"&&V.type==="range")return!1;var R=Jw(z,V);if(!R)return!0;if(R?A=z:(A=z==="v"?"h":"v",R=Jw(z,V)),!R)return!1;if(!r.current&&"changedTouches"in w&&(P||T)&&(r.current=A),!A)return!0;var K=r.current||A;return ZB(K,j,w,K==="h"?P:T)},[]),f=b.useCallback(function(w){var j=w;if(!(!fi.length||fi[fi.length-1]!==l)){var S="deltaY"in j?Zw(j):vu(j),E=t.current.filter(function(A){return A.name===j.type&&(A.target===j.target||j.target===A.shadowParent)&&e8(A.delta,S)})[0];if(E&&E.should){j.cancelable&&j.preventDefault();return}if(!E){var P=(c.current.shards||[]).map(e1).filter(Boolean).filter(function(A){return A.contains(j.target)}),T=P.length>0?d(j,P[0]):!c.current.noIsolation;T&&j.cancelable&&j.preventDefault()}}},[]),m=b.useCallback(function(w,j,S,E){var P={name:w,delta:j,target:S,should:E,shadowParent:s8(S)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(T){return T!==P})},1)},[]),p=b.useCallback(function(w){n.current=vu(w),r.current=void 0},[]),g=b.useCallback(function(w){m(w.type,Zw(w),w.target,d(w,e.lockRef.current))},[]),v=b.useCallback(function(w){m(w.type,vu(w),w.target,d(w,e.lockRef.current))},[]);b.useEffect(function(){return fi.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",f,di),document.addEventListener("touchmove",f,di),document.addEventListener("touchstart",p,di),function(){fi=fi.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,di),document.removeEventListener("touchmove",f,di),document.removeEventListener("touchstart",p,di)}},[]);var N=e.removeScrollBar,k=e.inert;return b.createElement(b.Fragment,null,k?b.createElement(l,{styles:t8(i)}):null,N?b.createElement(WB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function s8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const o8=OB(L2,r8);var U2=b.forwardRef(function(e,t){return b.createElement(Rd,ir({},e,{ref:t,sideCar:o8}))});U2.classNames=Rd.classNames;var i8=[" ","Enter","ArrowUp","ArrowDown"],a8=[" ","Enter"],To="Select",[Ad,Od,l8]=ig(To),[na]=Mo(To,[l8,N2]),Md=N2(),[c8,Is]=na(To),[u8,d8]=na(To),$2=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:c,defaultValue:d,onValueChange:f,dir:m,name:p,autoComplete:g,disabled:v,required:N,form:k}=e,w=Md(t),[j,S]=b.useState(null),[E,P]=b.useState(null),[T,A]=b.useState(!1),V=xd(m),[z,R]=Fi({prop:r,defaultProp:i??!1,onChange:l,caller:To}),[K,U]=Fi({prop:c,defaultProp:d,onChange:f,caller:To}),q=b.useRef(null),H=j?k||!!j.closest("form"):!0,[Z,ce]=b.useState(new Set),ie=Array.from(Z).map(ee=>ee.props.value).join(";");return a.jsx(hB,{...w,children:a.jsxs(c8,{required:N,scope:t,trigger:j,onTriggerChange:S,valueNode:E,onValueNodeChange:P,valueNodeHasChildren:T,onValueNodeHasChildrenChange:A,contentId:Hl(),value:K,onValueChange:U,open:z,onOpenChange:R,dir:V,triggerPointerDownPosRef:q,disabled:v,children:[a.jsx(Ad.Provider,{scope:t,children:a.jsx(u8,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(ee=>{ce(te=>new Set(te).add(ee))},[]),onNativeOptionRemove:b.useCallback(ee=>{ce(te=>{const F=new Set(te);return F.delete(ee),F})},[]),children:n})}),H?a.jsxs(fk,{"aria-hidden":!0,required:N,tabIndex:-1,name:p,autoComplete:g,value:K,onChange:ee=>U(ee.target.value),disabled:v,form:k,children:[K===void 0?a.jsx("option",{value:""}):null,Array.from(Z)]},ie):null]})})};$2.displayName=To;var z2="SelectTrigger",q2=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=Md(n),c=Is(z2,n),d=c.disabled||r,f=et(t,c.onTriggerChange),m=Od(n),p=b.useRef("touch"),[g,v,N]=mk(w=>{const j=m().filter(P=>!P.disabled),S=j.find(P=>P.value===c.value),E=pk(j,w,S);E!==void 0&&c.onValueChange(E.value)}),k=w=>{d||(c.onOpenChange(!0),N()),w&&(c.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return a.jsx(mB,{asChild:!0,...l,children:a.jsx($e.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":hk(c.value)?"":void 0,...i,ref:f,onClick:Ue(i.onClick,w=>
vendor: 16,676 bytes, line 432
432{w.currentTarget.focus(),p.current!=="mouse"&&k(w)}),onPointerDown:Ue(i.onPointerDown,w=>{p.current=w.pointerType;const j=w.target;j.hasPointerCapture(w.pointerId)&&j.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(k(w),w.preventDefault())}),onKeyDown:Ue(i.onKeyDown,w=>{const j=g.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&v(w.key),!(j&&w.key===" ")&&i8.includes(w.key)&&(k(),w.preventDefault())})})})});q2.displayName=z2;var H2="SelectValue",W2=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:c="",...d}=e,f=Is(H2,n),{onValueNodeHasChildrenChange:m}=f,p=l!==void 0,g=et(t,f.onValueNodeChange);return Gt(()=>{m(p)},[m,p]),a.jsx($e.span,{...d,ref:g,style:{pointerEvents:"none"},children:hk(f.value)?a.jsx(a.Fragment,{children:c}):l})});W2.displayName=H2;var f8="SelectIcon",K2=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return a.jsx($e.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});K2.displayName=f8;var h8="SelectPortal",G2=e=>a.jsx(R2,{asChild:!0,...e});G2.displayName=h8;var _o="SelectContent",Q2=b.forwardRef((e,t)=>{const n=Is(_o,e.__scopeSelect),[r,i]=b.useState();if(Gt(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?Ml.createPortal(a.jsx(Y2,{scope:e.__scopeSelect,children:a.jsx(Ad.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),l):null}return a.jsx(X2,{...e,ref:t})});Q2.displayName=_o;var qn=10,[Y2,Fs]=na(_o),m8="SelectContentImpl",p8=vl("SelectContent.RemoveScroll"),X2=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:c,side:d,sideOffset:f,align:m,alignOffset:p,arrowPadding:g,collisionBoundary:v,collisionPadding:N,sticky:k,hideWhenDetached:w,avoidCollisions:j,...S}=e,E=Is(_o,n),[P,T]=b.useState(null),[A,V]=b.useState(null),z=et(t,Y=>T(Y)),[R,K]=b.useState(null),[U,q]=b.useState(null),H=Od(n),[Z,ce]=b.useState(!1),ie=b.useRef(!1);b.useEffect(()=>{if(P)return SB(P)},[P]),VF();const ee=b.useCallback(Y=>{const[we,..._e]=H().map(De=>De.ref.current),[Ae]=_e.slice(-1),Le=document.activeElement;for(const De of Y)if(De===Le||(De==null||De.scrollIntoView({block:"nearest"}),De===we&&A&&(A.scrollTop=0),De===Ae&&A&&(A.scrollTop=A.scrollHeight),De==null||De.focus(),document.activeElement!==Le))return},[H,A]),te=b.useCallback(()=>ee([R,P]),[ee,R,P]);b.useEffect(()=>{Z&&te()},[Z,te]);const{onOpenChange:F,triggerPointerDownPosRef:se}=E;b.useEffect(()=>{if(P){let Y={x:0,y:0};const we=Ae=>{var Le,De;Y={x:Math.abs(Math.round(Ae.pageX)-(((Le=se.current)==null?void 0:Le.x)??0)),y:Math.abs(Math.round(Ae.pageY)-(((De=se.current)==null?void 0:De.y)??0))}},_e=Ae=>{Y.x<=10&&Y.y<=10?Ae.preventDefault():P.contains(Ae.target)||F(!1),document.removeEventListener("pointermove",we),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",_e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",_e,{capture:!0})}}},[P,F,se]),b.useEffect(()=>{const Y=()=>F(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[F]);const[ne,D]=mk(Y=>{const we=H().filter(Le=>!Le.disabled),_e=we.find(Le=>Le.ref.current===document.activeElement),Ae=pk(we,Y,_e);Ae&&setTimeout(()=>Ae.ref.current.focus())}),G=b.useCallback((Y,we,_e)=>{const Ae=!ie.current&&!_e;(E.value!==void 0&&E.value===we||Ae)&&(K(Y),Ae&&(ie.current=!0))},[E.value]),pe=b.useCallback(()=>P==null?void 0:P.focus(),[P]),ge=b.useCallback((Y,we,_e)=>{const Ae=!ie.current&&!_e;(E.value!==void 0&&E.value===we||Ae)&&q(Y)},[E.value]),Re=r==="popper"?jp:J2,he=Re===jp?{side:d,sideOffset:f,align:m,alignOffset:p,arrowPadding:g,collisionBoundary:v,collisionPadding:N,sticky:k,hideWhenDetached:w,avoidCollisions:j}:{};return a.jsx(Y2,{scope:n,content:P,viewport:A,onViewportChange:V,itemRefCallback:G,selectedItem:R,onItemLeave:pe,itemTextRefCallback:ge,focusSelectedItem:te,selectedItemText:U,position:r,isPositioned:Z,searchRef:ne,children:a.jsx(U2,{as:p8,allowPinchZoom:!0,children:a.jsx(a2,{asChild:!0,trapped:E.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:Ue(i,Y=>{var we;(we=E.trigger)==null||we.focus({preventScroll:!0}),Y.preventDefault()}),children:a.jsx(o2,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:a.jsx(Re,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:Y=>Y.preventDefault(),...S,...he,onPlaced:()=>ce(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Ue(S.onKeyDown,Y=>{const we=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!we&&Y.key.length===1&&D(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let Ae=H().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const Le=Y.target,De=Ae.indexOf(Le);Ae=Ae.slice(De+1)}setTimeout(()=>ee(Ae)),Y.preventDefault()}})})})})})})});X2.displayName=m8;var g8="SelectItemAlignedPosition",J2=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Is(_o,n),c=Fs(_o,n),[d,f]=b.useState(null),[m,p]=b.useState(null),g=et(t,z=>p(z)),v=Od(n),N=b.useRef(!1),k=b.useRef(!0),{viewport:w,selectedItem:j,selectedItemText:S,focusSelectedItem:E}=c,P=b.useCallback(()=>{if(l.trigger&&l.valueNode&&d&&m&&w&&j&&S){const z=l.trigger.getBoundingClientRect(),R=m.getBoundingClientRect(),K=l.valueNode.getBoundingClientRect(),U=S.getBoundingClientRect();if(l.dir!=="rtl"){const Le=U.left-R.left,De=K.left-Le,mt=z.left-De,Et=z.width+mt,Pt=Math.max(Et,R.width),Pe=window.innerWidth-qn,it=Gu(De,[qn,Math.max(qn,Pe-Pt)]);d.style.minWidth=Et+"px",d.style.left=it+"px"}else{const Le=R.right-U.right,De=window.innerWidth-K.right-Le,mt=window.innerWidth-z.right-De,Et=z.width+mt,Pt=Math.max(Et,R.width),Pe=window.innerWidth-qn,it=Gu(De,[qn,Math.max(qn,Pe-Pt)]);d.style.minWidth=Et+"px",d.style.right=it+"px"}const q=v(),H=window.innerHeight-qn*2,Z=w.scrollHeight,ce=window.getComputedStyle(m),ie=parseInt(ce.borderTopWidth,10),ee=parseInt(ce.paddingTop,10),te=parseInt(ce.borderBottomWidth,10),F=parseInt(ce.paddingBottom,10),se=ie+ee+Z+F+te,ne=Math.min(j.offsetHeight*5,se),D=window.getComputedStyle(w),G=parseInt(D.paddingTop,10),pe=parseInt(D.paddingBottom,10),ge=z.top+z.height/2-qn,Re=H-ge,he=j.offsetHeight/2,Y=j.offsetTop+he,we=ie+ee+Y,_e=se-we;if(we<=ge){const Le=q.length>0&&j===q[q.length-1].ref.current;d.style.bottom="0px";const De=m.clientHeight-w.offsetTop-w.offsetHeight,mt=Math.max(Re,he+(Le?pe:0)+De+te),Et=we+mt;d.style.height=Et+"px"}else{const Le=q.length>0&&j===q[0].ref.current;d.style.top="0px";const mt=Math.max(ge,ie+w.offsetTop+(Le?G:0)+he)+_e;d.style.height=mt+"px",w.scrollTop=we-ge+w.offsetTop}d.style.margin=`${qn}px 0`,d.style.minHeight=ne+"px",d.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>N.current=!0)}},[v,l.trigger,l.valueNode,d,m,w,j,S,l.dir,r]);Gt(()=>P(),[P]);const[T,A]=b.useState();Gt(()=>{m&&A(window.getComputedStyle(m).zIndex)},[m]);const V=b.useCallback(z=>{z&&k.current===!0&&(P(),E==null||E(),k.current=!1)},[P,E]);return a.jsx(y8,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:N,onScrollButtonChange:V,children:a.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:a.jsx($e.div,{...i,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});J2.displayName=g8;var x8="SelectPopperPosition",jp=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=qn,...l}=e,c=Md(n);return a.jsx(pB,{...c,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});jp.displayName=x8;var[y8,Zg]=na(_o,{}),kp="SelectViewport",Z2=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Fs(kp,n),c=Zg(kp,n),d=et(t,l.onViewportChange),f=b.useRef(0);return a.jsxs(a.Fragment,{children:[a.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}),a.jsx(Ad.Slot,{scope:n,children:a.jsx($e.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Ue(i.onScroll,m=>{const p=m.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=c;if(v!=null&&v.current&&g){const N=Math.abs(f.current-p.scrollTop);if(N>0){const k=window.innerHeight-qn*2,w=parseFloat(g.style.minHeight),j=parseFloat(g.style.height),S=Math.max(w,j);if(S<k){const E=S+N,P=Math.min(k,E),T=E-P;g.style.height=P+"px",g.style.bottom==="0px"&&(p.scrollTop=T>0?T:0,g.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});Z2.displayName=kp;var ek="SelectGroup",[v8,b8]=na(ek),w8=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Hl();return a.jsx(v8,{scope:n,id:i,children:a.jsx($e.div,{role:"group","aria-labelledby":i,...r,ref:t})})});w8.displayName=ek;var tk="SelectLabel",nk=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=b8(tk,n);return a.jsx($e.div,{id:i.id,...r,ref:t})});nk.displayName=tk;var ad="SelectItem",[N8,rk]=na(ad),sk=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...c}=e,d=Is(ad,n),f=Fs(ad,n),m=d.value===r,[p,g]=b.useState(l??""),[v,N]=b.useState(!1),k=et(t,E=>{var P;return(P=f.itemRefCallback)==null?void 0:P.call(f,E,r,i)}),w=Hl(),j=b.useRef("touch"),S=()=>{i||(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 a.jsx(N8,{scope:n,value:r,disabled:i,textId:w,isSelected:m,onItemTextChange:b.useCallback(E=>{g(P=>P||((E==null?void 0:E.textContent)??"").trim())},[]),children:a.jsx(Ad.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:a.jsx($e.div,{role:"option","aria-labelledby":w,"data-highlighted":v?"":void 0,"aria-selected":m&&v,"data-state":m?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:k,onFocus:Ue(c.onFocus,()=>N(!0)),onBlur:Ue(c.onBlur,()=>N(!1)),onClick:Ue(c.onClick,()=>{j.current!=="mouse"&&S()}),onPointerUp:Ue(c.onPointerUp,()=>{j.current==="mouse"&&S()}),onPointerDown:Ue(c.onPointerDown,E=>{j.current=E.pointerType}),onPointerMove:Ue(c.onPointerMove,E=>{var P;j.current=E.pointerType,i?(P=f.onItemLeave)==null||P.call(f):j.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ue(c.onPointerLeave,E=>{var P;E.currentTarget===document.activeElement&&((P=f.onItemLeave)==null||P.call(f))}),onKeyDown:Ue(c.onKeyDown,E=>{var T;((T=f.searchRef)==null?void 0:T.current)!==""&&E.key===" "||(a8.includes(E.key)&&S(),E.key===" "&&E.preventDefault())})})})})});sk.displayName=ad;var rl="SelectItemText",ok=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,c=Is(rl,n),d=Fs(rl,n),f=rk(rl,n),m=d8(rl,n),[p,g]=b.useState(null),v=et(t,S=>g(S),f.onItemTextChange,S=>{var E;return(E=d.itemTextRefCallback)==null?void 0:E.call(d,S,f.value,f.disabled)}),N=p==null?void 0:p.textContent,k=b.useMemo(()=>a.jsx("option",{value:f.value,disabled:f.disabled,children:N},f.value),[f.disabled,f.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:j}=m;return Gt(()=>(w(k),()=>j(k)),[w,j,k]),a.jsxs(a.Fragment,{children:[a.jsx($e.span,{id:f.textId,...l,ref:v}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Ml.createPortal(l.children,c.valueNode):null]})});ok.displayName=rl;var ik="SelectItemIndicator",ak=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return rk(ik,n).isSelected?a.jsx($e.span,{"aria-hidden":!0,...r,ref:t}):null});ak.displayName=ik;var Cp="SelectScrollUpButton",lk=b.forwardRef((e,t)=>{const n=Fs(Cp,e.__scopeSelect),r=Zg(Cp,e.__scopeSelect),[i,l]=b.useState(!1),c=et(t,r.onScrollButtonChange);return Gt(()=>{if(n.viewport&&n.isPositioned){let d=function(){const m=f.scrollTop>0;l(m)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),i?a.jsx(uk,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});lk.displayName=Cp;var Ep="SelectScrollDownButton",ck=b.forwardRef((e,t)=>{const n=Fs(Ep,e.__scopeSelect),r=Zg(Ep,e.__scopeSelect),[i,l]=b.useState(!1),c=et(t,r.onScrollButtonChange);return Gt(()=>{if(n.viewport&&n.isPositioned){let d=function(){const m=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)<m;l(p)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),i?a.jsx(uk,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});ck.displayName=Ep;var uk=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Fs("SelectScrollButton",n),c=b.useRef(null),d=Od(n),f=b.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return b.useEffect(()=>()=>f(),[f]),Gt(()=>{var p;const m=d().find(g=>g.ref.current===document.activeElement);(p=m==null?void 0:m.ref.current)==null||p.scrollIntoView({block:"nearest"})},[d]),a.jsx($e.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Ue(i.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Ue(i.onPointerMove,()=>{var m;(m=l.onItemLeave)==null||m.call(l),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Ue(i.onPointerLeave,()=>{f()})})}),S8="SelectSeparator",dk=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.jsx($e.div,{"aria-hidden":!0,...r,ref:t})});dk.displayName=S8;var Pp="SelectArrow",j8=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Md(n),l=Is(Pp,n),c=Fs(Pp,n);return l.open&&c.position==="popper"?a.jsx(gB,{...i,...r,ref:t}):null});j8.displayName=Pp;var k8="SelectBubbleInput",fk=b.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=b.useRef(null),l=et(r,i),c=sg(t);return b.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&p){const g=new Event("change",{bubbles:!0});p.call(d,t),d.dispatchEvent(g)}},[c,t]),a.jsx($e.select,{...n,style:{...A2,...n.style},ref:l,defaultValue:t})});fk.displayName=k8;function hk(e){return e===""||e===void 0}function mk(e){const t=Os(e),n=b.useRef(""),r=b.useRef(0),i=b.useCallback(c=>{const d=n.current+c;t(d),(function f(m){n.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(d)},[t]),l=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function pk(e,t,n){const i=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=C8(e,Math.max(l,0));i.length===1&&(c=c.filter(m=>m!==n));const f=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function C8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var E8=$2,gk=q2,P8=W2,T8=K2,_8=G2,xk=Q2,R8=Z2,yk=nk,vk=sk,A8=ok,O8=ak,bk=lk,wk=ck,Nk=dk;const M8=E8,D8=P8,Sk=b.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(gk,{ref:r,className:Ye("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,a.jsx(T8,{asChild:!0,children:a.jsx(Dp,{className:"h-4 w-4 opacity-50"})})]}));Sk.displayName=gk.displayName;const jk=b.forwardRef(({className:e,...t},n)=>a.jsx(bk,{ref:n,className:Ye("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(SP,{className:"h-4 w-4"})}));jk.displayName=bk.displayName;
432const kk=b.forwardRef(({className:e,...t},n)=>a.jsx(wk,{ref:n,className:Ye("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(Dp,{className:"h-4 w-4"})}));kk.displayName=wk.displayName;const Ck=b.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>a.jsx(_8,{children:a.jsxs(xk,{ref:i,className:Ye("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:[a.jsx(jk,{}),a.jsx(R8,{className:Ye("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(kk,{})]})}));Ck.displayName=xk.displayName;const L8=b.forwardRef(({className:e,...t},n)=>a.jsx(yk,{ref:n,className:Ye("px-2 py-1.5 text-sm font-semibold",e),...t}));L8.displayName=yk.displayName;const sl=b.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(vk,{ref:r,className:Ye("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:[a.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(O8,{children:a.jsx(qi,{className:"h-4 w-4"})})}),a.jsx(A8,{children:t})]}));
432sl.displayName=vk.displayName;const I8=b.forwardRef(({className:e,...t},n)=>a.jsx(Nk,{ref:n,className:Ye("-mx-1 my-1 h-px bg-muted",e),...t}));I8.displayName=Nk.displayName;function F8(){const[e,t]=b.useState({title:"",description:"",image_url:"",category:"Eventos",featured:!1}),[n,r]=b.useState(!1),[i,l]=b.useState(!1),c=nn(),d=yt({mutationFn:p=>Me.entities.Photo.create(p),onSuccess:()=>{c.invalidateQueries({queryKey:["photos"]}),l(!0),t({title:"",description:"",image_url:"",category:"Eventos",featured:!1}),setTimeout(()=>l(!1),5e3),Ge.success("Foto adicionada com sucesso!")}}),f=async p=>{var v;const g=(v=p.target.files)==null?void 0:v[0];if(g){r(!0);try{const N=await Me.integrations.Core.UploadFile({file:g});t({...e,image_url:N.file_url}),Ge.success("Imagem enviada com sucesso!")}catch{Ge.error("Erro ao enviar imagem")}finally{r(!1)}}},m=p=>{if(p.preventDefault(),!e.image_url){Ge.error("Por favor, faça upload de uma imagem");return}d.mutate(e)};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-purple-500/10 to-pink-500/10 border border-purple-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(Oi,{className:"w-5 h-5 text-purple-600"}),a.jsx("span",{className:"text-sm font-bold text-purple-900 tracking-[0.2em] uppercase",children:"Adicionar Foto"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Adicionar Foto à Galeria"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light",children:"Faça upload de suas fotos para a galeria"})]}),a.jsxs(le,{className:"shadow-2xl border-2 border-slate-200 bg-gradient-to-br from-white to-slate-50/30",children:[a.jsx(dr,{className:"bg-gradient-to-br from-purple-50 to-pink-50 border-b border-purple-100 pb-8",children:a.jsx(fr,{className:"text-3xl font-black text-slate-900 tracking-tight",children:"Nova Foto"})}),a.jsx(de,{className:"p-8",children:i?a.jsxs(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"py-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-purple-500 to-pink-600 rounded-full flex items-center justify-center mx-auto mb-6 shadow-2xl shadow-purple-500/30",children:a.jsx(Fr,{className:"w-12 h-12 text-white"})}),a.jsx("h3",{className:"text-3xl font-black text-slate-900 mb-3",children:"Foto Adicionada!"}),a.jsx("p",{className:"text-slate-600 text-lg",children:"Sua foto já está na galeria."})]}):a.jsxs("form",{onSubmit:m,className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Imagem *"}),a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"file",accept:"image/*",onChange:f,className:"hidden",id:"file-upload",disabled:n}),a.jsx("label",{htmlFor:"file-upload",className:`flex flex-col items-center justify-center w-full h-48 border-2 border-dashed rounded-xl cursor-pointer transition-all ${n?"border-slate-300 bg-slate-50":e.image_url?"border-purple-400 bg-purple-50":"border-slate-300 hover:border-purple-400 hover:bg-purple-50/50"}`,children:n?a.jsxs("div",{className:"text-center",children:[a.jsx(Vu,{className:"w-12 h-12 text-purple-600 animate-spin mx-auto mb-3"}),a.jsx("p",{className:"text-slate-600 font-semibold",children:"Enviando imagem..."})]}):e.image_url?a.jsxs("div",{className:"text-center",children:[a.jsx(Fr,{className:"w-12 h-12 text-purple-600 mx-auto mb-3"}),a.jsx("p",{className:"text-purple-700 font-bold",children:"Imagem enviada com sucesso!"}),a.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Clique para alterar"})]}):a.jsxs("div",{className:"text-center",children:[a.jsx(kT,{className:"w-12 h-12 text-slate-400 mx-auto mb-3"}),a.jsx("p",{className:"text-slate-700 font-semibold mb-1",children:"Clique para fazer upload"}),a.jsx("p",{className:"text-xs text-slate-500",children:"PNG, JPG ou GIF"})]})})]}),e.image_url&&a.jsx("div",{className:"mt-4",children:a.jsx("img",{src:e.image_url,alt:"Preview",className:"w-full h-48 object-cover rounded-xl border-2 border-slate-200"})})]}),a.jsx(He,{placeholder:"Título da foto *",value:e.title,onChange:p=>t({...e,title:p.target.value}),required:!0,className:"py-6 px-4 border-2 border-slate-200 focus:border-purple-400 rounded-xl"}),a.jsx($r,{placeholder:"Descrição (opcional)",rows:4,value:e.description,onChange:p=>t({...e,description:p.target.value}),className:"border-2 border-slate-200 focus:border-purple-400 rounded-xl resize-none"}),a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Categoria *"}),a.jsxs(M8,{value:e.category,onValueChange:p=>t({...e,category:p}),children:[a.jsx(Sk,{className:"py-6 border-2 border-slate-200 focus:border-purple-400 rounded-xl",children:a.jsx(D8,{})}),a.jsxs(Ck,{children:[a.jsx(sl,{value:"Eventos",children:"Eventos"}),a.jsx(sl,{value:"Equipe",children:"Equipe"}),a.jsx(sl,{value:"Ouvintes",children:"Ouvintes"}),a.jsx(sl,{value:"Estúdio",children:"Estúdio"})]})]})]}),a.jsxs("div",{className:"flex items-center space-x-3 p-4 bg-slate-50 rounded-xl",children:[a.jsx($i,{id:"featured",checked:e.featured,onCheckedChange:p=>t({...e,featured:p}),className:"h-5 w-5"}),a.jsx(tn,{htmlFor:"featured",className:"cursor-pointer font-semibold text-slate-700",children:"Marcar como destaque"})]}),a.jsxs(ae,{type:"submit",className:"w-full bg-gradient-to-r from-purple-500 via-pink-500 to-purple-600 hover:from-purple-400 hover:via-pink-400 hover:to-purple-500 text-white shadow-xl shadow-purple-500/30 hover:shadow-
432purple-500/50 text-lg py-7 font-bold rounded-xl transition-all duration-300",disabled:d.isPending||n,children:[a.jsx(Oi,{className:"w-5 h-5 mr-2"}),d.isPending?"Adicionando...":"Adicionar à Galeria"]})]})})]})]})})}function V8(){const[e,t]=b.useState({title:"",artist:"",album:"",youtube_url:"",played_at:new Date().toISOString()}),[n,r]=b.useState(!1),i=nn(),l=yt({mutationFn:d=>Me.entities.Song.create(d),onSuccess:()=>{i.invalidateQueries({queryKey:["songs"]}),i.invalidateQueries({queryKey:["recent-songs"]}),r(!0),t({title:"",artist:"",album:"",youtube_url:"",played_at:new Date().toISOString()}),setTimeout(()=>r(!1),5e3),Ge.success("Música adicionada com sucesso!")}}),c=d=>{d.preventDefault(),l.mutate(e)};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-blue-500/10 to-indigo-500/10 border border-blue-400/20 backdrop-blur-sm px-6 py-3 rounded-full mb-6 shadow-lg",children:[a.jsx(cr,{className:"w-5 h-5 text-blue-600"}),a.jsx("span",{className:"text-sm font-bold text-blue-900 tracking-[0.2em] uppercase",children:"Adicionar Música"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-6 bg-gradient-to-r from-slate-900 via-slate-700 to-slate-900 bg-clip-text text-transparent tracking-tight",children:"Adicionar Música"}),a.jsx("p",{className:"text-xl md:text-2xl text-slate-600 font-light",children:"Registre as músicas tocadas na rádio"})]}),a.jsxs(le,{className:"shadow-2xl border-2 border-slate-200 bg-gradient-to-br from-white to-slate-50/30",children:[a.jsx(dr,{className:"bg-gradient-to-br from-blue-50 to-indigo-50 border-b border-blue-100 pb-8",children:a.jsx(fr,{className:"text-3xl font-black text-slate-900 tracking-tight",children:"Nova Música"})}),a.jsx(de,{className:"p-8",children:n?a.jsxs(Q.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"py-16 text-center",children:[a.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-full flex items-center justify-center mx-auto mb-6 shadow-2xl shadow-blue-500/30",children:a.jsx(Fr,{className:"w-12 h-12 text-white"})}),a.jsx("h3",{className:"text-3xl font-black text-slate-900 mb-3",children:"Música Adicionada!"}),a.jsx("p",{className:"text-slate-600 text-lg",children:"A música foi registrada com sucesso."})]}):a.jsxs("form",{onSubmit:c,className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Título da Música *"}),a.jsx(He,{placeholder:"Nome da música",value:e.title,onChange:d=>t({...e,title:d.target.value}),required:!0,className:"py-6 px-4 border-2 border-slate-200 focus:border-blue-400 rounded-xl"})]}),a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Artista *"}),a.jsx(He,{placeholder:"Nome do artista",value:e.artist,onChange:d=>t({...e,artist:d.target.value}),required:!0,className:"py-6 px-4 border-2 border-slate-200 focus:border-blue-400 rounded-xl"})]}),a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Álbum (opcional)"}),a.jsx(He,{placeholder:"Nome do álbum",value:e.album,onChange:d=>t({...e,album:d.target.value}),className:"py-6 px-4 border-2 border-slate-200 focus:border-blue-400 rounded-xl"})]}),a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Link do YouTube (opcional)"}),a.jsx(He,{placeholder:"https://www.youtube.com/watch?v=...",value:e.youtube_url,onChange:d=>t({...e,youtube_url:d.target.value}),className:"py-6 px-4 border-2 border-slate-200 focus:border-blue-400 rounded-xl"})]}),a.jsxs("div",{children:[a.jsx(tn,{className:"text-base font-bold text-slate-900 mb-3 block",children:"Data e Hora"}),a.jsx(He,{type:"datetime-local",value:e.played_at.slice(0,16),onChange:d=>t({...e,played_at:new Date(d.target.value).toISOString()}),className:"py-6 px-4 border-2 border-slate-200 focus:border-blue-400 rounded-xl"})]}),a.jsxs(ae,{type:"submit",className:"w-full bg-gradient-to-r from-blue-500 via-indigo-500 to-blue-600 hover:from-blue-400 hover:via-indigo-400 hover:to-blue-500 text-white shadow-xl shadow-blue-500/30 hover:shadow-blue-500/50 text-lg py-7 font-bold rounded-xl transition-all duration-300",disabled:l.isPending,children:[a.jsx(cr,{className:"w-5 h-5 mr-2"}),l.isPending?"Adicionando...":"Adicionar Música"]})]})})]})]})})}var ym="rovingFocusGroup.onEntryFocus",B8={bubbles:!1,cancelable:!0},Kl="RovingFocusGroup",[Tp,Ek,U8]=ig(Kl),[$8,Pk]=Mo(Kl,[U8]),[z8,q8]=$8(Kl),Tk=b.forwardRef((e,t)=>
vendor: 1,442 bytes, line 432
432a.jsx(Tp.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Tp.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(H8,{...e,ref:t})})}));Tk.displayName=Kl;var H8=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:p=!1,...g}=e,v=b.useRef(null),N=et(t,v),k=xd(l),[w,j]=Fi({prop:c,defaultProp:d??null,onChange:f,caller:Kl}),[S,E]=b.useState(!1),P=Os(m),T=Ek(n),A=b.useRef(!1),[V,z]=b.useState(0);return b.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(ym,P),()=>R.removeEventListener(ym,P)},[P]),a.jsx(z8,{scope:n,orientation:r,dir:k,loop:i,currentTabStopId:w,onItemFocus:b.useCallback(R=>j(R),[j]),onItemShiftTab:b.useCallback(()=>E(!0),[]),onFocusableItemAdd:b.useCallback(()=>z(R=>R+1),[]),onFocusableItemRemove:b.useCallback(()=>z(R=>R-1),[]),children:a.jsx($e.div,{tabIndex:S||V===0?-1:0,"data-orientation":r,...g,ref:N,style:{outline:"none",...e.style},onMouseDown:Ue(e.onMouseDown,()=>{A.current=!0}),onFocus:Ue(e.onFocus,R=>{const K=!A.current;if(R.target===R.currentTarget&&K&&!S){const U=new CustomEvent(ym,B8);if(R.currentTarget.dispatchEvent(U),!U.defaultPrevented){const q=T().filter(ee=>ee.focusable),H=q.find(ee=>ee.active),Z=q.find(ee=>ee.id===w),ie=[H,Z,...q].filter(Boolean).map(ee=>ee.ref.current);Ak(ie,p)}}A.current=!1}),onBlur:Ue(e.onBlur,()=>E(!1))})})}
vendor: 4,826 bytes, line 432
432),_k="RovingFocusGroupItem",Rk=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:c,...d}=e,f=Hl(),m=l||f,p=q8(_k,n),g=p.currentTabStopId===m,v=Ek(n),{onFocusableItemAdd:N,onFocusableItemRemove:k,currentTabStopId:w}=p;return b.useEffect(()=>{if(r)return N(),()=>k()},[r,N,k]),a.jsx(Tp.ItemSlot,{scope:n,id:m,focusable:r,active:i,children:a.jsx($e.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:Ue(e.onMouseDown,j=>{r?p.onItemFocus(m):j.preventDefault()}),onFocus:Ue(e.onFocus,()=>p.onItemFocus(m)),onKeyDown:Ue(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){p.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const S=G8(j,p.orientation,p.dir);if(S!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let P=v().filter(T=>T.focusable).map(T=>T.ref.current);if(S==="last")P.reverse();else if(S==="prev"||S==="next"){S==="prev"&&P.reverse();const T=P.indexOf(j.currentTarget);P=p.loop?Q8(P,T+1):P.slice(T+1)}setTimeout(()=>Ak(P))}}),children:typeof c=="function"?c({isCurrentTabStop:g,hasTabStop:w!=null}):c})})});Rk.displayName=_k;var W8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K8(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function G8(e,t,n){const r=K8(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return W8[r]}function Ak(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Q8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Y8=Tk,X8=Rk,Dd="Tabs",[J8]=Mo(Dd,[Pk]),Ok=Pk(),[Z8,e0]=J8(Dd),Mk=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:d,activationMode:f="automatic",...m}=e,p=xd(d),[g,v]=Fi({prop:r,onChange:i,defaultProp:l??"",caller:Dd});return a.jsx(Z8,{scope:n,baseId:Hl(),value:g,onValueChange:v,orientation:c,dir:p,activationMode:f,children:a.jsx($e.div,{dir:p,"data-orientation":c,...m,ref:t})})});Mk.displayName=Dd;var Dk="TabsList",Lk=b.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,l=e0(Dk,n),c=Ok(n);return a.jsx(Y8,{asChild:!0,...c,orientation:l.orientation,dir:l.dir,loop:r,children:a.jsx($e.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});Lk.displayName=Dk;var Ik="TabsTrigger",Fk=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,c=e0(Ik,n),d=Ok(n),f=Uk(c.baseId,r),m=$k(c.baseId,r),p=r===c.value;return a.jsx(X8,{asChild:!0,...d,focusable:!i,active:p,children:a.jsx($e.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":m,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...l,ref:t,onMouseDown:Ue(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?c.onValueChange(r):g.preventDefault()}),onKeyDown:Ue(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&c.onValueChange(r)}),onFocus:Ue(e.onFocus,()=>{const g=c.activationMode!=="manual";!p&&!i&&g&&c.onValueChange(r)})})})});Fk.displayName=Ik;var Vk="TabsContent",Bk=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:l,...c}=e,d=e0(Vk,n),f=Uk(d.baseId,r),m=$k(d.baseId,r),p=r===d.value,g=b.useRef(p);return b.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),a.jsx($g,{present:i||p,children:({present:v})=>a.jsx($e.div,{"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!v,id:m,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:v&&l})})});Bk.displayName=Vk;function Uk(e,t){return`${e}-trigger-${t}`}function $k(e,t){return`${e}-content-${t}`}var eU=Mk,zk=Lk,qk=Fk,Hk=Bk;const tU=eU,Wk=b.forwardRef(({className:e,...t},n)=>a.jsx(zk,{ref:n,className:Ye("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Wk.displayName=zk.displayName;const ol=b.forwardRef(({className:e,...t},n)=>a.jsx(qk,{ref:n,className:Ye("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));ol.displayName=qk.displayName;const il=b.forwardRef(({className:e,...t},n)=>a.jsx(Hk,{ref:n,className:Ye("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));
432il.displayName=Hk.displayName;const nU=[{title:"Músicas",entity:"Song",icon:cr,color:"from-purple-500 to-pink-600",path:"/RecentSongs"},{title:"Pedidos de Música",entity:"SongRequest",icon:Fu,color:"from-blue-500 to-indigo-600",path:"/SongRequests"},{title:"Sermões",entity:"Sermon",icon:Bu,color:"from-emerald-500 to-green-600",path:"/Sermons"},{title:"Pedidos de Oração",entity:"PrayerRequest",icon:ht,color:"from-rose-500 to-red-600",path:"/PrayerRequests"},{title:"Contatos",entity:"ContactMessage",icon:bo,color:"from-teal-500 to-cyan-600",path:"/Contact"},{title:"Blog Posts",entity:"BlogPost",icon:vo,color:"from-amber-500 to-orange-600",path:"/Blog"},{title:"Fotos",entity:"Photo",icon:Oi,color:"from-violet-500 to-purple-600",path:"/Gallery"},{title:"Testemunhos",entity:"Testimony",icon:ud,color:"from-pink-500 to-rose-600",path:"/Testimonies"},{title:"Newsletter",entity:"NewsletterSubscriber",icon:Iu,color:"from-yellow-500 to-amber-600",path:"/"},{title:"Eventos",entity:"Event",icon:lr,color:"from-red-500 to-rose-600",path:"/Events"},{title:"Programas",entity:"Program",icon:ks,color:"from-sky-500 to-blue-600",path:"/Schedule"},{title:"Doações",entity:"Donation",icon:Lp,color:"from-green-500 to-emerald-600",path:"/Donate"}];function rU({section:e,index:t}){const{data:n=[]}=Ot({queryKey:["admin-count",e.entity],queryFn:()=>Me.entities[e.entity].list(),initialData:[]});return a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.04},whileHover:{scale:1.03,y:-2},children:a.jsx(vn,{to:e.path,children:a.jsx(le,{className:"hover:shadow-xl transition-all border-2 border-slate-100 hover:border-slate-200 cursor-pointer group",children:a.jsxs(de,{className:"p-5",children:[a.jsx("div",{className:`w-10 h-10 bg-gradient-to-br ${e.color} rounded-xl flex items-center justify-center mb-3 shadow-md group-hover:scale-110 transition-transform duration-300`,children:a.jsx(e.icon,{className:"w-5 h-5 text-white"})}),a.jsx("p",{className:"text-3xl font-black text-slate-900 mb-0.5",children:n.length}),a.jsx("p",{className:"text-xs font-semibold text-slate-500",children:e.title})]})})})})}function sU(){const e=nn(),{data:t=[],isLoading:n}=Ot({queryKey:["admin-prayers"],queryFn:()=>Me.entities.PrayerRequest.filter({status:"pending"}),initialData:[]}),r=yt({mutationFn:l=>Me.entities.PrayerRequest.update(l,{status:"approved"}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-prayers"]}),Ge.success("Pedido aprovado!")}}),i=yt({mutationFn:l=>Me.entities.PrayerRequest.update(l,{status:"prayed"}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-prayers"]}),Ge.success("Pedido removido.")}});return n?a.jsx("div",{className:"text-center py-12",children:a.jsx("div",{className:"w-8 h-8 border-4 border-rose-200 border-t-rose-500 rounded-full animate-spin mx-auto"})}):a.jsx("div",{className:"space-y-3",children:t.length===0?a.jsx("p",{className:"text-center text-slate-500 py-12",children:"Nenhum pedido pendente 🎉"}):t.map(l=>a.jsx(le,{className:"border-2 border-rose-100",children:a.jsxs(de,{className:"p-4 flex gap-4 items-start",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-semibold text-slate-800 text-sm",children:l.is_anonymous?"Anônimo":l.name||"Sem nome"}),a.jsx("p",{className:"text-slate-600 text-sm mt-1",children:l.prayer_text})]}),a.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[a.jsx(ae,{size:"sm",onClick:()=>r.mutate(l.id),className:"bg-green-600 hover:bg-green-700 text-white",children:a.jsx(qi,{className:"w-4 h-4"})}),a.jsx(ae,{size:"sm",onClick:()=>i.mutate(l.id),className:"bg-red-500 hover:bg-red-600 text-white",children:a.jsx(Ol,{className:"w-4 h-4"})})]})]})},l.id))})}function oU(){const e=nn(),{data:t=[],isLoading:n}=Ot({queryKey:["admin-testimonies"],queryFn:()=>Me.entities.Testimony.filter({status:"pending"}),initialData:[]}),r=yt({mutationFn:c=>Me.entities.Testimony.update(c,{status:"approved"}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-testimonies"]}
432),Ge.success("Testemunho aprovado!")}}),i=yt({mutationFn:c=>Me.entities.Testimony.update(c,{status:"featured"}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-testimonies"]}),Ge.success("Testemunho destacado!")}}),l=yt({mutationFn:c=>Me.entities.Testimony.delete(c),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-testimonies"]}),Ge.success("Testemunho removido.")}});return n?a.jsx("div",{className:"text-center py-12",children:a.jsx("div",{className:"w-8 h-8 border-4 border-pink-200 border-t-pink-500 rounded-full animate-spin mx-auto"})}):a.jsx("div",{className:"space-y-3",children:t.length===0?a.jsx("p",{className:"text-center text-slate-500 py-12",children:"Nenhum testemunho pendente 🎉"}):t.map(c=>a.jsx(le,{className:"border-2 border-pink-100",children:a.jsxs(de,{className:"p-4 flex gap-4 items-start",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-semibold text-slate-800 text-sm",children:c.is_anonymous?"Anônimo":c.name||"Sem nome"}),a.jsx("p",{className:"text-slate-600 text-sm mt-1 line-clamp-3",children:c.testimony})]}),a.jsxs("div",{className:"flex flex-col gap-2 flex-shrink-0",children:[a.jsxs(ae,{size:"sm",onClick:()=>r.mutate(c.id),className:"bg-green-600 hover:bg-green-700 text-white text-xs",children:[a.jsx(qi,{className:"w-3 h-3 mr-1"}),"Aprovar"]}),a.jsx(ae,{size:"sm",onClick:()=>i.mutate(c.id),className:"bg-amber-500 hover:bg-amber-600 text-white text-xs",children:"⭐ Destaque"}),a.jsxs(ae,{size:"sm",onClick:()=>l.mutate(c.id),className:"bg-red-500 hover:bg-red-600 text-white text-xs",children:[a.jsx(Ol,{className:"w-3 h-3 mr-1"}),"Excluir"]})]})]})},c.id))})}function iU(){const e=nn(),[t,n]=b.useState({title:"",message:"",priority:"média"}),{data:r=[]}=Ot({queryKey:["admin-announcements"],queryFn:()=>Me.entities.Announcement.filter({active:!0}),initialData:[]}),i=yt({mutationFn:c=>Me.entities.Announcement.create({...c,active:!0}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-announcements"]}),n({title:"",message:"",priority:"média"}),Ge.success("Aviso criado!")}}),l=yt({mutationFn:c=>Me.entities.Announcement.update(c,{active:!1}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-announcements"]}),Ge.success("Aviso desativado.")}});return a.jsxs("div",{className:"space-y-6",children:[a.jsx(le,{className:"border-2 border-amber-200",children:a.jsxs(de,{className:"p-5 space-y-3",children:[a.jsx("h3",{className:"font-bold text-slate-800",children:"Novo Aviso"}),a.jsx(He,{placeholder:"Título",value:t.title,onChange:c=>n({...t,title:c.target.value}),className:"border-2"}),a.jsx(He,{placeholder:"Mensagem",value:t.message,onChange:c=>n({...t,message:c.target.value}),className:"border-2"}),a.jsxs(ae,{onClick:()=>t.title&&t.message&&i.mutate(t),disabled:i.isPending,className:"bg-amber-600 hover:bg-amber-700 text-white font-bold w-full",children:[a.jsx(ml,{className:"w-4 h-4 mr-2"}),i.isPending?"Criando...":"Criar Aviso"]})]})}),a.jsxs("div",{className:"space-y-3",children:[r.map(c=>a.jsx(le,{className:"border-2 border-orange-100",children:a.jsxs(de,{className:"p-4 flex items-start justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-bold text-slate-800",children:c.title}),a.jsx("p",{className:"text-sm text-slate-600",children:c.message})]}),a.jsx(ae,{size:"sm",onClick:()=>l.mutate(c.id),variant:"outline",className:"border-red-200 text-red-600 hover:bg-red-50 flex-shrink-0",children:a.jsx(bT,{className:"w-4 h-4"})})]})},c.id)),r.length===0&&a.jsx("p",{className:"text-center text-slate-400 py-8",children:"Nenhum aviso ativo"})]})]})}function aU(){const e=nn(),{data:t=[],isLoading:n}=Ot({queryKey:["admin-contacts"],queryFn:()=>Me.entities.ContactMessage.filter({status:"novo"}),initialData:[]}),r=yt({mutationFn:i=>Me.entities.ContactMessage.update(i,{status:"lido"}),onSuccess:()=>{e.invalidateQueries({queryKey:["admin-contacts"]}),Ge.success("Marcado como lido.")}});return n?a.jsx("div",{className:"text-center py-12",children:a.jsx("div",{className:"w-8 h-8 border-4 border-teal-200 border-t-teal-500 rounded-full animate-spin mx-auto"})}):a.jsx("div",{className:"space-y-3",children:t.length===0?a.jsx("p",{className:"text-center text-slate-500 py-12",children:"Nenhuma mensagem nova 🎉"}):t.map(i=>a.jsx(le,{className:"border-2 border-teal-100",children:a.jsxs(de,{className:"p-4",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"font-bold text-slate-800",children:[i.name," ",a.jsxs("span",{className:"text-slate-400 font-normal text-sm",children:["— ",i.email]})]}),i.subject&&a.jsx("p",{className:"text-xs text-teal-700 font-semibold",children:i.subject})]}),a.jsxs(ae,{size:"sm",onClick:()=>r.mutate(i.id),variant:"outline",className:"flex-shrink-0 border-teal-200 text-teal-700 hover:bg-teal-50",children:[a.jsx(AP,{className:"w-3 h-3 mr-1"}),"Lido"]})]}),a.jsx("p",{className:"text-sm text-slate-600",children:i.message})]})},i.id))})}function lU(){return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50 py-12 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20}
432,animate:{opacity:1,y:0},className:"mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-slate-100 border border-slate-200 px-5 py-2.5 rounded-full mb-4",children:[a.jsx(v1,{className:"w-4 h-4 text-slate-700"}),a.jsx("span",{className:"text-xs font-bold text-slate-900 tracking-widest uppercase",children:"Administração"})]}),a.jsx("h1",{className:"text-4xl md:text-5xl font-black text-slate-900 mb-2 tracking-tight",children:"Painel Administrativo"}),a.jsx("p",{className:"text-lg text-slate-600 font-light",children:"Gerencie todo o conteúdo da Rádio Caridade"})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-3 mb-12",children:nU.map((e,t)=>a.jsx(rU,{section:e,index:t},e.entity))}),a.jsxs(tU,{defaultValue:"prayers",children:[a.jsxs(Wk,{className:"mb-6 bg-slate-100 p-1 rounded-xl flex flex-wrap h-auto gap-1",children:[a.jsxs(ol,{value:"prayers",className:"rounded-lg data-[state=active]:bg-white data-[state=active]:shadow font-semibold",children:[a.jsx(ht,{className:"w-4 h-4 mr-1.5 text-rose-500"}),"Orações Pendentes"]}),a.jsxs(ol,{value:"testimonies",className:"rounded-lg data-[state=active]:bg-white data-[state=active]:shadow font-semibold",children:[a.jsx(ud,{className:"w-4 h-4 mr-1.5 text-pink-500"}),"Testemunhos"]}),a.jsxs(ol,{value:"announcements",className:"rounded-lg data-[state=active]:bg-white data-[state=active]:shadow font-semibold",children:[a.jsx(Iu,{className:"w-4 h-4 mr-1.5 text-amber-500"}),"Avisos"]}),a.jsxs(ol,{value:"contacts",className:"rounded-lg data-[state=active]:bg-white data-[state=active]:shadow font-semibold",children:[a.jsx(bo,{className:"w-4 h-4 mr-1.5 text-teal-500"}),"Contatos Novos"]})]}),a.jsx(il,{value:"prayers",children:a.jsx(sU,{})}),a.jsx(il,{value:"testimonies",children:a.jsx(oU,{})}),a.jsx(il,{value:"announcements",children:a.jsx(iU,{})}),a.jsx(il,{value:"contacts",children:a.jsx(aU,{})})]})]})})}function cU(){const[e,t]=b.useState({requester_name:"",song_title:"",artist:"",message:""}),[n,r]=b.useState(!1),i=nn(),{data:l=[],isLoading:c}=Ot({queryKey:["song-requests"],queryFn:()=>Me.entities.SongRequest.list("-created_date",20),initialData:[]}),d=yt({mutationFn:m=>Me.entities.SongRequest.create(m),onSuccess:()=>{i.invalidateQueries({queryKey:["song-requests"]}),t({requester_name:"",song_title:"",artist:"",message:""}),r(!0),Ge.success("Pedido enviado! 🎵")}}),f={pending:{label:"Aguardando",icon:cd,color:"bg-yellow-100 text-yellow-700 border-yellow-200"},played:{label:"Tocada ✓",icon:Fr,color:"bg-green-100 text-green-700 border-green-200"},rejected:{label:"Não disponível",icon:cr,color:"bg-slate-100 text-slate-500 border-slate-200"}};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-indigo-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-blue-100 border border-blue-200 px-6 py-3 rounded-full mb-6",children:[a.jsx(Fu,{className:"w-5 h-5 text-blue-700"}),a.jsx("span",{className:"text-sm font-bold text-blue-900 tracking-widest uppercase",children:"Pedido de Música"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-4 text-slate-900 tracking-tight",children:"Peça sua Música"}),a.jsx("p",{className:"text-xl text-slate-600 font-light max-w-2xl mx-auto",children:"Envie seu pedido e nossa equipe tocará sua música favorita na Rádio Caridade!"})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[a.jsx(Q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1},children:n?a.jsx(le,{className:"border-2 border-green-200 bg-green-50 shadow-xl",children:a.jsxs(de,{className:"p-10 text-center",children:[a.jsx(Fr,{className:"w-20 h-20 text-green-500 mx-auto mb-5"}),a.jsx("h3",{className:"text-2xl font-black text-green-800 mb-3",children:"Pedido Enviado!"}),a.jsx("p",{className:"text-green-700 mb-6",children:"Nossa equipe recebeu seu pedido e tentará tocar em breve. Deus abençoe! 🙏"}),a.jsx(ae,{onClick:()=>r(!1),className:"bg-green-600 hover:bg-green-700 text-white font-bold px-8",children:"Fazer outro pedido"})]})}):a.jsx(le,{className:"border-2 border-blue-100 shadow-xl",children:a.jsxs(de,{className:"p-8 space-y-4",children:[a.jsx("h2",{className:"text-2xl font-black text-slate-900 mb-2",children:"Fazer um Pedido"}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Seu Nome"}),a.jsx(He,{placeholder:"Como posso te chamar?",value:e.requester_name,onChange:m=>t({...e,requester_name:m.target.value}),className:"border-2 border-slate-200 focus:border-blue-400"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Nome da Música *"}),a.jsx(He,{placeholder:"Qual música você quer ouvir?",value:e.song_title,onChange:m=>t({...e,song_title:m.target.value}),className:"border-2 border-slate-200 focus:border-blue-400"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Artista *"}),a.jsx(He,{placeholder:"Quem é o artista?",value:e.artist,onChange:m=>t({...e,artist:m.target.value}),className:"border-2 border-slate-200 focus:border-blue-400"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Dedicatória (opcional)"}),a.jsx($r,{placeholder:"Para quem você dedica esta música?",value:e.message,onChange:m=>t({...e,message:m.target.value}),className:"border-2 border-slate-200 focus:border-blue-400 min-h-[90px]"})]}),a.jsxs(ae,{onClick:()=>e.song_title&&e.artist&&d.mutate(e),disabled:d.isPending||!e.song_title||!e.artist,className:"w-full bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white font-black py-6 text-base rounded-xl shadow-lg",children:[a.jsx(Mi,{className:"w-5 h-5 mr-2"}),d.isPending?"Enviando...":"Enviar Pedido"]})]})})}),a.jsxs(Q.div,{initial:{opacity:0,x:20}
432,animate:{opacity:1,x:0},transition:{delay:.2},children:[a.jsx("h2",{className:"text-2xl font-black text-slate-900 mb-4",children:"Pedidos Recentes"}),c?a.jsx("div",{className:"flex justify-center py-12",children:a.jsx("div",{className:"w-10 h-10 border-4 border-blue-200 border-t-blue-500 rounded-full animate-spin"})}):l.length>0?a.jsx("div",{className:"space-y-3 max-h-[600px] overflow-y-auto pr-1",children:l.map((m,p)=>{const g=f[m.status]||f.pending,v=g.icon;return a.jsx(Q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:p*.05},children:a.jsx(le,{className:"border-2 border-slate-100 hover:border-blue-200 hover:shadow-lg transition-all",children:a.jsx(de,{className:"p-4",children:a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-black text-slate-900 truncate",children:m.song_title}),a.jsx("p",{className:"text-sm text-blue-700 font-semibold",children:m.artist}),m.requester_name&&a.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["por ",m.requester_name]}),m.message&&a.jsxs("p",{className:"text-xs text-slate-500 mt-1 italic line-clamp-2",children:['"',m.message,'"']})]}),a.jsxs("span",{className:`flex items-center gap-1 text-xs font-bold px-2.5 py-1 rounded-full border flex-shrink-0 ${g.color}`,children:[a.jsx(v,{className:"w-3 h-3"}),g.label]})]})})})},m.id)})}):a.jsx(le,{className:"border-2 border-dashed border-blue-200",children:a.jsxs(de,{className:"p-12 text-center",children:[a.jsx(Fu,{className:"w-14 h-14 text-blue-200 mx-auto mb-3"}),a.jsx("p",{className:"text-slate-500",children:"Nenhum pedido ainda. Seja o primeiro!"})]})})]})]})]})})}const t1=["Todos","Pregação","Estudo Bíblico","Culto","Conferência","Devocional"];function bu(e){if(!e)return null;const t=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/);return t?t[1]:null}function uU(){const[e,t]=b.useState("Todos"),[n,r]=b.useState(null),[i,l]=b.useState(!1),[c,d]=b.useState({title:"",pastor:"",youtube_url:"",description:"",category:"Pregação",sermon_date:""}),f=nn(),{data:m=[],isLoading:p}=Ot({queryKey:["sermons"],queryFn:()=>Me.entities.Sermon.list("-created_date",50),initialData:[]}),g=yt({mutationFn:N=>Me.entities.Sermon.create(N),onSuccess:()=>{f.invalidateQueries({queryKey:["sermons"]}),d({title:"",pastor:"",youtube_url:"",description:"",category:"Pregação",sermon_date:""}),l(!1),Ge.success("Sermão adicionado!")}}),v=e==="Todos"?m:m.filter(N=>N.category===e);return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-emerald-50 via-white to-teal-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-emerald-100 border border-emerald-200 px-6 py-3 rounded-full mb-6",children:[a.jsx(Bu,{className:"w-5 h-5 text-emerald-700"}),a.jsx("span",{className:"text-sm font-bold text-emerald-900 tracking-widest uppercase",children:"Arquivo de Mensagens"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-4 text-slate-900 tracking-tight",children:"Sermões & Mensagens"}),a.jsx("p",{className:"text-xl text-slate-600 font-light",children:"Acesse as mensagens e pregações da Rádio Caridade"})]}),a.jsx("div",{className:"flex flex-wrap gap-2 justify-center mb-6",children:t1.map(N=>a.jsx("button",{onClick:()=>t(N),className:`px-5 py-2 rounded-full font-bold text-sm transition-all ${e===N?"bg-emerald-600 text-white shadow-lg":"bg-white text-slate-600 border border-slate-200 hover:border-emerald-300 hover:bg-emerald-50"}`,children:N},N))}),a.jsx("div",{className:"flex justify-end mb-6",children:a.jsx(ae,{onClick:()=>l(!i),className:"bg-gradient-to-r from-emerald-500 to-teal-600 hover:from-emerald-400 hover:to-teal-500 text-white font-bold shadow-lg rounded-xl",children:i?a.jsxs(a.Fragment,{children:[a.jsx(Ol,{className:"w-4 h-4 mr-2"}),"Fechar"]}):a.jsxs(a.Fragment,{children:[a.jsx(ml,{className:"w-4 h-4 mr-2"}),"Adicionar Sermão"]})})}),i&&a.jsx(Q.div,{initial:{opacity:0,y:-10}
432,animate:{opacity:1,y:0},className:"mb-8",children:a.jsx(le,{className:"border-2 border-emerald-200 shadow-xl",children:a.jsxs(de,{className:"p-6 grid md:grid-cols-2 gap-4",children:[a.jsx("div",{className:"md:col-span-2",children:a.jsx("h3",{className:"font-black text-slate-900 text-lg mb-4",children:"Adicionar Novo Sermão"})}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Título *"}),a.jsx(He,{placeholder:"Título do sermão",value:c.title,onChange:N=>d({...c,title:N.target.value}),className:"border-2"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Pastor/Pregador"}),a.jsx(He,{placeholder:"Nome do pregador",value:c.pastor,onChange:N=>d({...c,pastor:N.target.value}),className:"border-2"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Link do YouTube *"}),a.jsx(He,{placeholder:"https://youtube.com/watch?v=...",value:c.youtube_url,onChange:N=>d({...c,youtube_url:N.target.value}),className:"border-2"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Data"}),a.jsx(He,{type:"date",value:c.sermon_date,onChange:N=>d({...c,sermon_date:N.target.value}),className:"border-2"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Categoria"}),a.jsx("select",{value:c.category,onChange:N=>d({...c,category:N.target.value}),className:"w-full border-2 border-slate-200 rounded-md px-3 py-2 text-sm focus:outline-none focus:border-emerald-400",children:t1.slice(1).map(N=>a.jsx("option",{children:N},N))})]}),a.jsxs("div",{className:"md:col-span-2",children:[a.jsx("label",{className:"text-sm font-bold text-slate-700 mb-1.5 block",children:"Descrição"}),a.jsx($r,{placeholder:"Descrição do sermão...",value:c.description,onChange:N=>d({...c,description:N.target.value}),className:"border-2 min-h-[80px]"})]}),a.jsxs("div",{className:"md:col-span-2 flex gap-3",children:[a.jsx(ae,{onClick:()=>c.title&&c.youtube_url&&g.mutate(c),disabled:g.isPending||!c.title||!c.youtube_url,className:"bg-emerald-600 hover:bg-emerald-700 text-white font-bold",children:g.isPending?"Salvando...":"Salvar Sermão"}),a.jsx(ae,{variant:"outline",onClick:()=>l(!1),children:"Cancelar"})]})]})})}),p?a.jsx("div",{className:"text-center py-20",children:a.jsx("div",{className:"w-12 h-12 border-4 border-emerald-200 border-t-emerald-500 rounded-full animate-spin mx-auto"})}):v.length>0?a.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:v.map((N,k)=>a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:k*.05},children:a.jsx(le,{className:"border-2 border-slate-100 hover:border-emerald-300 hover:shadow-xl transition-all overflow-hidden",children:a.jsxs(de,{className:"p-0",children:[bu(N.youtube_url)?n===N.id?a.jsx("iframe",{width:"100%",height:"210",src:`https://www.youtube.com/embed/${bu(N.youtube_url)}?autoplay=1`,title:N.title,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"block"}):a.jsxs("div",{className:"relative cursor-pointer group",onClick:()=>r(N.id),children:[a.jsx("img",{src:`https://img.youtube.com/vi/${bu(N.youtube_url)}/hqdefault.jpg`,alt:N.title,className:"w-full h-44 object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center group-hover:bg-black/55 transition-all",children:a.jsx("div",{className:"w-14 h-14 bg-emerald-500 rounded-full flex items-center justify-center shadow-xl group-hover:scale-110 transition-transform",children:a.jsx(wo,{className:"w-6 h-6 text-white ml-1"})})})]}):null,a.jsx("div",{className:"p-5",children:a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h3",{className:"font-black text-slate-900 text-base leading-tight mb-1",children:N.title}),N.pastor&&a.jsx("p",{className:"text-sm font-semibold text-emerald-700 mb-1",children:N.pastor}),N.description&&a.jsx("p",{className:"text-xs text-slate-500 line-clamp-2 mb-2",children:N.description}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[N.category&&a.jsx("span",{className:"text-xs bg-emerald-100 text-emerald-800 font-bold px-2 py-0.5 rounded-full",children:N.category}),N.sermon_date&&a.jsxs("div",{className:"flex items-center gap-1 text-xs text-slate-400",children:[a.jsx(lr,{className:"w-3 h-3"}),fl(new Date(N.sermon_date),"dd/MM/yyyy")]})]})]}),n===N.id?a.jsx(ae,{size:"sm",onClick:()=>r(null),className:"bg-red-500 hover:bg-red-600 text-white flex-shrink-0",children:a.jsx(hl,{className:"w-4 h-4"})}):bu(N.youtube_url)&&a.jsx(ae,{size:"sm",onClick:()=>r(N.id),className:"bg-emerald-600 hover:bg-emerald-700 text-white flex-shrink-0",children:a.jsx(wo,{className:"w-4 h-4"})})]})})]})})},N.id))}):a.jsx(le,{className:"border-2 border-dashed border-emerald-200 bg-emerald-50/20",children:a.jsxs(de,{className:"p-16 text-center",children:[a.jsx(Bu,{className:"w-16 h-16 text-emerald-200 mx-auto mb-4"}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-2",children:"Nenhum sermão encontrado"}),a.jsx("p",{className:"text-slate-500 mb-5",children:"Os sermões aparecerão aqui após serem adicionados"}),a.jsxs(ae,{onClick:()=>l(!0),className:"bg-emerald-600 hover:bg-emerald-700 text-white font-bold",children:[a.jsx(ml,{className:"w-4 h-4 mr-2"}),"Adicionar Primeiro Sermão"]})]})})]})})}function dU(){const[e,t]=b.useState(()=>{try{return new Set(JSON.parse(localStorage.getItem("prayed_for")||"[]"))}catch{return new Set}}),[n,r]=b.useState(!1),[i,l]=b.useState({name:"",prayer_text:"",is_anonymous:!1}),[c,d]=b.useState(!1),f=nn(),{data:m=[],isLoading:p}=Ot({queryKey:["prayer-wall"],queryFn:()=>Me.entities.PrayerRequest.filter({status:"approved"}),initialData:[]}),g=yt({mutationFn:({id:k,prayer_count:w})=>Me.entities.PrayerRequest.update(k,{prayer_count:(w||0)+1}),onSuccess:()=>
432f.invalidateQueries({queryKey:["prayer-wall"]})}),v=yt({mutationFn:k=>Me.entities.PrayerRequest.create({...k,status:"pending"}),onSuccess:()=>{f.invalidateQueries({queryKey:["prayer-wall"]}),l({name:"",prayer_text:"",is_anonymous:!1}),d(!0),r(!1),Ge.success("Pedido enviado para moderação! 🙏")}}),N=k=>{if(e.has(k.id))return;g.mutate({id:k.id,prayer_count:k.prayer_count});const w=new Set([...e,k.id]);t(w),localStorage.setItem("prayed_for",JSON.stringify([...w])),Ge.success("Sua oração foi registrada! 🙏")};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-rose-50 via-white to-pink-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-rose-100 border border-rose-200 px-6 py-3 rounded-full mb-6",children:[a.jsx(ht,{className:"w-5 h-5 text-rose-600"}),a.jsx("span",{className:"text-sm font-bold text-rose-900 tracking-widest uppercase",children:"Mural de Oração"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-4 text-slate-900 tracking-tight",children:"Mural de Oração"}),a.jsx("p",{className:"text-xl text-slate-600 font-light max-w-2xl mx-auto mb-8",children:"Ore pelos irmãos e sinta o poder da intercessão coletiva"}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[a.jsxs(ae,{onClick:()=>r(!n),className:"bg-gradient-to-r from-rose-500 to-pink-600 hover:from-rose-400 hover:to-pink-500 text-white font-bold px-8 py-3 rounded-xl shadow-lg",children:[a.jsx(Mi,{className:"w-4 h-4 mr-2"}),"Enviar Meu Pedido"]}),a.jsx(vn,{to:Ke("PrayerRequests"),children:a.jsx(ae,{variant:"outline",className:"border-2 border-rose-200 text-rose-700 hover:bg-rose-50 font-bold px-8 py-3 rounded-xl",children:"Ver Formulário Completo"})})]})]}),n&&a.jsx(Q.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-8",children:a.jsx(le,{className:"border-2 border-rose-200 shadow-xl max-w-2xl mx-auto",children:a.jsxs(de,{className:"p-6 space-y-4",children:[a.jsx("h3",{className:"font-black text-slate-900 text-lg",children:"Enviar Pedido de Oração"}),a.jsx(He,{placeholder:"Seu nome (deixe em branco para anônimo)",value:i.name,onChange:k=>l({...i,name:k.target.value,is_anonymous:!k.target.value}),className:"border-2 border-slate-200 focus:border-rose-400"}),a.jsx($r,{placeholder:"Escreva seu pedido de oração... *",value:i.prayer_text,onChange:k=>l({...i,prayer_text:k.target.value}),className:"border-2 border-slate-200 focus:border-rose-400 min-h-[100px]"}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx(ae,{onClick:()=>i.prayer_text&&v.mutate(i),disabled:v.isPending||!i.prayer_text,className:"bg-rose-600 hover:bg-rose-700 text-white font-bold flex-1",children:v.isPending?"Enviando...":"Enviar Pedido"}),a.jsx(ae,{variant:"outline",onClick:()=>r(!1),children:"Cancelar"})]}),a.jsx("p",{className:"text-xs text-slate-400 text-center",children:"* O pedido passará por moderação antes de aparecer no mural"})]})})}),c&&a.jsx(Q.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"mb-8 max-w-2xl mx-auto",children:a.jsx(le,{className:"border-2 border-green-200 bg-green-50",children:a.jsxs(de,{className:"p-5 flex items-center gap-4",children:[a.jsx(Fr,{className:"w-8 h-8 text-green-500 flex-shrink-0"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-bold text-green-800",children:"Pedido enviado com sucesso!"}),a.jsx("p",{className:"text-sm text-green-700",children:"Será revisado e publicado em breve. Deus abençoe! 🙏"})]}),a.jsx(ae,{size:"sm",variant:"outline",onClick:()=>d(!1),className:"flex-shrink-0 border-green-300 text-green-700",children:"✕"})]})})}),p?a.jsx("div",{className:"text-center py-20",children:a.jsx("div",{className:"w-12 h-12 border-4 border-rose-200 border-t-rose-500 rounded-full animate-spin mx-auto"})}):m.length>0?a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:m.map((k,w)=>a.jsx(Q.div,{initial:{opacity:0,y:20}
432,animate:{opacity:1,y:0},transition:{delay:w*.05},children:a.jsx(le,{className:`h-full border-2 transition-all hover:shadow-xl ${e.has(k.id)?"border-rose-300 bg-rose-50/60":"border-slate-200 hover:border-rose-200"}`,children:a.jsxs(de,{className:"p-5 flex flex-col h-full",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("div",{className:"w-9 h-9 bg-gradient-to-br from-rose-400 to-pink-500 rounded-full flex items-center justify-center flex-shrink-0",children:a.jsx(ht,{className:"w-4 h-4 text-white"})}),a.jsx("span",{className:"font-bold text-slate-700 text-sm",children:k.is_anonymous?"Ouvinte Anônimo":k.name||"Ouvinte"})]}),a.jsxs("p",{className:"text-slate-700 leading-relaxed flex-1 mb-4 italic text-sm",children:['"',k.prayer_text,'"']}),a.jsxs("div",{className:"flex items-center justify-between mt-auto",children:[a.jsxs("div",{className:"flex items-center gap-1.5 text-rose-500",children:[a.jsx(ud,{className:"w-3.5 h-3.5"}),a.jsxs("span",{className:"text-xs font-bold",children:[k.prayer_count||0," orando"]})]}),a.jsxs(ae,{size:"sm",onClick:()=>N(k),disabled:e.has(k.id),className:`text-xs font-bold transition-all ${e.has(k.id)?"bg-rose-100 text-rose-600 cursor-not-allowed border border-rose-200":"bg-gradient-to-r from-rose-500 to-pink-600 hover:from-rose-400 hover:to-pink-500 text-white shadow"}`,children:[a.jsx(ht,{className:"w-3 h-3 mr-1"}),e.has(k.id)?"Orando ✓":"Orar"]})]})]})})},k.id))}):a.jsx(le,{className:"border-2 border-dashed border-rose-200 bg-rose-50/30 max-w-lg mx-auto",children:a.jsxs(de,{className:"p-14 text-center",children:[a.jsx(ht,{className:"w-14 h-14 text-rose-200 mx-auto mb-4"}),a.jsx("h3",{className:"text-xl font-black text-slate-700 mb-2",children:"Nenhum pedido aprovado ainda"}),a.jsx("p",{className:"text-slate-500 mb-5",children:"Seja o primeiro a enviar um pedido de oração"}),a.jsxs(ae,{onClick:()=>r(!0),className:"bg-rose-500 hover:bg-rose-600 text-white font-bold",children:[a.jsx(Mi,{className:"w-4 h-4 mr-2"}),"Enviar Pedido"]})]})})]})})}const fU=[{ref:"John 3:16",label:"João 3:16"},{ref:"Psalms 23",label:"Salmos 23"},{ref:"Romans 8:28",label:"Romanos 8:28"},{ref:"Philippians 4:13",label:"Filipenses 4:13"},{ref:"Jeremiah 29:11",label:"Jeremias 29:11"},{ref:"Isaiah 40:31",label:"Isaías 40:31"},{ref:"Proverbs 3:5-6",label:"Provérbios 3:5-6"},{ref:"Matthew 6:33",label:"Mateus 6:33"},{ref:"Psalm 46:1",label:"Salmos 46:1"},{ref:"Romans 5:8",label:"Romanos 5:8"},{ref:"Galatians 5:22",label:"Gálatas 5:22"},{ref:"John 14:6",label:"João 14:6"}],hU=[{label:"Fé",ref:"Hebrews 11:1"},{label:"Amor",ref:"1 Corinthians 13:4"},{label:"Esperança",ref:"Romans 15:13"},{label:"Paz",ref:"John 14:27"},{label:"Força",ref:"Isaiah 40:31"},{label:"Cura",ref:"Psalms 147:3"}];function mU(){var N;const[e,t]=b.useState(""),[n,r]=b.useState(null),[i,l]=b.useState(!1),[c,d]=b.useState(null),[f,m]=b.useState(!1),p=async k=>{const w=(k||e).trim();if(w){l(!0),d(null),r(null);try{const j=encodeURIComponent(w),E=await(await fetch(`https://bible-api.com/${j}`)).json();if(E.error)throw new Error("Versículo não encontrado. Use o formato em inglês (ex: John 3:16)");r(E)}catch(j){d(j.message||"Versículo não encontrado. Tente em inglês (ex: John 3:16)")}finally{l(!1)}}},g=()=>{var k;n&&(navigator.clipboard.writeText(`"${(k=n.text)==null?void 0:k.trim()}" — ${n.reference}`),m(!0),Ge.success("Versículo copiado!"),setTimeout(()=>m(!1),2e3))},v=()=>{var w;if(!n)return;const k=`"${(w=n.text)==null?void 0:w.trim()}" — ${n.reference} | Rádio Caridade`;navigator.share?navigator.share({text:k}):(navigator.clipboard.writeText(k),Ge.success("Versículo copiado para compartilhar!"))};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-amber-50 via-white to-yellow-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-amber-100 border border-amber-200 px-6 py-3 rounded-full mb-6",children:[a.jsx(vm,{className:"w-5 h-5 text-amber-700"}),a.jsx("span",{className:"text-sm font-bold text-amber-900 tracking-widest uppercase",children:"Bíblia Online"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-4 text-slate-900 tracking-tight",children:"Buscar Versículos"}),a.jsx("p",{className:"text-lg text-slate-600 font-light",children:"Encontre a Palavra de Deus para o seu momento"})]}),a.jsx(le,{className:"shadow-2xl border-2 border-amber-100 mb-6",children:a.jsxs(de,{className:"p-7",children:[a.jsxs("div",{className:"flex gap-3 mb-4",children:[a.jsx(He,{placeholder:"Ex: John 3:16 · Psalms 23 · Romans 8:28",value:e,onCh
432ange:k=>t(k.target.value),onKeyDown:k=>k.key==="Enter"&&p(),className:"py-6 px-4 border-2 border-slate-200 focus:border-amber-400 rounded-xl text-base"}),a.jsx(ae,{onClick:()=>p(),disabled:i,className:"bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-400 hover:to-orange-500 text-white px-6 py-6 rounded-xl shadow-lg",children:i?a.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):a.jsx(w1,{className:"w-5 h-5"})})]}),a.jsx("p",{className:"text-xs text-slate-400 text-center mb-4",children:'⚠️ Digite em inglês: "John 3:16", "Psalms 23", "Genesis 1:1-5"'}),a.jsxs("div",{className:"mb-3",children:[a.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-2",children:"Por tema:"}),a.jsx("div",{className:"flex flex-wrap gap-2",children:hU.map(k=>a.jsx("button",{onClick:()=>{t(k.ref),p(k.ref)},className:"text-xs bg-orange-100 hover:bg-orange-200 text-orange-800 font-semibold px-3 py-1.5 rounded-full transition-colors",children:k.label},k.ref))})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-2",children:"Versículos populares:"}),a.jsx("div",{className:"flex flex-wrap gap-2",children:fU.map(k=>a.jsx("button",{onClick:()=>{t(k.ref),p(k.ref)},className:"text-xs bg-amber-100 hover:bg-amber-200 text-amber-800 font-semibold px-3 py-1.5 rounded-full transition-colors",children:k.label},k.ref))})]})]})}),c&&a.jsx(Q.div,{initial:{opacity:0}
432,animate:{opacity:1},children:a.jsx(le,{className:"border-2 border-red-200 bg-red-50 mb-6",children:a.jsx(de,{className:"p-5 text-center text-red-700 font-medium",children:c})})}),n&&a.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:a.jsx(le,{className:"border-2 border-amber-200 shadow-2xl bg-gradient-to-br from-white to-amber-50/30",children:a.jsxs(de,{className:"p-10 text-center",children:[a.jsx(vo,{className:"w-10 h-10 text-amber-500 mx-auto mb-6"}),a.jsxs("blockquote",{className:"text-2xl md:text-3xl text-slate-800 leading-relaxed font-serif mb-6 italic",children:['"',(N=n.text)==null?void 0:N.trim(),'"']}),a.jsx("p",{className:"text-amber-700 font-black text-xl mb-1",children:n.reference}),a.jsx("p",{className:"text-slate-400 text-sm mb-8",children:n.translation_name}),a.jsxs("div",{className:"flex gap-3 justify-center",children:[a.jsxs(ae,{onClick:g,variant:"outline",className:"border-2 border-amber-200 text-amber-700 hover:bg-amber-50 font-bold",children:[f?a.jsx(qi,{className:"w-4 h-4 mr-2"}):a.jsx(wm,{className:"w-4 h-4 mr-2"}),f?"Copiado!":"Copiar"]}),a.jsxs(ae,{onClick:v,variant:"outline",className:"border-2 border-blue-200 text-blue-700 hover:bg-blue-50 font-bold",children:[a.jsx(go,{className:"w-4 h-4 mr-2"}),"Compartilhar"]})]})]})})}),!n&&!c&&!i&&a.jsxs("div",{className:"text-center py-14 text-slate-300",children:[a.jsx(vm,{className:"w-20 h-20 mx-auto mb-4"}),a.jsx("p",{className:"text-lg text-slate-400 font-medium",children:"Digite uma referência ou escolha um tema acima"})]})]})})}function pU(){const e=new Date,t=new Date(e.getFullYear(),0,1),n=Math.ceil(((e-t)/864e5+t.getDay()+1)/7);return`${e.getFullYear()}-W${String(n).padStart(2,"0")}`}const gU=["from-yellow-400 to-amber-500","from-slate-300 to-slate-400","from-amber-600 to-orange-700"],xU=["🥇","🥈","🥉"];function yU(){const[e,t]=b.useState(!1),[n,r]=b.useState({song_title:"",artist:"",youtube_url:""}),[i,l]=b.useState(()=>{try{return new Set(JSON.parse(localStorage.getItem("voted_songs")||"[]"))}catch{return new Set}}),c=pU(),d=nn(),{data:f=[],isLoading:m}=Ot({queryKey:["ranking",c],queryFn:()=>Me.entities.SongVote.filter({week:c}),initialData:[]}),p=[...f].sort((w,j)=>(j.votes||0)-(w.votes||0)),g=yt({mutationFn:({id:w,votes:j})=>Me.entities.SongVote.update(w,{votes:j+1}),onSuccess:()=>d.invalidateQueries({queryKey:["ranking",c]})}),v=yt({mutationFn:w=>Me.entities.SongVote.create({...w,votes:1,week:c}),onSuccess:()=>{d.invalidateQueries({queryKey:["ranking",c]}),r({song_title:"",artist:"",youtube_url:""}),t(!1),Ge.success("Música adicionada ao ranking!")}}),N=w=>{if(i.has(w.id))return;g.mutate({id:w.id,votes:w.votes||0});const j=new Set([...i,w.id]);l(j),localStorage.setItem("voted_songs",JSON.stringify([...j])),Ge.success(`Voto registrado para "${w.song_title}"!`)},k=w=>{if(!w)return null;const j=w.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&]+)/);return j?j[1]:null};return a.jsx("div",{className:"min-h-screen bg-gradient-to-br from-amber-50 via-white to-yellow-50 py-16 px-4 sm:px-6 lg:px-8 pb-24 md:pb-12",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-amber-100 border border-amber-200 px-6 py-3 rounded-full mb-6",children:[a.jsx(Nm,{className:"w-5 h-5 text-amber-700"}),a.jsx("span",{className:"text-sm font-bold text-amber-900 tracking-widest uppercase",children:"Ranking Semanal"})]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-black mb-4 text-slate-900 tracking-tight",children:"Top Músicas"}),a.jsx("p",{className:"text-xl text-slate-600 font-light",children:"Vote na sua música favorita desta semana"}),a.jsxs("p",{className:"text-sm text-amber-700 font-semibold mt-2",children:["Semana: ",c]})]}),a.jsx("div",{className:"flex justify-end mb-6",children:a.jsxs(ae,{onClick:()=>t(!e),className:"bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-400 hover:to-orange-500 text-white shadow-lg font-bold rounded-xl px-5 py-2.5",children:[a.jsx(ml,{className:"w-4 h-4 mr-2"}),"Sugerir Música"]})}),e&&a.jsx(Q.div,{initial:{opacity:0,y:-10}
432,animate:{opacity:1,y:0},children:a.jsx(le,{className:"border-2 border-amber-200 mb-6 shadow-lg",children:a.jsxs(de,{className:"p-6 space-y-4",children:[a.jsx("h3",{className:"font-black text-slate-900 text-lg",children:"Adicionar música ao ranking"}),a.jsx(He,{placeholder:"Nome da música *",value:n.song_title,onChange:w=>r({...n,song_title:w.target.value}),className:"border-2 border-slate-200 focus:border-amber-400"}),a.jsx(He,{placeholder:"Artista *",value:n.artist,onChange:w=>r({...n,artist:w.target.value}),className:"border-2 border-slate-200 focus:border-amber-400"}),a.jsx(He,{placeholder:"Link do YouTube (opcional)",value:n.youtube_url,onChange:w=>r({...n,youtube_url:w.target.value}),className:"border-2 border-slate-200 focus:border-amber-400"}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx(ae,{onClick:()=>n.song_title&&n.artist&&v.mutate(n),disabled:v.isPending||!n.song_title||!n.artist,className:"bg-amber-600 hover:bg-amber-700 text-white font-bold",children:v.isPending?"Adicionando...":"Adicionar e Votar"}),a.jsx(ae,{variant:"outline",onClick:()=>t(!1),children:"Cancelar"})]})]})})}),m?a.jsx("div",{className:"text-center py-20",children:a.jsx("div",{className:"w-12 h-12 border-4 border-amber-200 border-t-amber-500 rounded-full animate-spin mx-auto"})}):p.length>0?a.jsx("div",{className:"space-y-4",children:p.map((w,j)=>{const S=i.has(w.id),E=k(w.youtube_url),P=j<3;return a.jsx(Q.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:j*.05},children:a.jsx(le,{className:`border-2 transition-all hover:shadow-xl ${P?"border-amber-300 bg-gradient-to-r from-amber-50 to-white":"border-slate-200"}`,children:a.jsx(de,{className:"p-5",children:a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:`w-12 h-12 rounded-2xl flex items-center justify-center flex-shrink-0 text-lg font-black shadow-md ${P?`bg-gradient-to-br ${gU[j]} text-white`:"bg-slate-100 text-slate-500"}`,children:P?xU[j]:`#${j+1}`}),E?a.jsx("img",{src:`https://img.youtube.com/vi/${E}/default.jpg`,alt:"",className:"w-12 h-9 object-cover rounded-lg flex-shrink-0"}):a.jsx("div",{className:"w-12 h-9 bg-slate-200 rounded-lg flex items-center justify-center flex-shrink-0",children:a.jsx(cr,{className:"w-4 h-4 text-slate-400"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-black text-slate-900 truncate text-lg leading-tight",children:w.song_title}),a.jsx("p",{className:"text-sm text-slate-500 font-semibold truncate",children:w.artist})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[E&&a.jsx("a",{href:w.youtube_url,target:"_blank",rel:"noopener noreferrer",children:a.jsx(ae,{size:"sm",variant:"outline",className:"border-slate-200 text-slate-500 hover:text-red-600 hover:border-red-300",children:a.jsx(wo,{className:"w-3 h-3"})})}),a.jsxs("div",{className:"text-center",children:[a.jsxs(ae,{size:"sm",onClick:()=>N(w),disabled:S,className:`flex items-center gap-1.5 font-bold transition-all ${S?"bg-slate-100 text-slate-400 cursor-not-allowed border border-slate-200":"bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-400 hover:to-orange-500 text-white shadow-md"}`,children:[a.jsx(yT,{className:"w-3 h-3"}),a.jsx("span",{children:w.votes||0})]}),S&&a.jsx("p",{className:"text-xs text-green-600 font-bold mt-0.5",children:"Votou ✓"})]})]})]})})})},w.id)})}):a.jsx(le,{className:"border-2 border-dashed border-amber-200 bg-amber-50/30",children:a.jsxs(de,{className:"p-16 text-center",children:[a.jsx(Nm,{className:"w-16 h-16 text-amber-300 mx-auto mb-4"}),a.jsx("h3",{className:"text-2xl font-black text-slate-700 mb-2",children:"Nenhuma música no ranking ainda"}),a.jsx("p",{className:"text-slate-500 mb-6",children:"Seja o primeiro a sugerir uma música!"}),a.jsxs(ae,{onClick:()=>t(!0),className:"bg-amber-600 hover:bg-amber-700 text-white font-bold",children:[a.jsx(ml,{className:"w-4 h-4 mr-2"})," Sugerir Primeira Música"]})]})})]})})}const _p=[{title:"Início",url:Ke("Home"),icon:IP},{title:"Programação",url:Ke("Schedule"),icon:lr},{title:"Sermões",url:Ke("Sermons"),icon:Bu},{title:"Blog",url:Ke("Blog"),icon:vo},{title:"Eventos",url:Ke("Events"),icon:xP},{title:"Músicas",url:Ke("RecentSongs"),icon:cr}],Kk=[{title:"Pedido de Oração",url:Ke("PrayerRequests"),icon:ht},{title:"Mural de Oração",url:Ke("PrayerWall"),icon:ud},{title:"Testemunhos",url:Ke("Testimonies"),icon:_s},{title:"Pedido de Música",url:Ke("SongRequests"),icon:Fu},{title:"Ranking",url:Ke("Ranking"),icon:Nm},{title:"Bíblia",url:Ke("Bible"),icon:vm},{title:"Galeria",url:Ke("Gallery"),icon:Oi},{title:"Compartilhar",url:Ke("Share"),icon:go},{title:"Contato",url:Ke("Contact"),icon:bo},{title:"Doe",url:Ke("Donate"),icon:Lp},{title:"Assistentes IA",url:Ke("Agents"),icon:bm},{title:"Admin",url:Ke("Admin"),icon:v1}],vU=[..._p,...Kk];function bU({children:e,currentPageName:t}){const n=Oo(),[r,i]=b.useState(!1),[l,c]=b.useState(!1),[d,f]=b.useState(!1);return a.jsxs("div",{className:l?"dark":"",children:[a.jsxs("header",{className:"bg-white/90 dark:bg-gray-900/90 backdrop-blur-md shadow-sm sticky top-0 z-50 border-b border-amber-100 dar
432k:border-gray-700",children:[a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex justify-between items-center h-16",children:[a.jsxs(vn,{to:Ke("Home"),className:"flex items-center gap-3 group",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-amber-400 to-orange-600 rounded-full blur-md opacity-40 group-hover:opacity-70 transition-opacity"}),a.jsx("div",{className:"relative w-9 h-9 bg-gradient-to-br from-amber-500 to-orange-600 rounded-full flex items-center justify-center",children:a.jsx(ks,{className:"w-4 h-4 text-white"})})]}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-black bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent",children:"Rádio Caridade"}),a.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 leading-none",children:"A Palavra de Deus"})]})]}),a.jsxs("nav",{className:"hidden lg:flex items-center gap-0.5",children:[_p.map(m=>a.jsxs(vn,{to:m.url,className:`flex items-center gap-2 px-3 py-2 rounded-lg transition-all text-sm font-semibold ${n.pathname===m.url?"bg-gradient-to-r from-amber-500 to-orange-600 text-white shadow":"text-gray-600 dark:text-gray-300 hover:bg-amber-50 dark:hover:bg-gray-800 hover:text-amber-700"}`,children:[a.jsx(m.icon,{className:"w-4 h-4"}),m.title]},m.title)),a.jsxs("div",{className:"relative",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[a.jsx(ae,{variant:"ghost",className:"text-gray-600 dark:text-gray-300 font-semibold text-sm h-9 px-3",children:"Mais ▾"}),d&&a.jsx("div",{className:"absolute right-0 top-full mt-1 w-52 bg-white dark:bg-gray-800 rounded-xl shadow-2xl border border-gray-100 dark:border-gray-700 py-1 z-50",children:Kk.map(m=>a.jsxs(vn,{to:m.url,onClick:()=>f(!1),className:"flex items-center gap-3 px-4 py-2.5 hover:bg-amber-50 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 text-sm font-medium transition-colors",children:[a.jsx(m.icon,{className:"w-4 h-4 text-amber-600"}),m.title]},m.title))})]})]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>c(!l),className:"text-gray-600 dark:text-gray-300 h-8 w-8",children:l?a.jsx(gT,{className:"w-4 h-4"}):a.jsx(ZP,{className:"w-4 h-4"})}),a.jsx(ae,{variant:"ghost",size:"icon",className:"lg:hidden text-gray-600 dark:text-gray-300 h-8 w-8",onClick:()=>i(!r),children:r?a.jsx(Ol,{className:"w-5 h-5"}):a.jsx(WP,{className:"w-5 h-5"})})]})]})}),r&&a.jsx("div",{className:"lg:hidden border-t border-gray-100 dark:border-gray-700 bg-white dark:bg-gray-900",children:a.jsx("div",{className:"px-4 py-3 grid grid-cols-2 gap-1 max-h-[calc(100vh-64px)] overflow-y-auto",children:vU.map(m=>a.jsxs(vn,{to:m.url,onClick:()=>i(!1),className:`flex items-center gap-2 px-3 py-2.5 rounded-lg transition-all text-sm font-semibold ${n.pathname===m.url?"bg-gradient-to-r from-amber-500 to-orange-600 text-white":"text-gray-600 dark:text-gray-300 hover:bg-amber-50 dark:hover:bg-gray-800"}`,children:[a.jsx(m.icon,{className:"w-4 h-4 flex-shrink-0"}),a.jsx("span",{className:"truncate",children:m.title})]},m.title))})})]}),a.jsx("main",{className:"min-h-[calc(100vh-64px)] dark:bg-gray-900",children:e}),a.jsx("footer",{className:"bg-gradient-to-br from-amber-900 to-orange-900 text-white",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsxs("div",{className:"grid md:grid-cols-4 gap-8 mb-8",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"w-9 h-9 bg-white/10 rounded-full flex items-center justify-center",children:a.jsx(ks,{className:"w-4 h-4"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-black text-base",children:"Rádio Caridade"}),a.jsx("p",{className:"text-xs text-amber-200",children:"A Palavra de Deus"})]})]}),a.jsx("p",{className:"text-amber-100 text-sm leading-relaxed",children:"Levando a mensagem de amor e esperança através da Palavra de Deus."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-3 text-amber-200 text-sm uppercase tracking-wider",children:"Conteúdo"}),a.jsx("div",{className:"space-y-1.5 text-sm",children:[{title:"Sermões",url:Ke("Sermons")},{title:"Blog",url:Ke("Blog")},{title:"Eventos",url:Ke("Events")},{title:"Galeria",url:Ke("Gallery")}].map(m=>a.jsx(vn,{to:m.url,className:"block text-amber-100 hover:text-white transition",children:m.title},m.title))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-3 text-amber-200 text-sm uppercase tracking-wider",children:"Comunidade"}),a.jsx("div",{className:"space-y-1.5 text-sm",children:[{title:"Pedidos de Oração",url:Ke("PrayerRequests")},{title:"Testemunhos",url:Ke("Testimonies")},{title:"Ranking Musical",url:Ke("Ranking")},{title:"Doe",url:Ke("Donate")}].map(m=>a.jsx(vn,{to:m.url,className:"block text-amber-100 hover:text-white transition",children:m.title},m.title))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-3 text-amber-200 text-sm uppercase tracking-wider",children:"Contato"}),a.jsxs("div",{className:"space-y-1.5 text-sm text-amber-100",children:[a.jsx("p",{children:"📧 [email protected]"}),a.jsxs("p",{children:["📱 ",a.jsx("a",{href:"https://wa.me/5511981565347",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white",children:"(11) 98156-5347"})]}),a.jsx("p",{children:"📍 São Paulo, Brasil"}),a.jsxs("p",{className:"pt-1",children:["📺 ",a.jsx("a",{href:"https://www.youtube.com/@r%C3%A1diocaridade5270",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white",children:"Canal YouTube"})]})]})]})]}),a.jsxs("div",{className:"border-t border-amber-800 pt-6 flex flex-col md:flex-row items-center justify-between gap-3 text-sm text-amber-200",children:[a.jsx("p",{children:"© 2025 Rádio Caridade. Todos os direitos reservados."}),a.jsx("p",{children:"📻 Transmitindo 24h por dia • 7 dias por semana"})]})]})}),a.jsx("nav",{className:"lg:hidden fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-900 border-t border-amber-100 dar
432k:border-gray-700 shadow-xl z-50",children:a.jsx("div",{className:"grid grid-cols-5 p-1",children:_p.slice(0,5).map(m=>a.jsxs(vn,{to:m.url,className:`flex flex-col items-center gap-0.5 p-2 rounded-lg transition-all ${n.pathname===m.url?"bg-gradient-to-r from-amber-500 to-orange-600 text-white":"text-gray-500 dark:text-gray-400"}`,children:[a.jsx(m.icon,{className:"w-5 h-5"}),a.jsx("span",{className:"text-[10px] font-semibold leading-tight",children:m.title})]},m.title))})})]})}const wU={Home:QL,Schedule:YL,PrayerRequests:hI,Scripture:pI,Agents:xI,Blog:yI,Contact:vI,Gallery:bI,Testimonies:wI,Events:EF,RecentSongs:PF,Donate:TF,Share:_F,AddPhoto:F8,AddSong:V8,Admin:lU,SongRequests:cU,Sermons:uU,PrayerWall:dU,Bible:mU,Ranking:yU},Gk={mainPage:"Home",Pages:wU,Layout:bU};function NU(){const e=Oo(),{isAuthenticated:t}=ZN(),{Pages:n,mainPage:r}=Gk,i=r;return b.useEffect(()=>{var l;(l=window.parent)==null||l.postMessage({type:"app_changed_url",url:window.location.href},"*")},[e]),b.useEffect(()=>{const l=e.pathname;let c;if(l==="/"||l==="")c=i;else{const d=l.replace(/^\//,"").split("/")[0];c=Object.keys(n).find(p=>p.toLowerCase()===d.toLowerCase())||null}t&&c&&Me.appLogs.logUserInApp(c).catch(()=>{})},[e,t,n,i]),null}function SU({}){var i;const t=Oo().pathname.substring(1),{data:n,isFetched:r}=Ot({queryKey:["user"],queryFn:async()=>{try{return{user:await Me.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return a.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:a.jsx("div",{className:"max-w-md w-full",children:a.jsxs("div",{className:"text-center space-y-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),a.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),a.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",a.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&a.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:a.jsxs("div",{className:"flex items-start space-x-3",children:[a.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:a.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),a.jsxs("div",{className:"text-left space-y-1",children:[a.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),a.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."})]})]})}),a.jsx("div",{className:"pt-6",children:a.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:[a.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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 jU="https://stream.zeno.fm/cbbnte3le8itv";function kU(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{n.current&&(e?n.current.pause():n.current.play().catch(()=>{}),t(!e))},i=[{icon:ks,title:"Ao Vivo 24h",desc:"Transmissão ininterrupta com a Palavra de Deus e música gospel de qualidade.",color:"from-amber-500 to-orange-600"},{icon:YP,title:"Pregações",desc:"Mensagens inspiradoras de pastores ungidos para edificar sua fé.",color:"from-blue-500 to-indigo-600"},{icon:cr,title:"Músicas Gospel",desc:"Os maiores sucessos do gospel nacional e internacional.",color:"from-purple-500 to-pink-600"},{icon:ht,title:"Pedidos de Oração",desc:"Nossa equipe intercede por você. Envie seu pedido e seja abençoado.",color:"from-rose-500 to-red-600"},{icon:vo,title:"Estudo Bíblico",desc:"Aprofunde seu conhecimento na Palavra através dos nossos programas.",color:"from-emerald-500 to-teal-600"},{icon:lr,title:"Programação Especial",desc:"Eventos, cultos ao vivo e programas temáticos ao longo da semana.",color:"from-cyan-500 to-blue-600"}],l=[{value:"10+",label:"Anos no Ar",icon:"📻"},{value:"24h",label:"Por Dia",icon:"🕐"},{value:"15+",label:"Programas",icon:"🎙️"},{value:"∞",label:"Bênçãos",icon:"✨"}],c=[{name:"Maria Silva",text:"A Rádio Caridade mudou minha vida! Começo todos os dias ouvindo as mensagens e me sinto fortalecida.",stars:5},{name:"João Oliveira",text:"Já faz 5 anos que ouço essa rádio. A qualidade das pregações é incrível. Deus abençoe toda a equipe!",stars:5},{name:"Ana Santos",text:"Enviei um pedido de oração e fui respondida! Essa rádio é uma bênção para nossa comunidade.",stars:5}];return a.jsxs("div",{className:"min-h-screen bg-white overflow-x-hidden",children:[a.jsx("audio",{ref:n,src:jU,preload:"none"}),a.jsxs("section",{className:"relative min-h-screen flex flex-col items-center justify-center bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(251,146,60,0.15),transparent_50%),radial-gradient(ellipse_at_bottom,rgba(234,88,12,0.1),transparent_50%)]"}),a.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full border border-amber-500/10 animate-pulse"}),a.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] rounded-full border border-amber-500/5"}),a.jsxs("div",{className:"relative z-10 text-center px-6 max-w-5xl mx-auto",children:[a.jsxs(Q.div,{initial:{opacity:0,y:-20}
432,animate:{opacity:1,y:0},className:"inline-flex items-center gap-3 bg-red-500/10 border border-red-400/30 px-6 py-3 rounded-full mb-8",children:[a.jsxs("div",{className:"relative flex",children:[a.jsx("div",{className:"w-2.5 h-2.5 bg-red-500 rounded-full animate-ping absolute"}),a.jsx("div",{className:"w-2.5 h-2.5 bg-red-500 rounded-full"})]}),a.jsx("span",{className:"text-sm font-bold text-red-300 tracking-widest uppercase",children:"Ao Vivo Agora"})]}),a.jsx(Q.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.1},className:"flex justify-center mb-6",children:a.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-amber-500 to-orange-600 rounded-3xl flex items-center justify-center shadow-2xl shadow-amber-500/40",children:a.jsx(ks,{className:"w-12 h-12 text-white"})})}),a.jsx(Q.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"text-6xl md:text-8xl font-black text-white mb-4 tracking-tight leading-tight",children:"Rádio Caridade"}),a.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"text-2xl md:text-3xl text-amber-400 font-light mb-4 italic",children:'"A Palavra de Deus"'}),a.jsx(Q.p,{initial:{opacity:0}
432,animate:{opacity:1},transition:{delay:.4},className:"text-lg text-slate-300 mb-12 max-w-2xl mx-auto leading-relaxed",children:"Levando esperança, amor e fé através da música gospel e mensagens inspiradoras — 24 horas por dia, 7 dias por semana."}),a.jsxs(Q.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.5},className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-16",children:[a.jsxs("button",{onClick:r,className:"group flex items-center gap-4 bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-400 hover:to-orange-500 text-white font-bold text-xl px-10 py-5 rounded-full shadow-2xl shadow-amber-500/40 hover:shadow-amber-500/60 transition-all duration-300 hover:scale-105",children:[e?a.jsx(hl,{className:"w-7 h-7"}):a.jsx(wo,{className:"w-7 h-7 ml-1"}),e?"Pausar Transmissão":"Ouvir Ao Vivo"]}),a.jsx(vn,{to:Ke("Home"),children:a.jsx("button",{className:"flex items-center gap-3 border border-white/20 hover:border-amber-400/50 text-white hover:text-amber-300 font-semibold text-lg px-8 py-5 rounded-full transition-all duration-300 backdrop-blur-sm",children:"Entrar no Site Completo →"})})]}),e&&a.jsxs(Q.div,{initial:{opacity:0}
432,animate:{opacity:1},className:"flex items-center justify-center gap-1 mb-8",children:[[...Array(7)].map((d,f)=>a.jsx(Q.div,{className:"w-1.5 bg-gradient-to-t from-amber-500 to-orange-400 rounded-full",animate:{height:["6px","28px","6px"]},transition:{duration:.7,repeat:1/0,delay:f*.1}},f)),a.jsx("span",{className:"ml-3 text-amber-400 text-sm font-bold tracking-wider",children:"● TRANSMITINDO AO VIVO"})]}),a.jsx(Q.div,{animate:{y:[0,8,0]},transition:{duration:2,repeat:1/0},className:"text-slate-400",children:a.jsx(Dp,{className:"w-8 h-8 mx-auto"})})]})]}),a.jsx("section",{className:"py-16 bg-gradient-to-r from-amber-500 to-orange-600",children:a.jsx("div",{className:"max-w-5xl mx-auto px-6 grid grid-cols-2 md:grid-cols-4 gap-8",children:l.map((d,f)=>a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:f*.1},className:"text-center text-white",children:[a.jsx("div",{className:"text-4xl mb-2",children:d.icon}),a.jsx("div",{className:"text-4xl font-black mb-1",children:d.value}),a.jsx("div",{className:"text-amber-100 text-sm font-medium uppercase tracking-wider",children:d.label})]},d.label))})}),a.jsx("section",{className:"py-24 bg-slate-50",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl md:text-5xl font-black text-slate-900 mb-4",children:"O que oferecemos"}),a.jsx("p",{className:"text-xl text-slate-600 max-w-2xl mx-auto",children:"Muito mais do que uma rádio — somos uma comunidade de fé"})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:i.map((d,f)=>a.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:f*.1},whileHover:{y:-5},className:"bg-white rounded-2xl p-8 shadow-lg hover:shadow-2xl transition-all duration-300 border border-slate-100",children:[a.jsx("div",{className:`w-14 h-14 bg-gradient-to-br ${d.color} rounded-2xl flex items-center justify-center mb-6 shadow-lg`,children:a.jsx(d.icon,{className:"w-7 h-7 text-white"})}),a.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-3",children:d.title}),a.jsx("p",{className:"text-slate-600 leading-relaxed",children:d.desc})]},d.title))})]})}),a.jsxs("section",{className:"py-24 bg-gradient-to-br from-slate-950 to-slate-900 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_right,rgba(251,146,60,0.08),transparent_60%)]"}),a.jsxs("div",{className:"max-w-6xl mx-auto px-6 relative grid md:grid-cols-2 gap-16 items-center",children:[a.jsxs(Q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-amber-500/10 border border-amber-500/20 px-4 py-2 rounded-full mb-6",children:[a.jsx(ht,{className:"w-4 h-4 text-amber-400"}),a.jsx("span",{className:"text-amber-400 text-sm font-semibold uppercase tracking-wider",children:"Nossa História"})]}),a.jsxs("h2",{className:"text-4xl md:text-5xl font-black text-white mb-6 leading-tight",children:["Mais de 10 anos",a.jsx("br",{}),a.jsx("span",{className:"text-amber-400",children:"abençoando vidas"})]}),a.jsx("p",{className:"text-slate-300 text-lg leading-relaxed mb-6",children:"A Rádio Caridade nasceu com um propósito claro: levar a Palavra de Deus a todos os lares do Brasil. Desde o primeiro dia, buscamos ser um instrumento de fé, esperança e amor."}),a.jsx("p",{className:"text-slate-400 leading-relaxed mb-8",children:"Com uma programação diversificada e comprometida com a verdade bíblica, somos referência para quem busca crescimento espiritual e comunhão com Deus."}),a.jsx(vn,{to:Ke("Home"),children:a.jsx(ae,{className:"bg-gradient-to-r from-amber-500 to-orange-600 hover:from-amber-400 hover:to-orange-500 text-white px-8 py-3 rounded-full text-base font-bold shadow-lg shadow-amber-500/30",children:"Conhecer a Rádio →"})})]}),a.jsx(Q.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"grid grid-cols-2 gap-4",children:[{icon:"🙏",title:"Oração Diária",desc:"Intercessão pela comunidade todos os dias"},{icon:"📖",title:"Palavra Viva",desc:"Mensagens baseadas na Bíblia Sagrada"},{icon:"🎵",title:"Louvor",desc:"Música que edifica e glorifica a Deus"},{icon:"🤝",title:"Comunidade",desc:"Uma família unida pela fé"}].map(d=>a.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-6 backdrop-blur-sm",children:[a.jsx("div",{className:"text-3xl mb-3",children:d.icon}),a.jsx("h4",{className:"text-white font-bold mb-1",children:d.title}),a.jsx("p",{className:"text-slate-400 text-sm",children:d.desc})]},d.title))})]})]}),a.jsx("section",{className:"py-24 bg-white",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[a.jsx("h2",{className:"text-4xl md:text-5xl font-black text-slate-900 mb-4",children:"O que dizem nossos ouvintes"}),a.jsx("p",{className:"text-xl text-slate-500",children:"Histórias reais de transformação e bênção"})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:c.map((d,f)=>a.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:f*.15},className:"bg-gradient-to-br from-amber-50 to-orange-50 border border-amber-100 rounded-2xl p-8",children:[a.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(d.stars)].map((m,p)=>a.jsx(mT,{className:"w-5 h-5 text-amber-500 fill-amber-500"},p))}),a.jsxs("p",{className:"text-slate-700 italic leading-relaxed mb-6",children:['"',d.text,'"']}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-amber-400 to-orange-500 rounded-full flex items-center justify-center text-white font-bold text-sm",children:d.name.charAt(0)}),a.jsx("span",{className:"font-bold text-slate-900",children:d.name})]})]},d.name))})]})}),a.jsxs("section",{className:"py-24 bg-gradient-to-br from-amber-500 to-orange-600 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(255,255,255,0.1),transparent_70%)]"}),a.jsx("div",{className:"max-w-4xl mx-auto px-6 text-center relative",children:a.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[a.jsx(ks,{className:"w-16 h-16 text-white mx-auto mb-6 opacity-80"}),a.jsx("h2",{className:"text-4xl md:text-6xl font-black text-white mb-6 leading-tight",children:"Comece a ouvir agora"}),a.jsx("p",{className:"text-xl text-orange-100 mb-10 max-w-2xl mx-auto",children:"Deixe a Palavra de Deus transformar o seu dia. Clique e ouça a Rádio Caridade ao vivo, gratuitamente!"}),a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[a.jsxs("button",{onClick:r,className:"flex items-center gap-3 bg-white text-orange-600 hover:bg-orange-50 font-black text-xl px-10 py-5 rounded-full shadow-2xl transition-all hover:scale-105",children:[e?a.jsx(hl,{className:"w-6 h-6"}):a.jsx(wo,{className:"w-6 h-6 ml-1"}),e?"Pausar":"Ouvir Agora — É Grátis!"]}),a.jsxs("a",{href:"https://www.youtube.com/@r%C3%A1diocaridade5270",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 bg-red-600 hover:bg-red-700 text-white font-bold text-lg px-8 py-5 rounded-full shadow-xl transition-all hover:scale-105",children:[a.jsx(MT,{className:"w-6 h-6"}),"Canal YouTube"]})]})]})})]}),a.jsx("section",{className:"py-20 bg-slate-900",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[a.jsx("div",{className:"grid md:grid-cols-3 gap-8 text-center",children:[{icon:b1,label:"WhatsApp",value:"(11) 98156-5347",href:"https://wa.me/5511981565347",color:"text-green-400"},{icon:bo,label:"E-mail",value:"[email protected]",href:"mailto:[email protected]",color:"text-blue-400"},{icon:Ip,label:"Localização",value:"São Paulo, Brasil",href:null,color:"text-amber-400"}].map(d=>a.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col items-center",children:[a.jsx("div",{className:`w-12 h-12 rounded-full bg-white/10 flex items-center justify-center mb-4 ${d.color}`,children:a.jsx(d.icon,{className:"w-6 h-6"})}),a.jsx("p",{className:"text-slate-400 text-sm uppercase tracking-wider mb-1",children:d.label}),d.href?a.jsx("a",{href:d.href,target:"_blank",rel:"noopener noreferrer",className:`font-semibold ${d.color} hover:opacity-80 transition`,children:d.value}):a.jsx("p",{className:"font-semibold text-white",children:d.value})]},d.label))}),a.jsx("div",{className:"text-center mt-12 text-slate-500 text-sm border-t border-slate-800 pt-8",children:a.jsx("p",{children:"© 2025 Rádio Caridade • Todos os direitos reservados • A Palavra de Deus para o Brasil"})})]})})]})}const CU=()=>a.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:a.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:a.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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"})})}),a.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),a.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."}),a.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[a.jsx("p",{children:"If you believe this is an error, you can:"}),a.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[a.jsx("li",{children:"Verify you are logged in with the correct account"}),a.jsx("li",{children:"Contact the app administrator for access"}),a.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:Qk,Layout:n1,mainPage:EU}=Gk,Yk=EU,PU=Qk[Yk],r1=({children:e,currentPageName:t})=>n1?a.jsx(n1,{currentPageName:t,children:e}):a.jsx(a.Fragment,{children:e}),TU=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,isAuthenticated:r,navigateToLogin:i}=ZN();if(t||e)return a.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:a.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 a.jsx(CU,{});if(n.type==="auth_required")return i(),null}return a.jsxs(WR,{children:[a.jsx(Xa,{path:"/",element:a.jsx(r1,{currentPageName:Yk,children:a.jsx(PU,{})})}),Object.entries(Qk).map(([l,c])=>a.jsx(Xa,{path:`/${l}`,element:a.jsx(r1,{currentPageName:l,children:a.jsx(c,{})})},l)),a.jsx(Xa,{path:"/Landing",element:a.jsx(kU,{})}),a.jsx(Xa,{path:"*",element:a.jsx(SU,{})})]})};function _U(){return a.jsx(BO,{children:a.jsxs(B_,{client:J_,children:[a.jsxs(ZR,{children:[a.jsx(NU,{}),a.jsx(TU,{})]}),a.jsx(g_,{}),a.jsx(Z_,{})]})})}nP.createRoot(document.getElementById("root")).render(a.jsx(_U,{}));

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.