vendor: 5,692 bytes, lines 1-9
1var nx=t=>{throw TypeError(t)};var Kh=(t,e,n)=>e.has(t)||nx("Cannot "+n);var N=(t,e,n)=>(Kh(t,e,"read from private field"),n?n.call(t):e.get(t)),fe=(t,e,n)=>e.has(t)?nx("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),J=(t,e,n,r)=>(Kh(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Te=(t,e,n)=>(Kh(t,e,"access private method"),n);var qc=(t,e,n,r)=>({set _(s){J(t,e,s,n)},get _(){return N(t,e,r)}});function EC(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Dk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mk={exports:{}},Xd={},$k={exports:{}},Se={};/** 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 Cc=Symbol.for("react.element"),TC=Symbol.for("react.portal"),NC=Symbol.for("react.fragment"),CC=Symbol.for("react.strict_mode"),zC=Symbol.for("react.profiler"),AC=Symbol.for("react.provider"),RC=Symbol.for("react.context"),PC=Symbol.for("react.forward_ref"),OC=Symbol.for("react.suspense"),IC=Symbol.for("react.memo"),LC=Symbol.for("react.lazy"),rx=Symbol.iterator;function DC(t){return t===null||typeof t!="object"?null:(t=rx&&t[rx]||t["@@iterator"],typeof t=="function"?t:null)}var Fk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uk=Object.assign,Vk={};function _o(t,e,n){this.props=t,this.context=e,this.refs=Vk,this.updater=n||Fk}_o.prototype.isReactComponent={};_o.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};_o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Bk(){}Bk.prototype=_o.prototype;function Ig(t,e,n){this.props=t,this.context=e,this.refs=Vk,this.updater=n||Fk}var Lg=Ig.prototype=new Bk;Lg.constructor=Ig;Uk(Lg,_o.prototype);Lg.isPureReactComponent=!0;var sx=Array.isArray,Hk=Object.prototype.hasOwnProperty,Dg={current:null},Wk={key:!0,ref:!0,__self:!0,__source:!0};function Kk(t,e,n){var r,s={},i=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)Hk.call(e,r)&&!Wk.hasOwnProperty(r)&&(s[r]=e[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Cc,type:t,key:i,ref:a,props:s,_owner:Dg.current}}function MC(t,e){return{$$typeof:Cc,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Mg(t){return typeof t=="object"&&t!==null&&t.$$typeof===Cc}function $C(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var ix=/\/+/g;function Gh(t,e){return typeof t=="object"&&t!==null&&t.key!=null?$C(""+t.key):e.toString(36)}function Ou(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Cc:case TC:a=!0}}if(a)return a=t,s=s(a),t=r===""?"."+Gh(a,0):r,sx(s)?(n="",t!=null&&(n=t.replace(ix,"$&/")+"/"),Ou(s,e,n,"",function(u){return u})):s!=null&&(Mg(s)&&(s=MC(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(ix,"$&/")+"/")+t)),e.push(s)),1;if(a=0,r=r===""?".":r+":",sx(t))for(var l=0;l<t.length;l++){i=t[l];var c=r+Gh(i,l);a+=Ou(i,e,n,c,s)}else if(c=DC(t),typeof c=="function")for(t=c.call(t),l=0;!(i=t.next()).done;)i=i.value,c=r+Gh(i,l++),a+=Ou(i,e,n,c,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function Yc(t,e,n){if(t==null)return t;var r=[],s=0;return Ou(t,r,"","",function(i){return e.call(n,i,s++)}),r}function FC(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Qt={current:null},Iu={transition:null},UC={ReactCurrentDispatcher:Qt,ReactCurrentBatchConfig:Iu,ReactCurrentOwner:Dg};function Gk(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,181 bytes, lines 9-25
9Se.Children={map:Yc,forEach:function(t,e,n){Yc(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Yc(t,function(){e++}),e},toArray:function(t){return Yc(t,function(e){return e})||[]},only:function(t){if(!Mg(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Se.Component=_o;Se.Fragment=NC;Se.Profiler=zC;Se.PureComponent=Ig;Se.StrictMode=CC;Se.Suspense=OC;Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UC;Se.act=Gk;Se.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Uk({},t.props),s=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=Dg.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)Hk.call(e,c)&&!Wk.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Cc,type:t.type,key:s,ref:i,props:r,_owner:a}};Se.createContext=function(t){return t={$$typeof:RC,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:AC,_context:t},t.Consumer=t};Se.createElement=Kk;Se.createFactory=function(t){var e=Kk.bind(null,t);return e.type=t,e};Se.createRef=function(){return{current:null}};Se.forwardRef=function(t){return{$$typeof:PC,render:t}};Se.isValidElement=Mg;Se.lazy=function(t){return{$$typeof:LC,_payload:{_status:-1,_result:t},_init:FC}};Se.memo=function(t,e){return{$$typeof:IC,type:t,compare:e===void 0?null:e}};Se.startTransition=function(t){var e=Iu.transition;Iu.transition={};try{t()}finally{Iu.transition=e}};Se.unstable_act=Gk;Se.useCallback=function(t,e){return Qt.current.useCallback(t,e)};Se.useContext=function(t){return Qt.current.useContext(t)};Se.useDebugValue=function(){};Se.useDeferredValue=function(t){return Qt.current.useDeferredValue(t)};Se.useEffect=function(t,e){return Qt.current.useEffect(t,e)};Se.useId=function(){return Qt.current.useId()};Se.useImperativeHandle=function(t,e,n){return Qt.current.useImperativeHandle(t,e,n)};Se.useInsertionEffect=function(t,e){return Qt.current.useInsertionEffect(t,e)};Se.useLayoutEffect=function(t,e){return Qt.current.useLayoutEffect(t,e)};Se.useMemo=function(t,e){return Qt.current.useMemo(t,e)};Se.useReducer=function(t,e,n){return Qt.current.useReducer(t,e,n)};Se.useRef=function(t){return Qt.current.useRef(t)};Se.useState=function(t){return Qt.current.useState(t)};Se.useSyncExternalStore=function(t,e,n){return Qt.current.useSyncExternalStore(t,e,n)};Se.useTransition=function(){return Qt.current.useTransition()};Se.version="18.3.1";$k.exports=Se;var g=$k.exports;const B=Dk(g),$g=EC({__proto__:null,default:B},[g]);/** 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 VC=g,BC=Symbol.for("react.element"),HC=Symbol.for("react.fragment"),WC=Object.prototype.hasOwnProperty,KC=VC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GC={key:!0,ref:!0,__self:!0,__source:!0};function qk(t,e,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)WC.call(e,r)&&!GC.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:BC,type:t,key:i,ref:a,props:s,_owner:KC.current}}Xd.Fragment=HC;Xd.jsx=qk;Xd.jsxs=qk;Mk.exports=Xd;var o=Mk.exports,Yk={exports:{}},jn={},Zk={exports:{}},Qk={};/** 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 */(function(t){function e(R,I){var V=R.length;R.push(I);e:for(;0<V;){var G=V-1>>>1,te=R[G];if(0<s(te,I))R[G]=I,R[V]=te,V=G;else break e}}function n(R){return R.length===0?null:R[0]}
vendor: 10,474 bytes, lines 25-34
25function r(R){if(R.length===0)return null;var I=R[0],V=R.pop();if(V!==I){R[0]=V;e:for(var G=0,te=R.length,X=te>>>1;G<X;){var ue=2*(G+1)-1,U=R[ue],se=ue+1,D=R[se];if(0>s(U,V))se<te&&0>s(D,U)?(R[G]=D,R[se]=V,G=se):(R[G]=U,R[ue]=V,G=ue);else if(se<te&&0>s(D,V))R[G]=D,R[se]=V,G=se;else break e}}return I}function s(R,I){var V=R.sortIndex-I.sortIndex;return V!==0?V:R.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,f=3,m=!1,w=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=R)r(u),I.sortIndex=I.expirationTime,e(c,I);else break;I=n(u)}}function k(R){if(p=!1,v(R),!w)if(n(c)!==null)w=!0,W(_);else{var I=n(u);I!==null&&H(k,I.startTime-R)}}function _(R,I){w=!1,p&&(p=!1,x(S),S=-1),m=!0;var V=f;try{for(v(I),h=n(c);h!==null&&(!(h.expirationTime>I)||R&&!C());){var G=h.callback;if(typeof G=="function"){h.callback=null,f=h.priorityLevel;var te=G(h.expirationTime<=I);I=t.unstable_now(),typeof te=="function"?h.callback=te:h===n(c)&&r(c),v(I)}else r(c);h=n(c)}if(h!==null)var X=!0;else{var ue=n(u);ue!==null&&H(k,ue.startTime-I),X=!1}return X}finally{h=null,f=V,m=!1}}var j=!1,E=null,S=-1,A=5,z=-1;function C(){return!(t.unstable_now()-z<A)}function L(){if(E!==null){var R=t.unstable_now();z=R;var I=!0;try{I=E(!0,R)}finally{I?P():(j=!1,E=null)}}else j=!1}var P;if(typeof y=="function")P=function(){y(L)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,Z=O.port2;O.port1.onmessage=L,P=function(){Z.postMessage(null)}}else P=function(){b(L,0)};function W(R){E=R,j||(j=!0,P())}function H(R,I){S=b(function(){R(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_continueExecution=function(){w||m||(w=!0,W(_))},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(R){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var V=f;f=I;try{return R()}finally{f=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(R,I){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var V=f;f=R;try{return I()}finally{f=V}},t.unstable_scheduleCallback=function(R,I,V){var G=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?G+V:G):V=G,R){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=V+te,R={id:d++,callback:I,priorityLevel:R,startTime:V,expirationTime:te,sortIndex:-1},V>G?(R.sortIndex=V,e(u,R),n(c)===null&&R===n(u)&&(p?(x(S),S=-1):p=!0,H(k,V-G))):(R.sortIndex=te,e(c,R),w||m||(w=!0,W(_))),R},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(R){var I=f;return function(){var V=f;f=I;try{return R.apply(this,arguments)}finally{f=V}}}})(Qk);Zk.exports=Qk;var qC=Zk.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 YC=g,kn=qC;function M(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jk=new Set,Dl={};function Xi(t,e){oo(t,e),oo(t+"Capture",e)}function oo(t,e){for(Dl[t]=e,t=0;t<e.length;t++)Jk.add(e[t])}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xm=Object.prototype.hasOwnProperty,ZC=/^[: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]*$/,ax={},ox={};function QC(t){return xm.call(ox,t)?!0:xm.call(ax,t)?!1:ZC.test(t)?ox[t]=!0:(ax[t]=!0,!1)}function JC(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function XC(t,e,n,r){if(e===null||typeof e>"u"||JC(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Jt(t,e,n,r,s,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var At={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){At[t]=new Jt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];At[e]=new Jt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){At[t]=new Jt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){At[t]=new Jt(t,2,!1,t,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(t){At[t]=new Jt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){At[t]=new Jt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){At[t]=new Jt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){At[t]=new Jt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){At[t]=new Jt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Fg=/[\-:]([a-z])/g;function Ug(t){return t[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(t){var e=t.replace(Fg,Ug);At[e]=new Jt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Fg,Ug);At[e]=new Jt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Fg,Ug);At[e]=new Jt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){At[t]=new Jt(t,1,!1,t.toLowerCase(),null,!1,!1)});At.xlinkHref=new Jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){At[t]=new Jt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Vg(t,e,n,r){var s=At.hasOwnProperty(e)?At[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(XC(e,n,s,r)&&(n=null),r||s===null?QC(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var rs=YC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zc=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ba=Symbol.for("react.fragment"),Bg=Symbol.for("react.strict_mode"),wm=Symbol.for("react.profiler"),Xk=Symbol.for("react.provider"),e1=Symbol.for("react.context"),Hg=Symbol.for("react.forward_ref"),bm=Symbol.for("react.suspense"),km=Symbol.for("react.suspense_list"),Wg=Symbol.for("react.memo"),ps=Symbol.for("react.lazy"),t1=Symbol.for("react.offscreen"),lx=Symbol.iterator;function Ko(t){return t===null||typeof t!="object"?null:(t=lx&&t[lx]||t["@@iterator"],typeof t=="function"?t:null)}var tt=Object.assign,qh;function dl(t){if(qh===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);qh=e&&e[1]||""}return` 34`+qh+t}var Yh=!1;function Zh(t,e){if(!t||Yh)return"";Yh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}
vendor: 16,583 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),i=r.stack.split(` 36`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var c=` 37`+s[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=l);break}}}finally{Yh=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?dl(t):""}function ez(t){switch(t.tag){case 5:return dl(t.type);case 16:return dl("Lazy");case 13:return dl("Suspense");case 19:return dl("SuspenseList");case 0:case 2:case 15:return t=Zh(t.type,!1),t;case 11:return t=Zh(t.type.render,!1),t;case 1:return t=Zh(t.type,!0),t;default:return""}}function _m(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ba:return"Fragment";case wa:return"Portal";case wm:return"Profiler";case Bg:return"StrictMode";case bm:return"Suspense";case km:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case e1:return(t.displayName||"Context")+".Consumer";case Xk:return(t._context.displayName||"Context")+".Provider";case Hg:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wg:return e=t.displayName||null,e!==null?e:_m(t.type)||"Memo";case ps:e=t._payload,t=t._init;try{return _m(t(e))}catch{}}return null}function tz(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _m(e);case 8:return e===Bg?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ks(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function n1(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function nz(t){var e=n1(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Qc(t){t._valueTracker||(t._valueTracker=nz(t))}function r1(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=n1(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function rd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function jm(t,e){var n=e.checked;return tt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function cx(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Ks(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function s1(t,e){e=e.checked,e!=null&&Vg(t,"checked",e,!1)}function Sm(t,e){s1(t,e);var n=Ks(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Em(t,e.type,n):e.hasOwnProperty("defaultValue")&&Em(t,e.type,Ks(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ux(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Em(t,e,n){(e!=="number"||rd(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var hl=Array.isArray;function Ma(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Ks(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Tm(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(M(91));return tt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function dx(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(M(92));if(hl(n)){if(1<n.length)throw Error(M(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Ks(n)}}function i1(t,e){var n=Ks(e.value),r=Ks(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function hx(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function a1(t){switch(t){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 Nm(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?a1(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Jc,o1=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Jc=Jc||document.createElement("div"),Jc.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Jc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ml(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var bl={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},rz=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(t){rz.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),bl[e]=bl[t]})});function l1(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||bl.hasOwnProperty(t)&&bl[t]?(""+e).trim():e+"px"}function c1(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=l1(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var sz=tt({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 Cm(t,e){if(e){if(sz[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function zm(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Am=null;function Kg(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Rm=null,$a=null,Fa=null;function fx(t){if(t=Rc(t)){if(typeof Rm!="function")throw Error(M(280));var e=t.stateNode;e&&(e=sh(e),Rm(t.stateNode,t.type,e))}}function u1(t){$a?Fa?Fa.push(t):Fa=[t]:$a=t}function d1(){if($a){var t=$a,e=Fa;if(Fa=$a=null,fx(t),e)for(t=0;t<e.length;t++)fx(e[t])}}function h1(t,e){return t(e)}function f1(){}var Qh=!1;function m1(t,e,n){if(Qh)return t(e,n);Qh=!0;try{return h1(t,e,n)}finally{Qh=!1,($a!==null||Fa!==null)&&(f1(),d1())}}function $l(t,e){var n=t.stateNode;if(n===null)return null;var r=sh(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(M(231,e,typeof n));return n}var Pm=!1;if(Yr)try{var Go={};Object.defineProperty(Go,"passive",{get:function(){Pm=!0}}),window.addEventListener("test",Go,Go),window.removeEventListener("test",Go,Go)}catch{Pm=!1}function iz(t,e,n,r,s,i,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var kl=!1,sd=null,id=!1,Om=null,az={onError:function(t){kl=!0,sd=t}};function oz(t,e,n,r,s,i,a,l,c){kl=!1,sd=null,iz.apply(az,arguments)}function lz(t,e,n,r,s,i,a,l,c){if(oz.apply(this,arguments),kl){if(kl){var u=sd;kl=!1,sd=null}else throw Error(M(198));id||(id=!0,Om=u)}}function ea(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function p1(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function mx(t){if(ea(t)!==t)throw Error(M(188))}function cz(t){var e=t.alternate;if(!e){if(e=ea(t),e===null)throw Error(M(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return mx(s),t;if(i===r)return mx(s),e;i=i.sibling}throw Error(M(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function g1(t){return t=cz(t),t!==null?y1(t):null}function y1(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=y1(t);if(e!==null)return e;t=t.sibling}return null}var v1=kn.unstable_scheduleCallback,px=kn.unstable_cancelCallback,uz=kn.unstable_shouldYield,dz=kn.unstable_requestPaint,ot=kn.unstable_now,hz=kn.unstable_getCurrentPriorityLevel,Gg=kn.unstable_ImmediatePriority,x1=kn.unstable_UserBlockingPriority,ad=kn.unstable_NormalPriority,fz=kn.unstable_LowPriority,w1=kn.unstable_IdlePriority,eh=null,Er=null;function mz(t){if(Er&&typeof Er.onCommitFiberRoot=="function")try{Er.onCommitFiberRoot(eh,t,void 0,(t.current.flags&128)===128)}catch{}}var or=Math.clz32?Math.clz32:yz,pz=Math.log,gz=Math.LN2;function yz(t){return t>>>=0,t===0?32:31-(pz(t)/gz|0)|0}var Xc=64,eu=4194304;function fl(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function od(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=fl(l):(i&=a,i!==0&&(r=fl(i)))}else a=n&~s,a!==0?r=fl(a):i!==0&&(r=fl(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-or(e),s=1<<n,r|=t[n],e&=~s;return r}function vz(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 xz(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-or(i),l=1<<a,c=s[a];c===-1?(!(l&n)||l&r)&&(s[a]=vz(l,e)):c<=e&&(t.expiredLanes|=l),i&=~l}}function Im(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function b1(){var t=Xc;return Xc<<=1,!(Xc&4194240)&&(Xc=64),t}function Jh(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function zc(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-or(e),t[e]=n}function wz(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-or(n),i=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~i}}function qg(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-or(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var Le=0;function k1(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var _1,Yg,j1,S1,E1,Lm=!1,tu=[],Is=null,Ls=null,Ds=null,Fl=new Map,Ul=new Map,xs=[],bz="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 gx(t,e){switch(t){case"focusin":case"focusout":Is=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":Ds=null;break;case"pointerover":case"pointerout":Fl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(e.pointerId)}}function qo(t,e,n,r,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},e!==null&&(e=Rc(e),e!==null&&Yg(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function kz(t,e,n,r,s){switch(e){case"focusin":return Is=qo(Is,t,e,n,r,s),!0;case"dragenter":return Ls=qo(Ls,t,e,n,r,s),!0;case"mouseover":return Ds=qo(Ds,t,e,n,r,s),!0;case"pointerover":var i=s.pointerId;return Fl.set(i,qo(Fl.get(i)||null,t,e,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Ul.set(i,qo(Ul.get(i)||null,t,e,n,r,s)),!0}return!1}function T1(t){var e=_i(t.target);if(e!==null){var n=ea(e);if(n!==null){if(e=n.tag,e===13){if(e=p1(n),e!==null){t.blockedOn=e,E1(t.priority,function(){j1(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Lu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Dm(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);Am=r,n.target.dispatchEvent(r),Am=null}else return e=Rc(n),e!==null&&Yg(e),t.blockedOn=n,!1;e.shift()}return!0}
vendor: 8,733 bytes, line 37
37function yx(t,e,n){Lu(t)&&n.delete(e)}function _z(){Lm=!1,Is!==null&&Lu(Is)&&(Is=null),Ls!==null&&Lu(Ls)&&(Ls=null),Ds!==null&&Lu(Ds)&&(Ds=null),Fl.forEach(yx),Ul.forEach(yx)}function Yo(t,e){t.blockedOn===e&&(t.blockedOn=null,Lm||(Lm=!0,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,_z)))}function Vl(t){function e(s){return Yo(s,t)}if(0<tu.length){Yo(tu[0],t);for(var n=1;n<tu.length;n++){var r=tu[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Is!==null&&Yo(Is,t),Ls!==null&&Yo(Ls,t),Ds!==null&&Yo(Ds,t),Fl.forEach(e),Ul.forEach(e),n=0;n<xs.length;n++)r=xs[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<xs.length&&(n=xs[0],n.blockedOn===null);)T1(n),n.blockedOn===null&&xs.shift()}var Ua=rs.ReactCurrentBatchConfig,ld=!0;function jz(t,e,n,r){var s=Le,i=Ua.transition;Ua.transition=null;try{Le=1,Zg(t,e,n,r)}finally{Le=s,Ua.transition=i}}function Sz(t,e,n,r){var s=Le,i=Ua.transition;Ua.transition=null;try{Le=4,Zg(t,e,n,r)}finally{Le=s,Ua.transition=i}}function Zg(t,e,n,r){if(ld){var s=Dm(t,e,n,r);if(s===null)cf(t,e,r,cd,n),gx(t,r);else if(kz(s,t,e,n,r))r.stopPropagation();else if(gx(t,r),e&4&&-1<bz.indexOf(t)){for(;s!==null;){var i=Rc(s);if(i!==null&&_1(i),i=Dm(t,e,n,r),i===null&&cf(t,e,r,cd,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else cf(t,e,r,null,n)}}var cd=null;function Dm(t,e,n,r){if(cd=null,t=Kg(r),t=_i(t),t!==null)if(e=ea(t),e===null)t=null;else if(n=e.tag,n===13){if(t=p1(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return cd=t,null}function N1(t){switch(t){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(hz()){case Gg:return 1;case x1:return 4;case ad:case fz:return 16;case w1:return 536870912;default:return 16}default:return 16}}var zs=null,Qg=null,Du=null;function C1(){if(Du)return Du;var t,e=Qg,n=e.length,r,s="value"in zs?zs.value:zs.textContent,i=s.length;for(t=0;t<n&&e[t]===s[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===s[i-r];r++);return Du=s.slice(t,1<r?1-r:void 0)}function Mu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function nu(){return!0}function vx(){return!1}function Sn(t){function e(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?nu:vx,this.isPropagationStopped=vx,this}return tt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),e}var jo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jg=Sn(jo),Ac=tt({},jo,{view:0,detail:0}),Ez=Sn(Ac),Xh,ef,Zo,th=tt({},Ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xg,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Zo&&(Zo&&t.type==="mousemove"?(Xh=t.screenX-Zo.screenX,ef=t.screenY-Zo.screenY):ef=Xh=0,Zo=t),Xh)},movementY:function(t){return"movementY"in t?t.movementY:ef}}),xx=Sn(th),Tz=tt({},th,{dataTransfer:0}),Nz=Sn(Tz),Cz=tt({},Ac,{relatedTarget:0}),tf=Sn(Cz),zz=tt({},jo,{animationName:0,elapsedTime:0,pseudoElement:0}),Az=Sn(zz),Rz=tt({},jo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Pz=Sn(Rz),Oz=tt({},jo,{data:0}),wx=Sn(Oz),Iz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lz={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"},Dz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mz(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Dz[t])?!!e[t]:!1}function Xg(){return Mz}var $z=tt({},Ac,{key:function(t){if(t.key){var e=Iz[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Mu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lz[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xg,charCode:function(t){return t.type==="keypress"?Mu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Mu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Fz=Sn($z),Uz=tt({},th,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bx=Sn(Uz),Vz=tt({},Ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xg}),Bz=Sn(Vz),Hz=tt({},jo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wz=Sn(Hz),Kz=tt({},th,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Gz=Sn(Kz),qz=[9,13,27,32],ey=Yr&&"CompositionEvent"in window,_l=null;Yr&&"documentMode"in document&&(_l=document.documentMode);var Yz=Yr&&"TextEvent"in window&&!_l,z1=Yr&&(!ey||_l&&8<_l&&11>=_l),kx=" ",_x=!1;function A1(t,e){switch(t){case"keyup":return qz.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ka=!1;function Zz(t,e){switch(t){case"compositionend":return R1(e);case"keypress":return e.which!==32?null:(_x=!0,kx);case"textInput":return t=e.data,t===kx&&_x?null:t;default:return null}}function Qz(t,e){if(ka)return t==="compositionend"||!ey&&A1(t,e)?(t=C1(),Du=Qg=zs=null,ka=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return z1&&e.locale!=="ko"?null:e.data;default:return null}}var Jz={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 jx(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Jz[t.type]:e==="textarea"}function P1(t,e,n,r){u1(r),e=ud(e,"onChange"),0<e.length&&(n=new Jg("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var jl=null,Bl=null;function Xz(t){H1(t,0)}function nh(t){var e=Sa(t);if(r1(e))return t}function eA(t,e){if(t==="change")return e}var O1=!1;if(Yr){var nf;if(Yr){var rf="oninput"in document;if(!rf){var Sx=document.createElement("div");Sx.setAttribute("oninput","return;
37"),rf=typeof Sx.oninput=="function"}nf=rf}else nf=!1;O1=nf&&(!document.documentMode||9<document.documentMode)}function Ex(){jl&&(jl.detachEvent("onpropertychange",I1),Bl=jl=null)}function I1(t){if(t.propertyName==="value"&&nh(Bl)){var e=[];P1(e,Bl,t,Kg(t)),m1(Xz,e)}}function tA(t,e,n){t==="focusin"?(Ex(),jl=e,Bl=n,jl.attachEvent("onpropertychange",I1)):t==="focusout"&&Ex()}function nA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return nh(Bl)}function rA(t,e){if(t==="click")return nh(e)}function sA(t,e){if(t==="input"||t==="change")return nh(e)}function iA(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var cr=typeof Object.is=="function"?Object.is:iA;function Hl(t,e){if(cr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!xm.call(e,s)||!cr(t[s],e[s]))return!1}return!0}function Tx(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Nx(t,e){var n=Tx(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tx(n)}}function L1(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?L1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function D1(){for(var t=window,e=rd();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=rd(t.document)}return e}function ty(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function aA(t){var e=D1(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&L1(n.ownerDocument.documentElement,n)){if(r!==null&&ty(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=Nx(n,i);var a=Nx(n,r);s&&a&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var oA=Yr&&"documentMode"in document&&11>=document.documentMode,_a=null,Mm=null,Sl=null,$m=!1;function Cx(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$m||_a==null||_a!==rd(r)||(r=_a,"selectionStart"in r&&ty(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sl&&Hl(Sl,r)||(Sl=r,r=ud(Mm,"onSelect"),0<r.length&&(e=new Jg("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=_a)))}function ru(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ja={animationend:ru("Animation","AnimationEnd"),animationiteration:ru("Animation","AnimationIteration"),animationstart:ru("Animation","AnimationStart"),transitionend:ru("Transition","TransitionEnd")},sf={},M1={};Yr&&(M1=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function rh(t){if(sf[t])return sf[t];if(!ja[t])return t;var e=ja[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in M1)return sf[t]=e[n];return t}var $1=rh("animationend"),F1=rh("animationiteration"),U1=rh("animationstart"),V1=rh("transitionend"),B1=new Map,zx="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 ei(t,e){B1.set(t,e),Xi(e,[t])}for(var af=0;af<zx.length;af++){var of=zx[af],lA=of.toLowerCase(),cA=of[0].toUpperCase()+of.slice(1);ei(lA,"on"+cA)}ei($1,"onAnimationEnd");ei(F1,"onAnimationIteration");ei(U1,"onAnimationStart");ei("dblclick","onDoubleClick");ei("focusin","onFocus");ei("focusout","onBlur");ei(V1,"onTransitionEnd");oo("onMouseEnter",["mouseout","mouseover"]);oo("onMouseLeave",["mouseout","mouseover"]);oo("onPointerEnter",["pointerout","pointerover"]);oo("onPointerLeave",["pointerout","pointerover"]);Xi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37Xi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),uA=new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));function Ax(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,lz(r,e,void 0,t),t.currentTarget=null}function H1(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;Ax(s,l,u),i=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;Ax(s,l,u),i=c}}}if(id)throw t=Om,id=!1,Om=null,t}function He(t,e){var n=e[Hm];n===void 0&&(n=e[Hm]=new Set);var r=t+"__bubble";n.has(r)||(W1(e,t,2,!1),n.add(r))}function lf(t,e,n){var r=0;e&&(r|=4),W1(n,t,r,e)}var su="_reactListening"+Math.random().toString(36).slice(2);function Wl(t){if(!t[su]){t[su]=!0,Jk.forEach(function(n){n!=="selectionchange"&&(uA.has(n)||lf(n,!1,t),lf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[su]||(e[su]=!0,lf("selectionchange",!1,e))}}function W1(t,e,n,r){switch(N1(e)){case 1:var s=jz;break;case 4:s=Sz;break;default:s=Zg}n=s.bind(null,e,n,t),s=void 0,!Pm||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function cf(t,e,n,r,s){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;a=a.return}for(;l!==null;){if(a=_i(l),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}l=l.parentNode}}r=r.return}m1(function(){var u=i,d=Kg(n),h=[];e:{var f=B1.get(t);if(f!==void 0){var m=Jg,w=t;switch(t){case"keypress":if(Mu(n)===0)break e;case"keydown":case"keyup":m=Fz;break;case"focusin":w="focus",m=tf;break;case"focusout":w="blur",m=tf;break;case"beforeblur":case"afterblur":m=tf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=xx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Nz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Bz;break;case $1:case F1:case U1:m=Az;break;case V1:m=Wz;break;case"scroll":m=Ez;break;case"wheel":m=Gz;break;case"copy":case"cut":case"paste":m=Pz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=bx}var p=(e&4)!==0,b=!p&&t==="scroll",x=p?f!==null?f+"Capture":null:f;p=[];for(var y=u,v;y!==null;){v=y;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,x!==null&&(k=$l(y,x),k!=null&&p.push(Kl(y,k,v)))),b)break;y=y.return}0<p.length&&(f=new m(f,w,null,n,d),h.push({event:f,listeners:p}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",f&&n!==Am&&(w=n.relatedTarget||n.fromElement)&&(_i(w)||w[Zr]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(w=n.relatedTarget||n.toElement,m=u,w=w?_i(w):null,w!==null&&(b=ea(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(m=null,w=u),m!==w)){if(p=xx,k="onMouseLeave",x="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(p=bx,k="onPointerLeave",x="onPointerEnter",y="pointer"),b=m==null?f:Sa(m),v=w==null?f:Sa(w),f=new p(k,y+"leave",m,n,d),f.target=b,f.relatedTarget=v,k=null,_i(d)===u&&(p=new p(x,y+"enter",w,n,d),p.target=v,p.relatedTarget=b,k=p),b=k,m&&w)t:{for(p=m,x=w,y=0,v=p;v;v=aa(v))y++;for(v=0,k=x;k;k=aa(k))v++;for(;0<y-v;)p=aa(p),y--;for(;0<v-y;)x=aa(x),v--;for(;y--;){if(p===x||x!==null&&p===x.alternate)break t;p=aa(p),x=aa(x)}p=null}else p=null;m!==null&&Rx(h,f,m,p,!1),w!==null&&b!==null&&Rx(h,b,w,p,!0)}}
vendor: 6,485 bytes, lines 37-38
37e:{if(f=u?Sa(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var _=eA;else if(jx(f))if(O1)_=sA;else{_=nA;var j=tA}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=rA);if(_&&(_=_(t,u))){P1(h,_,n,d);break e}j&&j(t,f,u),t==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&Em(f,"number",f.value)}switch(j=u?Sa(u):window,t){case"focusin":(jx(j)||j.contentEditable==="true")&&(_a=j,Mm=u,Sl=null);break;case"focusout":Sl=Mm=_a=null;break;case"mousedown":$m=!0;break;case"contextmenu":case"mouseup":case"dragend":$m=!1,Cx(h,n,d);break;case"selectionchange":if(oA)break;case"keydown":case"keyup":Cx(h,n,d)}var E;if(ey)e:{switch(t){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else ka?A1(t,n)&&(S="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(z1&&n.locale!=="ko"&&(ka||S!=="onCompositionStart"?S==="onCompositionEnd"&&ka&&(E=C1()):(zs=d,Qg="value"in zs?zs.value:zs.textContent,ka=!0)),j=ud(u,S),0<j.length&&(S=new wx(S,t,null,n,d),h.push({event:S,listeners:j}),E?S.data=E:(E=R1(n),E!==null&&(S.data=E)))),(E=Yz?Zz(t,n):Qz(t,n))&&(u=ud(u,"onBeforeInput"),0<u.length&&(d=new wx("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=E))}H1(h,e)})}function Kl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ud(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=$l(t,n),i!=null&&r.unshift(Kl(t,i,s)),i=$l(t,e),i!=null&&r.push(Kl(t,i,s))),t=t.return}return r}function aa(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Rx(t,e,n,r,s){for(var i=e._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,s?(c=$l(n,i),c!=null&&a.unshift(Kl(n,c,l))):s||(c=$l(n,i),c!=null&&a.push(Kl(n,c,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var dA=/\r\n?/g,hA=/\u0000|\uFFFD/g;function Px(t){return(typeof t=="string"?t:""+t).replace(dA,` 38`).replace(hA,"")}function iu(t,e,n){if(e=Px(e),Px(t)!==e&&n)throw Error(M(425))}function dd(){}var Fm=null,Um=null;function Vm(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Bm=typeof setTimeout=="function"?setTimeout:void 0,fA=typeof clearTimeout=="function"?clearTimeout:void 0,Ox=typeof Promise=="function"?Promise:void 0,mA=typeof queueMicrotask=="function"?queueMicrotask:typeof Ox<"u"?function(t){return Ox.resolve(null).then(t).catch(pA)}:Bm;function pA(t){setTimeout(function(){throw t})}function uf(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),Vl(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Vl(e)}function Ms(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Ix(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var So=Math.random().toString(36).slice(2),_r="__reactFiber$"+So,Gl="__reactProps$"+So,Zr="__reactContainer$"+So,Hm="__reactEvents$"+So,gA="__reactListeners$"+So,yA="__reactHandles$"+So;function _i(t){var e=t[_r];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Zr]||n[_r]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ix(t);t!==null;){if(n=t[_r])return n;t=Ix(t)}return e}t=n,n=t.parentNode}return null}function Rc(t){return t=t[_r]||t[Zr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Sa(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(M(33))}function sh(t){return t[Gl]||null}var Wm=[],Ea=-1;function ti(t){return{current:t}}function Ke(t){0>Ea||(t.current=Wm[Ea],Wm[Ea]=null,Ea--)}function Ue(t,e){Ea++,Wm[Ea]=t.current,t.current=e}var Gs={},Ft=ti(Gs),un=ti(!1),Vi=Gs;function lo(t,e){var n=t.type.contextTypes;if(!n)return Gs;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function dn(t){return t=t.childContextTypes,t!=null}function hd(){Ke(un),Ke(Ft)}function Lx(t,e,n){if(Ft.current!==Gs)throw Error(M(168));Ue(Ft,e),Ue(un,n)}function K1(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(M(108,tz(t)||"Unknown",s));return tt({},n,r)}function fd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Gs,Vi=Ft.current,Ue(Ft,t),Ue(un,un.current),!0}function Dx(t,e,n){var r=t.stateNode;if(!r)throw Error(M(169));n?(t=K1(t,e,Vi),r.__reactInternalMemoizedMergedChildContext=t,Ke(un),Ke(Ft),Ue(Ft,t)):Ke(un),Ue(un,n)}var Hr=null,ih=!1,df=!1;function G1(t){Hr===null?Hr=[t]:Hr.push(t)}function vA(t){ih=!0,G1(t)}function ni(){if(!df&&Hr!==null){df=!0;var t=0,e=Le;try{var n=Hr;for(Le=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Hr=null,ih=!1}catch(s){throw Hr!==null&&(Hr=Hr.slice(t+1)),v1(Gg,ni),s}finally{Le=e,df=!1}}return null}var Ta=[],Na=0,md=null,pd=0,Pn=[],On=0,Bi=null,Kr=1,Gr="";function yi(t,e){Ta[Na++]=pd,Ta[Na++]=md,md=t,pd=e}function q1(t,e,n){Pn[On++]=Kr,Pn[On++]=Gr,Pn[On++]=Bi,Bi=t;var r=Kr;t=Gr;var s=32-or(r)-1;r&=~(1<<s),n+=1;var i=32-or(e)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,Kr=1<<32-or(e)+s|n<<s|r,Gr=i+t}else Kr=1<<i|n<<s|r,Gr=t}function ny(t){t.return!==null&&(yi(t,1),q1(t,1,0))}function ry(t){for(;t===md;)md=Ta[--Na],Ta[Na]=null,pd=Ta[--Na],Ta[Na]=null;for(;t===Bi;)Bi=Pn[--On],Pn[On]=null,Gr=Pn[--On],Pn[On]=null,Kr=Pn[--On],Pn[On]=null}var wn=null,xn=null,Ye=!1,ar=null;function Y1(t,e){var n=In(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Mx(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,wn=t,xn=Ms(e.f
vendor: 24,346 bytes, lines 38-40
38irstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,wn=t,xn=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Bi!==null?{id:Kr,overflow:Gr}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=In(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,wn=t,xn=null,!0):!1;default:return!1}}function Km(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Gm(t){if(Ye){var e=xn;if(e){var n=e;if(!Mx(t,e)){if(Km(t))throw Error(M(418));e=Ms(n.nextSibling);var r=wn;e&&Mx(t,e)?Y1(r,n):(t.flags=t.flags&-4097|2,Ye=!1,wn=t)}}else{if(Km(t))throw Error(M(418));t.flags=t.flags&-4097|2,Ye=!1,wn=t}}}function $x(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;wn=t}function au(t){if(t!==wn)return!1;if(!Ye)return $x(t),Ye=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Vm(t.type,t.memoizedProps)),e&&(e=xn)){if(Km(t))throw Z1(),Error(M(418));for(;e;)Y1(t,e),e=Ms(e.nextSibling)}if($x(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){xn=Ms(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}xn=null}}else xn=wn?Ms(t.stateNode.nextSibling):null;return!0}function Z1(){for(var t=xn;t;)t=Ms(t.nextSibling)}function co(){xn=wn=null,Ye=!1}function sy(t){ar===null?ar=[t]:ar.push(t)}var xA=rs.ReactCurrentBatchConfig;function Qo(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,t));var s=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,t))}return t}function ou(t,e){throw t=Object.prototype.toString.call(e),Error(M(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Fx(t){var e=t._init;return e(t._payload)}function Q1(t){function e(x,y){if(t){var v=x.deletions;v===null?(x.deletions=[y],x.flags|=16):v.push(y)}}function n(x,y){if(!t)return null;for(;y!==null;)e(x,y),y=y.sibling;return null}function r(x,y){for(x=new Map;y!==null;)y.key!==null?x.set(y.key,y):x.set(y.index,y),y=y.sibling;return x}function s(x,y){return x=Vs(x,y),x.index=0,x.sibling=null,x}function i(x,y,v){return x.index=v,t?(v=x.alternate,v!==null?(v=v.index,v<y?(x.flags|=2,y):v):(x.flags|=2,y)):(x.flags|=1048576,y)}function a(x){return t&&x.alternate===null&&(x.flags|=2),x}function l(x,y,v,k){return y===null||y.tag!==6?(y=vf(v,x.mode,k),y.return=x,y):(y=s(y,v),y.return=x,y)}function c(x,y,v,k){var _=v.type;return _===ba?d(x,y,v.props.children,k,v.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ps&&Fx(_)===y.type)?(k=s(y,v.props),k.ref=Qo(x,y,v),k.return=x,k):(k=Wu(v.type,v.key,v.props,null,x.mode,k),k.ref=Qo(x,y,v),k.return=x,k)}function u(x,y,v,k){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=xf(v,x.mode,k),y.return=x,y):(y=s(y,v.children||[]),y.return=x,y)}function d(x,y,v,k,_){return y===null||y.tag!==7?(y=Fi(v,x.mode,k,_),y.return=x,y):(y=s(y,v),y.return=x,y)}function h(x,y,v){if(typeof y=="string"&&y!==""||typeof y=="number")return y=vf(""+y,x.mode,v),y.return=x,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zc:return v=Wu(y.type,y.key,y.props,null,x.mode,v),v.ref=Qo(x,null,y),v.return=x,v;case wa:return y=xf(y,x.mode,v),y.return=x,y;case ps:var k=y._init;return h(x,k(y._payload),v)}if(hl(y)||Ko(y))return y=Fi(y,x.mode,v,null),y.return=x,y;ou(x,y)}return null}function f(x,y,v,k){var _=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return _!==null?null:l(x,y,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Zc:return v.key===_?c(x,y,v,k):null;case wa:return v.key===_?u(x,y,v,k):null;case ps:return _=v._init,f(x,y,_(v._payload),k)}if(hl(v)||Ko(v))return _!==null?null:d(x,y,v,k,null);ou(x,v)}return null}function m(x,y,v,k,_){if(typeof k=="string"&&k!==""||typeof k=="number")return x=x.get(v)||null,l(y,x,""+k,_);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Zc:return x=x.get(k.key===null?v:k.key)||null,c(y,x,k,_);case wa:return x=x.get(k.key===null?v:k.key)||null,u(y,x,k,_);case ps:var j=k._init;return m(x,y,v,j(k._payload),_)}if(hl(k)||Ko(k))return x=x.get(v)||null,d(y,x,k,_,null);ou(y,k)}return null}function w(x,y,v,k){for(var _=null,j=null,E=y,S=y=0,A=null;E!==null&&S<v.length;S++){E.index>S?(A=E,E=null):A=E.sibling;var z=f(x,E,v[S],k);if(z===null){E===null&&(E=A);break}t&&E&&z.alternate===null&&e(x,E),y=i(z,y,S),j===null?_=z:j.sibling=z,j=z,E=A}if(S===v.length)return n(x,E),Ye&&yi(x,S),_;if(E===null){for(;S<v.length;S++)E=h(x,v[S],k),E!==null&&(y=i(E,y,S),j===null?_=E:j.sibling=E,j=E);return Ye&&yi(x,S),_}for(E=r(x,E);S<v.length;S++)A=m(E,x,S,v[S],k),A!==null&&(t&&A.alternate!==null&&E.delete(A.key===null?S:A.key),y=i(A,y,S),j===null?_=A:j.sibling=A,j=A);return t&&E.forEach(function(C){return e(x,C)}),Ye&&yi(x,S),_}function p(x,y,v,k){var _=Ko(v);if(typeof _!="function")throw Error(M(150));if(v=_.call(v),v==null)throw Error(M(151));for(var j=_=null,E=y,S=y=0,A=null,z=v.next();E!==null&&!z.done;S++,z=v.next()){E.index>S?(A=E,E=null):A=E.sibling;var C=f(x,E,z.value,k);if(C===null){E===null&&(E=A);break}t&&E&&C.alternate===null&&e(x,E),y=i(C,y,S),j===null?_=C:j.sibling=C,j=C,E=A}if(z.done)return n(x,E),Ye&&yi(x,S),_;if(E===null){for(;!z.done;S++,z=v.next())z=h(x,z.value,k),z!==null&&(y=i(z,y,S),j===null?_=z:j.sibling=z,j=z);return Ye&&yi(x,S),_}for(E=r(x,E);!z.done;S++,z=v.next())z=m(E,x,S,z.value,k),z!==null&&(t&&z.alternate!==null&&E.delete(z.key===null?S:z.key),y=i(z,y,S),j===null?_=z:j.sibling=z,j=z);return t&&E.forEach(function(L){return e(x,L)}),Ye&&yi(x,S),_}function b(x,y,v,k){if(typeof v=="object"&&v!==null&&v.type===ba&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Zc:e:{for(var _=v.key,j=y;j!==null;){if(j.key===_){if(_=v.type,_===ba){if(j.tag===7){n(x,j.sibling),y=s(j,v.props.children),y.return=x,x=y;break e}}else if(j.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ps&&Fx(_)===j.type){n(x,j.sibling),y=s(j,v.props),y.ref=Qo(x,j,v),y.return=x,x=y;break e}n(x,j);break}else e(x,j);j=j.sibling}v.type===ba?(y=Fi(v.props.children,x.mode,k,v.key),y.return=x,x=y):(k=Wu(v.type,v.key,v.props,null,x.mode,k),k.ref=Qo(x,y,v),k.return=x,x=k)}return a(x);case wa:e:{for(j=v.key;y!==null;){if(y.key===j)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(x,y.sibling),y=s(y,v.children||[]),y.return=x,x=y;break e}else{n(x,y);break}else e(x,y);y=y.sibling}y=xf(v,x.mode,k),y.return=x,x=y}return a(x);case ps:return j=v._init,b(x,y,j(v._payload),k)}if(hl(v))return w(x,y,v,k);if(Ko(v))return p(x,y,v,k);ou(x,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(x,y.sibling),y=s(y,v),y.return=x,x=y):(n(x,y),y=vf(v,x.mode,k),y.return=x,x=y),a(x)):n(x,y)}return b}var uo=Q1(!0),J1=Q1(!1),gd=ti(null),yd=null,Ca=null,iy=null;function ay(){iy=Ca=yd=null}function oy(t){var e=gd.current;Ke(gd),t._currentValue=e}function qm(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Va(t,e){yd=t,iy=Ca=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(cn=!0),t.firstContext=null)}function $n(t){var e=t._currentValue;if(iy!==t)if(t={context:t,memoizedValue:e,next:null},Ca===null){if(yd===null)throw Error(M(308));Ca=t,yd.dependencies={lanes:0,firstContext:t}}else Ca=Ca.next=t;return e}var ji=null;function ly(t){ji===null?ji=[t]:ji.push(t)}function X1(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,ly(e)):(n.next=s.next,s.next=n),e.interleaved=n,Qr(t,r)}function Qr(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var gs=!1;function cy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e_(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function qr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function $s(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Ae&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,Qr(t,n)}return s=r.interleaved,s===null?(e.next=e,ly(r)):(e.next=s.next,s.next=e),r.interleaved=e,Qr(t,n)}function $u(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,qg(t,n)}}function Ux(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function vd(t,e,n,r){var s=t.updateQueue;gs=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var d=t.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;a=0,d=u=c=null,l=i;do{var f=l.lane,m=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=t,p=l;switch(f=e,m=n,p.tag){case 1:if(w=p.payload,typeof w=="function"){h=w.call(m,h,f);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=p.payload,f=typeof w=="function"?w.call(m,h,f):w,f==null)break e;h=tt({},h,f);break e;case 2:gs=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,c=h):d=d.next=m,a|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,e=s.shared.interleaved,e!==null){s=e;do a|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);Wi|=a,t.lanes=a,t.memoizedState=h}}function Vx(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(M(191,s));s.call(r)}}}var Pc={},Tr=ti(Pc),ql=ti(Pc),Yl=ti(Pc);function Si(t){if(t===Pc)throw Error(M(174));return t}function uy(t,e){switch(Ue(Yl,e),Ue(ql,t),Ue(Tr,Pc),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Nm(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Nm(e,t)}Ke(Tr),Ue(Tr,e)}function ho(){Ke(Tr),Ke(ql),Ke(Yl)}function t_(t){Si(Yl.current);var e=Si(Tr.current),n=Nm(e,t.type);e!==n&&(Ue(ql,t),Ue(Tr,n))}function dy(t){ql.current===t&&(Ke(Tr),Ke(ql))}var Je=ti(0);function xd(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var hf=[];function hy(){for(var t=0;t<hf.length;t++)hf[t]._workInProgressVersionPrimary=null;hf.length=0}var Fu=rs.ReactCurrentDispatcher,ff=rs.ReactCurrentBatchConfig,Hi=0,et=null,gt=null,xt=null,wd=!1,El=!1,Zl=0,wA=0;function Ot(){throw Error(M(321))}function fy(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!cr(t[n],e[n]))return!1;return!0}function my(t,e,n,r,s,i){if(Hi=i,et=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Fu.current=t===null||t.memoizedState===null?jA:SA,t=n(r,s),El){i=0;do{if(El=!1,Zl=0,25<=i)throw Error(M(301));i+=1,xt=gt=null,e.updateQueue=null,Fu.current=EA,t=n(r,s)}while(El)}if(Fu.current=bd,e=gt!==null&>.next!==null,Hi=0,xt=gt=et=null,wd=!1,e)throw Error(M(300));return t}function py(){var t=Zl!==0;return Zl=0,t}function vr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?et.memoizedState=xt=t:xt=xt.next=t,xt}function Fn(){if(gt===null){var t=et.alternate;t=t!==null?t.memoizedState:null}else t=gt.next;var e=xt===null?et.memoizedState:xt.next;if(e!==null)xt=e,gt=t;else{if(t===null)throw Error(M(310));gt=t,t={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},xt===null?et.memoizedState=xt=t:xt=xt.next=t}return xt}function Ql(t,e){return typeof e=="function"?e(t):e}function mf(t){var e=Fn(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var r=gt,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,c=null,u=i;do{var d=u.lane;if((Hi&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,a=r):c=c.next=h,et.lanes|=d,Wi|=d}u=u.next}while(u!==null&&u!==i);c===null?a=r:c.next=l,cr(r,e.memoizedState)||(cn=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=c,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do i=s.lane,et.lanes|=i,Wi|=i,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function pf(t){var e=Fn(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,i=e.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=t(i,a.action),a=a.next;while(a!==s);cr(i,e.memoizedState)||(cn=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function n_(){}function r_(t,e){var n=et,r=Fn(),s=e(),i=!cr(r.memoizedState,s);if(i&&(r.memoizedState=s,cn=!0),r=r.queue,gy(a_.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||xt!==null&&xt.memoizedState.tag&1){if(n.flags|=2048,Jl(9,i_.bind(null,n,r,s,e),void 0,null),wt===null)throw Error(M(349));Hi&30||s_(n,e,s)}return s}function s_(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=et.updateQueue,e===null?(e={lastEffect:null,stores:null},et.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function i_(t,e,n,r){e.value=n,e.getSnapshot=r,o_(e)&&l_(t)}function a_(t,e,n){return n(function(){o_(e)&&l_(t)})}function o_(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!cr(t,n)}catch{return!0}}function l_(t){var e=Qr(t,1);e!==null&&lr(e,t,1,-1)}function Bx(t){var e=vr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:t},e.queue=t,t=t.dispatch=_A.bind(null,et,t),[e.memoizedState,t]}function Jl(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=et.updateQueue,e===null?(e={lastEffect:null,stores:null},et.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function c_(){return Fn().memoizedState}function Uu(t,e,n,r){var s=vr();et.flags|=t,s.memoizedState=Jl(1|e,n,void 0,r===void 0?null:r)}function ah(t,e,n,r){var s=Fn();r=r===void 0?null:r;var i=void 0;if(gt!==null){var a=gt.memoizedState;if(i=a.destroy,r!==null&&fy(r,a.deps)){s.memoizedState=Jl(e,n,i,r);return}}et.flags|=t,s.memoizedState=Jl(1|e,n,i,r)}function Hx(t,e){return Uu(8390656,8,t,e)}function gy(t,e){return ah(2048,8,t,e)}function u_(t,e){return ah(4,2,t,e)}function d_(t,e){return ah(4,4,t,e)}function h_(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function f_(t,e,n){return n=n!=null?n.concat([t]):null,ah(4,4,h_.bind(null,e,t),n)}function yy(){}function m_(t,e){var n=Fn();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&fy(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function p_(t,e){var n=Fn();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&fy(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function g_(t,e,n){return Hi&21?(cr(n,e)||(n=b1(),et.lanes|=n,Wi|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,cn=!0),t.memoizedState=n)}function bA(t,e){var n=Le;Le=n!==0&&4>n?n:4,t(!0);var r=ff.transition;ff.transition={};try{t(!1),e()}finally{Le=n,ff.transition=r}}function y_(){return Fn().memoizedState}function kA(t,e,n){var r=Us(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},v_(t))x_(e,n);else if(n=X1(t,e,n,r),n!==null){var s=qt();lr(n,t,r,s),w_(n,e,r)}}function _A(t,e,n){var r=Us(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(v_(t))x_(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,cr(l,a)){var c=e.interleaved;c===null?(s.next=s,ly(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}n=X1(t,e,s,r),n!==null&&(s=qt(),lr(n,t,r,s),w_(n,e,r))}}function v_(t){var e=t.alternate;return t===et||e!==null&&e===et}function x_(t,e){El=wd=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function w_(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,qg(t,n)}}var bd={readContext:$n,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},jA={readContext:$n,useCallback:function(t,e){return vr().memoizedState=[t,e===void 0?null:e],t},useContext:$n,useEffect:Hx,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Uu(4194308,4,h_.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Uu(4194308,4,t,e)},useInsertionEffect:function(t,e){return Uu(4,2,t,e)},useMemo:function(t,e){var n=vr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=vr();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=kA.bind(null,et,t),[r.memoizedState,t]},useRef:function(t){var e=vr();return t={current:t},e.memoizedState=t},useState:Bx,useDebugValue:yy,useDeferredValue:function(t){return vr().memoizedState=t},useTransition:function(){var t=Bx(!1),e=t[0];return t=bA.bind(null,t[1]),vr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=et,s=vr();if(Ye){if(n===void 0)throw Error(M(407));n=n()}else{if(n=e(),wt===null)throw Error(M(349));Hi&30||s_(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,Hx(a_.bind(null,r,i,t),[t]),r.flags|=2048,Jl(9,i_.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=vr(),e=wt.identifierPrefix;if(Ye){var n=Gr,r=Kr;n=(r&~(1<<32-or(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Zl++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=wA++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},SA={readContext:$n,useCallback:m_,useContext:$n,useEffect:gy,useImperativeHandle:f_,useInsertionEffect:u_,useLayoutEffect:d_,useMemo:p_,useReducer:mf,useRef:c_,useState:function(){return mf(Ql)},useDebugValue:yy,useDeferredValue:function(t){var e=Fn();return g_(e,gt.memoizedState,t)},useTransition:function(){var t=mf(Ql)[0],e=Fn().memoizedState;return[t,e]},useMutableSource:n_,useSyncExternalStore:r_,useId:y_,unstable_isNewReconciler:!1},EA={readContext:$n,useCallback:m_,useContext:$n,useEffect:gy,useImperativeHandle:f_,useInsertionEffect:u_,useLayoutEffect:d_,useMemo:p_,useReducer:pf,useRef:c_,useState:function(){return pf(Ql)},useDebugValue:yy,useDeferredValue:function(t){var e=Fn();return gt===null?e.memoizedState=t:g_(e,gt.memoizedState,t)},useTransition:function(){var t=pf(Ql)[0],e=Fn().memoizedState;return[t,e]},useMutableSource:n_,useSyncExternalStore:r_,useId:y_,unstable_isNewReconciler:!1};function er(t,e){if(t&&t.defaultProps){e=tt({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Ym(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:tt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var oh={isMounted:function(t){return(t=t._reactInternals)?ea(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=qt(),s=Us(t),i=qr(r,s);i.payload=e,n!=null&&(i.callback=n),e=$s(t,i,s),e!==null&&(lr(e,t,s,r),$u(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=qt(),s=Us(t),i=qr(r,s);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=$s(t,i,s),e!==null&&(lr(e,t,s,r),$u(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qt(),r=Us(t),s=qr(n,r);s.tag=2,e!=null&&(s.callback=e),e=$s(t,s,r),e!==null&&(lr(e,t,r,n),$u(e,t,r))}};function Wx(t,e,n,r,s,i,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,a):e.prototype&&e.prototype.isPureReactComponent?!Hl(n,r)||!Hl(s,i):!0}function b_(t,e,n){var r=!1,s=Gs,i=e.contextType;return typeof i=="object"&&i!==null?i=$n(i):(s=dn(e)?Vi:Ft.current,r=e.contextTypes,i=(r=r!=null)?lo(t,s):Gs),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=oh,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function Kx(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&oh.enqueueReplaceState(e,e.state,null)}function Zm(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},cy(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=$n(i):(i=dn(e)?Vi:Ft.current,s.context=lo(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Ym(t,e,i,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&oh.enqueueReplaceState(s,s.state,null),vd(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function fo(t,e){try{var n="",r=e;do n+=ez(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function gf(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Qm(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var TA=typeof WeakMap=="function"?WeakMap:Map;function k_(t,e,n){n=qr(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){_d||(_d=!0,op=r),Qm(t,e)},n}function __(t,e,n){n=qr(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){Qm(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Qm(t,e),t
vendor: 8,958 bytes, line 40
40ypeof r!="function"&&(Fs===null?Fs=new Set([this]):Fs.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function Gx(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new TA;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=UA.bind(null,t,e,n),e.then(t,t))}function qx(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Yx(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=qr(-1,1),e.tag=2,$s(n,e,1))),n.lanes|=1),t)}var NA=rs.ReactCurrentOwner,cn=!1;function Wt(t,e,n,r){e.child=t===null?J1(e,null,n,r):uo(e,t.child,n,r)}function Zx(t,e,n,r,s){n=n.render;var i=e.ref;return Va(e,s),r=my(t,e,n,r,i,s),n=py(),t!==null&&!cn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Jr(t,e,s)):(Ye&&n&&ny(e),e.flags|=1,Wt(t,e,r,s),e.child)}function Qx(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!Sy(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,j_(t,e,i,r,s)):(t=Wu(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Hl,n(a,r)&&t.ref===e.ref)return Jr(t,e,s)}return e.flags|=1,t=Vs(i,r),t.ref=e.ref,t.return=e,e.child=t}function j_(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(Hl(i,r)&&t.ref===e.ref)if(cn=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(cn=!0);else return e.lanes=t.lanes,Jr(t,e,s)}return Jm(t,e,n,r,s)}function S_(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ue(Aa,gn),gn|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ue(Aa,gn),gn|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ue(Aa,gn),gn|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,Ue(Aa,gn),gn|=r;return Wt(t,e,s,n),e.child}function E_(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Jm(t,e,n,r,s){var i=dn(n)?Vi:Ft.current;return i=lo(e,i),Va(e,s),n=my(t,e,n,r,i,s),r=py(),t!==null&&!cn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Jr(t,e,s)):(Ye&&r&&ny(e),e.flags|=1,Wt(t,e,n,s),e.child)}function Jx(t,e,n,r,s){if(dn(n)){var i=!0;fd(e)}else i=!1;if(Va(e,s),e.stateNode===null)Vu(t,e),b_(e,n,r),Zm(e,n,r,s),r=!0;else if(t===null){var a=e.stateNode,l=e.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=$n(u):(u=dn(n)?Vi:Ft.current,u=lo(e,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&Kx(e,a,r,u),gs=!1;var f=e.memoizedState;a.state=f,vd(e,r,a,s),c=e.memoizedState,l!==r||f!==c||un.current||gs?(typeof d=="function"&&(Ym(e,n,d,r),c=e.memoizedState),(l=gs||Wx(e,n,l,r,f,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,e_(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:er(e.type,l),a.props=u,h=e.pendingProps,f=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=$n(c):(c=dn(n)?Vi:Ft.current,c=lo(e,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||f!==c)&&Kx(e,a,r,c),gs=!1,f=e.memoizedState,a.state=f,vd(e,r,a,s);var w=e.memoizedState;l!==h||f!==w||un.current||gs?(typeof m=="function"&&(Ym(e,n,m,r),w=e.memoizedState),(u=gs||Wx(e,n,u,r,f,w,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,w,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,w,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),a.props=r,a.state=w,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return Xm(t,e,n,r,i,s)}function Xm(t,e,n,r,s,i){E_(t,e);var a=(e.flags&128)!==0;if(!r&&!a)return s&&Dx(e,n,!1),Jr(t,e,i);r=e.stateNode,NA.current=e;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&a?(e.child=uo(e,t.child,null,i),e.child=uo(e,null,l,i)):Wt(t,e,l,i),e.memoizedState=r.state,s&&Dx(e,n,!0),e.child}function T_(t){var e=t.stateNode;e.pendingContext?Lx(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Lx(t,e.context,!1),uy(t,e.containerInfo)}function Xx(t,e,n,r,s){return co(),sy(s),e.flags|=256,Wt(t,e,n,r),e.child}var ep={dehydrated:null,treeContext:null,retryLane:0};function tp(t){return{baseLanes:t,cachePool:null,transitions:null}}function N_(t,e,n){var r=e.pendingProps,s=Je.current,i=!1,a=(e.flags&128)!==0,l;if((l=a)||(l=t!==null&&t.memoizedState===null?!1:(s&2)!==0),l?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),Ue(Je,s&1),t===null)return Gm(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,t=r.fallback,i?(r=e.mode,i=e.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=uh(a,r,0,null),t=Fi(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=tp(n),e.memoizedState=ep,t):vy(e,a));if(s=t.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return CA(t,e,a,r,l,s,n);if(i){i=r.fallback,a=e.mode,s=t.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=c,e.deletions=null):(r=Vs(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Vs(l,i):(i=Fi(i,a,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,a=t.child.memoizedState,a=a===null?tp(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~n,e.memoizedState=ep,r}return i=t.child,t=i.sibling,r=Vs(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function vy(t,e){return e=uh({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function lu(t,e,n,r){return r!==null&&sy(r),uo(e,t.child,null,n),t=vy(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function CA(t,e,n,r,s,i,a){if(n)return e.flags&256?(e.flags&=-257,r=gf(Error(M(422))),lu(t,e,a,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,s=e.mode,r=uh({mode:"visible",children:r.children},s,0,null),i=Fi(i,s,a,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&uo(e,t.child,null,a),e.child.memoizedState=tp(a),e.memoizedState=ep,i);if(!(e.mode&1))return lu(t,e,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(M(419)),r=gf(i,r,void 0),lu(t,e,a,r)}if(l=(a&t.childLanes)!==0,cn||l){if(r=wt,r!==null){switch(a&-a){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Qr(t,s),lr(r,t,s,-1))}return jy(),r=gf(Error(M(421))),lu(t,e,a,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=VA.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,xn=Ms(s.nextSibling),wn=e,Ye=!0,ar=null,t!==null&&(Pn[On++]=Kr,Pn[On++]=Gr,Pn[On++]=Bi,Kr=t.i
vendor: 5,206 bytes, line 40
40d,Gr=t.overflow,Bi=e),e=vy(e,r.children),e.flags|=4096,e)}function e0(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),qm(t.return,e,n)}function yf(t,e,n,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function C_(t,e,n){var r=e.pendingProps,s=r.revealOrder,i=r.tail;if(Wt(t,e,r.children,n),r=Je.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&e0(t,n,e);else if(t.tag===19)e0(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ue(Je,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&xd(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),yf(e,!1,s,n,i);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&xd(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}yf(e,!0,n,null,i);break;case"together":yf(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Vu(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Jr(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Wi|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(M(153));if(e.child!==null){for(t=e.child,n=Vs(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Vs(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zA(t,e,n){switch(e.tag){case 3:T_(e),co();break;case 5:t_(e);break;case 1:dn(e.type)&&fd(e);break;case 4:uy(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;Ue(gd,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Ue(Je,Je.current&1),e.flags|=128,null):n&e.child.childLanes?N_(t,e,n):(Ue(Je,Je.current&1),t=Jr(t,e,n),t!==null?t.sibling:null);Ue(Je,Je.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return C_(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ue(Je,Je.current),r)break;return null;case 22:case 23:return e.lanes=0,S_(t,e,n)}return Jr(t,e,n)}var z_,np,A_,R_;z_=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};np=function(){};A_=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,Si(Tr.current);var i=null;switch(n){case"input":s=jm(t,s),r=jm(t,r),i=[];break;case"select":s=tt({},s,{value:void 0}),r=tt({},r,{value:void 0}),i=[];break;case"textarea":s=Tm(t,s),r=Tm(t,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=dd)}Cm(n,r);var a;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Dl.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Dl.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&He("scroll",t),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};R_=function(t,e,n,r){n!==r&&(e.flags|=4)};function Jo(t,e){if(!Ye)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function It(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function AA(t,e,n){var r=e.pendingProps;switch(ry(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(e),null;case 1:return dn(e.type)&&hd(),It(e),null;
vendor: 31,259 bytes, line 40
40case 3:return r=e.stateNode,ho(),Ke(un),Ke(Ft),hy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(au(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,ar!==null&&(up(ar),ar=null))),np(t,e),It(e),null;case 5:dy(e);var s=Si(Yl.current);if(n=e.type,t!==null&&e.stateNode!=null)A_(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(M(166));return It(e),null}if(t=Si(Tr.current),au(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[_r]=e,r[Gl]=i,t=(e.mode&1)!==0,n){case"dialog":He("cancel",r),He("close",r);break;case"iframe":case"object":case"embed":He("load",r);break;case"video":case"audio":for(s=0;s<ml.length;s++)He(ml[s],r);break;case"source":He("error",r);break;case"img":case"image":case"link":He("error",r),He("load",r);break;case"details":He("toggle",r);break;case"input":cx(r,i),He("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},He("invalid",r);break;case"textarea":dx(r,i),He("invalid",r)}Cm(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&iu(r.textContent,l,t),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&iu(r.textContent,l,t),s=["children",""+l]):Dl.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&He("scroll",r)}switch(n){case"input":Qc(r),ux(r,i,!0);break;case"textarea":Qc(r),hx(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=dd)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=a1(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[_r]=e,t[Gl]=r,z_(t,e,!1,!1),e.stateNode=t;e:{switch(a=zm(n,r),n){case"dialog":He("cancel",t),He("close",t),s=r;break;case"iframe":case"object":case"embed":He("load",t),s=r;break;case"video":case"audio":for(s=0;s<ml.length;s++)He(ml[s],t);s=r;break;case"source":He("error",t),s=r;break;case"img":case"image":case"link":He("error",t),He("load",t),s=r;break;case"details":He("toggle",t),s=r;break;case"input":cx(t,r),s=jm(t,r),He("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=tt({},r,{value:void 0}),He("invalid",t);break;case"textarea":dx(t,r),s=Tm(t,r),He("invalid",t);break;default:s=r}Cm(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?c1(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&o1(t,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ml(t,c):typeof c=="number"&&Ml(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Dl.hasOwnProperty(i)?c!=null&&i==="onScroll"&&He("scroll",t):c!=null&&Vg(t,i,c,a))}switch(n){case"input":Qc(t),ux(t,r,!1);break;case"textarea":Qc(t),hx(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Ks(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?Ma(t,!!r.multiple,i,!1):r.defaultValue!=null&&Ma(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=dd)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return It(e),null;case 6:if(t&&e.stateNode!=null)R_(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(M(166));if(n=Si(Yl.current),Si(Tr.current),au(e)){if(r=e.stateNode,n=e.memoizedProps,r[_r]=e,(i=r.nodeValue!==n)&&(t=wn,t!==null))switch(t.tag){case 3:iu(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&iu(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_r]=e,e.stateNode=r}return It(e),null;case 13:if(Ke(Je),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ye&&xn!==null&&e.mode&1&&!(e.flags&128))Z1(),co(),e.flags|=98560,i=!1;else if(i=au(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(M(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[_r]=e}else co(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;It(e),i=!1}else ar!==null&&(up(ar),ar=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Je.current&1?vt===0&&(vt=3):jy())),e.updateQueue!==null&&(e.flags|=4),It(e),null);case 4:return ho(),np(t,e),t===null&&Wl(e.stateNode.containerInfo),It(e),null;case 10:return oy(e.type._context),It(e),null;case 17:return dn(e.type)&&hd(),It(e),null;case 19:if(Ke(Je),i=e.memoizedState,i===null)return It(e),null;if(r=(e.flags&128)!==0,a=i.rendering,a===null)if(r)Jo(i,!1);else{if(vt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=xd(t),a!==null){for(e.flags|=128,Jo(i,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,t=a.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Ue(Je,Je.current&1|2),e.child}t=t.sibling}i.tail!==null&&ot()>mo&&(e.flags|=128,r=!0,Jo(i,!1),e.lanes=4194304)}else{if(!r)if(t=xd(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Jo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ye)return It(e),null}else 2*ot()-i.renderingStartTime>mo&&n!==1073741824&&(e.flags|=128,r=!0,Jo(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(n=i.last,n!==null?n.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ot(),e.sibling=null,n=Je.current,Ue(Je,r?n&1|2:n&1),e):(It(e),null);case 22:case 23:return _y(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?gn&1073741824&&(It(e),e.subtreeFlags&6&&(e.flags|=8192)):It(e),null;case 24:return null;case 25:return null}throw Error(M(156,e.tag))}function RA(t,e){switch(ry(e),e.tag){case 1:return dn(e.type)&&hd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ho(),Ke(un),Ke(Ft),hy(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return dy(e),null;case 13:if(Ke(Je),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(M(340));co()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ke(Je),null;case 4:return ho(),null;case 10:return oy(e.type._context),null;case 22:case 23:return _y(),null;case 24:return null;default:return null}}var cu=!1,Dt=!1,PA=typeof WeakSet=="function"?WeakSet:Set,Q=null;function za(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){at(t,e,r)}else n.current=null}function rp(t,e,n){try{n()}catch(r){at(t,e,r)}}var t0=!1;function OA(t,e){if(Fm=ld,t=D1(),ty(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=t,f=null;t:for(;;){for(var m;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===t)break t;if(f===n&&++u===s&&(l=a),f===i&&++d===r&&(c=a),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Um={focusedElem:t,selectionRange:n},ld=!1,Q=e;Q!==null;)if(e=Q,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Q=t;else for(;Q!==null;){e=Q;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var p=w.memoizedProps,b=w.memoizedState,x=e.stateNode,y=x.getSnapshotBeforeUpdate(e.elementType===e.type?p:er(e.type,p),b);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(k){at(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,Q=t;break}Q=e.return}return w=t0,t0=!1,w}function Tl(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&rp(e,n,i)}s=s.next}while(s!==r)}}function lh(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function sp(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function P_(t){var e=t.alternate;e!==null&&(t.alternate=null,P_(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[_r],delete e[Gl],delete e[Hm],delete e[gA],delete e[yA])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function O_(t){return t.tag===5||t.tag===3||t.tag===4}function n0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||O_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ip(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=dd));else if(r!==4&&(t=t.child,t!==null))for(ip(t,e,n),t=t.sibling;t!==null;)ip(t,e,n),t=t.sibling}function ap(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(ap(t,e,n),t=t.sibling;t!==null;)ap(t,e,n),t=t.sibling}var Et=null,sr=!1;function ls(t,e,n){for(n=n.child;n!==null;)I_(t,e,n),n=n.sibling}function I_(t,e,n){if(Er&&typeof Er.onCommitFiberUnmount=="function")try{Er.onCommitFiberUnmount(eh,n)}catch{}switch(n.tag){case 5:Dt||za(n,e);case 6:var r=Et,s=sr;Et=null,ls(t,e,n),Et=r,sr=s,Et!==null&&(sr?(t=Et,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Et.removeChild(n.stateNode));break;case 18:Et!==null&&(sr?(t=Et,n=n.stateNode,t.nodeType===8?uf(t.parentNode,n):t.nodeType===1&&uf(t,n),Vl(t)):uf(Et,n.stateNode));break;case 4:r=Et,s=sr,Et=n.stateNode.containerInfo,sr=!0,ls(t,e,n),Et=r,sr=s;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&rp(n,e,a),s=s.next}while(s!==r)}ls(t,e,n);break;case 1:if(!Dt&&(za(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){at(n,e,l)}ls(t,e,n);break;case 21:ls(t,e,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,ls(t,e,n),Dt=r):ls(t,e,n);break;default:ls(t,e,n)}}function r0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new PA),e.forEach(function(r){var s=BA.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Gn(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=t,a=e,l=a;e:for(;l!==null;){switch(l.tag){case 5:Et=l.stateNode,sr=!1;break e;case 3:Et=l.stateNode.containerInfo,sr=!0;break e;case 4:Et=l.stateNode.containerInfo,sr=!0;break e}l=l.return}if(Et===null)throw Error(M(160));I_(i,a,s),Et=null,sr=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){at(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)L_(e,t),e=e.sibling}function L_(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Gn(e,t),pr(t),r&4){try{Tl(3,t,t.return),lh(3,t)}catch(p){at(t,t.return,p)}try{Tl(5,t,t.return)}catch(p){at(t,t.return,p)}}break;case 1:Gn(e,t),pr(t),r&512&&n!==null&&za(n,n.return);break;case 5:if(Gn(e,t),pr(t),r&512&&n!==null&&za(n,n.return),t.flags&32){var s=t.stateNode;try{Ml(s,"")}catch(p){at(t,t.return,p)}}if(r&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,a=n!==null?n.memoizedProps:i,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&s1(s,i),zm(l,a);var u=zm(l,i);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];d==="style"?c1(s,h):d==="dangerouslySetInnerHTML"?o1(s,h):d==="children"?Ml(s,h):Vg(s,d,h,u)}switch(l){case"input":Sm(s,i);break;case"textarea":i1(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Ma(s,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?Ma(s,!!i.multiple,i.defaultValue,!0):Ma(s,!!i.multiple,i.multiple?[]:"",!1))}s[Gl]=i}catch(p){at(t,t.return,p)}}break;case 6:if(Gn(e,t),pr(t),r&4){if(t.stateNode===null)throw Error(M(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(p){at(t,t.return,p)}}break;case 3:if(Gn(e,t),pr(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vl(e.containerInfo)}catch(p){at(t,t.return,p)}break;case 4:Gn(e,t),pr(t);break;case 13:Gn(e,t),pr(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(by=ot())),r&4&&r0(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(Dt=(u=Dt)||d,Gn(e,t),Dt=u):Gn(e,t),pr(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(Q=t,d=t.child;d!==null;){for(h=Q=d;Q!==null;){switch(f=Q,m=f.child,f.tag){case 0:case 11:case 14:case 15:Tl(4,f,f.return);break;case 1:za(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(p){at(r,n,p)}}break;case 5:za(f,f.return);break;case 22:if(f.memoizedState!==null){i0(h);continue}}m!==null?(m.return=f,Q=m):i0(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=l1("display",a))}catch(p){at(t,t.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(p){at(t,t.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Gn(e,t),pr(t),r&4&&r0(t);break;case 21:break;default:Gn(e,t),pr(t)}}function pr(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(O_(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ml(s,""),r.flags&=-33);var i=n0(t);ap(t,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=n0(t);ip(t,l,a);break;default:throw Error(M(161))}}catch(c){at(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function IA(t,e,n){Q=t,D_(t)}function D_(t,e,n){for(var r=(t.mode&1)!==0;Q!==null;){var s=Q,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||cu;if(!a){var l=s.alternate,c=l!==null&&l.memoizedState!==null||Dt;l=cu;var u=Dt;if(cu=a,(Dt=c)&&!u)for(Q=s;Q!==null;)a=Q,c=a.child,a.tag===22&&a.memoizedState!==null?a0(s):c!==null?(c.return=a,Q=c):a0(s);for(;i!==null;)Q=i,D_(i),i=i.sibling;Q=s,cu=l,Dt=u}s0(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,Q=i):s0(t)}}function s0(t){for(;Q!==null;){var e=Q;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Dt||lh(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Dt)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:er(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Vx(e,i,r);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Vx(e,a,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Vl(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Dt||e.flags&512&&sp(e)}catch(f){at(e,e.return,f)}}if(e===t){Q=null;break}if(n=e.sibling,n!==null){n.return=e.return,Q=n;break}Q=e.return}}function i0(t){for(;Q!==null;){var e=Q;if(e===t){Q=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Q=n;break}Q=e.return}}function a0(t){for(;Q!==null;){var e=Q;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{lh(4,e)}catch(c){at(e,n,c)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(c){at(e,s,c)}}var i=e.return;try{sp(e)}catch(c){at(e,i,c)}break;case 5:var a=e.return;try{sp(e)}catch(c){at(e,a,c)}}}catch(c){at(e,e.return,c)}if(e===t){Q=null;break}var l=e.sibling;if(l!==null){l.return=e.return,Q=l;break}Q=e.return}}var LA=Math.ceil,kd=rs.ReactCurrentDispatcher,xy=rs.ReactCurrentOwner,Dn=rs.ReactCurrentBatchConfig,Ae=0,wt=null,ht=null,zt=0,gn=0,Aa=ti(0),vt=0,Xl=null,Wi=0,ch=0,wy=0,Nl=null,ln=null,by=0,mo=1/0,Vr=null,_d=!1,op=null,Fs=null,uu=!1,As=null,jd=0,Cl=0,lp=null,Bu=-1,Hu=0;function qt(){return Ae&6?ot():Bu!==-1?Bu:Bu=ot()}function Us(t){return t.mode&1?Ae&2&&zt!==0?zt&-zt:xA.transition!==null?(Hu===0&&(Hu=b1()),Hu):(t=Le,t!==0||(t=window.event,t=t===void 0?16:N1(t.type)),t):1}function lr(t,e,n,r){if(50<Cl)throw Cl=0,lp=null,Error(M(185));zc(t,n,r),(!(Ae&2)||t!==wt)&&(t===wt&&(!(Ae&2)&&(ch|=n),vt===4&&ws(t,zt)),hn(t,r),n===1&&Ae===0&&!(e.mode&1)&&(mo=ot()+500,ih&&ni()))}function hn(t,e){var n=t.callbackNode;xz(t,e);var r=od(t,t===wt?zt:0);if(r===0)n!==null&&px(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&px(n),e===1)t.tag===0?vA(o0.bind(null,t)):G1(o0.bind(null,t)),mA(function(){!(Ae&6)&&ni()}),n=null;else{switch(k1(r)){case 1:n=Gg;break;case 4:n=x1;break;case 16:n=ad;break;case 536870912:n=w1;break;default:n=ad}n=W_(n,M_.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function M_(t,e){if(Bu=-1,Hu=0,Ae&6)throw Error(M(327));var n=t.callbackNode;if(Ba()&&t.callbackNode!==n)return null;var r=od(t,t===wt?zt:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Sd(t,r);else{e=r;var s=Ae;Ae|=2;var i=F_();(wt!==t||zt!==e)&&(Vr=null,mo=ot()+500,$i(t,e));do try{$A();break}catch(l){$_(t,l)}while(!0);ay(),kd.current=i,Ae=s,ht!==null?e=0:(wt=null,zt=0,e=vt)}if(e!==0){if(e===2&&(s=Im(t),s!==0&&(r=s,e=cp(t,s))),e===1)throw n=Xl,$i(t,0),ws(t,r),hn(t,ot()),n;if(e===6)ws(t,r);else{if(s=t.current.alternate,!(r&30)&&!DA(s)&&(e=Sd(t,r),e===2&&(i=Im(t),i!==0&&(r=i,e=cp(t,i))),e===1))throw n=Xl,$i(t,0),ws(t,r),hn(t,ot()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(M(345));case 2:vi(t,ln,Vr);break;case 3:if(ws(t,r),(r&130023424)===r&&(e=by+500-ot(),10<e)){if(od(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){qt(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Bm(vi.bind(null,t,ln,Vr),e);break}vi(t,ln,Vr);break;case 4:if(ws(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var a=31-or(r);i=1<<a,a=e[a],a>s&&(s=a),r&=~i}if(r=s,r=ot()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LA(r/1960))-r,10<r){t.timeoutHandle=Bm(vi.bind(null,t,ln,Vr),r);break}vi(t,ln,Vr);break;case 5:vi(t,ln,Vr);break;default:throw Error(M(329))}}}return hn(t,ot()),t.callbackNode===n?M_.bind(null,t):null}function cp(t,e){var n=Nl;return t.current.memoizedState.isDehydrated&&($i(t,e).flags|=256),t=Sd(t,e),t!==2&&(e=ln,ln=n,e!==null&&up(e)),t}function up(t){ln===null?ln=t:ln.push.apply(ln,t)}function DA(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!cr(i(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ws(t,e){for(e&=~wy,e&=~ch,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-or(e),r=1<<n;t[n]=-1,e&=~r}}function o0(t){if(Ae&6)throw Error(M(327));Ba();var e=od(t,0);if(!(e&1))return hn(t,ot()),null;var n=Sd(t,e);if(t.tag!==0&&n===2){var r=Im(t);r!==0&&(e=r,n=cp(t,r))}if(n===1)throw n=Xl,$i(t,0),ws(t,e),hn(t,ot()),n;if(n===6)throw Error(M(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,vi(t,ln,Vr),hn(t,ot()),null}function ky(t,e){var n=Ae;Ae|=1;try{return t(e)}finally{Ae=n,Ae===0&&(mo=ot()+500,ih&&ni())}}function Ki(t){As!==null&&As.tag===0&&!(Ae&6)&&Ba();var e=Ae;Ae|=1;var n=Dn.transition,r=Le;try{if(Dn.transition=null,Le=1,t)return t()}finally{Le=r,Dn.transition=n,Ae=e,!(Ae&6)&&ni()}}function _y(){gn=Aa.current,Ke(Aa)}function $i(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,fA(n)),ht!==null)for(n=ht.return;n!==null;){var r=n;switch(ry(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hd();break;case 3:ho(),Ke(un),Ke(Ft),hy();break;case 5:dy(r);break;case 4:ho();break;case 13:Ke(Je);break;case 19:Ke(Je);break;case 10:oy(r.type._context);break;case 22:case 23:_y()}n=n.return}if(wt=t,ht=t=Vs(t.current,null),zt=gn=e,vt=0,Xl=null,wy=ch=Wi=0,ln=Nl=null,ji!==null){for(e=0;e<ji.length;e++)if(n=ji[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}ji=null}return t}function $_(t,e){do{var n=ht;try{if(ay(),Fu.current=bd,wd){for(var r=et.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}wd=!1}if(Hi=0,xt=gt=et=null,El=!1,Zl=0,xy.current=null,n===null||n.return===null){vt=1,Xl=e,ht=null;break}e:{var i=t,a=n.return,l=n,c=e;if(e=zt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=qx(a);if(m!==null){m.flags&=-257,Yx(m,a,l,i,e),m.mode&1&&Gx(i,u,e),e=m,c=u;var w=e.updateQueue;if(w===null){var p=new Set;p.add(c),e.updateQueue=p}else w.add(c);break e}else{if(!(e&1)){Gx(i,u,e),jy();break e}c=Error(M(426))}}else if(Ye&&l.mode&1){var b=qx(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Yx(b,a,l,i,e),sy(fo(c,l));break e}}i=c=fo(c,l),vt!==4&&(vt=2),Nl===null?Nl=[i]:Nl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var x=k_(i,c,e);Ux(i,x);break e;case 1:l=c;var y=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Fs===null||!Fs.has(v)))){i.flags|=65536,e&=-e,i.lanes|=e;var k=__(i,l,e);Ux(i,k);break e}}i=i.return}while(i!==null)}V_(n)}catch(_){e=_,ht===n&&n!==null&&(ht=n=n.return);continue}break}while(!0)}function F_(){var t=kd.current;return kd.current=bd,t===null?bd:t}function jy(){(vt===0||vt===3||vt===2)&&(vt=4),wt===null||!(Wi&268435455)&&!(ch&268435455)||ws(wt,zt)}function Sd(t,e){var n=Ae;Ae|=2;var r=F_();(wt!==t||zt!==e)&&(Vr=null,$i(t,e));do try{MA();break}catch(s){$_(t,s)}while(!0);if(ay(),Ae=n,kd.current=r,ht!==null)throw Error(M(261));return wt=null,zt=0,vt}function MA(){for(;ht!==null;)U_(ht)}function $A(){for(;ht!==null&&!uz();)U_(ht)}function U_(t){var e=H_(t.alternate,t,gn);t.memoizedProps=t.pendingProps,e===null?V_(t):ht=e,xy.current=null}function V_(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=RA(n,e),n!==null){n.flags&=32767,ht=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{vt=6,ht=null;return}}else if(n=AA(n,e,gn),n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);vt===0&&(vt=5)}function vi(t,e,n){var r=Le,s=Dn.transition;try{Dn.transition=null,Le=1,FA(t,e,n,r)}finally{Dn.transition=s,Le=r}return null}function FA(t,e,n,r){do Ba();while(As!==null);if(Ae&6)throw Error(M(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(M(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(wz(t,i),t===wt&&(ht=wt=null,zt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||uu||(uu=!0,W_(ad,function(){return Ba(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Dn.transition,Dn.transition=null;var a=Le;Le=1;var l=Ae;Ae|=4,xy.current=null,OA(t,n),L_(n,t),aA(Um),ld=!!Fm,Um=Fm=null,t.current=n,IA(n),dz(),Ae=l,Le=a,Dn.transition=i}else t.current=n;if(uu&&(uu=!1,As=t,jd=s),i=t.pendingLanes,i===0&&(Fs=null),mz(n.stateNode),hn(t,ot()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(_d)throw _d=!1,t=op,op=null,t;return jd&1&&t.tag!==0&&Ba(),i=t.pendingLanes,i&1?t===lp?Cl++:(Cl=0,lp=t):Cl=0,ni(),null}function Ba(){if(As!==null){var t=k1(jd),e=Dn.transition,n=Le;try{if(Dn.transition=null,Le=16>t?16:t,As===null)var r=!1;else{if(t=As,As=null,jd=0,Ae&6)throw Error(M(331));var s=Ae;for(Ae|=4,Q=t.current;Q!==null;){var i=Q,a=i.child;if(Q.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Q=u;Q!==null;){var d=Q;switch(d.tag){case 0:case 11:case 15:Tl(8,d,i)}var h=d.child;if(h!==null)h.return=d,Q=h;else for(;Q!==null;){d=Q;var f=d.sibling,m=d.return;if(P_(d),d===u){Q=null;break}if(f!==null){f.return=m,Q=f;break}Q=m}}}var w=i.alternate;if(w!==null){var p=w.child;if(p!==null){w.child=null;do{var b=p.sibling;p.sibling=null,p=b}while(p!==null)}}Q=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Q=a;else e:for(;Q!==null;){if(i=Q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Tl(9,i,i.return)}var x=i.sibling;if(x!==null){x.return=i.return,Q=x;break e}Q=i.return}}var y=t.current;for(Q=y;Q!==null;){a=Q;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,Q=v;else e:for(a=y;Q!==null;){if(l=Q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:lh(9,l)}}catch(_){at(l,l.return,_)}if(l===a){Q=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,Q=k;break e}Q=l.return}}if(Ae=s,ni(),Er&&typeof Er.onPostCommitFiberRoot=="function")try{Er.onPostCommitFiberRoot(eh,t)}catch{}r=!0}return r}finally{Le=n,Dn.transition=e}}return!1}function l0(t,e,n){e=fo(n,e),e=k_(t,e,1),t=$s(t,e,1),e=qt(),t!==null&&(zc(t,1,e),hn(t,e))}function at(t,e,n){if(t.tag===3)l0(t,t,n);else for(;e!==null;){if(e.tag===3){l0(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fs===null||!Fs.has(r))){t=fo(n,t),t=__(e,t,1),e=$s(e,t,1),t=qt(),e!==null&&(zc(e,1,t),hn(e,t));break}}e=e.return}}function UA(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=qt(),t.pingedLanes|=t.suspendedLanes&n,wt===t&&(zt&n)===n&&(vt===4||vt===3&&(zt&130023424)===zt&&500>ot()-by?$i(t,0):wy|=n),hn(t,e)}function B_(t,e){e===0&&(t.mode&1?(e=eu,eu<<=1,!(eu&130023424)&&(eu=4194304)):e=1);var n=qt();t=Qr(t,e),t!==null&&(zc(t,e,n),hn(t,n))}function VA(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),B_(t,n)}function BA(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(e),B_(t,n)}var H_;H_=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||un.current)cn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return cn=!1,zA(t,e,n);cn=!!(t.flags&131072)}else cn=!1,Ye&&e.flags&1048576&&q1(e,pd,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Vu(t,e),t=e.pendingProps;var s=lo(e,Ft.current);Va(e,n),s=my(null,e,r,t,s,n);var i=py();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,dn(r)?(i=!0,fd(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cy(e),s.updater=oh,e.stateNode=s,s._reactInternals=e,Zm(e,r,t,n),e=Xm(null,e,r,!0,i,n)):(e.tag=0,Ye&&i&&ny(e),Wt(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Vu(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=WA(r),t=er(r,t),s){case 0:e=Jm(null,e,r,t,n);break e;case 1:e=Jx(null,e,r,t,n);break e;case 11:e=Zx(null,e,r,t,n);break e;case 14:e=Qx(null,e,r,er(r.type,t),n);break e}throw Error(M(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:er(r,s),Jm(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:er(r,s),Jx(t,e,r,s,n);case 3:e:{if(T_(e),t===null)throw Error(M(387));r=e.pendingProps,i=e.memoizedState,s=i.element,e_(t,e),vd(e,r,null,n);var a=e.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=fo(Error(M(423)),e),e=Xx(t,e,r,n,s);break e}else if(r!==s){s=fo(Error(M(424)),e),e=Xx(t,e,r,n,s);break e}else for(xn=Ms(e.stateNode.containerInfo.firstChild),wn=e,Ye=!0,ar=null,n=J1(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(co(),r===s){e=Jr(t,e,n);break e}Wt(t,e,r,n)}e=e.child}return e;case 5:return t_(e),t===null&&Gm(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,a=s.children,Vm(r,s)?a=null:i!==null&&Vm(r,i)&&(e.flags|=32),E_(t,e),Wt(t,e,a,n),e.child;case 6:return t===null&&Gm(e),null;case 13:return N_(t,e,n);case 4:return uy(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=uo(e,null,r,n):Wt(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:er(r,s),Zx(t,e,r,s,n);case 7:return Wt(t,e,e.pendingProps,n),e.child;case 8:return Wt(t,e,e.pendingProps.children,n),e.child;case 12:return Wt(t,e,e.pendingProps.children,n),e.child;
vendor: 6,770 bytes, line 40
40case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,a=s.value,Ue(gd,r._currentValue),r._currentValue=a,i!==null)if(cr(i.value,a)){if(i.children===s.children&&!un.current){e=Jr(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=qr(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),qm(i.return,n,e),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),qm(a,n,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Wt(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,Va(e,n),s=$n(s),r=r(s),e.flags|=1,Wt(t,e,r,n),e.child;case 14:return r=e.type,s=er(r,e.pendingProps),s=er(r.type,s),Qx(t,e,r,s,n);case 15:return j_(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:er(r,s),Vu(t,e),e.tag=1,dn(r)?(t=!0,fd(e)):t=!1,Va(e,n),b_(e,r,s),Zm(e,r,s,n),Xm(null,e,r,!0,t,n);case 19:return C_(t,e,n);case 22:return S_(t,e,n)}throw Error(M(156,e.tag))};function W_(t,e){return v1(t,e)}function HA(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(t,e,n,r){return new HA(t,e,n,r)}function Sy(t){return t=t.prototype,!(!t||!t.isReactComponent)}function WA(t){if(typeof t=="function")return Sy(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Hg)return 11;if(t===Wg)return 14}return 2}function Vs(t,e){var n=t.alternate;return n===null?(n=In(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Wu(t,e,n,r,s,i){var a=2;if(r=t,typeof t=="function")Sy(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case ba:return Fi(n.children,s,i,e);case Bg:a=8,s|=8;break;case wm:return t=In(12,n,e,s|2),t.elementType=wm,t.lanes=i,t;case bm:return t=In(13,n,e,s),t.elementType=bm,t.lanes=i,t;case km:return t=In(19,n,e,s),t.elementType=km,t.lanes=i,t;case t1:return uh(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Xk:a=10;break e;case e1:a=9;break e;case Hg:a=11;break e;case Wg:a=14;break e;case ps:a=16,r=null;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=In(a,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function Fi(t,e,n,r){return t=In(7,t,r,e),t.lanes=n,t}function uh(t,e,n,r){return t=In(22,t,r,e),t.elementType=t1,t.lanes=n,t.stateNode={isHidden:!1},t}function vf(t,e,n){return t=In(6,t,null,e),t.lanes=n,t}function xf(t,e,n){return e=In(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function KA(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jh(0),this.expirationTimes=Jh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jh(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Ey(t,e,n,r,s,i,a,l,c){return t=new KA(t,e,n,l,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=In(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cy(i),t}function GA(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function K_(t){if(!t)return Gs;t=t._reactInternals;e:{if(ea(t)!==t||t.tag!==1)throw Error(M(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(dn(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(M(171))}if(t.tag===1){var n=t.type;if(dn(n))return K1(t,n,e)}return e}function G_(t,e,n,r,s,i,a,l,c){return t=Ey(n,r,!0,t,s,i,a,l,c),t.context=K_(null),n=t.current,r=qt(),s=Us(n),i=qr(r,s),i.callback=e??null,$s(n,i,s),t.current.lanes=s,zc(t,s,r),hn(t,r),t}function dh(t,e,n,r){var s=e.current,i=qt(),a=Us(s);return n=K_(n),e.context===null?e.context=n:e.pendingContext=n,e=qr(i,a),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=$s(s,e,a),t!==null&&(lr(t,s,a,i),$u(t,s,a)),a}function Ed(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function c0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ty(t,e){c0(t,e),(t=t.alternate)&&c0(t,e)}function qA(){return null}var q_=typeof reportError=="function"?reportError:function(t){console.error(t)};function Ny(t){this._internalRoot=t}hh.prototype.render=Ny.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(M(409));dh(t,e,null,null)};hh.prototype.unmount=Ny.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ki(function(){dh(null,t,null,null)}),e[Zr]=null}};function hh(t){this._internalRoot=t}hh.prototype.unstable_scheduleHydration=function(t){if(t){var e=S1();t={blockedOn:null,target:t,priority:e};for(var n=0;n<xs.length&&e!==0&&e<xs[n].priority;n++);xs.splice(n,0,t),n===0&&T1(t)}};function Cy(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function fh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function u0(){}function YA(t,e,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Ed(a);i.call(u)}}var a=G_(e,r,t,0,null,!1,!1,"",u0);
vendor: 5,242 bytes, line 40
40return t._reactRootContainer=a,t[Zr]=a.current,Wl(t.nodeType===8?t.parentNode:t),Ki(),a}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=Ed(c);l.call(u)}}var c=Ey(t,0,!1,null,null,!1,!1,"",u0);return t._reactRootContainer=c,t[Zr]=c.current,Wl(t.nodeType===8?t.parentNode:t),Ki(function(){dh(e,c,n,r)}),c}function mh(t,e,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var c=Ed(a);l.call(c)}}dh(e,a,t,s)}else a=YA(n,e,t,s,r);return Ed(a)}_1=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=fl(e.pendingLanes);n!==0&&(qg(e,n|1),hn(e,ot()),!(Ae&6)&&(mo=ot()+500,ni()))}break;case 13:Ki(function(){var r=Qr(t,1);if(r!==null){var s=qt();lr(r,t,1,s)}}),Ty(t,1)}};Yg=function(t){if(t.tag===13){var e=Qr(t,134217728);if(e!==null){var n=qt();lr(e,t,134217728,n)}Ty(t,134217728)}};j1=function(t){if(t.tag===13){var e=Us(t),n=Qr(t,e);if(n!==null){var r=qt();lr(n,t,e,r)}Ty(t,e)}};S1=function(){return Le};E1=function(t,e){var n=Le;try{return Le=t,e()}finally{Le=n}};Rm=function(t,e,n){switch(e){case"input":if(Sm(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=sh(r);if(!s)throw Error(M(90));r1(r),Sm(r,s)}}}break;case"textarea":i1(t,n);break;case"select":e=n.value,e!=null&&Ma(t,!!n.multiple,e,!1)}};h1=ky;f1=Ki;var ZA={usingClientEntryPoint:!1,Events:[Rc,Sa,sh,u1,d1,ky]},Xo={findFiberByHostInstance:_i,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},QA={bundleType:Xo.bundleType,version:Xo.version,rendererPackageName:Xo.rendererPackageName,rendererConfig:Xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rs.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=g1(t),t===null?null:t.stateNode},findFiberByHostInstance:Xo.findFiberByHostInstance||qA,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 du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{eh=du.inject(QA),Er=du}catch{}}jn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ZA;jn.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cy(e))throw Error(M(200));return GA(t,e,null,n)};jn.createRoot=function(t,e){if(!Cy(t))throw Error(M(299));var n=!1,r="",s=q_;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Ey(t,1,!1,null,null,n,!1,r,s),t[Zr]=e.current,Wl(t.nodeType===8?t.parentNode:t),new Ny(e)};jn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(M(188)):(t=Object.keys(t).join(","),Error(M(268,t)));return t=g1(e),t=t===null?null:t.stateNode,t};jn.flushSync=function(t){return Ki(t)};jn.hydrate=function(t,e,n){if(!fh(e))throw Error(M(200));return mh(null,t,e,!0,n)};jn.hydrateRoot=function(t,e,n){if(!Cy(t))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=q_;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=G_(e,null,t,1,n??null,s,!1,i,a),t[Zr]=e.current,Wl(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new hh(e)};jn.render=function(t,e,n){if(!fh(e))throw Error(M(200));return mh(null,t,e,!1,n)};jn.unmountComponentAtNode=function(t){if(!fh(t))throw Error(M(40));return t._reactRootContainer?(Ki(function(){mh(null,null,t,!1,function(){t._reactRootContainer=null,t[Zr]=null})}),!0):!1};jn.unstable_batchedUpdates=ky;jn.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!fh(n))throw Error(M(200));if(t==null||t._reactInternals===void 0)throw Error(M(38));return mh(t,e,n,!1,r)};jn.version="18.3.1-next-f1338f8080-20240426";function Y_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y_)}catch(t){console.error(t)}}Y_(),Yk.exports=jn;var ta=Yk.exports;const Z_=Dk(ta);var Q_,d0=ta;Q_=d0.createRoot,d0.hydrateRoot;const JA=1,XA=1e6;let wf=0;function eR(){return wf=(wf+1)%Number.MAX_SAFE_INTEGER,wf.toString()}const bf=new Map,h0=t=>{if(bf.has(t))return;const e=setTimeout(()=>{bf.delete(t),zl({type:"REMOVE_TOAST",toastId:t})},XA);bf.set(t,e)},tR=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,JA)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;
vendor: 11,401 bytes, line 40
40return n?h0(n):t.toasts.forEach(r=>{h0(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Ku=[];let Gu={toasts:[]};function zl(t){Gu=tR(Gu,t),Ku.forEach(e=>{e(Gu)})}function nR({...t}){const e=eR(),n=s=>zl({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>zl({type:"DISMISS_TOAST",toastId:e});return zl({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function na(){const[t,e]=g.useState(Gu);return g.useEffect(()=>(Ku.push(e),()=>{const n=Ku.indexOf(e);n>-1&&Ku.splice(n,1)}),[t]),{...t,toast:nR,dismiss:n=>zl({type:"DISMISS_TOAST",toastId:n})}}function pe(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function f0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function J_(...t){return e=>{let n=!1;const r=t.map(s=>{const i=f0(s,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():f0(t[s],null)}}}}function nt(...t){return g.useCallback(J_(...t),t)}function ra(t,e=[]){let n=[];function r(i,a){const l=g.createContext(a),c=n.length;n=[...n,a];const u=h=>{var x;const{scope:f,children:m,...w}=h,p=((x=f==null?void 0:f[t])==null?void 0:x[c])||l,b=g.useMemo(()=>w,Object.values(w));return o.jsx(p.Provider,{value:b,children:m})};u.displayName=i+"Provider";function d(h,f){var p;const m=((p=f==null?void 0:f[t])==null?void 0:p[c])||l,w=g.useContext(m);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(a=>g.createContext(a));return function(l){const c=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return s.scopeName=t,[r,rR(s,...e)]}function rR(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function ec(t){const e=iR(t),n=g.forwardRef((r,s)=>{const{children:i,...a}=r,l=g.Children.toArray(i),c=l.find(oR);if(c){const u=c.props.children,d=l.map(h=>h===c?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:h);return o.jsx(e,{...a,ref:s,children:g.isValidElement(u)?g.cloneElement(u,void 0,d):null})}return o.jsx(e,{...a,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var sR=ec("Slot");function iR(t){const e=g.forwardRef((n,r)=>{const{children:s,...i}=n;if(g.isValidElement(s)){const a=cR(s),l=lR(i,s.props);return s.type!==g.Fragment&&(l.ref=r?J_(r,a):a),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var X_=Symbol("radix.slottable");function aR(t){const e=({children:n})=>o.jsx(o.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=X_,e}function oR(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===X_}function lR(t,e){const n={...e};for(const r in e){const s=t[r],i=e[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function cR(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function zy(t){const e=t+"CollectionProvider",[n,r]=ra(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:b,children:x}=p,y=B.useRef(null),v=B.useRef(new Map).current;return o.jsx(s,{scope:b,itemMap:v,collectionRef:y,children:x})};a.displayName=e;const l=t+"CollectionSlot",c=ec(l),u=B.forwardRef((p,b)=>{const{scope:x,children:y}=p,v=i(l,x),k=nt(b,v.collectionRef);return o.jsx(c,{ref:k,children:y})});u.displayName=l;const d=t+"CollectionItemSlot",h="data-radix-collection-item",f=ec(d),m=B.forwardRef((p,b)=>{const{scope:x,children:y,...v}=p,k=B.useRef(null),_=nt(b,k),j=i(d,x);return B.useEffect(()=>(j.itemMap.set(k,{ref:k,...v}),()=>void j.itemMap.delete(k))),o.jsx(f,{[h]:"",ref:_,children:y})});m.displayName=d;function w(p){const b=i(t+"CollectionConsumer",p);return B.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const v=Array.from(y.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((j,E)=>v.indexOf(j.ref.current)-v.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},w,r]}var uR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=uR.reduce((t,e)=>{const n=ec(`Primitive.${e}`),r=g.forwardRef((s,i)=>{const{asChild:a,...l}=s,c=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function ej(t,e){t&&ta.flushSync(()=>t.dispatchEvent(e))}function Un(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function dR(t,e=globalThis==null?void 0:globalThis.document){const n=Un(t);g.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var hR="DismissableLayer",dp="dismissableLayer.update",fR="dismissableLayer.pointerDownOutside",mR="dismissableLayer.focusOutside",m0,tj=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ph=g.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=t,u=g.useContext(tj),[d,h]=g.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),w=nt(e,E=>h(E)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(b),y=d?p.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=x,_=gR(E=>{const S=E.target,A=[...u.branches].some(z=>z.contains(S));!k||A||(s==null||s(E),a==null||a(E),E.defaultPrevented||l==null||l())},f),j=yR(E=>{const S=E.target;[...u.branches].some(z=>z.contains(S))||(i==null||i(E),a==null||a(E),E.defaultPrevented||l==null||l())},f);return dR(E=>{y===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},f),g.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(m0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),p0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=m0)}},[d,f,n,u]),g.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),p0())},[d,u]),g.useEffect(()=>{const E=()=>m({});return document.addEventListener(dp,E),()=>document.removeEventListener(dp,E)},[]),o.jsx(Ce.div,{...c,ref:w,style:{pointerEvents:v?k?"auto":"none":void 0,...t.style},onFocusCapture:pe(t.onFocusCapture,j.onFocusCapture),onBlurCapture:pe(t.onBlurCapture,j.onBlurCapture),onPointerDownCapture:pe(t.onPointerDownCapture,_.onPointerDownCapture)})});ph.displayName=hR;var pR="DismissableLayerBranch",nj=g.forwardRef((t,e)=>{const n=g.useContext(tj),r=g.useRef(null),s=nt(e,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx(Ce.div,{...t,ref:s})});nj.displayName=pR;function gR(t,e=globalThis==null?void 0:globalThis.document){const n=Un(t),r=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){rj(fR,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function yR(t,e=globalThis==null?void 0:globalThis.document){const n=Un(t),r=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!r.current&&rj(mR,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function p0(){const t=new CustomEvent(dp);document.dispatchEvent(t)}function rj(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?ej(s,i):s.dispatchEvent(i)}var vR=ph,xR=nj,Rt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},wR="Portal",Ay=g.forwardRef((t,e)=>{var l;const{container:n,...r}=t,[s,i]=g.useState(!1);Rt(()=>i(!0),[]);const a=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Z_.createPortal(o.jsx(Ce.div,{...r,ref:e}),a):null});Ay.displayName=wR;function bR(t,e){return g.useReducer((n,r)=>e[n][r]??n,t)}var gh=t=>{const{present:e,children:n}=t,r=kR(e),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=nt(r.ref,_R(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};gh.displayName="Presence";function kR(t){const[e,n]=g.useState(),r=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),a=t?"mounted":"unmounted",[l,c]=bR(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=hu(r.current);i.current=l==="mounted"?u:"none"},[l]),Rt(()=>{const u=r.current,d=s.current;if(d!==t){const f=i.current,m=hu(u);t?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),Rt(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,h=m=>{const p=hu(r.current).includes(m.animationName);if(m.target===e&&p&&(c("ANIMATION_END"),!s.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=m=>{m.target===e&&(i.current=hu(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function hu(t){return(t==null?void 0:t.animationName)||"none"}function _R(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.
40isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var jR=$g[" useInsertionEffect ".trim().toString()]||Rt;function tc({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,a]=SR({defaultProp:e,onChange:n}),l=t!==void 0,c=l?t:s;{const d=g.useRef(t!==void 0);g.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"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.`),d.current=l},[l,r])}const u=g.useCallback(d=>{var h;if(l){const f=ER(d)?d(t):d;f!==t&&((h=a.current)==null||h.call(a,f))}else i(d)},[l,t,i,a]);return[c,u]}function SR({defaultProp:t,onChange:e}){const[n,r]=g.useState(t),s=g.useRef(n),i=g.useRef(e);return jR(()=>{i.current=e},[e]),g.useEffect(()=>{var a;s.current!==n&&((a=i.current)==null||a.call(i,n),s.current=n)},[n,s]),[n,r,i]}function ER(t){return typeof t=="function"}var sj=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"}),TR="VisuallyHidden",yh=g.forwardRef((t,e)=>o.jsx(Ce.span,{...t,ref:e,style:{...sj,...t.style}}));yh.displayName=TR;var NR=yh,Ry="ToastProvider",[Py,CR,zR]=zy("Toast"),[ij,b8]=ra("Toast",[zR]),[AR,vh]=ij(Ry),aj=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=t,[l,c]=g.useState(null),[u,d]=g.useState(0),h=g.useRef(!1),f=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ry}\`. Expected non-empty \`string\`.`),o.jsx(Py.Provider,{scope:e,children:o.jsx(AR,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:g.useCallback(()=>d(m=>m+1),[]),onToastRemove:g.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:a})})};aj.displayName=Ry;var oj="ToastViewport",RR=["F8"],hp="toast.viewportPause",fp="toast.viewportResume",lj=g.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=RR,label:s="Notifications ({hotkey})",...i}=t,a=vh(oj,n),l=CR(n),c=g.useRef(null),u=g.useRef(null),d=g.useRef(null),h=g.useRef(null),f=nt(e,h,a.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;g.useEffect(()=>{const b=x=>{var v;r.length!==0&&r.every(k=>x[k]||x.code===k)&&((v=h.current)==null||v.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),g.useEffect(()=>{const b=c.current,x=h.current;if(w&&b&&x){const y=()=>{if(!a.isClosePausedRef.current){const j=new CustomEvent(hp);x.dispatchEvent(j),a.isClosePausedRef.current=!0}},v=()=>{if(a.isClosePausedRef.current){const j=new CustomEvent(fp);x.dispatchEvent(j),a.isClosePausedRef.current=!1}},k=j=>{!b.contains(j.relatedTarget)&&v()},_=()=>{b.contains(document.activeElement)||v()};return b.addEventListener("focusin",y),b.addEventListener("focusout",k),b.addEventListener("pointermove",y),b.addEventListener("pointerleave",_),window.addEventListener("blur",y),window.addEventListener("focus",v),()=>{b.removeEventListener("focusin",y),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",y),b.removeEventListener("pointerleave",_),window.removeEventListener("blur",y),window.removeEventListener("focus",v)}}},[w,a.isClosePausedRef]);const p=g.useCallback(({tabbingDirection:b})=>{const y=l().map(v=>{const k=v.ref.current,_=[k,...WR(k)];return b==="forwards"?_:_.reverse()});return(b==="forwards"?y.reverse():y).flat()},[l]);return g.useEffect(()=>{const b=h.current;if(b){const x=y=>{var _,j,E;const v=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!v){const S=document.activeElement,A=y.shiftKey;if(y.target===b&&A){(_=u.current)==null||_.focus();return}const L=p({tabbingDirection:A?"backwards":"forwards"}),P=L.findIndex(O=>O===S);kf(L.slice(P+1))?y.preventDefault():A?(j=u.current)==null||j.focus():(E=d.current)==null||E.focus()}};return b.addEventListener("keydown",x),()=>b.removeEventListener("keydown",x)}},[l,p]),o.jsxs(xR,{ref:c,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&o.jsx(mp,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});kf(b)}}),o.jsx(Py.Slot,{scope:n,children:o.jsx(Ce.ol,{tabIndex:-1,...i,ref:f})}),w&&o.jsx(mp,{ref:d,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});kf(b)}})]})});lj.displayName=oj;var cj="ToastFocusProxy",mp=g.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=vh(cj,n);return o.jsx(yh,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});mp.displayName=cj;var Oc="Toast",PR="toast.swipeStart",OR="toast.swipeMove",IR="toast.swipeCancel",LR="toast.swipeEnd",uj=g.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...a}=t,[l,c]=tc({prop:r,defaultProp:s??!0,onChange:i,caller:Oc});return o.jsx(gh,{present:n||l,children:o.jsx($R,{open:l,...a,ref:e,onClose:()=>c(!1),onPause:Un(t.onPause),onResume:Un(t.onResume),onSwipeStart:pe(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(t.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:pe(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(t.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});uj.displayName=Oc;var[DR,MR]=ij(Oc,{onClose(){}}),$R=g.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...w}=t,p=vh(Oc,n),[b,x]=g.useState(null),y=nt(e,O=>x(O)),v=g.useRef(null),k=g.useRef(null),_=s||p.duration,j=g.useRef(0),E=g.useRef(_),S=g.useRef(0),{onToastAdd:A,onToastRemove:z}=p,C=Un(()=>{var Z;(b==null?void 0:b.contains(document.activeElement))&&((Z=p.viewport)==null||Z.focus()),a()}),L=g.useCallback(O=>
40{!O||O===1/0||(window.clearTimeout(S.current),j.current=new Date().getTime(),S.current=window.setTimeout(C,O))},[C]);g.useEffect(()=>{const O=p.viewport;if(O){const Z=()=>{L(E.current),u==null||u()},W=()=>{const H=new Date().getTime()-j.current;E.current=E.current-H,window.clearTimeout(S.current),c==null||c()};return O.addEventListener(hp,W),O.addEventListener(fp,Z),()=>{O.removeEventListener(hp,W),O.removeEventListener(fp,Z)}}},[p.viewport,_,c,u,L]),g.useEffect(()=>{i&&!p.isClosePausedRef.current&&L(_)},[i,_,p.isClosePausedRef,L]),g.useEffect(()=>(A(),()=>z()),[A,z]);const P=g.useMemo(()=>b?yj(b):null,[b]);return p.viewport?o.jsxs(o.Fragment,{children:[P&&o.jsx(FR,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:P}),o.jsx(DR,{scope:n,onClose:C,children:ta.createPortal(o.jsx(Py.ItemSlot,{scope:n,children:o.jsx(vR,{asChild:!0,onEscapeKeyDown:pe(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||C(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(Ce.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...w,ref:y,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:pe(t.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:pe(t.onPointerDown,O=>{O.button===0&&(v.current={x:O.clientX,y:O.clientY})}),onPointerMove:pe(t.onPointerMove,O=>{if(!v.current)return;const Z=O.clientX-v.current.x,W=O.clientY-v.current.y,H=!!k.current,R=["left","right"].includes(p.swipeDirection),I=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,V=R?I(0,Z):0,G=R?0:I(0,W),te=O.pointerType==="touch"?10:2,X={x:V,y:G},ue={originalEvent:O,delta:X};H?(k.current=X,fu(OR,h,ue,{discrete:!1})):g0(X,p.swipeDirection,te)?(k.current=X,fu(PR,d,ue,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(Z)>te||Math.abs(W)>te)&&(v.current=null)}),onPointerUp:pe(t.onPointerUp,O=>{const Z=k.current,W=O.target;if(W.hasPointerCapture(O.pointerId)&&W.releasePointerCapture(O.pointerId),k.current=null,v.current=null,Z){const H=O.currentTarget,R={originalEvent:O,delta:Z};g0(Z,p.swipeDirection,p.swipeThreshold)?fu(LR,m,R,{discrete:!0}):fu(IR,f,R,{discrete:!0}),H.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),FR=t=>{const{__scopeToast:e,children:n,...r}=t,s=vh(Oc,e),[i,a]=g.useState(!1),[l,c]=g.useState(!1);return BR(()=>a(!0)),g.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(Ay,{asChild:!0,children:o.jsx(yh,{...r,children:i&&o.jsxs(o.Fragment,{children:[s.label," ",n]})})})},UR="ToastTitle",dj=g.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return o.jsx(Ce.div,{...r,ref:e})});dj.displayName=UR;var VR="ToastDescription",hj=g.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return o.jsx(Ce.div,{...r,ref:e})});hj.displayName=VR;var fj="ToastAction",mj=g.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?o.jsx(gj,{altText:n,asChild:!0,children:o.jsx(Oy,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${fj}\`. Expected non-empty \`string\`.`),null)});mj.displayName=fj;var pj="ToastClose",Oy=g.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=MR(pj,n);return o.jsx(gj,{asChild:!0,children:o.jsx(Ce.button,{type:"button",...r,ref:e,onClick:pe(t.onClick,s.onClose)})})});Oy.displayName=pj;var gj=g.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return o.jsx(Ce.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function yj(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),HR(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&e.push(a)}else e.push(...yj(r))}}),e}function fu(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?ej(s,i):s.dispatchEvent(i)}var g0=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};function BR(t=()=>{}){const e=Un(t);Rt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function HR(t){return t.nodeType===t.ELEMENT_NODE}function WR(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function kf(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var KR=aj,vj=lj,xj=uj,wj=dj,bj=hj,kj=mj,_j=Oy;function jj(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=jj(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Sj(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=jj(t))&&(r&&(r+=" "),r+=e);return r}const y0=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,v0=Sj,Iy=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return v0(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=e,a=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=i==null?void 0:i[u];if(d===null)return null;const f=y0(d)||y0(h);return s[u][f]}),l=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...m}=d;return Object.entries(m).every(w=>{let[p,b]=w;return Array.isArray(b)?b.includes({...i,...l}[p]):{...i,...l}[p]===b})?[...u,h,f]:u},[]);return v0(t,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.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 GR=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ej=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.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 qR={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.462.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 YR=g.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},c)=>g.createElement("svg",{ref:c,...qR,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:Ej("lucide",s),...l},[...a.map(([u,d])=>g.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.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 we=(t,e)=>{const n=g.forwardRef(({className:r,...s},i)=>g.createElement(YR,{ref:i,iconNode:e,className:Ej(`lucide-${GR(t)}`,r),...s}));return n.displayName=`${t}`,n};/** 61 * @license lucide-react v0.462.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 pp=we("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.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 De=we("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 71 * @license lucide-react v0.462.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 Tj=we("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 76 * @license lucide-react v0.462.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 ZR=we("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]);/** 81 * @license lucide-react v0.462.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 QR=we("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 86 * @license lucide-react v0.462.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 JR=we("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 91 * @license lucide-react v0.462.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 x0=we("CalendarDays",[["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"}]]);/** 96 * @license lucide-react v0.462.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 Gi=we("Calendar",[["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"}]]);/** 101 * @license lucide-react v0.462.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 XR=we("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 106 * @license lucide-react v0.462.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 an=we("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 111 * @license lucide-react v0.462.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 nc=we("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 116 * @license lucide-react v0.462.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 Nj=we("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 121 * @license lucide-react v0.462.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 Cj=we("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 126 * @license lucide-react v0.462.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=we("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 131 * @license lucide-react v0.462.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 tP=we("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 136 * @license lucide-react v0.462.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 zj=we("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 141 * @license lucide-react v0.462.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 nP=we("Copy",[["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"}]]);/** 146 * @license lucide-react v0.462.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 Aj=we("Download",[["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"}]]);/** 151 * @license lucide-react v0.462.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 rP=we("ExternalLink",[["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"}]]);/** 156 * @license lucide-react v0.462.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 Rj=we("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 161 * @license lucide-react v0.462.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 sP=we("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 166 * @license lucide-react v0.462.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 iP=we("Heart",[["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"}]]);/** 171 * @license lucide-react v0.462.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 Td=we("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 176 * @license lucide-react v0.462.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 Ic=we("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** 181 * @license lucide-react v0.462.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 Pj=we("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 186 * @license lucide-react v0.462.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 aP=we("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 191 * @license lucide-react v0.462.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 rc=we("Mail",[["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"}]]);/** 196 * @license lucide-react v0.462.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 Ly=we("MapPin",[["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"}]]);/** 201 * @license lucide-react v0.462.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 oP=we("Menu",[["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"}]]);/** 206 * @license lucide-react v0.462.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 xh=we("Mic",[["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"}]]);/** 211 * @license lucide-react v0.462.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 lP=we("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 216 * @license lucide-react v0.462.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 Oj=we("Phone",[["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"}]]);/** 221 * @license lucide-react v0.462.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 cP=we("Recycle",[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]]);/** 226 * @license lucide-react v0.462.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 uP=we("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 231 * @license lucide-react v0.462.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 dP=we("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 236 * @license lucide-react v0.462.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 Lc=we("Sparkles",[["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"}]]);/** 241 * @license lucide-react v0.462.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 hP=we("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 246 * @license lucide-react v0.462.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 wh=we("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 251 * @license lucide-react v0.462.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 Dy=we("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** 256 * @license lucide-react v0.462.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 My=we("Users",[["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"}]]);/** 261 * @license lucide-react v0.462.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 $y=we("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 265
265],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Fy="-",fP=t=>{const e=pP(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{const l=a.split(Fy);return l[0]===""&&l.length!==1&&l.shift(),Ij(l,e)||mP(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},Ij=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?Ij(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(Fy);return(a=e.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},w0=/^\[(.+)\]$/,mP=t=>{if(w0.test(t)){const e=w0.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},pP=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return yP(Object.entries(t.classGroups),n).forEach(([i,a])=>{gp(a,r,i,e)}),r},gp=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:b0(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(gP(s)){gp(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{gp(a,b0(e,i),n,r)})})},b0=(t,e)=>{let n=t;return e.split(Fy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},gP=t=>t.isThemeGetter,yP=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,l])=>[e+a,l])):i);return[n,s]}):t,vP=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},Lj="!",xP=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,a=l=>{const c=[];let u=0,d=0,h;for(let b=0;b<l.length;b++){let x=l[b];if(u===0){if(x===s&&(r||l.slice(b,b+i)===e)){c.push(l.slice(d,b)),d=b+i;continue}if(x==="/"){h=b;continue}}x==="["?u++:x==="]"&&u--}const f=c.length===0?l:l.substring(d),m=f.startsWith(Lj),w=m?f.substring(1):f,p=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:p}};return n?l=>n({className:l,parseClassName:a}):a},wP=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},bP=t=>({cache:vP(t.cacheSize),parseClassName:xP(t),...fP(t)}),kP=/\s+/,_P=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],a=t.trim().split(kP);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let w=!!m,p=r(w?f.substring(0,m):f);if(!p){if(!w){l=u+(l.length>0?" "+l:l);continue}if(p=r(f),!p){l=u+(l.length>0?" "+l:l);continue}w=!1}const b=wP(d).join(":"),x=h?b+Lj:b,y=x+p;if(i.includes(y))continue;i.push(y);const v=s(p,w);for(let k=0;k<v.length;++k){const _=v[k];i.push(x+_)}l=u+(l.length>0?" "+l:l)}return l};function jP(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Dj(e))&&(r&&(r+=" "),r+=n);return r}const Dj=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Dj(t[r]))&&(n&&(n+=" "),n+=e);return n};function SP(t,...e){let n,r,s,i=a;function a(c){const u=e.reduce((d,h)=>h(d),t());return n=bP(u),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=_P(c,n);return s(c,d),d}return function(){return i(jP.apply(null,arguments))}}const Be=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Mj=/^\[(?:([a-z-]+):)?(.+)\]$/i,EP=/^\d+\/\d+$/,TP=new Set(["px","full","screen"]),NP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CP=/\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$/,zP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,AP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=t=>Ha(t)||TP.has(t)||EP.test(t),cs=t=>Eo(t,"length",FP),Ha=t=>!!t&&!Number.isNaN(Number(t)),_f=t=>Eo(t,"number",Ha),el=t=>!!t&&Number.isInteger(Number(t)),PP=t=>t.endsWith("%")&&Ha(t.slice(0,-1)),xe=t=>Mj.test(t),us=t=>NP.test(t),OP=new Set(["length","size","percentage"]),IP=t=>Eo(t,OP,$j),LP=t=>Eo(t,"position",$j),DP=new Set(["image","url"]),MP=t=>Eo(t,DP,VP),$P=t=>Eo(t,"",UP),tl=()=>!0,Eo=(t,e,n)=>{const r=Mj.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},FP=t=>CP.test(t)&&!zP.test(t),$j=()=>!1,UP=t=>AP.test(t),VP=t=>RP.test(t),BP=()=>{const t=Be("colors"),e=Be("spacing"),n=Be("blur"),r=Be("brightness"),s=Be("borderColor"),i=Be("borderRadius"),a=Be("borderSpacing"),l=Be("borderWidth"),c=Be("contrast"),u=Be("grayscale"),d=Be("hueRotate"),h=Be("invert"),f=Be("gap"),m=Be("gradientColorStops"),w=Be("gradientColorStopPositions"),p=Be("inset"),b=Be("margin"),x=Be("opacity"),y=Be("padding"),v=Be("saturate"),k=Be("scale"),_=Be("sepia"),j=Be("skew"),E=Be("space"),S=Be("translate"),A=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",xe,e],L=()=>[xe,e],P=()=>["",$r,cs],O=()=>["auto",Ha,xe],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",xe],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Ha,xe];return{cacheSize:500,separator:":",theme:{colors:[tl],spacing:[$r,cs],blur:["none","",us,xe],brightness:G(),borderColor:[t],borderRadius:["n
265one","","full",us,xe],borderSpacing:L(),borderWidth:P(),contrast:G(),grayscale:I(),hueRotate:G(),invert:I(),gap:L(),gradientColorStops:[t],gradientColorStopPositions:[PP,cs],inset:C(),margin:C(),opacity:G(),padding:L(),saturate:G(),scale:G(),sepia:I(),skew:G(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",xe]}],container:["container"],columns:[{columns:[us]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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"],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:[...Z(),xe]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",el,xe]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xe]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",el,xe]}],"grid-cols":[{"grid-cols":[tl]}],"col-start-end":[{col:["auto",{span:["full",el,xe]},xe]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[tl]}],"row-start-end":[{row:["auto",{span:[el,xe]},xe]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xe]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xe,e]}],"min-w":[{"min-w":[xe,e,"min","max","fit"]}],"max-w":[{"max-w":[xe,e,"none","full","min","max","fit","prose",{screen:[us]},us]}],h:[{h:[xe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",us,cs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_f]}],"font-family":[{font:[tl]}],"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:["tighter","tight","normal","wide","wider","widest",xe]}],"line-clamp":[{"line-clamp":["none",Ha,_f]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$r,xe]}],"list-image":[{"list-image":["none",xe]}],"list-style-type":[{list:["none","disc","decimal",xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$r,cs]}],"underline-offset":[{"underline-offset":["auto",$r,xe]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),LP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",IP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},MP]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}
vendor: 5,180 bytes, line 265
265],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[$r,xe]}],"outline-w":[{outline:[$r,cs]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[$r,cs]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",us,$P]}],"shadow-color":[{shadow:[tl]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",us,xe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xe]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",xe]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[el,xe]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",xe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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"]}
vendor: 4,647 bytes, line 265
265],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",xe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[$r,cs,_f]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},HP=SP(BP);function Ve(...t){return HP(Sj(t))}const WP=KR,Fj=g.forwardRef(({className:t,...e},n)=>o.jsx(vj,{ref:n,className:Ve("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]",t),...e}));Fj.displayName=vj.displayName;const KP=Iy("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"}}),Uj=g.forwardRef(({className:t,variant:e,...n},r)=>o.jsx(xj,{ref:r,className:Ve(KP({variant:e}),t),...n}));Uj.displayName=xj.displayName;const GP=g.forwardRef(({className:t,...e},n)=>o.jsx(kj,{ref:n,className:Ve("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));GP.displayName=kj.displayName;const Vj=g.forwardRef(({className:t,...e},n)=>o.jsx(_j,{ref:n,className:Ve("absolute right-2 top-2 rounded-md p-1 text-foreground
265/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:o.jsx($y,{className:"h-4 w-4"})}));Vj.displayName=_j.displayName;const Bj=g.forwardRef(({className:t,...e},n)=>o.jsx(wj,{ref:n,className:Ve("text-sm font-semibold",t),...e}));Bj.displayName=wj.displayName;const Hj=g.forwardRef(({className:t,...e},n)=>o.jsx(bj,{ref:n,className:Ve("text-sm opacity-90",t),...e}));Hj.displayName=bj.displayName;function qP(){const{toasts:t}=na();return o.jsxs(WP,{children:[t.map(function({id:e,title:n,description:r,action:s,...i}){return o.jsxs(Uj,{...i,children:[o.jsxs("div",{className:"grid gap-1",children:[n&&o.jsx(Bj,{children:n}),r&&o.jsx(Hj,{children:r})]}),s,o.jsx(Vj,{})]},e)}),o.jsx(Fj,{})]})}var k0=["light","dark"],YP="(prefers-color-scheme: dark)",ZP=g.createContext(void 0),QP={setTheme:t=>{},themes:[]},JP=()=>{var t;return(t=g.useContext(ZP))!=null?t:QP};g.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:a,attrs:l,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?k0.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(w,p=!1,b=!0)=>{let x=a?a[w]:w,y=p?w+"|| ''":`'${x}'`,v="";return s&&b&&!p&&k0.includes(w)&&(v+=`d.style.colorScheme = '${w}';`),n==="class"?p||x?v+=`c.add(${y})`:v+="null":x&&(v+=`d[s](n,${y})`),v},m=t?`!function(){${d}${f(t)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${YP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return g.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var XP=t=>{switch(t){case"success":return n2;case"info":return s2;case"warning":return r2;case"error":return i2;default:return null}},e2=Array(12).fill(0),t2=({visible:t,className:e})=>B.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},B.createElement("div",{className:"sonner-spinner"},e2.map((n,r)=>B.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),n2=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),r2=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),s2=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),i2=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),a2=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},B.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),B.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),o2=()=>{let[t,e]=B.useState(document.hidden);return B.useEffect(()=>{let n=()=>{e(document.hidden)};
265return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},yp=1,l2=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:yp++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:n}),{...l,...t,id:s,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,i,a=r.then(async c=>{if(i=["resolve",c],B.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(u2(c)&&!c.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${c.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${c.status}`):e.description;this.create({id:n,type:"error",message:u,description:d})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(c):e.success,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(c):e.error,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=e.finally)==null||c.call(e)}),l=()=>new Promise((c,u)=>a.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||yp++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},sn=new l2,c2=(t,e)=>{let n=(e==null?void 0:e.id)||yp++;return sn.addToast({title:t,...e,id:n}),n},u2=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",d2=c2,h2=()=>sn.toasts,f2=()=>sn.getActiveToasts();Object.assign(d2,{success:sn.success,info:sn.info,warning:sn.warning,error:sn.error,custom:sn.custom,message:sn.message,promise:sn.promise,dismiss:sn.dismiss,loading:sn.loading},{getHistory:h2,getToasts:f2});function m2(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}m2(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
265left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
265:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
265--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)} 266`);function mu(t){return t.label!==void 0}var p2=3,g2="32px",y2="16px",_0=4e3,v2=356,x2=14,w2=20,b2=200;function qn(...t){return t.filter(Boolean).join(" ")}function k2(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var _2=t=>{var e,n,r,s,i,a,l,c,u,d,h;let{invert:f,toast:m,unstyled:w,interacting:p,setHeights:b,visibleToasts:x,heights:y,index:v,toasts:k,expanded:_,removeToast:j,defaultRichColors:E,closeButton:S,style:A,cancelButtonStyle:z,actionButtonStyle:C,className:L="",descriptionClassName:P="",duration:O,position:Z,gap:W,loadingIcon:H,expandByDefault:R,classNames:I,icons:V,
266closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:te}=t,[X,ue]=B.useState(null),[U,se]=B.useState(null),[D,ne]=B.useState(!1),[ze,be]=B.useState(!1),[je,Ee]=B.useState(!1),[Ze,bt]=B.useState(!1),[Ut,En]=B.useState(!1),[Hn,Tn]=B.useState(0),[Wn,oi]=B.useState(0),as=B.useRef(m.duration||O||_0),Mo=B.useRef(null),Lr=B.useRef(null),$o=v===0,li=v+1<=x,ft=m.type,kt=m.dismissible!==!1,Fo=m.className||"",Kc=m.descriptionClassName||"",ci=B.useMemo(()=>y.findIndex(me=>me.toastId===m.id)||0,[y,m.id]),Uo=B.useMemo(()=>{var me;return(me=m.closeButton)!=null?me:S},[m.closeButton,S]),Vo=B.useMemo(()=>m.duration||O||_0,[m.duration,O]),os=B.useRef(0),Kn=B.useRef(0),Nn=B.useRef(0),fn=B.useRef(null),[Bo,Ho]=Z.split("-"),Gc=B.useMemo(()=>y.reduce((me,he,Oe)=>Oe>=ci?me:me+he.height,0),[y,ci]),ui=o2(),sa=m.invert||f,Wo=ft==="loading";Kn.current=B.useMemo(()=>ci*W+Gc,[ci,Gc]),B.useEffect(()=>{as.current=Vo},[Vo]),B.useEffect(()=>{ne(!0)},[]),B.useEffect(()=>{let me=Lr.current;if(me){let he=me.getBoundingClientRect().height;return oi(he),b(Oe=>[{toastId:m.id,height:he,position:m.position},...Oe]),()=>b(Oe=>Oe.filter(mn=>mn.toastId!==m.id))}},[b,m.id]),B.useLayoutEffect(()=>{if(!D)return;let me=Lr.current,he=me.style.height;me.style.height="auto";let Oe=me.getBoundingClientRect().height;me.style.height=he,oi(Oe),b(mn=>mn.find(en=>en.toastId===m.id)?mn.map(en=>en.toastId===m.id?{...en,height:Oe}:en):[{toastId:m.id,height:Oe,position:m.position},...mn])},[D,m.title,m.description,b,m.id]);let Xt=B.useCallback(()=>{be(!0),Tn(Kn.current),b(me=>me.filter(he=>he.toastId!==m.id)),setTimeout(()=>{j(m)},b2)},[m,j,b,Kn]);B.useEffect(()=>{if(m.promise&&ft==="loading"||m.duration===1/0||m.type==="loading")return;let me;return _||p||te&&ui?(()=>{if(Nn.current<os.current){let he=new Date().getTime()-os.current;as.current=as.current-he}Nn.current=new Date().getTime()})():as.current!==1/0&&(os.current=new Date().getTime(),me=setTimeout(()=>{var he;(he=m.onAutoClose)==null||he.call(m,m),Xt()},as.current)),()=>clearTimeout(me)},[_,p,m,ft,te,ui,Xt]),B.useEffect(()=>{m.delete&&Xt()},[Xt,m.delete]);function Bh(){var me,he,Oe;return V!=null&&V.loading?B.createElement("div",{className:qn(I==null?void 0:I.loader,(me=m==null?void 0:m.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":ft==="loading"},V.loading):H?B.createElement("div",{className:qn(I==null?void 0:I.loader,(he=m==null?void 0:m.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":ft==="loading"},H):B.createElement(t2,{className:qn(I==null?void 0:I.loader,(Oe=m==null?void 0:m.classNames)==null?void 0:Oe.loader),visible:ft==="loading"})}return B.createElement("li",{tabIndex:0,ref:Lr,className:qn(L,Fo,I==null?void 0:I.toast,(e=m==null?void 0:m.classNames)==null?void 0:e.toast,I==null?void 0:I.default,I==null?void 0:I[ft],(n=m==null?void 0:m.classNames)==null?void 0:n[ft]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:E,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":D,"data-promise":!!m.promise,"data-swiped":Ut,"data-removed":ze,"data-visible":li,"data-y-position":Bo,"data-x-position":Ho,"data-index":v,"data-front":$o,"data-swiping":je,"data-dismissible":kt,"data-type":ft,"data-invert":sa,"data-swipe-out":Ze,"data-swipe-direction":U,"data-expanded":!!(_||R&&D),style:{"--index":v,"--toasts-before":v,"--z-index":k.length-v,"--offset":`${ze?Hn:Kn.current}px`,"--initial-height":R?"auto":`${Wn}px`,...A,...m.style},onDragEnd:()=>{Ee(!1),ue(null),fn.current=null},onPointerDown:me=>{Wo||!kt||(Mo.current=new Date,Tn(Kn.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(Ee(!0),fn.current={x:me.clientX,y:me.clientY}))},onPointerUp:()=>{var me,he,Oe,mn;if(Ze||!kt)return;fn.current=null;let en=Number(((me=Lr.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((he=Lr.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),hr=new Date().getTime()-((Oe=Mo.current)==null?void 0:Oe.getTime()),tn=X==="x"?en:Cn,fr=Math.abs(tn)/hr;if(Math.abs(tn)>=w2||fr>.11){Tn(Kn.current),(mn=m.onDismiss)==null||mn.call(m,m),se(X==="x"?en>0?"right":"left":Cn>0?"down":"up"),Xt(),bt(!0),En(!1);return}Ee(!1),ue(null)},onPointerMove:me=>{var he,Oe,mn,en;if(!fn.current||!kt||((he=window.getSelection())==null?void 0:he.toString().length)>0)return;let Cn=me.clientY-fn.current.y,hr=me.clientX-fn.current.x,tn=(Oe=t.swipeDirections)!=null?Oe:k2(Z);!X&&(Math.abs(hr)>1||Math.abs(Cn)>1)&&ue(Math.abs(hr)>Math.abs(Cn)?"x":"y");let fr={x:0,y:0};X==="y"?(tn.includes("top")||tn.includes("bottom"))&&(tn.includes("top")&&Cn<0||tn.includes("bottom")&&Cn>0)&&(fr.y=Cn):X==="x"&&(tn.includes("left")||tn.includes("right"))&&(tn.includes("left")&&hr<0||tn.includes("right")&&hr>0)&&(fr.x=hr),(Math.abs(fr.x)>0||Math.abs(fr.y)>0)&&En(!0),(mn=Lr.current)==null||mn.style.setProperty("--swipe-amount-x",`${fr.x}px`),(en=Lr.current)==null||en.style.setProperty("--swipe-amount-y",`${fr.y}px`)}},Uo&&!m.jsx?B.createElement("button",{"aria-label":G,"data-disabled":Wo,"data-close-button":!0,onClick:Wo||!kt?()=>{}:()=>{var me;Xt(),(me=m.onDismiss)==null||me.call(m,m)},className:qn(I==null?void 0:I.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(i=V==null?void 0:V.close)!=null?i:a2):null,m.jsx||g.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:B.createElement(B.Fragment,null,ft||m.icon||m.promise?B.createElement("div",{"data-icon":"",className:qn(I==null?void 0:I.icon,(a=m==null?void 0:m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Bh():null,m.type!=="loading"?m.
vendor: 6,661 bytes, line 266
266icon||(V==null?void 0:V[ft])||XP(ft):null):null,B.createElement("div",{"data-content":"",className:qn(I==null?void 0:I.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},B.createElement("div",{"data-title":"",className:qn(I==null?void 0:I.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?B.createElement("div",{"data-description":"",className:qn(P,Kc,I==null?void 0:I.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),g.isValidElement(m.cancel)?m.cancel:m.cancel&&mu(m.cancel)?B.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||z,onClick:me=>{var he,Oe;mu(m.cancel)&&kt&&((Oe=(he=m.cancel).onClick)==null||Oe.call(he,me),Xt())},className:qn(I==null?void 0:I.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,g.isValidElement(m.action)?m.action:m.action&&mu(m.action)?B.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||C,onClick:me=>{var he,Oe;mu(m.action)&&((Oe=(he=m.action).onClick)==null||Oe.call(he,me),!me.defaultPrevented&&Xt())},className:qn(I==null?void 0:I.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function j0(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function j2(t,e){let n={};return[t,e].forEach((r,s)=>{let i=s===1,a=i?"--mobile-offset":"--offset",l=i?y2:g2;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=l:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var S2=g.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:a,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:m,visibleToasts:w=p2,toastOptions:p,dir:b=j0(),gap:x=x2,loadingIcon:y,icons:v,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:_}=t,[j,E]=B.useState([]),S=B.useMemo(()=>Array.from(new Set([r].concat(j.filter(te=>te.position).map(te=>te.position)))),[j,r]),[A,z]=B.useState([]),[C,L]=B.useState(!1),[P,O]=B.useState(!1),[Z,W]=B.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=B.useRef(null),R=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=B.useRef(null),V=B.useRef(!1),G=B.useCallback(te=>{E(X=>{var ue;return(ue=X.find(U=>U.id===te.id))!=null&&ue.delete||sn.dismiss(te.id),X.filter(({id:U})=>U!==te.id)})},[]);return B.useEffect(()=>sn.subscribe(te=>{if(te.dismiss){E(X=>X.map(ue=>ue.id===te.id?{...ue,delete:!0}:ue));return}setTimeout(()=>{Z_.flushSync(()=>{E(X=>{let ue=X.findIndex(U=>U.id===te.id);return ue!==-1?[...X.slice(0,ue),{...X[ue],...te},...X.slice(ue+1)]:[te,...X]})})})}),[]),B.useEffect(()=>{if(d!=="system"){W(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:X})=>{W(X?"dark":"light")})}catch{te.addListener(({matches:ue})=>{try{W(ue?"dark":"light")}catch(U){console.error(U)}})}},[d]),B.useEffect(()=>{j.length<=1&&L(!1)},[j]),B.useEffect(()=>{let te=X=>{var ue,U;s.every(se=>X[se]||X.code===se)&&(L(!0),(ue=H.current)==null||ue.focus()),X.code==="Escape"&&(document.activeElement===H.current||(U=H.current)!=null&&U.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),B.useEffect(()=>{if(H.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,V.current=!1)}},[H.current]),B.createElement("section",{ref:e,"aria-label":`${k} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map((te,X)=>{var ue;let[U,se]=te.split("-");return j.length?B.createElement("ol",{key:te,dir:b==="auto"?j0():b,tabIndex:-1,ref:H,className:l,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":U,"data-lifted":C&&j.length>1&&!i,"data-x-position":se,style:{"--front-toast-height":`${((ue=A[0])==null?void 0:ue.height)||0}px`,"--width":`${v2}px`,"--gap":`${x}px`,...m,...j2(c,u)},onBlur:D=>{V.current&&!D.currentTarget.contains(D.relatedTarget)&&(V.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||V.current||(V.current=!0,I.current=D.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{P||L(!1)},onDragEnd:()=>L(!1),onPointerDown:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},j.filter(D=>!D.position&&X===0||D.position===te).map((D,ne)=>{var ze,be;return B.createElement(_2,{key:D.id,icons:v,index:ne,toast:D,defaultRichColors:h,duration:(ze=p==null?void 0:p.duration)!=null?ze:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:w,closeButton:(be=p==null?void 0:p.closeButton)!=null?be:a,interacting:P,position:te,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:G,toasts:j.filter(je=>je.position==D.position),heights:A.filter(je=>je.position==D.position),setHeights:z,expandByDefault:i,gap:x,loadingIcon:y,expanded:C,pauseWhenPageIsHidden:_,swipeDirections:t.swipeDirections})})):null}))});const E2=({...t})=>{const{theme:e="system"}=JP();return o.jsx(S2,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var T2=$g[" useId ".trim().toString()]||(()=>{}),N2=0;function Dc(t){const[e,n]=g.useState(T2());return Rt(()=>{n(r=>r??String(N2++))},[t]),e?`radix-${e}
266`:""}const C2=["top","right","bottom","left"],qs=Math.min,yn=Math.max,Nd=Math.round,pu=Math.floor,Nr=t=>({x:t,y:t}),z2={left:"right",right:"left",bottom:"top",top:"bottom"},A2={start:"end",end:"start"};function vp(t,e,n){return yn(t,qs(e,n))}function Xr(t,e){return typeof t=="function"?t(e):t}function es(t){return t.split("-")[0]}function To(t){return t.split("-")[1]}function Uy(t){return t==="x"?"y":"x"}function Vy(t){return t==="y"?"height":"width"}const R2=new Set(["top","bottom"]);function Sr(t){return R2.has(es(t))?"y":"x"}function By(t){return Uy(Sr(t))}function P2(t,e,n){n===void 0&&(n=!1);const r=To(t),s=By(t),i=Vy(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Cd(a)),[a,Cd(a)]}function O2(t){const e=Cd(t);return[xp(t),e,xp(e)]}function xp(t){return t.replace(/start|end/g,e=>A2[e])}const S0=["left","right"],E0=["right","left"],I2=["top","bottom"],L2=["bottom","top"];function D2(t,e,n){switch(t){case"top":case"bottom":return n?e?E0:S0:e?S0:E0;case"left":case"right":return e?I2:L2;default:return[]}}function M2(t,e,n,r){const s=To(t);let i=D2(es(t),n==="start",r);return s&&(i=i.map(a=>a+"-"+s),e&&(i=i.concat(i.map(xp)))),i}function Cd(t){return t.replace(/left|right|bottom|top/g,e=>z2[e])}function $2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Wj(t){return typeof t!="number"?$2(t):{top:t,right:t,bottom:t,left:t}}function zd(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function T0(t,e,n){let{reference:r,floating:s}=t;const i=Sr(e),a=By(e),l=Vy(a),c=es(e),u=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[l]/2-s[l]/2;let m;switch(c){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-s.width,y:h};break;default:m={x:r.x,y:r.y}}switch(To(e)){case"start":m[a]-=f*(n&&u?-1:1);break;case"end":m[a]+=f*(n&&u?-1:1);break}return m}const F2=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:h}=T0(u,r,c),f=r,m={},w=0;for(let p=0;p<l.length;p++){const{name:b,fn:x}=l[p],{x:y,y:v,data:k,reset:_}=await x({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});d=y??d,h=v??h,m={...m,[b]:{...m[b],...k}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(u=_.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:s}):_.rects),{x:d,y:h}=T0(u,f,c)),p=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:m}};async function sc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=Xr(e,t),w=Wj(m),b=l[f?h==="floating"?"reference":"floating":h],x=zd(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y=h==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},_=zd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:c}):y);return{top:(x.top-_.top+w.top)/k.y,bottom:(_.bottom-x.bottom+w.bottom)/k.y,left:(x.left-_.left+w.left)/k.x,right:(_.right-x.right+w.right)/k.x}}const U2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:a,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=Xr(t,e)||{};if(u==null)return{};const h=Wj(d),f={x:n,y:r},m=By(s),w=Vy(m),p=await a.getDimensions(u),b=m==="y",x=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",k=i.reference[w]+i.reference[m]-f[m]-i.floating[w],_=f[m]-i.reference[m],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=j?j[v]:0;(!E||!await(a.isElement==null?void 0:a.isElement(j)))&&(E=l.floating[v]||i.floating[w]);const S=k/2-_/2,A=E/2-p[w]/2-1,z=qs(h[x],A),C=qs(h[y],A),L=z,P=E-p[w]-C,O=E/2-p[w]/2+S,Z=vp(L,O,P),W=!c.arrow&&To(s)!=null&&O!==Z&&i.reference[w]/2-(O<L?z:C)-p[w]/2<0,H=W?O<L?O-L:O-P:0;return{[m]:f[m]+H,data:{[m]:Z,centerOffset:O-Z-H,...W&&{alignmentOffset:H}},reset:W}}}),V2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...b}=Xr(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=es(s),y=Sr(l),v=es(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),_=f||(v||!p?[Cd(l)]:O2(l)),j=w!=="none";!f&&j&&_.push(...M2(l,p,w,k));const E=[l,..._],S=await sc(e,b),A=[];let z=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&A.push(S[x]),h){const O=P2(s,a,k);A.push(S[O[0]],S[O[1]])}if(z=[...z,{placement:s,overflows:A}],!A.every(O=>O<=0)){var C,L;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,Z=E[O];if(Z&&(!(h==="alignment"?y!==Sr(Z):!1)||z.every(R=>R.overflows[0]>0&&Sr(R.placement)===y)))return{data:{index:O,overflows:z},reset:{placement:Z}};let W=(L=z.filter(H=>H.overflows[0]<=0).sort((H,R)=>H.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!W)switch(m){case"bestFit":{var P;const H=(P=z.filter(R=>{if(j){const I=Sr(R.placement);return I===y||I==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(I=>I>0).reduce((I,V)=>I+V,0)]).sort((R,I)=>R[1]-I[1])[0])==null?void 0:P[0];H&&(W=H);break}case"initialPlacement":W=l;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function N0(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function C0(t){return C2.some(e=>t[e]>=0)}const B2=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=Xr(t,e);switch(r){case"referenceHidden":{const i=await sc(e,{...s,elementContext:"reference"}),a=N0(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:C0(a)}}}case"escaped":{const i=await sc(e,{...s,altBoundary:!0}),a=N0(i,n.floating);return{data:{escapedOffsets:a,escaped:C0(a)}}}default:return{}}}}},Kj=new Set(["left","top"]);async function H2(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=es(n),l=To(n),c=Sr(n)==="y",u=Kj.has(a)?-1:1,d=i&&c?-1:1,h=Xr(e,t);let{mainAxis:f,crossAxis:m,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}
vendor: 17,922 bytes, line 266
266:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(m=l==="end"?w*-1:w),c?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const W2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:a,middlewareData:l}=e,c=await H2(e,t);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:a}}}}},K2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x,y}=b;return{x,y}}},...c}=Xr(t,e),u={x:n,y:r},d=await sc(e,c),h=Sr(es(s)),f=Uy(h);let m=u[f],w=u[h];if(i){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=m+d[b],v=m-d[x];m=vp(y,m,v)}if(a){const b=h==="y"?"top":"left",x=h==="y"?"bottom":"right",y=w+d[b],v=w-d[x];w=vp(y,w,v)}const p=l.fn({...e,[f]:m,[h]:w});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:i,[h]:a}}}}}},G2=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Xr(t,e),d={x:n,y:r},h=Sr(s),f=Uy(h);let m=d[f],w=d[h];const p=Xr(l,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const v=f==="y"?"height":"width",k=i.reference[f]-i.floating[v]+b.mainAxis,_=i.reference[f]+i.reference[v]-b.mainAxis;m<k?m=k:m>_&&(m=_)}if(u){var x,y;const v=f==="y"?"width":"height",k=Kj.has(es(s)),_=i.reference[h]-i.floating[v]+(k&&((x=a.offset)==null?void 0:x[h])||0)+(k?0:b.crossAxis),j=i.reference[h]+i.reference[v]+(k?0:((y=a.offset)==null?void 0:y[h])||0)-(k?b.crossAxis:0);w<_?w=_:w>j&&(w=j)}return{[f]:m,[h]:w}}}},q2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:a,elements:l}=e,{apply:c=()=>{},...u}=Xr(t,e),d=await sc(e,u),h=es(s),f=To(s),m=Sr(s)==="y",{width:w,height:p}=i.floating;let b,x;h==="top"||h==="bottom"?(b=h,x=f===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=h,b=f==="end"?"top":"bottom");const y=p-d.top-d.bottom,v=w-d.left-d.right,k=qs(p-d[b],y),_=qs(w-d[x],v),j=!e.middlewareData.shift;let E=k,S=_;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(E=y),j&&!f){const z=yn(d.left,0),C=yn(d.right,0),L=yn(d.top,0),P=yn(d.bottom,0);m?S=w-2*(z!==0||C!==0?z+C:yn(d.left,d.right)):E=p-2*(L!==0||P!==0?L+P:yn(d.top,d.bottom))}await c({...e,availableWidth:S,availableHeight:E});const A=await a.getDimensions(l.floating);return w!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function bh(){return typeof window<"u"}function No(t){return Gj(t)?(t.nodeName||"").toLowerCase():"#document"}function bn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Or(t){var e;return(e=(Gj(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gj(t){return bh()?t instanceof Node||t instanceof bn(t).Node:!1}function ur(t){return bh()?t instanceof Element||t instanceof bn(t).Element:!1}function Rr(t){return bh()?t instanceof HTMLElement||t instanceof bn(t).HTMLElement:!1}function z0(t){return!bh()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof bn(t).ShadowRoot}const Y2=new Set(["inline","contents"]);function Mc(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=dr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Y2.has(s)}const Z2=new Set(["table","td","th"]);function Q2(t){return Z2.has(No(t))}const J2=[":popover-open",":modal"];function kh(t){return J2.some(e=>{try{return t.matches(e)}catch{return!1}})}const X2=["transform","translate","scale","rotate","perspective"],eO=["transform","translate","scale","rotate","perspective","filter"],tO=["paint","layout","strict","content"];function Hy(t){const e=Wy(),n=ur(t)?dr(t):t;return X2.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||eO.some(r=>(n.willChange||"").includes(r))||tO.some(r=>(n.contain||"").includes(r))}function nO(t){let e=Ys(t);for(;Rr(e)&&!po(e);){if(Hy(e))return e;if(kh(e))return null;e=Ys(e)}return null}function Wy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rO=new Set(["html","body","#document"]);function po(t){return rO.has(No(t))}function dr(t){return bn(t).getComputedStyle(t)}function _h(t){return ur(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ys(t){if(No(t)==="html")return t;const e=t.assignedSlot||t.parentNode||z0(t)&&t.host||Or(t);return z0(e)?e.host:e}function qj(t){const e=Ys(t);return po(e)?t.ownerDocument?t.ownerDocument.body:t.body:Rr(e)&&Mc(e)?e:qj(e)}function ic(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=qj(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),a=bn(s);if(i){const l=wp(a);return e.concat(a,a.visualViewport||[],Mc(s)?s:[],l&&n?ic(l):[])}return e.concat(s,ic(s,[],n))}function wp(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Yj(t){const e=dr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Rr(t),i=s?t.offsetWidth:n,a=s?t.offsetHeight:r,l=Nd(n)!==i||Nd(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Ky(t){return ur(t)?t:t.contextElement}function Wa(t){const e=Ky(t);if(!Rr(e))return Nr(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=Yj(e);let a=(i?Nd(n.width):n.width)/r,l=(i?Nd(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const sO=Nr(0);function Zj(t){const e=bn(t);return!Wy()||!e.visualViewport?sO:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function iO(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==bn(t)?!1:e}function qi(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=Ky(t);let a=Nr(1);e&&(r?ur(r)&&(a=Wa(r)):a=Wa(t));const l=iO(i,n,r)?Zj(i):Nr(0);let c=(s.left+l.x)/a.x,u=(s.top+l.y)/a.y,d=s.width/a.x,h=s.height/a.y;if(i){const f=bn(i),m=r&&ur(r)?bn(r):r;let w=f,p=wp(w);for(;p&&r&&m!==w;){const b=Wa(p),x=p.getBoundingClientRect(),y=dr(p),v=x.left+(p.clientLeft+parseFloat(y.paddingLeft))*b.x,k=x.top+(p.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,h*=b.y,c+=v,u+=k,w=bn(p),p=wp(w)}}return zd({width:d,height:h,x:c,y:u})}function Gy(t,e){const n=_h(t).scrollLeft;return e?e.left+n:qi(Or(t)).left+n}function Qj(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:Gy(t,r)),i=r.top+e.scrollTop;return{x:s,y:i}}function aO(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",a=Or(r),l=e?kh(e.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Nr(1);const d=Nr(0),h=Rr(r);if((h||!h&&!i)&&((No(r)!=="body"||Mc(a))&&(c=_h(r)),Rr(r))){const m=qi(r);u=Wa(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const f=a&&!h&&!i?Qj(a,c,!0):Nr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function oO(t){return Array.from(t.getClientRects())}function lO(t){const e=Or(t),n=_h(t),r=t.ownerDocument.body,s=yn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=yn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Gy(t);const l=-n.scrollTop;return dr(r).direction==="rtl"&&(a+=yn(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:a,y:l}}function cO(t,e){const n=bn(t),r=Or(t),s=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;const u=Wy();(!u||u&&e==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l,y:c}}const uO=new Set(["absolute","fixed"]);function dO(t,e){const n=qi(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=Rr(t)?Wa(t):Nr(1),a=t.clientWidth*i.x,l=t.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function A0(t,e,n){let r;if(e==="viewport")r=cO(t,n);else if(e==="document")r=lO(Or(t));else if(ur(e))r=dO(e,n);else{const s=Zj(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return zd(r)}function Jj(t,e){const n=Ys(t);return n===e||!ur(n)||po(n)?!1:dr(n).position==="fixed"||Jj(n,e)}function hO(t,e){const n=e.get(t);if(n)return n;let r=ic(t,[],!1).filter(l=>ur(l)&&No(l)!=="body"),s=null;const i=dr(t).position==="fixed";let a=i?Ys(t):t;for(;ur(a)&&!po(a);){const l=dr(a),c=Hy(a);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&uO.has(s.position)||Mc(a)&&!c&&Jj(t,a))?r=r.filter(d=>d!==a):s=l,a=Ys(a)}return e.set(t,r),r}function fO(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const a=[...n==="clippingAncestors"?kh(e)?[]:hO(e,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,d)=>{const h=A0(e,d,s);return u.top=yn(h.top,u.top),u.right=qs(h.right,u.right),u.bottom=qs(h.bottom,u.bottom),u.left=yn(h.left,u.left),u},A0(e,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mO(t){const{width:e,height:n}=Yj(t);return{width:e,height:n}}function pO(t,e,n){const r=Rr(e),s=Or(e),i=n==="fixed",a=qi(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Nr(0);function u(){c.x=Gy(s)}if(r||!r&&!i)if((No(e)!=="body"||Mc(s))&&(l=_h(e)),r){const m=qi(e,!0,i,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?Qj(s,l):Nr(0),h=a.left+l.scrollLeft-c.x-d.x,f=a.top+l.scrollTop-c.y-d.y;return{x:h,y:f,width:a.width,height:a.height}}function jf(t){return dr(t).position==="static"}function R0(t,e){if(!Rr(t)||dr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Or(t)===n&&(n=n.ownerDocument.body),n}function Xj(t,e){const n=bn(t);if(kh(t))return n;if(!Rr(t)){let s=Ys(t);for(;s&&!po(s);){if(ur(s)&&!jf(s))return s;s=Ys(s)}return n}let r=R0(t,e);for(;r&&Q2(r)&&jf(r);)r=R0(r,e);return r&&po(r)&&jf(r)&&!Hy(r)?n:r||nO(t)||n}const gO=async function(t){const e=this.getOffsetParent||Xj,n=this.getDimensions,r=await n(t.floating);return{reference:pO(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yO(t){return dr(t).direction==="rtl"}const vO={convertOffsetParentRelativeRectToViewportRelativeRect:aO,getDocumentElement:Or,getClippingRect:fO,getOffsetParent:Xj,getElementRects:gO,getClientRects:oO,getDimensions:mO,getScale:Wa,isElement:ur,isRTL:yO};function eS(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function xO(t,e){let n=null,r;const s=Or(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:f,height:m}=u;if(l||e(),!f||!m)return;const w=pu(h),p=pu(s.clientWidth-(d+f)),b=pu(s.clientHeight-(h+m)),x=pu(d),v={rootMargin:-w+"px "+-p+"px "+-b+"px "+-x+"px",threshold:yn(0,qs(1,c))||1};let k=!0;function _(j){const E=j[0].intersectionRatio;if(E!==c){if(!k)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!eS(u,t.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(_,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(t)}return a(!0),i}function wO(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ky(t),d=s||i?[...u?ic(u):[],...ic(e)]:[];d.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const h=u&&l?xO(u,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let w,p=c?qi(t):null;c&&b();function b(){const x=qi(t);p&&!eS(p,x)&&n(),p=x,w=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h==null||h(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const bO=W2,kO=K2,_O=V2,jO=q2,SO=B2,P0=U2,EO=G2,TO=(t,e,n)=>{const r=new Map,s={platform:vO,...n},i={...s.platform,_c:r};return F2(t,e,{...s,platform:i})};var NO=typeof document<"u",CO=function(){},qu=NO?g.useLayoutEffect:CO;function Ad(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ad(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Ad(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function tS(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function O0(t,e){const n=tS(t);return Math.round(e*n)/n}function Sf(t){const e=g.useRef(t);return qu(()=>{e.current=t}),e}function zO(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,h]=g.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=g.useState(r);Ad(f,r)||m(r);const[w,p]=g.useState(null),[b,x]=g.useState(null),y=g.useCallback(R=>{R!==j.current&&(j.current=R,p(R))},[]),v=g.useCallback(R=>{R!==E.current&&(E.current=R,x(R))},[]),k=i||w,_=a||b,j=g.useRef(null),E=g.useRef(null),S=g.useRef(d),A=c!=null,z=Sf(c),C=Sf(s),L=Sf(u),P=g.useCallback(()=>{if(!j.current||!E.current)return;const R={placement:e,strategy:n,middleware:f};C.current&&(R.platform=C.current),TO(j.current,E.current,R).then(I=>{const V={...I,isPositioned:L.current!==!1};O.current&&!Ad(S.current,V)&&(S.current=V,ta.flushSync(()=>{h(V)}))})},[f,e,n,C,L]);qu(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[u]);const O=g.useRef(!1);qu(()=>(O.current=!0,()=>{O.current=!1}),[]),qu(()=>{if(k&&(j.current=k),_&&(E.current=_),k&&_){if(z.current)return z.current(k,_,P);P()}},[k,_,P,z,A]);const Z=g.useMemo(()=>({reference:j,floating:E,setReference:y,setFloating:v}),[y,v]),W=g.useMemo(()=>({reference:k,floating:_}),[k,_]),H=g.useMemo(()=>{const R={position:n,left:0,top:0};if(!W.floating)return R;const I=O0(W.floating,d.x),V=O0(W.floating,d.y);return l?{...R,transform:"translate("+I+"px, "+V+"px)",...tS(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:V}},[n,l,W.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:P,refs:Z,elements:W,floatingStyles:H}),[d,P,Z,W,H])}const AO=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?P0({element:r.current,padding:s}).fn(n):{}:r?P0({element:r,padding:s}).fn(n):{}}}},RO=(t,e)=>({...bO(t),options:[t,e]}),PO=(t,e)=>({...kO(t),options:[t,e]}),OO=(t,e)=>({...EO(t),options:[t,e]}),IO=(t,e)=>({..._O(t),options:[t,e]}),LO=(t,e)=>({...jO(t),options:[t,e]}),DO=(t,e)=>({...SO(t),options:[t,e]}),MO=(t,e)=>({...AO(t),options:[t,e]});var $O="Arrow",nS=g.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return o.jsx(Ce.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});nS.displayName=$O;var FO=nS;function UO(t){const[e,n]=g.useState(void 0);return Rt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=t.offsetWidth,l=t.offsetHeight;n({width:a,height:l})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var qy="Popper",[rS,jh]=ra(qy),[VO,sS]=rS(qy),iS=t=>{const{__scopePopper:e,children:n}=t,[r,s]=g.useState(null);return o.jsx(VO,{scope:e,anchor:r,onAnchorChange:s,children:n})};iS.displayName=qy;var aS="PopperAnchor",oS=g.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=sS(aS,n),a=g.useRef(null),l=nt(e,a);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:o.jsx(Ce.div,{...s,ref:l})});oS.displayName=aS;var Yy="PopperContent",[BO,HO]=rS(Yy),lS=g.forwardRef((t,e)=>{var D,ne,ze,be,je,Ee;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:w,...p}=t,b=sS(Yy,n),[x,y]=g.useState(null),v=nt(e,Ze=>y(Ze)),[k,_]=g.useState(null),j=UO(k),E=(j==null?void 0:j.width)??0,S=(j==null?void 0:j.height)??0,A=r+(i!=="center"?"-"+i:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},C=Array.isArray(u)?u:[u],L=C.length>0,P={padding:z,boundary:C.filter(KO),altBoundary:L},{refs:O,floatingStyles:Z,placement:W,isPositioned:H,middlewareData:R}=zO({strategy:"fixed",placement:A,whileElementsMounted:(...Ze)=>wO(...Ze,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[RO({mainAxis:s+S,alignmentAxis:a}),c&&PO({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?OO():void 0,...P}),c&&IO({...P}),LO({...P,apply:({elements:Ze,rects:bt,availableWidth:Ut,availableHeight:En})=>{const{width:Hn,height:Tn}=bt.reference,Wn=Ze.floating.style;Wn.setProperty("--radix-popper-available-width",`${Ut}px`),Wn.setProperty("--radix-popper-available-height",`${En}px`),Wn.setProperty("--radix-popper-anchor-width",`${Hn}px`),Wn.setProperty("--radix-popper-anchor-height",`${Tn}px`)}}),k&&MO({element:k,padding:l}),GO({arrowWidth:E,arrowHeight:S}
vendor: 8,673 bytes, line 266
266),f&&DO({strategy:"referenceHidden",...P})]}),[I,V]=dS(W),G=Un(w);Rt(()=>{H&&(G==null||G())},[H,G]);const te=(D=R.arrow)==null?void 0:D.x,X=(ne=R.arrow)==null?void 0:ne.y,ue=((ze=R.arrow)==null?void 0:ze.centerOffset)!==0,[U,se]=g.useState();return Rt(()=>{x&&se(window.getComputedStyle(x).zIndex)},[x]),o.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:H?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(be=R.transformOrigin)==null?void 0:be.x,(je=R.transformOrigin)==null?void 0:je.y].join(" "),...((Ee=R.hide)==null?void 0:Ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:o.jsx(BO,{scope:n,placedSide:I,onArrowChange:_,arrowX:te,arrowY:X,shouldHideArrow:ue,children:o.jsx(Ce.div,{"data-side":I,"data-align":V,...p,ref:v,style:{...p.style,animation:H?void 0:"none"}})})})});lS.displayName=Yy;var cS="PopperArrow",WO={top:"bottom",right:"left",bottom:"top",left:"right"},uS=g.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=HO(cS,r),a=WO[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:o.jsx(FO,{...s,ref:n,style:{...s.style,display:"block"}})})});uS.displayName=cS;function KO(t){return t!==null}var GO=t=>({name:"transformOrigin",options:t,fn(e){var b,x,y;const{placement:n,rects:r,middlewareData:s}=e,a=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:t.arrowWidth,c=a?0:t.arrowHeight,[u,d]=dS(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((x=s.arrow)==null?void 0:x.x)??0)+l/2,m=(((y=s.arrow)==null?void 0:y.y)??0)+c/2;let w="",p="";return u==="bottom"?(w=a?h:`${f}px`,p=`${-c}px`):u==="top"?(w=a?h:`${f}px`,p=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,p=a?h:`${m}px`):u==="left"&&(w=`${r.floating.width+c}px`,p=a?h:`${m}px`),{data:{x:w,y:p}}}});function dS(t){const[e,n="center"]=t.split("-");return[e,n]}var qO=iS,hS=oS,fS=lS,mS=uS,[Sh,k8]=ra("Tooltip",[jh]),Zy=jh(),pS="TooltipProvider",YO=700,I0="tooltip.open",[ZO,gS]=Sh(pS),yS=t=>{const{__scopeTooltip:e,delayDuration:n=YO,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,a=g.useRef(!0),l=g.useRef(!1),c=g.useRef(0);return g.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),o.jsx(ZO,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:g.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};yS.displayName=pS;var vS="Tooltip",[_8,Eh]=Sh(vS),bp="TooltipTrigger",QO=g.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Eh(bp,n),i=gS(bp,n),a=Zy(n),l=g.useRef(null),c=nt(e,l,s.onTriggerChange),u=g.useRef(!1),d=g.useRef(!1),h=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),o.jsx(hS,{asChild:!0,...a,children:o.jsx(Ce.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:pe(t.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:pe(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:pe(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:pe(t.onBlur,s.onClose),onClick:pe(t.onClick,s.onClose)})})});QO.displayName=bp;var JO="TooltipPortal",[j8,XO]=Sh(JO,{forceMount:void 0}),go="TooltipContent",xS=g.forwardRef((t,e)=>{const n=XO(go,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,a=Eh(go,t.__scopeTooltip);return o.jsx(gh,{present:r||a.open,children:a.disableHoverableContent?o.jsx(wS,{side:s,...i,ref:e}):o.jsx(eI,{side:s,...i,ref:e})})}),eI=g.forwardRef((t,e)=>{const n=Eh(go,t.__scopeTooltip),r=gS(go,t.__scopeTooltip),s=g.useRef(null),i=nt(e,s),[a,l]=g.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=g.useCallback(()=>{l(null),h(!1)},[h]),m=g.useCallback((w,p)=>{const b=w.currentTarget,x={x:w.clientX,y:w.clientY},y=iI(x,b.getBoundingClientRect()),v=aI(x,y),k=oI(p.getBoundingClientRect()),_=cI([...v,...k]);l(_),h(!0)},[h]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(c&&d){const w=b=>m(b,d),p=b=>m(b,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",p)}}},[c,d,m,f]),g.useEffect(()=>{if(a){const w=p=>{const b=p.target,x={x:p.clientX,y:p.clientY},y=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),v=!lI(x,a);y?f():v&&(f(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,a,u,f]),o.jsx(wS,{...t,ref:i})}),[tI,nI]=Sh(vS,{isInside:!1}),rI=aR("TooltipContent"),wS=g.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=t,c=Eh(go,n),u=Zy(n),{onClose:d}=c;return g.useEffect(()=>(document.addEventListener(I0,d),()=>document.removeEventListener(I0,d)),[d]),g.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),o.jsx(ph,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:o.jsxs(fS,{"data-state":c.stateAttribute,...u,...l,ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(rI,{children:r}),o.jsx(tI,{scope:n,isInside:!0,children:o.jsx(NR,{id:c.contentId,role:"tooltip",children:s||r})})]})})});xS.displayName=go;var bS="TooltipArrow",sI=g.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Zy(n);return nI(bS,n).isInside?null:o.jsx(mS,{...s,...r,ref:e})});sI.displayName=bS;function iI(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function aI(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function oI(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function lI(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const l=e[i],c=e[a],u=l.x,d=l.y,h=c.x,f=c.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(s=!s)}return s}function cI(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),uI(e)}function uI(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var dI=yS,kS=xS;const hI=dI,fI=g.forwardRef(({className:t,sideOffset:e=4,...n},r)=>o.jsx(kS,{ref:r,sideOffset:e,className:Ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
266de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));fI.displayName=kS.displayName;var $c=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yi=typeof window>"u"||"Deno"in globalThis;function on(){}function mI(t,e){return typeof t=="function"?t(e):t}function kp(t){return typeof t=="number"&&t>=0&&t!==1/0}function _S(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Bs(t,e){return typeof t=="function"?t(e):t}function Rn(t,e){return typeof t=="function"?t(e):t}function L0(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:l}=t;if(a){if(r){if(e.queryHash!==Qy(a,e.options))return!1}else if(!oc(e.queryKey,a))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||s&&s!==e.state.fetchStatus||i&&!i(e))}function D0(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(ac(e.options.mutationKey)!==ac(i))return!1}else if(!oc(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Qy(t,e){return((e==null?void 0:e.queryKeyHashFn)||ac)(t)}function ac(t){return JSON.stringify(t,(e,n)=>jp(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function oc(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>oc(t[n],e[n])):!1}function jS(t,e){if(t===e)return t;const n=M0(t)&&M0(e);if(n||jp(t)&&jp(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),a=i.length,l=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<a;d++){const h=n?d:i[d];(!n&&c.has(h)||n)&&t[h]===void 0&&e[h]===void 0?(l[h]=void 0,u++):(l[h]=jS(t[h],e[h]),l[h]===t[h]&&t[h]!==void 0&&u++)}return s===a&&u===s?t:l}return e}function _p(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function M0(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function jp(t){if(!$0(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!$0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function $0(t){return Object.prototype.toString.call(t)==="[object Object]"}function pI(t){return new Promise(e=>{setTimeout(e,t)})}function Sp(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?jS(t,e):e}function gI(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function yI(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Jy=Symbol();function SS(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Jy?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function vI(t,e){return typeof t=="function"?t(...e):!!t}var zi,ks,Ya,Nk,xI=(Nk=class extends $c{constructor(){super();fe(this,zi);fe(this,ks);fe(this,Ya);J(this,Ya,e=>{if(!Yi&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,ks)||this.setEventListener(N(this,Ya))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,ks))==null||e.call(this),J(this,ks,void 0))}setEventListener(e){var n;J(this,Ya,e),(n=N(this,ks))==null||n.call(this),J(this,ks,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){N(this,zi)!==e&&(J(this,zi,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof N(this,zi)=="boolean"?N(this,zi):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},zi=new WeakMap,ks=new WeakMap,Ya=new WeakMap,Nk),Xy=new xI,Za,_s,Qa,Ck,wI=(Ck=class extends $c{constructor(){super();fe(this,Za,!0);fe(this,_s);fe(this,Qa);J(this,Qa,e=>{if(!Yi&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,_s)||this.setEventListener(N(this,Qa))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,_s))==null||e.call(this),J(this,_s,void 0))}setEventListener(e){var n;J(this,Qa,e),(n=N(this,_s))==null||n.call(this),J(this,_s,e(this.setOnline.bind(this)))}setOnline(e){N(this,Za)!==e&&(J(this,Za,e),this.listeners.forEac
vendor: 30,321 bytes, line 266
266h(r=>{r(e)}))}isOnline(){return N(this,Za)}},Za=new WeakMap,_s=new WeakMap,Qa=new WeakMap,Ck),Rd=new wI;function Ep(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function bI(t){return Math.min(1e3*2**t,3e4)}function ES(t){return(t??"online")==="online"?Rd.isOnline():!0}var TS=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Ef(t){return t instanceof TS}function NS(t){let e=!1,n=0,r=!1,s;const i=Ep(),a=p=>{var b;r||(f(new TS(p)),(b=t.abort)==null||b.call(t))},l=()=>{e=!0},c=()=>{e=!1},u=()=>Xy.isFocused()&&(t.networkMode==="always"||Rd.isOnline())&&t.canRun(),d=()=>ES(t.networkMode)&&t.canRun(),h=p=>{var b;r||(r=!0,(b=t.onSuccess)==null||b.call(t,p),s==null||s(),i.resolve(p))},f=p=>{var b;r||(r=!0,(b=t.onError)==null||b.call(t,p),s==null||s(),i.reject(p))},m=()=>new Promise(p=>{var b;s=x=>{(r||u())&&p(x)},(b=t.onPause)==null||b.call(t)}).then(()=>{var p;s=void 0,r||(p=t.onContinue)==null||p.call(t)}),w=()=>{if(r)return;let p;const b=n===0?t.initialPromise:void 0;try{p=b??t.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(h).catch(x=>{var j;if(r)return;const y=t.retry??(Yi?0:3),v=t.retryDelay??bI,k=typeof v=="function"?v(n,x):v,_=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,x);if(e||!_){f(x);return}n++,(j=t.onFail)==null||j.call(t,n,x),pI(k).then(()=>u()?void 0:m()).then(()=>{e?f(x):w()})})};return{promise:i,cancel:a,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?w():m().then(w),i)}}var kI=t=>setTimeout(t,0);function _I(){let t=[],e=0,n=l=>{l()},r=l=>{l()},s=kI;const i=l=>{e?t.push(l):s(()=>{n(l)})},a=()=>{const l=t;t=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;e++;try{c=l()}finally{e--,e||a()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var Ct=_I(),Ai,zk,CS=(zk=class{constructor(){fe(this,Ai)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kp(this.gcTime)&&J(this,Ai,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Yi?1/0:5*60*1e3))}clearGcTimeout(){N(this,Ai)&&(clearTimeout(N(this,Ai)),J(this,Ai,void 0))}},Ai=new WeakMap,zk),Ja,Ri,An,Pi,Lt,Sc,Oi,nr,Ur,Ak,jI=(Ak=class extends CS{constructor(e){super();fe(this,nr);fe(this,Ja);fe(this,Ri);fe(this,An);fe(this,Pi);fe(this,Lt);fe(this,Sc);fe(this,Oi);J(this,Oi,!1),J(this,Sc,e.defaultOptions),this.setOptions(e.options),this.observers=[],J(this,Pi,e.client),J(this,An,N(this,Pi).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,J(this,Ja,SI(this.options)),this.state=e.state??N(this,Ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=N(this,Lt))==null?void 0:e.promise}setOptions(e){this.options={...N(this,Sc),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,An).remove(this)}setData(e,n){const r=Sp(this.state.data,e,this.options);return Te(this,nr,Ur).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Te(this,nr,Ur).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=N(this,Lt))==null?void 0:r.promise;return(s=N(this,Lt))==null||s.cancel(e),n?n.then(on).catch(on):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,Ja))}isActive(){return this.observers.some(e=>Rn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Jy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Bs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!_S(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,Lt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,Lt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),N(this,An).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(N(this,Lt)&&(N(this,Oi)?N(this,Lt).cancel({revert:!0}):N(this,Lt).cancelRetry()),this.scheduleGc()),N(this,An).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,nr,Ur).call(this,{type:"invalidate"})}fetch(e,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Lt))return N(this,Lt).continueRetry(),N(this,Lt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(J(this,Oi,!0),r.signal)})},i=()=>{const f=SS(this.options,n),w=(()=>{const p={client:N(this,Pi),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return J(this,Oi,!1),this.options.persister?this.options.persister(f,w,this):f(w)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,Pi),state:this.state,fetchFn:i};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),J(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Te(this,nr,Ur).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,w,p,b;Ef(f)&&f.silent||Te(this,nr,Ur).call(this,{type:"error",error:f}),Ef(f)||((w=(m=N(this,An).config).onError)==null||w.call(m,f,this),(b=(p=N(this,An).config).onSettled)==null||b.call(p,this.state.data,f,this)),this.scheduleGc()};return J(this,Lt,NS({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var m,w,p,b;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){c(x);return}(w=(m=N(this,An).config).onSuccess)==null||w.call(m,f,this),(b=(p=N(this,An).config).onSettled)==null||b.call(p,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{Te(this,nr,Ur).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{Te(this,nr,Ur).call(this,{type:"pause"})},onContinue:()=>{Te(this,nr,Ur).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),N(this,Lt).start()}},Ja=new WeakMap,Ri=new WeakMap,An=new WeakMap,Pi=new WeakMap,Lt=new WeakMap,Sc=new WeakMap,Oi=new WeakMap,nr=new WeakSet,Ur=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...zS(r.data,this.options),fetchMeta:e.meta??null};case"success":return J(this,Ri,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return Ef(s)&&s.revert&&N(this,Ri)?{...N(this,Ri),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,An).notify({query:this,type:"updated",action:e})})},Ak);function zS(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ES(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function SI(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 xr,Rk,EI=(Rk=class extends $c{constructor(e={}){super();fe(this,xr);this.config=e,J(this,xr,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??Qy(s,n);let a=this.get(i);return a||(a=new jI({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){N(this,xr).has(e.queryHash)||(N(this,xr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=N(this,xr).get(e.queryHash);n&&(e.destroy(),n===e&&N(this,xr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ct.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return N(this,xr).get(e)}getAll(){return[...N(this,xr).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>L0(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>L0(e,r)):n}notify(e){Ct.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xr=new WeakMap,Rk),wr,Bt,Ii,br,ds,Pk,TI=(Pk=class extends CS{constructor(e){super();fe(this,br);fe(this,wr);fe(this,Bt);fe(this,Ii);this.mutationId=e.mutationId,J(this,Bt,e.mutationCache),J(this,wr,[]),this.state=e.state||NI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){N(this,wr).includes(e)||(N(this,wr).push(e),this.clearGcTimeout(),N(this,Bt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){J(this,wr,N(this,wr).filter(n=>n!==e)),this.scheduleGc(),N(this,Bt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){N(this,wr).length||(this.state.status==="pending"?this.scheduleGc():N(this,Bt).remove(this))}continue(){var e;return((e=N(this,Ii))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,a,l,c,u,d,h,f,m,w,p,b,x,y,v,k,_,j,E,S;const n=()=>{Te(this,br,ds).call(this,{type:"continue"})};J(this,Ii,NS({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(A,z)=>{Te(this,br,ds).call(this,{type:"failed",failureCount:A,error:z})},onPause:()=>{Te(this,br,ds).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Bt).canRun(this)}));const r=this.state.status==="pending",s=!N(this,Ii).canStart();try{if(r)n();else{Te(this,br,ds).call(this,{type:"pending",variables:e,isPaused:s}),await((a=(i=N(this,Bt).config).onMutate)==null?void 0:a.call(i,e,this));const z=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,e));z!==this.state.context&&Te(this,br,ds).call(this,{type:"pending",context:z,variables:e,isPaused:s})}const A=await N(this,Ii).start();return await((d=(u=N(this,Bt).config).onSuccess)==null?void 0:d.call(u,A,e,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,A,e,this.state.context)),await((w=(m=N(this,Bt).config).onSettled)==null?void 0:w.call(m,A,null,this.state.variables,this.state.context,this)),await((b=(p=this.options).onSettled)==null?void 0:b.call(p,A,null,e,this.state.context)),Te(this,br,ds).call(this,{type:"success",data:A}),A}catch(A){try{throw await((y=(x=N(this,Bt).config).onError)==null?void 0:y.call(x,A,e,this.state.context,this)),await((k=(v=this.options).onError)==null?void 0:k.call(v,A,e,this.state.context)),await((j=(_=N(this,Bt).config).onSettled)==null?void 0:j.call(_,void 0,A,this.state.variables,this.state.context,this)),await((S=(E=this.options).onSettled)==null?void 0:S.call(E,void 0,A,e,this.state.context)),A}finally{Te(this,br,ds).call(this,{type:"error",error:A})}}finally{N(this,Bt).runNext(this)}}},wr=new WeakMap,Bt=new WeakMap,Ii=new WeakMap,br=new WeakSet,ds=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ct.batch(()=>{N(this,wr).forEach(r=>{r.onMutationUpdate(e)}),N(this,Bt).notify({mutation:this,type:"updated",action:e})})},Pk);function NI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wr,rr,Ec,Ok,CI=(Ok=class extends $c{constructor(e={}){super();fe(this,Wr);fe(this,rr);fe(this,Ec);this.config=e,J(this,Wr,new Set),J(this,rr,new Map),J(this,Ec,0)}build(e,n,r){const s=new TI({mutationCache:this,mutationId:++qc(this,Ec)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){N(this,Wr).add(e);const n=gu(e);if(typeof n=="string"){const r=N(this,rr).get(n);r?r.push(e):N(this,rr).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(N(this,Wr).delete(e)){const n=gu(e);if(typeof n=="string"){const r=N(this,rr).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&N(this,rr).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=gu(e);if(typeof n=="string"){const r=N(this,rr).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=gu(e);if(typeof n=="string"){const s=(r=N(this,rr).get(n))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ct.batch(()=>{N(this,Wr).forEach(e=>{this.notify({type:"removed",mutation:e})}),N(this,Wr).clear(),N(this,rr).clear()})}getAll(){return Array.from(N(this,Wr))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>D0(n,r))}findAll(e={}){return this.getAll().filter(n=>D0(e,n))}notify(e){Ct.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Ct.batch(()=>Promise.all(e.map(n=>n.continue().catch(on))))}},Wr=new WeakMap,rr=new WeakMap,Ec=new WeakMap,Ok);function gu(t){var e;return(e=t.options.scope)==null?void 0:e.id}function F0(t){return{onFetch:(e,n)=>{var d,h,f,m,w;const r=e.options,s=(f=(h=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((m=e.state.data)==null?void 0:m.pages)||[],a=((w=e.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},x=SS(e.options,e.fetchOptions),y=async(v,k,_)=>{if(p)return Promise.reject();if(k==null&&v.pages.length)return Promise.resolve(v);const E=(()=>{const C={client:e.client,queryKey:e.queryKey,pageParam:k,direction:_?"backward":"forward",meta:e.options.meta};return b(C),C})(),S=await x(E),{maxPages:A}=e.options,z=_?yI:gI;return{pages:z(v.pages,S,A),pageParams:z(v.pageParams,k,A)}};if(s&&i.length){const v=s==="backward",k=v?zI:U0,_={pages:i,pageParams:a},j=k(r,_);l=await y(_,j,v)}else{const v=t??i.length;do{const k=c===0?a[0]??r.initialPageParam:U0(r,l);if(c>0&&k==null)break;l=await y(l,k),c++}while(c<v)}return l};e.options.persister?e.fetchFn=()=>{var p,b;return(b=(p=e.options).persister)==null?void 0:b.call(p,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function U0(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function zI(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var rt,js,Ss,Xa,eo,Es,to,no,Ik,AI=(Ik=class{constructor(t={}){fe(this,rt);fe(this,js);fe(this,Ss);fe(this,Xa);fe(this,eo);fe(this,Es);fe(this,to);fe(this,no);J(this,rt,t.queryCache||new EI),J(this,js,t.mutationCache||new CI),J(this,Ss,t.defaultOptions||{}),J(this,Xa,new Map),J(this,eo,new Map),J(this,Es,0)}mount(){qc(this,Es)._++,N(this,Es)===1&&(J(this,to,Xy.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,rt).onFocus())})),J(this,no,Rd.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,rt).onOnline())})))}unmount(){var t,e;qc(this,Es)._--,N(this,Es)===0&&((t=N(this,to))==null||t.call(this),J(this,to,void 0),(e=N(this,no))==null||e.call(this),J(this,no,void 0))}isFetching(t){return N(this,rt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return N(this,js).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,rt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=N(this,rt).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Bs(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return N(this,rt).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=N(this,rt).get(r.queryHash),i=s==null?void 0:s.state.data,a=mI(e,i);if(a!==void 0)return N(this,rt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return Ct.batch(()=>N(this,rt).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,rt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=N(this,rt);Ct.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=N(this,rt);return Ct.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Ct.batch(()=>N(this,rt).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(on).catch(on)}invalidateQueries(t,e={}){return Ct.batch(()=>(N(this,rt).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Ct.batch(()=>N(this,rt).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(on)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(on)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=N(this,rt).build(this,e);return n.isStaleByTime(Bs(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(on).catch(on)}fetchInfiniteQuery(t){return t.behavior=F0(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(on).catch(on)}ensureInfiniteQueryData(t){return t.behavior=F0(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Rd.isOnline()?N(this,js).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,rt)}getMutationCache(){return N(this,js)}getDefaultOptions(){return N(this,Ss)}setDefaultOptions(t){J(this,Ss,t)}setQueryDefaults(t,e){N(this,Xa).set(ac(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...N(this,Xa).values()],n={};return e.forEach(r=>{oc(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){N(this,eo).set(ac(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...N(this,eo).values()],n={};return e.forEach(r=>{oc(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...N(this,Ss).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Qy(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Jy&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...N(this,Ss).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){N(this,rt).clear(),N(this,js).clear()}},rt=new WeakMap,js=new WeakMap,Ss=new WeakMap,Xa=new WeakMap,eo=new WeakMap,Es=new WeakMap,to=new WeakMap,no=new WeakMap,Ik),rn,Ne,Tc,Ht,Li,ro,Ts,Ns,Nc,so,io,Di,Mi,Cs,ao,Ie,pl,Tp,Np,Cp,zp,Ap,Rp,Pp,AS,Lk,RI=(Lk=class extends $c{constructor(e,n){super();fe(this,Ie);fe(this,rn);fe(this,Ne);fe(this,Tc);fe(this,Ht);fe(this,Li);fe(this,ro);fe(this,Ts);fe(this,Ns);fe(this,Nc);fe(this,so);fe(this,io);fe(this,Di);fe(this,Mi);fe(this,Cs);fe(this,ao,new Set);this.options=n,J(this,rn,e),J(this,Ns,null),J(this,Ts,Ep()),this.options.experimental_prefetchInRender||N(this,Ts).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Ne).addObserver(this),V0(N(this,Ne),this.options)?Te(this,Ie,pl).call(this):this.updateResult(),Te(this,Ie,zp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Op(N(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Op(N(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Ie,Ap).call(this),Te(this,Ie,Rp).call(this),N(this,Ne).removeObserver(this)}setOptions(e){const n=this.options,r=N(this,Ne);if(this.options=N(this,rn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Rn(this.options.enabled,N(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Ie,Pp).call(this),N(this,Ne).setOptions(this.options),n._defaulted&&!_p(this.options,n)&&N(this,rn).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Ne),observer:this});const s=this.hasListeners();s&&B0(N(this,Ne),r,this.options,n)&&Te(this,Ie,pl).call(this),this.updateResult(),s&&(N(this,Ne)!==r||Rn(this.options.enabled,N(this,Ne))!==Rn(n.enabled,N(this,Ne))||Bs(this.options.staleTime,N(this,Ne))!==Bs(n.staleTime,N(this,Ne)))&&Te(this,Ie,Tp).call(this);const i=Te(this,Ie,Np).call(this);s&&(N(this,Ne)!==r||Rn(this.options.enabled,N(this,Ne))!==Rn(n.enabled,N(this,Ne))||i!==N(this,Cs))&&Te(this,Ie,Cp).call(this,i)}getOptimisticResult(e){const n=N(this,rn).getQueryCache().build(N(this,rn),e),r=this.createResult(n,e);return OI(this,r)&&(J(this,Ht,r),J(this,ro,this.options),J(this,Li,N(this,Ne).state)),r}getCurrentResult(){return N(this,Ht)}trackResult(e,n){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(e){N(this,ao).add(e)}getCurrentQuery(){return N(this,Ne)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=N(this,rn).defaultQueryOptions(e),r=N(this,rn).getQueryCache().build(N(this,rn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Te(this,Ie,pl).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,Ht)))}createResult(e,n){var A;const r=N(this,Ne),s=this.options,i=N(this,Ht),a=N(this,Li),l=N(this,ro),u=e!==r?e.state:N(this,Tc),{state:d}=e;let h={...d},f=!1,m;if(n._optimisticResults){const z=this.hasListeners(),C=!z&&V0(e,n),L=z&&B0(e,r,n,s);(C||L)&&(h={...h,...zS(d.data,e.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:p,status:b}=h;m=h.data;let x=!1;if(n.placeholderData!==void 0&&m===void 0&&b==="pending"){let z;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(z=i.data,x=!0):z=typeof n.placeholderData=="function"?n.placeholderData((A=N(this,io))==null?void 0:A.state.data,N(this,io)):n.placeholderData,z!==void 0&&(b="success",m=Sp(i==null?void 0:i.data,z,n),f=!0)}if(n.select&&m!==void 0&&!x)if(i&&m===(a==null?void 0:a.data)&&n.select===N(this,Nc))m=N(this,so);else try{J(this,Nc,n.select),m=n.select(m),m=Sp(i==null?void 0:i.data,m,n),J(this,so,m),J(this,Ns,null)}catch(z){J(this,Ns,z)}N(this,Ns)&&(w=N(this,Ns),m=N(this,so),p=Date.now(),b="error");const y=h.fetchStatus==="fetching",v=b==="pending",k=b==="error",_=v&&y,j=m!==void 0,S={status:b,fetchStatus:h.fetchStatus,isPending:v,isSuccess:b==="success",isError:k,isInitialLoading:_,isLoading:_,data:m,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:k&&!j,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:k&&j,isStale:ev(e,n),refetch:this.refetch,promise:N(this,Ts),isEnabled:Rn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const z=P=>{S.status==="error"?P.reject(S.error):S.data!==void 0&&P.resolve(S.data)},C=()=>{const P=J(this,Ts,S.promise=Ep());z(P)},L=N(this,Ts);switch(L.status){case"pending":e.queryHash===r.queryHash&&z(L);break;case"fulfilled":(S.status==="error"||S.data!==L.value)&&C();break;case"rejected":(S.status!=="error"||S.error!==L.reason)&&C();break}}return S}updateResult(){const e=N(this,Ht),n=this.createResult(N(this,Ne),this.options);if(J(this,Li,N(this,Ne).state),J(this,ro,this.options),N(this,Li).data!==void 0&&J(this,io,N(this,Ne)),_p(n,e))return;J(this,Ht,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!N(this,ao).size)return!0;const a=new Set(i??N(this,ao));return this.options.throwOnError&&a.add("error"),Object.keys(N(this,Ht)).some(l=>{const c=l;return N(this,Ht)[c]!==e[c]&&a.has(c)})};Te(this,Ie,AS).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Ie,zp).call(this)}},rn=new WeakMap,Ne=new WeakMap,Tc=new WeakMap,Ht=new WeakMap,Li=new WeakMap,ro=new WeakMap,Ts=new WeakMap,Ns=new WeakMap,Nc=new WeakMap,so=new WeakMap,io=new WeakMap,Di=new WeakMap,Mi=new WeakMap,Cs=new WeakMap,ao=new WeakMap,Ie=new WeakSet,pl=function(e){Te(this,Ie,Pp).call(this);let n=N(this,Ne).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(on)),n},Tp=function(){Te(this,Ie,Ap).call(this);const e=Bs(this.options.staleTime,N(this,Ne));if(Yi||N(this,Ht).isStale||!kp(e))return;const r=_S(N(this,Ht).dataUpdatedAt,e)+1;J(this,Di,setTimeout(()=>{N(this,Ht).isStale||this.updateResult()},r))},Np=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Ne)):this.options.refetchInterval)??!1},Cp=function(e){Te(this,Ie,Rp).call(this),J(this,Cs,e),!(Yi||Rn(this.options.enabled,N(this,Ne))===!1||!kp(N(this,Cs))||N(this,Cs)===0)&&J(this,Mi,setInterval(()=>{(this.options.refetchIntervalInBackground||Xy.isFocused())&&Te(this,Ie,pl).call(this)},N(this,Cs)))},zp=function(){Te(this,Ie,Tp).call(this),Te(this,Ie,Cp).call(this,Te(this,Ie,Np).call(this))},Ap=function(){N(this,Di)&&(clearTimeout(N(this,Di)),J(this,Di,void 0))},Rp=function(){N(this,Mi)&&(clearInterval(N(this,Mi)),J(this,Mi,void 0))},Pp=function(){const e=N(this,rn).getQueryCache().build(N(this,rn),this.options);if(e===N(this,Ne))return;const n=N(this,Ne);J(this,Ne,e),J(this,Tc,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},AS=function(e){Ct.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(N(this,Ht))}),N(this,rn).getQueryCache().notify({query:N(this,Ne),type:"observerResultsUpdated"})})},Lk);function PI(t,e){return Rn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function V0(t,e){return PI(t,e)||t.state.data!==void 0&&Op(t,e,e.refetchOnMount)}function Op(t,e,n){if(Rn(e.enabled,t)!==!1&&Bs(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&ev(t,e)}return!1}function B0(t,e,n,r){return(t!==e||Rn(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&ev(t,n)}function ev(t,e){return Rn(e.enabled,t)!==!1&&t.isStaleByTime(Bs(e.staleTime,t))}function OI(t,e){return!_p(t.getCurrentResult(),e)}var RS=g.createContext(void 0),II=t=>{const e=g.useContext(RS);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},LI=({client:t,children:e})=>(g.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),o.jsx(RS.Provider,{value:t,children:e})),PS=g.createContext(!1),DI=()=>g.useContext(PS);PS.Provider;function MI(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var $I=g.createContext(MI()),FI=()=>g.useContext($I),UI=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOn
266Mount=!1))},VI=t=>{g.useEffect(()=>{t.clearReset()},[t])},BI=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(s&&t.data===void 0||vI(n,[t.error,r])),HI=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...r)=>e(n(...r)):e(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},WI=(t,e)=>t.isLoading&&t.isFetching&&!e,KI=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,H0=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function GI(t,e,n){var h,f,m,w,p;const r=DI(),s=FI(),i=II(),a=i.defaultQueryOptions(t);(f=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,a),a._optimisticResults=r?"isRestoring":"optimistic",HI(a),UI(a,s),VI(s);const l=!i.getQueryCache().get(a.queryHash),[c]=g.useState(()=>new e(i,a)),u=c.getOptimisticResult(a),d=!r&&t.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(b=>{const x=d?c.subscribe(Ct.batchCalls(b)):on;return c.updateResult(),x},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(a)},[a,c]),KI(a,u))throw H0(a,c,s);if(BI({result:u,errorResetBoundary:s,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,a,u),a.experimental_prefetchInRender&&!Yi&&WI(u,r)){const b=l?H0(a,c,s):(p=i.getQueryCache().get(a.queryHash))==null?void 0:p.promise;b==null||b.catch(on).finally(()=>{c.updateResult()})}return a.notifyOnChangeProps?u:c.trackResult(u)}function OS(t,e){return GI(t,RI)}/** 267 * @remix-run/router v1.23.0 268 * 269 * Copyright (c) Remix Software Inc. 270 * 271 * This source code is licensed under the MIT license found in the 272 * LICENSE.md file in the root directory of this source tree. 273 * 274 * @license MIT 275 */function lc(){return lc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lc.apply(this,arguments)}var Rs;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Rs||(Rs={}));const W0="popstate";function qI(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:a,hash:l}=r.location;return Ip("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Pd(s)}return ZI(e,n,null,t)}function lt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function IS(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function YI(){return Math.random().toString(36).substr(2,8)}function K0(t,e){return{usr:t.state,key:t.key,idx:e}}function Ip(t,e,n,r){return n===void 0&&(n=null),lc({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Co(e):e,{state:n,key:e&&e.key||r||YI()})}function Pd(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Co(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function ZI(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l=Rs.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(lc({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function h(){l=Rs.Pop;let b=d(),x=b==null?null:b-u;u=b,c&&c({action:l,location:p.location,delta:x})}function f(b,x){l=Rs.Push;let y=Ip(p.location,b,x);u=d()+1;let v=K0(y,u),k=p.createHref(y);try{a.pushState(v,"",k)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(k)}i&&c&&c({action:l,location:p.location,delta:1})}function m(b,x){l=Rs.Replace;let y=Ip(p.location,b,x);u=d();let v=K0(y,u),k=p.createHref(y);a.replaceState(v,"",k),i&&c&&c({action:l,location:p.location,delta:0})}function w(b){let x=s.location.origin!=="null"?s.location.origin:s.location.href,y=typeof b=="string"?b:Pd(b);return y=y.replace(/ $/,"%20"),lt(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let p={get action(){return l},get location(){return t(s,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(W0,h),c=b,()=>{s.removeEventListener(W0,h),c=null}},createHref(b){return e(s,b)},createURL:w,encodeLocation(b){let x=w(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:m,go(b){return a.go(b)}};return p}var G0;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(G0||(G0={}));function QI(t,e,n){return n===void 0&&(n="/"),JI(t,e,n,!1)}function JI(t,e,n,r){let s=typeof e=="string"?Co(e):e,i=tv(s.pathname||"/",n);if(i==null)return null;let a=LS(t);XI(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=uL(i);l=lL(a[c],u,r)}return l}function LS(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(lt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
275id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Hs([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(lt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),LS(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:aL(u,i.index),routesMeta:d})};return t.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let c of DS(i.path))s(i,a,c)}),e}function DS(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=DS(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function XI(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:oL(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eL=/^:[\w-]+$/,tL=3,nL=2,rL=1,sL=10,iL=-2,q0=t=>t==="*";function aL(t,e){let n=t.split("/"),r=n.length;return n.some(q0)&&(r+=iL),e&&(r+=nL),n.filter(s=>!q0(s)).reduce((s,i)=>s+(eL.test(i)?tL:i===""?rL:sL),r)}function oL(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function lL(t,e,n){let{routesMeta:r}=t,s={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?e:e.slice(i.length)||"/",h=Y0({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Y0({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;
vendor: 6,917 bytes, lines 275-284
275Object.assign(s,h.params),a.push({params:s,pathname:Hs([i,h.pathname]),pathnameBase:mL(Hs([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=Hs([i,h.pathnameBase]))}return a}function Y0(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=cL(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let p=l[h]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const w=l[h];return m&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:t}}function cL(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),IS(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function uL(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return IS(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function tv(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function dL(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?Co(t):t;return{pathname:n?n.startsWith("/")?n:hL(n,e):e,search:pL(r),hash:gL(s)}}function hL(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Tf(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 fL(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function nv(t,e){let n=fL(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rv(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=Co(t):(s=lc({},t),lt(!s.pathname||!s.pathname.includes("?"),Tf("?","pathname","search",s)),lt(!s.pathname||!s.pathname.includes("#"),Tf("#","pathname","hash",s)),lt(!s.search||!s.search.includes("#"),Tf("#","search","hash",s)));let i=t===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let h=e.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?e[h]:"/"}let c=dL(s,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Hs=t=>t.join("/").replace(/\/\/+/g,"/"),mL=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),pL=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,gL=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function yL(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const MS=["post","put","patch","delete"];new Set(MS);const vL=["get",...MS];new Set(vL);/** 276 * React Router v6.30.1 277 * 278 * Copyright (c) Remix Software Inc. 279 * 280 * This source code is licensed under the MIT license found in the 281 * LICENSE.md file in the root directory of this source tree. 282 * 283 * @license MIT 284 */function cc(){return cc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cc.apply(this,arguments)}const sv=g.createContext(null),xL=g.createContext(null),ri=g.createContext(null),Th=g.createContext(null),ss=g.createContext({outlet:null,matches:[],isDataRoute:!1}),$S=g.createContext(null);function wL(t,e){let{relative:n}=e===void 0?{}:e;zo()||lt(!1);let{basename:r,navigator:s}=g.useContext(ri),{hash:i,pathname:a,search:l}=US(t,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Hs([r,a])),s.createHref({pathname:c,search:l,hash:i})}function zo(){return g.useContext(Th)!=null}function Ir(){return zo()||lt(!1),g.useContext(Th).location}function FS(t){g.useContext(ri).static||g.useLayoutEffect(t)}function Ao(){let{isDataRoute:t}=g.useContext(ss);return t?PL():bL()}function bL(){zo()||lt(!1);let t=g.useContext(sv),{basename:e,future:n,navigator:r}=g.useContext(ri),{matches:s}=g.useContext(ss),{pathname:i}=Ir(),a=JSON.stringify(nv(s,n.v7_relativeSplatPath)),l=g.useRef(!1);return FS(()=>{l.current=!0}),g.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=rv(u,JSON.parse(a),i,d.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:Hs([e,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[e,r,a,i,t])}function Nh(){let{matches:t}=g.useContext(ss),e=t[t.length-1];return e?e.params:{}}function US(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=g.useContext(ri),{matches:s}=g.useContext(ss),{pathname:i}=Ir(),a=JSON.stringify(nv(s,r.v7_relativeSplatPath));return g.useMemo(()=>rv(t,JSON.parse(a),i,n==="path"),[t,a,i,n])}function kL(t,e){return _L(t,e)}function _L(t,e,n,r){zo()||lt(!1);let{navigator:s}=g.useContext(ri),{matches:i}=g.useContext(ss),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Ir(),d;if(e){var h;let b=typeof e=="string"?Co(e):e;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||lt(!1),d=b}else d=u;let f=d.pathname||"/",m=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=QI(t,{pathname:m}),p=NL(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:Hs([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Hs([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return e&&p?g.createElement(Th.Provider,{value:{location:cc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Rs.Pop}},p):p}function jL(){let t=RL(),e=yL(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application
284Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),n?g.createElement("pre",{style:s},n):null,null)}const SL=g.createElement(jL,null);class EL extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?g.createElement(ss.Provider,{value:this.props.routeContext},g.createElement($S.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function TL(t){let{routeContext:e,match:n,children:r}=t,s=g.useContext(sv);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(ss.Provider,{value:e},r)}function NL(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||lt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:m}=n,w=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||w){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,h,f)=>{let m,w=!1,p=null,b=null;n&&(m=l&&h.route.id?l[h.route.id]:void 0,p=h.route.errorElement||SL,c&&(u<0&&f===0?(w=!0,b=null):u===f&&(w=!0,b=h.route.hydrateFallbackElement||null)));let x=e.concat(a.slice(0,f+1)),y=()=>{let v;return m?v=p:w?v=b:h.route.Component?v=g.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=d,g.createElement(TL,{match:h,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?g.createElement(EL,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:y(),routeC
284ontext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var VS=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(VS||{}),Od=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Od||{});function CL(t){let e=g.useContext(sv);return e||lt(!1),e}function zL(t){let e=g.useContext(xL);return e||lt(!1),e}function AL(t){let e=g.useContext(ss);return e||lt(!1),e}function BS(t){let e=AL(),n=e.matches[e.matches.length-1];return n.route.id||lt(!1),n.route.id}function RL(){var t;let e=g.useContext($S),n=zL(Od.UseRouteError),r=BS(Od.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function PL(){let{router:t}=CL(VS.UseNavigateStable),e=BS(Od.UseNavigateStable),n=g.useRef(!1);return FS(()=>{n.current=!0}),g.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,cc({fromRouteId:e},i)))},[t,e])}function OL(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Ch(t){let{to:e,replace:n,state:r,relative:s}=t;zo()||lt(!1);let{future:i,static:a}=g.useContext(ri),{matches:l}=g.useContext(ss),{pathname:c}=Ir(),u=Ao(),d=rv(e,nv(l,i.v7_relativeSplatPath),c,s==="path"),h=JSON.stringify(d);return g.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:s}),[u,h,s,n,r]),null}function Me(t){lt(!1)}function IL(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Rs.Pop,navigator:i,static:a=!1,future:l}=t;zo()&<(!1);let c=e.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:c,navigator:i,static:a,future:cc({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof r=="string"&&(r=Co(r));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:w="default"}=r,p=g.useMemo(()=>{let b=tv(d,c);return b==null?null:{location:{pathname:b,search:h,hash:f,state:m,key:w},navigationType:s}},[c,d,h,f,m,w,s]);return p==null?null:g.createElement(ri.Provider,{value:u},g.createElement(Th.Provider,{children:n,value:p}))}function LL(t){let{children:e,location:n}=t;return kL(Lp(e),n)}new Promise(()=>{});function Lp(t,e){e===void 0&&(e=[]);let n=[];return g.Children.forEach(t,(r,s)=>{if(!g.isValidElement(r))return;let i=[...e,s];if(r.type===g.Fragment){n.push.apply(n,Lp(r.props.children,i));return}r.type!==Me&<(!1),!r.props.index||!r.props.children||lt(!1);let a={id:r.props.id||i.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&&(a.children=Lp(r.props.children,i)),n.push(a)}),n}/** 285 * React Router DOM v6.30.1 286 * 287 * Copyright (c) Remix Software Inc. 288 * 289 * This source code is licensed under the MIT license found in the 290 * LICENSE.md file in the root directory of this source tree. 291 * 292 * @license MIT 293 */function Dp(){return Dp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dp.apply(this,arguments)}function DL(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function ML(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function $L(t,e){return t.button===0&&(!e||e==="_self")&&!ML(t)}function Mp(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function FL(t,e){let n=Mp(t);return e&&e.forEach((r,s)=>
293{n.has(s)||e.getAll(s).forEach(i=>{n.append(s,i)})}),n}const UL=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],VL="6";try{window.__reactRouterVersion=VL}catch{}const BL="startTransition",Z0=$g[BL];function HL(t){let{basename:e,children:n,future:r,window:s}=t,i=g.useRef();i.current==null&&(i.current=qI({window:s,v5Compat:!0}));let a=i.current,[l,c]=g.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=g.useCallback(h=>{u&&Z0?Z0(()=>c(h)):c(h)},[c,u]);return g.useLayoutEffect(()=>a.listen(d),[a,d]),g.useEffect(()=>OL(r),[r]),g.createElement(IL,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const WL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ve=g.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=e,f=DL(e,UL),{basename:m}=g.useContext(ri),w,p=!1;if(typeof u=="string"&&KL.test(u)&&(w=u,WL))try{let v=new URL(window.location.href),k=u.startsWith("//")?new URL(v.protocol+u):new URL(u),_=tv(k.pathname,m);k.origin===v.origin&&_!=null?u=_+k.search+k.hash:p=!0}catch{}let b=wL(u,{relative:s}),x=GL(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:h});function y(v){r&&r(v),v.defaultPrevented||x(v)}return g.createElement("a",Dp({},f,{href:w||b,onClick:p||i?r:y,ref:n,target:c}))});var Q0;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Q0||(Q0={}));var J0;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(J0||(J0={}));function GL(t,e){let{target:n,replace:r,state:s,preventScrollReset:i,relative:a,viewTransition:l}=e===void 0?{}:e,c=Ao(),u=Ir(),d=US(t,{relative:a});return g.useCallback(h=>{if($L(h,n)){h.preventDefault();let f=r!==void 0?r:Pd(u)===Pd(d);c(t,{replace:f,state:s,preventScrollReset:i,relative:a,viewTransition:l})}},[u,c,d,r,s,n,t,i,a,l])}function qL(t){let e=g.useRef(Mp(t)),n=g.useRef(!1),r=Ir(),s=g.useMemo(()=>FL(r.search,n.current?null:e.current),[r.search]),i=Ao(),a=g.useCallback((l,c)=>{const u=Mp(typeof l=="function"?l(s):l);n.current=!0,i("?"+u,c)},[i,s]);return[s,a]}const iv=g.createContext({});function av(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const HS=typeof window<"u",WS=HS?g.useLayoutEffect:g.useEffect,zh=g.createContext(null);function ov(t,e){t.indexOf(e)===-1&&t.push(e)}function lv(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Pr=(t,e,n)=>n>e?e:n<t?t:n;let Ah=()=>{},yo=()=>{};const ts={},KS=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function GS(t){return typeof t=="object"&&t!==null}const qS=t=>/^0[^.\s]+$/u.test(t);function cv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Mn=t=>t,YL=(t,e)=>n=>e(t(n)),Fc=(...t)=>t.reduce(YL),uc=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class uv{constructor(){this.subscriptions=[]}add(e){return ov(this.subscriptions,e),()=>lv(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let i=0;i<s;i++){const a=this.subscriptions[i];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cr=t=>t*1e3,Ln=t=>t/1e3;function YS(t,e){return e?t*(1e3/e):0}const ZS=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ZL=1e-7,QL=12;function JL(t,e,n,r,s){let i,a,l=0;do a=e+(n-e)/2,i=ZS(a,r,s)-t,i>0?n=a:e=a;while(Math.abs(i)>ZL&&++l<QL);return a}function Uc(t,e,n,r){if(t===e&&n===r)return Mn;const s=i=>JL(i,0,1,t,n);return i=>i===0||i===1?i:ZS(s(i),e,r)}const QS=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,JS=t=>e=>1-t(1-e),XS=Uc(.33,1.53,.69,.99),dv=JS(XS),eE=QS(dv),tE=t=>(t*=2)<1?.5*dv(t):.5*(2-Math.pow(2,-10*(t-1))),hv=t=>1-Math.sin(Math.acos(t)),nE=JS(hv),rE=QS(hv),XL=Uc(.42,0,1,1),eD=Uc(0,0,.58,1),sE=Uc(.42,0,.58,1),tD=t=>Array.isArray(t)&&typeof t[0]!="number",iE=t=>Array.isArray(t)&&typeof t[0]=="number",X0={linear:Mn,easeIn:XL,easeInOut:sE,easeOut:eD,circIn:hv,circInOut:rE,circOut:nE,backIn:dv,backInOut:eE,backOut:XS,anticipate:tE},nD=t=>typeof t=="string",ew=t=>{if(iE(t)){yo(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,r,s]=t;
vendor: 27,336 bytes, line 293
293return Uc(e,n,r,s)}else if(nD(t))return yo(X0[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),X0[t];return t},yu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tw={value:null,addProjectionMetrics:null};function rD(t,e){let n=new Set,r=new Set,s=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(h){a.has(h)&&(d.schedule(h),t()),c++,h(l)}const d={schedule:(h,f=!1,m=!1)=>{const p=m&&s?n:r;return f&&a.add(h),p.has(h)||p.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(l=h,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(u),e&&tw.value&&tw.value.frameloop[e].push(c),c=0,n.clear(),s=!1,i&&(i=!1,d.process(h))}};return d}const sD=40;function aE(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=yu.reduce((v,k)=>(v[k]=rD(i,e?k:void 0),v),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:m,postRender:w}=a,p=()=>{const v=ts.useManualTiming?s.timestamp:performance.now();n=!1,ts.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,sD),1)),s.timestamp=v,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),m.process(s),w.process(s),s.isProcessing=!1,n&&e&&(r=!1,t(p))},b=()=>{n=!0,r=!0,s.isProcessing||t(p)};return{schedule:yu.reduce((v,k)=>{const _=a[k];return v[k]=(j,E=!1,S=!1)=>(n||b(),_.schedule(j,E,S)),v},{}),cancel:v=>{for(let k=0;k<yu.length;k++)a[yu[k]].cancel(v)},state:s,steps:a}}const{schedule:Ge,cancel:Zs,state:Tt,steps:Nf}=aE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mn,!0);let Yu;function iD(){Yu=void 0}const Kt={now:()=>(Yu===void 0&&Kt.set(Tt.isProcessing||ts.useManualTiming?Tt.timestamp:performance.now()),Yu),set:t=>{Yu=t,queueMicrotask(iD)}},oE=t=>e=>typeof e=="string"&&e.startsWith(t),lE=oE("--"),aD=oE("var(--"),fv=t=>aD(t)?oD.test(t.split("/*")[0].trim()):!1,oD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function nw(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ro={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},dc={...Ro,transform:t=>Pr(0,1,t)},vu={...Ro,default:1},Al=t=>Math.round(t*1e5)/1e5,mv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lD(t){return t==null}const cD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pv=(t,e)=>n=>!!(typeof n=="string"&&cD.test(n)&&n.startsWith(t)||e&&!lD(n)&&Object.prototype.hasOwnProperty.call(n,e)),cE=(t,e,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(mv);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},uD=t=>Pr(0,255,t),Cf={...Ro,transform:t=>Math.round(uD(t))},Ei={test:pv("rgb","red"),parse:cE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Cf.transform(t)+", "+Cf.transform(e)+", "+Cf.transform(n)+", "+Al(dc.transform(r))+")"};function dD(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const $p={test:pv("#"),parse:dD,transform:Ei.transform},Vc=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),hs=Vc("deg"),zr=Vc("%"),Y=Vc("px"),hD=Vc("vh"),fD=Vc("vw"),rw={...zr,parse:t=>zr.parse(t)/100,transform:t=>zr.transform(t*100)},Ra={test:pv("hsl","hue"),parse:cE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+zr.transform(Al(e))+", "+zr.transform(Al(n))+", "+Al(dc.transform(r))+")"},dt={test:t=>Ei.test(t)||$p.test(t)||Ra.test(t),parse:t=>Ei.test(t)?Ei.parse(t):Ra.test(t)?Ra.parse(t):$p.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ei.transform(t):Ra.transform(t),getAnimatableNone:t=>{const e=dt.parse(t);return e.alpha=0,dt.transform(e)}},mD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pD(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(mv))==null?void 0:e.length)||0)+(((n=t.match(mD))==null?void 0:n.length)||0)>0}const uE="number",dE="color",gD="var",yD="var(",sw="${}",vD=/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 hc(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=e.replace(vD,c=>(dt.test(c)?(r.color.push(i),s.push(dE),n.push(dt.parse(c))):c.startsWith(yD)?(r.var.push(i),s.push(gD),n.push(c)):(r.number.push(i),s.push(uE),n.push(parseFloat(c))),++i,sw)).split(sw);return{values:n,split:l,indexes:r,types:s}}function hE(t){return hc(t).values}function fE(t){const{split:e,types:n}=hc(t),r=e.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=e[a],s[a]!==void 0){const l=n[a];l===uE?i+=Al(s[a]):l===dE?i+=dt.transform(s[a]):i+=s[a]}return i}}const xD=t=>typeof t=="number"?0:dt.test(t)?dt.getAnimatableNone(t):t;function wD(t){const e=hE(t);return fE(t)(e.map(xD))}const Qs={test:pD,parse:hE,createTransformer:fE,getAnimatableNone:wD};function zf(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function bD({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,i=0,a=0;if(!e)s=i=a=n;else{const l=n<.5?n*(1+e):n+e-n*e,c=2*n-l;s=zf(c,l,t+1/3),i=zf(c,l,t),a=zf(c,l,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Id(t,e){return n=>n>0?e:t}const Xe=(t,e,n)=>t+(e-t)*n,Af=(t,e,n)=>{const r=t*t,s=n*(e*e-r)+r;return s<0?0:Math.sqrt(s)},kD=[$p,Ei,Ra],_D=t=>kD.find(e=>e.test(t));function iw(t){const e=_D(t);if(Ah(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Ra&&(n=bD(n)),n}const aw=(t,e)=>{const n=iw(t),r=iw(e);if(!n||!r)return Id(t,e);const s={...n};return i=>(s.red=Af(n.red,r.red,i),s.green=Af(n.green,r.green,i),s.blue=Af(n.blue,r.blue,i),s.alpha=Xe(n.alpha,r.alpha,i),Ei.transform(s))},Fp=new Set(["none","hidden"]);function jD(t,e){return Fp.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function SD(t,e){return n=>Xe(t,e,n)}function gv(t){return typeof t=="number"?SD:typeof t=="string"?fv(t)?Id:dt.test(t)?aw:ND:Array.isArray(t)?mE:typeof t=="object"?dt.test(t)?aw:ED:Id}function mE(t,e){const n=[...t],r=n.length,s=t.map((i,a)=>gv(i)(i,e[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function ED(t,e){const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=gv(t[s])(t[s],e[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function TD(t,e){const n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const i=e.types[s],a=t.indexes[i][r[i]],l=t.values[a]??0;n[s]=l,r[i]++}return n}const ND=(t,e)=>{const n=Qs.createTransformer(e),r=hc(t),s=hc(e);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Fp.has(t)&&!s.values.length||Fp.has(e)&&!r.values.length?jD(t,e):Fc(mE(TD(r,s),s.values),n):(Ah(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Id(t,e))};function pE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Xe(t,e,n):gv(t)(t,e)}const CD=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Ge.update(e,n),stop:()=>Zs(e),now:()=>Tt.isProcessing?Tt.timestamp:Kt.now()}},gE=(t,e,n=10)=>{let r="";const s=Math.max(Math.round(e/n),2);for(let i=0;i<s;i++)r+=Math.round(t(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ld=2e4;function yv(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Ld;)e+=n,r=t.next(e);return e>=Ld?1/0:e}function zD(t,e=100,n){const r=n({...t,keyframes:[0,e]}),s=Math.min(yv(r),Ld);return{type:"keyframes",ease:i=>r.next(s*i).value/e,duration:Ln(s)}}const AD=5;function yE(t,e,n){const r=Math.max(e-AD,0);return YS(n-t(r),e-r)}const Qe={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},Rf=.001;function RD({duration:t=Qe.duration,bounce:e=Qe.bounce,velocity:n=Qe.velocity,mass:r=Qe.mass}){let s,i;Ah(t<=Cr(Qe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=Pr(Qe.minDamping,Qe.maxDamping,a),t=Pr(Qe.minDuration,Qe.maxDuration,Ln(t)),a<1?(s=u=>{const d=u*a,h=d*t,f=d-n,m=Up(u,a),w=Math.exp(-h);return Rf-f/m*w},i=u=>{const h=u*a*t,f=h*n+n,m=Math.pow(a,2)*Math.pow(u,2)*t,w=Math.exp(-h),p=Up(Math.pow(u,2),a);return(-s(u)+Rf>0?-1:1)*((f-m)*w)/p}):(s=u=>{const d=Math.exp(-u*t),h=(u-n)*t+1;return-Rf+d*h},i=u=>{const d=Math.exp(-u*t),h=(n-u)*(t*t);return d*h});const l=5/t,c=OD(s,i,l);if(t=Cr(t),isNaN(c))return{stiffness:Qe.stiffness,damping:Qe.damping,duration:t};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:t}}}const PD=12;function OD(t,e,n){let r=n;for(let s=1;s<PD;s++)r=r-t(r)/e(r);return r}function Up(t,e){return t*Math.sqrt(1-e*e)}const ID=["duration","bounce"],LD=["stiffness","damping","mass"];function ow(t,e){return e.some(n=>t[n]!==void 0)}function DD(t){let e={velocity:Qe.velocity,stiffness:Qe.stiffness,damping:Qe.damping,mass:Qe.mass,isResolvedFromDuration:!1,...t};if(!ow(t,LD)&&ow(t,ID))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Pr(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Qe.mass,stiffness:s,damping:i}}else{const n=RD(t);e={...e,...n,mass:Qe.mass},e.isResolvedFromDuration=!0}return e}function Dd(t=Qe.visualDuration,e=Qe.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:m}=DD({...n,velocity:-Ln(n.velocity||0)}),w=f||0,p=u/(2*Math.sqrt(c*d)),b=a-i,x=Ln(Math.sqrt(c/d)),y=Math.abs(b)<5;r||(r=y?Qe.restSpeed.granular:Qe.restSpeed.default),s||(s=y?Qe.restDelta.granular:Qe.restDelta.default);let v;if(p<1){const _=Up(x,p);v=j=>{const E=Math.exp(-p*x*j);return a-E*((w+p*x*b)/_*Math.sin(_*j)+b*Math.cos(_*j))}}else if(p===1)v=_=>a-Math.exp(-x*_)*(b+(w+x*b)*_);else{const _=x*Math.sqrt(p*p-1);v=j=>{const E=Math.exp(-p*x*j),S=Math.min(_*j,300);return a-E*((w+p*x*b)*Math.sinh(S)+_*b*Math.cosh(S))/_}}const k={calculatedDuration:m&&h||null,next:_=>{const j=v(_);if(m)l.done=_>=h;else{let E=_===0?w:0;p<1&&(E=_===0?Cr(w):yE(v,_,j));const S=Math.abs(E)<=r,A=Math.abs(a-j)<=s;l.done=S&&A}return l.value=l.done?a:j,l},toString:()=>{const _=Math.min(yv(k),Ld),j=gE(E=>k.next(_*E).value,_,30);return _+"ms "+j},toTransition:()=>{}};return k}Dd.applyToOptions=t=>{const e=zD(t,100,Dd);return t.ease=e.ease,t.duration=Cr(e.duration),t.type="keyframes",t};function Vp({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=t[0],f={done:!1,value:h},m=S=>l!==void 0&&S<l||c!==void 0&&S>c,w=S=>l===void 0?c:c===void 0||Math.abs(l-S)<Math.abs(c-S)?l:c;let p=n*e;const b=h+p,x=a===void 0?b:a(b);x!==b&&(p=x-h);const y=S=>-p*Math.exp(-S/r),v=S=>x+y(S),k=S=>{const A=y(S),z=v(S);f.done=Math.abs(A)<=u,f.value=f.done?x:z};let _,j;const E=S=>{m(f.value)&&(_=S,j=Dd({keyframes:[f.value,w(f.value)],velocity:yE(v,S,f.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:S=>{let A=!1;return!j&&_===void 0&&(A=!0,k(S),E(S)),_!==void 0&&S>=_?j.next(S-_):(!A&&k(S),f)}}}function MD(t,e,n){const r=[],s=n||ts.mix||pE,i=t.length-1;for(let a=0;a<i;a++){let l=s(t[a],t[a+1]);if(e){const c=Array.isArray(e)?e[a]||Mn:e;l=Fc(c,l)}r.push(l)}return r}function $D(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const i=t.length;if(yo(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=MD(e,r,s),c=l.length,u=d=>{if(a&&d<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(d<t[h+1]);h++);const f=uc(t[h],t[h+1],d);return l[h](f)};return n?d=>u(Pr(t[0],t[i-1],d)):u}function FD(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=uc(0,e,r);t.push(Xe(n,1,s))}}function UD(t){const e=[0];return FD(e,t.length-1),e}function VD(t,e){return t.map(n=>n*e)}function BD(t,e){return t.map(()=>e||sE).splice(0,t.length-1)}function Rl({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=tD(r)?r.map(ew):ew(r),i={done:!1,value:e[0]},a=VD(n&&n.length===e.length?n:UD(e),t),l=$D(a,e,{ease:Array.isArray(s)?s:BD(e,s)});return{calculatedDuration:t,next:c=>(i.value=l(c),i.done=c>=t,i)}}const HD=t=>t!==null;function vv(t,{repeat:e,repeatType:n="loop"},r,s=1){const i=t.filter(HD),l=s<0||e&&n!=="loop"&&e%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const WD={decay:Vp,inertia:Vp,tween:Rl,keyframes:Rl,spring:Dd};function vE(t){typeof t.type=="string"&&(t.type=WD[t.type])}class xv{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const KD=t=>t/100;class wv extends xv{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Kt.now()&&this.tick(Kt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;vE(e);const{type:n=Rl,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=e;let{keyframes:l}=e;const c=n||Rl;c!==Rl&&typeof l[0]!="number"&&(this.mixKeyframes=Fc(KD,pE(l[0],l[1])),l=[0,100]);const u=c({...e,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=yv(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:m,type:w,onUpdate:p,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?x<0:x>s;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,k=r;if(h){const S=Math.min(this.currentTime,s)/l;let A=Math.floor(S),z=S%1;!z&&S>=1&&(z=1),z===1&&A--,A=Math.min(A,h+1),!!(A%2)&&(f==="reverse"?(z=1-z,m&&(z-=m/l)):f==="mirror"&&(k=a)),v=Pr(0,1,z)*l}const _=y?{done:!1,value:d[0]}:k.next(v);i&&(_.value=i(_.value));let{done:j}=_;!y&&c!==null&&(j=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return E&&w!==Vp&&(_.value=vv(d,this.options,b,this.speed)),p&&p(_.value),E&&this.finish(),_}then(e,n){return this.finished.then(e,n)}get duration(){return Ln(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ln(e)}get time(){return Ln(this.currentTime)}set time(e){var n;e=Cr(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Kt.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Ln(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:e=CD,startTime:n}=this.options;this.driver||(this.driver=e(a=>this.tick(a))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Kt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function GD(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ti=t=>t*180/Math.PI,Bp=t=>{const e=Ti(Math.atan2(t[1],t[0]));return Hp(e)},qD={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Bp,rotateZ:Bp,skewX:t=>Ti(Math.atan(t[1])),skewY:t=>Ti(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Hp=t=>(t=t%360,t<0&&(t+=360),t),lw=Bp,cw=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),uw=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),YD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cw,scaleY:uw,scale:t=>(cw(t)+uw(t))/2,rotateX:t=>Hp(Ti(Math.atan2(t[6],t[5]))),rotateY:t=>Hp(Ti(Math.atan2(-t[2],t[0]))),rotateZ:lw,rotate:lw,skewX:t=>Ti(Math.atan(t[4])),skewY:t=>Ti(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Wp(t){return t.includes("scale")?1:0}function Kp(t,e){if(!t||t==="none")return Wp(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=YD,s=n;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=qD,s=l}if(!s)return Wp(e);const i=r[e],a=s[1].split(",").map(QD);return typeof i=="function"?i(a):a[i]}const ZD=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Kp(n,e)};function QD(t){return parseFloat(t.trim())}const Po=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oo=new Set(Po),dw=t=>t===Ro||t===Y,JD=new Set(["x","y","z"]),XD=Po.filter(t=>!JD.has(t));function eM(t){const e=[];return XD.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Ps={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Kp(e,"x"),y:(t,{transform:e})=>Kp(e,"y")};Ps.translateX=Ps.x;Ps.translateY=Ps.y;const Ui=new Set;let Gp=!1,qp=!1,Yp=!1;function xE(){if(qp){const t=Array.from(Ui).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const s=eM(r);s.length&&(n.set(r,s),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,a])=>{var l;(l=r.getValue(i))==null||l.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qp=!1,Gp=!1,Ui.forEach(t=>t.complete(Yp)),Ui.clear()}function wE(){Ui.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(qp=!0)})}function tM(){Yp=!0,wE(),xE(),Yp=!1}class bv{constructor(e,n,r,s,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ui.add(this),Gp||(Gp=!0,Ge.read(wE),Ge.resolveKeyframes(xE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:s}=this;if(e[0]===null){const i=s==null?void 0:s.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),s&&i===void 0&&s.set(e[0])}GD(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ui.delete(this)}cancel(){this.state==="scheduled"&&(Ui.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const nM=t=>t.startsWith("--");function rM(t,e,n){nM(e)?t.style.setProperty(e,n):t.style[e]=n}const sM=cv(()=>window.ScrollTimeline!==void 0),iM={};function aM(t,e){const n=cv(t);return()=>iM[e]??n()}const bE=aM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gl=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,hw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gl([0,.65,.55,1]),circOut:gl([.55,0,1,.45]),backIn:gl([.31,.01,.66,-.59]),backOut:gl([.33,1.53,.69,.99])};function kE(t,e){if(t)return typeof t=="function"?bE()?gE(t,e):"ease-out":iE(t)?gl(t):Array.isArray(t)?t.map(n=>kE(n,e)||hw.easeOut):hw[t]}function oM(t,e,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[e]:n};c&&(d.offset=c);const h=kE(l,s);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(d,f)}function _E(t){return typeof t=="function"&&"applyToOptions"in t}function lM({type:t,...e}){return _E(t)&&bE()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class cM extends xv{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,yo(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=lM(e);this.animation=oM(n,r,s,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=vv(s,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):rM(n,r,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ln(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ln(e)}get time(){return Ln(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cr(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&sM()?(this.animation.timeline=e,Mn):n(this)}}const jE={anticipate:tE,backInOut:eE,circInOut:rE};function uM(t){return t in jE}function dM(t){typeof t.ease=="string"&&uM(t.ease)&&(t.ease=jE[t.ease])}const Pf=10;class hM extends cM{constructor(e){dM(e),vE(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...a}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const l=new wv({...a,autoplay:!1}),c=Math.max(Pf,Kt.now()-this.startTime),u=Pr(0,Pf,c-Pf);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const fw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Qs.test(t)||t==="0")&&!t.startsWith("url("));function fM(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function mM(t,e,n,r){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],a=fw(s,e),l=fw(i,e);return Ah(a===l,`You are trying to animate ${e} from "${s}" to "${i}". "${a?i:s}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:fM(t)||(n==="spring"||_E(n))&&r}function Zp(t){t.duration=0,t.type="keyframes"}const pM=new Set(["opacity","clipPath","filter","transform"]),gM=cv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function yM(t){var d;const{motionValue:e,name:n,repeatDelay:r,repeatType:s,damping:i,type:a}=t;if(!(((d=e==null?void 0:e.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return gM()&&n&&pM.has(n)&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&a!=="inertia"}const vM=40;class xM extends xv{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){var w;super(),this.stop=()=>{var p,b;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Kt.now();
293const f={autoplay:e,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...h},m=(d==null?void 0:d.KeyframeResolver)||bv;this.keyframeResolver=new m(l,(p,b,x)=>this.onKeyframesResolved(p,b,f,!x),c,u,d),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(e,n,r,s){this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Kt.now(),mM(e,i,a,l)||((ts.instantAnimations||!c)&&(d==null||d(vv(e,r,n))),e[0]=e[e.length-1],Zp(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>vM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},m=!u&&yM(f)?new hM({...f,element:f.motionValue.owner.current}):new wv(f);m.finished.then(()=>this.notifyFinished()).catch(Mn),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),tM()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const wM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bM(t){const e=wM.exec(t);if(!e)return[,];const[,n,r,s]=e;return[`--${n??r}`,s]}const kM=4;function SE(t,e,n=1){yo(n<=kM,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=bM(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const a=i.trim();return KS(a)?parseFloat(a):a}return fv(s)?SE(s,e,n+1):s}function kv(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const _M={type:"spring",stiffness:500,damping:25,restSpeed:10},jM=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),SM={type:"keyframes",duration:.8},EM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TM=(t,{keyframes:e})=>e.length>2?SM:Oo.has(t)?t.startsWith("scale")?jM(e[1]):_M:EM;function NM({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const CM=t=>t!==null;function zM(t,{repeat:e,repeatType:n="loop"},r){const s=t.filter(CM),i=e&&n!=="loop"&&e%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function EE(t,e,n,r=0,s=1){const i=Array.from(t).sort((u,d)=>u.sortNodePosition(d)).indexOf(e),a=t.size,l=(a-1)*r;return typeof n=="function"?n(i,a):s===1?i*r:l-i*r}const _v=(t,e,n,r={},s,i)=>a=>{const l=kv(r,t)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Cr(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:f=>{e.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:i?void 0:s};NM(l)||Object.assign(d,TM(t,d)),d.duration&&(d.duration=Cr(d.duration)),d.repeatDelay&&(d.repeatDelay=Cr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Zp(d),d.delay===0&&(h=!0)),(ts.instantAnimations||ts.skipAnimations)&&(h=!0,Zp(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!i&&e.get()!==void 0){const f=zM(d.keyframes,l);if(f!==void 0){Ge.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new wv(d):new xM(d)},TE=new Set(["width","height","top","left","right","bottom",...Po]),mw=30,AM=t=>!isNaN(parseFloat(t));class RM{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Kt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Kt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=AM(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new uv);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Kt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>mw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mw);return YS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(t,e){return new RM(t,e)}function pw(t){const e=[{},{}];
vendor: 29,617 bytes, line 293
293return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function jv(t,e,n,r){if(typeof e=="function"){const[s,i]=pw(r);e=e(n!==void 0?n:t.custom,s,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,i]=pw(r);e=e(n!==void 0?n:t.custom,s,i)}return e}function Ka(t,e,n){const r=t.getProps();return jv(r,e,n!==void 0?n:r.custom,t)}const Qp=t=>Array.isArray(t);function PM(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,vo(n))}function OM(t){return Qp(t)?t[t.length-1]||0:t}function IM(t,e){const n=Ka(t,e);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=OM(i[a]);PM(t,a,l)}}const Mt=t=>!!(t&&t.getVelocity);function LM(t){return!!(Mt(t)&&t.add)}function Jp(t,e){const n=t.getValue("willChange");if(LM(n))return n.add(e);if(!n&&ts.WillChange){const r=new ts.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Sv(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const DM="framerAppearId",NE="data-"+Sv(DM);function CE(t){return t.props[NE]}function MM({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function zE(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(i=r);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const d in l){const h=t.getValue(d,t.latestValues[d]??null),f=l[d];if(f===void 0||u&&MM(u,d))continue;const m={delay:n,...kv(i||{},d)},w=h.get();if(w!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===w&&!m.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const x=CE(t);if(x){const y=window.MotionHandoffAnimation(x,d,Ge);y!==null&&(m.startTime=y,p=!0)}}Jp(t,d),h.start(_v(d,h,f,t.shouldReduceMotion&&TE.has(d)?{type:!1}:m,t,p));const b=h.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{Ge.update(()=>{a&&IM(t,a)})}),c}function Xp(t,e,n={}){var c;const r=Ka(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(zE(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=s;return $M(t,e,u,d,h,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function $M(t,e,n=0,r=0,s=0,i=1,a){const l=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),l.push(Xp(c,e,{...a,delay:n+(typeof r=="function"?0:r)+EE(t.variantChildren,c,r,s,i)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(l)}function FM(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(i=>Xp(t,i,n));r=Promise.all(s)}else if(typeof e=="string")r=Xp(t,e,n);else{const s=typeof e=="function"?Ka(t,e,n.custom):e;r=Promise.all(zE(t,s,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const UM={test:t=>t==="auto",parse:t=>t},AE=t=>e=>e.test(t),RE=[Ro,Y,zr,hs,fD,hD,UM],gw=t=>RE.find(AE(t));function VM(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qS(t):!0}const BM=new Set(["brightness","contrast","saturate","opacity"]);function HM(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(mv)||[];if(!r)return t;const s=n.replace(r,"");let i=BM.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+s+")"}const WM=/\b([a-z-]*)\(.*?\)/gu,eg={...Qs,getAnimatableNone:t=>{const e=t.match(WM);return e?e.map(HM).join(" "):t}},yw={...Ro,transform:Math.round},KM={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:vu,scaleX:vu,scaleY:vu,scaleZ:vu,skew:hs,skewX:hs,skewY:hs,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:dc,originX:rw,originY:rw,originZ:Y},Ev={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,backgroundPositionX:Y,backgroundPositionY:Y,...KM,zIndex:yw,fillOpacity:dc,strokeOpacity:dc,numOctaves:yw},GM={...Ev,color:dt,backgroundColor:dt,outlineColor:dt,fill:dt,stroke:dt,borderColor:dt,borderTopColor:dt,borderRightColor:dt,borderBottomColor:dt,borderLeftColor:dt,filter:eg,WebkitFilter:eg},PE=t=>GM[t];function OE(t,e){let n=PE(t);return n!==eg&&(n=Qs),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qM=new Set(["auto","none","0"]);function YM(t,e,n){let r=0,s;for(;r<t.length&&!s;){const i=t[r];typeof i=="string"&&!qM.has(i)&&hc(i).values.length&&(s=t[r]),r++}if(s&&n)for(const i of e)t[i]=OE(n,s)}class ZM extends bv{constructor(e,n,r,s,i){super(e,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let h=e[d];if(typeof h=="string"&&(h=h.trim(),fv(h))){const f=SE(h,n.current);f!==void 0&&(e[d]=f),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!TE.has(r)||e.length!==2)return;const[s,i]=e,a=gw(s),l=gw(i),c=nw(s),u=nw(i);if(c!==u&&Ps[r]){this.needsMeasurement=!0;return}if(a!==l)if(dw(a)&&dw(l))for(let d=0;d<e.length;d++){const h=e[d];typeof h=="string"&&(e[d]=parseFloat(h))}else Ps[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let s=0;s<e.length;s++)(e[s]===null||VM(e[s]))&&r.push(s);r.length&&YM(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ps[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(r,s).jump(s,!1)}measureEndState(){var l;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=Ps[n](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function QM(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const s=document.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const IE=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function LE(t){return GS(t)&&"offsetHeight"in t}const{schedule:Tv,cancel:S8}=aE(queueMicrotask,!1),Qn={x:!1,y:!1};function DE(){return Qn.x||Qn.y}function JM(t){return t==="x"||t==="y"?Qn[t]?null:(Qn[t]=!0,()=>{Qn[t]=!1}):Qn.x||Qn.y?null:(Qn.x=Qn.y=!0,()=>{Qn.x=Qn.y=!1})}function ME(t,e){const n=QM(t),r=new AbortController,s={passive:!0,...e,signal:r.signal};return[n,s,()=>r.abort()]}function vw(t){return!(t.pointerType==="touch"||DE())}function XM(t,e,n={}){const[r,s,i]=ME(t,n),a=l=>{if(!vw(l))return;const{target:c}=l,u=e(c,l);if(typeof u!="function"||!c)return;const d=h=>{vw(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,s)};return r.forEach(l=>{l.addEventListener("pointerenter",a,s)}),i}const $E=(t,e)=>e?t===e?!0:$E(t,e.parentElement):!1,Nv=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,e4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FE(t){return e4.has(t.tagName)||t.isContentEditable===!0}const Zu=new WeakSet;function xw(t){return e=>{e.key==="Enter"&&t(e)}}function Of(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const t4=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=xw(()=>{if(Zu.has(n))return;Of(n,"down");const s=xw(()=>{Of(n,"up")}),i=()=>Of(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",i,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function ww(t){return Nv(t)&&!DE()}function n4(t,e,n={}){const[r,s,i]=ME(t,n),a=l=>{const c=l.currentTarget;if(!ww(l))return;Zu.add(c);const u=e(c,l),d=(m,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Zu.has(c)&&Zu.delete(c),ww(m)&&typeof u=="function"&&u(m,{success:w})},h=m=>{d(m,c===window||c===document||n.useGlobalTarget||$E(c,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),LE(l)&&(l.addEventListener("focus",u=>t4(u,s)),!FE(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function UE(t){return GS(t)&&"ownerSVGElement"in t}function r4(t){return UE(t)&&t.tagName==="svg"}const s4=[...RE,dt,Qs],i4=t=>s4.find(AE(t)),bw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pa=()=>({x:bw(),y:bw()}),kw=()=>({min:0,max:0}),pt=()=>({x:kw(),y:kw()}),tg={current:null},VE={current:!1},a4=typeof window<"u";function o4(){if(VE.current=!0,!!a4)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tg.current=t.matches;t.addEventListener("change",e),e()}else tg.current=!1}const l4=new WeakMap;function Rh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function fc(t){return typeof t=="string"||Array.isArray(t)}const Cv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zv=["initial",...Cv];function Ph(t){return Rh(t.animate)||zv.some(e=>fc(t[e]))}function BE(t){return!!(Ph(t)||t.variants)}function c4(t,e,n){for(const r in e){const s=e[r],i=n[r];if(Mt(s))t.addValue(r,s);else if(Mt(i))t.addValue(r,vo(s,{owner:t}));else if(i!==s)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=t.getStaticValue(r);t.addValue(r,vo(a!==void 0?a:s,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const _w=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Md={};function HE(t){Md=t}function u4(){return Md}class d4{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bv,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 f=Kt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ge.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=Ph(n),this.isVariantNode=BE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const m=h[f];c[f]!==void 0&&Mt(m)&&m.set(c[f])}}mount(e){var n;this.current=e,l4.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(VE.current||o4(),this.shouldReduceMotion=tg.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Zs(this.notifyUpdate),Zs(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Oo.has(e);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Md){const n=Md[e];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_w.length;r++){const s=_w[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=e[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=c4(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(KS(r)||qS(r))?r=parseFloat(r):!i4(r)&&Qs.test(n)&&(r=OE(e,n)),this.setBaseTarget(e,Mt(r)?r.get():r)),Mt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=jv(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(r=a[e])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Mt(s)?s:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new uv),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Tv.render(this.render)}}class si{constructor(e){this.isMounted=!1,this.node=e}update(){}}class WE extends d4{constructor(){super(...arguments),this.KeyframeResolver=ZM}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const r=e.style;return r?r[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Mt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function KE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function h4({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function f4(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function If(t){return t===void 0||t===1}function ng({scale:t,scaleX:e,scaleY:n}){return!If(t)||!If(e)||!If(n)}function xi(t){return ng(t)||GE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function GE(t){return jw(t.x)||jw(t.y)}function jw(t){return t&&t!=="0%"}function $d(t,e,n){const r=t-n,s=e*r;return n+s}function Sw(t,e,n,r,s){return s!==void 0&&(t=$d(t,s,r)),$d(t,n,r)+e}function rg(t,e=0,n=1,r,s){t.min=Sw(t.min,e,n,r,s),t.max=Sw(t.max,e,n,r,s)}function qE(t,{x:e,y:n}){rg(t.x,e.translate,e.scale,e.originPoint),rg(t.y,n.translate,n.scale,n.originPoint)}const Ew=.999999999999,Tw=1.0000000000001;function m4(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ia(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,qE(t,a)),r&&xi(i.latestValues)&&Ia(t,i.latestValues))}e.x<Tw&&e.x>Ew&&(e.x=1),e.y<Tw&&e.y>Ew&&(e.y=1)}function Oa(t,e){t.min=t.min+e,t.max=t.max+e}function Nw(t,e,n,r,s=.5){const i=Xe(t.min,t.max,s);rg(t,e,n,i,r)}function Ia(t,e){Nw(t.x,e.x,e.scaleX,e.scale,e.originX),Nw(t.y,e.y,e.scaleY,e.scale,e.originY)}function YE(t,e){return KE(f4(t.getBoundingClientRect(),e))}function p4(t,e,n){const r=YE(t,n),{scroll:s}=e;return s&&(Oa(r.x,s.offset.x),Oa(r.y,s.offset.y)),r}const g4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},y4=Po.length;function v4(t,e,n){let r="",s=!0;for(let i=0;i<y4;i++){const a=Po[i],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=IE(l,Ev[a]);if(!c){s=!1;const d=g4[a]||a;r+=`${d}(${u}) `}n&&(e[a]=u)}}return r=r.trim(),n?r=n(e,s?"":r):s&&(r="none"),r}function Av(t,e,n){const{style:r,vars:s,transformOrigin:i}=t;let a=!1,l=!1;for(const c in e){const u=e[c];if(Oo.has(c)){a=!0;continue}else if(lE(c)){s[c]=u;continue}else{const d=IE(u,Ev[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(e.transform||(a||n?r.transform=v4(e,t.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}function ZE(t,{style:e,vars:n},r,s){const i=t.style;let a;for(a in e)i[a]=e[a];s==null||s.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function Cw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const nl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Y.test(t))t=parseFloat(t);else return t;const n=Cw(t,e.target.x),r=Cw(t,e.target.y);return`${n}% ${r}%`}},x4={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=Qs.parse(t);if(s.length>5)return r;const i=Qs.createTransformer(t),a=typeof s[0]!="number"?1:0,l=n.x.scale*e.x,c=n.y.scale*e.y;s[0+a]/=l,s[1+a]/=c;const u=Xe(l,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=u),typeof s[3+a]=="number"&&(s[3+a]/=u),i(s)}},sg={borderRadius:{...nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nl,borderTopRightRadius:nl,borderBottomLeftRadius:nl,borderBottomRightRadius:nl,boxShadow:x4};function QE(t,{layout:e,layoutId:n}){return Oo.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!sg[t]||t==="opacity")}function Rv(t,e,n){var a;const r=t.style,s=e==null?void 0:e.style,i={};if(!r)return i;for(const l in r)(Mt(r[l])||s&&Mt(s[l])||QE(l,t)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=r[l]);return i}function w4(t){return window.getComputedStyle(t)}class b4 extends WE{constructor(){super(...arguments),this.type="html",this.renderInstance=ZE}readValueFromInstance(e,n){var r;if(Oo.has(n))return(r=this.projection)!=null&&r.isProjecting?Wp(n):ZD(e,n);{const s=w4(e),i=(lE(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return YE(e,n)}build(e,n,r){Av(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Rv(e,n,r)}}const k4={offset:"stroke-dashoffset",array:"stroke-dasharray"},_4={offset:"strokeDashoffset",array:"strokeDasharray"};function j4(t,e,n=1,r=0,s=!0){t.pathLength=1;const i=s?k4:_4;t[i.offset]=Y.transform(-r);const a=Y.transform(e),l=Y.transform(n);t[i.array]=`${a} ${l}`}const S4=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function JE(t,{attrX:e,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(Av(t,l,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox);for(const m of S4)h[m]!==void 0&&(f[m]=h[m],delete h[m]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&j4(h,s,i,a,!1)}const XE=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"]),eT=t=>typeof t=="string"&&t.toLowerCase()==="svg";function E4(t,e,n,r){ZE(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(XE.has(s)?s:Sv(s),e.attrs[s])}function tT(t,e,n){const r=Rv(t,e,n);for(const s in t)if(Mt(t[s])||Mt(e[s])){const i=Po.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=t[s]}return r}class T4 extends WE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Oo.has(n)){const r=PE(n);return r&&r.default||0}return n=XE.has(n)?n:Sv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return tT(e,n,r)}build(e,n,r){JE(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,s){E4(e,n,r,s)}mount(e){this.isSVGTag=eT(e.tagName),super.mount(e)}}const N4=zv.length;function nT(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?nT(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<N4;n++){const r=zv[n],s=t.props[r];(fc(s)||s===!1)&&(e[r]=s)}return e}function rT(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const C4=[...Cv].reverse(),z4=Cv.length;function A4(t){return e=>Promise.all(e.map(({animation:n,options:r})=>FM(t,n,r)))}function R4(t){let e=A4(t),n=zw(),r=!0;const s=c=>(u,d)=>{var f;const h=Ka(t,d,c==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:m,transitionEnd:w,...p}=h;u={...u,...p,...w}}return u};function i(c){e=c(t)}function a(c){const{props:u}=t,d=nT(t.parent)||{},h=[],f=new Set;let m={},w=1/0;for(let b=0;b<z4;b++){const x=C4[b],y=n[x],v=u[x]!==void 0?u[x]:d[x],k=fc(v),_=x===c?y.isActive:null;_===!1&&(w=b);let j=v===d[x]&&v!==u[x]&&k;if(j&&r&&t.manuallyAnimateOnMount&&(j=!1),y.protectedKeys={...m},!y.isActive&&_===null||!v&&!y.prevProp||Rh(v)||typeof v=="boolean")continue;const E=P4(y.prevProp,v);let S=E||x===c&&y.isActive&&!j&&k||b>w&&k,A=!1;const z=Array.isArray(v)?v:[v];let C=z.reduce(s(x),{});_===!1&&(C={});const{prevResolvedValues:L={}}=y,P={...L,...C},O=H=>{S=!0,f.has(H)&&(A=!0,f.delete(H)),y.needsAnimating[H]=!0;const R=t.getValue(H);R&&(R.liveStyle=!1)};for(const H in P){const R=C[H],I=L[H];if(m.hasOwnProperty(H))continue;let V=!1;Qp(R)&&Qp(I)?V=!rT(R,I):V=R!==I,V?R!=null?O(H):f.add(H):R!==void 0&&f.has(H)?O(H):y.protectedKeys[H]=!0}y.prevProp=v,y.prevResolvedValues=C,y.isActive&&(m={...m,...C}),r&&t.blockInitialAnimation&&(S=!1);const Z=j&&E;S&&(!Z||A)&&h.push(...z.map(H=>{const R={type:x};if(typeof H=="string"&&r&&!Z&&t.manuallyAnimateOnMount&&t.parent){const{parent:I}=t,V=Ka(I,H);if(I.enteringChildren&&V){const{delayChildren:G}=V.transition||{};R.delay=EE(I.enteringChildren,t,G)}}return{animation:H,options:R}}))}if(f.size){const b={};if(typeof u.initial!="boolean"){const x=Ka(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(b.transition=x.transition)}f.forEach(x=>{const y=t.getBaseTarget(x),v=t.getValue(x);v&&(v.liveStyle=!0),b[x]=y??null}),h.push({animation:b})}let p=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(h):Promise.resolve()}function l(c,u){var h;if(n[c].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var m;return(m=f.animationState)==null?void 0:m.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=zw()}}}function P4(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!rT(e,t):!1}function hi(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zw(){return{animate:hi(!0),whileInView:hi(),whileHover:hi(),whileTap:hi(),whileDrag:hi(),whileFocus:hi(),exit:hi()}}const sT=1e-4,O4=1-sT,I4=1+sT,iT=.01,L4=0-iT,D4=0+iT;function Gt(t){return t.max-t.min}function M4(t,e,n){return Math.abs(t-e)<=n}function Aw(t,e,n,r=.5){t.origin=r,t.originPoint=Xe(e.min,e.max,t.origin),t.scale=Gt(n)/Gt(e),t.translate=Xe(n.min,n.max,t.origin)-t.originPoint,(t.scale>=O4&&t.scale<=I4||isNaN(t.scale))&&(t.scale=1),(t.translate>=L4&&t.translate<=D4||isNaN(t.translate))&&(t.translate=0)}function Pl(t,e,n,r){Aw(t.x,e.x,n.x,r?r.originX:void 0),Aw(t.y,e.y,n.y,r?r.originY:void 0)}function Rw(t,e,n){t.min=n.min+e.min,t.max=t.min+Gt(e)}function $4(t,e,n){Rw(t.x,e.x,n.x),Rw(t.y,e.y,n.y)}function Pw(t,e,n){t.min=e.min-n.min,t.max=t.min+Gt(e)}function Fd(t,e,n){Pw(t.x,e.x,n.x),Pw(t.y,e.y,n.y)}function Ow(t,e,n,r,s){return t-=e,t=$d(t,1/n,r),s!==void 0&&(t=$d(t,1/s,r)),t}function F4(t,e=0,n=1,r=.5,s,i=t,a=t){if(zr.test(e)&&(e=parseFloat(e),e=Xe(a.min,a.max,e/100)-a.min),typeof e!="number")return;let l=Xe(i.min,i.max,r);t===i&&(l-=e),t.min=Ow(t.min,e,n,l,s),t.max=Ow(t.max,e,n,l,s)}function Iw(t,e,[n,r,s],i,a){F4(t,e[n],e[r],e[s],e.scale,i,a)}const U4=["x","scaleX","originX"],V4=["y","scaleY","originY"];function Lw(t,e,n,r){Iw(t.x,e,U4,n?n.x:void 0,r?r.x:void 0),Iw(t.y,e,V4,n?n.y:void 0,r?r.y:void 0)}function Dw(t,e){t.min=e.min,t.max=e.max}function Yn(t,e){Dw(t.x,e.x),Dw(t.y,e.y)}function Mw(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function $w(t){return t.translate===0&&t.scale===1}function aT(t){return $w(t.x)&&$w(t.y)}function Fw(t,e){return t.min===e.min&&t.max===e.max}function B4(t,e){return Fw(t.x,e.x)&&Fw(t.y,e.y)}function Uw(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function oT(t,e){return Uw(t.x,e.x)&&Uw(t.y,e.y)}function Vw(t){return Gt(t.x)/Gt(t.y)}function Bw(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function zn(t){return[t("x"),t("y")]}function H4(t,e,n){let r="";const s=t.x.translate/e.x,i=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:m,skewY:w}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),w&&(r+=`skewY(${w}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c}
293)`),r||"none"}const lT=["TopLeft","TopRight","BottomLeft","BottomRight"],W4=lT.length,Hw=t=>typeof t=="string"?parseFloat(t):t,Ww=t=>typeof t=="number"||Y.test(t);function K4(t,e,n,r,s,i){s?(t.opacity=Xe(0,n.opacity??1,G4(r)),t.opacityExit=Xe(e.opacity??1,0,q4(r))):i&&(t.opacity=Xe(e.opacity??1,n.opacity??1,r));for(let a=0;a<W4;a++){const l=`border${lT[a]}Radius`;let c=Kw(e,l),u=Kw(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Ww(c)===Ww(u)?(t[l]=Math.max(Xe(Hw(c),Hw(u),r),0),(zr.test(u)||zr.test(c))&&(t[l]+="%")):t[l]=u}(e.rotate||n.rotate)&&(t.rotate=Xe(e.rotate||0,n.rotate||0,r))}function Kw(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const G4=cT(0,.5,nE),q4=cT(.5,.95,Mn);function cT(t,e,n){return r=>r<t?0:r>e?1:n(uc(t,e,r))}function Y4(t,e){const n=Kt.now(),r=({timestamp:s})=>{const i=s-n;i>=e&&(Zs(r),t(i-e))};return Ge.setup(r,!0),()=>Zs(r)}function mc(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Qu(t){return Mt(t)?t.get():t}function Z4(t,e,n){const r=Mt(t)?t:vo(t);return r.start(_v("",r,e,n)),r.animation}const Q4=(t,e)=>t.depth-e.depth;class J4{constructor(){this.children=[],this.isDirty=!1}add(e){ov(this.children,e),this.isDirty=!0}remove(e){lv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Q4),this.isDirty=!1,this.children.forEach(e)}}class X4{constructor(){this.members=[]}add(e){ov(this.members,e),e.scheduleRender()}remove(e){if(lv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ju={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lf=["","X","Y","Z"],e5=1e3;let t5=0;function Df(t,e,n,r){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function uT(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=CE(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Ge,!(s||i))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&uT(r)}function dT({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=e==null?void 0:e()){this.id=t5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(s5),this.nodes.forEach(l5),this.nodes.forEach(c5),this.nodes.forEach(i5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new J4)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uv),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=UE(a)&&!r4(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),t){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;Ge.read(()=>{h=window.innerWidth}),t(a,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,d&&d(),d=Y4(f,250),Ju.hasAnimatedSinceResize&&(Ju.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 13,414 bytes, line 293
293h(Yw)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||u.getDefaultTransition()||m5,{onLayoutAnimationStart:p,onLayoutAnimationComplete:b}=u.getProps(),x=!this.targetLayout||!oT(this.targetLayout,m),y=!h&&f;if(this.options.layoutRoot||this.resumeFrom||y||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...kv(w,"layout"),onPlay:p,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,y)}else h||Yw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zs(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(u5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(o5),this.nodes.forEach(n5),this.nodes.forEach(r5)):this.nodes.forEach(qw),this.clearAllSnapshots();const l=Kt.now();Tt.delta=Pr(0,1e3/60,l-Tt.timestamp),Tt.timestamp=l,Tt.isProcessing=!0,Nf.update.process(Tt),Nf.preRender.process(Tt),Nf.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(a5),this.sharedNodes.forEach(d5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Gt(this.snapshot.measuredBox.x)&&!Gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!aT(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||xi(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),p5(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return pt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(g5))){const{scroll:d}=this.root;d&&(Oa(l.x,d.offset.x),Oa(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=pt();if(Yn(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&Yn(l,a),Oa(l.x,h.offset.x),Oa(l.y,h.offset.y))}return l}applyTransform(a,l=!1){const c=pt();Yn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ia(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xi(d.latestValues)&&Ia(c,d.latestValues)}return xi(this.latestValues)&&Ia(c,this.latestValues),c}removeTransform(a){const l=pt();Yn(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!xi(u.latestValues))continue;ng(u.latestValues)&&u.updateSnapshot();const d=pt(),h=u.measurePageBox();Yn(d,h),Lw(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return xi(this.latestValues)&&Lw(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var m;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=Tt.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pt(),this.targetWithTransforms=pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yn(this.target,this.layout.layoutBox),qE(this.target,this.targetDelta)):Yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ng(this.parent.latestValues)||GE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pt(),this.relativeTargetOrigin=pt(),Fd(this.relativeTargetOrigin,l,c),Yn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Yn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;m4(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=pt());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mw(this.prevProjectionDelta.x,this.projectionDelta.x),Mw(this.prevProjectionDelta.y,this.projectionDelta.y)),Pl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Bw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pa(),this.projectionDelta=Pa(),this.projectionDeltaWithTransform=Pa()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=Pa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=pt(),m=c?c.source:void 0,w=this.layout?this.layout.source:void 0,p=m!==w,b=this.getStack(),x=!b||b.members.length<=1,y=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(f5));this.animationProgress=0;let v;this.mixTargetDelta=k=>{const _=k/1e3;Zw(h.x,a.x,_),Zw(h.y,a.y,_),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fd(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h5(this.relativeTarget,this.relativeTargetOrigin,f,_),v&&B4(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=pt()),Yn(v,this.relativeTarget)),p&&(this.animationValues=d,K4(d,u,this.latestValues,_,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Zs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Ju.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vo(0)),this.currentAnimation=Z4(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(e5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&hT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||pt();const h=Gt(this.layout.layoutBox.x);
vendor: 4,672 bytes, line 293
293c.x.min=a.target.x.min,c.x.max=c.x.min+h;const f=Gt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}Yn(l,c),Ia(l,d),Pl(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new X4),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Df("z",a,u,this.animationValues);for(let d=0;d<Lf.length;d++)Df(`rotate${Lf[d]}`,a,u,this.animationValues),Df(`skew${Lf[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Qu(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Qu(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!xi(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=H4(this.projectionDeltaWithTransform,this.treeScale,d);c&&(h=c(d,h)),a.transform=h;const{x:f,y:m}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const w in sg){if(d[w]===void 0)continue;const{correct:p,applyTo:b,isCSSVariable:x}=sg[w],y=h==="none"?d[w]:p(d[w],u);if(b){const v=b.length;for(let k=0;k<v;k++)a[b[k]]=y}else x?this.options.visualElement.renderState.vars[w]=y:a[w]=y}this.options.layoutId&&(a.pointerEvents=u===this?Qu(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Gw),this.root.sharedNodes.clear()}}}function n5(t){t.updateLayout()}function r5(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:i}=t.options,a=e.source!==t.layout.source;i==="size"?zn(h=>{const f=a?e.measuredBox[h]:e.layoutBox[h],m=Gt(f);f.min=r[h].min,f.max=f.min+m}):hT(i,e.layoutBox,r)&&zn(h=>{const f=a?e.measuredBox[h]:e.layoutBox[h],m=Gt(r[h]);f.max=f.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+m)});const l=Pa();Pl(l,r,e.layoutBox);const c=Pa();a?Pl(c,t.applyTransform(s,!0),e.measuredBox):Pl(c,r,e.layoutBox);const u=!aT(l);let d=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const w=pt();Fd(w,e.layoutBox,f.layoutBox);const p=pt();Fd(p,r,m.layoutBox),oT(w,p)||(d=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=w,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function s5(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 23,108 bytes, lines 293-301
293isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function i5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function a5(t){t.clearSnapshot()}function Gw(t){t.clearMeasurements()}function qw(t){t.isLayoutDirty=!1}function o5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Yw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function l5(t){t.resolveTargetDelta()}function c5(t){t.calcProjection()}function u5(t){t.resetSkewAndRotation()}function d5(t){t.removeLeadSnapshot()}function Zw(t,e,n){t.translate=Xe(e.translate,0,n),t.scale=Xe(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qw(t,e,n,r){t.min=Xe(e.min,n.min,r),t.max=Xe(e.max,n.max,r)}function h5(t,e,n,r){Qw(t.x,e.x,n.x,r),Qw(t.y,e.y,n.y,r)}function f5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const m5={duration:.45,ease:[.4,0,.1,1]},Jw=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Xw=Jw("applewebkit/")&&!Jw("chrome/")?Math.round:Mn;function eb(t){t.min=Xw(t.min),t.max=Xw(t.max)}function p5(t){eb(t.x),eb(t.y)}function hT(t,e,n){return t==="position"||t==="preserve-aspect"&&!M4(Vw(e),Vw(n),.2)}function g5(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const y5=dT({attachResizeListener:(t,e)=>mc(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mf={current:void 0},fT=dT({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Mf.current){const t=new y5({});t.mount(window),t.setOptions({layoutScroll:!0}),Mf.current=t}return Mf.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Pv=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function tb(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function v5(...t){return e=>{let n=!1;const r=t.map(s=>{const i=tb(s,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():tb(t[s],null)}}}}function x5(...t){return g.useCallback(v5(...t),t)}class w5 extends g.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=LE(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function b5({children:t,isPresent:e,anchorX:n,root:r}){var d;const s=g.useId(),i=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=g.useContext(Pv),c=((d=t.props)==null?void 0:d.ref)??(t==null?void 0:t.ref),u=x5(i,c);return g.useInsertionEffect(()=>{const{width:h,height:f,top:m,left:w,right:p}=a.current;if(e||!i.current||!h||!f)return;const b=n==="left"?`left: ${w}`:`right: ${p}`;i.current.dataset.motionPopId=s;const x=document.createElement("style");l&&(x.nonce=l);const y=r??document.head;return y.appendChild(x),x.sheet&&x.sheet.insertRule(` 294 [data-motion-pop-id="${s}"] { 295 position: absolute !important; 296 width: ${h}px !important; 297 height: ${f}px !important; 298 ${b}px !important; 299 top: ${m}px !important; 300 } 301 `),()=>{y.contains(x)&&y.removeChild(x)}},[e]),o.jsx(w5,{isPresent:e,childRef:i,sizeRef:a,children:g.cloneElement(t,{ref:u})})}const k5=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a,anchorX:l,root:c})=>{const u=av(_5),d=g.useId();let h=!0,f=g.useMemo(()=>(h=!1,{id:d,initial:e,isPresent:n,custom:s,onExitComplete:m=>{u.set(m,!0);for(const w of u.values())if(!w)return;r&&r()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,r]);return i&&h&&(f={...f}),g.useMemo(()=>{u.forEach((m,w)=>u.set(w,!1))},[n]),g.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(t=o.jsx(b5,{isPresent:n,anchorX:l,root:c,children:t})),o.jsx(zh.Provider,{value:f,children:t})};function _5(){return new Map}function mT(t=!0){const e=g.useContext(zh);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=e,i=g.useId();g.useEffect(()=>{if(t)return s(i)},[t]);const a=g.useCallback(()=>t&&r&&r(i),[i,r,t]);return!n&&r?[!1,a]:[!0]}const xu=t=>t.key||"";function nb(t){const e=[];return g.Children.forEach(t,n=>{g.isValidElement(n)&&e.push(n)}),e}const pT=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",root:c})=>{const[u,d]=mT(a),h=g.useMemo(()=>nb(t),[t]),f=a&&!u?[]:h.map(xu),m=g.useRef(!0),w=g.useRef(h),p=av(()=>new Map),b=g.useRef(new Set),[x,y]=g.useState(h),[v,k]=g.useState(h);WS(()=>{m.current=!1,w.current=h;for(let E=0;E<v.length;E++){const S=xu(v[E]);f.includes(S)?(p.delete(S),b.current.delete(S)):p.get(S)!==!0&&p.set(S,!1)}},[v,f.length,f.join("-")]);const _=[];if(h!==x){let E=[...h];for(let S=0;S<v.length;S++){const A=v[S],z=xu(A);f.includes(z)||(E.splice(S,0,A),_.push(A))}return i==="wait"&&_.length&&(E=_),k(nb(E)),y(h),null}const{forceRender:j}=g.useContext(iv);return o.jsx(o.Fragment,{children:v.map(E=>{const S=xu(E),A=a&&!u?!1:h===v||f.includes(S),z=()=>{if(b.current.has(S))return;if(b.current.add(S),p.has(S))p.set(S,!0);else return;let C=!0;p.forEach(L=>{L||(C=!1)}),C&&(j==null||j(),k(w.current),a&&(d==null||d()),r&&r())};return o.jsx(k5,{isPresent:A,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:A?void 0:z,anchorX:l,children:E},S)})})},gT=g.createContext({strict:!1}),rb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let sb=!1;function j5(){if(sb)return;const t={};for(const e in rb)t[e]={isEnabled:n=>rb[e].some(r=>!!n[r])};HE(t),sb=!0}function yT(){return j5(),u4()}function S5(t){const e=yT();for(const n in t)e[n]={...e[n],...t[n]};HE(e)}const E5=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 Ud(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||E5.has(t)}let vT=t=>!Ud(t);function T5(t){typeof t=="function"&&(vT=e=>e.startsWith("on")?!Ud(e):t(e))}try{T5(require("@emotion/is-prop-valid").default)}catch{}function N5(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(vT(s)||n===!0&&Ud(s)||!e&&!Ud(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}const Oh=g.createContext({});function C5(t,e){if(Ph(t)){const{initial:n,animate:r}=t;return{initial:n===!1||fc(n)?n:void 0,animate:fc(r)?r:void 0}}return t.inherit!==!1?e:{}}function z5(t){const{initial:e,animate:n}=C5(t,g.useContext(Oh));return g.useMemo(()=>({initial:e,animate:n}),[ib(e),ib(n)])}function ib(t){return Array.isArray(t)?t.join(" "):t}const Ov=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xT(t,e,n){for(const r in e)!Mt(e[r])&&!QE(r,n)&&(t[r]=e[r])}function A5({transformTemplate:t},e){return g.useMemo(()=>{const n=Ov();return Av(n,e,t),Object.assign({},n.vars,n.style)},[e])}function R5(t,e){const n=t.style||{},r={};return xT(r,n,t),Object.assign(r,A5(t,e)),r}function P5(t,e){const n={},r=R5(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const wT=()=>({...Ov(),attrs:{}});function O5(t,e,n,r){const s=g.useMemo(()=>{const i=wT();return JE(i,e,eT(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};xT(i,t.style,t),s.style={...i,...s.style}}return s}const I5=["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 Iv(t){return typeof t!="string"||t.includes("-")?!1:!!(I5.indexOf(t)>-1||/[A-Z]/u.test(t))}function L5(t,e,n,{latestValues:r},s,i=!1,a){const c=(a??Iv(t)?O5:P5)(e,r,s,t),u=N5(e,typeof t=="string",i),d=t!==g.Fragment?{...u,...c,ref:n}:{},{children:h}=e,f=g.useMemo(()=>Mt(h)?h.get():h,[h]);return g.createElement(t,{...d,children:f})}function D5({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,s){return{latestValues:M5(n,r,s,t),renderState:e()}}function M5(t,e,n,r){const s={},i=r(t,{});for(const f in i)s[f]=Qu(i[f]);let{initial:a,animate:l}=t;const c=Ph(t),u=BE(t);e&&u&&!c&&t.inherit!==!1&&(a===void 0&&(a=e.initial),l===void 0&&(l=e.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?l:a;if(h&&typeof h!="boolean"&&!Rh(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const w=jv(t,f[m]);if(w){const{transitionEnd:p,transition:b,...x}=w;for(const y in x){let v=x[y];if(Array.isArray(v)){const k=d?v.length-1:0;v=v[k]}v!==null&&(s[y]=v)}for(const y in p)s[y]=p[y]}}}return s}const bT=t=>(e,n)=>{const r=g.useContext(Oh),s=g.useContext(zh),i=()=>D5(t,e,r,s);return n?i():av(i)},$5=bT({scrapeMotionValuesFromProps:Rv,createRenderState:Ov}),F5=bT({scrapeMotionValuesFromProps:tT,createRenderState:wT}),U5=Symbol.for("motionComponentSymbol");function V5(t,e,n){const r=g.useRef(n);g.useInsertionEffect(()=>{r.current=n});const s=g.useRef(null);return g.useCallback(i=>{var l;i&&((l=t.onMount)==null||l.call(t,i)),e&&(i?e.mount(i):e.unmount());const a=r.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(s.current=c)}else s.current?(s.current(),s.current=null):a(i);else a&&(a.current=i)},[e])}const kT=g.createContext({});function yl(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function B5(t,e,n,r,s,i){var b,x;const{visualElement:a}=g.useContext(Oh),l=g.useContext(gT),c=g.useContext(zh),u=g.useContext(Pv).reducedMotion,d=g.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,isSVG:i}));const h=d.current,f=g.useContext(kT);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&H5(d.current,n,s,f);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(n,c)});const w=n[NE],p=g.useRef(!!w&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,w))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,w)));return WS(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),p.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!p.current&&h.animationState&&h.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,w)}),p.current=!1),h.enteringChildren=void 0)}),h}function H5(t,e,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:_T(t.parent)),t.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&yl(l),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function _T(t){if(t)return t.options.allowProjection!==!1?t.projection:_T(t.parent)}function $f(t,{forwardMotionProps:e=!1,type:n}={},r,s){r&&S5(r);const i=n?n==="svg":Iv(t),a=i?F5:$5;function l(u,d){let h;const f={...g.useContext(Pv),...u,layoutId:W5(u)},{isStatic:m}=f,w=z5(u),p=a(u,m);if(!m&&HS){K5();const b=G5(f);h=b.MeasureLayout,w.visualElement=B5(t,p,f,s,b.ProjectionNode,i)}return o.jsxs(Oh.Provider,{value:w,children:[h&&w.visualElement?o.jsx(h,{visualElement:w.visualElement,...f}):null,L5(t,u,V5(p,w.visualElement,d),p,m,e,i)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=g.forwardRef(l);return c[U5]=t,c}function W5({layoutId:t}){const e=g.useContext(iv).id;return e&&t!==void 0?e+"-"+t:t}function K5(t,e){g.useContext(gT).strict}function G5(t){const e=yT(),{drag:n,layout:r}=e;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function q5(t,e){if(typeof Proxy>"u")return $f;const n=new Map,r=(i,a)=>$f(i,a,t,e),s=(i,a)=>r(i,a);return new Proxy(s,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,$f(a,void 0,t,e)),n.get(a))})}const Y5=(t,e)=>e.isSVG??Iv(t)?new T4(e):new b4(e,{allowProjection:t!==g.Fragment});class Z5 extends si{constructor(e){super(e),e.animationState||(e.animationState=R4(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Rh(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Q5=0;class J5 extends si{constructor(){super(...arguments),this.id=Q5++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const X5={animation:{Feature:Z5},exit:{Feature:J5}};function Bc(t){return{point:{x:t.pageX,y:t.pageY}}}const e$=t=>e=>Nv(e)&&t(e,Bc(e));function Ol(t,e,n,r){return mc(t,e,e$(n),r)}const jT=({current:t})=>t?t.ownerDocument.defaultView:null,ab=(t,e)=>Math.abs(t-e);function t$(t,e){const n=ab(t.x,e.x),r=ab(t.y,e.y);return Math.sqrt(n**2+r**2)}const ob=new Set(["auto","scroll"]);class ST{constructor(e,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Uf(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,p=t$(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!p)return;const{point:b}=m,{timestamp:x}=Tt;this.history.push({...b,timestamp:x});const{onStart:y,onMove:v}=this.handlers;w||(y&&y(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,w)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Ff(w,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(m,w)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Uf(m.type==="pointercancel"?this.lastMoveEventInfo:Ff(w,this.transformPagePoint),this.history);this.startEvent&&p&&p(m,y),b&&b(m,y)},!Nv(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=s||window;const c=Bc(e),u=Ff(c,this.transformPagePoint),{point:d}=u,{timestamp:h}=Tt;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Uf(u,this.history)),this.removeListeners=Fc(Ol(this.contextWindow,"pointermove",this.handlePointerMove),Ol(this.contextWindow,"pointerup",this.handlePointerUp),Ol(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(e){let n=e.parentElement;for(;n;){const r=getComputedStyle(n);(ob.has(r.overflowX)||ob.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const r=e===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,s),Ge.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zs(this.updatePoint)}}function Ff(t,e){return e?{point:e(t.point)}:t}function lb(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Uf({point:t},e){return{point:t,delta:lb(t,ET(e)),offset:lb(t,n$(e)),velocity:r$(e,.1)}}function n$(t){return t[0]}function ET(t){return t[t.length-1]}function r$(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=ET(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>Cr(e)));)n--;if(!r)return{x:0,y:0};const i=Ln(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function s$(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Xe(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Xe(n,t,r.max):Math.min(t,n)),t}function cb(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function i$(t,{top:e,left:n,bottom:r,right:s}){return{x:cb(t.x,n,s),y:cb(t.y,e,r)}}function ub(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function a$(t,e){return{x:ub(t.x,e.x),y:ub(t.y,e.y)}}function o$(t,e){let n=.5;const r=Gt(t),s=Gt(e);return s>r?n=uc(e.min,e.max-r,t.min):r>s&&(n=uc(t.min,t.max-s,e.min)),Pr(0,1,n)}function l$(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ig=.35;function c$(t=ig){return t===!1?t=0:t===!0&&(t=ig),{x:db(t,"left","right"),y:db(t,"top","bottom")}}function db(t,e,n){return{min:hb(t,e),max:hb(t,n)}}function hb(t,e){return typeof t=="number"?t:t[e]||0}const u$=new WeakMap;class d${constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=h=>{n?(this.stopAnimation(),this.snapToCursor(Bc(h).point)):this.pauseAnimation()},a=(h,f)=>{this.stopAnimation();const{drag:m,dragPropagation:w,onDragStart:p}=this.getProps();if(m&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JM(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zn(x=>{let y=this.getAxisMotionValue(x).get()||0;if(zr.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const k=v.layout.layoutBox[x];k&&(y=Gt(k)*(parseFloat(y)/100))}}this.originPoint[x]=y}),p&&Ge.postRender(()=>p(h,f)),Jp(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:w,onDirectionLock:p,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=f;if(w&&this.currentDirection===null){this.currentDirection=h$(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),b&&b(h,f)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>zn(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new ST(e,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:jT(this.visualElement),element:this.visualElement.current})}stop(e,n){const r=e||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:a}=s;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&Ge.postRender(()=>l(r,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.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(e,n,r){const{drag:s}=this.getProps();if(!r||!wu(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=s$(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;e&&yl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=i$(r.layoutBox,e):this.constraints=!1,this.elastic=c$(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&zn(a=>
vendor: 4,377 bytes, line 301
301{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=l$(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!yl(e))return!1;const r=e.current;yo(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=p4(r,s.root,this.visualElement.getTransformPagePoint());let a=a$(s.layout.layoutBox,i);if(n){const l=n(h4(a));this.hasMutatedConstraints=!!l,l&&(a=KE(l))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=zn(d=>{if(!wu(d,n,this.currentDirection))return;let h=c&&c[d]||{};a&&(h={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,w={type:"inertia",velocity:r?e[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,w)});return Promise.all(u).then(l)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Jp(this.visualElement,e),r.start(_v(e,r,0,n,this.visualElement,!1))}stopAnimation(){zn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){zn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){zn(n=>{const{drag:r}=this.getProps();if(!wu(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n],c=i.get()||0;i.set(e[n]-Xe(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!yl(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};zn(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();s[a]=o$({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zn(a=>{if(!wu(a,e,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(Xe(c,u,s[a]))})}addListeners(){if(!this.visualElement.current)return;u$.set(this.visualElement,this);const e=this.visualElement.current,n=Ol(e,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&!FE(c.target)&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();yl(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ge.read(r);const a=mc(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(zn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=ig,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function wu(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function h$(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class f$ extends si{constructor(e){super(e),this.removeGroupControls=Mn,this.removeListeners=Mn,this.controls=new d$(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mn}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const fb=t=>
vendor: 4,959 bytes, line 301
301(e,n)=>{t&&Ge.postRender(()=>t(e,n))};class m$ extends si{constructor(){super(...arguments),this.removePointerDownListener=Mn}onPointerDown(e){this.session=new ST(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jT(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:fb(e),onStart:fb(n),onMove:r,onEnd:(i,a)=>{delete this.session,s&&Ge.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=Ol(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Vf=!1;class p$ extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=e;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Vf&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ju.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,Vf=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Ge.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Tv.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;Vf=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function TT(t){const[e,n]=mT(),r=g.useContext(iv);return o.jsx(p$,{...t,layoutGroup:r,switchLayoutGroup:g.useContext(kT),isPresent:e,safeToRemove:n})}const g$={pan:{Feature:m$},drag:{Feature:f$,ProjectionNode:fT,MeasureLayout:TT}};function mb(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Ge.postRender(()=>i(e,Bc(e)))}class y$ extends si{mount(){const{current:e}=this.node;e&&(this.unmount=XM(e,(n,r)=>(mb(this.node,r,"Start"),s=>mb(this.node,s,"End"))))}unmount(){}}class v$ extends si{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Fc(mc(this.node.current,"focus",()=>this.onFocus()),mc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pb(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Ge.postRender(()=>i(e,Bc(e)))}class x$ extends si{mount(){const{current:e}=this.node;e&&(this.unmount=n4(e,(n,r)=>(pb(this.node,r,"Start"),(s,{success:i})=>pb(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ag=new WeakMap,Bf=new WeakMap,w$=t=>{const e=ag.get(t.target);e&&e(t)},b$=t=>{t.forEach(w$)};function k$({root:t,...e}){const n=t||document;Bf.has(n)||Bf.set(n,{});const r=Bf.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(b$,{root:t,...e})),r[s]}function _$(t,e,n){const r=k$(e);return ag.set(t,n),r.observe(t),()=>{ag.delete(t),r.unobserve(t)}}const j$={some:0,all:1};class S$ extends si{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:j$[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return _$(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(E$(e,n))&&this.startObserver()}unmount(){}}function E$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const T$={inView:{Feature:S$},tap:{Feature:x$},focus:{Feature:v$},hover:{Feature:y$}},N$={layout:{ProjectionNode:fT,MeasureLayout:TT}},C$={...X5,...T$,...g$,...N$}
301,K=q5(C$,Y5),z$=Iy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium font-sans ring-offset-background transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-sage-dark shadow-md hover:shadow-lg",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-primary text-primary bg-transparent hover:bg-primary hover:text-primary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-muted",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-white text-charcoal hover:bg-white/90 shadow-lg hover:shadow-xl",heroOutline:"border-2 border-white/30 text-white bg-transparent hover:bg-white/10 hover:border-white/50",taupe:"bg-taupe text-white hover:bg-accent shadow-md hover:shadow-lg"},size:{default:"h-10 px-6 py-2",sm:"h-9 rounded-md px-4 text-xs",lg:"h-12 rounded-md px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),le=g.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},i)=>{const a=r?sR:"button";return o.jsx(a,{className:Ve(z$({variant:e,size:n,className:t})),ref:i,...s})});le.displayName="Button";const gb=[{label:"KezdÅlap",href:"/"},{label:"Szolgáltatások",href:"/szolgaltatasok",submenu:[{label:"ElÅadások, workshopok",href:"/eloadasok"},{label:"Fenntarthatósági stratégia",href:"/szolgaltatasok/kornyezeti-strategia"},{label:"Nonbusiness Marketing",href:"/szolgaltatasok/nonbusiness-marketing"},{label:"Egyéni konzultáció",href:"/szolgaltatasok/egyeni-konzultacio"}]},{label:"ElÅadások",href:"/eloadasok"},{label:"Workshopok",href:"/workshopok"},{label:"Rólam",href:"/rolam"},{label:"Blog",href:"/blog"},{label:"Kapcsolat",href:"/kapcsolat"},{label:"Referenciák",href:"/referenciak"}],A$=()=>{const[t,e]=g.useState(!1),[n,r]=g.useState(null),[s,i]=g.useState(!1);g.useEffect(()=>{const l=()=>i(window.scrollY>8);return l(),window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]);const a=s;return o.jsx(K.header,{initial:{y:-100},animate:{y:0},transition:{duration:.6},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${a?"bg-white/85 backdrop-blur-sm shadow-soft":"bg-white/40 backdrop-blur-[2px]"}`,children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"flex items-center justify-between py-4",children:[o.jsxs(ve,{to:"/",className:"flex items-baseline gap-1",children:[o.jsx("span",{className:"text-xl font-display font-semibold text-foreground transition-colors",children:"Kimmel"}),o.jsx("span",{className:"text-lg font-sans font-light text-muted-foreground transition-colors",children:"Hajnalka"})]}),o.jsx("nav",{className:"hidden lg:flex items-center gap-6",children:gb.map(l=>o.jsxs("div",{className:"relative group",children:[l.submenu?o.jsxs("button",{className:"font-sans text-sm text-foreground transition-colors hover:text-primary flex items-center gap-1",onMouseEnter:()=>r(l.label),onMouseLeave:()=>r(null),children:[l.label,o.jsx(nc,{className:"w-3 h-3"})]}):o.jsx(ve,{to:l.href,className:"font-sans text-sm text-foreground transition-colors hover:text-primary",children:l.label}),l.submenu&&n===l.label&&o.jsx("div",{className:"absolute top-full left-0 pt-2",onMouseEnter:()=>r(l.label),onMouseLeave:()=>r(null),children:o.jsxs("div",{className:"bg-background rounded-lg shadow-card border border-border py-2 min-w-[220px]",children:[o.jsx(ve,{to:l.href,className:"block px-4 py-2 text-sm font-sans text-foreground hover:bg-secondary hover:text-primary transition-colors font-medium",children:"Ãsszes szolgáltatás"}),o.jsx("div",{className:"border-t border-border my-1"}),l.submenu.map(c=>o.jsx(ve,{to:c.href,className:"block px-4 py-2 text-sm font-sans text-foreground hover:bg-secondary hover:text-primary transition-colors",children:c.label},c.label))]})})]},l.label))}),o.jsx("button",{onClick:()=>e(!t),className:`lg:hidden p-2 transition-colors ${a?"text-foreground":"text-white"}`,children:t?o.jsx($y,{className:"w-6 h-6"}):o.jsx(oP,{className:"w-6 h-6"})})]}),t&&o.jsx(K.div,{initial:{opacity:0,y:-10}
301,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"lg:hidden mt-2 rounded-xl bg-background shadow-card border border-border",children:o.jsxs("nav",{className:"px-4 py-4 flex flex-col gap-1",children:[gb.map(l=>o.jsxs("div",{children:[o.jsx(ve,{to:l.href,onClick:()=>e(!1),className:"font-sans text-foreground py-3 hover:text-primary transition-colors block",children:l.label}),l.submenu&&o.jsx("div",{className:"pl-4 border-l border-border ml-2",children:l.submenu.map(c=>o.jsx(ve,{to:c.href,onClick:()=>e(!1),className:"font-sans text-sm text-muted-foreground py-2 hover:text-primary transition-colors block",children:c.label},c.label))})]},l.label)),o.jsx(le,{asChild:!0,className:"mt-4",children:o.jsx(ve,{to:"/kapcsolat",onClick:()=>e(!1),children:"Konzultáció"})})]})})]})})},R$=()=>o.jsx("footer",{className:"bg-charcoal py-8",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[o.jsx("p",{className:"text-white/40 font-sans text-sm",children:"© 2025 Kimmel Hajnalka. Minden jog fenntartva."}),o.jsxs("div",{className:"flex items-center gap-6",children:[o.jsx(ve,{to:"/adatvedelem",className:"text-white/40 hover:text-white/70 font-sans text-sm transition-colors",children:"Adatvédelem"}),o.jsx(ve,{to:"/impresszum",className:"text-white/40 hover:text-white/70 font-sans text-sm transition-colors",children:"Impresszum"})]})]})})}),$e=({children:t})=>o.jsxs("div",{className:"min-h-screen flex flex-col",children:[o.jsx(A$,{}),o.jsx("main",{className:"flex-1 pt-[72px] bg-background",children:t}),o.jsx(R$,{})]}),P$="/images/hero-v2.jpg",O$="70% 30%",I$=()=>
301o.jsx("section",{className:"relative bg-background",children:o.jsxs("div",{className:"relative min-h-[85vh] flex items-center overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:P$,alt:"Kimmel Hajnalka - Vállalati tanácsadó",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:O$},loading:"eager",fetchPriority:"high",decoding:"async"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-overlay"})]}),o.jsx("div",{className:"relative z-10 w-full",children:o.jsx("div",{className:"container py-16 lg:py-24",children:o.jsxs("div",{className:"max-w-2xl",children:[o.jsx(K.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1},className:"text-5xl md:text-6xl lg:text-7xl font-display text-white leading-tight mb-6",children:"Tudatosan egy változó világban"}),o.jsx(K.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"text-white/80 text-xl md:text-2xl lg:text-3xl font-sans font-light mb-10 max-w-xl",children:"ElÅadások és tanácsadás a gazdasági, környezeti és társadalmi rendszerekrÅl, kockázatokról, felelÅsségvállalásról."}),o.jsx(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5},children:o.jsxs("div",{className:"flex flex-wrap gap-4",children:[o.jsx(le,{asChild:!0,variant:"hero",size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["DÃjmentes konzultáció",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})}),o.jsx(le,{asChild:!0,size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg hover:shadow-xl font-semibold",children:o.jsx("a",{href:"#uj-eloadas",children:"Világunk veszte"})})]})})]})})})]})}),L$=()=>o.jsx("section",{id:"uj-eloadas",className:"py-14 lg:py-20 bg-secondary scroll-mt-20",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"max-w-4xl mx-auto",children:o.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.2},transition:{duration:.8},children:[o.jsx("div",{className:"flex items-center gap-2 mb-5",children:o.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-primary text-primary-foreground px-5 py-2 rounded-full text-base font-sans font-semibold tracking-wide shadow-md",children:[o.jsx(Lc,{className:"w-4 h-4"}),"Ãj elÅadás"]})}),o.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-display text-foreground mb-6 leading-tight",children:"Világunk veszte: a telhetetlenség"}),o.jsxs("div",{className:"space-y-4 mb-10",children:[o.jsx("p",{className:"text-muted-foreground font-sans text-base md:text-lg leading-relaxed",children:"Az elÅadás azt járja körül, hogyan formálja a mindennapi döntéseinket a folyamatos többre törekvés, és ez hogyan épült be a fogyasztói kultúrába és a jelenlegi gazdasági működésbe. Szó lesz arról is, hogy a túlfogyasztás milyen összetett, rendszerszintű kockázatokat halmozott fel: erÅforrás-kimerülést, ökológiai túlhasználatot, ellátási láncok sérülékenységét, társadalmi polarizációt, valamint a tartós mentális és fizikai kimerültség erÅsödését."}),o.jsx("p",{className:"text-muted-foreground font-sans text-base md:text-lg leading-relaxed",children:"A gondolatmenet végigvezeti a hallgatót azon, milyen tudatos döntésekkel lehet ezen változtatni egyéni, vagy szervezeti szinten."}),o.jsx("p",{className:"text-muted-foreground/80 font-sans text-base leading-relaxed",children:"A prezentáció vállalati, önkormányzati, civil és oktatási programok keretében is megrendezhetÅ. Ha szeretnél részleteket, jelentkezz az alábbi elérhetÅségen."})]}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/eloadasok/vilagunk-veszte",children:["Részletesebben",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})})}),D$=()=>o.jsx("section",{className:"py-10 lg:py-14 bg-background border-b border-border/40",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.6},className:"max-w-2xl mx-auto text-center",children:[o.jsx("blockquote",{className:"text-base md:text-lg font-display text-foreground
301/80 italic leading-relaxed mb-2",children:'"Nem a legerÅsebb marad életben, nem is a legokosabb, hanem az, aki a legfogékonyabb a változásokra."'}),o.jsx("cite",{className:"text-muted-foreground font-sans text-xs uppercase tracking-widest not-italic",children:"Charles Darwin"})]})})}),M$=()=>o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.8},className:"max-w-4xl mx-auto text-center",children:[o.jsx("p",{className:"text-lg md:text-xl lg:text-2xl font-display text-primary leading-relaxed mb-4",children:"Modern világunkat egyre több egymással összefüggÅ válságfolyamat jellemzi, amelyek befolyásolják mindennapjainkat egyéni és vállalati szinten egyaránt."}),o.jsx("p",{className:"text-base md:text-lg lg:text-xl text-muted-foreground leading-relaxed mb-8",children:"Munkám során elÅadásokkal és tanácsadással támogatom a vállalatokat, civil szervezeteket és egyéneket abban, hogy megértsék a jelenlegi kockázatokat, eligazodjanak a megváltozott piaci szférában, és döntéseikben megjelenjen a környezeti és társadalmi felelÅsségvállalás."}),o.jsx(le,{asChild:!0,variant:"default",size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kapcsolat",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})}
301),$$=[{icon:xh,title:"ElÅadások, workshopok",description:"Környezettudatos motivációs programok, melyek elÅsegÃtik a felelÅs szemlélet kialakÃtását, és támogatják a tudatos döntéshozatalt.",link:"/eloadasok"},{icon:wh,title:"Fenntarthatósági stratégia",description:"Ãtfogó üzleti modellek kidolgozása, melyek az ESG-alapelvek mentén hatékonyan integrálják a társadalmi és környezeti szempontokat a vállalat működésébe.",link:"/szolgaltatasok/kornyezeti-strategia"},{icon:Ic,title:"Nonbusiness Marketing",description:"Közösségi értékeket erÅsÃtÅ megközelÃtés, mely hitelesen mutatja be a környezeti és társadalmi felelÅsségvállalást, és támogatja a felelÅs gondolkodásmódot.",link:"/szolgaltatasok/nonbusiness-marketing"},{icon:Dy,title:"Egyéni konzultáció",description:"Online, strukturált szakmai beszélgetés egyéneknek és kisvállalkozóknak, akik szeretnék tisztábban látni a jelenlegi gazdasági, környezeti és társadalmi folyamatokat.",link:"/szolgaltatasok/egyeni-konzultacio"}],F$={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.15}}},U$={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},V$=()=>o.jsx("section",{id:"szolgaltatasok",className:"py-10 lg:py-14 bg-primary",children:o.jsxs("div",{className:"container",children:[o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.6},className:"text-center mb-10",children:[o.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-display text-white mb-4",children:"Szolgáltatások"}),o.jsx("p",{className:"text-white/80 font-sans text-base max-w-3xl mx-auto leading-relaxed",children:"Gyorsan változó világunkban a környezettudatosabb működésnek kiemelt helyen kellene állnia. A megújuló és nem megújuló erÅforrások felhasználása ma olyan ütemben történik, amely a társadalmakra és a vállalatok működésére egyaránt kockázatot jelent, ebben a helyzetben pedig a gazdasági döntések és stratégiák nem választhatók el ezek következményeitÅl."})]}),o.jsx(K.div,{variants:F$,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.2},className:"grid md:grid-cols-2 gap-4 lg:gap-6 mb-8",children:$$.map((t,e)=>o.jsx(K.div,{variants:U$,children:o.jsxs(ve,{to:t.link,className:"group block relative bg-white p-6 shadow-card hover:shadow-elegant transition-all duration-500 h-full",children:[o.jsx("div",{className:"w-12 h-12 bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary transition-colors duration-300",children:o.jsx(t.icon,{className:"w-5 h-5 text-primary group-hover:text-white transition-colors duration-300"})}),o.jsx("h3",{className:"text-lg font-display text-foreground mb-2",children:t.title}),o.jsx("p",{className:"text-muted-foreground font-sans text-sm leading-relaxed",children:t.description}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-accent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]})},e))}),o.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center",children:o.jsx(le,{asChild:!0,variant:"hero",size:"lg",className:"group",children:o.jsxs(ve,{to:"/szolgaltatasok",children:["Szolgáltatások részletesebben",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})})]})}),NT="/assets/speaking-1-C1Tcx_cQ.jpg",CT="/assets/speaking-2-BvOnzelK.jpg",zT="/assets/speaking-3-zacpDqXq.jpg",AT="/assets/interview-1-D8jY2uO1.jpg",RT="/assets/radio-1-D54ghATh.jpg",fi=[{src:NT,alt:"Kimmel Hajnalka elÅadás közben"},{src:CT,alt:"Kimmel Hajnalka workshop"},{src:zT,alt:"Kimmel Hajnalka konferencia"},{src:AT,alt:"Kimmel Hajnalka interjú"},{src:RT,alt:"Kimmel Hajnalka rádió"}],yb=[{title:"Szabad a gazda! â Food CommUnity Fest",date:"2025. feb. 21.",time:"10:00â18:00",location:"Budapest",url:"https://tudatosvasarlo.hu/szabad-a-gazda-food-community-fest/"},{title:"Ãkoplusz Fesztivál",date:"Hamarosan",time:"",location:"Budapest",url:"https://www.facebook.com/events/1484685083335970?active_tab=about"}
301,{title:"Magfesztivál",date:"IdÅpont egyeztetés alatt",time:"",location:"Hamarosan",url:""}],B$=()=>{const[t,e]=g.useState(0);g.useEffect(()=>{const s=setInterval(()=>{e(i=>(i+1)%fi.length)},4e3);return()=>clearInterval(s)},[]);const n=()=>e(s=>(s-1+fi.length)%fi.length),r=()=>e(s=>(s+1)%fi.length);return o.jsx("section",{className:"py-10 lg:py-14 bg-secondary",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[o.jsxs(K.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.3},transition:{duration:.8},children:[o.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mb-6",children:o.jsx(xh,{className:"w-6 h-6 text-primary"})}),o.jsx("h2",{className:"text-3xl md:text-4xl font-display text-foreground mb-4",children:"ElÅadások, workshopok"}),o.jsx("p",{className:"text-muted-foreground font-sans text-lg leading-relaxed mb-6",children:"Konferenciákon, vállalati rendezvényeken és közösségi eseményeken tartok elÅadásokat a környezettudatosságról, a felelÅs működésrÅl és arról, hogyan érthetjük meg jobban a körülöttünk zajló komplex globális folyamatokat."}),o.jsx("ul",{className:"space-y-2 mb-8",children:["Környezeti és társadalmi felelÅsségvállalás","Hogyan értsük meg a komplex globális rendszereket?","Túlfogyasztás vs. tudatos fogyasztás"].map((s,i)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground/80 font-sans",children:s})]},i))}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/eloadasok",children:["ElÅadások részletesen",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]}),o.jsxs(K.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0,amount:.3},transition:{duration:.8,delay:.2},className:"space-y-6",children:[o.jsxs("div",{className:"relative aspect-[4/3] rounded-lg overflow-hidden shadow-elegant group",children:[o.jsx(pT,{mode:"wait",children:o.jsx(K.img,{src:fi[t].src,alt:fi[t].alt,initial:{opacity:0}
301,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"absolute inset-0 w-full h-full object-cover"},t)}),o.jsx("button",{onClick:n,className:"absolute left-3 top-1/2 -translate-y-1/2 w-9 h-9 rounded-full bg-background/70 backdrop-blur-sm flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-background/90","aria-label":"ElÅzÅ kép",children:o.jsx(Nj,{className:"w-5 h-5 text-foreground"})}),o.jsx("button",{onClick:r,className:"absolute right-3 top-1/2 -translate-y-1/2 w-9 h-9 rounded-full bg-background/70 backdrop-blur-sm flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-background/90","aria-label":"KövetkezÅ kép",children:o.jsx(Cj,{className:"w-5 h-5 text-foreground"})}),o.jsx("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1.5",children:fi.map((s,i)=>o.jsx("button",{onClick:()=>e(i),className:`w-2 h-2 rounded-full transition-all ${i===t?"bg-white w-5":"bg-white/50"}`,"aria-label":`Kép ${i+1}`},i))})]}),yb.length>0&&o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-sans font-medium tracking-widest uppercase text-primary mb-3 flex items-center gap-1.5",children:[o.jsx(x0,{className:"w-3.5 h-3.5"}),"KövetkezÅ események"]}),o.jsx("div",{className:"space-y-2",children:yb.map((s,i)=>{const a=s.url?"a":"div",l=s.url?{href:s.url,target:"_blank",rel:"noopener noreferrer"}:{};return o.jsx(a,{...l,className:`group flex items-center gap-4 border border-border bg-card px-5 py-3 transition-all ${s.url?"hover:shadow-md hover:border-primary/30 cursor-pointer":"opacity-90"}`,children:o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("h4",{className:"text-sm font-display text-foreground group-hover:text-primary transition-colors flex items-center gap-1",children:[o.jsx("span",{className:"truncate",children:s.title}),s.url&&o.jsx(Tj,{className:"w-3.5 h-3.5 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity text-primary"})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 mt-1 text-xs font-sans text-muted-foreground",children:[o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(x0,{className:"w-3 h-3 text-primary/60"}),s.date,s.time?` · ${s.time}`:""]}),o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(Ly,{className:"w-3 h-3 text-primary/60"}),s.location]})]})]})},i)})})]})]})]})})})},H$=()=>o.jsx("section",{className:"py-12 lg:py-16 bg-primary",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.8},className:"max-w-4xl mx-auto text-center",children:[o.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-display text-primary-foreground leading-relaxed mb-8",children:"LehetÅséged van egy dÃjmentes, 30 perces konzultációra, ahol közösen átbeszéljük, mire van igazán szükséged, és hogyan tudlak céljaid elérésében támogatni."}),o.jsx(le,{asChild:!0,variant:"hero",size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kérem az ingyenes konzultációt!",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})}),W$=["Ãrzed, világunk felgyorsult, és szükséged van arra, hogy lépést tarts.","Ãj kihÃvásokkal nézel szembe, szeretnél rugalmasabbá válni.","FejlÅdni akarsz, hogy megerÅsÃtsd a pozÃciódat versenytársaiddal szemben.","Tudatos döntésekkel szeretnél felkészülni a kihÃvásokra.","Hitelesen szeretnél ügyfeleid és fogyasztóid felé kommunikálni.","ElÅtérbe helyeznéd a környezeti és társadalmi feladatokat.","Szeretnéd megtalálni azokat a lehetÅségeket, melyek kiemelnek a zajból.","Szükséged van gyakorlati útmutatásra, hogy hatékonyabban tudj cselekedni a változó világban."],K$=()=>o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-start",children:[o.jsxs(K.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.3},transition:{duration:.8},children:[o.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-display text-foreground mb-6",children:"Neked szól, ha..."}),o.jsx("div",{className:"space-y-3",children:W$.map((t,e)=>o.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:e*.08},className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-primary flex items-center justify-center flex-shrink-0 mt-1",children:o.jsx(an,{className:"w-3 h-3 text-primary-foreground"})}
301),o.jsx("p",{className:"text-foreground/80 font-sans",children:t})]},e))}),o.jsx(K.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:.5},className:"mt-8",children:o.jsx(le,{asChild:!0,variant:"default",size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Beszélgessünk!",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})})]}),o.jsxs(K.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.3},transition:{duration:.8,delay:.2},className:"bg-secondary rounded-lg p-8 lg:p-10",children:[o.jsx("h3",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Miért van szükség változásra?"}),o.jsx("p",{className:"text-lg font-display text-primary mb-4",children:"A világ kihÃvásai új fajta hozzáállást követelnek."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed",children:"A globális helyzet összetett problémákat hoz magával, melyek több területen egyszerre okoznak nehézségeket, feladatokat. A változások és változtatások egyre sürgetÅbbé válnak, melyekre nem csak egyéni, de vállalati és társadalmi szinten is reagálnunk kell. Az általam kÃnált támogatás segÃthet abban, hogy ne csak észleljétek ezeket az új helyzeteket, hanem alakÃtsátok is a vállalatot a környezeti és társadalmi szempontok szem elÅtt tartásával."})]})]})})}),G$=()=>o.jsx("section",{className:"py-14 lg:py-20 bg-primary",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"max-w-3xl mx-auto text-center",children:[o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/10 flex items-center justify-center mx-auto mb-6",children:o.jsx(Rj,{className:"w-8 h-8 text-white"})}),o.jsx("h2",{className:"text-3xl md:text-4xl font-display text-white mb-6",children:"Miért fontos a környezettudatosság?"}),o.jsx("p",{className:"text-white/70 font-sans text-lg leading-relaxed mb-8",children:"A világ körülöttünk gyorsan változik. Komplex, globális rendszerek hatnak az életünkre, a gazdaságra és a környezetre. A környezettudatos gondolkodás és működés segÃt megérteni ezeket az összefüggéseket, és felelÅs döntéseket hozni egyéni és vállalati szinten egyaránt."}),o.jsx(le,{asChild:!0,variant:"hero",size:"lg",className:"group",children:o.jsxs(ve,{to:"/miert-fontos",children:["Tudj meg többet",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})}),q$="/assets/profile-bio-2mA-dSyJ.jpg",Y$=()=>o.jsx("section",{id:"rolam",className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[o.jsx(K.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0,amount:.3},transition:{duration:.8},children:o.jsx("div",{className:"rounded-lg overflow-hidden shadow-elegant",children:o.jsx("img",{src:q$,alt:"Kimmel Hajnalka",className:"w-full h-auto",loading:"lazy"})})}),o.jsxs(K.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.3},transition:{duration:.8,delay:.2},children:[o.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-display text-foreground mb-2",children:"Sziasztok,"}),o.jsx("p",{className:"text-xl font-display text-primary mb-6",children:"Kimmel Hajnalka vagyok"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"Közgazdász, fenntarthatósági tanácsadó. Több mint 12 év tapasztalattal a marketing területén, különbözÅ vállalati környezetekben dolgoztam, multinacionális cégtÅl kezdve hazai gyártó vállalaton át disztribútorokig. Ez a sokszÃnű szakmai háttér lehetÅséget adott arra, hogy alaposan megismerjem a vállalatok működését, az üzleti döntéshozatal folyamatát és a fogyasztók gondolkodását."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"Ahogy egyre jobban elmélyedtem a polikrÃzis kérdéseiben, világossá vált számomra, a marketing szerepe túlmutat a hagyományos piaci versenyen: felelÅsséget is hordozunk abban, milyen irányba befolyásoljuk a fogyasztókat és a vállalatok belsÅ működését. Az elm
301últ években úgy döntöttem, értékesÃtésen alapuló tudásomat kiegészÃtem fenntarthatósági ismeretekkel, mert meggyÅzÅdésem, hogy világunk kihÃvásaira csak úgy tudunk érdemben reagálni, ha figyelembe vesszük, hogy a környezeti és társadalmi kérdések egyaránt szerves részét képzik a döntéshozatalnak."}),o.jsx(le,{asChild:!0,variant:"outline",size:"lg",className:"group",children:o.jsxs(ve,{to:"/rolam",children:["Többet rólam",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})]})})}),Z$=()=>o.jsx("section",{id:"kapcsolat",className:"py-14 lg:py-20 bg-charcoal",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.8},className:"max-w-4xl mx-auto text-center",children:[o.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-display text-white mb-6",children:"Kapcsolat"}),o.jsx("p",{className:"text-white/70 font-sans text-lg leading-relaxed mb-10 max-w-2xl mx-auto",children:"Kérdésed van, vagy szeretnéd felvenni velem a kapcsolatot? Ãrj nekem, és hamarosan jelentkezem!"}),o.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-16",children:o.jsx(le,{asChild:!0,variant:"hero",size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["DÃjmentes konzultáció",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})}),o.jsxs("div",{className:"grid md:grid-cols-3 gap-8 pt-8 border-t border-white/10",children:[o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-white/10 flex items-center justify-center mb-4",children:o.jsx(rc,{className:"w-5 h-5 text-white"})}),o.jsx("p",{className:"text-white/50 font-sans text-sm mb-1",children:"Email"}),o.jsx("a",{href:"mailto:[email protected]",className:"text-white font-sans hover:text-white/80 transition-colors",children:"[email protected]"})]}),o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-white/10 flex items-center justify-center mb-4",children:o.jsx(Oj,{className:"w-5 h-5 text-white"})}),o.jsx("p",{className:"text-white/50 font-sans text-sm mb-1",children:"Telefon"}),o.jsx("p",{className:"text-white font-sans",children:"+36 30 919 2882"})]}),o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-white/10 flex items-center justify-center mb-4",children:o.jsx(Ly,{className:"w-5 h-5 text-white"})}),o.jsx("p",{className:"text-white/50 font-sans text-sm mb-1",children:"HelyszÃn"}),o.jsx("p",{className:"text-white font-sans",children:"Magyarország"})]})]}),o.jsxs("div",{className:"flex items-center justify-center gap-6 mt-12",children:[o.jsx("a",{href:"https://www.linkedin.com/in/hajnalka-kimmel-72374a154/",target:"_blank",rel:"noopener noreferrer",className:"text-white/50 hover:text-white transition-colors","aria-label":"LinkedIn",children:o.jsx(Pj,{className:"w-6 h-6"})}),o.jsx("a",{href:"https://www.instagram.com/tudatosminimalizmus/",target:"_blank",rel:"noopener noreferrer",className:"text-white/50 hover:text-white transition-colors","aria-label":"Instagram",children:o.jsx(Td,{className:"w-6 h-6"})})]})]})})}),Q$="https://www.instagram.com/tudatosminimalizmus/",J$="@tudatosminimalizmus",X$=["DUiSIaiDZSf","DUnuwPRjZxn","DTdhpMZDSyL","DSXZWZ6jYWM","DRfNGQ7DZLu","DRIEbQvDQ2t","DQ1BcjGjT64"],e3=()=>{const t=g.useRef(null),e=n=>{if(!t.current)return;const r=340;t.current.scrollBy({left:n==="left"?-r:r,behavior:"smooth"})};return o.jsxs("section",{className:"py-10 lg:py-12 bg-background",children:[o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"flex items-end justify-between mb-6",children:[o.jsxs("div",{children:[o.jsxs("span",{className:"inline-flex items-center gap-2 text-primary font-sans text-xs font-medium tracking-widest uppercase mb-2",children:[o.jsx(Td,{className:"w-4 h-4"}),"Tudatos Minimalizmus"]}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground",children:"Kövess az Instagramon"})]}),o.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[o.jsx("button",{onClick:()=>e("left"),className:"w-9 h-9 border border-border flex items-center justify-center hover:bg-muted transition-colors","aria-label":"ElÅzÅ",children:o.jsx(Nj,{className:"w-5 h-5 text-foreground"})}),o.jsx("button",{onClick:()=>e("right"),className:"w-9 h-9 border border-border flex items-center justify-center hover:bg-muted transition-colors","aria-label":"KövetkezÅ",children:o.jsx(Cj,{className:"w-5 h-5 text-foreground"})})]})]})}),o.jsx(K.div,{initial:{opacity:0}
301,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.1},children:o.jsx("div",{ref:t,className:"flex gap-4 overflow-x-auto scrollbar-hide px-[max(1rem,calc((100vw-1280px)/2+1rem))]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:X$.map(n=>o.jsx("div",{className:"flex-shrink-0 w-[320px] border border-border overflow-hidden bg-card",children:o.jsx("iframe",{src:`https://www.instagram.com/p/${n}/embed/`,className:"w-full border-0",style:{height:"420px"},scrolling:"no",allowTransparency:!0,title:`Instagram poszt ${n}`})},n))})}),o.jsx("div",{className:"container",children:o.jsx("div",{className:"text-center mt-6",children:o.jsx(le,{asChild:!0,variant:"outline",size:"lg",className:"group",children:o.jsxs("a",{href:Q$,target:"_blank",rel:"noopener noreferrer",children:[o.jsx(Td,{className:"w-4 h-4 mr-2"}),J$,o.jsx(Tj,{className:"w-4 h-4 ml-1 opacity-0 group-hover:opacity-100 transition-opacity"})]})})})})]})},yt=g.forwardRef(({className:t,type:e,...n},r)=>o.jsx("input",{type:e,className:Ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...n}));yt.displayName="Input";var jr=function(){return jr=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jr.apply(this,arguments)};function Io(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function t3(t,e,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(h){a(h)}}function c(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function n3(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,i;r<s;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}const r3=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class Lv extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class s3 extends Lv{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class vb extends Lv{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class xb extends Lv{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var og;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(og||(og={}));class i3{constructor(e,{headers:n={},customFetch:r,region:s=og.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=r3(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return t3(this,arguments,void 0,function*(n,r={}){var s;let i,a;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=r;let f={},{region:m}=r;m||(m=this.region);const w=new URL(`${this.url}/${n}`);m&&m!=="any"&&(f["x-region"]=m,w.searchParams.set("forceFunctionRegion",m));let p;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(f["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(f["Content-Type"]="application/json",p=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?p=JSON.stringify(u):p=u;let b=d;h&&(a=new AbortController,i=setTimeout(()=>a.abort(),h),d?(b=a.signal,d.addEventListener("abort",()=>a.abort())):b=a.signal);const x=yield this.fetch(w.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:p,signal:b}).catch(_=>{throw new s3(_)}),y=x.headers.get("x-relay-error");
301if(y&&y==="true")throw new vb(x);if(!x.ok)throw new xb(x);let v=((s=x.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),k;return v==="application/json"?k=yield x.json():v==="application/octet-stream"||v==="application/pdf"?k=yield x.blob():v==="text/event-stream"?k=x:v==="multipart/form-data"?k=yield x.formData():k=yield x.text(),{data:k,error:null,response:x}}catch(l){return{data:null,error:l,response:l instanceof xb||l instanceof vb?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var a3=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}},o3=class{constructor(t){var e,n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=t.urlLengthLimit)!==null&&r!==void 0?r:8e3,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let a=null,l=null,c=null,u=i.status,d=i.statusText;if(i.ok){var h,f;if(n.method!=="HEAD"){var m;const x=await i.text();x===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((m=n.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?l=x:l=JSON.parse(x))}const p=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),b=(f=i.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");p&&b&&b.length>1&&(c=parseInt(b[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(l)&&(l.length>1?(a={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var w;const p=await i.text();try{a=JSON.parse(p),Array.isArray(a)&&i.status===404&&(l=[],a=null,u=200,d="OK")}catch{i.status===404&&p===""?(u=204,d="No Content"):a={message:p}}if(a&&n.isMaybeSingle&&(!(a==null||(w=a.details)===null||w===void 0)&&w.includes("0 rows"))&&(a=null,u=200,d="OK"),a&&n.shouldThrowOnError)throw new a3(a)}return{error:a,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var a;let l="",c="",u="";const d=i==null?void 0:i.cause;if(d){var h,f,m,w;const x=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",y=(f=d==null?void 0:d.code)!==null&&f!==void 0?f:"";l=`${(m=i==null?void 0:i.name)!==null&&m!==void 0?m:"FetchError"}: ${i==null?void 0:i.message}`,l+=` 302 303Caused by: ${(w=d==null?void 0:d.name)!==null&&w!==void 0?w:"Error"}: ${x}`,y&&(l+=` (${y})`),d!=null&&d.stack&&(l+=` 304${d.stack}`)}else{var p;l=(p=i==null?void 0:i.stack)!==null&&p!==void 0?p:""}const b=this.url.toString().length;return(i==null?void 0:i.name)==="AbortError"||(i==null?void 0:i.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${b} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(c+=`. Your request URL is ${b} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(a=i==null?void 0:i.name)!==null&&a!==void 0?a:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}}
304)),s.then(t,e)}returns(){return this}overrideTypes(){return this}},l3=class extends o3{select(t){let e=!1;const n=(t??"*").split("").map(r=>/\s/.test(r)&&!e?"":(r==='"'&&(e=!e),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,e?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const wb=new RegExp("[,()]");var ga=class extends l3{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&wb.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&wb.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${s}fts${i}.${e}`),this}match(t){return Object.entries(t).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},c3=class{constructor(t,{headers:e={},schema:n,fetch:r,urlLengthLimit:s=8e3}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=r,this.urlLengthLimit=s}
304cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:r}=e??{},s=n?"HEAD":"GET";let i=!1;const a=(t??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",a),r&&c.append("Prefer",`count=${r}`),new ga({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(t,{count:e,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:a}=this.cloneRequestState();if(e&&a.append("Prefer",`count=${e}`),n||a.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);i.searchParams.set("columns",c.join(","))}}return new ga({method:s,url:i,headers:a,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const a="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&l.searchParams.set("on_conflict",e),r&&c.append("Prefer",`count=${r}`),s||c.append("Prefer","missing=default"),Array.isArray(t)){const u=t.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);l.searchParams.set("columns",d.join(","))}}return new ga({method:a,url:l,headers:c,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}update(t,{count:e}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new ga({method:r,url:s,headers:i,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:t}={}){var e;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new ga({method:n,url:r,headers:s,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit})}};function pc(t){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pc(t)}function u3(t,e){if(pc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function d3(t){var e=u3(t,"string");return pc(e)=="symbol"?e:e+""}function h3(t,e,n){return(e=d3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function bu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bb(Object(n),!0).forEach(function(r){h3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var f3=class PT{constructor(e,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:a=8e3}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=a;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(c,u)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),i),f=u==null?void 0:u.signal;if(f){if(f.aborted)return clearTimeout(h),l(c,u);const m=()=>{clearTimeout(h),d.abort()};return f.addEventListener("abort",m,{once:!0}),l(c,bu(bu({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),f.removeEventListener("abort",m)})}return l(c,bu(bu({},u),{},{signal:d.signal})).finally(()=>clearTimeout(h))}:this.fetch=l}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new c3(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(e){return new PT(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(e,n={},{head:r=!1,get:s=!1,count:i}={}){var a;let l;const c=new URL(`${this.url}/rpc/${e}`);let u;const d=m=>m!==null&&typeof m=="object"&&(!Array.isArray(m)||m.some(d)),h=r&&Object.values(n).some(d);h?(l="POST",u=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([m,w])=>w!==void 0).map(([m,w])=>[m,Array.isArray(w)?`{${w.join(",")}}`:`${w}
304`]).forEach(([m,w])=>{c.searchParams.append(m,w)})):(l="POST",u=n);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new ga({method:l,url:c,headers:f,schema:this.schemaName,body:u,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}};class m3{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 305import ws from "ws" 306new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 307 308Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const p3="2.95.3",g3=`realtime-js/${p3}`,y3="1.0.0",OT="2.0.0",kb=OT,lg=1e4,v3=1e3,x3=100;var ys;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(ys||(ys={}));var mt;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(mt||(mt={}));var ir;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(ir||(ir={}));var cg;(function(t){t.websocket="websocket"})(cg||(cg={}));var bi;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(bi||(bi={}));class w3{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},a=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(e,n,r){var s,i;const a=e.topic,l=(s=e.ref)!==null&&s!==void 0?s:"",c=(i=e.join_ref)!==null&&i!==void 0?i:"",u=e.payload.event,d=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+a.length+u.length+h.length,m=new ArrayBuffer(this.HEADER_LENGTH+f);let w=new DataView(m),p=0;w.setUint8(p++,this.KINDS.userBroadcastPush),w.setUint8(p++,c.length),w.setUint8(p++,l.length),w.setUint8(p++,a.length),w.setUint8(p++,u.length),w.setUint8(p++,h.length),w.setUint8(p++,n),Array.from(c,x=>w.setUint8(p++,x.charCodeAt(0))),Array.from(l,x=>w.setUint8(p++,x.charCodeAt(0))),Array.from(a,x=>w.setUint8(p++,x.charCodeAt(0))),Array.from(u,x=>w.setUint8(p++,x.charCodeAt(0))),Array.from(h,x=>w.setUint8(p++,x.charCodeAt(0)));var b=new Uint8Array(m.byteLength+r.byteLength);return b.set(new Uint8Array(m),0),b.set(new Uint8Array(r),m.byteLength),b.buffer}decode(e,n){if(this._isArrayBuffer(e)){let r=this._binaryDecode(e);return n(r)}if(typeof e=="string"){const r=JSON.parse(e),[s,i,a,l,c]=r;
308return n({join_ref:s,ref:i,topic:a,event:l,payload:c})}return n({})}_binaryDecode(e){const n=new DataView(e),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,n,s)}}_decodeUserBroadcast(e,n,r){const s=n.getUint8(1),i=n.getUint8(2),a=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const u=r.decode(e.slice(c,c+s));c=c+s;const d=r.decode(e.slice(c,c+i));c=c+i;const h=r.decode(e.slice(c,c+a));c=c+a;const f=e.slice(c,e.byteLength),m=l===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,w={type:this.BROADCAST_EVENT,event:d,payload:m};return a>0&&(w.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([r])=>n.includes(r)))}}class IT{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Fe;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Fe||(Fe={}));const _b=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((i,a)=>(i[a]=b3(a,t,e,s),i),{}):{}},b3=(t,e,n,r)=>{const s=e.find(l=>
308l.name===t),i=s==null?void 0:s.type,a=n[t];return i&&!r.includes(i)?LT(i,a):ug(a)},LT=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return S3(e,n)}switch(t){case Fe.bool:return k3(e);case Fe.float4:case Fe.float8:case Fe.int2:case Fe.int4:case Fe.int8:case Fe.numeric:case Fe.oid:return _3(e);case Fe.json:case Fe.jsonb:return j3(e);case Fe.timestamp:return E3(e);case Fe.abstime:case Fe.date:case Fe.daterange:case Fe.int4range:case Fe.int8range:case Fe.money:case Fe.reltime:case Fe.text:case Fe.time:case Fe.timestamptz:case Fe.timetz:case Fe.tsrange:case Fe.tstzrange:return ug(e);default:return ug(e)}},ug=t=>t,k3=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},_3=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},j3=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},S3=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let i;const a=t.slice(1,n);try{i=JSON.parse("["+a+"]")}catch{i=a?a.split(","):[]}return i.map(l=>LT(e,l))}return t},E3=t=>typeof t=="string"?t.replace(" ","T"):t,DT=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class Hf{constructor(e,n,r={},s=lg){this.channel=e,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var jb;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(jb||(jb={}));class Il{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:a,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Il.syncState(this.state,s,i,a),this.pendingDiffs.forEach(c=>{this.state=Il.syncDiff(this.state,c,i,a)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:a,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Il.syncDiff(this.state,s,i,a),l())}),this.onJoin((s,i,a)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:a})}),this.onLeave((s,i,a)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:a})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const i=this.cloneDeep(e),a=this.transformState(n),l={},c={};return this.map(i,(u,d)=>{a[u]||(c[u]=d)}),this.map(a,(u,d)=>{const h=i[u];if(h){const f=d.map(b=>b.presence_ref),m=h.map(b=>b.presence_ref),w=d.filter(b=>m.indexOf(b.presence_ref)<0),p=h.filter(b=>f.indexOf(b.presence_ref)<0);w.length>0&&(l[u]=w),p.length>0&&(c[u]=p)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},r,s)}static syncDiff(e,n,r,s){const{joins:i,leaves:a}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(l,c)=>{var u;
308const d=(u=e[l])!==null&&u!==void 0?u:[];if(e[l]=this.cloneDeep(c),d.length>0){const h=e[l].map(m=>m.presence_ref),f=d.filter(m=>h.indexOf(m.presence_ref)<0);e[l].unshift(...f)}r(l,d,c)}),this.map(a,(l,c)=>{let u=e[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),e[l]=u,s(l,u,c),u.length===0&&delete e[l]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Sb;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Sb||(Sb={}));var Ll;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Ll||(Ll={}));var Br;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Br||(Br={}));class La{constructor(e,n={config:{}},r){var s,i;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=mt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Hf(this,ir.join,this.params,this.timeout),this.rejoinTimer=new IT(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=mt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=mt.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=mt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=mt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=mt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ir.reply,{},(a,l)=>{this._trigger(this._replyEventName(l),a)}),this.presence=new Il(this),this.broadcastEndpointURL=DT(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==mt.closed){const{config:{broadcast:a,presence:l,private:c}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Ll.PRESENCE]&&this.bindings[Ll.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:a,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(m=>e==null?void 0:e(Br.CHANNEL_ERROR,m)),this._onClose(()=>e==null?void 0:e(Br.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),m===void 0){e==null||e(Br.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,b=(w=p==null?void 0:p.length)!==null&&w!==void 0?w:0,x=[];for(let y=0;y<b;y++){const v=p[y],{filter:{event:k,schema:_,table:j,filter:E}}=v,S=m&&m[y];if(S&&S.event===k&&La.isFilterValueEqual(S.schema,_)&&La.isFilterValueEqual(S.table,j)&&La.isFilterValueEqual(S.filter,E))x.push(Object.assign(Object.assign({},v),{id:S.id}));else{this.unsubscribe(),this.state=mt.errored,e==null||e(Br.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,e&&e(Br.SUBSCRIBED);return}}).receive("error",m=>{this.state=mt.errored,e==null||e(Br.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Br.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===mt.joined&&e===Ll.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,n,r)}async httpSend(e,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
308try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(e,n={}){var r,s;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:a}=e,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:a,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var a,l,c;const u=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(l=(a=this.params)===null||a===void 0?void 0:a.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=mt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ir.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Hf(this,ir.leave,{},e),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=mt.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),a=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),a}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Hf(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>x3){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,i;const a=e.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=ir;if(r&&[l,c,u,d].indexOf(a)>=0&&r!==this._joinRef())return;let f=this._onMessage(a,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(a)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var w,p,b;return((w=m.filter)===null||w===void 0?void 0:w.event)==="*"||((b=(p=m.filter)===null||p===void 0?void 0:p.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===a}).map(m=>m.callback(f,r)):(i=this.bindings[a])===null||i===void 0||i.filter(m=>{var w,p,b,x,y,v;if(["broadcast","presence","postgres_changes"].includes(a))if("id"in m){const k=m.id,_=(w=m.filter)===null||w===void 0?void 0:w.event;return k&&((p=n.ids)===null||p===void 0?void 0:p.includes(k))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const k=(y=(x=m==null?void 0:m.filter)===null||x===void 0?void 0:x.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return k==="*"||k===((v=n==null?void 0:n.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===a}).map(m=>{if(typeof f=="object"&&"ids"in f){const w=f.data,{schema:p,table:b,commit_timestamp:x,type:y,errors:v}=w;f=Object.assign(Object.assign({},{schema:p,table:b,commit_timestamp:x,eventType:y,new:{},old:{},errors:v}),this._getPayloadRecords(w))}m.callback(f,r)}
308)}_isClosed(){return this.state===mt.closed}_isJoined(){return this.state===mt.joined}_isJoining(){return this.state===mt.joining}_isLeaving(){return this.state===mt.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&La.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(ir.close,{},e)}_onError(e){this._on(ir.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=mt.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=_b(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=_b(e.columns,e.old_record)),n}}const Wf=()=>{},ku={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},T3=[1e3,2e3,5e3,1e4],N3=1e4,C3=` 309 addEventListener("message", (e) => { 310 if (e.data.event === "start") { 311 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 312 } 313 });`;class z3{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=lg,this.transport=null,this.heartbeatIntervalMs=ku.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Wf,this.ref=0,this.reconnectTimer=null,this.vsn=kb,this.logger=Wf,this.conn=null,this.sendBuffer=[],this.serializer=new w3,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${e}/${cg.websocket}`,this.httpEndpoint=DT(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=m3.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n} 314 315To use Realtime in Node.js, you need to provide a WebSocket implementation: 316 317Option 1: Use Node.js 22+ which has native WebSocket support 318Option 2: Install and provide the "ws" package: 319 320 npm install ws 321 322 import ws from "ws" 323 const client = new RealtimeClient(url, { 324 ...options, 325 transport: ws 326 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&this._remove(e),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ys.connecting:return bi.Connecting;case ys.open:return bi.Open;case ys.closing:return bi.Closing;default:return bi.Closed}}isConnected(){return this.connectionState()===bi.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}
326channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new La(`realtime:${e}`,n,this);return this.channels.push(i),i}}push(e){const{topic:n,event:r,payload:s,ref:i}=e,a=()=>{this.encode(e,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?a():this.sendBuffer.push(a)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(v3,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ku.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:a}=n,l=a?`(${a})`:"",c=i.status||"";this.log("receive",`${c} ${r} ${s} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,a)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===ys.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===ys.open||this.conn.readyState===ys.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}
326_triggerChanError(){this.channels.forEach(e=>e._trigger(ir.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([C3],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n,r=!1;if(e)n=e,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:g3};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(ir.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new IT(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ku.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,i,a,l,c,u,d,h,f,m;switch(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:lg,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:ku.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(a=e==null?void 0:e.accessToken)!==null&&a!==void 0?a:null,this.heartbeatCallback=(l=e==null?void 0:e.heartbeatCallback)!==null&&l!==void 0?l:Wf,this.vsn=(c=e==null?void 0:e.vsn)!==null&&c!==void 0?c:kb,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=e==null?void 0:e.reconnectAfterMs)!==null&&u!==void 0?u:w=>T3[w-1]||N3,this.vsn){case y3:this.encode=(d=e==null?void 0:e.encode)!==null&&d!==void 0?d:(w,p)=>p(JSON.stringify(w)),this.decode=(h=e==null?void 0:e.decode)!==null&&h!==void 0?h:(w,p)=>p(JSON.parse(w));break;case OT:this.encode=(f=e==null?void 0:e.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(m=e==null?void 0:e.decode)!==null&&m!==void 0?m:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}var gc=class extends Error{constructor(t,e){var n;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((n=e.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function A3(t,e,n){const r=new URL(e,t);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function R3(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function P3(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:a}){const l=A3(t.baseUrl,r,s),c=await R3(t.auth),u=await e(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...a},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const m=h?f:void 0,w=m==null?void 0:m.error;throw new gc((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:m})}return{status:u.status,headers:u.headers,data:f}}}}function _u(t){return t.join("�")}var O3=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:_u(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_u(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_u(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_u(t.namespace)}`}),!0}catch(e){if(e instanceof gc&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof gc&&n.status===409)return;throw n}}};function oa(t){return t.join("�")}var I3=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${oa(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${oa(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${oa(t.namespace)}
326/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${oa(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${oa(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${oa(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof gc&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof gc&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},L3=class{constructor(t){var r;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=P3({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(r=t.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new O3(this.client,e),this.tableOps=new I3(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}},Ih=class extends Error{constructor(t,e="storage",n,r){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Lh(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var ju=class extends Ih{constructor(t,e,n,r="storage"){super(t,r,e,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},MT=class extends Ih{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};const D3=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),M3=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},dg=t=>{if(Array.isArray(t))return t.map(n=>dg(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=dg(r)}),e},$3=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function yc(t){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yc(t)}function F3(t,e){if(yc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function U3(t){var e=F3(t,"string");return yc(e)=="symbol"?e:e+""}function V3(t,e,n){return(e=U3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function de(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
326e%2?Eb(Object(n),!0).forEach(function(r){V3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const Tb=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},B3=async(t,e,n,r)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(n!=null&&n.noResolveJson)){const s=t,i=s.status||500;if(typeof s.json=="function")s.json().then(a=>{const l=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||i+"";e(new ju(Tb(a),i,l,r))}).catch(()=>{if(r==="vectors"){const a=i+"";e(new ju(s.statusText||`HTTP ${i} error`,i,a,r))}else{const a=i+"";e(new ju(s.statusText||`HTTP ${i} error`,i,a,r))}});else{const a=i+"";e(new ju(s.statusText||`HTTP ${i} error`,i,a,r))}}else e(new MT(Tb(t),t,r))},H3=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||t==="HEAD"||!r?de(de({},s),n):(M3(r)?(s.headers=de({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),de(de({},s),n))};async function rl(t,e,n,r,s,i,a){return new Promise((l,c)=>{t(n,H3(e,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(a==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>l(u)).catch(u=>B3(u,c,r,a))})}function $T(t="storage"){return{get:async(e,n,r,s)=>rl(e,"GET",n,r,s,void 0,t),post:async(e,n,r,s,i)=>rl(e,"POST",n,s,i,r,t),put:async(e,n,r,s,i)=>rl(e,"PUT",n,s,i,r,t),head:async(e,n,r,s)=>rl(e,"HEAD",n,de(de({},r),{},{noResolveJson:!0}),s,void 0,t),remove:async(e,n,r,s,i)=>rl(e,"DELETE",n,s,i,r,t)}}const W3=$T("storage"),{get:vc,post:tr,put:hg,head:K3,remove:Dv}=W3,vn=$T("vectors");var Lo=class{constructor(t,e={},n,r="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.fetch=D3(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Lh(n))return{data:null,error:n};throw n}}},G3=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Lh(e))return{data:null,error:e};throw e}}};let FT;FT=Symbol.toStringTag;var q3=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[FT]="BlobDownloadBuilder",this.promise=null}asStream(){return new G3(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Lh(e))return{data:null,error:e};throw e}}};const Y3={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Nb={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Z3=class extends Lo{constructor(t,e={},n,r){super(t,e,r,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,r){var s=this;return s.handleOperation(async()=>{let i;const a=de(de({},Nb),r);let l=de(de({},s.headers),t==="POST"&&{"x-upsert":String(a.upsert)});const c=a.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",a.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",a.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${a.cacheControl}`,l["content-type"]=a.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers&&(l=de(de({},l),r.headers));const u=s._removeEmptyFolders(e),d=s._getFinalPath(u),h=await(t=="PUT"?hg:tr)(s.fetch,`${s.url}/object/${d}`,i,de({headers:l},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,r){var s=this;const i=s._removeEmptyFolders(t),a=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${a}`);return l.searchParams.set("token",e),s.handleOperation(async()=>{let c;const u=de({upsert:Nb.upsert},r),d=de(de({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{path:i,fullPath:(await hg(s.fetch,l.toString(),c,{headers:d})).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(t);const s=de({},n.headers);e!=null&&e.upsert&&(s["x-upsert"]="true");const i=await tr(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),a=new URL(n.url+i.url),l=a.searchParams.get("token");if(!l)throw new Ih("No token returned by API");return{signedUrl:a.toString(),path:t,token:l}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var r=this;return r.handleOperation(async()=>await tr(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(t,e,n){var r=this;return r.handleOperation(async()=>({path:(await tr(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(t,e,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(t),i=await tr(r.fetch,`${r.url}/object/sign/${s}
326`,de({expiresIn:e},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${i.signedURL}${a}`)}})}async createSignedUrls(t,e,n){var r=this;return r.handleOperation(async()=>{const s=await tr(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:e,paths:t},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s.map(a=>de(de({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${i}`):null}))})}download(t,e,n){const r=typeof(e==null?void 0:e.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((e==null?void 0:e.transform)||{}),i=s?`?${s}`:"",a=this._getFinalPath(t),l=()=>vc(this.fetch,`${this.url}/${r}/${a}${i}`,{headers:this.headers,noResolveJson:!0},n);return new q3(l,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>dg(await vc(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await K3(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Lh(r)&&r instanceof MT){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(t,e){const n=this._getFinalPath(t),r=[],s=e!=null&&e.download?`download=${e.download===!0?"":e.download}`:"";s!==""&&r.push(s);const i=typeof(e==null?void 0:e.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((e==null?void 0:e.transform)||{});a!==""&&r.push(a);let l=r.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${l}`)}}}async remove(t){var e=this;return e.handleOperation(async()=>await Dv(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var r=this;return r.handleOperation(async()=>{const s=de(de(de({},Y3),e),{},{prefix:t||""});return await tr(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const r=de({},t);return await tr(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const Q3="2.95.3",Hc={"X-Client-Info":`storage-js/${Q3}`};var J3=class extends Lo{constructor(t,e={},n,r){const s=new URL(t);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),a=de(de({},Hc),e);super(i,a,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await vc(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await vc(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await tr(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await hg(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await tr(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Dv(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},X3=class extends Lo{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=de(de({},Hc),e);super(r,s,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await tr(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&n.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&n.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&n.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&n.set("sortOrder",t.sortOrder),t!=null&&t.search&&n.set("search",t.search);const r=n.toString(),s=r?`${e.url}/bucket?${r}`:`${e.url}/bucket`;return await vc(e.fetch,s,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Dv(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!$3(t))throw new Ih("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new L3({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}
326),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const a=s[i];return typeof a!="function"?a:async(...l)=>{try{return{data:await a.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},eF=class extends Lo{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=de(de({},Hc),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await vn.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await vn.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},tF=class extends Lo{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=de(de({},Hc),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},nF=class extends Lo{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=de(de({},Hc),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await vn.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},rF=class extends nF{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new sF(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},sF=class extends eF{constructor(t,e,n,r){super(t,e,r),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new iF(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},iF=class extends tF{constructor(t,e,n,r,s){super(t,e,s),this.vectorBucketName=n,this.indexName=r}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,de(de({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},aF=class extends J3{constructor(t,e={},n,r){super(t,e,n,r)}from(t){return new Z3(this.url,this.headers,t,this.fetch)}get vectors(){return new rF(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new X3(this.url+"/iceberg",this.headers,this.fetch)}};const UT="2.95.3",ya=30*1e3,fg=3,Kf=fg*ya,oF="http://localhost:9999",lF="supabase.auth.token",cF={"X-Client-Info":`gotrue-js/${UT}`},mg="X-Supabase-Api-Version",VT={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},uF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,dF=10*60*1e3;
326class xc extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ae(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class hF extends xc{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function fF(t){return ae(t)&&t.name==="AuthApiError"}class ki extends xc{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class is extends xc{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class pn extends is{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Gf(t){return ae(t)&&t.name==="AuthSessionMissingError"}class la extends is{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Su extends is{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Eu extends is{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function mF(t){return ae(t)&&t.name==="AuthImplicitGrantRedirectError"}class Cb extends is{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class pF extends is{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class pg extends is{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function qf(t){return ae(t)&&t.name==="AuthRetryableFetchError"}class zb extends is{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class gg extends is{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Ab=` 327\r=`.split(""),gF=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Ab.length;e+=1)t[Ab[e].charCodeAt(0)]=-2;for(let e=0;e<Vd.length;e+=1)t[Vd[e].charCodeAt(0)]=e;return t})();function Rb(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Vd[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Vd[r]),e.queuedBits-=6}}function BT(t,e,n){const r=gF[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Pb(t){const e=[],n=a=>{e.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=a=>{xF(a,r,n)};for(let a=0;a<t.length;a+=1)BT(t.charCodeAt(a),s,i);return e.join("")}function yF(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function vF(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}yF(r,e)}}function xF(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function Ga(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)BT(t.charCodeAt(s),n,r);return new Uint8Array(e)}function wF(t){const e=[];return vF(t,n=>e.push(n)),new Uint8Array(e)}function Ni(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>Rb(s,n,r)),Rb(null,n,r),e.join("")}function bF(t){return Math.round(Date.now()/1e3)+t}function kF(){return Symbol("auth-callback")}const St=()=>typeof window<"u"&&typeof document<"u",mi={tested:!1,writable:!1},HT=()=>{if(!St())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(mi.tested)return mi.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),mi.tested=!0,mi.writable=!0}catch{mi.tested=!0,mi.writable=!1}return mi.writable};function _F(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
327h((s,i)=>{e[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const WT=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),jF=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",va=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},pi=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},jt=async(t,e)=>{await t.removeItem(e)};class Dh{constructor(){this.promise=new Dh.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Dh.promiseConstructor=Promise;function Tu(t){const e=t.split(".");if(e.length!==3)throw new gg("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!uF.test(e[r]))throw new gg("JWT not in base64url format");return{header:JSON.parse(Pb(e[0])),payload:JSON.parse(Pb(e[1])),signature:Ga(e[2]),raw:{header:e[0],payload:e[1]}}}async function SF(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function EF(t,e){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const a=await t(i);if(!e(i,null,a)){r(a);return}}catch(a){if(!e(i,a)){s(a);return}}})()})}function TF(t){return("0"+t.toString(16)).substr(-2)}function NF(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,TF).join("")}async function CF(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function zF(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await CF(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ca(t,e,n=!1){const r=NF();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await va(t,`${e}-code-verifier`,s);const i=await zF(r);return[i,r===i?"plain":"s256"]}const AF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function RF(t){const e=t.headers.get(mg);if(!e||!e.match(AF))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function PF(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function OF(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const IF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ua(t){if(!IF.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Yf(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function LF(t,e){return new Proxy(t,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!e.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(n,r,s)}})}function Ob(t){return JSON.parse(JSON.stringify(t))}const wi=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),DF=[502,503,504];async function Ib(t){var e;if(!jF(t))throw new pg(wi(t),0);if(DF.includes(t.status))throw new pg(wi(t),t.status);let n;try{n=await t.json()}catch(i){throw new ki(wi(i),i)}let r;const s=RF(t);if(s&&s.getTime()>=VT["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new zb(wi(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new pn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,a)=>
327i&&typeof a=="string",!0))throw new zb(wi(n),t.status,n.weak_password.reasons);throw new hF(wi(n),t.status||500,r)}const MF=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function ce(t,e,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[mg]||(i[mg]=VT["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const a=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const l=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",c=await $F(t,e,n+l,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function $F(t,e,n,r,s,i){const a=MF(e,r,s,i);let l;try{l=await t(n,Object.assign({},a))}catch(c){throw console.error(c),new pg(wi(c),0)}if(l.ok||await Ib(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await Ib(c)}}function Zn(t){var e;let n=null;VF(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=bF(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Lb(t){const e=Zn(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function bs(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function FF(t){return{data:t,error:null}}function UF(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=t,a=Io(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},a);return{data:{properties:l,user:c},error:null}}function Db(t){return t}function VF(t){return t.access_token&&t.refresh_token&&t.expires_in}const Zf=["global","local","others"];class BF{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=WT(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,n=Zf[0]){if(Zf.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Zf.join(", ")}`);try{return await ce(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ae(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await ce(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:bs})}catch(r){if(ae(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=Io(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await ce(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:UF,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ae(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:bs})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,i,a,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await ce(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Db});if(d.error)throw d.error;const h=await d.json(),f=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(w=>{const p=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=p}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ae(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){ua(e);try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:bs})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){ua(e);try{return await ce(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:bs})}catch(r){if(ae(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){ua(e);
327try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:bs})}catch(r){if(ae(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){ua(e.userId);try{const{data:n,error:r}=await ce(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _deleteFactor(e){ua(e.userId),ua(e.id);try{return{data:await ce(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,s,i,a,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Db});if(d.error)throw d.error;const h=await d.json(),f=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(w=>{const p=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=p}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ae(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await ce(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ae(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await ce(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}}function Mb(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const da={debug:!!(globalThis&&HT()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class KT extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class HF extends KT{}async function WF(t,e,n){da.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),da.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){da.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{da.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw da.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new HF(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(da.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function KF(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function GT(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}
327" is invalid.`);return t.toLowerCase()}function GF(t){return parseInt(t,16)}function qF(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function YF(t){var e;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:a,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:f}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 328`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const m=GT(t.address),w=d?`${d}://${r}`:r,p=t.statement?`${t.statement} 329`:"",b=`${w} wants you to sign in with your Ethereum account: 330${m} 331 332${p}`;let x=`URI: ${h} 333Version: ${f} 334Chain ID: ${n}${a?` 335Nonce: ${a}`:""} 336Issued At: ${i.toISOString()}`;if(s&&(x+=` 337Expiration Time: ${s.toISOString()}`),l&&(x+=` 338Not Before: ${l.toISOString()}`),c&&(x+=` 339Request ID: ${c}`),u){let y=` 340Resources:`;for(const v of u){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);y+=` 341- ${v}`}x+=y}return`${b} 342${x}`}class ut extends Error{constructor({message:e,code:n,cause:r,name:s}){var i;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Bd extends ut{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function ZF({error:t,options:e}){var n,r,s;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new ut({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new ut({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new ut({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new ut({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new ut({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new ut({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new ut({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new ut({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const a=window.location.hostname;if(qT(a)){if(i.rp.id!==a)return new ut({message:`The RP ID "${i.rp.id}
342" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new ut({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new ut({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new ut({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new ut({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function QF({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new ut({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new ut({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(qT(r)){if(n.rpId!==r)return new ut({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new ut({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new ut({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new ut({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class JF{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const XF=new JF;function eU(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:r}=t,s=Io(t,["challenge","user","excludeCredentials"]),i=Ga(e).buffer,a=Object.assign(Object.assign({},n),{id:Ga(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:a});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const u=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:Ga(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function tU(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,r=Io(t,["challenge","allowCredentials"]),s=Ga(e).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const l=n[a];i.allowCredentials[a]=Object.assign(Object.assign({},l),{id:Ga(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function nU(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:Ni(new Uint8Array(t.response.attestationObject)),clientDataJSON:Ni(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function rU(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Ni(new Uint8Array(s.authenticatorData)),clientDataJSON:Ni(new Uint8Array(s.clientDataJSON)),signature:Ni(new Uint8Array(s.signature)),userHandle:s.userHandle?Ni(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function qT(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function $b(){var t,e;return!!(St()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function sU(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Bd("Browser returned unexpected credential type",e)}:{data:null,error:new Bd("Empty credential response",e)}}catch(e){return{data:null,error:ZF({error:e,options:t})}}}async function iU(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Bd("Browser returned unexpected credential type",e)}:{data:null,error:new Bd("Empty credential response",e)}}catch(e){return{data:null,error:QF({error:e,options:t})}}}const aU={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},oU={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Hd(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of t)if(s)for(const i in s){const a=s[i];if(a!==void 0)if(Array.isArray(a))r[i]=a;else if(n(a))r[i]=a;else if(e(a)){const l=r[i];e(l)?r[i]=Hd(l,a):r[i]=Hd(a)}else r[i]=a}return r}function lU(t,e){return Hd(aU,t,e||{})}function cU(t,e){return Hd(oU,t,e||{})}class uU{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:r,signal:s},i){var a;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!l)return{data:null,error:c};const u=s??XF.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:d}=l.webauthn.credential_options.publicKey;if(!d.name){const h=r;if(h)d.name=`${d.id}:${h}`;else{const m=(await this.client.getUser()).data.user,w=((a=m==null?void 0:m.user_metadata)===null||a===void 0?void 0:a.name)||(m==null?void 0:m.email)||(m==null?void 0:m.id)||"User";d.name=`${d.id}:${w}`}}d.displayName||(d.displayName=d.name)}switch(l.webauthn.type){case"create":{const d=lU(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await sU({publicKey:d,signal:u});return h?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const d=cU(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await iU(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(l){return ae(l)?{data:null,error:l}:{data:null,error:new ki("Unexpected error in challenge",l)}}}async _verify({challengeId:e,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:r})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new xc("rpId is required for WebAuthn authentication")};try{if(!$b())return{data:null,error:new ki("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!a)return{data:null,error:l};const{webauthn:c}=a;return this._verify({factorId:e,challengeId:a.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(a){return ae(a)?{data:null,error:a}:{data:null,error:new ki("Unexpected error in authenticate",a)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new xc("rpId is required for WebAuthn registration")};try{if(!$b())return{data:null,error:new ki("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this._enroll({friendlyName:e});if(!a)return await this.client.mfa.listFactors().then(d=>{var h;
342return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===e&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:a.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(a){return ae(a)?{data:null,error:a}:{data:null,error:new ki("Unexpected error in register",a)}}}}KF();const dU={url:oF,storageKey:lF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:cF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function Fb(t,e,n){return await n()}const ha={};class wc{get jwks(){var e,n;return(n=(e=ha[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){ha[this.storageKey]=Object.assign(Object.assign({},ha[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=ha[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ha[this.storageKey]=Object.assign(Object.assign({},ha[this.storageKey]),{cachedAt:e})}constructor(e){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},dU),e);if(this.storageKey=i.storageKey,this.instanceID=(n=wc.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,wc.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&St()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new BF({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=WT(i.fetch),this.lock=i.lock||Fb,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&St()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=WF:this.lock=Fb,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new uU(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:HT()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Mb(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Mb(this.memoryStorage)),St()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${UT}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let n={},r="none";if(St()&&(n=_F(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),St()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),mF(i)){const c=(e=i.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:a,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",a,"redirect type",l),await this._saveSession(a),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ae(n)?this._returnResult({error:n}):this._returnResult({error:new ki("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Zn}),{data:a,error:l}=i;if(l||!a)return this._returnResult({data:{user:null,session:null},error:l});const c=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(ae(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var n,r,s;try{let i;if("email"in e){const{email:d,password:h,options:f}=e;let m=null,w=null;this.flowType==="pkce"&&([m,w]=await ca(this.storage,this.storageKey)),i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:w},xform:Zn})}else if("phone"in e){const{phone:d,password:h,options:f}=e;i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Zn})}else throw new Su("You must provide either an email or phone number and a password");const{data:a,error:l}=i;if(l||!a)return await jt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let n;if("email"in e){const{email:i,password:a,options:l}=e;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Lb})}else if("phone"in e){const{phone:i,password:a,options:l}=e;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Lb})}else throw new Su("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new la;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,r,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,s,i,a,l,c,u,d,h,f;let m,w;if("message"in e)m=e.message,w=e.signature;else{const{chain:p,wallet:b,statement:x,options:y}=e;let v;if(St())if(typeof b=="object")v=b;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")v=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=b}const k=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href),_=await v.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const j=GT(_[0]);let E=(r=y==null?void 0:y.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const A=await v.request({method:"eth_chainId"});E=GF(A)}const S={domain:k.host,address:j,statement:x,uri:k.href,version:"1",chainId:E,nonce:(s=y==null?void 0:y.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(a=(i=y==null?void 0:y.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(l=y==null?void 0:y.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=y==null?void 0:y.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=y==null?void 0:y.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=y==null?void 0:y.signInWithEthereum)===null||d===void 0?void 0:d.resources};m=YF(S),w=await v.request({method:"personal_sign",params:[qF(m),j]})}try{const{data:p,error:b}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:m,signature:w}
342,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Zn});if(b)throw b;if(!p||!p.session||!p.user){const x=new la;return this._returnResult({data:{user:null,session:null},error:x})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:b})}catch(p){if(ae(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(e){var n,r,s,i,a,l,c,u,d,h,f,m;let w,p;if("message"in e)w=e.message,p=e.signature;else{const{chain:b,wallet:x,statement:y,options:v}=e;let k;if(St())if(typeof x=="object")k=x;else{const j=window;if("solana"in j&&typeof j.solana=="object"&&("signIn"in j.solana&&typeof j.solana.signIn=="function"||"signMessage"in j.solana&&typeof j.solana.signMessage=="function"))k=j.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=x}const _=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);
342if("signIn"in k&&k.signIn){const j=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),y?{statement:y}:null));let E;if(Array.isArray(j)&&j[0]&&typeof j[0]=="object")E=j[0];else if(j&&typeof j=="object"&&"signedMessage"in j&&"signature"in j)E=j;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)w=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),p=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${_.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(s=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((u=v==null?void 0:v.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((h=(d=v==null?void 0:v.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...v.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 343`);const j=await k.signMessage(new TextEncoder().encode(w),"utf8");if(!j||!(j instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=j}}try{const{data:b,error:x}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:Ni(p)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Zn});if(x)throw x;if(!b||!b.session||!b.user){const y=new la;return this._returnResult({data:{user:null,session:null},error:y})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:x})}catch(b){if(ae(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(e){const n=await pi(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new pF;const{data:i,error:a}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Zn});if(await jt(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!i||!i.session||!i.user){const l=new la;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:a})}catch(i){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:i,nonce:a}=e,l=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Zn}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new la;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,r,s,i,a;try{if("email"in e){const{email:l,options:c}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await ca(this.storage,this.storageKey));const{error:h}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in e){const{phone:l,options:c}=e,{data:u,error:d}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(a=c==null?void 0:c.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Su("You must provide either an email or phone number.")}catch(l){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(e){var n,r;try{let s,i;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,i=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:a,error:l}=await ce(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Zn});if(l)throw l;if(!a)throw new Error("An error occurred on token verification.");const c=a.session,u=a.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(ae(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var n,r,s,i,a;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await ca(this.storage,this.storageKey));const u=await ce(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:FF});return!((i=u.data)===null||i===void 0)&&i.url&&St()&&!(!((a=e.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new pn;const{error:s}=await ce(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if(ae(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:i}=e,{error:a}=await ce(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in e){const{phone:r,type:s,options:i}=e,{data:a,error:l}=await ce(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:l})}throw new Su("You must provide either an email or phone number and a type")}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await pi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
343id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<Kf:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const a=await pi(this.userStorage,this.storageKey+"-user");a!=null&&a.user?e.user=a.user:e.user=Yf()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};e.user=LF(e.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:bs}):await this._useSession(async n=>{var r,s,i;const{data:a,error:l}=n;if(l)throw l;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new pn}:await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=a.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:bs})})}catch(n){if(ae(n))return Gf(n)&&(await this._removeSession(),await jt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new pn;const a=s.session;let l=null,c=null;this.flowType==="pkce"&&e.email!=null&&([l,c]=await ca(this.storage,this.storageKey));const{data:u,error:d}=await ce(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:c}),jwt:a.access_token,xform:bs});if(d)throw d;return a.user=u.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(r){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new pn;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:a}=Tu(e.access_token);if(a.exp&&(r=a.exp,s=r<=n),s){const{data:l,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(e.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(ae(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:a,error:l}=n;if(l)throw l;e=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new pn;const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){try{if(!St())throw new Eu("No browser detected.");
343if(e.error||e.error_description||e.error_code)throw new Eu(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Cb("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Eu("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Cb("No code detected.");const{data:y,error:v}=await this._exchangeCodeForSession(e.code);if(v)throw v;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:a,expires_in:l,expires_at:c,token_type:u}=e;if(!i||!l||!a||!u)throw new Eu("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;c&&(f=parseInt(c));const m=f-d;m*1e3<=ya&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const w=f-h;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,f,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,f,d);const{data:p,error:b}=await this._getUser(i);if(b)throw b;const x={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:f,refresh_token:a,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:x,redirectType:e.type},error:null})}catch(r){if(ae(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await pi(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!Gf(i))return this._returnResult({error:i});const a=(r=s.session)===null||r===void 0?void 0:r.access_token;if(a){const{error:l}=await this.admin.signOut(a,e);if(l&&!(fF(l)&&(l.status===404||l.status===401||l.status===403)||Gf(l)))return this._returnResult({error:l})}return e!=="others"&&(await this._removeSession(),await jt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=kF(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:a}=n;if(a)throw a;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ca(this.storage,this.storageKey,!0));try{return await ce(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var a,l,c,u,d;const{data:h,error:f}=i;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(a=e.options)===null||a===void 0?void 0:a.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await ce(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return St()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:e.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(ae(r))return this._returnResult({data:{provider:e.provider,url:null},error:r});throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
343if(s)throw s;const{options:a,provider:l,token:c,access_token:u,nonce:d}=e,h=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Zn}),{data:f,error:m}=h;return m?this._returnResult({data:{user:null,session:null},error:m}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new la}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:m}))}catch(s){if(await jt(this.storage,`${this.storageKey}-code-verifier`),ae(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:a}=n;if(a)throw a;return await ce(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await EF(async s=>(s>
3430&&await SF(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await ce(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Zn})),(s,i)=>{const a=200*Math.pow(2,s);return i&&qf(i)&&Date.now()+a-r<ya})}catch(r){if(this._debug(n,"error",r),ae(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),St()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await pi(this.storage,this.storageKey);if(s&&this.userStorage){let a=await pi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:s.user},await va(this.userStorage,this.storageKey+"-user",a)),s.user=(e=a==null?void 0:a.user)!==null&&e!==void 0?e:Yf()}else if(s&&!s.user&&!s.user){const a=await pi(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(s.user=a.user,await jt(this.storage,this.storageKey+"-user"),await va(this.storage,this.storageKey,s)):s.user=Yf()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Kf;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Kf}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:a}=await this._callRefreshToken(s.refresh_token);a&&(console.error(a),qf(a)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:l}=await this._getUser(s.access_token);!l&&(a!=null&&a.user)?(s.user=a.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new pn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Dh;const{data:i,error:a}=await this._refreshAccessToken(e);if(a)throw a;if(!i.session)throw new pn;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),ae(i)){const a={data:null,error:i};return qf(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const i=[],a=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,n)}catch(c){i.push(c)}});if(await Promise.all(a),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await jt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await va(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Ob(s);await va(this.storage,this.storageKey,i)}else{const s=Ob(n);await va(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await jt(this.storage,this.storageKey),await jt(this.storage,this.storageKey+"-code-verifier"),await jt(this.storage,this.storageKey+"-user"),this.userStorage&&await jt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&St()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
343catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ya);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-e)/ya);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ya}ms, refresh threshold is ${fg} ticks`),s<=fg&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof KT)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!St()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,a]=await ca(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});s.push(l.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await ce(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:a}=n;
343if(a)return this._returnResult({data:null,error:a});const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:c,error:u}=await ce(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(e.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?nU(e.webauthn.credential_response):rU(e.webauthn.credential_response)})}:{code:e.code}),{data:l,error:c}=await ce(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=await ce(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(a.error)return a;const{data:l}=a;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:eU(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:tU(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=n==null?void 0:n.factors)!==null&&e!==void 0?e:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,r,s,i;if(e)try{const{payload:m}=Tu(e);let w=null;m.aal&&(w=m.aal);let p=w;const{data:{user:b},error:x}=await this.getUser(e);if(x)return this._returnResult({data:null,error:x});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(k=>k.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(p="aal2");const v=m.amr||[];return{data:{currentLevel:w,nextLevel:p,currentAuthenticationMethods:v},error:null}}catch(m){if(ae(m))return this._returnResult({data:null,error:m});throw m}const{data:{session:a},error:l}
343=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=Tu(a.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((i=(s=a.user.factors)===null||s===void 0?void 0:s.filter(m=>m.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(d="aal2");const f=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await ce(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new pn})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new pn});const a=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&St()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(ae(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new pn});const a=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&St()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(ae(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;return r?this._returnResult({data:null,error:r}):n?await ce(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new pn})})}catch(e){if(ae(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await ce(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new pn})})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(l=>l.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===e),r&&this.jwks_cached_at+dF>s)return r;const{data:i,error:a}=await ce(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:m,error:w}
343=await this.getSession();if(w||!m.session)return this._returnResult({data:null,error:w});r=m.session.access_token}const{header:s,payload:i,signature:a,raw:{header:l,payload:c}}=Tu(r);n!=null&&n.allowExpired||PF(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:i,header:s,signature:a},error:null}}const d=OF(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,a,wF(`${l}.${c}`)))throw new gg("Invalid JWT signature");return{data:{claims:i,header:s,signature:a},error:null}}catch(r){if(ae(r))return this._returnResult({data:null,error:r});throw r}}}wc.nextInstanceID={};const hU=wc,fU="2.95.3";let vl="";typeof Deno<"u"?vl="deno":typeof document<"u"?vl="web":typeof navigator<"u"&&navigator.product==="ReactNative"?vl="react-native":vl="node";const mU={"X-Client-Info":`supabase-js-${vl}/${fU}`},pU={headers:mU},gU={schema:"public"},yU={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},vU={};function bc(t){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bc(t)}function xU(t,e){if(bc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wU(t){var e=xU(t,"string");return bc(e)=="symbol"?e:e+""}function bU(t,e,n){return(e=wU(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ub(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ub(Object(n),!0).forEach(function(r){bU(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ub(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const kU=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),_U=()=>Headers,jU=(t,e,n)=>{const r=kU(n),s=_U();return async(i,a)=>{var l;const c=(l=await e())!==null&&l!==void 0?l:t;let u=new s(a==null?void 0:a.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(i,st(st({},a),{},{headers:u}))}};function SU(t){return t.endsWith("/")?t:t+"/"}function EU(t,e){var n,r;const{db:s,auth:i,realtime:a,global:l}=t,{db:c,auth:u,realtime:d,global:h}=e,f={db:st(st({},c),s),auth:st(st({},u),i),realtime:st(st({},d),a),storage:{},global:st(st(st({},h),l),{},{headers:st(st({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function TU(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(SU(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var NU=class extends hU{constructor(t){super(t)}},CU=class{constructor(t,e,n){var r,s;this.supabaseUrl=t,this.supabaseKey=e;const i=TU(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const a=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:gU,realtime:vU,auth:st(st({},yU),{},{storageKey:a}),global:pU},c=EU(n??{},l);if(this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=jU(e,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(st({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new f3(new
343URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new aF(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new i3(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:r}=await t.auth.getSession();return(e=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:a,lock:l,debug:c,throwOnError:u},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new NU({url:this.authUrl.href,headers:st(st({},f),d),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,flowType:a,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new z3(this.realtimeUrl.href,st(st({},t),{},{params:st(st({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const zU=(t,e,n)=>new CU(t,e,n);function AU(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}AU()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const RU="https://ftjbaccndpyzlifkgrfl.supabase.co",PU="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ0amJhY2NuZHB5emxpZmtncmZsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA5Nzg4NDksImV4cCI6MjA4NjU1NDg0OX0.xFJOwP5M4vLoVAHHXQYZuRG3zJBC19hF8O6mcKsGtzg",$t=zU(RU,PU,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),OU=()=>{const{toast:t}=na(),[e,n]=g.useState(""),[r,s]=g.useState(""),[i,a]=g.useState(!1),l=async c=>{if(c.preventDefault(),!i){a(!0);try{const{data:u,error:d}=await $t.functions.invoke("newsletter-subscribe",{body:{email:e,name:r}});if(d||u!=null&&u.error){const h=(u==null?void 0:u.error)||(d==null?void 0:d.message)||"Sikertelen feliratkozás.";t({title:"Hiba",description:h,variant:"destructive"})}else t({title:"Köszönöm a feliratkozást!",description:"Hamarosan jelentkezem hasznos tartalmakkal."}),n(""),s("")}catch{t({title:"Hiba",description:"Váratlan hiba történt. Kérlek próbáld újra.",variant:"destructive"})}finally{a(!1)}}};return o.jsx("section",{id:"newsletter",className:"py-16 bg-sage-light/30",children:o.jsx("div",{className:"container max-w-3xl",children:o.jsxs("div",{className:"bg-background border border-border p-8 md:p-12",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[o.jsx("div",{className:"w-10 h-10 bg-sage flex items-center justify-center",children:o.jsx(rc,{className:"w-5 h-5 text-primary-foreground"})}),o.jsx("h2",{className:"font-display text-2xl md:text-3xl text-charcoal",children:"HÃrlevél"})]}),o.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:"Irat
343kozz fel hÃrlevelemre."}),o.jsxs("form",{onSubmit:l,className:"flex flex-col sm:flex-row gap-3",children:[o.jsx(yt,{type:"text",placeholder:"Neved (opcionális)",value:r,onChange:c=>s(c.target.value),className:"rounded-none sm:max-w-[200px]",maxLength:100,disabled:i}),o.jsx(yt,{type:"email",placeholder:"E-mail cÃmed",value:e,onChange:c=>n(c.target.value),required:!0,className:"rounded-none flex-1",maxLength:254,disabled:i}),o.jsx(le,{type:"submit",disabled:i,className:"rounded-none",children:i?"Küldés...":"Feliratkozás"})]}),o.jsx("p",{className:"text-xs text-muted-foreground mt-4",children:"A feliratkozással elfogadod, hogy e-mailben tartalmakat küldjek. Bármikor leiratkozhatsz."})]})})})},Vb="workshop-popup-dismissed-v1",IU=()=>{const[t,e]=g.useState(!1);g.useEffect(()=>{if(typeof window>"u"||sessionStorage.getItem(Vb))return;const s=()=>{const i=window.scrollY+window.innerHeight,a=document.documentElement.scrollHeight;a>0&&i/a>=.5&&(e(!0),window.removeEventListener("scroll",s))};return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]);const n=()=>{e(!1);try{sessionStorage.setItem(Vb,"1")}catch{}},r=()=>{n(),setTimeout(()=>{const s=document.getElementById("newsletter");s&&s.scrollIntoView({behavior:"smooth",block:"center"})},200)};return o.jsx(pT,{children:t&&o.jsxs(o.Fragment,{children:[o.jsx(K.div,{initial:{opacity:0}
343,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[100] bg-foreground/40 backdrop-blur-sm",onClick:n}),o.jsxs(K.div,{initial:{opacity:0,y:20,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.97},transition:{duration:.3},className:"fixed left-1/2 top-1/2 z-[101] w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 bg-background shadow-elegant",children:[o.jsx("button",{onClick:n,"aria-label":"Bezárás",className:"absolute right-3 top-3 p-1.5 text-muted-foreground hover:text-foreground transition-colors",children:o.jsx($y,{className:"w-4 h-4"})}),o.jsxs("div",{className:"p-7 md:p-8",children:[o.jsxs("div",{className:"inline-flex items-center gap-1.5 text-primary text-xs font-sans uppercase tracking-widest mb-3",children:[o.jsx(Gi,{className:"w-3.5 h-3.5"}),"Online workshop · 2026. máj. 6."]}),o.jsx("h3",{className:"text-2xl md:text-3xl font-display text-foreground leading-tight mb-3",children:"Világunk veszte: a telhetetlenség"}),o.jsx("p",{className:"text-foreground/80 font-sans text-sm leading-relaxed mb-6",children:"Egy interaktÃv online workshop a tudatos fogyasztásról. Korlátozott létszám, early bird ár április 26-ig."}),o.jsx(le,{asChild:!0,size:"lg",className:"w-full group",onClick:n,children:o.jsxs(ve,{to:"/workshopok",children:["Részletek és jelentkezés",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})}),o.jsxs("p",{className:"text-xs text-muted-foreground font-sans mt-4 text-center",children:["vagy"," ",o.jsx("button",{onClick:r,className:"underline underline-offset-2 hover:text-primary transition-colors",children:"iratkozz fel a hÃrlevélre"}),", hogy értesülj a következÅ elÅadásokról"]})]})]})]})})},LU=()=>o.jsxs($e,{children:[o.jsx(IU,{}),o.jsx(I$,{}),o.jsx(D$,{}),o.jsx(L$,{}),o.jsx(M$,{}),o.jsx(B$,{}),o.jsx(V$,{}),o.jsx(H$,{}),o.jsx(K$,{}),o.jsx(G$,{}),o.jsx(Y$,{}),o.jsx(e3,{}),o.jsx(OU,{}),o.jsx(Z$,{})]}
343),DU=[{icon:xh,title:"ElÅadások, workshopok",description:"Környezettudatos motivációs programok, melyek elÅsegÃtik a felelÅs szemlélet kialakÃtását, és támogatják a tudatos döntéshozatalt.",link:"/eloadasok"},{icon:wh,title:"Fenntarthatósági stratégia",description:"Ãtfogó üzleti modellek kidolgozása, melyek az ESG-alapelvek mentén hatékonyan integrálják a társadalmi és környezeti szempontokat a vállalat működésébe.",link:"/szolgaltatasok/kornyezeti-strategia"},{icon:Ic,title:"Nonbusiness Marketing",description:"Közösségi értékeket erÅsÃtÅ megközelÃtés, mely hitelesen mutatja be a környezeti és társadalmi felelÅsségvállalást, és támogatja a felelÅs gondolkodásmódot.",link:"/szolgaltatasok/nonbusiness-marketing"},{icon:Dy,title:"Egyéni konzultáció",description:"Online, strukturált szakmai beszélgetés egyéneknek és kisvállalkozóknak, akik szeretnék tisztábban látni a jelenlegi gazdasági, környezeti és társadalmi folyamatokat.",link:"/szolgaltatasok/egyeni-konzultacio"}],MU=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Szolgáltatások"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"Gyorsan változó világunkban a környezettudatos működés már nem csupán trend, hanem alapvetÅ elvárás is. Azok a vállalatok, melyek működésükben és stratégiájukban hitelesen érvényesÃtik a környezeti és társadalmi felelÅsségvállalást, nemcsak versenyképesebbek, hanem megbÃzhatóbb partnerekké is válnak."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:DU.map((t,e)=>o.jsx(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},children:o.jsx(ve,{to:t.link,className:"block group",children:o.jsxs("div",{className:"bg-card rounded-lg p-8 shadow-card hover:shadow-elegant transition-all duration-500 border border-border/50 h-full",children:[o.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mb-6 group-hover:bg-primary transition-colors duration-300",children:o.jsx(t.icon,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),o.jsx("h3",{className:"text-xl font-display text-foreground mb-3",children:t.title}),o.jsx("p",{className:"text-muted-foreground font-sans text-sm leading-relaxed mb-4",children:t.description}),o.jsxs("span",{className:"text-primary font-sans text-sm flex items-center gap-2 group-hover:gap-3 transition-all",children:["Részletek ",o.jsx(De,{className:"w-4 h-4"})]})]})})},e))})})}),o.jsx("section",{className:"py-12 lg:py-16 bg-secondary",children:o.jsxs("div",{className:"container text-center",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Beszéljük át, miben segÃthetek!"}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["DÃjmentes konzultáció",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})]}),$U=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/10 flex items-center justify-center mb-6",children:o.jsx(Ic,{className:"w-8 h-8 text-white"})}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Nonbusiness Marketing"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"Közösségi értékeket erÅsÃtÅ megközelÃtés, mely hitelesen mutatja be a környezeti és társadalmi felelÅsségvállalást, és támogatja a felelÅs gondolkodásmódot."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"max-w-3xl mx-auto",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Mi az a Nonbusiness Marketing?"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"A nonbusiness marketing olyan marketingszemlélet, amely nem csupán az értékesÃtési célokat tartja szem elÅtt, hanem a társadalmi és környezeti felelÅsségvállalást is. Ez a megközelÃtés segÃt a vállalatoknak hitelesen kommunikálni környezettudatos törekvéseiket."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"Munkám során segÃtek abban, hogy a vállalatok ne csak zöldre mázolják magukat, hanem valódi értékeket képviseljenek és kommunikáljanak. A hiteles, környezettudatos kommunikáció hosszú távon erÅsÃti a márkát
343és a fogyasztói bizalmat."}),o.jsx("h3",{className:"text-xl font-display text-foreground mb-4",children:"Miben segÃthetek?"}),o.jsx("ul",{className:"space-y-3 mb-8",children:["Környezettudatos kommunikációs stratégia kidolgozása","Greenwashing elkerülése, hiteles üzenetalkotás","Társadalmi és környezeti felelÅsségvállalás kommunikálása","Közösségi értékeket erÅsÃtÅ kampányok tervezése","ESG jelentések kommunikációs támogatása"].map((t,e)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:t})]},e))}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kérj ajánlatot",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})})})]}),FU=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/10 flex items-center justify-center mb-6",children:o.jsx(wh,{className:"w-8 h-8 text-white"})}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Környezeti és társadalmi stratégia"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"Ãtfogó üzleti modellek kidolgozása, melyek az ESG-alapelvek mentén hatékonyan integrálják a társadalmi és környezeti szempontokat a vállalat működésébe."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"max-w-3xl mx-auto",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Miért fontos a környezeti és társadalmi stratégia?"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"A környezettudatosság ma már nem választható extra, hanem üzleti szükségszerűség. Az ESG (Environmental, Social, Governance) szempontok figyelembevétele nemcsak a környezeti lábnyom csökkentését szolgálja, hanem hosszú távú üzleti elÅnyt is jelent."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"SegÃtek a vállalatoknak abban, hogy a környezeti és társadalmi felelÅsségvállalást ne teherként, hanem lehetÅségként kezeljék. Az átfogó stratégia kidolgozása során figyelembe vesszük az iparági sajátosságokat, a vállalat méretét és a meglévÅ erÅforrásokat."}),o.jsx("h3",{className:"text-xl font-display text-foreground mb-4",children:"A stratégiaalkotás elemei"}),o.jsx("ul",{className:"space-y-3 mb-8",children:["Jelenlegi helyzet felmérése és elemzése","ESG célok és mérÅszámok meghatározása","Cselekvési terv kidolgozása","Kommunikációs stratégia a belsŠés külsŠérintettek felé","Monitoring és jelentéstételi rendszer kialakÃtása"].map((t,e)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:t})]},e))}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kérj ajánlatot",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})})})]}),UU=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Miért fontos a környezettudatosság?"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"A világ körülöttünk gyorsan változik. Ahhoz, hogy lépést tartsunk, meg kell értenünk a komplex globális rendszereket, és felelÅs döntéseket kell hoznunk."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"A
343komplex globális rendszerek megértése"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"A mai világ összetett kihÃvásokkal néz szembe: klÃmaváltozás, társadalmi egyenlÅtlenségek, gazdasági bizonytalanság. Ezek a problémák nem elszigetelten léteznek â összefonódnak, és egyszerre hatnak az életünk minden területére. Ezt a jelenséget nevezik polikrÃzisnek."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"A környezettudatosság nem csupán arról szól, hogy kevesebb műanyagot használunk. Arról szól, hogy megértjük, hogyan kapcsolódnak össze a döntéseink â egyéni és vállalati szinten egyaránt â a globális folyamatokkal."})]}),o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"grid md:grid-cols-2 gap-6 mb-12",children:[o.jsxs("div",{className:"bg-secondary rounded-lg p-6",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:o.jsx(Rj,{className:"w-6 h-6 text-primary"})}),o.jsx("h3",{className:"text-lg font-display text-foreground mb-2",children:"Globális összefüggések"}),o.jsx("p",{className:"text-muted-foreground font-sans text-sm leading-relaxed",children:"A helyi döntések globális következményekkel járnak. Amit itt csinálunk, az hat a világ másik felére â és fordÃtva."})]}),o.jsxs("div",{className:"bg-secondary rounded-lg p-6",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:o.jsx(My,{className:"w-6 h-6 text-primary"})}),o.jsx("h3",{className:"text-lg font-display text-foreground mb-2",children:"Társadalmi felelÅsség"}),o.jsx("p",{className:"text-muted-foreground font-sans text-sm leading-relaxed",children:"A vállalatok és az egyének egyaránt felelÅsséggel tartoznak a közösségüknek és a jövÅ generációknak."})]}),o.jsxs("div",{className:"bg-secondary rounded-lg p-6",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:o.jsx(wh,{className:"w-6 h-6 text-primary"})}),o.jsx("h3",{className:"text-lg font-display text-foreground mb-2",children:"Ãzleti elÅny"}),o.jsx("p",{className:"text-muted-foreground font-sans text-sm leading-relaxed",children:"A környezettudatos működés nem teher, hanem versenyelÅny. A tudatos fogyasztók egyre többen vannak."})]}),o.jsxs("div",{className:"bg-secondary rounded-lg p-6",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:o.jsx(Ic,{className:"w-6 h-6 text-primary"})}),o.jsx("h3",{className:"text-lg font-display text-foreground mb-2",children:"Környezeti hatás"}),o.jsx("p",{className:"text-muted-foreground font-sans text-sm leading-relaxed",children:"Minden döntésünknek környezeti lábnyoma van. A tudatos választások összeadódnak."})]})]}),o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Mit tehetsz te?"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"A változás egyéni és vállalati szinten is elkezdÅdhet. Az elsÅ lépés a megértés â a második a cselekvés. SegÃtek abban, hogy átlásd a lehetÅségeidet, és konkrét lépéseket tegyél a környezettudatosabb működés felé."}),o.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Beszélgessünk!",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})}),o.jsx(le,{asChild:!0,variant:"outline",size:"lg",children:o.jsx(ve,{to:"/szolgaltatasok",children:"Szolgáltatásaim"})})]})]})]})})})]}),VU=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20}
343,animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/10 flex items-center justify-center mb-6",children:o.jsx(My,{className:"w-8 h-8 text-white"})}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Marketing és kommunikációs tanácsadás"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"Tudatos stratégiatervezés, mely célzott marketingmegoldásokkal segÃt kiemelkedni a piaci zajból."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"max-w-3xl mx-auto",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Hogyan segÃtek a marketingben?"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"Több mint 12 év marketing tapasztalattal a hátam mögött segÃtek abban, hogy a vállalatok megtalálják a saját hangjukat és hatékonyan kommunikáljanak célközönségükkel. A tudatos marketingstratégia alapja a célcsoport alapos ismerete és az értékajánlat pontos megfogalmazása."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"KülönbözÅ vállalati környezetekben â multinacionális cégtÅl kezdve hazai gyártó vállalaton át disztribútorokig â szerzett tapasztalataim lehetÅvé teszik, hogy rugalmasan alkalmazkodjak az egyedi igényekhez."}),o.jsx("h3",{className:"text-xl font-display text-foreground mb-4",children:"Szolgáltatásaim"}),o.jsx("ul",{className:"space-y-3 mb-8",children:["Marketingstratégia kidolgozása és felülvizsgálata","Márkapozicionálás és üzenetalkotás","Digitális marketing tanácsadás","Tartalomstratégia és content marketing","Kampánytervezés és -végrehajtás támogatása"].map((t,e)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:t})]},e))}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kérj ajánlatot",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})})})]}),BU=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/10 flex items-center justify-center mb-6",children:o.jsx(Dy,{className:"w-8 h-8 text-white"})}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Egyéni konzultáció"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"Online, strukturált szakmai beszélgetés egyéneknek és kisvállalkozóknak."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container max-w-3xl",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"prose prose-lg max-w-none",children:[o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"Az egyéni konzultáció online, strukturált szakmai beszélgetés egyéneknek és kisvállalkozóknak, akik szeretnék tisztábban látni a jelenlegi gazdasági, környezeti és társadalmi folyamatokat, és ezek összefüggésében megalapozottabb döntéseket hozni."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"A beszélgetés során áttekintjük, milyen rendszerszintű kockázatok és átalakuló trendek hatnak ma a piaci szereplÅkre és a mindennapi életre, hogyan változik a működési környezet, és milyen alkalmazkodási irányok rajzolódnak ki ebben a helyzetben. SegÃtek értelmezni a polikrÃzis jelenségét, a gazdasági növekedési kényszerbÅl fakadó feszültségeket, valamint azt, hogy mindez miként jelenik meg egy vállalkozás működésében vagy egyéni döntések szintjén."}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"Kisvállalkozók számára a konzultáció fókuszálhat a felelÅs működés gyakorlati kérdéseire, stratég
343iai döntési dilemmákra, piaci alkalmazkodásra és hiteles kommunikációra. Egyének számára abban nyújt támpontot, hogyan lehet tudatosabban viszonyulni a jelenlegi bizonytalanságokhoz, hogyan lehet felkészültebben reagálni a változásokra, és miként lehet a saját működést környezeti és társadalmi szempontból átgondolni."}),o.jsx("p",{className:"text-foreground font-sans font-medium leading-relaxed",children:"Ez szakmai alapokra épülÅ, elemzÅ gondolkodást támogató konzultáció, amelynek célja a tisztább helyzetértés és a tudatosabb döntéshozatal."})]})})}),o.jsx("section",{className:"py-12 lg:py-16 bg-secondary",children:o.jsxs("div",{className:"container text-center",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Foglalj idÅpontot egy beszélgetésre!"}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kapcsolatfelvétel",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})]}),HU=[{src:NT,title:"Vegan Summit 2025",type:"Panelbeszélgetés"},{src:zT,title:"AgriCoolTúra",type:"ElÅadás"},{src:AT,title:"Interjú",type:"Sajtómegjelenés"},{src:RT,title:"Klub Rádió",type:"Rádiós beszélgetés"},{src:CT,title:"Tematikus est",type:"Beszélgetés"}],WU=["Környezettudatosság a vállalati működésben","ESG és a felelÅs üzleti döntéshozatal","Greenwashing vs. hiteles kommunikáció","A tudatos fogyasztó és a vállalatok viszonya","Marketing a környezettudatosság szolgálatában","FelelÅs döntéshozatal komplex globális rendszerekben"],KU=["Egyéni és közösségi felelÅsség a változó világban","Hogyan értsük meg a komplex globális rendszereket?","Környezettudatos életmód a mindennapokban","A polikrÃzis és hatásai az életünkre","Tudatos fogyasztás és a döntéseink súlya"],GU=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/10 flex items-center justify-center mb-6",children:o.jsx(xh,{className:"w-8 h-8 text-white"})}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"ElÅadások, workshopok"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light mb-4",children:"Konferenciákon, vállalati rendezvényeken, és közösségi eseményeken osztom meg gondolataimat a környezettudatosságról, a felelÅs üzleti működésrÅl és arról, hogyan érthetjük meg jobban a körülöttünk zajló komplex globális folyamatokat."}),o.jsx("p",{className:"text-white/70 text-lg font-sans font-light",children:"ElÅadásaim célja, hogy a résztvevÅk ne csak megértsék a kihÃvásokat, hanem konkrét eszközöket és szemléletet kapjanak a mindennapi döntéseikhez â legyen szó egyéni vagy vállalati szintű felelÅsségvállalásról."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 mb-16",children:[o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-4",children:"Vállalatoknak"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"Vállalati rendezvényeken, konferenciákon és csapatépÃtÅkön tartok elÅadásokat, amelyek segÃtenek a szervezeteknek megérteni a környezeti és társadalmi felelÅsségvállalás üzleti jelentÅségét, és konkrét lépéseket tenni a környezettudatosabb működés felé."}),o.jsx("ul",{className:"space-y-3",children:WU.map((t,e)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:t})]},e))})]}),o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-4",children:"Mindenkinek"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-6",children:"Közösségi eseményeken, fesztiválokon és nyilvános elÅadásokon beszélek arról, hogyan érthetjük meg jobban a körülöttünk zajló komplex globális folyamatokat, és miképp lehetünk környezettudatosabbak a mindennapjainkban. Az elÅadásaim célja, hogy a résztvevÅk felismerjék saját szerepüket és lehetÅségeiket a változásban."}),o.jsx("ul",{className:"space-y-3",children:KU.map((t,e)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:t})]},e))})]})]}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-8 text-center",children:"Korábbi megjelenések"}),o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:HU.map((t,e)=>o.jsx(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"group",children:o.jsx("div",{className:"aspect-[4/3] rounded-lg overflow-hidden mb-4",children:o.jsx("img",{src:t.src,alt:t.title,className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all duration-500"})})},e))})]})}),o.jsx("section",{className:"py-12 lg:py-16 bg-secondary",children:o.jsxs("div",{className:"container text-center",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-4",children:"HÃvj meg elÅadónak!"}),o.jsx("p",{className:"text-muted-foreground font-sans mb-6 max-w-xl mx-auto",children:"SzÃvesen tartok elÅadást, workshopot vagy részt veszek panelbeszélgetéseken. Vedd fel velem a kapcsolatot!"}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kapcsolatfelvétel",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})]}),qU="/assets/vilagunk-veszte-portrait-qVutm7Dw.jpg",YU=["hogyan alakult ki a mai fogyasztói világ","mit és miért fogyasztunk a mindennapokban","mire költünk aránytalanul sokat Magyarországon","generációs különbségek a fogyasztási szokásokban","a maszkulinitási index szerepe","a túlfogyasztás globális következményei"],ZU=["Középiskolák, egyetemek","Civil és vállalati események","Lakossági edukációs programok","Ãnkormányzati események","Szakmai konferenciák, workshopok"],QU=["rálátást arra, milyen agyi mechanizmusok befolyásolják döntéseidet","megértést arról, hogyan használja ki a marketing az ösztöneinket online és offline térben","konkrét példákat arra, mi hat ránk vásárlás közben","betekintést abba, hogyan váltak a gyerekek kiemelt célcsoporttá","kézzelfogható, azonnal alkalmazható módszereket a tudatosabb fogyasztáshoz"],JU=["környezetileg és társadalmilag felelÅsebben élhetünk és dönthetünk","megértjük globális, komplex rendszereinket","ráismerünk a polikrÃzis jelenségére és annak hétköznapi hatásaira","tisztábban látjuk, mire célszerű és mire nem érdemes költeni"],XU=()=>{const[t,e]=g.useState(!1);return o.jsxs($e,{children:[o.jsx("section",{className:"bg-secondary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20}
343,animate:{opacity:1,y:0},transition:{duration:.6},className:"grid lg:grid-cols-2 gap-10 lg:gap-16 items-center",children:[o.jsxs("div",{className:"text-left",children:[o.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-primary text-primary-foreground px-5 py-2 text-sm font-sans font-semibold tracking-wide mb-8",children:[o.jsx(Lc,{className:"w-4 h-4"}),"ElÅadás"]}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-foreground mb-6 leading-tight",children:"Világunk veszte: a telhetetlenség"}),o.jsx("p",{className:"text-muted-foreground text-lg md:text-xl font-sans font-light mb-10",children:"A túlfogyasztás logikája, és a tudatos fogyasztás módszerei."}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Vedd fel velem a kapcsolatot",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]}),o.jsxs("figure",{className:"lg:justify-self-end w-full",children:[o.jsx("div",{className:"w-full aspect-[4/5] overflow-hidden border border-primary p-2 shadow-elegant bg-background",children:o.jsx("img",{src:qU,alt:"Kimmel Hajnalka elÅadó",className:"w-full h-full object-cover"})}),o.jsxs("figcaption",{className:"mt-4 font-sans text-sm text-muted-foreground text-center",children:[o.jsx("span",{className:"block text-xs uppercase tracking-[0.2em] text-primary mb-1",children:"ElÅadó"}),"Kimmel Hajnalka"]})]})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"max-w-4xl mx-auto",children:o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center",children:[o.jsx("p",{className:"font-sans text-xs font-bold uppercase tracking-[0.25em] text-primary mb-3",children:"Az elÅadásról"}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"A pénzünk szavazat"}),o.jsxs("div",{className:"text-muted-foreground font-sans leading-relaxed text-left max-w-3xl mx-auto",children:[o.jsx("p",{className:"mb-5",children:"A folyamatos növekedésre épülÅ gazdaság olyan mértékű fogyasztásra állÃtott át minket, amely túlterheli a természeti rendszereket és komoly anyagi, mentális nyomást helyez ránk. A tudatos fogyasztás nem elvi kérdés, hanem konkrét döntés: minden költésünk szavazat arról, milyen világot épÃtünk tovább."}),t&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-5",children:"Az erÅforrások kimerülnek, a gazdaság működése kiszámÃthatatlanabbá válik, a társadalmi feszültségek pedig egyre mélyebben befolyásolják mindennapi életünket. Minden költésünk visszajelzés a gazdasági szereplÅk felé â egy olyan világban különösen, amelyben egyre nehezebb átgondoltan dönteni, legyen szó tárgyról, élelmiszerrÅl vagy online tartalmakról."}),o.jsx("p",{className:"mb-5",children:"Az elÅadás végigvezet azon, hogyan alakult ki a mai fogyasztói világ, mi hat ránk vásárlás közben, és milyen tudatos döntésekkel lehet ezen változtatni egyéni vagy szervezeti szinten."})]}),o.jsx("div",{className:"text-center",children:o.jsx(le,{variant:"outline",size:"sm",onClick:()=>e(n=>!n),className:"mt-2",children:t?"Kevesebb":"Tovább olvasok"})})]})]})})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-secondary",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[o.jsx("p",{className:"font-sans text-xs font-bold uppercase tracking-[0.25em] text-primary mb-3",children:"Az elÅadás tartalma"}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-8",children:"MirÅl lesz szó"}),o.jsx("ol",{className:"space-y-4 text-left",children:YU.map((n,r)=>o.jsxs("li",{className:"flex items-start gap-4 border-b border-border pb-4",children:[o.jsx("span",{className:"font-display text-2xl text-primary/60 leading-none w-10 shrink-0",children:String(r+1).padStart(2,"0")}),o.jsx("span",{className:"font-sans text-foreground pt-1",children:n})]},r))})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[o.jsx("p",{className:"font-sans text-xs font-bold uppercase tracking-[0.25em] text-primary mb-3",children:"Célközönség"}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Kiknek szól"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"Az elÅadás rugalmasan adaptálható különbözÅ közönségekhez és formátumokhoz:"}),o.jsx("ul",{className:"space-y-3 inline-block text-left",children:ZU.map((n,r)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("div",{className:"w-2 h-2 bg-primary mt-2 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:n})]},r))})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-secondary",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[o.jsx("p",{className:"font-sans text-xs font-bold uppercase tracking-[0.25em] text-primary mb-3",children:"Mit viszel haza"}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-8",children:"Mit kapsz az elÅadáson"}),o.jsx("ul",{className:"space-y-4 inline-block text-left",children:QU.map((n,r)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(an,{className:"w-5 h-5 text-primary mt-1 flex-shrink-0"}),o.jsx("span",{className:"text-foreground font-sans",children:n})]},r))})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[o.jsx("p",{className:"font-sans text-xs font-bold uppercase tracking-[0.25em] text-primary mb-3",children:"A végén"}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Mire jutunk együtt"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"Az elÅadás végére közös értelmezési keretünk lesz arról, hogy:"}),o.jsx("ul",{className:"space-y-4 text-left",children:JU.map((n,r)=>o.jsxs("li",{className:"flex items-start gap-3 border-b border-border pb-4",children:[o.jsx("span",{className:"font-display text-primary/60 shrink-0",children:"â"}),o.jsx("span",{className:"text-foreground font-sans",children:n})]},r))})]})})}),o.jsx("section",{className:"py-16 lg:py-20 bg-primary",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-display text-primary-foreground mb-6",children:"Ãrdekel az elÅadás?"}
343),o.jsx("p",{className:"text-primary-foreground/80 font-sans text-lg mb-8",children:"Vállalati, önkormányzati, civil és oktatási programok keretében is megrendezhetÅ. Vedd fel velem a kapcsolatot a részletekért."}),o.jsx(le,{asChild:!0,size:"lg",variant:"secondary",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Vedd fel velem a kapcsolatot",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})})]})},eV="/assets/profile-rolam-aTaMB1_4.jpg",tV=()=>o.jsx($e,{children:o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container max-w-5xl",children:o.jsxs("div",{className:"grid lg:grid-cols-[320px_1fr] gap-6 lg:gap-8 items-start",children:[o.jsx(K.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"lg:sticky lg:top-28",children:o.jsx("div",{className:"aspect-[3/4] rounded-lg overflow-hidden shadow-elegant",children:o.jsx("img",{src:eV,alt:"Kimmel Hajnalka",className:"w-full h-full object-cover"})})}),o.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-display text-foreground mb-1",children:"Sziasztok,"}),o.jsx("p",{className:"text-xl font-display text-primary mb-5",children:"Kimmel Hajnalka vagyok"}),o.jsxs("div",{className:"space-y-4 text-muted-foreground font-sans leading-relaxed text-[15px] md:text-base",children:[o.jsx("p",{children:"Közgazdász, fenntarthatósági tanácsadó. Több mint 12 év tapasztalattal a marketing területén, különbözÅ vállalati környezetekben dolgoztam, multinacionális cégtÅl kezdve hazai gyártó vállalaton át disztribútorokig."}),o.jsx("p",{children:"Ez a sokszÃnű szakmai háttér lehetÅséget adott arra, hogy alaposan megismerjem a vállalatok működését, az üzleti döntéshozatal folyamatát és a fogyasztók gondolkodását."}),o.jsx("p",{children:"Ahogy egyre jobban elmélyedtem a polikrÃzis kérdéseiben, világossá vált számomra, hogy a marketing szerepe túlmutat a hagyományos piaci versenyen: felelÅsséget hordozunk abban, milyen irányba befolyásoljuk a fogyasztói döntéseket és a vállalatok belsÅ működését."}),o.jsx("p",{children:"Az elmúlt években úgy döntöttem, értékesÃtésen alapuló tudásomat kiegészÃtem környezeti és társadalmi ismeretekkel, mert meggyÅzÅdésem, hogy világunk kihÃvásaira csak akkor tudunk érdemben reagálni, ha ezeket a szempontokat a döntések természetes részévé tesszük. ESG gazdasági szaktanácsadói végzettségemet a Nemzeti Közszolgálati Egyetemen szereztem, amely tovább erÅsÃt abban, hogy a vállalatokat hiteles, szakmailag megalapozott irányok mentén tudjam támogatni."}),o.jsx("p",{children:"Munkásságom fókuszában nem csak a szervezetek állnak. A modern világ felgyorsult tempója, az információs túlterheltség és a gazdaságiâökológiai bizonytalanság mindannyiunk életét közvetlenül érinti. Sokan érzik a feszültséget, mégis nehéz pontosan megfogalmazni, mi zajlik körülöttünk és miért. Az összefüggések feltárása segÃt eligazodni ebben a helyzetben, tisztábban látni a folyamatokat, és tudatosabban meghozni a mindennapi döntéseinket."}),o.jsx("h3",{className:"text-2xl font-display text-foreground !mt-8 !mb-2",children:"Tudatos Minimalizmus"}),o.jsx("p",{children:"Misszióm abból a felismerésbÅl született, hogy a polikrÃzis egymást erÅsÃtÅ válságfolyamatai alapvetÅen alakÃtják át működésünket, ezért egyéni és szervezeti szinten egyaránt új válaszkészletre van szükség."}),o.jsx("p",{children:"Olyan szemléletet képviselek, amely mentális, fizikai és gyakorlati szinten támogatja az alkalmazkodást, segÃti a rendszerszintű összefüggések megértését, és megerÅsÃti a felkészülés jelentÅségét egy bizonytalanabbá váló környezetben. Fontosnak tartom, hogy a vállalatok és az egyének tudatosan reagáljanak a gazdasági és társadalmi változásokra, döntéseiket azok hosszabb távú következményeivel együtt mérlegelve."}),o.jsx("p",{children:"Hiszem, hogy a közösségek megerÅsÃtése és újraélesztése kulcsszerepet játszik ebben a folyamatban, mert az alkalmazkodás és a felelÅs működés kapcsolódásokon és együttműködésen keresztül válik valódi erÅvé."}
343),o.jsx("p",{className:"italic text-foreground/70 !mt-6 border-l-2 border-primary/30 pl-4",children:"Gyermekeim indÃtottak el ezen az úton négy évvel ezelÅtt. Åk emlékeztetnek arra, hogy a jelenben hozott döntéseknek komoly következménye van."})]})]})]})})})}),nV=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Kapcsolat"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"LehetÅséged van egy dÃjmentes, 30 perces konzultációra, ahol közösen átbeszéljük, mire van igazán szükséged, és hogyan tudlak céljaid elérésében támogatni."})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16",children:[o.jsxs(K.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"Ãrj nekem!"}),o.jsx("p",{className:"text-muted-foreground font-sans leading-relaxed mb-8",children:"Ha kérdésed van vagy szeretnéd megbeszélni, hogyan segÃthetek, kattints az alábbi gombra és Ãrd meg üzeneted közvetlenül!"}),o.jsx(le,{asChild:!0,size:"lg",className:"w-full sm:w-auto",children:o.jsxs("a",{href:"mailto:[email protected]?subject=Kapcsolat%20felvétel%20a%20weboldalról",children:[o.jsx(rc,{className:"mr-2 h-5 w-5"}),"Email küldése"]})})]}),o.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-6",children:"ElérhetÅségek"}),o.jsxs("div",{className:"space-y-6 mb-10",children:[o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:o.jsx(rc,{className:"w-5 h-5 text-primary"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground font-sans mb-1",children:"Email"}),o.jsx("a",{href:"mailto:[email protected]",className:"text-foreground font-sans hover:text-primary transition-colors",children:"[email protected]"})]})]}),o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:o.jsx(Oj,{className:"w-5 h-5 text-primary"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground font-sans mb-1",children:"Telefon"}),o.jsx("p",{className:"text-foreground font-sans",children:"+36 30 919 2882"})]})]}),o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:o.jsx(Ly,{className:"w-5 h-5 text-primary"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground font-sans mb-1",children:"HelyszÃn"}),o.jsx("p",{className:"text-foreground font-sans",children:"Budapest, Magyarország"})]})]})]}),o.jsx("h3",{className:"text-lg font-display text-foreground mb-4",children:"Közösségi média"}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("a",{href:"https://www.linkedin.com/in/hajnalka-kimmel-72374a154/",target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors","aria-label":"LinkedIn",children:o.jsx(Pj,{className:"w-5 h-5"})}),o.jsx("a",{href:"https://www.instagram.com/tudatosminimalizmus/",target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors","aria-label":"Instagram",children:o.jsx(Td,{className:"w-5 h-5"})})]})]})]})})})]}),rV=[{icon:JR,text:"Vállalati elÅadások és workshopok, valamint szakmai és civil rendezvényeken való részvétel elÅadóként"},{icon:ZR,text:"ElÅadások fiataloknak, gyermekeknek"},{icon:sP,text:"Együttműködések szakmai és civil szervezetekkel"},{icon:XR,text:"Projektek vezetése a társadalmi és környezeti felelÅsségvállalás témájában"},{icon:Gi,text:"Rendezvények és konferenciák szakmai és operatÃv vezetése"}
343,{icon:My,text:"Stratégiai tanácsadás vállalatok számára"},{icon:iP,text:"KözösségépÃtés és tudásmegosztás a Tudatos Minimalizmus blog és közösség keretében"}],sV=["NÅi Vállalkozók Napja","Vegan Summit 2025","Vibe Festival 2025","Gardena","Pázmány Péter Katolikus Egyetem","CEU","Beeco","Ãnkormányzatok","Forray Nikolett","Cassandra Program","NÅk Lapja","Klubrádió","Györgytea Kft.","Myfarm","ÃkoPlusz Fesztivál","BOKIK","Lélek Koffein","Tudatos Vásárlók Egyesülete"],iV=()=>o.jsxs($e,{children:[o.jsx("section",{className:"bg-primary py-16 lg:py-24",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display text-white mb-6",children:"Referenciák"}),o.jsx("p",{className:"text-white/70 text-lg md:text-xl font-sans font-light",children:"Tevékenységeim és korábbi együttműködéseim"})]})})}),o.jsx("section",{className:"py-14 lg:py-20 bg-background",children:o.jsxs("div",{className:"container",children:[o.jsx(K.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-2xl md:text-3xl lg:text-4xl font-display text-foreground mb-10 text-center",children:"Mivel foglalkozom"}),o.jsx("div",{className:"grid md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:rV.map((t,e)=>o.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.05},className:"flex items-start gap-4 p-5 bg-card rounded-lg border border-border/50 shadow-card hover:shadow-lg transition-shadow",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:o.jsx(t.icon,{className:"w-5 h-5 text-primary"})}),o.jsx("p",{className:"text-foreground font-sans leading-relaxed",children:t.text})]},e))})]})}),o.jsx("section",{className:"py-14 lg:py-20 bg-secondary",children:o.jsxs("div",{className:"container",children:[o.jsx(K.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-2xl md:text-3xl lg:text-4xl font-display text-foreground mb-10 text-center",children:"Partnerek"}),o.jsx("div",{className:"flex flex-wrap justify-center gap-4 max-w-4xl mx-auto",children:sV.map((t,e)=>o.jsx(K.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:e*.03},className:"px-5 py-3 bg-card rounded-full border border-border/50 shadow-soft hover:shadow-card transition-shadow",children:o.jsx("span",{className:"text-foreground font-sans text-sm md:text-base",children:t})},e))})]})}),o.jsx("section",{className:"py-12 lg:py-16 bg-background",children:o.jsxs("div",{className:"container text-center",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-4",children:"Dolgozzunk együtt!"}),o.jsx("p",{className:"text-muted-foreground font-sans mb-6 max-w-xl mx-auto",children:"Ha érdekel a közös munka lehetÅsége, vedd fel velem a kapcsolatot!"}),o.jsx(le,{asChild:!0,size:"lg",className:"group",children:o.jsxs(ve,{to:"/kapcsolat",children:["Kapcsolatfelvétel",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})})]});function kr({className:t,...e}){return o.jsx("div",{className:Ve("animate-pulse rounded-md bg-muted",t),...e})}const aV=()=>{const{data:t,isLoading:e}=OS({queryKey:["blog-posts"],queryFn:async()=>{const{data:n,error:r}=await $t.from("blog_posts").select("id, title, slug, excerpt, cover_image_url, published_at").eq("published",!0).order("published_at",{ascending:!1});if(r)throw r;return n}});return o.jsxs($e,{children:[o.jsx("section",{className:"py-16 lg:py-24 bg-gradient-subtle",children:o.jsx("div",{className:"container",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center max-w-2xl mx-auto",children:[o.jsx("h1",{className:"text-3xl lg:text-5xl font-display font-semibold text-foreground mb-4",children:"Blog"}),o.jsx("p",{className:"text-muted-foreground text-lg",children:"Gondolatok a gazdasági, környezeti és társadalmi rendszerekrÅl"})]})})}),o.jsx("section",{className:"py-14 lg:py-20",children:o.jsx("div",{className:"container",children:e?o.jsxs("div",{className:"space-y-8",children:[o.jsx(kr,{className:"w-full h-80 rounded-xl"}),o.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:[1,2,3,4].map(n=>o.jsxs("div",{className:"space-y-4",children:[o.jsx(kr,{className:"w-full h-48 rounded-lg"}),o.jsx(kr,{className:"h-6 w-3/4"}),o.jsx(kr,{className:"h-4 w-full"})]},n))})]}):t&&t.length>0?o.jsxs("div",{className:"space-y-12",children:[o.jsx(K.article,{initial:{opacity:0,y:20}
343,animate:{opacity:1,y:0},transition:{duration:.5},children:o.jsx(ve,{to:`/blog/${t[0].slug}`,className:"group block bg-card rounded-xl overflow-hidden border border-border hover:shadow-card transition-all duration-300",children:o.jsxs("div",{className:"grid md:grid-cols-2",children:[t[0].cover_image_url&&o.jsx("div",{className:"aspect-[4/3] md:aspect-auto overflow-hidden",children:o.jsx("img",{src:t[0].cover_image_url,alt:t[0].title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"})}),o.jsxs("div",{className:"p-8 flex flex-col justify-center",children:[t[0].published_at&&o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm mb-3",children:[o.jsx(Gi,{className:"w-4 h-4"}),o.jsx("time",{children:new Date(t[0].published_at).toLocaleDateString("hu-HU",{year:"numeric",month:"long",day:"numeric"})})]}),o.jsx("h2",{className:"text-2xl lg:text-3xl font-display font-semibold text-foreground mb-3 group-hover:text-primary transition-colors",children:t[0].title}),t[0].excerpt&&o.jsx("p",{className:"text-muted-foreground line-clamp-4 mb-6",children:t[0].excerpt}),o.jsxs("span",{className:"inline-flex items-center gap-1 text-primary font-medium text-sm group-hover:gap-2 transition-all",children:["Tovább olvasom ",o.jsx(De,{className:"w-4 h-4"})]})]})]})})}),t.length>1&&o.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:t.slice(1).map((n,r)=>o.jsx(K.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:(r+1)*.1},children:o.jsxs(ve,{to:`/blog/${n.slug}`,className:"group block bg-card rounded-xl overflow-hidden border border-border hover:shadow-card transition-all duration-300 h-full",children:[n.cover_image_url&&o.jsx("div",{className:"aspect-[16/9] overflow-hidden",children:o.jsx("img",{src:n.cover_image_url,alt:n.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"})}),o.jsxs("div",{className:"p-6",children:[n.published_at&&o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm mb-3",children:[o.jsx(Gi,{className:"w-4 h-4"}),o.jsx("time",{children:new Date(n.published_at).toLocaleDateString("hu-HU",{year:"numeric",month:"long",day:"numeric"})})]}),o.jsx("h2",{className:"text-xl font-display font-semibold text-foreground mb-2 group-hover:text-primary transition-colors",children:n.title}),n.excerpt&&o.jsx("p",{className:"text-muted-foreground line-clamp-3 mb-4",children:n.excerpt}),o.jsxs("span",{className:"inline-flex items-center gap-1 text-primary font-medium text-sm group-hover:gap-2 transition-all",children:["Tovább olvasom ",o.jsx(De,{className:"w-4 h-4"})]})]})]})},n.id))})]}):o.jsx("div",{className:"text-center py-20",children:o.jsx("p",{className:"text-muted-foreground text-lg",children:"Hamarosan érkeznek a bejegyzések!"})})})})]})};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:YT,setPrototypeOf:Bb,isFrozen:oV,getPrototypeOf:lV,getOwnPropertyDescriptor:cV}=Object;let{freeze:Yt,seal:Vn,create:yg}=Object,{apply:vg,construct:xg}=typeof Reflect<"u"&&Reflect;Yt||(Yt=function(e){return e});Vn||(Vn=function(e){return e});vg||(vg=function(e,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return e.apply(n,s)});xg||(xg=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new e(...r)});const Nu=Zt(Array.prototype.forEach),uV=Zt(Array.prototype.lastIndexOf),Hb=Zt(Array.prototype.pop),sl=Zt(Array.prototype.push),dV=Zt(Array.prototype.splice),Xu=Zt(String.prototype.toLowerCase),Qf=Zt(String.prototype.toString),Jf=Zt(String.prototype.match),il=Zt(String.prototype.replace),hV=Zt(String.prototype.indexOf),fV=Zt(String.prototype.trim),Jn=Zt(Object.prototype.hasOwnProperty),Vt=Zt(RegExp.prototype.test),al=mV(TypeError);function Zt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return vg(t,e,r)}}function mV(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xg(t,n)}}function ke(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xu;Bb&&Bb(t,null);let r=e.length;for(;r--;){let s=e[r];if(typeof s=="string"){const i=n(s);i!==s&&(oV(e)||(e[r]=i),s=i)}t[s]=!0}return t}function pV(t){for(let e=0;e<t.length;e++)Jn(t,e)||(t[e]=null);return t}function yr(t){const e=yg(null);
vendor: 6,678 bytes, line 343
343for(const[n,r]of YT(t))Jn(t,n)&&(Array.isArray(r)?e[n]=pV(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=yr(r):e[n]=r);return e}function ol(t,e){for(;t!==null;){const r=cV(t,e);if(r){if(r.get)return Zt(r.get);if(typeof r.value=="function")return Zt(r.value)}t=lV(t)}function n(){return null}return n}const Wb=Yt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Xf=Yt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),em=Yt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gV=Yt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),tm=Yt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yV=Yt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kb=Yt(["#text"]),Gb=Yt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),nm=Yt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qb=Yt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
343subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cu=Yt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vV=Vn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xV=Vn(/<%[\w\W]*|[\w\W]*%>/gm),wV=Vn(/\$\{[\w\W]*/gm),bV=Vn(/^data-[\-\w.\u00B7-\uFFFF]+$/),kV=Vn(/^aria-[\-\w]+$/),ZT=Vn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_V=Vn(/^(?:\w+script|data):/i),jV=Vn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),QT=Vn(/^html$/i),SV=Vn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yb=Object.freeze({__proto__:null,ARIA_ATTR:kV,ATTR_WHITESPACE:jV,CUSTOM_ELEMENT:SV,DATA_ATTR:bV,DOCTYPE_NAME:QT,ERB_EXPR:xV,IS_ALLOWED_URI:ZT,IS_SCRIPT_OR_DATA:_V,MUSTACHE_EXPR:vV,TMPLIT_EXPR:wV});const ll={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},EV=function(){return typeof window>"u"?null:window},TV=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;
vendor: 12,314 bytes, line 343
343const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Zb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function JT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EV();const e=oe=>JT(oe);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==ll.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,s=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:m}=t,w=c.prototype,p=ol(w,"cloneNode"),b=ol(w,"remove"),x=ol(w,"nextSibling"),y=ol(w,"childNodes"),v=ol(w,"parentNode");if(typeof a=="function"){const oe=n.createElement("template");oe.content&&oe.content.ownerDocument&&(n=oe.content.ownerDocument)}let k,_="";const{implementation:j,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:A}=n,{importNode:z}=r;let C=Zb();e.isSupported=typeof YT=="function"&&typeof v=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:P,TMPLIT_EXPR:O,DATA_ATTR:Z,ARIA_ATTR:W,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:I}=Yb;let{IS_ALLOWED_URI:V}=Yb,G=null;const te=ke({},[...Wb,...Xf,...em,...tm,...Kb]);let X=null;const ue=ke({},[...Gb,...nm,...qb,...Cu]);let U=Object.seal(yg(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,D=null;const ne=Object.seal(yg(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ze=!0,be=!0,je=!1,Ee=!0,Ze=!1,bt=!0,Ut=!1,En=!1,Hn=!1,Tn=!1,Wn=!1,oi=!1,as=!0,Mo=!1;const Lr="user-content-";let $o=!0,li=!1,ft={},kt=null;const Fo=ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Kc=null;const ci=ke({},["audio","video","img","source","image","track"]);let Uo=null;const Vo=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),os="http://www.w3.org/1998/Math/MathML",Kn="http://www.w3.org/2000/svg",Nn="http://www.w3.org/1999/xhtml";let fn=Nn,Bo=!1,Ho=null;const Gc=ke({},[os,Kn,Nn],Qf);let ui=ke({},["mi","mo","mn","ms","mtext"]),sa=ke({},["annotation-xml"]);const Wo=ke({},["title","style","font","a","script"]);let Xt=null;const Bh=["application/xhtml+xml","text/html"],me="text/html";let he=null,Oe=null;const mn=n.createElement("form"),en=function(T){return T instanceof RegExp||T instanceof Function},Cn=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===T)){if((!T||typeof T!="object")&&(T={}),T=yr(T),Xt=Bh.indexOf(T.PARSER_MEDIA_TYPE)===-1?me:T.PARSER_MEDIA_TYPE,he=Xt==="application/xhtml+xml"?Qf:Xu,G=Jn(T,"ALLOWED_TAGS")?ke({},T.ALLOWED_TAGS,he):te,X=Jn(T,"ALLOWED_ATTR")?ke({},T.ALLOWED_ATTR,he):ue,Ho=Jn(T,"ALLOWED_NAMESPACES")?ke({},T.ALLOWED_NAMESPACES,Qf):Gc,Uo=Jn(T,"ADD_URI_SAFE_ATTR")?ke(yr(Vo),T.ADD_URI_SAFE_ATTR,he):Vo,Kc=Jn(T,"ADD_DATA_URI_TAGS")?ke(yr(ci),T.ADD_DATA_URI_TAGS,he):ci,kt=Jn(T,"FORBID_CONTENTS")?ke({},T.FORBID_CONTENTS,he):Fo,se=Jn(T,"FORBID_TAGS")?ke({},T.FORBID_TAGS,he):yr({}),D=Jn(T,"FORBID_ATTR")?ke({},T.FORBID_ATTR,he):yr({}),ft=Jn(T,"USE_PROFILES")?T.USE_PROFILES:!1,ze=T.ALLOW_ARIA_ATTR!==!1,be=T.ALLOW_DATA_ATTR!==!1,je=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=T.SAFE_FOR_TEMPLATES||!1,bt=T.SAFE_FOR_XML!==!1,Ut=T.WHOLE_DOCUMENT||!1,Tn=T.RETURN_DOM||!1,Wn=T.RETURN_DOM_FRAGMENT||!1,oi=T.RETURN_TRUSTED_TYPE||!1,Hn=T.FORCE_BODY||!1,as=T.SANITIZE_DOM!==!1,Mo=T.SANITIZE_NAMED_PROPS||!1,$o=T.KEEP_CONTENT!==!1,li=T.IN_PLACE||!1,V=T.ALLOWED_URI_REGEXP||ZT,fn=T.NAMESPACE||Nn,ui=T.MATHML_TEXT_INTEGRATION_POINTS||ui,sa=T.HTML_INTEGRATION_POINTS||sa,U=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&en(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&en(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(be=!1),Wn&&(Tn=!0),ft&&(G=ke({},Kb),X=[],ft.html===!0&&(ke(G,Wb),ke(X,Gb)),ft.svg===!0&&(ke(G,Xf),ke(X,nm),ke(X,Cu)),ft.svgFilters===!0&&(ke(G,em),ke(X,nm),ke(X,Cu)),ft.mathMl===!0&&(ke(G,tm),ke(X,qb),ke(X,Cu))),T.ADD_TAGS&&(typeof T.ADD_TAGS=="function"?ne.tagCheck=T.ADD_TAGS:(G===te&&(G=yr(G)),ke(G,T.ADD_TAGS,he))),T.ADD_ATTR&&(typeof T.ADD_ATTR=="function"?ne.attributeCheck=T.ADD_ATTR:(X===ue&&(X=yr(X)),ke(X,T.ADD_ATTR,he))),T.ADD_URI_SAFE_ATTR&&ke(Uo,T.ADD_URI_SAFE_ATTR,he),T.FORBID_CONTENTS&&(kt===Fo&&(kt=yr(kt)),ke(kt,T.FORBID_CONTENTS,he)),T.ADD_FORBID_CONTENTS&&(kt===Fo&&(kt=yr(kt)),ke(kt,T.ADD_FORBID_CONTENTS,he)),$o&&(G["#text"]=!0),Ut&&ke(G,["html","head","body"]),G.table&&(ke(G,["tbody"]),delete se.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw al('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw al('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=T.TRUSTED_TYPES_POLICY,_=k.createHTML("")}else k===void 0&&(k=TV(m,s)),k!==null&&typeof _=="string"&&(_=k.createHTML(""));Yt&&Yt(T),Oe=T}},hr=ke({},[...Xf,...em,...gV]),tn=ke({},[...tm,...yV]),fr=function(T){let $=v(T);(!$||!$.tagName)&&($={namespaceURI:fn,tagName:"template"});const re=Xu(T.tagName),qe=Xu($.tagName);return Ho[T.namespaceURI]?T.namespaceURI===Kn?$.namespaceURI===Nn?re==="svg":$.namespaceURI===os?re==="svg"&&(qe==="annotation-xml"||ui[qe]):!!hr[re]:T.namespaceURI===os?$.namespaceURI===Nn?re==="math":$.namespaceURI===Kn?re==="math"&&sa[qe]:!!tn[re]:T.namespaceURI===Nn?$.namespaceURI===Kn&&!sa[qe]||$.namespaceURI===os&&!ui[qe]?!1:!tn[re]&&(Wo[re]||!hr[re]):!!(Xt==="application/xhtml+xml"&&Ho[T.namespaceURI]):!1},mr=function(T){sl(e.removed,{element:T});try{v(T).removeChild(T)}catch{b(T)}},di=function(T,$){try{sl(e.removed,{attribute:$.getAttributeNode(T),from:$})}catch{sl(e.removed,{attribute:null,from:$})}if($.removeAttribute(T),T==="is")if(Tn||Wn)try{mr($)}catch{}else try{$.setAttribute(T,"")}catch{}},Gv=function(T){let $=null,re=null;if(Hn)T="<remove></remove>"+T;else{const ct=Jf(T,/^[\r\n\t ]+/);re=ct&&ct[0]}Xt==="application/xhtml+xml"&&fn===Nn&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const qe=k?k.createHTML(T):T;if(fn===Nn)try{$=new f().parseFromString(qe,Xt)}catch{}if(!$||!$.documentElement){$=j.createDocument(fn,"template",null);try{$.documentElement.innerHTML=Bo?_:qe}catch{}}const Pt=$.body||$.documentElement;return T&&re&&Pt.insertBefore(n.createTextNode(re),Pt.childNodes[0]||null),fn===Nn?A.call($,Ut?"html":"body")[0]:Ut?$.documentElement:Pt},qv=function(T){return E.call(T.ownerDocument||T,T,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Hh=function(T){return T instanceof h&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof d)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},Yv=function(T){return typeof l=="function"&&T instanceof l};function Dr(oe,T,$){Nu(oe,re=>{re.call(e,T,$,Oe)})}const Zv=function(T){let $=null;if(Dr(C.beforeSanitizeElements,T,null),Hh(T))return mr(T),!0;const re=he(T.nodeName);if(Dr(C.uponSanitizeElement,T,{tagName:re,allowedTags:G}),bt&&T.hasChildNodes()&&!Yv(T.firstElementChild)&&Vt(/<[/\w!]/g,T.innerHTML)&&Vt(/<[/\w!]/g,T.textContent)||T.nodeType===ll.progressingInstruction||bt&&T.nodeType===ll.comment&&Vt(/<[/\w]/g,T.data))return mr(T),!0;if(!(ne.tagCheck instanceof Function&&ne.tagCheck(re))&&(!G[re]||se[re])){if(!se[re]&&Jv(re)&&(U.tagNameCheck instanceof RegExp&&Vt(U.tagNameCheck,re)||U.tagNameCheck instanceof Function&&U.tagNameCheck(re)))return!1;if($o&&!kt[re]){const qe=v(T)||T.parentNode,Pt=y(T)||T.childNodes;if(Pt&&qe){const ct=Pt.length;for(let nn=ct-1;nn>=0;--nn){const Mr=p(Pt[nn],!0);Mr.__removalCount=(T.__removalCount||0)+1,qe.insertBefore(Mr,x(T))}}}return mr(T),!0}return T instanceof c&&!fr(T)||(re==="noscript"||re==="noembed"||re==="noframes")&&Vt(/<\/no(script|embed|frames)/i,T.innerHTML)?(mr(T),!0):(Ze&&T.nodeType===ll.text&&($=T.textContent,Nu([L,P,O],qe=>{$=il($,qe," ")}),T.textContent!==$&&(sl(e.removed,{element:T.cloneNode()}),T.textContent=$)),Dr(C.afterSanitizeElements,T,null),!1)},Qv=function(T,$,re){if(as&&($==="id"||$==="name")&&(re in n||re in mn))return!1;if(!(be&&!D[$]&&Vt(Z,$))){if(!(ze&&Vt(W,$))){if(!(ne.attributeCheck instanceof Function&&ne.attributeCheck($,T))){if(!X[$]||D[$]){if(!(Jv(T)&&(U.tagNameCheck instanceof RegExp&&Vt(U.tagNameCheck,T)||U.tagNameCheck instanceof Function&&U.tagNameCheck(T))&&(U.attributeNameCheck instanceof RegExp&&Vt(U.attributeNameCheck,$)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck($,T))||$==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&Vt(U.tagNameCheck,re)||U.tagNameCheck instanceof Function&&U.tagNameCheck(re))))return!1}else if(!Uo[$]){if(!Vt(V,il(re,R,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&T!=="script"&&hV(re,"data:")===0&&Kc[T])){if(!(je&&!Vt(H,il(re,R,"")))){if(re)return!1}}}}}}}return!0},Jv=function(T){return T!=="annotation-xml"&&Jf(T,I)},Xv=function(T){Dr(C.beforeSanitizeAttributes,T,null);const{attributes:$}=T;if(!$||Hh(T))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let qe=$.length;for(;qe--;){const Pt=$[qe],{name:ct,namespaceURI:nn,value:Mr}=Pt,ia=he(ct),Wh=Mr;let _t=ct==="value"?Wh:fV(Wh);if(re.attrName=ia,re.attrValue=_t,re.keepAttr=!0,re.forceKeepAttr=void 0,Dr(C.uponSanitizeAttribute,T,re),_t=re.attrValue,Mo&&(ia==="id"||ia==="name")&&(di(ct,T),_t=Lr+_t),bt&&Vt(/((--!?|])>)|<\/(style|title|textarea)/i,_t)){di(ct,T);continue}if(ia==="attributename"&&Jf(_t,"href")){di(ct,T);continue}if(re.forceKeepAttr)continue;if(!re.keepAttr){di(ct,T);continue}if(!Ee&&Vt(/\/>/i,_t)){di(ct,T);continue}Ze&&Nu([L,P,O],tx=>{_t=il(_t,tx," ")});const ex=he(T.nodeName);if(!Qv(ex,ia,_t)){di(ct,T);continue}if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!nn)switch(m.getAttributeType(ex,ia)){case"TrustedHTML":{_t=k.createHTML(_t);break}case"TrustedScriptURL":{_t=k.createScriptURL(_t);break}}if(_t!==Wh)try{nn?T.setAttributeNS(nn,ct,_t):T.setAttribute(ct,_t),Hh(T)?mr(T):Hb(e.removed)}catch{di(ct,T)}}Dr(C.afterSanitizeAttributes,T,null)},SC=function oe(T){let $=null;const re=qv(T);for(Dr(C.beforeSanitizeShadowDOM,T,null);$=re.nextNode();)Dr(C.uponSanitizeShadowNode,$,null),Zv($),Xv($),$.content instanceof i&&oe($.content);Dr(C.afterSanitizeShadowDOM,T,null)};return e.sanitize=function(oe){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,re=null,qe=null,Pt=null;if(Bo=!oe,Bo&&(oe="<!-->"),typeof oe!="string"&&!Yv(oe))if(typeof oe.toString=="function"){if(oe=oe.toString(),typeof oe!="string")throw al("dirty is not a string, aborting")}else throw al("toString is not a function");if(!e.isSupported)return oe;if(En||Cn(T),e.removed=[],typeof oe=="string"&&(li=!1),li){if(oe.nodeName){const Mr=he(oe.nodeName);if(!G[Mr]||se[Mr])throw al("root node is forbidden and cannot be sanitized in-place")}}else if(oe instanceof l)$=Gv("<!---->
343"),re=$.ownerDocument.importNode(oe,!0),re.nodeType===ll.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?$=re:$.appendChild(re);else{if(!Tn&&!Ze&&!Ut&&oe.indexOf("<")===-1)return k&&oi?k.createHTML(oe):oe;if($=Gv(oe),!$)return Tn?null:oi?_:""}$&&Hn&&mr($.firstChild);const ct=qv(li?oe:$);for(;qe=ct.nextNode();)Zv(qe),Xv(qe),qe.content instanceof i&&SC(qe.content);if(li)return oe;if(Tn){if(Wn)for(Pt=S.call($.ownerDocument);$.firstChild;)Pt.appendChild($.firstChild);else Pt=$;return(X.shadowroot||X.shadowrootmode)&&(Pt=z.call(r,Pt,!0)),Pt}let nn=Ut?$.outerHTML:$.innerHTML;return Ut&&G["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&Vt(QT,$.ownerDocument.doctype.name)&&(nn="<!DOCTYPE "+$.ownerDocument.doctype.name+`> 344`+nn),Ze&&Nu([L,P,O],Mr=>{nn=il(nn,Mr," ")}),k&&oi?k.createHTML(nn):nn},e.setConfig=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cn(oe),En=!0},e.clearConfig=function(){Oe=null,En=!1},e.isValidAttribute=function(oe,T,$){Oe||Cn({});const re=he(oe),qe=he(T);return Qv(re,qe,$)},e.addHook=function(oe,T){typeof T=="function"&&sl(C[oe],T)},e.removeHook=function(oe,T){if(T!==void 0){const $=uV(C[oe],T);return $===-1?void 0:dV(C[oe],$,1)[0]}return Hb(C[oe])},e.removeHooks=function(oe){C[oe]=[]},e.removeAllHooks=function(){C=Zb()},e}var NV=JT();const CV=()=>{const{slug:t}=Nh(),{data:e,isLoading:n,error:r}=OS({queryKey:["blog-post",t],queryFn:async()=>{const{data:s,error:i}=await $t.from("blog_posts").select("*").eq("slug",t).eq("published",!0).single();if(i)throw i;return s},enabled:!!t});return n?o.jsx($e,{children:o.jsx("section",{className:"py-16 lg:py-24",children:o.jsxs("div",{className:"container max-w-3xl",children:[o.jsx(kr,{className:"h-10 w-3/4 mb-4"}),o.jsx(kr,{className:"h-5 w-1/3 mb-8"}),o.jsx(kr,{className:"h-64 w-full rounded-lg mb-8"}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(kr,{className:"h-4 w-full"}),o.jsx(kr,{className:"h-4 w-full"}),o.jsx(kr,{className:"h-4 w-2/3"})]})]})})}):r||!e?o.jsx($e,{children:o.jsx("section",{className:"py-20 text-center",children:o.jsxs("div",{className:"container",children:[o.jsx("h1",{className:"text-2xl font-display font-semibold text-foreground mb-4",children:"A bejegyzés nem található"}),o.jsx(ve,{to:"/blog",className:"text-primary hover:underline",children:"Vissza a bloghoz"})]})})}):o.jsx($e,{children:o.jsx("article",{className:"py-16 lg:py-24",children:o.jsx("div",{className:"container max-w-3xl",children:o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[o.jsxs(ve,{to:"/blog",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary transition-colors mb-8",children:[o.jsx(pp,{className:"w-4 h-4"}),"Vissza a bloghoz"]}),o.jsx("h1",{className:"text-3xl lg:text-4xl font-display font-semibold text-foreground mb-4",children:e.title}),e.published_at&&o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-8",children:[o.jsx(Gi,{className:"w-4 h-4"}),o.jsx("time",{children:new Date(e.published_at).toLocaleDateString("hu-HU",{year:"numeric",month:"long",day:"numeric"})})]}),e.cover_image_url&&o.jsx("div",{className:"rounded-xl overflow-hidden mb-10",children:o.jsx("img",{src:e.cover_image_url,alt:e.title,className:"w-full h-auto object-cover"})}),o.jsx("div",{className:`prose prose-lg max-w-none 345 prose-headings:font-display prose-headings:text-foreground 346 prose-p:text-foreground/80 prose-p:leading-relaxed 347 prose-a:text-primary prose-a:no-underline hover:prose-a:underline 348 prose-strong:text-foreground 349 prose-blockquote:border-primary prose-blockquote:text-muted-foreground`,dangerouslySetInnerHTML:{__html:NV.sanitize(e.content)}})]})})})})},XT=[{slug:"vilagunk-veszte-telhetetlenseg",title:"Világunk veszte: a telhetetlenség",kicker:"Online workshop",dateLabel:"2026. május 20.",timeLabel:"18:00 â 19:30",sessions:[{dateLabel:"2026. május 20.",timeLabel:"18:00 â 19:30"}],durationLabel:"1,5 óra elÅadás + kérdések",locationLabel:"Online",tagline:"Túlfogyasztás helyett tudatosabb mindennapok",shortDe
349scription:"Egy 1,5 órás online workshop arról, hogyan terhel minket a túl sok vásárlás, inger, tartalom, döntés és elvárás. Megnézzük, hogyan hat ránk a fogyasztói kultúra, és hogyan lehet kevesebb zajjal, kevesebb felesleges kiadással, átgondoltabban működni a mindennapokban.",extendedDescription:`A túlfogyasztás ma már nem csak arról szól, hogy sok tárgyat veszünk, hanem arról is, mennyi reklám, akció, manipuláció, tartalom verseng figyelmünkért, amelyek miatt túl sok döntést kell meghoznunk, és egyre nehezebb tisztábban látni, mire van valóban szükségünk, mi könnyÃtené meg életünket, és mi az, ami csak egy újabb terhet rak ránk. 350 351Ezen a workshopon arról beszélünk, hogyan hat ránk a fogyasztói kultúra a vásárlásaink során, mentális állapotunk, figyelmünk, pénzügyeink és gyermekeink tekintetében. 352 353Megnézzük, miért olyan könnyű belecsúszni a túlfogyasztásba, milyen helyzetekben döntünk impulzusból, és hogyan tudunk lépésrÅl lépésre átgondoltabban működni a mindennapokban. 354 355Ez az esemény azoknak szól, akik érzik, a mai világ túl sok mindent tesz elénk egyszerre: tárgyakat, ajánlatokat, trendeket, hÃreket, tartalmakat, elvárásokat és vásárlási lehetÅségeket. Azoknak, akik szeretnének tisztábban látni abban, hogyan lehet kevesebb zajjal, kevesebb felesleges kiadással és nyugodtabb döntésekkel élni.`,topicsHeading:"MirÅl lesz szó?",topics:[{number:"01",title:"Hogyan alakult ki a mai fogyasztói világ?",description:"Röviden megnézzük, hogyan jutottunk el oda, hogy a vásárlás mára a hétköznapi élet egyik állandó eleme, és miért épül ennyi gazdasági, marketing- és online folyamat arra, hogy minél többször, minél gyorsabban döntsünk vásárlás mellett."},{number:"02",title:"Miért veszünk meg olyan dolgokat is, amelyekre nincs valódi szükségünk?",description:"Beszélünk a fáradtságról, stresszrÅl, jutalmazásról, társadalmi összehasonlÃtásról, akciókról és arról, hogy egy vásárlás sokszor nem is a tárgyról szól, hanem valamilyen belsÅ hiányérzetrÅl, megkönnyebbülésrÅl vagy pillanatnyi kontrollvesztésrÅl."},{number:"03",title:"Hogyan hat ránk a marketing és a közösségi média?",description:"Megnézzük, milyen eszközökkel keltenek bennünk sürgetést, vágyat, hiányérzetet vagy lemaradástól való félelmet, és hogyan befolyásolja a vásárlási döntéseinket az, amit naponta látunk a telefonunkon."},{number:"04",title:"Hogyan hat mindez a gyerekes családokra?",description:"Beszélünk arról, hogyan hatnak a gyerekekre a reklámok, játékok, mesefigurás termékek, és hogyan lehet szülÅként tudatosabban kezelni a vágykeltést, a kéréseket és a vásárlási helyzeteket."},{number:"05",title:"Hogyan lassuljunk egy gyorsuló világban?",description:"A lassÃtást nem gondolom zöld trendnek, sokkal inkább alkalmazkodási és önvédelmi szükségszerűségnek. A Nagy Gyorsulás korában túl sok inger, döntés, elvárás és változás ér minket, miközben ehhez emberként nem tudunk ilyen tempóban alkalmazkodni."},{number:"06",title:"Milyen gyakorlati módszerek segÃtenek?",description:"Konkrét tippeket, döntési szempontokat és egyszerű módszereket kapsz a tudatosabb fogyasztáshoz, a városi alkalmazkodáshoz, a lassÃtáshoz és a saját vásárlási mintáid felismeréséhez. Szó lesz lehetÅségekrÅl, korlátokról, szemléletváltásról és gyakorlati tapasztalatokról is."}],benefitsHeading:"Rálátást, felismerést és gyakorlati kapaszkodókat",benefits:[{title:"rálátást arra, hogyan kapcsolódik össze a túlfogyasztás, a mentális kimerültség, a gazdasági nyomás és a környezeti válság"},{title:"érthetÅ magyarázatot arról, miért ér minket ma ennyi inger, döntés, elvárás és vásárlási késztetés egyszerre"},{title:"szempontokat ahhoz, hogyan ismerheted fel a saját túlterheltségi és fogyasztási mintáidat"},{title:"konkrét példákat arra, hogyan hatnak ránk a reklámok, akciók, algoritmusok, influenszer-tartalmak és társadalmi elvárások"},{title:"gyakorlati módszereket a lassÃtáshoz, az impulzusvásárlások csökkentéséhez és az átgondoltabb döntésekhez"},{title:"kapaszkodókat a gyerekek felé irányuló vágykeltés, reklámok, játékok és vásárlási helyzetek kezeléséhez"},{title:"városi alkalmazkodási szempontokat egy kiszámÃthatatlanabb, erÅforrás-szűkösebb világban"},{title:"egyszerű döntési szűrÅket és kérdéseket, amelyeket a hétköznapokban is használni tudsz"},{title:"kérdezési lehetÅséget az elÅadás végén"}
355],closingNote:"A cél az, hogy a workshop után tisztábban lásd, hogyan kapcsolódik össze a túlfogyasztás, a mentális kimerültség, a pénzügyi nyomás, a környezeti válság és a mindennapi döntéseink világa. Gyakorlati kapaszkodókat kapsz ahhoz, hogyan lehet kevesebb külsÅ nyomással, tudatosabb döntésekkel és nagyobb alkalmazkodóképességgel működni egy túlterhelt világban.",pricing:{kind:"tiered",tiers:[{id:"alap",name:"Alap jegy",amountHuf:3990,priceId:"workshop_telhetetlenseg_alap",includes:["részvétel az élÅ online workshopon","1,5 órás elÅadás","kérdezési lehetÅség az esemény végén","letölthetÅ könyvajánló","budget tervezÅ (Excel)"]},{id:"premium",name:"Prémium jegy",amountHuf:5990,priceId:"workshop_telhetetlenseg_premium",highlight:!0,includes:["minden, ami az Alap jegyben","visszanézhetÅ felvétel","rövid, nyomtatható tudatos fogyasztási segédlet"]}]},registrationOpen:!0},{slug:"toltsd-meg-elettel",title:"Töltsd meg élettel",kicker:"1 órás online elÅadás",dateLabel:"2026. május 12.",timeLabel:"18:00 â 19:00",durationLabel:"60 perc",locationLabel:"Online",tagline:"ÃlettérbÅl dÃszlet · DÃszletbÅl élettér",shortDescription:"Egy óra alatt végigmegyünk azon, hogyan veszÃtette el a kert értelmét a modern világban, és mit tehetünk mi, hogy visszaadjuk neki.",introQuote:"A kert nem dÃszlet. Valaha élettér volt, és újra azzá válhat!",introParagraph:"Egy óra alatt végigmegyünk azon, hogyan veszÃtette el a kert értelmét a modern világban, és mit tehetünk mi, hogy visszaadjuk neki.",topicsHeading:"MirÅl lesz szó?",topics:[{number:"01",title:"A kert történelme",description:"Mit jelentett a kert régen, és hogyan változott a szerepe a modern korban."},{number:"02",title:"A modern világ hatása",description:"Hogyan alakult át a magyar táj és a házi kert az elmúlt évtizedekben, és mi lett ennek következménye."},{number:"03",title:"Ãnellátás elvesztése",description:"Miért tűntek el a házi kertek, és mit vesztettünk el ezzel â kulturálisan, közösségileg, személyesen."},{number:"04",title:"Mit tehetünk mi",description:"Konkrét tippek és szemléletváltás: hogyan és miért töltsük meg élettel a kertünket, balkonunkat."}],benefitsHeading:"Az elÅadás utánâ¦",benefits:[{icon:"ð±",title:"Ãj szemlélet",description:"Megérted, mi folyik a kertes ingatlanok körül, és miért nem véletlen, ahogy ma kinéznek."},{icon:"ð¡",title:"Konkrét elsÅ lépés",description:"Azonnal megvalósÃtható és már bevált ötleteket kapsz saját kerteddel kapcsolatban."},{icon:"ð",title:"Nagyobb összefüggés",description:"Látod, hogyan kapcsolódik a kerted a tájhoz, a közösséghez, a fenntarthatósághoz, az élethez."},{icon:"ð",title:"Motiváció és kedv",description:"Az elÅadás végére érteni fogod, miért érdemes, és kedved is lesz hozzá kezdeni."}],closingNote:"Egy óra, ami másképp láttatja a kertet.",pricing:{kind:"single",amountHuf:3900,priceId:"workshop_toltsd_meg_elettel"},registrationOpen:!0}];function Mv(t){if(t)return XT.find(e=>e.slug===t)}function $v(t,e=new Date){var s;if(t.pricing.kind==="single")return{amountHuf:t.pricing.amountHuf,isEarlyBird:!1};if(t.pricing.kind==="tiered")return{amountHuf:t.pricing.tiers.reduce((a,l)=>l.amountHuf<a?l.amountHuf:a,((s=t.pricing.tiers[0])==null?void 0:s.amountHuf)??0),isEarlyBird:!1};const n=new Date(t.pricing.deadlineIso),r=e<=n;return{amountHuf:r?t.pricing.earlyBirdAmountHuf:t.pricing.regularAmountHuf,isEarlyBird:r,regularAmountHuf:t.pricing.regularAmountHuf,deadline:n}}const We=t=>`${t.toLocaleString("hu-HU")} Ft`,zV={január:0,február:1,március:2,április:3,május:4,június:5,július:6,augusztus:7,szeptember:8,október:9,november:10,december:11};function AV(t){const e=t.match(/(\d{4})\.\s*([a-záéÃóöÅúüű]+)\s*(\d{1,2})\.?/i);if(!e)return null;const n=parseInt(e[1],10),r=zV[e[2].toLowerCase()],s=parseInt(e[3],10);return r===void 0?null:new Date(n,r,s,12,0,0)}function RV(t){const e=new Date(t);e.setHours(23,59,59,999);const n=e.getDay(),r=n===0?7:n;return e.setDate(e.getDate()-r),e}function Wd(t,e,n=new Date){if(t.pricing.kind!=="early-bird")return null;const r=AV(e.dateLabel),s=r?RV(r):null,i=s?n<=s:!1;return{earlyBirdAmountHuf:t.pricing.earlyBirdAmountHuf,regularAmountHuf:t.pricing.regularAmountHuf,deadline:s,isEarlyBird:i,amountHuf:i?t.pricing.earlyBirdAmountHuf:t.pricing.regularAmountHuf}}const Fv=t=>t.toLocaleDateString("hu-HU",{year:"numeric",month:"long",day:"numeric"}),PV=()=>{const t=new Date;return o.jsxs($e,{children:[o.jsx("section",{className:"pt-28 pb-12 bg-primary text-white",children:o.jsx("div",{className:"container max-w-4xl",children:o.jsxs(K.div,{initial:{opacity:0,y:20}
355,animate:{opacity:1,y:0},transition:{duration:.6},children:[o.jsx("p",{className:"font-sans text-sm uppercase tracking-widest text-white/70 mb-3",children:"Workshopok és elÅadások"}),o.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display mb-6",children:"Online workshopok"}),o.jsx("p",{className:"text-white/85 text-lg leading-relaxed max-w-2xl",children:"InteraktÃv workshopok és elÅadások a polikrÃzisrÅl, a környezeti és társadalmi felelÅsségvállalásról, tudatos fogyasztásról."})]})})}),o.jsx("section",{className:"py-14 bg-background",children:o.jsx("div",{className:"container max-w-5xl space-y-12",children:XT.map((e,n)=>{const r=$v(e,t),s=e.sessions&&e.sessions.length>0?e.sessions:[{dateLabel:e.dateLabel,timeLabel:e.timeLabel}];return o.jsx(K.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:n*.1},className:"bg-secondary shadow-card",children:o.jsxs("div",{className:"grid md:grid-cols-[1.15fr_1fr]",children:[o.jsxs("div",{className:"p-6 md:p-8 flex flex-col",children:[o.jsx("p",{className:"font-sans text-xs uppercase tracking-widest text-primary mb-3",children:e.kicker}),o.jsx("h2",{className:"text-2xl md:text-3xl font-display text-foreground mb-3 leading-tight",children:e.title}),e.tagline&&o.jsx("p",{className:"font-sans text-sm text-muted-foreground italic mb-3",children:e.tagline}),o.jsx("p",{className:"font-sans text-foreground/80 text-sm leading-relaxed mb-5 flex-1",children:e.shortDescription}),o.jsxs("div",{className:"flex flex-wrap gap-x-5 gap-y-2 text-sm font-sans text-foreground/75 mb-5",children:[o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(lP,{className:"w-4 h-4 text-primary"}),e.locationLabel]}),o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(zj,{className:"w-4 h-4 text-primary"}),e.durationLabel]})]}),o.jsx(le,{asChild:!0,className:"group self-start",children:o.jsxs(ve,{to:`/workshopok/${e.slug}`,children:["Részletek és jelentkezés",o.jsx(De,{className:"ml-1.5 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]}),o.jsxs("div",{className:"bg-background p-6 md:p-8 border-t md:border-t-0 md:border-l border-border",children:[o.jsxs("p",{className:"font-sans text-xs uppercase tracking-widest text-primary mb-4 flex items-center gap-2",children:[o.jsx(Gi,{className:"w-3.5 h-3.5"}),s.length>1?"Választható idÅpontok":"IdÅpont"]}),o.jsx("ul",{className:"space-y-3",children:s.map((i,a)=>{const l=Wd(e,i,t);return o.jsxs("li",{className:"border border-border bg-secondary/40 px-4 py-3 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-display text-lg text-foreground leading-tight",children:i.dateLabel}),o.jsx("p",{className:"font-sans text-sm text-foreground/70",children:i.timeLabel})]}),l?o.jsx("div",{className:"text-right",children:l.isEarlyBird?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"font-display text-xl text-primary leading-none",children:We(l.amountHuf)}),o.jsxs("p",{className:"text-[11px] uppercase tracking-widest text-primary/70 font-sans mt-1 flex items-center gap-1 justify-end",children:[o.jsx(Lc,{className:"w-3 h-3"}),"Early bird"]}),l.deadline&&o.jsxs("p",{className:"text-[11px] text-muted-foreground font-sans mt-0.5",children:[Fv(l.deadline),"-ig"]})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"font-display text-xl text-foreground leading-none",children:We(l.amountHuf)}),o.jsx("p",{className:"text-[11px] uppercase tracking-widest text-muted-foreground font-sans mt-1",children:"Részvételi dÃj"})]})}):o.jsx("p",{className:"font-display text-xl text-foreground leading-none text-right",children:We(r.amountHuf)})]},`${i.dateLabel}-${a}`)})}),e.pricing.kind==="early-bird"&&o.jsxs("p",{className:"text-[11px] font-sans text-muted-foreground mt-4 leading-relaxed",children:["Az ár ",o.jsx("strong",{className:"text-foreground",children:We(e.pricing.earlyBirdAmountHuf)})," a workshop elÅtti hét vasárnapjáig, utána ",o.jsx("strong",{className:"text-foreground",children:We(e.pricing.regularAmountHuf)}),"."]})]})]})},e.slug)})})})]})},ed="vilagunk-veszte-telhetetlenseg",Kd="TUDATOS2026",eN=new Date("2026-05-10T23:59:59+02:00"),wg="tudatos_fogyasztas_access",OV=`/workshopok/${ed}/tudatos-fogyasztas`,tN="/downloads/Vilagunkveszte_Budgettervezo_2026.xlsx",nN=(t=new Date)=>t>eN,rN=t=>t.trim().toUpperCase()===Kd,IV="/assets/hajnalka-kert-nPqUE9D5.jpg",LV=()=>{var z;const{slug:t}=Nh(),e=Mv(t),n=Ao(),{toast:r}=na(),[s,i]=g.useState(()=>new Date);g.useEffect(()=>{const C=setInterval(()=>i(new Date),6e4);return()=>clearInterval(C)},[]);const[a,l]=g.useState(!1),[c,u]=g.useState(""),[d,h]=g.useState(!1),[f,m]=g.useState(null),[w,p]=g.useState(!1),[b,x]=g.useState(!1);if(!e)return o.jsx(Ch,{to:"/workshopok",replace:!0});const y=$v(e,s),v=y.amountHuf,k=f&&f.valid?f.final_amount_huf:v,_=async()=>{const C=c.trim();if(C){h(!0),m(null);try{const{data:L,error:P}=await $t.functions.invoke("validate-coupon",{body:{code:C,workshop_slug:e.slug,base_amount_huf:v}});if(P)throw new Error(P.message);
355L!=null&&L.valid?(m({valid:!0,code:L.code,discount_huf:L.discount_huf,final_amount_huf:L.final_amount_huf}),r({title:"Kupon beváltva",description:`-${We(L.discount_huf)} kedvezmény`})):m({valid:!1,error:(L==null?void 0:L.error)||"Ãrvénytelen kupon"})}catch(L){const P=L instanceof Error?L.message:"Ismeretlen hiba";m({valid:!1,error:P})}finally{h(!1)}}},j=()=>{u(""),m(null)},E=()=>{n(`/workshopok/${e.slug}/jelentkezes`,{state:f&&f.valid?{coupon_code:f.code}:void 0})},S=e.slug==="vilagunk-veszte-telhetetlenseg",A=S?["néha azt érzed, túl sok inger, tárgy, döntés, elvárás és külsÅ nyomás vesz körül,","fáradtabbnak, türelmetlenebbnek vagy szétszórtabbnak érzed magad a mindennapi túlterheltség miatt,","szeretnéd jobban érteni, miért nehéz ma lelassulni, kevesebbet vásárolni és átgondoltabban dönteni,","érdekel, hogyan hat ránk a fogyasztói kultúra, a közösségi média, a reklámok és az algoritmusok világa,","szeretnéd átlátni, hogyan kapcsolódik össze a túlfogyasztás, a mentális kimerültség, a pénzügyi nyomás és a környezeti válság,","gyerekes szülÅként szeretnéd tudatosabban kezelni a vágykeltést, a játékok, reklámok, mesefigurás termékek és állandó kérések világát,","érzed, hogy a Nagy Gyorsulás tempója emberileg nehezen követhetÅ, és szeretnél józanabb kapaszkodókat találni a hétköznapokban,","gyakorlati módszereket, döntési szempontokat és városi alkalmazkodási lehetÅségeket keresel egy túlterhelt világban."]:["szeretnéd visszaadni a kerted vagy balkonod valódi értelmét,","vágysz egy élÅ, gondozott, mégis természetes térre a házad körül,","érdekel, hogyan kapcsolódik a kerted a tájhoz, közösséghez, fenntarthatósághoz,","kedvet szeretnél kapni az elsÅ, kézzelfogható lépéshez."];return o.jsxs($e,{children:[o.jsxs("section",{className:"relative pt-20 pb-12 md:pt-24 md:pb-16 bg-[hsl(var(--walnut))] text-white overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-30",style:{backgroundImage:"radial-gradient(ellipse at 15% 30%, hsl(0 0% 100% / 0.10) 0%, transparent 55%), radial-gradient(ellipse at 85% 80%, hsl(0 0% 0% / 0.20) 0%, transparent 55%)"}}),o.jsxs("div",{className:"container max-w-6xl relative",children:[o.jsx(ve,{to:"/workshopok",className:"text-xs font-sans tracking-[0.25em] uppercase text-white/70 hover:text-white mb-10 inline-block",children:"â Ãsszes workshop"}),o.jsxs("div",{className:"grid md:grid-cols-[1.3fr_1fr] gap-12 md:gap-16 items-center",children:[o.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},children:[o.jsx("p",{className:"inline-block border border-white/40 text-white/85 text-[11px] tracking-[0.3em] uppercase font-sans px-4 py-1 mb-7",children:e.kicker}),o.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl leading-[1.05] mb-6",children:e.title}),e.tagline&&o.jsx("p",{className:"font-display italic text-lg md:text-xl text-white/85 mb-9 max-w-xl leading-snug",children:e.tagline}),e.registrationOpen&&o.jsx(le,{size:"lg",onClick:()=>{const C=document.getElementById("idopontok");C==null||C.scrollIntoView({behavior:"smooth"})},className:"bg-white hover:bg-white/90 text-[hsl(var(--walnut))] px-10 py-6 text-sm tracking-[0.2em] uppercase rounded-none border-0 font-medium",children:"Jelentkezem"})]}),o.jsxs(K.div,{initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.15},className:"relative mx-auto md:mx-0 w-full max-w-[340px] aspect-[3/4]",children:[o.jsx("div",{className:"absolute -inset-3 border border-white/30 rounded-[50%]","aria-hidden":!0}),o.jsx("div",{className:"absolute inset-0 rounded-[50%] overflow-hidden shadow-elegant ring-1 ring-white/20",children:o.jsx("img",{src:IV,alt:"Kimmel Hajnalka",className:"w-full h-full object-cover"})})]})]})]})]}),o.jsx("section",{className:"py-16 md:py-20 bg-background",children:o.jsxs("div",{className:"container max-w-2xl text-center",children:[o.jsx(fs,{children:"A workshop"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-6 leading-tight text-left",children:e.tagline||e.title}
355),o.jsx("p",{className:"font-sans text-lg text-foreground/80 leading-[1.8] text-left",children:e.shortDescription}),e.extendedDescription&&o.jsxs(o.Fragment,{children:[o.jsx(K.div,{initial:!1,animate:{height:w?"auto":0,opacity:w?1:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:o.jsx("div",{className:"space-y-5 pt-6 font-sans text-base md:text-lg text-foreground/80 leading-[1.8] text-left",children:e.extendedDescription.split(` 356 357`).map((C,L)=>o.jsx("p",{children:C},L))})}),o.jsx("div",{className:"pt-6",children:o.jsxs("button",{type:"button",onClick:()=>p(C=>!C),className:"group inline-flex items-center gap-2 text-xs font-sans tracking-[0.25em] uppercase text-[hsl(var(--walnut))] hover:opacity-80 font-medium border-b border-[hsl(var(--walnut))]/40 hover:border-[hsl(var(--walnut))] pb-1 transition",children:[w?"Ãsszecsukás":"Tovább olvasom",o.jsx(nc,{className:`w-3.5 h-3.5 transition-transform ${w?"rotate-180":""}`})]})})]})]})}),e.registrationOpen&&o.jsx(Qb,{label:"Ott a helyem!",onClick:()=>{var C;return(C=document.getElementById("idopontok"))==null?void 0:C.scrollIntoView({behavior:"smooth"})}}),S&&o.jsx("section",{className:"py-14 md:py-16 bg-[hsl(var(--walnut-soft))]",children:o.jsxs("div",{className:"container max-w-2xl text-center",children:[o.jsx(fs,{children:"Miért most?"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight",children:"Túl sok inger, tárgy, döntés, elvárás = kimerült társadalom"}),o.jsx("div",{className:"space-y-5 pt-8 font-sans text-base md:text-lg text-foreground/85 leading-[1.85] text-left",children:o.jsx("p",{children:'Ma már nem egyszerűen megvesszük azt, amire szükségünk van. Folyamatosan ajánlatok, akciók, reklámok, influenszer tartalmak, szezonális kampányok és algoritmusok vesznek körül minket, miközben szinte minden napunkban jelen van valamilyen vásárlási inger: egy új ruha, egy játék a gyereknek, egy konyhai eszköz, egy lakberendezési tárgy, egy kupon, egy âutolsó darabos" ajánlat vagy egy termék, amelyrÅl hirtelen úgy érezzük, hogy könnyebbé, rendezettebbé vagy kényelmesebbé tenné az életünket.'})}),o.jsxs("button",{type:"button",onClick:()=>x(C=>!C),className:"mt-6 inline-flex items-center gap-2 text-sm font-medium uppercase tracking-wider text-[hsl(var(--walnut))] hover:opacity-80 transition-opacity","aria-expanded":b,children:[b?"Kevesebb":"Tovább olvasom",o.jsx(nc,{className:`w-4 h-4 transition-transform ${b?"rotate-180":""}`})]}),o.jsx(K.div,{initial:!1,animate:{height:b?"auto":0,opacity:b?1:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:o.jsxs("div",{className:"space-y-5 pt-5 font-sans text-base md:text-lg text-foreground/85 leading-[1.85] text-left",children:[o.jsx("p",{children:"Közben nemcsak vásárlási ingerek szaporodtak meg. Túl sok információ, túl sok döntés, túl sok elvárás, túl sok külsŠés belsÅ nyomás ér minket egyszerre, miközben a környezeti, gazdasági és társadalmi bizonytalanságok is egyre erÅsebben vannak jelen hétköznapjainkban. Folyamatosan mérlegelnünk kell, mit vegyünk meg, mit engedjünk el, mire költsünk, mire figyeljünk, miben legyünk tudatosabbak, hogyan legyünk jó szülÅk, jól informált fogyasztók, felelÅsen gondolkodó emberek, miközben a mindennapjainkban rengeteg inger, feladat és választási helyzet versenyez a figyelmünkért."}),o.jsx("p",{children:"Nem meglepÅ tehát, hogy fáradtnak, szétszórtnak vagy túlterheltnek érezzük magunkat. Egyre több tárgy vesz körül minket, egyre több pénz megy el apróbb, gyors döntésekre, egyre több tartalom és hÃr terheli az idegrendszerünket, és közben érezhetÅen fogy a türelmünk egymással, a gyerekeinkkel, saját magunkkal és a világgal szemben is. Egy kimerült társadalomban élünk, ahol a túl sok választási lehetÅség, túl sok inger és túl sok elvárás már önmagában is mentális terhet jelent."}),o.jsx("p",{children:"A túlfogyasztás azonban nemcsak személyes vagy háztartási szintű probléma. Globális következményei vannak: erÅforrásokat használunk fel, hulladékot termelünk, energiát fogyasztunk, szállÃtási láncokat tartunk fenn, miközben a természeti rendszerek terhelése, az éghajlati kockázatok, az ellátási bizonytalanságok és a gazdasági sérülékenység egyre erÅsebben visszahatnak az életünkre. Amit ma fogyasztói kényelemként élünk meg, annak egyre több környezeti, társadalmi és gazdasági ára jelenik meg."}),o.jsx("p",{children:"A tudatos fogyasztás nem pusztán arról szól, hogy kevesebb felesleges tárgyat vegyünk. Arról is, hogyan tudunk alkalmazkodni egy túlterhelt, bizonytalanabbá váló világhoz. Hogyan tudunk tisztábban látni, lassÃtani a döntés elÅtt, felismerni a külsÅ hatásokat, csökkenteni a felesleges kiadásainkat, átgondoltabban használni az erÅforrásainkat, és olyan mindennapi működést kialakÃtani, amely kevesebb otthoni, pénzügyi és mentális terhet rak ránk."}),o.jsx("p",{children:"Az elÅadás ezért nemcsak a vásárlásról szól. Arról beszélünk, hogyan kapcsolódik össze a túlfogyasztás, a mentális kimerültség, a környezeti válság, a gazdasági nyomás és a hétköznapi döntéseink világa, és miért fontos, hogy kis léptékben, a saját életünkben is elkezdjünk alkalmazkodni ehhez a megváltozott valósághoz."})]})})]})}),e.registrationOpen&&S&&o.jsx(Qb,{label:"Ãrdekel, jelentkezem!",onClick:()=>{var C;return(C=document.getElementById("idopontok"))==null?void 0:C.scrollIntoView({behavior:"smooth"})}}),o.jsx("section",{className:"py-16 md:py-20 bg-background",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsxs("div",{className:"text-center mb-16",children:[o.jsx(fs,{children:"Az elÅadás tartalma"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight",children:e.topicsHeading||"MirÅl lesz szó?"})]}),o.jsx("ol",{className:"space-y-10",children:e.topics.map((C,L)=>o.jsxs(K.li,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5},className:"flex gap-6 pb-10 border-b border-border last:border-0",children:[o.jsx("span",{className:"font-display text-4xl md:text-5xl text-[hsl(var(--walnut))] leading-none tabular-nums shrink-0 w-16",children:C.number||String(L+1).padStart(2,"0")}),o.jsxs("div",{className:"pt-1",children:[o.jsx("h3",{className:"font-display text-xl md:text-2xl text-foreground mb-3 leading-snug",children:C.title}),C.description&&o.jsx("p",{className:"font-sans text-base text-foreground
357/75 leading-[1.8]",children:C.description})]})]},C.title))})]})}),o.jsx("section",{className:"py-16 md:py-20 bg-[hsl(var(--walnut-soft))]",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsxs("div",{className:"text-center mb-14",children:[o.jsx(fs,{children:"Kinek való"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight",children:"Neked való, haâ¦"})]}),o.jsx("ul",{className:"space-y-6",children:A.map((C,L)=>o.jsxs(K.li,{initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.4,delay:L*.05},className:"flex gap-5 items-start",children:[o.jsx("span",{className:"shrink-0 w-9 h-9 rounded-full bg-[hsl(var(--walnut))] text-white flex items-center justify-center mt-0.5",children:o.jsx(an,{className:"w-4 h-4"})}),o.jsx("p",{className:"font-sans text-base md:text-lg text-foreground/85 leading-[1.85] pt-1",children:C})]},L))})]})}),o.jsx("section",{className:"py-16 md:py-20 bg-background",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsxs("div",{className:"text-center mb-16",children:[o.jsx(fs,{children:"Mit viszel haza"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight",children:e.benefitsHeading||"Az elÅadás utánâ¦"})]}),o.jsx("ul",{className:"space-y-8",children:e.benefits.map((C,L)=>o.jsxs(K.li,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.4,delay:L*.05},className:"flex gap-5 items-start pb-8 border-b border-border last:border-0",children:[o.jsx("span",{className:"shrink-0 text-2xl w-10 text-center",children:C.icon||"â¦"}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-display text-lg md:text-xl text-foreground mb-2 leading-snug",children:C.title}),C.description&&o.jsx("p",{className:"font-sans text-base text-foreground/75 leading-[1.8]",children:C.description})]})]},C.title))}),e.closingNote&&o.jsx("p",{className:"font-display italic text-lg text-foreground/80 text-center mt-12 leading-relaxed",children:e.closingNote})]})}),S&&o.jsx("section",{className:"py-16 md:py-20 bg-[hsl(var(--walnut-soft))]",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsxs("div",{className:"text-center mb-14",children:[o.jsx(fs,{children:"Extra · Ajándék"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight",children:"Ami még jár hozzá"})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[o.jsxs("div",{className:"border border-foreground
357/15 bg-background p-6",children:[o.jsx("p",{className:"text-[10px] tracking-[0.25em] uppercase text-[hsl(var(--walnut))] font-sans font-medium mb-3",children:"Alap jegy"}),o.jsx("h3",{className:"font-display text-xl text-foreground mb-4 leading-snug",children:"LetölthetÅ extrák"}),o.jsxs("ul",{className:"space-y-2 font-sans text-sm text-foreground/80",children:[o.jsxs("li",{className:"flex gap-2",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-[hsl(var(--walnut))]"}),o.jsx("span",{children:"LetölthetÅ könyvajánló"})]}),o.jsxs("li",{className:"flex gap-2",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-[hsl(var(--walnut))]"}),o.jsx("span",{children:"Budget tervezÅ (Excel)"})]})]})]}),o.jsxs("div",{className:"border-2 border-[hsl(var(--walnut))] bg-background p-6",children:[o.jsx("p",{className:"text-[10px] tracking-[0.25em] uppercase text-[hsl(var(--walnut))] font-sans font-medium mb-3",children:"Prémium jegy"}),o.jsx("h3",{className:"font-display text-xl text-foreground mb-4 leading-snug",children:"Minden, ami az alapban + extrák"}),o.jsxs("ul",{className:"space-y-2 font-sans text-sm text-foreground/80",children:[o.jsxs("li",{className:"flex gap-2",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-[hsl(var(--walnut))]"}),o.jsx("span",{children:"LetölthetÅ könyvajánló"})]}),o.jsxs("li",{className:"flex gap-2",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-[hsl(var(--walnut))]"}),o.jsx("span",{children:"Budget tervezÅ (Excel)"})]}),o.jsxs("li",{className:"flex gap-2",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-[hsl(var(--walnut))]"}),o.jsx("span",{children:"VisszanézhetÅ felvétel"})]}),o.jsxs("li",{className:"flex gap-2",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-[hsl(var(--walnut))]"}),o.jsx("span",{children:"Rövid, nyomtatható tudatos fogyasztási segédlet"})]})]})]})]})]})}),e.sessions&&e.sessions.length>0&&o.jsx("section",{id:"idopontok",className:"py-16 md:py-20 bg-background",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx(fs,{children:"IdÅpontok"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight mb-4",children:e.sessions.length>1?"Válassz egy idÅpontot":"IdÅpont"}),e.pricing.kind==="early-bird"&&o.jsxs("p",{className:"font-sans text-sm text-foreground/65 max-w-md mx-auto leading-relaxed",children:[o.jsx("strong",{className:"text-[hsl(var(--walnut))]",children:We(e.pricing.earlyBirdAmountHuf)})," a workshop elÅtti hét vasárnapjáig, utána ",o.jsx("strong",{className:"text-foreground",children:We(e.pricing.regularAmountHuf)}),"."]})]}),o.jsx("div",{className:"space-y-4",children:e.sessions.map((C,L)=>{const P=Wd(e,C,s),O=C.dateLabel.match(/(\d{4})\.\s*([a-záéÃóöÅúüű]+)\s*(\d{1,2})\.?/i),Z=O?O[3]:"",W=O?O[2]:"",H=O?O[1]:"";return o.jsxs(K.button,{type:"button",onClick:()=>e.registrationOpen&&n(`/workshopok/${e.slug}/jelentkezes`,{state:{session_date_label:C.dateLabel,session_time_label:C.timeLabel,...f&&f.valid?{coupon_code:f.code}:{}}}),initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.35,delay:L*.06},className:"w-full group relative bg-background border border-border hover:border-[hsl(var(--walnut))] hover:shadow-card transition-all flex items-center gap-6 p-5 md:p-6 text-left",children:[(P==null?void 0:P.isEarlyBird)&&o.jsxs("span",{className:"absolute -top-2 right-4 inline-flex items-center gap-1 text-[10px] tracking-[0.18em] uppercase font-sans bg-[hsl(var(--walnut))] text-white px-2.5 py-1 font-medium",children:[o.jsx(Lc,{className:"w-3 h-3"}),"Early bird"]}),o.jsxs("div",{className:"flex items-baseline gap-3 shrink-0 w-32 md:w-40 border-r border-border pr-5",children:[o.jsx("span",{className:"font-display text-5xl md:text-6xl leading-none text-[hsl(var(--walnut))] tabular-nums",children:Z}),o.jsxs("div",{className:"flex flex-col leading-tight",children:[o.jsx("span",{className:"font-sans text-xs uppercase tracking-[0.18em] text-foreground font-medium",children:W}
357),o.jsx("span",{className:"font-sans text-xs text-foreground/55 mt-0.5",children:H})]})]}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("p",{className:"font-sans text-sm text-foreground/75 flex items-center gap-1.5 mb-1",children:[o.jsx(zj,{className:"w-3.5 h-3.5 text-[hsl(var(--walnut))]"}),C.timeLabel]}),P&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"font-display text-xl text-foreground leading-none",children:We(P.amountHuf)}),P.isEarlyBird&&P.deadline?o.jsxs("p",{className:"text-[11px] text-[hsl(var(--walnut))] font-sans mt-1",children:["Early bird ",Fv(P.deadline),"-ig"]}):o.jsx("p",{className:"text-[11px] text-muted-foreground font-sans mt-1 uppercase tracking-widest",children:"Részvételi dÃj"})]})]}),o.jsxs("div",{className:"hidden sm:flex items-center gap-2 text-[hsl(var(--walnut))] font-sans text-sm font-medium shrink-0",children:[o.jsx("span",{children:"Jelentkezem"}),o.jsx(De,{className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]})]},L)})})]})}),o.jsx("section",{className:"py-16 md:py-20 bg-[hsl(var(--walnut))] text-white text-center",children:o.jsxs("div",{className:"container max-w-3xl",children:[o.jsx("h2",{className:"font-display text-3xl md:text-4xl leading-tight mb-3",children:"Jelentkezem"}),e.pricing.kind==="tiered"?o.jsx("div",{className:"grid sm:grid-cols-2 gap-5 mt-10 mb-10 text-left",children:e.pricing.tiers.map(C=>o.jsxs("div",{className:`border ${C.highlight?"border-white bg-white/10":"border-white/25 bg-white/5"} p-6 flex flex-col`,children:[o.jsx("p",{className:"text-[10px] tracking-[0.25em] uppercase text-white/55 font-sans mb-2",children:C.name}),o.jsx("p",{className:"font-display text-4xl text-white mb-4",children:We(C.amountHuf)}),o.jsx("ul",{className:"space-y-2 mb-5 flex-1",children:C.includes.map(L=>o.jsxs("li",{className:"flex gap-2 text-sm font-sans text-white/85 leading-snug",children:[o.jsx(an,{className:"w-4 h-4 mt-0.5 shrink-0 text-white/70"}),o.jsx("span",{children:L})]},L))}),e.registrationOpen&&o.jsxs(le,{variant:"secondary",className:"w-full",onClick:()=>n(`/workshopok/${e.slug}/jelentkezes`,{state:{tier_id:C.id,...f&&f.valid?{coupon_code:f.code}:{}}}),children:[C.name," választása"]})]},C.id))}):o.jsxs("div",{className:"inline-block border border-white/25 bg-white/5 px-10 py-5 mb-10",children:[y.isEarlyBird&&e.pricing.kind==="early-bird"?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"text-[10px] tracking-[0.25em] uppercase text-white/55 font-sans mb-2",children:["Early bird · ",(z=y.deadline)==null?void 0:z.toLocaleDateString("hu-HU"),"-ig"]}),f!=null&&f.valid?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"font-sans text-white/50 line-through text-lg",children:We(v)}),o.jsx("p",{className:"font-display text-4xl md:text-5xl text-white",children:We(k)})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"font-display text-4xl md:text-5xl text-white",children:We(v)}),o.jsxs("p",{className:"text-xs text-white/45 font-sans mt-2",children:["KésÅbb ",We(e.pricing.regularAmountHuf)]})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-[10px] tracking-[0.25em] uppercase text-white/55 font-sans mb-2",children:"Részvételi dÃj"}),f!=null&&f.valid?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"font-sans text-white/50 line-through text-lg",children:We(v)}),o.jsx("p",{className:"font-display text-4xl md:text-5xl text-white",children:We(k)})]}):o.jsx("p",{className:"font-display text-4xl md:text-5xl text-white",children:We(v)})]}),(f==null?void 0:f.valid)&&o.jsxs("p",{className:"text-xs text-white/70 font-sans mt-2",children:["Kupon: ",o.jsx("strong",{children:f.code})," · â",We(f.discount_huf)]})]}),o.jsxs("div",{className:"mb-10",children:[!a&&!(f!=null&&f.valid)&&o.jsxs("button",{type:"button",onClick:()=>l(!0),className:"text-xs font-sans text-white/55 hover:text-white tracking-widest uppercase inline-flex items-center gap-1.5",children:[o.jsx(hP,{className:"w-3.5 h-3.5"}),"Van kuponkódom"]}),a&&!(f!=null&&f.valid)&&o.jsxs("div",{className:"bg-background p-5 max-w-md mx-auto text-left",children:[o.jsx("label",{htmlFor:"coupon-input",className:"text-xs font-sans text-muted-foreground uppercase tracking-widest",children:"Kuponkód"}),o.jsxs("div",{className:"flex gap-2 mt-2",children:[o.jsx(yt,{id:"coupon-input",value:c,onChange:C=>u(C.target.value.toUpperCase()),maxLength:64,placeholder:"Add meg a kódot",className:"flex-1",onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),_())}}),o.jsx(le,{type:"button",variant:"outline",onClick:_,disabled:d||!c.trim(),children:d?"â¦":"Beváltás"})]}),f&&f.valid===!1&&o.jsx("p",{className:"text-xs text-destructive mt-2",children:f.error})]}),(f==null?void 0:f.valid)&&o.jsx("button",{type:"button",onClick:j,className:"text-xs text-white/50 hover:text-white font-sans underline underline-offset-4",children:"Kupon eltávolÃtása"})]}),e.pricing.kind!=="tiered"&&(e.registrationOpen?o.jsxs(le,{size:"lg",variant:"secondary",className:"group px-12 py-6 text-base",onClick:E,children:["Jelentkezem most",o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}):o.jsx(le,{size:"lg",variant:"secondary",disabled:!0,children:"Hamarosan"})),o.jsxs("p",{className:"text-xs text-white/50 font-sans mt-6",children:[e.locationLabel," · ",e.durationLabel," · Kimmel Hajnalka"]})]})}),e.slug==="vilagunk-veszte-telhetetlenseg"&&o.jsx(MV,{})]})},DV=[{name:"Tudatos Fogyasztás â 20 Tipp",description:"InteraktÃv segédlet külön aloldalon, közvetlenül böngészÅbÅl használható",href:OV},{name:"Világunk veszte â BudgettervezÅ 2026",description:"Excel sablon havi és éves költségkövetéshez",href:tN,download:!0}],MV=()=>{const[t,e]=g.useState(""),[n,r]=g.useState(!1),[s,i]=g.useState(null);if(nN())return null;const a=l=>{l.preventDefault(),rN(t)?(r(!0),window.sessionStorage.setItem(wg,Kd),i(null)):i("Hibás kód. Kérlek ellenÅrizd a workshopon kapott kódot.")};return o.jsx("section",{className:"py-16 md:py-20 bg-background border-t border-foreground
357/10",children:o.jsxs("div",{className:"container max-w-3xl",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx(fs,{children:"Workshop résztvevÅknek"}),o.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground leading-tight mb-4",children:"LetölthetÅ anyagok"}),o.jsx("p",{className:"font-sans text-foreground/70 max-w-xl mx-auto",children:"A workshopon megkapott hozzáférési kóddal letöltheted a kiegészÃtÅ segédanyagokat. A kód 2026. május 10-ig érvényes."})]}),n?o.jsxs("div",{className:"space-y-4",children:[DV.map(l=>o.jsxs("a",{href:l.href,download:l.download,className:"flex items-center gap-5 bg-[hsl(var(--walnut-soft))] border-l-[3px] border-[hsl(var(--walnut))] p-6 hover:bg-[hsl(var(--walnut))]/10 transition-colors group",children:[l.download?o.jsx(Aj,{className:"w-6 h-6 text-[hsl(var(--walnut))] shrink-0"}):o.jsx(rP,{className:"w-6 h-6 text-[hsl(var(--walnut))] shrink-0"}),o.jsxs("div",{className:"flex-1",children:[o.jsx("h3",{className:"font-display text-lg text-foreground mb-1",children:l.name}),o.jsx("p",{className:"font-sans text-sm text-foreground/70",children:l.description})]}),o.jsx(De,{className:"w-5 h-5 text-[hsl(var(--walnut))] opacity-0 group-hover:opacity-100 group-hover:translate-x-1 transition-all"})]},l.href)),o.jsxs("p",{className:"text-center text-xs text-foreground/50 font-sans pt-4",children:["Ãrvényes ",eN.toLocaleDateString("hu-HU"),"-ig"]})]}):o.jsxs("form",{onSubmit:a,className:"max-w-md mx-auto bg-[hsl(var(--walnut-soft))] border border-foreground
357/10 p-8",children:[o.jsx("label",{htmlFor:"download-code",className:"block text-[11px] font-sans font-bold tracking-[0.25em] uppercase text-[hsl(var(--walnut))] mb-3",children:"Hozzáférési kód"}),o.jsx(yt,{id:"download-code",type:"text",value:t,onChange:l=>e(l.target.value),placeholder:"Ãrd be a kódot",className:"rounded-none bg-background border-foreground/20 font-sans tracking-wider uppercase mb-4",autoComplete:"off"}),s&&o.jsx("p",{className:"text-sm text-destructive font-sans mb-4",children:s}),o.jsx(le,{type:"submit",className:"w-full rounded-none",children:"Anyagok megnyitása"})]})]})})},fs=({children:t})=>o.jsx("p",{className:"text-[11px] font-sans font-bold tracking-[0.3em] uppercase text-[hsl(var(--walnut))] mb-4",children:t}),Qb=({label:t,onClick:e})=>o.jsx("div",{className:"bg-background py-8 md:py-10 text-center",children:o.jsxs(le,{size:"lg",onClick:e,className:"bg-[hsl(var(--walnut))] hover:bg-[hsl(var(--walnut))]/90 text-white px-10 py-6 text-sm tracking-[0.2em] uppercase rounded-none border-0 font-medium group",children:[t,o.jsx(De,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})}),$V=[{id:"mind",label:"Mind",icon:an},{id:"vasarlas",label:"Vásárlás",icon:uP},{id:"digitalis",label:"Digitális",icon:dP},{id:"korkoros",label:"Körkörös",icon:cP},{id:"kognitiv",label:"KognitÃv",icon:QR},{id:"eletmod",label:"Ãletmód",icon:Ic}],rm=[{id:1,category:"vasarlas",label:"24/72 órás szabály",text:"5 000 Ft felett várj 24 órát a döntéssel. Impulzusvásárlásnál 72 órát. Az esetek többségében a vágy magától elmúlik."},{id:2,category:"vasarlas",label:"Három kérdés",text:"Fizetés elÅtt: Nekem kell, vagy annak, aki látja? Mit csinálok vele fél év múlva? Melyik ösztönöm dolgozik most?",featured:!0},{id:3,category:"vasarlas",label:"Elég-lista",text:"Ãrd le, amit venni akarsz, és ne vásárolj belÅle 30 napig. Ez az egyszerű trükk meglepÅen hatásos."},{id:4,category:"vasarlas",label:"Fogyasztási napló",text:"Vezess fogyasztási naplót 2 hétig, hogy lásd, hol dönt helyetted az automatizmus."},{id:5,category:"vasarlas",label:"Készpénz-hatás",text:"Fizess készpénzzel, ahol tudsz. A fizikai pénz elvesztése fájdalmasabb, pont ezért találták fel az egykattintásos fizetést."},{id:6,category:"digitalis",label:"Appok törlése",text:"Töröld a Temu, Shein, Wish appokat a telefonodról. Ha nincs ott a csábÃtás, nem kell ellene harcolni."},{id:7,category:"digitalis",label:"Leiratkozás",text:"Iratkozz le a marketing hÃrlevelekrÅl. Minden egyes âlegjobb ajánlatâ emailtÅl egyet lépj közelebb a csöndhöz."},{id:8,category:"digitalis",label:"Algoritmikus tudatosság",text:"Nézd végig, kit követsz: ha valaki folyamatosan terméket mutat, az nem tartalomgyártó, hanem eladó."},{id:9,category:"digitalis",label:"Este 9 szabály",text:"Este 9 után ne nyiss meg webshopot. A legtöbb impulzusvásárlás késÅ este, fáradtan történik."},{id:10,category:"korkoros",label:"Kölcsönözz",text:"Könyvtár, szerszámbérlet, autómegosztás..."},{id:11,category:"korkoros",label:"JavÃtás",text:"JavÃtsd meg, mielÅtt kidobod. Repair Café, iFixit.com, helyi cipész és varrónÅ. A javÃtás sok esetben tanulható"},{id:12,category:"korkoros",label:"Másodkéz",text:"Marketplace, Jófogás, Vinted...Vigyázz, ezekkel is túlzásba lehet esni."},{id:13,category:"korkoros",label:"Tartósság",text:"Ha mégis újat veszel: a tartósat, ne a legolcsóbbat."},{id:14,category:"korkoros",label:"Egy be, egy ki",text:"Ha valamibÅl újat vennél, ugyanabból a kategóriából adj el/ajándékozz el egyet."},{id:15,category:"kognitiv",label:"Algoritmus-kérdés",text:"Görgetésnél kérdezd: âMiért mutatja nekem ezt? Ki profitál?â A kérdés megszakÃtja az automatizmust."},{id:16,category:"kognitiv",label:"Digitális böjt",text:"Heti 1 nap képernyÅ nélkül. Csökkent stressz, jobb alvás, és rájössz, mennyit vesz el a görgetés.",featured:!0},{id:17,category:"kognitiv",label:"Boldogság-audit",text:"Random idÅpontokban kérdezd: boldog vagyok most? Mi okozza? Ãgy láthatóvá válik, mi tölt és mi merÃt."},{id:18,category:"eletmod",label:"Helyi és szezonális",text:"Helyi és szezonális élelem: kisebb ökológiai lábnyom, erÅsebb lokális gazdaság, Ãzletesebb étel."},{id:19,category:"eletmod",label:"Húsmentes nap",text:"Heti 1 húsmentes nap = évi jelentÅs szén-dioxid-egyenérték megtakarÃtás. A fokozatos változás is számÃt."},{id:20,category:"eletmod",label:"Közösség",text:"Beszélj róla másokkal. A tudatosság társas viselkedés. Egy emberbÅl mozgalom is lehet, ha mer hangosan gondolkodni.",featured:!0}],FV=()=>{const[t,e]=g.useState(""),[n,r]=g.useState(null),[s,i]=g.useState(()=>window.sessionStorage.getItem(wg)===Kd),[a,l]=g.useState("mind"),[c,u]=g.useState([]),d=g.useMemo(()=>a==="mind"?rm:rm.filter(w=>w.category===a),[a]),h=Math.round(c.length/rm.length*100);if(nN())return o.jsx(Ch,{to:`/workshopok/${ed}`,replace:!0});const f=w=>{if(w.preventDefault(),rN(t)){window.sessionStorage.setItem(wg,Kd),i(!0),r(null);return}r("Hibás kód. Kérlek ellenÅrizd a workshopon kapott kódot.")},m=w=>{u(p=>p.includes(w)?p.filter(b=>b!==w):[...p,w])};return s?o.jsxs($e,{children:[o.jsx("section",{className:"bg-[hsl(var(--walnut))] py-16 md:py-24 text-primary-foreground",children:o.jsxs("div",{className:"container max-w-5xl",children:[o.jsxs(ve,{to:`/workshopok/${ed}`,className:"mb-10 inline-flex items-center gap-2 font-sans text-xs font-medium uppercase tracking-[0.25em] text-primary-foreground
357/75 hover:text-primary-foreground",children:[o.jsx(pp,{className:"h-4 w-4"}),"Vissza a workshophoz"]}),o.jsxs("div",{className:"grid gap-10 md:grid-cols-[1.2fr_0.8fr] md:items-end",children:[o.jsxs("div",{children:[o.jsx("p",{className:"mb-4 font-sans text-[11px] font-bold uppercase tracking-[0.3em] text-primary-foreground/65",children:"InteraktÃv segédlet"}),o.jsx("h1",{className:"font-display text-4xl leading-[1.05] text-primary-foreground md:text-6xl",children:"Tudatos fogyasztás"}),o.jsx("p",{className:"mt-7 max-w-2xl font-sans text-base leading-relaxed text-primary-foreground/80 md:text-lg",children:"Minden vásárlási döntésünk egy szavazat."})]}),o.jsxs("div",{className:"border border-primary-foreground/25 p-6",children:[o.jsx("p",{className:"mb-2 font-sans text-[11px] uppercase tracking-[0.25em] text-primary-foreground/60",children:"Haladás"}),o.jsx("div",{className:"mb-3 h-2 bg-primary-foreground/15",children:o.jsx("div",{className:"h-full bg-primary-foreground transition-all",style:{width:`${h}%`}})}),o.jsxs("p",{className:"font-display text-3xl text-primary-foreground",children:[c.length,"/20"]})]})]})]})}),o.jsx("section",{className:"bg-background py-12 md:py-16",children:o.jsxs("div",{className:"container max-w-5xl",children:[o.jsx("div",{className:"mb-10 flex flex-wrap gap-2",children:$V.map(w=>{const p=w.icon,b=a===w.id;return o.jsxs("button",{type:"button",onClick:()=>l(w.id),className:`inline-flex items-center gap-2 border px-4 py-3 font-sans text-xs font-medium uppercase tracking-[0.18em] transition ${b?"border-[hsl(var(--walnut))] bg-[hsl(var(--walnut))] text-primary-foreground":"border-border bg-background text-foreground hover:border-[hsl(var(--walnut))]"}`,children:[o.jsx(p,{className:"h-4 w-4"}),w.label]},w.id)})}),o.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:d.map(w=>{const p=c.includes(w.id);return o.jsxs("button",{type:"button",onClick:()=>m(w.id),className:`group border p-6 text-left transition ${w.featured?"border-[hsl(var(--walnut))] bg-[hsl(var(--walnut-soft))]":"border-border bg-background hover:border-[hsl(var(--walnut))]"}`,children:[o.jsxs("div",{className:"mb-5 flex items-start justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"mb-2 font-display text-3xl leading-none text-[hsl(var(--walnut))]/30",children:String(w.id).padStart(2,"0")}),o.jsx("h2",{className:"font-display text-xl leading-tight text-foreground",children:w.label})]}),o.jsx("span",{className:`flex h-7 w-7 shrink-0 items-center justify-center border transition ${p?"border-[hsl(var(--walnut))] bg-[hsl(var(--walnut))] text-primary-foreground":"border-border text-transparent"}`,children:o.jsx(an,{className:"h-4 w-4"})})]}),o.jsx("p",{className:"font-sans text-sm leading-relaxed text-foreground/75",children:w.text})]},w.id)})})]})}),o.jsx("section",{className:"bg-[hsl(var(--walnut-soft))] py-14 md:py-20",children:o.jsxs("div",{className:"container grid max-w-5xl gap-8 md:grid-cols-[1fr_1.2fr] md:items-center",children:[o.jsx("h2",{className:"font-display text-3xl leading-tight text-foreground md:text-4xl",children:"Közösségi és rendszeri szint"}),o.jsxs("ul",{className:"space-y-4 font-sans text-sm leading-relaxed text-foreground/75 md:text-base",children:[o.jsx("li",{children:'â Helyi termelÅi piac, közösségi kert, "szomszédolás".'}),o.jsx("li",{children:"â Nyomásgyakorlás vállalatokra: bojkott, petÃció, transzparencia-követelés."}),o.jsx("li",{children:"â Rendszeri szabályozás támogatása: szénadó, körgazdaság, gyerekreklám-tilalom."}),o.jsx("li",{children:"A rendszer akkor változik, ha a pénztárcáddal és a szavazatoddal is döntesz."})]})]})}),o.jsx("section",{className:"bg-background py-14",children:o.jsx("div",{className:"container max-w-5xl",children:o.jsxs("a",{href:tN,download:!0,className:"inline-flex items-center gap-3 border border-[hsl(var(--walnut))] px-5 py-4 font-sans text-xs font-medium uppercase tracking-[0.2em] text-[hsl(var(--walnut))] transition hover:bg-[hsl(var(--walnut))] hover:text-primary-foreground",children:[o.jsx(Aj,{className:"h-4 w-4"}),"BudgettervezÅ letöltése"]})})})]}):o.jsx($e,{children:o.jsx("section",{className:"min-h-[70vh] bg-background py-20 md:py-28",children:o.jsxs("div",{className:"container max-w-xl",children:[o.jsxs(ve,{to:`/workshopok/${ed}`,className:"mb-10 inline-flex items-center gap-2 font-sans text-xs font-medium uppercase tracking-[0.25em] text-[hsl(var(--walnut))] hover:opacity-75",children:[o.jsx(pp,{className:"h-4 w-4"}),"Vissza a workshophoz"]}),o.jsxs("form",{onSubmit:f,className:"border border-border bg-[hsl(var(--walnut-soft))] p-8 md:p-10",children:[o.jsx(aP,{className:"mb-6 h-8 w-8 text-[hsl(var(--walnut))]"}),o.jsx("p",{className:"mb-3 font-sans text-[11px] font-bold uppercase tracking-[0.3em] text-[hsl(var(--walnut))]",children:"Workshop résztvevÅknek"}),o.jsx("h1",{className:"mb-5 font-display text-3xl leading-tight text-foreground md:text-4xl",children:"Tudatos fogyasztás interaktÃv segédlet"}),o.jsx("p",{className:"mb-8 font-sans text-base leading-relaxed text-foreground
357/75",children:"Add meg a workshopon kapott hozzáférési kódot. A segédlet 2026. május 10-ig érhetÅ el."}),o.jsx("label",{htmlFor:"guide-code",className:"mb-3 block font-sans text-[11px] font-bold uppercase tracking-[0.25em] text-[hsl(var(--walnut))]",children:"Hozzáférési kód"}),o.jsx(yt,{id:"guide-code",value:t,onChange:w=>e(w.target.value),placeholder:"Ãrd be a kódot",autoComplete:"off",className:"mb-4 rounded-none border-foreground/20 bg-background font-sans uppercase tracking-wider"}),n&&o.jsx("p",{className:"mb-4 font-sans text-sm text-destructive",children:n}),o.jsx(le,{type:"submit",className:"w-full rounded-none shadow-none font-semibold",children:"Segédlet megnyitása"})]})]})})})};var Pe;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const i={};for(const a of s)i[a]=a;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(l=>typeof s[s[l]]!="number"),a={};for(const l of i)a[l]=s[l];return t.objectValues(a)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.push(a);return i},t.find=(s,i)=>{for(const a of s)if(i(a))return a},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Pe||(Pe={}));var Jb;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Jb||(Jb={}));const ee=Pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),vs=t=>{switch(typeof t){case"undefined":return ee.undefined;case"string":return ee.string;
vendor: 5,170 bytes, line 357
357case"number":return Number.isNaN(t)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(t)?ee.array:t===null?ee.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ee.promise:typeof Map<"u"&&t instanceof Map?ee.map:typeof Set<"u"&&t instanceof Set?ee.set:typeof Date<"u"&&t instanceof Date?ee.date:ee.object;default:return ee.unknown}},F=Pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ns extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(i){return i.message},r={_errors:[]},s=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let l=r,c=0;for(;c<a.path.length;){const u=a.path[c];c===a.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(a))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return s(this),r}static assert(e){if(!(e instanceof ns))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ns.create=t=>new ns(t);const bg=(t,e)=>{let n;switch(t.code){case F.invalid_type:t.received===ee.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case F.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Pe.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:n=`Unrecognized key(s) in object: ${Pe.joinValues(t.keys,", ")}`;break;case F.invalid_union:n="Invalid input";break;case F.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Pe.joinValues(t.options)}`;break;case F.invalid_enum_value:n=`Invalid enum value. Expected ${Pe.joinValues(t.options)}, received '${t.received}'`;break;case F.invalid_arguments:n="Invalid function arguments";break;case F.invalid_return_type:n="Invalid function return type";break;case F.invalid_date:n="Invalid date";break;case F.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Pe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case F.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case F.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case F.custom:n="Invalid input";break;case F.invalid_intersection_types:n="Intersection results could not be merged";break;case F.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case F.not_finite:n="Number must be finite";break;default:n=e.defaultError,Pe.assertNever(t)}return{message:n}};let UV=bg;function VV(){return UV}const BV=t=>
vendor: 29,148 bytes, line 357
357{const{data:e,path:n,errorMaps:r,issueData:s}=t,i=[...n,...s.path||[]],a={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let l="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)l=u(a,{data:e,defaultError:l}).message;return{...s,path:i,message:l}};function q(t,e){const n=VV(),r=BV({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===bg?void 0:bg].filter(s=>!!s)});t.common.issues.push(r)}class _n{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return ge;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const i=await s.key,a=await s.value;r.push({key:i,value:a})}return _n.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:i,value:a}=s;if(i.status==="aborted"||a.status==="aborted")return ge;i.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(r[i.value]=a.value)}return{status:e.value,value:r}}}const ge=Object.freeze({status:"aborted"}),xl=t=>({status:"dirty",value:t}),Bn=t=>({status:"valid",value:t}),Xb=t=>t.status==="aborted",ek=t=>t.status==="dirty",xo=t=>t.status==="valid",Gd=t=>typeof Promise<"u"&&t instanceof Promise;var ie;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ie||(ie={}));class Js{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const tk=(t,e)=>{if(xo(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ns(t.common.issues);return this._error=n,this._error}}};function _e(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(a,l)=>{const{message:c}=t;return a.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??r??l.defaultError}:a.code!=="invalid_type"?{message:l.defaultError}:{message:c??n??l.defaultError}},description:s}}class Re{get description(){return this._def.description}_getType(e){return vs(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:vs(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new _n,ctx:{common:e.parent.common,data:e.data,parsedType:vs(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Gd(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vs(e)},s=this._parseSync({data:e,path:r.path,parent:r});return tk(r,s)}"~validate"(e){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vs(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:n});return xo(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(i=>xo(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vs(e)},s=this._parse({data:e,path:r.path,parent:r}),i=await(Gd(s)?s:Promise.resolve(s));return tk(r,i)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const a=e(s),l=()=>i.addIssue({code:F.custom,...r(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(l(),!1)):a?!0:(l(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new bo({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ws.create(this,this._def)}nullable(){return ko.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ar.create(this)}promise(){return Qd.create(this,this._def)}or(e){return Yd.create([this,e],this._def)}and(e){return Zd.create(this,e,this._def)}transform(e){return new bo({..._e(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new _g({..._e(this._def),innerType:this,defaultValue:n,typeName:ye.ZodDefault})}brand(){return new hB({typeName:ye.ZodBranded,type:this,..._e(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new jg({..._e(this._def),innerType:this,catchValue:n,typeName:ye.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Uv.create(this,e)}readonly(){return Sg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const HV=/^c[^\s-]{8,}$/i,WV=/^[0-9a-z]+$/,KV=/^[0-9A-HJKMNP-TV-Z]{26}$/i,GV=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,qV=/^[a-z0-9_-]{21}$/i,YV=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ZV=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,QV=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let sm;const XV=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tB=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nB=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rB=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sB=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,sN="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",iB=new RegExp(`^${sN}$`);function iN(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function aB(t){return new RegExp(`^${iN(t)}$`)}function oB(t){let e=`${sN}T${iN(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function lB(t,e){return!!((e==="v4"||!e)&&XV.test(t)||(e==="v6"||!e)&&tB.test(t))}function cB(t,e){if(!YV.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function uB(t,e){return!!((e==="v4"||!e)&&eB.test(t)||(e==="v6"||!e)&&nB.test(t))}class Os extends Re{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ee.string){const i=this._getOrReturnCtx(e);return q(i,{code:F.invalid_type,expected:ee.string,received:i.parsedType}),ge}const r=new _n;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),q(s,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),q(s,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const a=e.data.length>i.value,l=e.data.length<i.value;(a||l)&&(s=this._getOrReturnCtx(e,s),a?q(s,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&q(s,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")QV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"email",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")sm||(sm=new RegExp(JV,"u")),sm.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"emoji",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")GV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"uuid",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")qV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"nanoid",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")HV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"cuid",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")WV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"cuid2",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")KV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"ulid",code:F.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),q(s,{validation:"url",code:F.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"regex",code:F.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),q(s,{code:F.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),q(s,{code:F.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),q(s,{code:F.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?oB(i).test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{code:F.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?iB.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{code:F.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?aB(i).test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{code:F.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?ZV.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"duration",code:F.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?lB(e.data,i.version)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"ip",code:F.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?cB(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"jwt",code:F.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?uB(e.data,i.version)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"cidr",code:F.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?rB.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"base64",code:F.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?sB.test(e.data)||(s=this._getOrReturnCtx(e,s),q(s,{validation:"base64url",code:F.invalid_string,message:i.message}),r.dirty()):Pe.assertNever(i);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:F.invalid_string,...ie.errToObj(r)})}_addCheck(e){return new Os({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ie.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ie.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ie.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ie.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ie.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ie.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ie.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ie.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ie.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ie.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ie.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ie.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ie.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...ie.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...ie.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ie.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ie.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...ie.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ie.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ie.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ie.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ie.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ie.errToObj(n)})}nonempty(e){return this.min(1,ie.errToObj(e))}trim(){return new Os({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Os({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Os({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Os.create=t=>new Os({checks:[],typeName:ye.ZodString,coerce:(t==null?void 0:t.coerce)??!1,..._e(t)});function dB(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(t.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return i%a/10**s}class kc extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ee.number){const i=this._getOrReturnCtx(e);return q(i,{code:F.invalid_type,expected:ee.number,received:i.parsedType}),ge}let r;const s=new _n;for(const i of this._def.checks)i.kind==="int"?Pe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),q(r,{code:F.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),q(r,{code:F.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),q(r,{code:F.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?dB(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),q(r,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),q(r,{code:F.not_finite,message:i.message}),s.dirty()):Pe.assertNever(i);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ie.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ie.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ie.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ie.toString(n))}setLimit(e,n,r,s){return new kc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ie.toString(s)}]})}_addCheck(e){return new kc({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ie.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ie.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ie.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ie.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ie.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ie.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ie.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ie.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ie.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Pe.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}kc.create=t=>new kc({checks:[],typeName:ye.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,..._e(t)});class _c extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ee.bigint)return this._getInvalidInput(e);let r;const s=new _n;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),q(r,{code:F.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),q(r,{code:F.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),q(r,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Pe.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return q(n,{code:F.invalid_type,expected:ee.bigint,received:n.parsedType}),ge}gte(e,n){return this.setLimit("min",e,!0,ie.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ie.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ie.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ie.toString(n))}setLimit(e,n,r,s){return new _c({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ie.toString(s)}]})}_addCheck(e){return new _c({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ie.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ie.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ie.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ie.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ie.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}_c.create=t=>new _c({checks:[],typeName:ye.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,..._e(t)});class nk extends Re{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ee.boolean){const r=this._getOrReturnCtx(e);return q(r,{code:F.invalid_type,expected:ee.boolean,received:r.parsedType}),ge}return Bn(e.data)}}nk.create=t=>new nk({typeName:ye.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,..._e(t)});class qd extends Re{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ee.date){const i=this._getOrReturnCtx(e);return q(i,{code:F.invalid_type,expected:ee.date,received:i.parsedType}),ge}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return q(i,{code:F.invalid_date}),ge}const r=new _n;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),q(s,{code:F.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),q(s,{code:F.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Pe.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new qd({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ie.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ie.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}qd.create=t=>new qd({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ye.ZodDate,..._e(t)});class rk extends Re{_parse(e){if(this._getType(e)!==ee.symbol){const r=this._getOrReturnCtx(e);return q(r,{code:F.invalid_type,expected:ee.symbol,received:r.parsedType}),ge}return Bn(e.data)}}rk.create=t=>new rk({typeName:ye.ZodSymbol,..._e(t)});class sk extends Re{_parse(e){if(this._getType(e)!==ee.undefined){const r=this._getOrReturnCtx(e);return q(r,{code:F.invalid_type,expected:ee.undefined,received:r.parsedType}),ge}return Bn(e.data)}}sk.create=t=>new sk({typeName:ye.ZodUndefined,..._e(t)});class ik extends Re{_parse(e){if(this._getType(e)!==ee.null){const r=this._getOrReturnCtx(e);return q(r,{code:F.invalid_type,expected:ee.null,received:r.parsedType}),ge}return Bn(e.data)}}ik.create=t=>new ik({typeName:ye.ZodNull,..._e(t)});class ak extends Re{constructor(){super(...arguments),this._any=!0}_parse(e){return Bn(e.data)}}ak.create=t=>new ak({typeName:ye.ZodAny,..._e(t)});class ok extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Bn(e.data)}}ok.create=t=>new ok({typeName:ye.ZodUnknown,..._e(t)});class Xs extends Re{_parse(e){const n=this._getOrReturnCtx(e);return q(n,{code:F.invalid_type,expected:ee.never,received:n.parsedType}),ge}}Xs.create=t=>new Xs({typeName:ye.ZodNever,..._e(t)});class lk extends Re{_parse(e){if(this._getType(e)!==ee.undefined){const r=this._getOrReturnCtx(e);return q(r,{code:F.invalid_type,expected:ee.void,received:r.parsedType}),ge}return Bn(e.data)}}lk.create=t=>new lk({typeName:ye.ZodVoid,..._e(t)});class Ar extends Re{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==ee.array)return q(n,{code:F.invalid_type,expected:ee.array,received:n.parsedType}),ge;if(s.exactLength!==null){const a=n.data.length>s.exactLength.value,l=n.data.length<s.exactLength.value;(a||l)&&(q(n,{code:a?F.too_big:F.too_small,minimum:l?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(q(n,{code:F.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(q(n,{code:F.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,l)=>s.type._parseAsync(new Js(n,a,n.path,l)))).then(a=>_n.mergeArray(r,a));const i=[...n.data].map((a,l)=>s.type._parseSync(new Js(n,a,n.path,l)));return _n.mergeArray(r,i)}
vendor: 5,943 bytes, line 357
357get element(){return this._def.type}min(e,n){return new Ar({...this._def,minLength:{value:e,message:ie.toString(n)}})}max(e,n){return new Ar({...this._def,maxLength:{value:e,message:ie.toString(n)}})}length(e,n){return new Ar({...this._def,exactLength:{value:e,message:ie.toString(n)}})}nonempty(e){return this.min(1,e)}}Ar.create=(t,e)=>new Ar({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,..._e(e)});function xa(t){if(t instanceof it){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Ws.create(xa(r))}return new it({...t._def,shape:()=>e})}else return t instanceof Ar?new Ar({...t._def,type:xa(t.element)}):t instanceof Ws?Ws.create(xa(t.unwrap())):t instanceof ko?ko.create(xa(t.unwrap())):t instanceof Zi?Zi.create(t.items.map(e=>xa(e))):t}class it extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Pe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==ee.object){const u=this._getOrReturnCtx(e);return q(u,{code:F.invalid_type,expected:ee.object,received:u.parsedType}),ge}const{status:r,ctx:s}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),l=[];if(!(this._def.catchall instanceof Xs&&this._def.unknownKeys==="strip"))for(const u in s.data)a.includes(u)||l.push(u);const c=[];for(const u of a){const d=i[u],h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Js(s,h,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof Xs){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")l.length>0&&(q(s,{code:F.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Js(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const h=await d.key,f=await d.value;u.push({key:h,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>_n.mergeObjectSync(r,u)):_n.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return ie.errToObj,new it({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var i,a;const s=((a=(i=this._def).errorMap)==null?void 0:a.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ie.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new it({...this._def,unknownKeys:"strip"})}passthrough(){return new it({...this._def,unknownKeys:"passthrough"})}extend(e){return new it({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new it({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ye.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new it({...this._def,catchall:e})}pick(e){const n={};for(const r of Pe.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new it({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Pe.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new it({...this._def,shape:()=>n})}deepPartial(){return xa(this)}partial(e){const n={};for(const r of Pe.objectKeys(this.shape)){const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}return new it({...this._def,shape:()=>n})}required(e){const n={};for(const r of Pe.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ws;)i=i._def.innerType;n[r]=i}return new it({...this._def,shape:()=>n})}keyof(){return aN(Pe.objectKeys(this.shape))}}it.create=(t,e)=>new it({shape:()=>t,unknownKeys:"strip",catchall:Xs.create(),typeName:ye.ZodObject,..._e(e)});it.strictCreate=(t,e)=>new it({shape:()=>t,unknownKeys:"strict",catchall:Xs.create(),typeName:ye.ZodObject,..._e(e)});it.lazycreate=(t,e)=>new it({shape:t,unknownKeys:"strip",catchall:Xs.create(),typeName:ye.ZodObject,..._e(e)});class Yd extends Re{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const a=i.map(l=>new ns(l.ctx.common.issues));return q(n,{code:F.invalid_union,unionErrors:a}),ge}if(n.common.async)return Promise.all(r.map(async i=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(s);{let i;const a=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const l=a.map(c=>new ns(c));return q(n,{code:F.invalid_union,unionErrors:l}),ge}}get options(){return this._def.options}}Yd.create=(t,e)=>new Yd({options:t,typeName:ye.ZodUnion,..._e(e)});function kg(t,e){const n=vs(t),r=vs(e);if(t===e)return{valid:!0,data:t};if(n===ee.object&&r===ee.object){const s=Pe.objectKeys(e),i=Pe.objectKeys(t).filter(l=>s.indexOf(l)!==-1),a={...t,...e};for(const l of i){const c=kg(t[l],e[l]);if(!c.valid)return{valid:!1};a[l]=c.data}return{valid:!0,data:a}}else if(n===ee.array&&r===ee.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const a=t[i],l=e[i],c=kg(a,l);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return n===ee.date&&r===ee.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Zd extends Re{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(i,a)=>
vendor: 1,883 bytes, line 357
357{if(Xb(i)||Xb(a))return ge;const l=kg(i.value,a.value);return l.valid?((ek(i)||ek(a))&&n.dirty(),{status:n.value,value:l.data}):(q(r,{code:F.invalid_intersection_types}),ge)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>s(i,a)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Zd.create=(t,e,n)=>new Zd({left:t,right:e,typeName:ye.ZodIntersection,..._e(n)});class Zi extends Re{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ee.array)return q(r,{code:F.invalid_type,expected:ee.array,received:r.parsedType}),ge;if(r.data.length<this._def.items.length)return q(r,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ge;!this._def.rest&&r.data.length>this._def.items.length&&(q(r,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((a,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new Js(r,a,r.path,l)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>_n.mergeArray(n,a)):_n.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new Zi({...this._def,rest:e})}}Zi.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zi({items:t,typeName:ye.ZodTuple,rest:null,..._e(e)})};class ck extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ee.map)return q(r,{code:F.invalid_type,expected:ee.map,received:r.parsedType}),ge;const s=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([l,c],u)=>
vendor: 4,160 bytes, line 357
357({key:s._parse(new Js(r,l,r.path,[u,"key"])),value:i._parse(new Js(r,c,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of a){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ge;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of a){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ge;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}ck.create=(t,e,n)=>new ck({valueType:e,keyType:t,typeName:ye.ZodMap,..._e(n)});class jc extends Re{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ee.set)return q(r,{code:F.invalid_type,expected:ee.set,received:r.parsedType}),ge;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(q(r,{code:F.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(q(r,{code:F.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function a(c){const u=new Set;for(const d of c){if(d.status==="aborted")return ge;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((c,u)=>i._parse(new Js(r,c,r.path,u)));return r.common.async?Promise.all(l).then(c=>a(c)):a(l)}min(e,n){return new jc({...this._def,minSize:{value:e,message:ie.toString(n)}})}max(e,n){return new jc({...this._def,maxSize:{value:e,message:ie.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}jc.create=(t,e)=>new jc({valueType:t,minSize:null,maxSize:null,typeName:ye.ZodSet,..._e(e)});class uk extends Re{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}uk.create=(t,e)=>new uk({getter:t,typeName:ye.ZodLazy,..._e(e)});class dk extends Re{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return q(n,{received:n.data,code:F.invalid_literal,expected:this._def.value}),ge}return{status:"valid",value:e.data}}get value(){return this._def.value}}dk.create=(t,e)=>new dk({value:t,typeName:ye.ZodLiteral,..._e(e)});function aN(t,e){return new wo({values:t,typeName:ye.ZodEnum,..._e(e)})}class wo extends Re{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return q(n,{expected:Pe.joinValues(r),received:n.parsedType,code:F.invalid_type}),ge}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return q(n,{received:n.data,code:F.invalid_enum_value,options:r}),ge}return Bn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return wo.create(e,{...this._def,...n})}exclude(e,n=this._def){return wo.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}wo.create=aN;class hk extends Re{_parse(e){const n=Pe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==ee.string&&r.parsedType!==ee.number){const s=Pe.objectValues(n);return q(r,{expected:Pe.joinValues(s),received:r.parsedType,code:F.invalid_type}),ge}if(this._cache||(this._cache=new Set(Pe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=Pe.objectValues(n);return q(r,{received:r.data,code:F.invalid_enum_value,options:s}),ge}return Bn(e.data)}get enum(){return this._def.values}}hk.create=(t,e)=>new hk({values:t,typeName:ye.ZodNativeEnum,..._e(e)});class Qd extends Re{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ee.promise&&n.common.async===!1)return q(n,{code:F.invalid_type,expected:ee.promise,received:n.parsedType}),ge;
vendor: 4,095 bytes, line 357
357const r=n.parsedType===ee.promise?n.data:Promise.resolve(n.data);return Bn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Qd.create=(t,e)=>new Qd({type:t,typeName:ye.ZodPromise,..._e(e)});class bo extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:a=>{q(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const a=s.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async l=>{if(n.value==="aborted")return ge;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?ge:c.status==="dirty"||n.value==="dirty"?xl(c.value):c});{if(n.value==="aborted")return ge;const l=this._def.schema._parseSync({data:a,path:r.path,parent:r});return l.status==="aborted"?ge:l.status==="dirty"||n.value==="dirty"?xl(l.value):l}}if(s.type==="refinement"){const a=l=>{const c=s.refinement(l,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?ge:(l.status==="dirty"&&n.dirty(),a(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?ge:(l.status==="dirty"&&n.dirty(),a(l.value).then(()=>({status:n.value,value:l.value}))))}if(s.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!xo(a))return ge;const l=s.transform(a.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>xo(a)?Promise.resolve(s.transform(a.value,i)).then(l=>({status:n.value,value:l})):ge);Pe.assertNever(s)}}bo.create=(t,e,n)=>new bo({schema:t,typeName:ye.ZodEffects,effect:e,..._e(n)});bo.createWithPreprocess=(t,e,n)=>new bo({schema:e,effect:{type:"preprocess",transform:t},typeName:ye.ZodEffects,..._e(n)});class Ws extends Re{_parse(e){return this._getType(e)===ee.undefined?Bn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ws.create=(t,e)=>new Ws({innerType:t,typeName:ye.ZodOptional,..._e(e)});class ko extends Re{_parse(e){return this._getType(e)===ee.null?Bn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ko.create=(t,e)=>new ko({innerType:t,typeName:ye.ZodNullable,..._e(e)});class _g extends Re{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===ee.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}_g.create=(t,e)=>new _g({innerType:t,typeName:ye.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._e(e)});class jg extends Re{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Gd(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ns(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ns(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}jg.create=(t,e)=>new jg({innerType:t,typeName:ye.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._e(e)});class fk extends Re{_parse(e){if(this._getType(e)!==ee.nan){const r=this._getOrReturnCtx(e);return q(r,{code:F.invalid_type,expected:ee.nan,received:r.parsedType}),ge}
357return{status:"valid",value:e.data}}}fk.create=t=>new fk({typeName:ye.ZodNaN,..._e(t)});class hB extends Re{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Uv extends Re{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ge:i.status==="dirty"?(n.dirty(),xl(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ge:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Uv({in:e,out:n,typeName:ye.ZodPipeline})}}class Sg extends Re{_parse(e){const n=this._def.innerType._parse(e),r=s=>(xo(s)&&(s.value=Object.freeze(s.value)),s);return Gd(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Sg.create=(t,e)=>new Sg({innerType:t,typeName:ye.ZodReadonly,..._e(e)});it.lazycreate;var ye;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ye||(ye={}));const Da=Os.create;Xs.create;Ar.create;const oN=it.create;it.strictCreate;Yd.create;Zd.create;Zi.create;wo.create;Qd.create;Ws.create;ko.create;var fB="Label",lN=g.forwardRef((t,e)=>o.jsx(Ce.label,{...t,ref:e,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));lN.displayName=fB;var cN=lN;const mB=Iy("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Nt=g.forwardRef(({className:t,...e},n)=>o.jsx(cN,{ref:n,className:Ve(mB(),t),...e}));Nt.displayName=cN.displayName;const pB=oN({full_name:Da().trim().min(2,"Add meg a teljes neved").max(120),email:Da().trim().email("Ãrvénytelen email cÃm").max(255),phone:Da().trim().max(40).optional(),billing_address:Da().trim().min(5,"Add meg a számlázási cÃmet").max(500)}),gB={full_name:"",email:"",phone:"",billing_address:""},mk=()=>{var X,ue;const{slug:t}=Nh(),e=Mv(t),n=g.useMemo(()=>e?e.sessions&&e.sessions.length>0?e.sessions:[{dateLabel:e.dateLabel,timeLabel:e.timeLabel}]:[],[e]),[r,s]=g.useState(gB),[i,a]=g.useState({}),[l,c]=g.useState(!1),u=Ir(),d=(X=u.state)==null?void 0:X.session_date_label,[h,f]=g.useState(()=>{if(n.length===1)return 0;if(d){const U=n.findIndex(se=>se.dateLabel===d);if(U>=0)return U}return null}),[m,w]=g.useState(null),p=(e==null?void 0:e.pricing.kind)==="tiered"?e.pricing.tiers:[],b=(ue=u.state)==null?void 0:ue.tier_id,[x,y]=g.useState(()=>p.length===0?null:b&&p.some(U=>U.id===b)?b:null),[v,k]=g.useState(null),_=p.find(U=>U.id===x)||null,[j,E]=g.useState(""),[S,A]=g.useState(!1),[z,C]=g.useState(null),{toast:L}=na(),P=Ao(),O=h!==null?n[h]:null,Z=e&&O?Wd(e,O):null,W=e?$v(e):null,H=(_==null?void 0:_.amountHuf)??(Z==null?void 0:Z.amountHuf)??(W==null?void 0:W.amountHuf)??0,R=z&&z.valid?z.final_amount_huf:H;if(g.useEffect(()=>{var se;if(!e)return;const U=(se=u.state)==null?void 0:se.coupon_code;!U||z||j||(E(U),(async()=>{A(!0);try{const{data:D,error:ne}=await $t.functions.invoke("validate-coupon",{body:{code:U,workshop_slug:e.slug,base_amount_huf:H}});if(ne)throw new Error(ne.message);D!=null&&D.valid&&C({valid:!0,code:D.code,discount_huf:D.discount_huf,final_amount_huf:D.final_amount_huf})}catch{}finally{A(!1)}})())},[e==null?void 0:e.slug]),g.useEffect(()=>{!(z!=null&&z.valid)||!e||(async()=>{try{const{data:U}=await $t.functions.invoke("validate-coupon",{body:{code:z.code,workshop_slug:e.slug,base_amount_huf:H}});U!=null&&U.valid&&C({valid:!0,code:U.code,discount_huf:U.discount_huf,final_amount_huf:U.final_amount_huf})}catch{}})()},[H]),!e)return o.jsx(Ch,{to:"/workshopok",replace:!0});const I=U=>se=>{s(D=>({...D,[U]:se.target.value}))},V=async()=>{const U=j.trim();if(U){A(!0),C(null);try{const{data:se,error:D}=await $t.functions.invoke("validate-coupon",{body:{code:U,workshop_slug:e.slug,base_amount_huf:H}});if(D)throw new Error(D.message);se!=null&&se.valid?(C({valid:!0,code:se.code,discount_huf:se.discount_huf,final_amount_huf:se.final_amount_huf}),L({title:"Kupon beváltva",description:`-${We(se.discount_huf)} kedvezmény`})):C({valid:!1,error:(se==null?void 0:se.error)||"Ãrvénytelen kupon"})}catch(se){const D=se instanceof Error?se.message:"Ismeretlen hiba";C({valid:!1,error:D})}finally{A(!1)}}},G=()=>{E(""),C(null)},te=async U=>{if(U.preventDefault(),h===null||!O){w("Kérlek válaszd ki, melyik idÅpontra jelentkezel");return}if(w(null),p.length>0&&!_){k("Kérlek válassz jegytÃpust");return}k(null);const se=pB.safeParse(r);if(!se.success){const ne={};for(const[ze,be]of Object.entries(se.error.flatten().fieldErrors))be&&be[0]&&(ne[ze]=be[0]);a(ne);return}a({}),c(!0);const D=`${O.dateLabel} â ${O.timeLabel}`;try{const{data:ne,error:ze}=await $t.functions.invoke("register-workshop",{body:{...se.data,workshop_slug:e.slug,session_label:D,tier_id:_==null?void 0:_.id,coupon_code:z&&z.valid?z.code:void 0}});if(ze||!(ne!=null&&ne.transfer_reference))throw new Error((ze==null?void 0:ze.message)||"Nem sikerült rögzÃteni a jelentkezést");P(`/workshopok/${e.slug}/utalasi-adatok`,{state:{transfer_reference:ne.transfer_reference,amount_huf:ne.amount_huf,payment_deadline:ne.payment_deadline,full_name:ne.full_name,email:ne.email,is_early_bird:ne.is_early_bird,coupon_code:ne.coupon_code,discount_huf:ne.discount_huf,original_amount_huf:ne.original_amount_huf,workshop_slug:e.slug,session_label:D}})}catch(ne){const ze=ne instanceof Error?ne.message:"Ismeretlen hiba";L({title:"Hiba történt",description:ze,variant:"destructive"})}finally{c(!1)}};return o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsx(ve,{to:`/workshopok/${e.slug}`,className:"text-sm font-sans text-muted-foreground hover:text-primary mb-6 inline-block",children:"â Vissza a workshop oldalra"}),o.jsx("h1",{className:"text-3xl md:text-4xl font-display text-foreground mb-2",children:"Jelentkezés"}),o.jsx("p",{className:"text-muted-foreground font-sans mb-8",children:e.title}),o.jsx("div",{className:"bg-primary/5 border-l-4 border-primary p-4 mb-6 text-sm font-sans text-foreground
357/85 leading-relaxed",children:"A jelentkezés után a következÅ oldalon megjelennek a banki utalás adatai (számlaszám, összeg, közlemény). A helyed akkor véglegesedik, amikor megérkezik a befizetés."}),o.jsxs("form",{onSubmit:te,className:"space-y-5 bg-secondary p-6 md:p-8 shadow-card",children:[o.jsxs("div",{children:[o.jsxs(Nt,{className:"flex items-center gap-2 mb-3",children:[o.jsx(Gi,{className:"w-4 h-4 text-primary"}),n.length>1?"Válassz idÅpontot *":"IdÅpont"]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:n.map((U,se)=>{const D=Wd(e,U),ne=h===se;return o.jsxs("button",{type:"button",onClick:()=>{f(se),w(null)},className:Ve("text-left p-4 border-2 transition-colors",ne?"border-primary bg-primary/5":"border-border bg-background hover:border-primary/40"),children:[o.jsxs("div",{className:"flex items-start justify-between gap-2",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-display text-lg text-foreground leading-tight",children:U.dateLabel}),o.jsx("p",{className:"font-sans text-sm text-foreground/70",children:U.timeLabel})]}),o.jsx("span",{className:Ve("w-4 h-4 border-2 mt-1 shrink-0",ne?"border-primary bg-primary":"border-muted-foreground/40")})]}),D&&o.jsxs("div",{className:"mt-3 pt-3 border-t border-border/60",children:[o.jsx("p",{className:"font-display text-base text-foreground",children:We(D.amountHuf)}),D.isEarlyBird&&D.deadline?o.jsxs("p",{className:"text-[10px] tracking-widest uppercase text-primary/80 font-sans mt-1 flex items-center gap-1",children:[o.jsx(Lc,{className:"w-3 h-3"}),"Early bird · ",Fv(D.deadline),"-ig"]}):o.jsx("p",{className:"text-[10px] tracking-widest uppercase text-muted-foreground font-sans mt-1",children:"Részvételi dÃj"})]})]},`${U.dateLabel}-${se}`)})}),m&&o.jsx("p",{className:"text-xs text-destructive mt-2",children:m})]}),p.length>0&&o.jsxs("div",{children:[o.jsx(Nt,{className:"mb-3 block",children:"Válassz jegytÃpust *"}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:p.map(U=>{const se=x===U.id;return o.jsxs("button",{type:"button",onClick:()=>{y(U.id),k(null)},className:Ve("text-left p-4 border-2 transition-colors flex flex-col",se?"border-primary bg-primary/5":"border-border bg-background hover:border-primary/40"),children:[o.jsxs("div",{className:"flex items-start justify-between gap-2 mb-3",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-display text-lg text-foreground leading-tight",children:U.name}),o.jsx("p",{className:"font-display text-base text-primary mt-1",children:We(U.amountHuf)})]}),o.jsx("span",{className:Ve("w-4 h-4 border-2 mt-1 shrink-0",se?"border-primary bg-primary":"border-muted-foreground/40")})]}),o.jsx("ul",{className:"space-y-1.5",children:U.includes.map(D=>o.jsxs("li",{className:"text-xs font-sans text-foreground/70 leading-snug",children:["· ",D]},D))})]},U.id)})}),v&&o.jsx("p",{className:"text-xs text-destructive mt-2",children:v})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"full_name",children:"Teljes név *"}),o.jsx(yt,{id:"full_name",value:r.full_name,onChange:I("full_name"),required:!0,maxLength:120,className:"mt-1"}),i.full_name&&o.jsx("p",{className:"text-xs text-destructive mt-1",children:i.full_name})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"email",children:"Email cÃm *"}),o.jsx(yt,{id:"email",type:"email",value:r.email,onChange:I("email"),required:!0,maxLength:255,className:"mt-1"}),i.email&&o.jsx("p",{className:"text-xs text-destructive mt-1",children:i.email})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"billing_address",children:"Számlázási cÃm *"}),o.jsx(yt,{id:"billing_address",value:r.billing_address,onChange:I("billing_address"),required:!0,maxLength:500,placeholder:"Pl. 1011 Budapest, Példa utca 1.",className:"mt-1"}),i.billing_address&&o.jsx("p",{className:"text-xs text-destructive mt-1",children:i.billing_address})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"phone",children:"Telefonszám (nem kötelezÅ)"}),o.jsx(yt,{id:"phone",type:"tel",value:r.phone,onChange:I("phone"),maxLength:40,className:"mt-1"})]}),o.jsxs("div",{className:"border-t border-border pt-5",children:[o.jsx(Nt,{htmlFor:"coupon",children:"Kuponkód (nem kötelezÅ)"}),z&&z.valid?o.jsxs("div",{className:"mt-1 flex items-center justify-between gap-2 bg-primary/10 border border-primary/30 p-3",children:[o.jsxs("div",{className:"text-sm font-sans",children:[o.jsx("strong",{className:"text-primary",children:z.code})," ","beváltva â kedvezmény: â",We(z.discount_huf)]}),o.jsx("button",{type:"button",onClick:G,className:"text-xs text-muted-foreground hover:text-destructive font-sans",children:"EltávolÃtás"})]}):o.jsxs("div",{className:"mt-1 flex gap-2",children:[o.jsx(yt,{id:"coupon",value:j,onChange:U=>E(U.target.value.toUpperCase()),maxLength:64,placeholder:"pl. TM20",className:"flex-1"}),o.jsx(le,{type:"button",variant:"outline",onClick:V,disabled:S||!j.trim(),children:S?"EllenÅrzésâ¦":"Beváltás"})]}),z&&z.valid===!1&&o.jsx("p",{className:"text-xs text-destructive mt-1",children:z.error})]}),o.jsxs("div",{className:"bg-background p-4 border border-border",children:[O&&o.jsxs("div",{className:"flex justify-between text-xs font-sans text-muted-foreground mb-2 pb-2 border-b border-border",children:[o.jsx("span",{children:"Választott idÅpont"}),o.jsxs("span",{className:"text-foreground",children:[O.dateLabel," · ",O.timeLabel]})]}),o.jsxs("div",{className:"flex justify-between text-sm font-sans text-foreground
357/80",children:[o.jsx("span",{children:"Részvételi dÃj"}),o.jsx("span",{className:z!=null&&z.valid?"line-through text-muted-foreground":"",children:We(H)})]}),(z==null?void 0:z.valid)&&o.jsxs("div",{className:"flex justify-between text-sm font-sans text-primary mt-1",children:[o.jsxs("span",{children:["Kedvezmény (",z.code,")"]}),o.jsxs("span",{children:["â",We(z.discount_huf)]})]}),o.jsxs("div",{className:"flex justify-between text-lg font-display text-foreground mt-2 pt-2 border-t border-border",children:[o.jsx("span",{children:"FizetendÅ"}),o.jsx("strong",{children:We(R)})]})]}),o.jsx(le,{type:"submit",size:"lg",className:"w-full",disabled:l,children:l?"Folyamatban...":"Jelentkezem"}),o.jsx("p",{className:"text-xs text-muted-foreground font-sans",children:'A "Jelentkezem" gombra kattintva elfogadod, hogy adataidat a jelentkezés és számlázás céljából kezeljük.'})]})]})})})},im="11773047-00162663",am="Kimmel Hajnalka",pk=t=>`${t.toLocaleString("hu-HU")} Ft`,gk=t=>{const[e,n,r]=t.split("-");return`${e}. ${n}. ${r}.`},yB=({value:t,label:e})=>{const[n,r]=g.useState(!1),{toast:s}=na(),i=async()=>{try{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1500)}catch{s({title:"Nem sikerült másolni",variant:"destructive"})}};return o.jsx("button",{type:"button",onClick:i,className:"inline-flex items-center gap-1.5 text-xs font-sans text-primary hover:text-primary/80 transition-colors","aria-label":`${e} másolása`,children:n?o.jsxs(o.Fragment,{children:[o.jsx(an,{className:"w-3.5 h-3.5"})," Másolva"]}):o.jsxs(o.Fragment,{children:[o.jsx(nP,{className:"w-3.5 h-3.5"})," Másol"]})})},cl=({label:t,value:e,copy:n,highlight:r})=>o.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-0",children:[o.jsx("div",{className:"text-sm font-sans text-muted-foreground shrink-0 pt-0.5",children:t}),o.jsxs("div",{className:"text-right",children:[o.jsx("div",{className:r?"font-display text-foreground text-lg break-all":"font-sans text-foreground break-all",children:e}),n!==void 0&&o.jsx("div",{className:"mt-0.5",children:o.jsx(yB,{value:n,label:t})})]})]}),om=()=>{const t=Ir(),e=Nh(),n=t.state||null;if(!n)return o.jsx(Ch,{to:"/workshopok",replace:!0});const r=e.slug||n.workshop_slug,s=Mv(r),i=(s==null?void 0:s.title)||"Workshop",a=s?`${s.dateLabel} ${s.timeLabel}`:"",{transfer_reference:l,amount_huf:c,payment_deadline:u,full_name:d,email:h}=n,f=encodeURIComponent(`Workshop jelentkezés â utalási adatok (${l})`),m=encodeURIComponent(`Szia ${d}! 358 359Köszönöm a jelentkezésedet a "${i}" workshopra. 360IdÅpont: ${a} 361 362Kérlek, a részvételi dÃjat banki átutalással küldd el az alábbi adatokra: 363 364Kedvezményezett: ${am} 365Számlaszám: ${im} 366Ãsszeg: ${pk(c)} 367Közlemény (FONTOS!): ${l} 368Fizetési határidÅ: ${gk(u)} 369 370A közleményben mindenképp tüntesd fel a fenti azonosÃtót, hogy be tudjam azonosÃtani a befizetésedet. Amint megérkezik az utalás, küldök visszaigazolást és a workshop linkjét. 371 372Ãdv, 373Kimmel Hajnalka`),w=`mailto:${h}?subject=${f}&body=${m}`;return o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background min-h-[70vh]",children:o.jsxs("div",{className:"container max-w-2xl",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx(tP,{className:"w-14 h-14 text-primary mx-auto mb-4"}),o.jsx("h1",{className:"text-3xl md:text-4xl font-display text-foreground mb-3",children:"Köszönjük a jelentkezést!"}),s&&o.jsxs("p",{className:"font-sans text-foreground/70 text-sm mb-2",children:[i," · ",a]}),o.jsx("p",{className:"text-foreground/80 font-sans leading-relaxed",children:"A helyed akkor véglegesedik, amikor a részvételi dÃj megérkezik a megadott bankszámlára. Kérlek, az alábbi adatokkal utald át az összeget a határidÅig."})]}),o.jsxs("div",{className:"bg-secondary p-6 md:p-8 shadow-card mb-6",children:[o.jsx("h2",{className:"text-xl font-display text-foreground mb-4",children:"Utalási adatok"}),o.jsx(cl,{label:"Kedvezményezett",value:am,copy:am}),o.jsx(cl,{label:"Számlaszám",value:im,copy:im}),o.jsx(cl,{label:"Ãsszeg",value:pk(c),copy:String(c),highlight:!0}),o.jsx(cl,{label:"Közlemény",value:l,copy:l,highlight:!0}),o.jsx(cl,{label:"Fizetési határidÅ",value:gk(u)})]}),o.jsxs("div",{className:"bg-primary/5 border-l-4 border-primary p-4 mb-6 text-sm font-sans text-foreground
373/85 leading-relaxed",children:[o.jsx("strong",{children:"Fontos:"})," a közlemény mezÅbe mindenképp Ãrd be a fenti azonosÃtót (",o.jsx("code",{className:"font-mono",children:l}),"), hogy be tudjuk azonosÃtani a befizetésedet. Amint megérkezik az átutalás, emailben küldünk visszaigazolást és a workshop belépési linkjét."]}),o.jsxs("div",{className:"bg-background border border-border p-5 mb-6",children:[o.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[o.jsx(rc,{className:"w-5 h-5 text-primary mt-0.5 shrink-0"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-sans text-foreground text-sm font-medium mb-1",children:"Küldd el magadnak emailben"}),o.jsxs("p",{className:"text-xs text-muted-foreground font-sans",children:["Megnyitja az email kliensedet az utalási adatokkal elÅkitöltve. A levél a saját cÃmedre megy: ",h]})]})]}),o.jsx(le,{asChild:!0,variant:"outline",className:"w-full sm:w-auto",children:o.jsx("a",{href:w,children:"Email megnyitása"})})]}),o.jsx("div",{className:"text-center",children:o.jsx(le,{asChild:!0,children:o.jsx(ve,{to:"/",children:"Vissza a kezdÅlapra"})})})]})})})};function yk(t,[e,n]){return Math.min(n,Math.max(e,t))}var vB=g.createContext(void 0);function Vv(t){const e=g.useContext(vB);return t||e||"ltr"}var lm=0;function xB(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??vk()),document.body.insertAdjacentElement("beforeend",t[1]??vk()),lm++,()=>{lm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),lm--}},[])}function vk(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var cm="focusScope.autoFocusOnMount",um="focusScope.autoFocusOnUnmount",xk={bubbles:!1,cancelable:!0},wB="FocusScope",uN=g.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,c]=g.useState(null),u=Un(s),d=Un(i),h=g.useRef(null),f=nt(e,p=>c(p)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let p=function(v){if(m.paused||!l)return;const k=v.target;l.contains(k)?h.current=k:ms(h.current,{select:!0})},b=function(v){if(m.paused||!l)return;const k=v.relatedTarget;k!==null&&(l.contains(k)||ms(h.current,{select:!0}))},x=function(v){if(document.activeElement===document.body)for(const _ of v)_.removedNodes.length>0&&ms(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const y=new MutationObserver(x);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),y.disconnect()}}},[r,l,m.paused]),g.useEffect(()=>{if(l){bk.add(m);const p=document.activeElement;if(!l.contains(p)){const x=new CustomEvent(cm,xk);l.addEventListener(cm,u),l.dispatchEvent(x),x.defaultPrevented||(bB(EB(dN(l)),{select:!0}),document.activeElement===p&&ms(l))}return()=>{l.removeEventListener(cm,u),setTimeout(()=>{const x=new CustomEvent(um,xk);l.addEventListener(um,d),l.dispatchEvent(x),x.defaultPrevented||ms(p??document.body,{select:!0}),l.removeEventListener(um,d),bk.remove(m)},0)}}},[l,u,d,m]);const w=g.useCallback(p=>{if(!n&&!r||m.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(b&&x){const y=p.currentTarget,[v,k]=kB(y);v&&k?!p.shiftKey&&x===k?(p.preventDefault(),n&&ms(v,{select:!0})):p.shiftKey&&x===v&&(p.preventDefault(),n&&ms(k,{select:!0})):x===y&&p.preventDefault()}},[n,r,m.paused]);return o.jsx(Ce.div,{tabIndex:-1,...a,ref:f,onKeyDown:w})});uN.displayName=wB;function bB(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ms(r,{select:e}),document.activeElement!==n)return}function kB(t){const e=dN(t),n=wk(e,t),r=wk(e.reverse(),t);return[n,r]}function dN(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function wk(t,e){for(const n of t)if(!_B(n,{upTo:e}))return n}function _B(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function jB(t){return t instanceof HTMLInputElement&&"select"in t}function ms(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&jB(t)&&e&&t.select()}}var bk=SB();function SB(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=kk(t,e),t.unshift(e)},remove(e){var n;t=kk(t,e),(n=t[0])==null||n.resume()}}}function kk(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function EB(t){return t.filter(e=>e.tagName!=="A")}function TB(t){const e=g.useRef({value:t,previous:t});return g.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var NB=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},fa=new WeakMap,zu=new WeakMap,Au={},dm=0,hN=function(t){return t&&(t.host||hN(t.parentNode))},CB=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=hN(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},zB=function(t,e,n,r){var s=CB(e,Array.isArray(t)?t:[t]);Au[n]||(Au[n]=new WeakMap);var i=Au[n],a=[],l=new Set,c=new Set(s),u=function(h){!h||l.has(h
vendor: 5,746 bytes, lines 373-388
373)||(l.add(h),u(h.parentNode))};s.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))d(f);else try{var m=f.getAttribute(r),w=m!==null&&m!=="false",p=(fa.get(f)||0)+1,b=(i.get(f)||0)+1;fa.set(f,p),i.set(f,b),a.push(f),p===1&&w&&zu.set(f,!0),b===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return d(e),l.clear(),dm++,function(){a.forEach(function(h){var f=fa.get(h)-1,m=i.get(h)-1;fa.set(h,f),i.set(h,m),f||(zu.has(h)||h.removeAttribute(r),zu.delete(h)),m||h.removeAttribute(n)}),dm--,dm||(fa=new WeakMap,fa=new WeakMap,zu=new WeakMap,Au={})}},AB=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),s=NB(t);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),zB(r,s,n,"aria-hidden")):function(){return null}},td="right-scroll-bar-position",nd="width-before-scroll-bar",RB="with-scroll-bars-hidden",PB="--removed-body-scroll-bar-size";function hm(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function OB(t,e){var n=g.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=e,n.facade}var IB=typeof window<"u"?g.useLayoutEffect:g.useEffect,_k=new WeakMap;function LB(t,e){var n=OB(null,function(r){return t.forEach(function(s){return hm(s,r)})});return IB(function(){var r=_k.get(n);if(r){var s=new Set(r),i=new Set(t),a=n.current;s.forEach(function(l){i.has(l)||hm(l,null)}),i.forEach(function(l){s.has(l)||hm(l,a)})}_k.set(n,t)},[t]),n}function DB(t){return t}function MB(t,e){e===void 0&&(e=DB);var n=[],r=!1,s={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]:t},useMedium:function(i){var a=e(i,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(i),a=n}var c=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return s}function $B(t){t===void 0&&(t={});var e=MB(null);return e.options=jr({async:!0,ssr:!1},t),e}var fN=function(t){var e=t.sideCar,n=Io(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,jr({},n))};fN.isSideCarExport=!0;function FB(t,e){return t.useMedium(e),fN}var mN=$B(),fm=function(){},Mh=g.forwardRef(function(t,e){var n=g.useRef(null),r=g.useState({onScrollCapture:fm,onWheelCapture:fm,onTouchMoveCapture:fm}),s=r[0],i=r[1],a=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,f=t.sideCar,m=t.noRelative,w=t.noIsolation,p=t.inert,b=t.allowPinchZoom,x=t.as,y=x===void 0?"div":x,v=t.gapMode,k=Io(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,j=LB([n,e]),E=jr(jr({},k),s);return g.createElement(g.Fragment,null,d&&g.createElement(_,{sideCar:mN,removeScrollBar:u,shards:h,noRelative:m,noIsolation:w,inert:p,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:v}),a?g.cloneElement(g.Children.only(l),jr(jr({},E),{ref:j})):g.createElement(y,jr({},E,{className:c,ref:j}),l))});Mh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mh.classNames={fullWidth:nd,zeroRight:td};var UB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VB(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=UB();return e&&t.setAttribute("nonce",e),t}function BB(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function HB(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var WB=function(){var t=0,e=null;return{add:function(n){t==0&&(e=VB())&&(BB(e,n),HB(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},KB=function(){var t=WB();return function(e,n){g.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},pN=function(){var t=KB(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},GB={left:0,top:0,right:0,gap:0},mm=function(t){return parseInt(t||"",10)||0},qB=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[mm(n),mm(r),mm(s)]},YB=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return GB;var e=qB(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},ZB=pN(),qa="data-scroll-locked",QB=function(t,e,n,r){var s=t.left,i=t.top,a=t.right,l=t.gap;return n===void 0&&(n="margin"),` 374 .`.concat(RB,` { 375 overflow: hidden `).concat(r,`; 376 padding-right: `).concat(l,"px ").concat(r,`; 377 } 378 body[`).concat(qa,`] { 379 overflow: hidden `).concat(r,`; 380 overscroll-behavior: contain; 381 `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&` 382 padding-left: `.concat(s,`px; 383 padding-top: `).concat(i,`px; 384 padding-right: `).concat(a,`px; 385 margin-left:0; 386 margin-top:0; 387 margin-right: `).concat(l,"px ").concat(r,`; 388 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
388")].filter(Boolean).join(""),` 389 } 390 391 .`).concat(td,` { 392 right: `).concat(l,"px ").concat(r,`; 393 } 394 395 .`).concat(nd,` { 396 margin-right: `).concat(l,"px ").concat(r,`; 397 } 398 399 .`).concat(td," .").concat(td,` { 400 right: 0 `).concat(r,`; 401 } 402 403 .`).concat(nd," .").concat(nd,` { 404 margin-right: 0 `).concat(r,`; 405 } 406 407 body[`).concat(qa,`] { 408 `).concat(PB,": ").concat(l,`px; 409 } 410`)},jk=function(){var t=parseInt(document.body.getAttribute(qa)||"0",10);return isFinite(t)?t:0},JB=function(){g.useEffect(function(){return document.body.setAttribute(qa,(jk()+1).toString()),function(){var t=jk()-1;t<=0?document.body.removeAttribute(qa):document.body.setAttribute(qa,t.toString())}},[])},XB=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;JB();var i=g.useMemo(function(){return YB(s)},[s]);return g.createElement(ZB,{styles:QB(i,!e,s,n?"":"!important")})},Eg=!1;if(typeof window<"u")try{var Ru=Object.defineProperty({},"passive",{get:function(){return Eg=!0,!0}});window.addEventListener("test",Ru,Ru),window.removeEventListener("test",Ru,Ru)}catch{Eg=!1}var ma=Eg?{passive:!1}:!1,e6=function(t){return t.tagName==="TEXTAREA"},gN=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!e6(t)&&n[e]==="visible")},t6=function(t){return gN(t,"overflowY")},n6=function(t){return gN(t,"overflowX")},Sk=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=yN(t,r);if(s){var i=vN(t,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},r6=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},s6=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},yN=function(t,e){return t==="v"?t6(e):n6(e)},vN=function(t,e){return t==="v"?r6(e):s6(e)},i6=function(t,e){return t==="h"&&e==="rtl"?-1:1},a6=function(t,e,n,r,s){var i=i6(t,window.getComputedStyle(e).direction),a=i*r,l=n.target,c=e.contains(l),u=!1,d=a>0,h=0,f=0;do{if(!l)break;var m=vN(t,l),w=m[0],p=m[1],b=m[2],x=p-b-i*w;(w||x)&&yN(t,l)&&(h+=x,f+=w);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(f)<1||!s))&&(u=!0),u},Pu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Ek=function(t){return[t.deltaX,t.deltaY]},Tk=function(t){return t&&"current"in t?t.current:t},o6=function(t,e){return t[0]===e[0]&&t[1]===e[1]},l6=function(t){return` 411 .block-interactivity-`.concat(t,` {pointer-events: none;} 412 .allow-interactivity-`).concat(t,` {pointer-events: all;} 413`)},c6=0,pa=[];function u6(t){var e=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),s=g.useState(c6++)[0],i=g.useState(pN)[0],a=g.useRef(t);g.useEffect(function(){a.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var p=n3([t.lockRef.current],(t.shards||[]).map(Tk),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=g.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var x=Pu(p),y=n.current,v="deltaX"in p?p.deltaX:y[0]-x[0],k="deltaY"in p?p.deltaY:y[1]-x[1],_,j=p.target,E=Math.abs(v)>Math.abs(k)?"h":"v";if("touches"in p&&E==="h"&&j.type==="range")return!1;var S=Sk(E,j);if(!S)return!0;if(S?_=E:(_=E==="v"?"h":"v",S=Sk(E,j)),!S)return!1;if(!r.current&&"changedTouches"in p&&(v||k)&&(r.current=_),!_)return!0;var A=r.current||_;return a6(A,b,p,A==="h"?v:k,!0)},[]),c=g.useCallback(function(p){var b=p;if(!(!pa.length||pa[pa.length-1]!==i)){var x="deltaY"in b?Ek(b):Pu(b),y=e.current.filter(function(_){return _.name===b.type&&(_.target===b.target||b.target===_.shadowParent)&&o6(_.delta,x)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}
vendor: 5,592 bytes, line 413
413if(!y){var v=(a.current.shards||[]).map(Tk).filter(Boolean).filter(function(_){return _.contains(b.target)}),k=v.length>0?l(b,v[0]):!a.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),u=g.useCallback(function(p,b,x,y){var v={name:p,delta:b,target:x,should:y,shadowParent:d6(x)};e.current.push(v),setTimeout(function(){e.current=e.current.filter(function(k){return k!==v})},1)},[]),d=g.useCallback(function(p){n.current=Pu(p),r.current=void 0},[]),h=g.useCallback(function(p){u(p.type,Ek(p),p.target,l(p,t.lockRef.current))},[]),f=g.useCallback(function(p){u(p.type,Pu(p),p.target,l(p,t.lockRef.current))},[]);g.useEffect(function(){return pa.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,ma),document.addEventListener("touchmove",c,ma),document.addEventListener("touchstart",d,ma),function(){pa=pa.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,ma),document.removeEventListener("touchmove",c,ma),document.removeEventListener("touchstart",d,ma)}},[]);var m=t.removeScrollBar,w=t.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:l6(s)}):null,m?g.createElement(XB,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function d6(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const h6=FB(mN,u6);var xN=g.forwardRef(function(t,e){return g.createElement(Mh,jr({},t,{ref:e,sideCar:h6}))});xN.classNames=Mh.classNames;var f6=[" ","Enter","ArrowUp","ArrowDown"],m6=[" ","Enter"],Qi="Select",[$h,Fh,p6]=zy(Qi),[Do,T8]=ra(Qi,[p6,jh]),Uh=jh(),[g6,ii]=Do(Qi),[y6,v6]=Do(Qi),wN=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:s,onOpenChange:i,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:m,form:w}=t,p=Uh(e),[b,x]=g.useState(null),[y,v]=g.useState(null),[k,_]=g.useState(!1),j=Vv(u),[E,S]=tc({prop:r,defaultProp:s??!1,onChange:i,caller:Qi}),[A,z]=tc({prop:a,defaultProp:l,onChange:c,caller:Qi}),C=g.useRef(null),L=b?w||!!b.closest("form"):!0,[P,O]=g.useState(new Set),Z=Array.from(P).map(W=>W.props.value).join(";");return o.jsx(qO,{...p,children:o.jsxs(g6,{required:m,scope:e,trigger:b,onTriggerChange:x,valueNode:y,onValueNodeChange:v,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:Dc(),value:A,onValueChange:z,open:E,onOpenChange:S,dir:j,triggerPointerDownPosRef:C,disabled:f,children:[o.jsx($h.Provider,{scope:e,children:o.jsx(y6,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(W=>{O(H=>new Set(H).add(W))},[]),onNativeOptionRemove:g.useCallback(W=>{O(H=>{const R=new Set(H);return R.delete(W),R})},[]),children:n})}),L?o.jsxs(HN,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:h,value:A,onChange:W=>z(W.target.value),disabled:f,form:w,children:[A===void 0?o.jsx("option",{value:""}):null,Array.from(P)]},Z):null]})})};wN.displayName=Qi;var bN="SelectTrigger",kN=g.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...s}=t,i=Uh(n),a=ii(bN,n),l=a.disabled||r,c=nt(e,a.onTriggerChange),u=Fh(n),d=g.useRef("touch"),[h,f,m]=KN(p=>{const b=u().filter(v=>!v.disabled),x=b.find(v=>v.value===a.value),y=GN(b,p,x);y!==void 0&&a.onValueChange(y.value)}),w=p=>{l||(a.onOpenChange(!0),m()),p&&(a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return o.jsx(hS,{asChild:!0,...i,children:o.jsx(Ce.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":WN(a.value)?"":void 0,...s,ref:c,onClick:pe(s.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&w(p)}),onPointerDown:pe(s.onPointerDown,p=>{d.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(w(p),p.preventDefault())}),onKeyDown:pe(s.onKeyDown,p=>{const b=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&f(p.key),!(b&&p.key===" ")&&f6.includes(p.key)&&(w(),p.preventDefault())})})})});kN.displayName=bN;var _N="SelectValue",jN=g.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:a="",...l}=t,c=ii(_N,n),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,h=nt(e,c.onValueNodeChange);return Rt(()=>{u(d)},[u,d]),o.jsx(Ce.span,{...l,ref:h,style:{pointerEvents:"none"},children:WN(c.value)?o.jsx(o.Fragment,{children:a}):i})});jN.displayName=_N;var x6="SelectIcon",SN=g.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...s}=t;return o.jsx(Ce.span,{"aria-hidden":!0,...s,ref:e,children:r||"â¼"})});SN.displayName=x6;var w6="SelectPortal",EN=t=>o.jsx(Ay,{asChild:!0,...t});EN.displayName=w6;var Ji="SelectContent",TN=g.forwardRef((t,e)=>{const n=ii(Ji,t.__scopeSelect),[r,s]=g.useState();if(Rt(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?ta.createPortal(o.jsx(NN,{scope:t.__scopeSelect,children:o.jsx($h.Slot,{scope:t.__scopeSelect,children:o.jsx("div",{children:t.children})})}),i):null}return o.jsx(CN,{...t,ref:e})});TN.displayName=Ji;var Xn=10,[NN,ai]=Do(Ji),b6="SelectContentImpl",k6=ec("SelectContent.RemoveScroll"),CN=g.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:w,hideWhenDetached:p,avoidCollisions:b,...x}=t,y=ii(Ji,n),[v,k]=g.useState(null),[_,j]=g.useState(null),E=nt(e,D=>
vendor: 14,171 bytes, line 413
413k(D)),[S,A]=g.useState(null),[z,C]=g.useState(null),L=Fh(n),[P,O]=g.useState(!1),Z=g.useRef(!1);g.useEffect(()=>{if(v)return AB(v)},[v]),xB();const W=g.useCallback(D=>{const[ne,...ze]=L().map(Ee=>Ee.ref.current),[be]=ze.slice(-1),je=document.activeElement;for(const Ee of D)if(Ee===je||(Ee==null||Ee.scrollIntoView({block:"nearest"}),Ee===ne&&_&&(_.scrollTop=0),Ee===be&&_&&(_.scrollTop=_.scrollHeight),Ee==null||Ee.focus(),document.activeElement!==je))return},[L,_]),H=g.useCallback(()=>W([S,v]),[W,S,v]);g.useEffect(()=>{P&&H()},[P,H]);const{onOpenChange:R,triggerPointerDownPosRef:I}=y;g.useEffect(()=>{if(v){let D={x:0,y:0};const ne=be=>{var je,Ee;D={x:Math.abs(Math.round(be.pageX)-(((je=I.current)==null?void 0:je.x)??0)),y:Math.abs(Math.round(be.pageY)-(((Ee=I.current)==null?void 0:Ee.y)??0))}},ze=be=>{D.x<=10&&D.y<=10?be.preventDefault():v.contains(be.target)||R(!1),document.removeEventListener("pointermove",ne),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",ze,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",ze,{capture:!0})}}},[v,R,I]),g.useEffect(()=>{const D=()=>R(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[R]);const[V,G]=KN(D=>{const ne=L().filter(je=>!je.disabled),ze=ne.find(je=>je.ref.current===document.activeElement),be=GN(ne,D,ze);be&&setTimeout(()=>be.ref.current.focus())}),te=g.useCallback((D,ne,ze)=>{const be=!Z.current&&!ze;(y.value!==void 0&&y.value===ne||be)&&(A(D),be&&(Z.current=!0))},[y.value]),X=g.useCallback(()=>v==null?void 0:v.focus(),[v]),ue=g.useCallback((D,ne,ze)=>{const be=!Z.current&&!ze;(y.value!==void 0&&y.value===ne||be)&&C(D)},[y.value]),U=r==="popper"?Tg:zN,se=U===Tg?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:w,hideWhenDetached:p,avoidCollisions:b}:{};return o.jsx(NN,{scope:n,content:v,viewport:_,onViewportChange:j,itemRefCallback:te,selectedItem:S,onItemLeave:X,itemTextRefCallback:ue,focusSelectedItem:H,selectedItemText:z,position:r,isPositioned:P,searchRef:V,children:o.jsx(xN,{as:k6,allowPinchZoom:!0,children:o.jsx(uN,{asChild:!0,trapped:y.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:pe(s,D=>{var ne;(ne=y.trigger)==null||ne.focus({preventScroll:!0}),D.preventDefault()}),children:o.jsx(ph,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:o.jsx(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:D=>D.preventDefault(),...x,...se,onPlaced:()=>O(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:pe(x.onKeyDown,D=>{const ne=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!ne&&D.key.length===1&&G(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let be=L().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(D.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const je=D.target,Ee=be.indexOf(je);be=be.slice(Ee+1)}setTimeout(()=>W(be)),D.preventDefault()}})})})})})})});CN.displayName=b6;var _6="SelectItemAlignedPosition",zN=g.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...s}=t,i=ii(Ji,n),a=ai(Ji,n),[l,c]=g.useState(null),[u,d]=g.useState(null),h=nt(e,E=>d(E)),f=Fh(n),m=g.useRef(!1),w=g.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=a,v=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&b&&x){const E=i.trigger.getBoundingClientRect(),S=u.getBoundingClientRect(),A=i.valueNode.getBoundingClientRect(),z=x.getBoundingClientRect();if(i.dir!=="rtl"){const je=z.left-S.left,Ee=A.left-je,Ze=E.left-Ee,bt=E.width+Ze,Ut=Math.max(bt,S.width),En=window.innerWidth-Xn,Hn=yk(Ee,[Xn,Math.max(Xn,En-Ut)]);l.style.minWidth=bt+"px",l.style.left=Hn+"px"}else{const je=S.right-z.right,Ee=window.innerWidth-A.right-je,Ze=window.innerWidth-E.right-Ee,bt=E.width+Ze,Ut=Math.max(bt,S.width),En=window.innerWidth-Xn,Hn=yk(Ee,[Xn,Math.max(Xn,En-Ut)]);l.style.minWidth=bt+"px",l.style.right=Hn+"px"}const C=f(),L=window.innerHeight-Xn*2,P=p.scrollHeight,O=window.getComputedStyle(u),Z=parseInt(O.borderTopWidth,10),W=parseInt(O.paddingTop,10),H=parseInt(O.borderBottomWidth,10),R=parseInt(O.paddingBottom,10),I=Z+W+P+R+H,V=Math.min(b.offsetHeight*5,I),G=window.getComputedStyle(p),te=parseInt(G.paddingTop,10),X=parseInt(G.paddingBottom,10),ue=E.top+E.height/2-Xn,U=L-ue,se=b.offsetHeight/2,D=b.offsetTop+se,ne=Z+W+D,ze=I-ne;if(ne<=ue){const je=C.length>0&&b===C[C.length-1].ref.current;l.style.bottom="0px";const Ee=u.clientHeight-p.offsetTop-p.offsetHeight,Ze=Math.max(U,se+(je?X:0)+Ee+H),bt=ne+Ze;l.style.height=bt+"px"}else{const je=C.length>0&&b===C[0].ref.current;l.style.top="0px";const Ze=Math.max(ue,Z+p.offsetTop+(je?te:0)+se)+ze;l.style.height=Ze+"px",p.scrollTop=ne-ue+p.offsetTop}l.style.margin=`${Xn}px 0`,l.style.minHeight=V+"px",l.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[f,i.trigger,i.valueNode,l,u,p,b,x,i.dir,r]);Rt(()=>v(),[v]);const[k,_]=g.useState();Rt(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const j=g.useCallback(E=>{E&&w.current===!0&&(v(),y==null||y(),w.current=!1)},[v,y]);return o.jsx(S6,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:j,children:o.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:o.jsx(Ce.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});zN.displayName=_6;var j6="SelectPopperPosition",Tg=g.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=Xn,...i}=t,a=Uh(n);return o.jsx(fS,{...a,...i,ref:e,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.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)"}})});Tg.displayName=j6;var[S6,Bv]=Do(Ji,{}),Ng="SelectViewport",AN=g.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...s}=t,i=ai(Ng,n),a=Bv(Ng,n),l=nt(e,i.onViewportChange),c=g.useRef(0);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),o.jsx($h.Slot,{scope:n,children:o.jsx(Ce.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:pe(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=a;if(f!=null&&f.current&&h){const m=Math.abs(c.current-d.scrollTop);if(m>0){const w=window.innerHeight-Xn*2,p=parseFloat(h.style.minHeight),b=parseFloat(h.style.height),x=Math.max(p,b);if(x<w){const y=x+m,v=Math.min(w,y),k=y-v;h.style.height=v+"px",h.style.bottom==="0px"&&(d.scrollTop=k>0?k:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});AN.displayName=Ng;var RN="SelectGroup",[E6,T6]=Do(RN),N6=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,s=Dc();return o.jsx(E6,{scope:n,id:s,children:o.jsx(Ce.div,{role:"group","aria-labelledby":s,...r,ref:e})})});N6.displayName=RN;var PN="SelectLabel",ON=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,s=T6(PN,n);return o.jsx(Ce.div,{id:s.id,...r,ref:e})});ON.displayName=PN;var Jd="SelectItem",[C6,IN]=Do(Jd),LN=g.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...a}=t,l=ii(Jd,n),c=ai(Jd,n),u=l.value===r,[d,h]=g.useState(i??""),[f,m]=g.useState(!1),w=nt(e,y=>{var v;return(v=c.itemRefCallback)==null?void 0:v.call(c,y,r,s)}),p=Dc(),b=g.useRef("touch"),x=()=>{s||(l.onValueChange(r),l.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 o.jsx(C6,{scope:n,value:r,disabled:s,textId:p,isSelected:u,onItemTextChange:g.useCallback(y=>{h(v=>v||((y==null?void 0:y.textContent)??"").trim())},[]),children:o.jsx($h.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:o.jsx(Ce.div,{role:"option","aria-labelledby":p,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:w,onFocus:pe(a.onFocus,()=>m(!0)),onBlur:pe(a.onBlur,()=>m(!1)),onClick:pe(a.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:pe(a.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:pe(a.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:pe(a.onPointerMove,y=>{var v;b.current=y.pointerType,s?(v=c.onItemLeave)==null||v.call(c):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(a.onPointerLeave,y=>{var v;y.currentTarget===document.activeElement&&((v=c.onItemLeave)==null||v.call(c))}),onKeyDown:pe(a.onKeyDown,y=>{var k;((k=c.searchRef)==null?void 0:k.current)!==""&&y.key===" "||(m6.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});LN.displayName=Jd;var wl="SelectItemText",DN=g.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:s,...i}=t,a=ii(wl,n),l=ai(wl,n),c=IN(wl,n),u=v6(wl,n),[d,h]=g.useState(null),f=nt(e,x=>h(x),c.onItemTextChange,x=>{var y;return(y=l.itemTextRefCallback)==null?void 0:y.call(l,x,c.value,c.disabled)}),m=d==null?void 0:d.textContent,w=g.useMemo(()=>o.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return Rt(()=>(p(w),()=>b(w)),[p,b,w]),o.jsxs(o.Fragment,{children:[o.jsx(Ce.span,{id:c.textId,...i,ref:f}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ta.createPortal(i.children,a.valueNode):null]})});DN.displayName=wl;var MN="SelectItemIndicator",$N=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return IN(MN,n).isSelected?o.jsx(Ce.span,{"aria-hidden":!0,...r,ref:e}):null});$N.displayName=MN;var Cg="SelectScrollUpButton",FN=g.forwardRef((t,e)=>{const n=ai(Cg,t.__scopeSelect),r=Bv(Cg,t.__scopeSelect),[s,i]=g.useState(!1),a=nt(e,r.onScrollButtonChange);return Rt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?o.jsx(VN,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});FN.displayName=Cg;var zg="SelectScrollDownButton",UN=g.forwardRef((t,e)=>{const n=ai(zg,t.__scopeSelect),r=Bv(zg,t.__scopeSelect),[s,i]=g.useState(!1),a=nt(e,r.onScrollButtonChange);return Rt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?o.jsx(VN,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});UN.displayName=zg;var VN=g.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=t,i=ai("SelectScrollButton",n),a=g.useRef(null),l=Fh(n),c=g.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),Rt(()=>{var d;const u=l().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),o.jsx(Ce.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:pe(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:pe(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:pe(s.onPointerLeave,()=>{c()})})}),z6="SelectSeparator",BN=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return o.jsx(Ce.div,{"aria-hidden":!0,...r,ref:e})});BN.displayName=z6;var Ag="SelectArrow",A6=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,s=Uh(n),i=ii(Ag,n),a=ai(Ag,n);return i.open&&a.position==="popper"?o.jsx(mS,{...s,...r,ref:e}):null});A6.displayName=Ag;var R6="SelectBubbleInput",HN=g.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const s=g.useRef(null),i=nt(r,s),a=TB(e);return g.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==e&&d){const h=new Event("change",{bubbles:!0});d.call(l,e),l.dispatchEvent(h)}},[a,e]),o.jsx(Ce.select,{...n,style:{...sj,...n.style},ref:i,defaultValue:e})});HN.displayName=R6;function WN(t){return t===""||t===void 0}function KN(t){const e=Un(t),n=g.useRef(""),r=g.useRef(0),s=g.useCallback(a=>{const l=n.current+a;e(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[e]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function GN(t,e,n){const s=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=P6(t,Math.max(i,0));s.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function P6(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var O6=wN,qN=kN,I6=jN,L6=SN,D6=EN,YN=TN,M6=AN,ZN=ON,QN=LN,$6=DN,F6=$N,JN=FN,XN=UN,eC=BN;const tC=O6,nC=I6,Hv=g.forwardRef(({className:t,children:e,...n},r)=>o.jsxs(qN,{ref:r,className:Ve("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
413ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...n,children:[e,o.jsx(L6,{asChild:!0,children:o.jsx(nc,{className:"h-4 w-4 opacity-50"})})]}));Hv.displayName=qN.displayName;const rC=g.forwardRef(({className:t,...e},n)=>o.jsx(JN,{ref:n,className:Ve("flex cursor-default items-center justify-center py-1",t),...e,children:o.jsx(eP,{className:"h-4 w-4"})}));rC.displayName=JN.displayName;const sC=g.forwardRef(({className:t,...e},n)=>o.jsx(XN,{ref:n,className:Ve("flex cursor-default items-center justify-center py-1",t),...e,children:o.jsx(nc,{className:"h-4 w-4"})}));sC.displayName=XN.displayName;const Wv=g.forwardRef(({className:t,children:e,position:n="popper",...r},s)=>o.jsx(D6,{children:o.jsxs(YN,{ref:s,className:Ve("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",t),position:n,...r,children:[o.jsx(rC,{}),o.jsx(M6,{className:Ve("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),o.jsx(sC,{})]})}));Wv.displayName=YN.displayName;const U6=g.forwardRef(({className:t,...e},n)=>o.jsx(ZN,{ref:n,className:Ve("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...e}));U6.displayName=ZN.displayName;const Ci=g.forwardRef(({className:t,children:e,...n},r)=>o.jsxs(QN,{ref:r,className:Ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(F6,{children:o.jsx(an,{className:"h-4 w-4"})})}),o.jsx($6,{children:e})]}));Ci.displayName=QN.displayName;const V6=g.forwardRef(({className:t,...e},n)=>o.jsx(eC,{ref:n,className:Ve("-mx-1 my-1 h-px bg-muted",t),...e}));V6.displayName=eC.displayName;var pm="rovingFocusGroup.onEntryFocus",B6={bubbles:!1,cancelable:!0},Wc="RovingFocusGroup",[Rg,iC,H6]=zy(Wc),[W6,aC]=ra(Wc,[H6]),[K6,G6]=W6(Wc),oC=g.forwardRef((t,e)=>o.jsx(Rg.Provider,{scope:t.__scopeRovingFocusGroup,children:o.jsx(Rg.Slot,{scope:t.__scopeRovingFocusGroup,children:o.jsx(q6,{...t,ref:e})})}));oC.displayName=Wc;var q6=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=t,f=g.useRef(null),m=nt(e,f),w=Vv(i),[p,b]=tc({prop:a,defaultProp:l??null,onChange:c,caller:Wc}),[x,y]=g.useState(!1),v=Un(u),k=iC(n),_=g.useRef(!1),[j,E]=g.useState(0);return g.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(pm,v),()=>S.removeEventListener(pm,v)},[v]),o.jsx(K6,{scope:n,orientation:r,dir:w,loop:s,currentTabStopId:p,onItemFocus:g.useCallback(S=>b(S),[b]),onItemShiftTab:g.useCallback(()=>y(!0),[]),onFocusableItemAdd:g.useCallback(()=>E(S=>S+1),[]),onFocusableItemRemove:g.useCallback(()=>E(S=>S-1),[]),children:o.jsx(Ce.div,{tabIndex:x||j===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...t.style},onMouseDown:pe(t.onMouseDown,()=>{_.current=!0}),onFocus:pe(t.onFocus,S=>{const A=!_.current;if(S.target===S.currentTarget&&A&&!x){const z=new CustomEvent(pm,B6);if(S.currentTarget.dispatchEvent(z),!z.defaultPrevented){const C=k().filter(W=>W.focusable),L=C.find(W=>W.active),P=C.find(W=>W.id===p),Z=[L,P,...C].filter(Boolean).map(W=>W.ref.current);uC(Z,d)}}_.current=!1}),onBlur:pe(t.onBlur,()=>y(!1))})})}),lC="RovingFocusGroupItem",cC=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:a,...l}=t,c=Dc(),u=i||c,d=G6(lC,n),h=d.currentTabStopId===u,f=iC(n),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:p}=d;return g.useEffect(()=>{if(r)return m(),()=>w()}
vendor: 4,561 bytes, line 413
413,[r,m,w]),o.jsx(Rg.ItemSlot,{scope:n,id:u,focusable:r,active:s,children:o.jsx(Ce.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...l,ref:e,onMouseDown:pe(t.onMouseDown,b=>{r?d.onItemFocus(u):b.preventDefault()}),onFocus:pe(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:pe(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=Q6(b,d.orientation,d.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let v=f().filter(k=>k.focusable).map(k=>k.ref.current);if(x==="last")v.reverse();else if(x==="prev"||x==="next"){x==="prev"&&v.reverse();const k=v.indexOf(b.currentTarget);v=d.loop?J6(v,k+1):v.slice(k+1)}setTimeout(()=>uC(v))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:p!=null}):a})})});cC.displayName=lC;var Y6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Z6(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Q6(t,e,n){const r=Z6(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Y6[r]}function uC(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function J6(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var X6=oC,e8=cC,Vh="Tabs",[t8,N8]=ra(Vh,[aC]),dC=aC(),[n8,Kv]=t8(Vh),hC=g.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=t,d=Vv(l),[h,f]=tc({prop:r,onChange:s,defaultProp:i??"",caller:Vh});return o.jsx(n8,{scope:n,baseId:Dc(),value:h,onValueChange:f,orientation:a,dir:d,activationMode:c,children:o.jsx(Ce.div,{dir:d,"data-orientation":a,...u,ref:e})})});hC.displayName=Vh;var fC="TabsList",mC=g.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...s}=t,i=Kv(fC,n),a=dC(n);return o.jsx(X6,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:o.jsx(Ce.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});mC.displayName=fC;var pC="TabsTrigger",gC=g.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...i}=t,a=Kv(pC,n),l=dC(n),c=xC(a.baseId,r),u=wC(a.baseId,r),d=r===a.value;return o.jsx(e8,{asChild:!0,...l,focusable:!s,active:d,children:o.jsx(Ce.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:pe(t.onMouseDown,h=>{!s&&h.button===0&&h.ctrlKey===!1?a.onValueChange(r):h.preventDefault()}),onKeyDown:pe(t.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&a.onValueChange(r)}),onFocus:pe(t.onFocus,()=>{const h=a.activationMode!=="manual";!d&&!s&&h&&a.onValueChange(r)})})})});gC.displayName=pC;var yC="TabsContent",vC=g.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:s,children:i,...a}=t,l=Kv(yC,n),c=xC(l.baseId,r),u=wC(l.baseId,r),d=r===l.value,h=g.useRef(d);return g.useEffect(()=>{const f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),o.jsx(gh,{present:s||d,children:({present:f})=>o.jsx(Ce.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:u,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:h.current?"0s":void 0},children:f&&i})})});vC.displayName=yC;function xC(t,e){return`${t}-trigger-${e}`}function wC(t,e){return`${t}-content-${e}`}var r8=hC,bC=mC,kC=gC,_C=vC;const s8=r8,jC=g.forwardRef(({className:t,...e},n)=>o.jsx(bC,{ref:n,className:Ve("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...e}));jC.displayName=bC.displayName;const Pg=g.forwardRef(({className:t,...e},n)=>o.jsx(kC,{ref:n,className:Ve("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",t),...e}));Pg.displayName=kC.displayName;const Og=g.forwardRef(({className:t,...e},n)=>o.jsx(_C,{ref:n,className:Ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));Og.displayName=_C.displayName;const i8=t=>
413t?new Date(t).toLocaleString("hu-HU",{dateStyle:"medium",timeStyle:"short"}):"â",a8=({token:t,onUnauthorized:e})=>{const{toast:n}=na(),[r,s]=g.useState([]),[i,a]=g.useState(!1),[l,c]=g.useState(""),[u,d]=g.useState("percent"),[h,f]=g.useState("20"),[m,w]=g.useState("vilagunk-veszte-telhetetlenseg"),[p,b]=g.useState(""),[x,y]=g.useState(""),[v,k]=g.useState(""),[_,j]=g.useState(!1),E=g.useCallback(P=>{const O=P instanceof Error?P.message:"Ismeretlen hiba";if(O.toLowerCase().includes("unauthorized")){e();return}n({title:"Hiba",description:O,variant:"destructive"})},[n,e]),S=g.useCallback(async()=>{a(!0);try{const{data:P,error:O}=await $t.functions.invoke("admin-coupons",{headers:{Authorization:`Bearer ${t}`},body:{action:"list"}});if(O)throw new Error(O.message);s((P==null?void 0:P.coupons)||[])}catch(P){E(P)}finally{a(!1)}},[t,E]);g.useEffect(()=>{S()},[S]);const A=async P=>{if(P.preventDefault(),!(!l.trim()||!h)){j(!0);try{const O={action:"create",code:l.trim(),discount_type:u,discount_value:Number(h)};m.trim()&&(O.workshop_slug=m.trim()),p&&(O.expires_at=new Date(p).toISOString()),x&&(O.max_redemptions=Number(x)),v.trim()&&(O.notes=v.trim());const{data:Z,error:W}=await $t.functions.invoke("admin-coupons",{headers:{Authorization:`Bearer ${t}`},body:O});if(W)throw new Error(W.message);if(Z!=null&&Z.error)throw new Error(Z.error);n({title:"Kupon létrehozva"}),c(""),f("20"),b(""),y(""),k(""),await S()}catch(O){E(O)}finally{j(!1)}}},z=async P=>{try{const{error:O}=await $t.functions.invoke("admin-coupons",{headers:{Authorization:`Bearer ${t}`},body:{action:"update",id:P.id,active:!P.active}});if(O)throw new Error(O.message);await S()}catch(O){E(O)}},C=async P=>{if(confirm(`Biztosan törlöd a(z) "${P.code}" kupont?`))try{const{error:O}=await $t.functions.invoke("admin-coupons",{headers:{Authorization:`Bearer ${t}`},body:{action:"delete",id:P.id}});if(O)throw new Error(O.message);await S()}catch(O){E(O)}},L=P=>P.discount_type==="percent"?`-${P.discount_value}%`:`-${P.discount_value.toLocaleString("hu-HU")} Ft`;return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("form",{onSubmit:A,className:"bg-secondary p-5 shadow-card grid md:grid-cols-2 gap-4",children:[o.jsx("h2",{className:"md:col-span-2 font-display text-xl text-foreground",children:"Ãj kupon létrehozása"}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"c-code",children:"Kupon kód *"}),o.jsx(yt,{id:"c-code",value:l,onChange:P=>c(P.target.value.toUpperCase()),placeholder:"pl. TM20",maxLength:64,required:!0,className:"mt-1"})]}),o.jsxs("div",{children:[o.jsx(Nt,{children:"Kedvezmény tÃpusa *"}),o.jsxs(tC,{value:u,onValueChange:P=>d(P),children:[o.jsx(Hv,{className:"mt-1",children:o.jsx(nC,{})}),o.jsxs(Wv,{children:[o.jsx(Ci,{value:"percent",children:"Százalékos (%)"}),o.jsx(Ci,{value:"fixed",children:"Fix összeg (Ft)"})]})]})]}),o.jsxs("div",{children:[o.jsxs(Nt,{htmlFor:"c-value",children:["Ãrték * (",u==="percent"?"%":"Ft",")"]}),o.jsx(yt,{id:"c-value",type:"number",min:1,value:h,onChange:P=>f(P.target.value),required:!0,className:"mt-1"})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"c-slug",children:"Workshop slug (üres = minden)"}),o.jsx(yt,{id:"c-slug",value:m,onChange:P=>w(P.target.value),className:"mt-1"})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"c-exp",children:"Lejárat (üres = nincs)"}),o.jsx(yt,{id:"c-exp",type:"datetime-local",value:p,onChange:P=>b(P.target.value),className:"mt-1"})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"c-max",children:"Max. beváltások (üres = korlátlan)"}),o.jsx(yt,{id:"c-max",type:"number",min:1,value:x,onChange:P=>y(P.target.value),className:"mt-1"})]}),o.jsxs("div",{className:"md:col-span-2",children:[o.jsx(Nt,{htmlFor:"c-notes",children:"Megjegyzés"}),o.jsx(yt,{id:"c-notes",value:v,onChange:P=>k(P.target.value),maxLength:500,className:"mt-1"})]}),o.jsx("div",{className:"md:col-span-2",children:o.jsx(le,{type:"submit",disabled:_,children:_?"Létrehozásâ¦":"Kupon létrehozása"})})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("h2",{className:"font-display text-xl text-foreground",children:["MeglévÅ kuponok (",r.length,")"]}),o.jsx(le,{variant:"outline",size:"sm",onClick:S,disabled:i,children:i?"FrissÃtésâ¦":"FrissÃtés"})]}),r.length===0&&!i&&o.jsx("div",{className:"bg-secondary p-8 text-center text-muted-foreground font-sans",children:"Még nincs kupon."}),o.jsx("div",{className:"space-y-3",children:r.map(P=>{const O=P.expires_at&&new Date(P.expires_at)<new Date,Z=P.max_redemptions!==null&&P.redemption_count>=P.max_redemptions;return o.jsxs("div",{className:"bg-secondary p-5 shadow-card grid md:grid-cols-[1fr_auto] gap-4",children:[o.jsxs("div",{className:"space-y-1 text-sm font-sans",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o.jsx("strong",{className:"font-mono text-lg text-foreground",children:P.code}),o.jsx("span",{className:"bg-primary/15 text-primary px-2 py-0.5 text-xs",children:L(P)}),!P.active&&o.jsx("span",{className:"bg-muted text-muted-foreground px-2 py-0.5 text-xs",children:"InaktÃv"}),O&&o.jsx("span",{className:"bg-destructive/15 text-destructive px-2 py-0.5 text-xs",children:"Lejárt"}),Z&&o.jsx("span",{className:"bg-destructive/15 text-destructive px-2 py-0.5 text-xs",children:"Elfogyott"})]}
413),o.jsxs("div",{className:"text-foreground/80",children:["Beváltások: ",o.jsx("strong",{children:P.redemption_count}),P.max_redemptions!==null&&` / ${P.max_redemptions}`," · Lejárat: ",i8(P.expires_at)]}),P.workshop_slug&&o.jsxs("div",{className:"text-muted-foreground text-xs",children:["Workshop: ",P.workshop_slug]}),P.notes&&o.jsx("div",{className:"text-muted-foreground text-xs italic",children:P.notes})]}),o.jsxs("div",{className:"flex md:flex-col gap-2 md:w-40",children:[o.jsx(le,{variant:"outline",size:"sm",onClick:()=>z(P),className:"flex-1",children:P.active?"Deaktiválás":"Aktiválás"}),o.jsx(le,{variant:"ghost",size:"sm",onClick:()=>C(P),className:"flex-1 text-destructive hover:text-destructive",children:"Törlés"})]})]},P.id)})})]})},ul="kh_admin_token",o8=oN({username:Da().min(1),password:Da().min(1)}),l8={awaiting_transfer:"Várja az utalást",paid:"Befizetve",cancelled:"Visszamondva",expired:"Lejárt"},c8={awaiting_transfer:"bg-yellow-100 text-yellow-900",paid:"bg-primary/15 text-primary",cancelled:"bg-muted text-muted-foreground",expired:"bg-destructive/15 text-destructive"},gm=t=>`${t.toLocaleString("hu-HU")} Ft`,ym=t=>t?new Date(t).toLocaleString("hu-HU",{dateStyle:"medium",timeStyle:"short"}):"â",u8=()=>{const t=Ao(),{toast:e}=na(),[n,r]=g.useState(()=>typeof window<"u"?localStorage.getItem(ul):null),[s,i]=g.useState(""),[a,l]=g.useState(""),[c,u]=g.useState(!1),[d,h]=g.useState(!1),[f,m]=g.useState([]),w=g.useCallback(async k=>{var _;h(!0);try{const{data:j,error:E}=await $t.functions.invoke("admin-list-registrations",{headers:{Authorization:`Bearer ${k}`}});if(E){if(String(E.message||"").toLowerCase().includes("unauthorized")||((_=E==null?void 0:E.context)==null?void 0:_.status)===401){localStorage.removeItem(ul),r(null),e({title:"Lejárt a munkamenet",description:"Kérlek, jelentkezz be újra."});return}throw new Error(E.message)}m((j==null?void 0:j.registrations)||[])}catch(j){const E=j instanceof Error?j.message:"Ismeretlen hiba";e({title:"Hiba a betöltéskor",description:E,variant:"destructive"})}finally{h(!1)}},[e]);g.useEffect(()=>{n&&w(n)},[n,w]);const p=async k=>{var j,E;k.preventDefault();const _=o8.safeParse({username:s,password:a});if(_.success){u(!0);try{const{data:S,error:A}=await $t.functions.invoke("admin-login",{body:_.data});if(A||!(S!=null&&S.token))throw new Error((j=A==null?void 0:A.message)!=null&&j.includes("Unauthorized")||((E=A==null?void 0:A.context)==null?void 0:E.status)===401?"Hibás felhasználónév vagy jelszó":(A==null?void 0:A.message)||"Sikertelen bejelentkezés");localStorage.setItem(ul,S.token),r(S.token),l("")}catch(S){const A=S instanceof Error?S.message:"Ismeretlen hiba";e({title:"Bejelentkezési hiba",description:A,variant:"destructive"})}finally{u(!1)}}},b=()=>{localStorage.removeItem(ul),r(null),m([])},x=async(k,_)=>{if(n)try{const{data:j,error:E}=await $t.functions.invoke("admin-update-registration",{headers:{Authorization:`Bearer ${n}`},body:{registration_id:k,payment_status:_}});if(E)throw new Error(E.message);const S=j==null?void 0:j.invoice;_==="paid"?S!=null&&S.success?e({title:"Befizetve + számla kiállÃtva",description:`Számlaszám: ${S.invoice_number}`}):S!=null&&S.already_invoiced?e({title:"Státusz frissÃtve",description:"Számla már korábban kiállÃtásra került."}):S!=null&&S.error?e({title:"Státusz frissÃtve, de a számla hibára futott",description:S.error.slice(0,200),variant:"destructive"}):e({title:"Státusz frissÃtve"}):e({title:"Státusz frissÃtve"}),await w(n)}catch(j){const E=j instanceof Error?j.message:"Ismeretlen hiba";e({title:"Hiba a frissÃtéskor",description:E,variant:"destructive"})}};if(!n)return o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background min-h-[70vh]",children:o.jsxs("div",{className:"container max-w-md",children:[o.jsx("h1",{className:"text-3xl font-display text-foreground mb-2",children:"Admin bejelentkezés"}),o.jsx("p",{className:"text-muted-foreground font-sans mb-6 text-sm",children:"Add meg a felhasználónevedet és jelszavadat a jelentkezések kezeléséhez."}),o.jsxs("form",{onSubmit:p,className:"space-y-4 bg-secondary p-6 shadow-card",children:[o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"username",children:"Felhasználónév"}),o.jsx(yt,{id:"username",value:s,onChange:k=>i(k.target.value),autoComplete:"username",required:!0,className:"mt-1"})]}),o.jsxs("div",{children:[o.jsx(Nt,{htmlFor:"password",children:"Jelszó"}),o.jsx(yt,{id:"password",type:"password",value:a,onChange:k=>l(k.target.value),autoComplete:"current-password",required:!0,className:"mt-1"})]}
413),o.jsx(le,{type:"submit",className:"w-full",disabled:c,children:c?"Belépésâ¦":"Belépés"})]}),o.jsx("button",{onClick:()=>t("/"),className:"text-xs text-muted-foreground hover:text-primary font-sans mt-4",children:"â Vissza a kezdÅlapra"})]})})});const y=f.filter(k=>k.payment_status==="awaiting_transfer").length,v=f.filter(k=>k.payment_status==="paid").length;return o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background",children:o.jsxs("div",{className:"container max-w-6xl",children:[o.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-4 mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-3xl font-display text-foreground mb-1",children:"Admin felület"}),o.jsxs("p",{className:"text-sm font-sans text-muted-foreground",children:["Jelentkezések: ",f.length," · Várja az utalást:"," ",y," · Befizetve: ",v]})]}),o.jsx("div",{className:"flex gap-2",children:o.jsx(le,{variant:"ghost",onClick:b,children:"Kijelentkezés"})})]}),o.jsxs(s8,{defaultValue:"registrations",className:"w-full",children:[o.jsxs(jC,{className:"mb-6",children:[o.jsx(Pg,{value:"registrations",children:"Jelentkezések"}),o.jsx(Pg,{value:"coupons",children:"Kuponok"})]}),o.jsx(Og,{value:"coupons",children:o.jsx(a8,{token:n,onUnauthorized:()=>{localStorage.removeItem(ul),r(null),e({title:"Lejárt a munkamenet"})}})}),o.jsxs(Og,{value:"registrations",className:"space-y-3",children:[o.jsx("div",{className:"flex justify-end mb-2",children:o.jsx(le,{variant:"outline",size:"sm",onClick:()=>n&&w(n),disabled:d,children:d?"FrissÃtésâ¦":"FrissÃtés"})}),f.length===0&&!d&&o.jsx("div",{className:"bg-secondary p-8 text-center text-muted-foreground font-sans",children:"Még nincs jelentkezÅ."}),o.jsx("div",{className:"space-y-3",children:f.map(k=>o.jsxs("div",{className:"bg-secondary p-5 shadow-card grid md:grid-cols-[1fr_auto] gap-4",children:[o.jsxs("div",{className:"space-y-2 min-w-0",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o.jsx("span",{className:"font-display text-lg text-foreground",children:k.full_name}),o.jsx("span",{className:`text-xs font-sans px-2 py-0.5 ${c8[k.payment_status]||"bg-muted"}`,children:l8[k.payment_status]||k.payment_status})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-x-6 gap-y-1 text-sm font-sans text-foreground/85",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Email: "}),o.jsx("a",{href:`mailto:${k.email}`,className:"text-primary hover:underline break-all",children:k.email})]}),k.phone&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Telefon: "}),k.phone]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Ãsszeg: "}),o.jsx("strong",{children:gm(k.amount_huf)})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Közlemény: "}),o.jsx("code",{className:"font-mono text-foreground",children:k.transfer_reference||"â"})]}),o.jsxs("div",{className:"sm:col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Számlázási cÃm: "}),k.billing_address]}),k.coupon_code&&o.jsxs("div",{className:"sm:col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Kupon: "}),o.jsx("code",{className:"font-mono text-primary",children:k.coupon_code})," · kedvezmény: ",o.jsx("strong",{children:gm(k.discount_huf)}),k.original_amount_huf&&o.jsxs("span",{className:"text-muted-foreground text-xs ml-2",children:["(eredeti ár: ",gm(k.original_amount_huf),")"]})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Jelentkezett: "}),ym(k.created_at)]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"HatáridÅ: "}),k.payment_deadline?new Date(k.payment_deadline).toLocaleDateString("hu-HU"):"â"]}),k.paid_at&&o.jsxs("div",{className:"sm:col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Befizetve: "}),ym(k.paid_at)]}),k.invoice_number&&o.jsxs("div",{className:"sm:col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Számla: "}),o.jsx("strong",{className:"font-mono",children:k.invoice_number}),k.invoice_url&&o.jsxs(o.Fragment,{children:[" · ",o.jsx("a",{href:k.invoice_url,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:"Letöltés (PDF)"})]}),k.invoice_issued_at&&o.jsxs("span",{className:"text-muted-foreground text-xs ml-2",children:["(",ym(k.invoice_issued_at),")"]})]}),k.invoice_error&&!k.invoice_number&&o.jsxs("div",{className:"sm:col-span-2 text-destructive text-xs",children:["Számla hiba: ",k.invoice_error.slice(0,200)]})]})]}),o.jsxs("div",{className:"flex md:flex-col gap-2 md:w-48",children:[k.payment_status!=="paid"&&o.jsx(le,{onClick:()=>x(k.id,"paid"),className:"flex-1",children:"Befizetve"}),o.jsxs(tC,{value:k.payment_status,onValueChange:_=>x(k.id,_),children:[o.jsx(Hv,{className:"flex-1",children:o.jsx(nC,{})}),o.jsxs(Wv,{children:[o.jsx(Ci,{value:"awaiting_transfer",children:"Várja az utalást"}),o.jsx(Ci,{value:"paid",children:"Befizetve"}),o.jsx(Ci,{value:"cancelled",children:"Visszamondva"}),o.jsx(Ci,{value:"expired",children:"Lejárt"})]})]})]})]},k.id))})]})]})]})})})},d8="https://ftjbaccndpyzlifkgrfl.supabase.co",h8="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ0amJhY2NuZHB5emxpZmtncmZsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA5Nzg4NDksImV4cCI6MjA4NjU1NDg0OX0.xFJOwP5M4vLoVAHHXQYZuRG3zJBC19hF8O6mcKsGtzg",f8=()=>{const[t]=qL(),e=t.get("token"),[n,r]=g.useState({kind:"loading"});g.useEffect(()=>{if(!e){r({kind:"invalid",message:"Hiányzó leiratkozási token."});return}(async()=>{try{const a=await(await fetch(`${d8}/functions/v1/handle-email-unsubscribe?token=${encodeURIComponent(e)}`,{headers:{apikey:h8}})).json();
413a!=null&&a.valid?r({kind:"valid"}):(a==null?void 0:a.reason)==="already_unsubscribed"?r({kind:"already"}):r({kind:"invalid",message:(a==null?void 0:a.error)||"Ãrvénytelen vagy lejárt token."})}catch(i){r({kind:"invalid",message:i instanceof Error?i.message:"Hálózati hiba"})}})()},[e]);const s=async()=>{if(e){r({kind:"submitting"});try{const{data:i,error:a}=await $t.functions.invoke("handle-email-unsubscribe",{body:{token:e}});if(a)throw new Error(a.message);if(i!=null&&i.success||(i==null?void 0:i.reason)==="already_unsubscribed")r({kind:"done"});else throw new Error((i==null?void 0:i.error)||"Sikertelen leiratkozás")}catch(i){r({kind:"error",message:i instanceof Error?i.message:"Ismeretlen hiba"})}}};return o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background min-h-[60vh]",children:o.jsxs("div",{className:"container max-w-lg",children:[o.jsx("h1",{className:"text-3xl font-display text-foreground mb-4",children:"Leiratkozás"}),n.kind==="loading"&&o.jsx("p",{className:"text-muted-foreground font-sans",children:"Token ellenÅrzéseâ¦"}),n.kind==="valid"&&o.jsxs("div",{className:"bg-secondary p-6 shadow-card space-y-4",children:[o.jsx("p",{className:"font-sans text-foreground",children:"Biztos, hogy le szeretnél iratkozni a további emailekrÅl?"}),o.jsx(le,{onClick:s,children:"Igen, leiratkozom"})]}),n.kind==="submitting"&&o.jsx("p",{className:"text-muted-foreground font-sans",children:"Folyamatbanâ¦"}),n.kind==="done"&&o.jsx("div",{className:"bg-secondary p-6 shadow-card",children:o.jsx("p",{className:"font-sans text-foreground",children:"Sikeresen leiratkoztál. Több emailt nem fogsz kapni."})}),n.kind==="already"&&o.jsx("div",{className:"bg-secondary p-6 shadow-card",children:o.jsx("p",{className:"font-sans text-foreground",children:"Már korábban leiratkoztál errÅl a listáról."})}),(n.kind==="invalid"||n.kind==="error")&&o.jsx("div",{className:"bg-destructive/10 p-6 shadow-card",children:o.jsx("p",{className:"font-sans text-destructive",children:n.message})})]})})})},Fr=({label:t,value:e})=>o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[220px_1fr] gap-1 md:gap-6 py-2 border-b border-border/60",children:[o.jsx("dt",{className:"font-sans text-sm text-muted-foreground",children:t}),o.jsx("dd",{className:"font-sans text-sm text-foreground",children:e})]}),m8=()=>o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background",children:o.jsxs("div",{className:"container max-w-3xl",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-display text-foreground mb-2",children:"Impresszum"}),o.jsx("p",{className:"font-sans text-sm text-muted-foreground mb-8",children:"A jelen weboldal üzemeltetÅjére vonatkozó, az elektronikus kereskedelmi szolgáltatásokról szóló 2001. évi CVIII. törvény (Ekertv.) szerinti adatok."}),o.jsxs("dl",{className:"bg-secondary p-6 md:p-8 shadow-card",children:[o.jsx(Fr,{label:"A szolgáltató neve",value:"Kimmel Hajnalka"}),o.jsx(Fr,{label:"Vállalkozási forma",value:"Egyéni vállalkozó"}),o.jsx(Fr,{label:"Székhely",value:"[KITÃLTENDÅ: irányÃtószám, város, utca, házszám]"}),o.jsx(Fr,{label:"Nyilvántartási szám",value:"[KITÃLTENDÅ: egyéni vállalkozói nyilvántartási szám]"}),o.jsx(Fr,{label:"Adószám",value:"[KITÃLTENDÅ: xxxxxxxx-x-xx]"}),o.jsx(Fr,{label:"Nyilvántartó hatóság",value:"Belügyminisztérium Nyilvántartások Vezetéséért FelelÅs Helyettes Ãllamtitkárság"}),o.jsx(Fr,{label:"E-mail",value:o.jsx("a",{href:"mailto:[KITÃLTENDÅ: email]",className:"text-primary hover:underline",children:"[KITÃLTENDÅ: email cÃm]"})}),o.jsx(Fr,{label:"Telefon",value:"[KITÃLTENDÅ: telefonszám â opcionális]"}),o.jsx(Fr,{label:"Tárhelyszolgáltató",value:o.jsxs(o.Fragment,{children:["Lovable (Lovable Labs Inc.) â"," ",o.jsx("a",{href:"https://lovable.dev",target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:"lovable.dev"})]})})]}),o.jsxs("div",{className:"mt-8 space-y-4 font-sans text-sm text-foreground/85 leading-relaxed",children:[o.jsx("h2",{className:"text-xl font-display text-foreground",children:"SzerzÅi jogok"}),o.jsx("p",{children:"A weboldalon megjelenÅ tartalmak (szövegek, képek, grafikák, logók) szerzÅi jogi védelem alatt állnak. Bármilyen felhasználás kizárólag a szolgáltató elÅzetes Ãrásbeli engedélyével lehetséges."}),o.jsx("h2",{className:"text-xl font-display text-foreground pt-2",children:"Panaszkezelés"}),o.jsx("p",{children:"Esetleges panaszával elsÅsorban a fenti e-mail cÃmen fordulhat hozzánk. Fogyasztói jogvita esetén a lakóhelye szerint illetékes békéltetÅ testülethez fordulhat."})]})]})})}),gi=({children:t})=>o.jsx("h2",{className:"text-xl md:text-2xl font-display text-foreground mt-8 mb-3",children:t}),vm=({children:t})=>o.jsx("h3",{className:"text-base font-display text-foreground mt-5 mb-2",children:t}),gr=({children:t})=>
413o.jsx("p",{className:"font-sans text-sm text-foreground/85 leading-relaxed mb-3",children:t}),p8=()=>o.jsx($e,{children:o.jsx("section",{className:"pt-28 pb-16 bg-background",children:o.jsxs("div",{className:"container max-w-3xl",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-display text-foreground mb-2",children:"Adatvédelmi tájékoztató"}),o.jsx("p",{className:"font-sans text-sm text-muted-foreground mb-8",children:"Hatályos: [KITÃLTENDÅ: dátum] · Az Európai Parlament és a Tanács (EU) 2016/679 rendelete (GDPR), valamint az információs önrendelkezési jogról és az információszabadságról szóló 2011. évi CXII. törvény (Infotv.) alapján."}),o.jsxs("div",{className:"bg-secondary p-6 md:p-8 shadow-card",children:[o.jsx(gi,{children:"1. AdatkezelÅ"}),o.jsxs(gr,{children:[o.jsx("strong",{children:"Név:"})," Kimmel Hajnalka egyéni vállalkozó",o.jsx("br",{}),o.jsx("strong",{children:"Székhely:"})," [KITÃLTENDÅ: cÃm]",o.jsx("br",{}),o.jsx("strong",{children:"Adószám:"})," [KITÃLTENDÅ]",o.jsx("br",{}),o.jsx("strong",{children:"Nyilvántartási szám:"})," [KITÃLTENDÅ]",o.jsx("br",{}),o.jsx("strong",{children:"E-mail:"})," [KITÃLTENDÅ: email cÃm]"]}),o.jsx(gi,{children:"2. A kezelt adatok köre, célja és jogalapja"}),o.jsx(vm,{children:"2.1. Workshop jelentkezés"}),o.jsxs(gr,{children:[o.jsx("strong",{children:"Kezelt adatok:"})," teljes név, e-mail cÃm, telefonszám (opcionális), számlázási cÃm, a választott workshop és idÅpont, jelentkezés idÅpontja, fizetési referencia.",o.jsx("br",{}),o.jsx("strong",{children:"Cél:"})," a jelentkezés rögzÃtése, kapcsolattartás, a részvétellel kapcsolatos tájékoztatás.",o.jsx("br",{}),o.jsx("strong",{children:"Jogalap:"})," GDPR 6. cikk (1) b) â szerzÅdés teljesÃtése.",o.jsx("br",{}),o.jsx("strong",{children:"MegÅrzési idÅ:"})," a workshop megtartását követÅ 1 év, ezt követÅen törlésre kerül (kivéve a számlázási kötelezettséghez kapcsolódó adatokat â lásd 2.2.)."]}),o.jsx(vm,{children:"2.2. Számlázás"}),o.jsxs(gr,{children:[o.jsx("strong",{children:"Kezelt adatok:"})," név, számlázási cÃm, adószám (ha céges), a szolgáltatás megnevezése, dÃja és kelte.",o.jsx("br",{}),o.jsx("strong",{children:"Cél:"})," jogszabályon alapuló számlakiállÃtás és bizonylatmegÅrzés.",o.jsx("br",{}),o.jsx("strong",{children:"Jogalap:"})," GDPR 6. cikk (1) c) â jogi kötelezettség teljesÃtése [a számvitelrÅl szóló 2000. évi C. törvény 169. § (2)].",o.jsx("br",{}),o.jsx("strong",{children:"MegÅrzési idÅ:"})," a számla kiállÃtásától számÃtott 8 év."]}),o.jsx(vm,{children:"2.3. Kapcsolatfelvétel e-mailben"}),o.jsxs(gr,{children:[o.jsx("strong",{children:"Kezelt adatok:"})," az Ãn által megadott név, e-mail cÃm és az üzenet tartalma. A weboldal kapcsolati űrlapja a saját levelezÅprogramját nyitja meg â az üzenet közvetlenül e-mailben érkezik, nem kerül a weboldal adatbázisába.",o.jsx("br",{}),o.jsx("strong",{children:"Jogalap:"})," GDPR 6. cikk (1) f) â jogos érdek (megkeresés megválaszolása).",o.jsx("br",{}),o.jsx("strong",{children:"MegÅrzési idÅ:"})," a kapcsolatfelvétel céljának megvalósulásáig, legfeljebb 2 év."]}),o.jsx(gi,{children:"3. Adatfeldolgozók"}),o.jsx(gr,{children:"Az adatkezelÅ a következÅ adatfeldolgozókat veszi igénybe:"}),o.jsxs("ul",{className:"font-sans text-sm text-foreground/85 leading-relaxed list-disc pl-5 space-y-1 mb-4",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Tárhely- és háttérszolgáltatás:"})," Lovable Labs Inc. (weboldal és adatbázis üzemeltetése)"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"E-mail küldés:"})," automatikus visszaigazoló e-mailek küldése a jelentkezÅknek"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Számlázás:"})," [KITÃLTENDÅ: pl. Számlázz.hu â KBOSS.hu Kft.]"]})]}),o.jsx(gi,{children:"4. Az érintett jogai"}),o.jsx(gr,{children:"Ãn bármikor jogosult:"}),o.jsxs("ul",{className:"font-sans text-sm text-foreground/85 leading-relaxed list-disc pl-5 space-y-1 mb-4",children:[o.jsx("li",{children:"tájékoztatást kérni az ÃnrÅl kezelt adatokról,"}),o.jsx("li",{children:"az adatok helyesbÃtését, törlését vagy korlátozását kérni,"}),o.jsx("li",{children:"tiltakozni az adatkezelés ellen,"}),o.jsx("li",{children:"élni az adathordozhatósághoz való jogával,"}),o.jsx("li",{children:"hozzájárulását bármikor visszavonni (a visszavonás nem érinti a korábbi adatkezelés jogszerűségét)."})]}),o.jsx(gr,{children:"Kérelmét a fenti e-mail cÃmen jelezheti. Indokolatlan késedelem nélkül, de legkésÅbb 30 napon belül válaszolunk."}),o.jsx(gi,{children:"5. Jogorvoslat"}),o.jsxs(gr,{children:["Adatvédelmi panaszával a Nemzeti Adatvédelmi és Információszabadság Hatósághoz fordulhat:",o.jsx("br",{}),"CÃm: 1055 Budapest, Falk Miksa utca 9-11.",o.jsx("br",{}),"Telefon: +36 (1) 391-1400",o.jsx("br",{}),"E-mail: [email protected]",o.jsx("br",{}),"Web: www.naih.hu"]}),o.jsx(gi,{children:"6. Sütik (cookie-k)"}),o.jsx(gr,{children:"A weboldal kizárólag a működéséhez feltétlenül szükséges sütiket használja. Marketing- vagy nyomkövetÅ sütiket nem alkalmazunk."}),o.jsx(gi,{children:"7. Adatbiztonság"}),o.jsx(gr,{children:"Az adatkezelÅ megfelelÅ technikai és szervezési intézkedésekkel biztosÃtja az adatok védelmét a jogosulatlan hozzáférés, megváltoztatás, továbbÃtás, nyilvánosságra hozatal, törlés vagy megsemmisÃtés ellen."})]})]})})}),g8=()=>{const t=Ir();return g.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),o.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),o.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},y8=()=>{const{pathname:t}=Ir();return g.useEffect(()=>{window.scrollTo(0,0)},[t]),null},v8=new AI,x8=()=>o.jsx(LI,{client:v8,children:o.jsxs(hI,{children:[o.jsx(qP,{}),o.jsx(E2,{}),o.jsxs(HL,{children:[o.jsx(y8,{}),o.jsxs(LL,{children:[o.jsx(Me,{path:"/",element:o.jsx(LU,{})}),o.jsx(Me,{path:"/szolgaltatasok",element:o.jsx(MU,{})}),o.jsx(Me,{path:"/szolgaltatasok/nonbusiness-marketing",element:o.jsx($U,{})}),o.jsx(Me,{path:"/szolgaltatasok/kornyezeti-strategia",element:o.jsx(FU,{})}),o.jsx(Me,{path:"/miert-fontos",element:o.jsx(UU,{})}),o.jsx(Me,{path:"/szolgaltatasok/marketing-tanacsadas",element:o.jsx(VU,{})}),o.jsx(Me,{path:"/szolgaltatasok/egyeni-konzultacio",element:o.jsx(BU,{})}),o.jsx(Me,{path:"/eloadasok",element:o.jsx(GU,{})}),o.jsx(Me,{path:"/eloadasok/vilagunk-veszte",element:o.jsx(XU,{})}),o.jsx(Me,{path:"/rolam",element:o.jsx(tV,{})}),o.jsx(Me,{path:"/kapcsolat",element:o.jsx(nV,{})}),o.jsx(Me,{path:"/referenciak",element:o.jsx(iV,{})}),o.jsx(Me,{path:"/blog",element:o.jsx(aV,{})}),o.jsx(Me,{path:"/blog/:slug",element:o.jsx(CV,{})}),o.jsx(Me,{path:"/workshopok",element:o.jsx(PV,{})}),o.jsx(Me,{path:"/workshopok/vilagunk-veszte-telhetetlenseg/tudatos-fogyasztas",element:o.jsx(FV,{})}),o.jsx(Me,{path:"/workshopok/:slug",element:o.jsx(LV,{})}),o.jsx(Me,{path:"/workshopok/:slug/jelentkezes",element:o.jsx(mk,{})}),o.jsx(Me,{path:"/workshopok/:slug/utalasi-adatok",element:o.jsx(om,{})}),o.jsx(Me,{path:"/workshopok/jelentkezes",element:o.jsx(mk,{})}),o.jsx(Me,{path:"/workshopok/utalasi-adatok",element:o.jsx(om,{})}),o.jsx(Me,{path:"/workshopok/sikeres-fizetes",element:o.jsx(om,{})}),o.jsx(Me,{path:"/admin",element:o.jsx(u8,{})}),o.jsx(Me,{path:"/unsubscribe",element:o.jsx(f8,{})}),o.jsx(Me,{path:"/impresszum",element:o.jsx(m8,{})}),o.jsx(Me,{path:"/adatvedelem",element:o.jsx(p8,{})}),o.jsx(Me,{path:"*",element:o.jsx(g8,{})})]})]})]})});Q_(document.getElementById("root")).render(o.jsx(x8,{}));
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.