PageSourceSearch

https://seoicure.com/assets/index-QJ1RcHC3.js

js seoicure.com collected 2026-10-05 08:53:28 UTC 1,353,946 bytes, 584 lines download raw bytes

vendor: 6,122 bytes, lines 1-9
1var Dw=e=>{throw TypeError(e)};var ep=(e,t,r)=>t.has(e)||Dw("Cannot "+r);var B=(e,t,r)=>(ep(e,t,"read from private field"),r?r.call(e):t.get(e)),ze=(e,t,r)=>t.has(e)?Dw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,n)=>(ep(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),er=(e,t,r)=>(ep(e,t,"access private method"),r);var tu=(e,t,r,n)=>({set _(s){je(e,t,s,r)},get _(){return B(e,t,n)}});function UD(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function cS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dS={exports:{}},Mf={},uS={exports:{}},Pe={};/**
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 kd=Symbol.for("react.element"),WD=Symbol.for("react.portal"),HD=Symbol.for("react.fragment"),qD=Symbol.for("react.strict_mode"),GD=Symbol.for("react.profiler"),KD=Symbol.for("react.provider"),YD=Symbol.for("react.context"),JD=Symbol.for("react.forward_ref"),ZD=Symbol.for("react.suspense"),XD=Symbol.for("react.memo"),QD=Symbol.for("react.lazy"),Iw=Symbol.iterator;function e4(e){return e===null||typeof e!="object"?null:(e=Iw&&e[Iw]||e["@@iterator"],typeof e=="function"?e:null)}var hS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fS=Object.assign,mS={};function vl(e,t,r){this.props=e,this.context=t,this.refs=mS,this.updater=r||hS}vl.prototype.isReactComponent={};vl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};vl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pS(){}pS.prototype=vl.prototype;function Fx(e,t,r){this.props=e,this.context=t,this.refs=mS,this.updater=r||hS}var $x=Fx.prototype=new pS;$x.constructor=Fx;fS($x,vl.prototype);$x.isPureReactComponent=!0;var Mw=Array.isArray,gS=Object.prototype.hasOwnProperty,Bx={current:null},yS={key:!0,ref:!0,__self:!0,__source:!0};function xS(e,t,r){var n,s={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)gS.call(t,n)&&!yS.hasOwnProperty(n)&&(s[n]=t[n]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)s[n]===void 0&&(s[n]=l[n]);return{$$typeof:kd,type:e,key:i,ref:o,props:s,_owner:Bx.current}}function t4(e,t){return{$$typeof:kd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zx(e){return typeof e=="object"&&e!==null&&e.$$typeof===kd}function r4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Lw=/\/+/g;function tp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?r4(""+e.key):t.toString(36)}function Hu(e,t,r,n,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case kd:case WD:o=!0}}if(o)return o=e,s=s(o),e=n===""?"."+tp(o,0):n,Mw(s)?(r="",e!=null&&(r=e.replace(Lw,"$&/")+"/"),Hu(s,t,r,"",function(d){return d})):s!=null&&(zx(s)&&(s=t4(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Lw,"$&/")+"/")+e)),t.push(s)),1;if(o=0,n=n===""?".":n+":",Mw(e))for(var l=0;l<e.length;l++){i=e[l];var c=n+tp(i,l);o+=Hu(i,t,r,c,s)}else if(c=e4(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=n+tp(i,l++),o+=Hu(i,t,r,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ru(e,t,r){if(e==null)return e;var n=[],s=0;return Hu(e,n,"","",function(i){return t.call(r,i,s++)}),n}function n4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pr={current:null},qu={transition:null},s4={ReactCurrentDispatcher:pr,ReactCurrentBatchConfig:qu,ReactCurrentOwner:Bx};function vS(){throw Error("act(...) is not supported in production builds of React.")}Pe.Children={map:ru,forEach:function(e,t,r){ru(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ru(e,function(){t++}),t},toArray:function(e){return ru(e,function(t){return t})||[]},only:function(e){if(!zx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Pe.Component=vl;Pe.Fragment=HD;Pe.Profiler=GD;Pe.PureComponent=Fx;Pe.StrictMode=qD;Pe.Suspense=ZD;
vendor: 4,693 bytes, lines 9-25
9Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s4;Pe.act=vS;Pe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=fS({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Bx.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)gS.call(t,c)&&!yS.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];n.children=l}return{$$typeof:kd,type:e.type,key:s,ref:i,props:n,_owner:o}};Pe.createContext=function(e){return e={$$typeof:YD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:KD,_context:e},e.Consumer=e};Pe.createElement=xS;Pe.createFactory=function(e){var t=xS.bind(null,e);return t.type=e,t};Pe.createRef=function(){return{current:null}};Pe.forwardRef=function(e){return{$$typeof:JD,render:e}};Pe.isValidElement=zx;Pe.lazy=function(e){return{$$typeof:QD,_payload:{_status:-1,_result:e},_init:n4}};Pe.memo=function(e,t){return{$$typeof:XD,type:e,compare:t===void 0?null:t}};Pe.startTransition=function(e){var t=qu.transition;qu.transition={};try{e()}finally{qu.transition=t}};Pe.unstable_act=vS;Pe.useCallback=function(e,t){return pr.current.useCallback(e,t)};Pe.useContext=function(e){return pr.current.useContext(e)};Pe.useDebugValue=function(){};Pe.useDeferredValue=function(e){return pr.current.useDeferredValue(e)};Pe.useEffect=function(e,t){return pr.current.useEffect(e,t)};Pe.useId=function(){return pr.current.useId()};Pe.useImperativeHandle=function(e,t,r){return pr.current.useImperativeHandle(e,t,r)};Pe.useInsertionEffect=function(e,t){return pr.current.useInsertionEffect(e,t)};Pe.useLayoutEffect=function(e,t){return pr.current.useLayoutEffect(e,t)};Pe.useMemo=function(e,t){return pr.current.useMemo(e,t)};Pe.useReducer=function(e,t,r){return pr.current.useReducer(e,t,r)};Pe.useRef=function(e){return pr.current.useRef(e)};Pe.useState=function(e){return pr.current.useState(e)};Pe.useSyncExternalStore=function(e,t,r){return pr.current.useSyncExternalStore(e,t,r)};Pe.useTransition=function(){return pr.current.useTransition()};Pe.version="18.3.1";uS.exports=Pe;var p=uS.exports;const M=cS(p),Vx=UD({__proto__:null,default:M},[p]);/**
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 a4=p,i4=Symbol.for("react.element"),o4=Symbol.for("react.fragment"),l4=Object.prototype.hasOwnProperty,c4=a4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d4={key:!0,ref:!0,__self:!0,__source:!0};function bS(e,t,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)l4.call(t,n)&&!d4.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:i4,type:e,key:i,ref:o,props:s,_owner:c4.current}}Mf.Fragment=o4;Mf.jsx=bS;Mf.jsxs=bS;dS.exports=Mf;var a=dS.exports,wS={exports:{}},zr={},kS={exports:{}},jS={};/**
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(e){function t(R,D){var U=R.length;R.push(D);e:for(;0<U;){var de=U-1>>>1,ue=R[de];if(0<s(ue,D))R[de]=D,R[U]=ue,U=de;else break e}}function r(R){return R.length===0?null:R[0]}function n(R){if(R.length===0)return null;var D=R[0],U=R.pop();if(U!==D){R[0]=U;e:for(var de=0,ue=R.length,ge=ue>>>1;de<ge;){var xe=2*(de+1)-1,$e=R[xe],et=xe+1,Q=R[et];if(0>s($e,U))et<ue&&0>s(Q,$e)?(R[de]=Q,R[et]=U,de=et):(R[de]=$e,R[xe]=U,de=xe);else if(et<ue&&0>s(Q,U))R[de]=Q,R[et]=U,de=et;else break e}}return D}function s(R,D){var U=R.sortIndex-D.sortIndex;return U!==0?U:R.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,h=null,f=3,m=!1,x=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);
vendor: 9,565 bytes, lines 25-34
25function w(R){for(var D=r(d);D!==null;){if(D.callback===null)n(d);else if(D.startTime<=R)n(d),D.sortIndex=D.expirationTime,t(c,D);else break;D=r(d)}}function k(R){if(y=!1,w(R),!x)if(r(c)!==null)x=!0,q(j);else{var D=r(d);D!==null&&$(k,D.startTime-R)}}function j(R,D){x=!1,y&&(y=!1,b(P),P=-1),m=!0;var U=f;try{for(w(D),h=r(c);h!==null&&(!(h.expirationTime>D)||R&&!V());){var de=h.callback;if(typeof de=="function"){h.callback=null,f=h.priorityLevel;var ue=de(h.expirationTime<=D);D=e.unstable_now(),typeof ue=="function"?h.callback=ue:h===r(c)&&n(c),w(D)}else n(c);h=r(c)}if(h!==null)var ge=!0;else{var xe=r(d);xe!==null&&$(k,xe.startTime-D),ge=!1}return ge}finally{h=null,f=U,m=!1}}var S=!1,T=null,P=-1,C=5,A=-1;function V(){return!(e.unstable_now()-A<C)}function I(){if(T!==null){var R=e.unstable_now();A=R;var D=!0;try{D=T(!0,R)}finally{D?H():(S=!1,T=null)}}else S=!1}var H;if(typeof g=="function")H=function(){g(I)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,J=F.port2;F.port1.onmessage=I,H=function(){J.postMessage(null)}}else H=function(){v(I,0)};function q(R){T=R,S||(S=!0,H())}function $(R,D){P=v(function(){R(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,q(j))},e.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"):C=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var U=f;f=D;try{return R()}finally{f=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,D){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var U=f;f=R;try{return D()}finally{f=U}},e.unstable_scheduleCallback=function(R,D,U){var de=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?de+U:de):U=de,R){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=U+ue,R={id:u++,callback:D,priorityLevel:R,startTime:U,expirationTime:ue,sortIndex:-1},U>de?(R.sortIndex=U,t(d,R),r(c)===null&&R===r(d)&&(y?(b(P),P=-1):y=!0,$(k,U-de))):(R.sortIndex=ue,t(c,R),x||m||(x=!0,q(j))),R},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(R){var D=f;return function(){var U=f;f=D;try{return R.apply(this,arguments)}finally{f=U}}}})(jS);kS.exports=jS;var u4=kS.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 h4=p,Lr=u4;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NS=new Set,Pc={};function Hi(e,t){Qo(e,t),Qo(e+"Capture",t)}function Qo(e,t){for(Pc[e]=t,e=0;e<t.length;e++)NS.add(t[e])}var Is=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tg=Object.prototype.hasOwnProperty,f4=/^[: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]*$/,Fw={},$w={};function m4(e){return Tg.call($w,e)?!0:Tg.call(Fw,e)?!1:f4.test(e)?$w[e]=!0:(Fw[e]=!0,!1)}function p4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function g4(e,t,r,n){if(t===null||typeof t>"u"||p4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gr(e,t,r,n,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zt[e]=new gr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zt[t]=new gr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zt[e]=new gr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zt[e]=new gr(e,2,!1,e,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(e){Zt[e]=new gr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zt[e]=new gr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zt[e]=new gr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zt[e]=new gr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zt[e]=new gr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ux=/[\-:]([a-z])/g;function Wx(e){return e[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(e){var t=e.replace(Ux,Wx);Zt[t]=new gr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ux,Wx);Zt[t]=new gr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ux,Wx);Zt[t]=new gr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zt[e]=new gr(e,1,!1,e.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zt[e]=new gr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hx(e,t,r,n){var s=Zt.hasOwnProperty(t)?Zt[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(g4(t,r,s,n)&&(r=null),n||s===null?m4(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Vs=h4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,nu=Symbol.for("react.element"),xo=Symbol.for("react.portal"),vo=Symbol.for("react.fragment"),qx=Symbol.for("react.strict_mode"),Eg=Symbol.for("react.profiler"),SS=Symbol.for("react.provider"),CS=Symbol.for("react.context"),Gx=Symbol.for("react.forward_ref"),Rg=Symbol.for("react.suspense"),Ag=Symbol.for("react.suspense_list"),Kx=Symbol.for("react.memo"),ra=Symbol.for("react.lazy"),_S=Symbol.for("react.offscreen"),Bw=Symbol.iterator;function Il(e){return e===null||typeof e!="object"?null:(e=Bw&&e[Bw]||e["@@iterator"],typeof e=="function"?e:null)}var yt=Object.assign,rp;function ec(e){if(rp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);rp=t&&t[1]||""}return`
34`+rp+e}var np=!1;function sp(e,t){if(!e||np)return"";np=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(d){if(d&&n&&typeof d.stack=="string"){for(var s=d.stack.split(`
35`),i=n.stack.split(`
36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var c=`
37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{np=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ec(e):""}function y4(e){switch(e.tag){case 5:return ec(e.type);case 16:return ec("Lazy");case 13:return ec("Suspense");case 19:return ec("SuspenseList");case 0:case 2:case 15:return e=sp(e.type,!1),e;case 11:return e=sp(e.type.render,!1),e;case 1:return e=sp(e.type,!0),e;default:return""}}function Pg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vo:return"Fragment";case xo:return"Portal";case Eg:return"Profiler";case qx:return"StrictMode";case Rg:return"Suspense";case Ag:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case CS:return(e.displayName||"Context")+".Consumer";case SS:return(e._context.displayName||"Context")+".Provider";case Gx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kx:return t=e.displayName||null,t!==null?t:Pg(e.type)||"Memo";case ra:t=e._payload,e=e._init;try{return Pg(e(t))}catch{}}return null}function x4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pg(t);case 8:return t===qx?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ia(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function v4(e){var t=TS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function su(e){e._valueTracker||(e._valueTracker=v4(e))}function ES(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=TS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Og(e,t){var r=t.checked;return yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function zw(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ia(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RS(e,t){t=t.checked,t!=null&&Hx(e,"checked",t,!1)}function Dg(e,t){RS(e,t);var r=Ia(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ig(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ig(e,t.type,Ia(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vw(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ig(e,t,r){(t!=="number"||vh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var tc=Array.isArray;function Do(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ia(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Mg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return yt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Uw(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(K(92));if(tc(r)){if(1<r.length)throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ia(r)}}function AS(e,t){var r=Ia(t.value),n=Ia(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Ww(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function PS(e){switch(e){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 Lg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?PS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var au,OS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(au=au||document.createElement("div"),au.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=au.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var uc={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},b4=["Webkit","ms","Moz","O"];Object.keys(uc).forEach(function(e){b4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uc[t]=uc[e]})});function DS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||uc.hasOwnProperty(e)&&uc[e]?(""+t).trim():t+"px"}function IS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=DS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var w4=yt({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 Fg(e,t){if(t){if(w4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function $g(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Bg=null;function Yx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zg=null,Io=null,Mo=null;function Hw(e){if(e=Sd(e)){if(typeof zg!="function")throw Error(K(280));var t=e.stateNode;t&&(t=zf(t),zg(e.stateNode,e.type,t))}}function MS(e){Io?Mo?Mo.push(e):Mo=[e]:Io=e}function LS(){if(Io){var e=Io,t=Mo;if(Mo=Io=null,Hw(e),t)for(e=0;e<t.length;e++)Hw(t[e])}}function FS(e,t){return e(t)}function $S(){}var ap=!1;function BS(e,t,r){if(ap)return e(t,r);ap=!0;try{return FS(e,t,r)}finally{ap=!1,(Io!==null||Mo!==null)&&($S(),LS())}}function Dc(e,t){var r=e.stateNode;if(r===null)return null;var n=zf(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(K(231,t,typeof r));return r}var Vg=!1;if(Is)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Vg=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Vg=!1}function k4(e,t,r,n,s,i,o,l,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var hc=!1,bh=null,wh=!1,Ug=null,j4={onError:function(e){hc=!0,bh=e}};function N4(e,t,r,n,s,i,o,l,c){hc=!1,bh=null,k4.apply(j4,arguments)}function S4(e,t,r,n,s,i,o,l,c){if(N4.apply(this,arguments),hc){if(hc){var d=bh;hc=!1,bh=null}else throw Error(K(198));wh||(wh=!0,Ug=d)}}function qi(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function zS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function qw(e){if(qi(e)!==e)throw Error(K(188))}function C4(e){var t=e.alternate;if(!t){if(t=qi(e),t===null)throw Error(K(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return qw(s),e;if(i===n)return qw(s),t;i=i.sibling}throw Error(K(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,l=s.child;l;){if(l===r){o=!0,r=s,n=i;break}if(l===n){o=!0,n=s,r=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===r){o=!0,r=i,n=s;break}if(l===n){o=!0,n=i,r=s;break}l=l.sibling}if(!o)throw Error(K(189))}}if(r.alternate!==n)throw Error(K(190))}if(r.tag!==3)throw Error(K(188));return r.stateNode.current===r?e:t}function VS(e){return e=C4(e),e!==null?US(e):null}function US(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=US(e);if(t!==null)return t;e=e.sibling}return null}var WS=Lr.unstable_scheduleCallback,Gw=Lr.unstable_cancelCallback,_4=Lr.unstable_shouldYield,T4=Lr.unstable_requestPaint,Ct=Lr.unstable_now,E4=Lr.unstable_getCurrentPriorityLevel,Jx=Lr.unstable_ImmediatePriority,HS=Lr.unstable_UserBlockingPriority,kh=Lr.unstable_NormalPriority,R4=Lr.unstable_LowPriority,qS=Lr.unstable_IdlePriority,Lf=null,rs=null;function A4(e){if(rs&&typeof rs.onCommitFiberRoot=="function")try{rs.onCommitFiberRoot(Lf,e,void 0,(e.current.flags&128)===128)}catch{}}var Tn=Math.clz32?Math.clz32:D4,P4=Math.log,O4=Math.LN2;function D4(e){return e>>>=0,e===0?32:31-(P4(e)/O4|0)|0}var iu=64,ou=4194304;function rc(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function jh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~s;l!==0?n=rc(l):(i&=o,i!==0&&(n=rc(i)))}else o=r&~s,o!==0?n=rc(o):i!==0&&(n=rc(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Tn(t),s=1<<r,n|=e[r],t&=~s;return n}function I4(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 M4(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Tn(i),l=1<<o,c=s[o];c===-1?(!(l&r)||l&n)&&(s[o]=I4(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Wg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function GS(){var e=iu;return iu<<=1,!(iu&4194240)&&(iu=64),e}function ip(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 3,579 bytes, line 37
37function jd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tn(t),e[t]=r}function L4(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-Tn(r),i=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~i}}function Zx(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Tn(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var Ye=0;function KS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var YS,Xx,JS,ZS,XS,Hg=!1,lu=[],ka=null,ja=null,Na=null,Ic=new Map,Mc=new Map,aa=[],F4="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 Kw(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":ja=null;break;case"mouseover":case"mouseout":Na=null;break;case"pointerover":case"pointerout":Ic.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mc.delete(t.pointerId)}}function Ll(e,t,r,n,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Sd(t),t!==null&&Xx(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function $4(e,t,r,n,s){switch(t){case"focusin":return ka=Ll(ka,e,t,r,n,s),!0;case"dragenter":return ja=Ll(ja,e,t,r,n,s),!0;case"mouseover":return Na=Ll(Na,e,t,r,n,s),!0;case"pointerover":var i=s.pointerId;return Ic.set(i,Ll(Ic.get(i)||null,e,t,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,Mc.set(i,Ll(Mc.get(i)||null,e,t,r,n,s)),!0}return!1}function QS(e){var t=pi(e.target);if(t!==null){var r=qi(t);if(r!==null){if(t=r.tag,t===13){if(t=zS(r),t!==null){e.blockedOn=t,XS(e.priority,function(){JS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=qg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Bg=n,r.target.dispatchEvent(n),Bg=null}else return t=Sd(r),t!==null&&Xx(t),e.blockedOn=r,!1;t.shift()}return!0}function Yw(e,t,r){Gu(e)&&r.delete(t)}function B4(){Hg=!1,ka!==null&&Gu(ka)&&(ka=null),ja!==null&&Gu(ja)&&(ja=null),Na!==null&&Gu(Na)&&(Na=null),Ic.forEach(Yw),Mc.forEach(Yw)}function Fl(e,t){e.blockedOn===t&&(e.blockedOn=null,Hg||(Hg=!0,Lr.unstable_scheduleCallback(Lr.unstable_NormalPriority,B4)))}function Lc(e){function t(s){return Fl(s,e)}if(0<lu.length){Fl(lu[0],e);for(var r=1;r<lu.length;r++){var n=lu[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ka!==null&&Fl(ka,e),ja!==null&&Fl(ja,e),Na!==null&&Fl(Na,e),Ic.forEach(t),Mc.forEach(t),r=0;r<aa.length;r++)n=aa[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<aa.length&&(r=aa[0],r.blockedOn===null);)QS(r),r.blockedOn===null&&aa.shift()}var Lo=Vs.ReactCurrentBatchConfig,Nh=!0;function z4(e,t,r,n){var s=Ye,i=Lo.transition;Lo.transition=null;try{Ye=1,Qx(e,t,r,n)}finally{Ye=s,Lo.transition=i}}function V4(e,t,r,n){var s=Ye,i=Lo.transition;Lo.transition=null;try{Ye=4,Qx(e,t,r,n)}finally{Ye=s,Lo.transition=i}}function Qx(e,t,r,n){if(Nh){var s=qg(e,t,r,n);if(s===null)gp(e,t,n,Sh,r),Kw(e,n);else if($4(s,e,t,r,n))n.stopPropagation();
vendor: 10,909 bytes, line 37
37else if(Kw(e,n),t&4&&-1<F4.indexOf(e)){for(;s!==null;){var i=Sd(s);if(i!==null&&YS(i),i=qg(e,t,r,n),i===null&&gp(e,t,n,Sh,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else gp(e,t,n,null,r)}}var Sh=null;function qg(e,t,r,n){if(Sh=null,e=Yx(n),e=pi(e),e!==null)if(t=qi(e),t===null)e=null;else if(r=t.tag,r===13){if(e=zS(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sh=e,null}function eC(e){switch(e){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(E4()){case Jx:return 1;case HS:return 4;case kh:case R4:return 16;case qS:return 536870912;default:return 16}default:return 16}}var ya=null,ev=null,Ku=null;function tC(){if(Ku)return Ku;var e,t=ev,r=t.length,n,s="value"in ya?ya.value:ya.textContent,i=s.length;for(e=0;e<r&&t[e]===s[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===s[i-n];n++);return Ku=s.slice(e,1<n?1-n:void 0)}function Yu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function cu(){return!0}function Jw(){return!1}function Vr(e){function t(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?cu:Jw,this.isPropagationStopped=Jw,this}return yt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=cu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tv=Vr(bl),Nd=yt({},bl,{view:0,detail:0}),U4=Vr(Nd),op,lp,$l,Ff=yt({},Nd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$l&&($l&&e.type==="mousemove"?(op=e.screenX-$l.screenX,lp=e.screenY-$l.screenY):lp=op=0,$l=e),op)},movementY:function(e){return"movementY"in e?e.movementY:lp}}),Zw=Vr(Ff),W4=yt({},Ff,{dataTransfer:0}),H4=Vr(W4),q4=yt({},Nd,{relatedTarget:0}),cp=Vr(q4),G4=yt({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),K4=Vr(G4),Y4=yt({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J4=Vr(Y4),Z4=yt({},bl,{data:0}),Xw=Vr(Z4),X4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q4={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"},eI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eI[e])?!!t[e]:!1}function rv(){return tI}var rI=yt({},Nd,{key:function(e){if(e.key){var t=X4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rv,charCode:function(e){return e.type==="keypress"?Yu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nI=Vr(rI),sI=yt({},Ff,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qw=Vr(sI),aI=yt({},Nd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rv}),iI=Vr(aI),oI=yt({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),lI=Vr(oI),cI=yt({},Ff,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),dI=Vr(cI),uI=[9,13,27,32],nv=Is&&"CompositionEvent"in window,fc=null;Is&&"documentMode"in document&&(fc=document.documentMode);var hI=Is&&"TextEvent"in window&&!fc,rC=Is&&(!nv||fc&&8<fc&&11>=fc),e0=" ",t0=!1;function nC(e,t){switch(e){case"keyup":return uI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bo=!1;function fI(e,t){switch(e){case"compositionend":return sC(t);case"keypress":return t.which!==32?null:(t0=!0,e0);case"textInput":return e=t.data,e===e0&&t0?null:e;default:return null}}function mI(e,t){if(bo)return e==="compositionend"||!nv&&nC(e,t)?(e=tC(),Ku=ev=ya=null,bo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rC&&t.locale!=="ko"?null:t.data;default:return null}}var pI={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 r0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pI[e.type]:t==="textarea"}function aC(e,t,r,n){MS(n),t=Ch(t,"onChange"),0<t.length&&(r=new tv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var mc=null,Fc=null;function gI(e){gC(e,0)}function $f(e){var t=jo(e);if(ES(t))return e}function yI(e,t){if(e==="change")return t}var iC=!1;if(Is){var dp;if(Is){var up="oninput"in document;if(!up){var n0=document.createElement("div");n0.setAttribute("oninput","return;"),up=typeof n0.oninput=="function"}dp=up}else dp=!1;iC=dp&&(!document.documentMode||9<document.documentMode)}function s0(){mc&&(mc.detachEvent("onpropertychange",oC),Fc=mc=null)}function oC(e){if(e.propertyName==="value"&&$f(Fc)){var t=[];aC(t,Fc,e,Yx(e)),BS(gI,t)}}function xI(e,t,r){e==="focusin"?(s0(),mc=t,Fc=r,mc.attachEvent("onpropertychange",oC)):e==="focusout"&&s0()}function vI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $f(Fc)}function bI(e,t){if(e==="click")return $f(t)}function wI(e,t){if(e==="input"||e==="change")return $f(t)}function kI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pn=typeof Object.is=="function"?Object.is:kI;function $c(e,t){if(Pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!Tg.call(t,s)||!Pn(e[s],t[s]))return!1}return!0}function a0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function i0(e,t){var r=a0(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=a0(r)}}function lC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cC(){for(var e=window,t=vh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vh(e.document)}return t}function sv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jI(e){var t=cC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&lC(r.ownerDocument.documentElement,r)){if(n!==null&&sv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!e.extend&&i>n&&(s=n,n=i,i=s),s=i0(r,i);var o=i0(r,n);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var NI=Is&&"documentMode"in document&&11>=document.documentMode,wo=null,Gg=null,pc=null,Kg=!1;function o0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Kg||wo==null||wo!==vh(n)||(n=wo,"selectionStart"in n&&sv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),pc&&$c(pc,n)||(pc=n,n=Ch(Gg,"onSelect"),0<n.length&&(t=new tv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=wo)))}function du(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ko={animationend:du("Animation","AnimationEnd"),animationiteration:du("Animation","AnimationIteration"),animationstart:du("Animation","AnimationStart"),transitionend:du("Transition","TransitionEnd")},hp={},dC={};Is&&(dC=document.createElement("div").style,"AnimationEvent"in window||(delete ko.animationend.animation,delete ko.animationiteration.animation,delete ko.animationstart.animation),"TransitionEvent"in window||delete ko.transitionend.transition);function Bf(e){if(hp[e])return hp[e];if(!ko[e])return e;var t=ko[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in dC)return hp[e]=t[r];return e}var uC=Bf("animationend"),hC=Bf("animationiteration"),fC=Bf("animationstart"),mC=Bf("transitionend"),pC=new Map,l0="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 Ua(e,t){pC.set(e,t),Hi(t,[e])}for(var fp=0;fp<l0.length;fp++){var mp=l0[fp],SI=mp.toLowerCase(),CI=mp[0].toUpperCase()+mp.slice(1);Ua(SI,"on"+CI)}Ua(uC,"onAnimationEnd");Ua(hC,"onAnimationIteration");Ua(fC,"onAnimationStart");Ua("dblclick","onDoubleClick");Ua("focusin","onFocus");Ua("focusout","onBlur");Ua(mC,"onTransitionEnd");Qo("onMouseEnter",["mouseout","mouseover"]);Qo("onMouseLeave",["mouseout","mouseover"]);Qo("onPointerEnter",["pointerout","pointerover"]);Qo("onPointerLeave",["pointerout","pointerover"]);Hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nc="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(" "),_I=new Set("cancel close invalid load scroll toggle".split(" ").concat(nc));function c0(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,S4(n,t,void 0,e),e.currentTarget=null}function gC(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;c0(s,l,d),i=c}else for(o=0;o<n.length;o++){if(l=n[o],c=l.instance,d=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;c0(s,l,d),i=c}}}if(wh)throw e=Ug,wh=!1,Ug=null,e}function it(e,t){var r=t[Qg];r===void 0&&(r=t[Qg]=new Set);var n=e+"__bubble";r.has(n)||(yC(t,e,2,!1),r.add(n))}function pp(e,t,r){var n=0;t&&(n|=4),yC(r,e,n,t)}var uu="_reactListening"+Math.random().toString(36).slice(2);function Bc(e){if(!e[uu]){e[uu]=!0,NS.forEach(function(r){r!=="selectionchange"&&(_I.has(r)||pp(r,!1,e),pp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uu]||(t[uu]=!0,pp("selectionchange",!1,t))}}function yC(e,t,r,n){switch(eC(t)){case 1:var s=z4;break;case 4:s=V4;break;default:s=Qx}r=s.bind(null,t,r,e),s=void 0,!Vg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function gp(e,t,r,n,s){var i=n;
vendor: 21,563 bytes, lines 37-38
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=pi(l),o===null)return;if(c=o.tag,c===5||c===6){n=i=o;continue e}l=l.parentNode}}n=n.return}BS(function(){var d=i,u=Yx(r),h=[];e:{var f=pC.get(e);if(f!==void 0){var m=tv,x=e;switch(e){case"keypress":if(Yu(r)===0)break e;case"keydown":case"keyup":m=nI;break;case"focusin":x="focus",m=cp;break;case"focusout":x="blur",m=cp;break;case"beforeblur":case"afterblur":m=cp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Zw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=H4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=iI;break;case uC:case hC:case fC:m=K4;break;case mC:m=lI;break;case"scroll":m=U4;break;case"wheel":m=dI;break;case"copy":case"cut":case"paste":m=J4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Qw}var y=(t&4)!==0,v=!y&&e==="scroll",b=y?f!==null?f+"Capture":null:f;y=[];for(var g=d,w;g!==null;){w=g;var k=w.stateNode;if(w.tag===5&&k!==null&&(w=k,b!==null&&(k=Dc(g,b),k!=null&&y.push(zc(g,k,w)))),v)break;g=g.return}0<y.length&&(f=new m(f,x,null,r,u),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&r!==Bg&&(x=r.relatedTarget||r.fromElement)&&(pi(x)||x[Ms]))break e;if((m||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,m?(x=r.relatedTarget||r.toElement,m=d,x=x?pi(x):null,x!==null&&(v=qi(x),x!==v||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=d),m!==x)){if(y=Zw,k="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=Qw,k="onPointerLeave",b="onPointerEnter",g="pointer"),v=m==null?f:jo(m),w=x==null?f:jo(x),f=new y(k,g+"leave",m,r,u),f.target=v,f.relatedTarget=w,k=null,pi(u)===d&&(y=new y(b,g+"enter",x,r,u),y.target=w,y.relatedTarget=v,k=y),v=k,m&&x)t:{for(y=m,b=x,g=0,w=y;w;w=Zi(w))g++;for(w=0,k=b;k;k=Zi(k))w++;for(;0<g-w;)y=Zi(y),g--;for(;0<w-g;)b=Zi(b),w--;for(;g--;){if(y===b||b!==null&&y===b.alternate)break t;y=Zi(y),b=Zi(b)}y=null}else y=null;m!==null&&d0(h,f,m,y,!1),x!==null&&v!==null&&d0(h,v,x,y,!0)}}e:{if(f=d?jo(d):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var j=yI;else if(r0(f))if(iC)j=wI;else{j=vI;var S=xI}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(j=bI);if(j&&(j=j(e,d))){aC(h,j,r,u);break e}S&&S(e,f,d),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Ig(f,"number",f.value)}switch(S=d?jo(d):window,e){case"focusin":(r0(S)||S.contentEditable==="true")&&(wo=S,Gg=d,pc=null);break;case"focusout":pc=Gg=wo=null;break;case"mousedown":Kg=!0;break;case"contextmenu":case"mouseup":case"dragend":Kg=!1,o0(h,r,u);break;case"selectionchange":if(NI)break;case"keydown":case"keyup":o0(h,r,u)}var T;if(nv)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else bo?nC(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(rC&&r.locale!=="ko"&&(bo||P!=="onCompositionStart"?P==="onCompositionEnd"&&bo&&(T=tC()):(ya=u,ev="value"in ya?ya.value:ya.textContent,bo=!0)),S=Ch(d,P),0<S.length&&(P=new Xw(P,e,null,r,u),h.push({event:P,listeners:S}),T?P.data=T:(T=sC(r),T!==null&&(P.data=T)))),(T=hI?fI(e,r):mI(e,r))&&(d=Ch(d,"onBeforeInput"),0<d.length&&(u=new Xw("onBeforeInput","beforeinput",null,r,u),h.push({event:u,listeners:d}),u.data=T))}gC(h,t)})}function zc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ch(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Dc(e,r),i!=null&&n.unshift(zc(e,i,s)),i=Dc(e,t),i!=null&&n.push(zc(e,i,s))),e=e.return}return n}function Zi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function d0(e,t,r,n,s){for(var i=t._reactName,o=[];r!==null&&r!==n;){var l=r,c=l.alternate,d=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&d!==null&&(l=d,s?(c=Dc(r,i),c!=null&&o.unshift(zc(r,c,l))):s||(c=Dc(r,i),c!=null&&o.push(zc(r,c,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var TI=/\r\n?/g,EI=/\u0000|\uFFFD/g;function u0(e){return(typeof e=="string"?e:""+e).replace(TI,`
38`).replace(EI,"")}function hu(e,t,r){if(t=u0(t),u0(e)!==t&&r)throw Error(K(425))}function _h(){}var Yg=null,Jg=null;function Zg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xg=typeof setTimeout=="function"?setTimeout:void 0,RI=typeof clearTimeout=="function"?clearTimeout:void 0,h0=typeof Promise=="function"?Promise:void 0,AI=typeof queueMicrotask=="function"?queueMicrotask:typeof h0<"u"?function(e){return h0.resolve(null).then(e).catch(PI)}:Xg;function PI(e){setTimeout(function(){throw e})}function yp(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Lc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Lc(t)}function Sa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function f0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var wl=Math.random().toString(36).slice(2),Zn="__reactFiber$"+wl,Vc="__reactProps$"+wl,Ms="__reactContainer$"+wl,Qg="__reactEvents$"+wl,OI="__reactListeners$"+wl,DI="__reactHandles$"+wl;function pi(e){var t=e[Zn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ms]||r[Zn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=f0(e);e!==null;){if(r=e[Zn])return r;e=f0(e)}return t}e=r,r=e.parentNode}return null}function Sd(e){return e=e[Zn]||e[Ms],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function zf(e){return e[Vc]||null}var ey=[],No=-1;function Wa(e){return{current:e}}function ct(e){0>No||(e.current=ey[No],ey[No]=null,No--)}function nt(e,t){No++,ey[No]=e.current,e.current=t}var Ma={},or=Wa(Ma),Nr=Wa(!1),Pi=Ma;function el(e,t){var r=e.type.contextTypes;if(!r)return Ma;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Sr(e){return e=e.childContextTypes,e!=null}function Th(){ct(Nr),ct(or)}function m0(e,t,r){if(or.current!==Ma)throw Error(K(168));nt(or,t),nt(Nr,r)}function xC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(K(108,x4(e)||"Unknown",s));return yt({},r,n)}function Eh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ma,Pi=or.current,nt(or,e),nt(Nr,Nr.current),!0}function p0(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=xC(e,t,Pi),n.__reactInternalMemoizedMergedChildContext=e,ct(Nr),ct(or),nt(or,e)):ct(Nr),nt(Nr,r)}var Ns=null,Vf=!1,xp=!1;function vC(e){Ns===null?Ns=[e]:Ns.push(e)}function II(e){Vf=!0,vC(e)}function Ha(){if(!xp&&Ns!==null){xp=!0;var e=0,t=Ye;try{var r=Ns;for(Ye=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ns=null,Vf=!1}catch(s){throw Ns!==null&&(Ns=Ns.slice(e+1)),WS(Jx,Ha),s}finally{Ye=t,xp=!1}}return null}var So=[],Co=0,Rh=null,Ah=0,qr=[],Gr=0,Oi=null,Ts=1,Es="";function ii(e,t){So[Co++]=Ah,So[Co++]=Rh,Rh=e,Ah=t}function bC(e,t,r){qr[Gr++]=Ts,qr[Gr++]=Es,qr[Gr++]=Oi,Oi=e;var n=Ts;e=Es;var s=32-Tn(n)-1;n&=~(1<<s),r+=1;var i=32-Tn(t)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,Ts=1<<32-Tn(t)+s|r<<s|n,Es=i+e}else Ts=1<<i|r<<s|n,Es=e}function av(e){e.return!==null&&(ii(e,1),bC(e,1,0))}function iv(e){for(;e===Rh;)Rh=So[--Co],So[Co]=null,Ah=So[--Co],So[Co]=null;for(;e===Oi;)Oi=qr[--Gr],qr[Gr]=null,Es=qr[--Gr],qr[Gr]=null,Ts=qr[--Gr],qr[Gr]=null}var Ir=null,Dr=null,ut=!1,Nn=null;function wC(e,t){var r=Yr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function g0(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ir=e,Dr=Sa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ir=e,Dr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Oi!==null?{id:Ts,overflow:Es}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Yr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ir=e,Dr=null,!0):!1;default:return!1}}function ty(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ry(e){if(ut){var t=Dr;if(t){var r=t;if(!g0(e,t)){if(ty(e))throw Error(K(418));t=Sa(r.nextSibling);var n=Ir;t&&g0(e,t)?wC(n,r):(e.flags=e.flags&-4097|2,ut=!1,Ir=e)}}else{if(ty(e))throw Error(K(418));e.flags=e.flags&-4097|2,ut=!1,Ir=e}}}function y0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ir=e}function fu(e){if(e!==Ir)return!1;if(!ut)return y0(e),ut=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zg(e.type,e.memoizedProps)),t&&(t=Dr)){if(ty(e))throw kC(),Error(K(418));for(;t;)wC(e,t),t=Sa(t.nextSibling)}if(y0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Dr=Sa(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Dr=null}}else Dr=Ir?Sa(e.stateNode.nextSibling):null;return!0}function kC(){for(var e=Dr;e;)e=Sa(e.nextSibling)}function tl(){Dr=Ir=null,ut=!1}function ov(e){Nn===null?Nn=[e]:Nn.push(e)}var MI=Vs.ReactCurrentBatchConfig;function Bl(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(K(309));var n=r.stateNode}if(!n)throw Error(K(147,e));var s=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(K(284));if(!r._owner)throw Error(K(290,e))}return e}function mu(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function x0(e){var t=e._init;return t(e._payload)}function jC(e){function t(b,g){if(e){var w=b.deletions;w===null?(b.deletions=[g],b.flags|=16):w.push(g)}}function r(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function n(b,g){for(b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function s(b,g){return b=Ea(b,g),b.index=0,b.sibling=null,b}function i(b,g,w){return b.index=w,e?(w=b.alternate,w!==null?(w=w.index,w<g?(b.flags|=2,g):w):(b.flags|=2,g)):(b.flags|=1048576,g)}function o(b){return e&&b.alternate===null&&(b.flags|=2),b}function l(b,g,w,k){return g===null||g.tag!==6?(g=Sp(w,b.mode,k),g.return=b,g):(g=s(g,w),g.return=b,g)}function c(b,g,w,k){var j=w.type;return j===vo?u(b,g,w.props.children,k,w.key):g!==null&&(g.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ra&&x0(j)===g.type)?(k=s(g,w.props),k.ref=Bl(b,g,w),k.return=b,k):(k=rh(w.type,w.key,w.props,null,b.mode,k),k.ref=Bl(b,g,w),k.return=b,k)}function d(b,g,w,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Cp(w,b.mode,k),g.return=b,g):(g=s(g,w.children||[]),g.return=b,g)}function u(b,g,w,k,j){return g===null||g.tag!==7?(g=Ei(w,b.mode,k,j),g.return=b,g):(g=s(g,w),g.return=b,g)}function h(b,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Sp(""+g,b.mode,w),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case nu:return w=rh(g.type,g.key,g.props,null,b.mode,w),w.ref=Bl(b,null,g),w.return=b,w;case xo:return g=Cp(g,b.mode,w),g.return=b,g;case ra:var k=g._init;return h(b,k(g._payload),w)}if(tc(g)||Il(g))return g=Ei(g,b.mode,w,null),g.return=b,g;mu(b,g)}return null}function f(b,g,w,k){var j=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return j!==null?null:l(b,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case nu:return w.key===j?c(b,g,w,k):null;case xo:return w.key===j?d(b,g,w,k):null;case ra:return j=w._init,f(b,g,j(w._payload),k)}if(tc(w)||Il(w))return j!==null?null:u(b,g,w,k,null);mu(b,w)}return null}function m(b,g,w,k,j){if(typeof k=="string"&&k!==""||typeof k=="number")return b=b.get(w)||null,l(g,b,""+k,j);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case nu:return b=b.get(k.key===null?w:k.key)||null,c(g,b,k,j);case xo:return b=b.get(k.key===null?w:k.key)||null,d(g,b,k,j);case ra:var S=k._init;return m(b,g,w,S(k._payload),j)}if(tc(k)||Il(k))return b=b.get(w)||null,u(g,b,k,j,null);mu(g,k)}return null}function x(b,g,w,k){for(var j=null,S=null,T=g,P=g=0,C=null;T!==null&&P<w.length;P++){T.index>P?(C=T,T=null):C=T.sibling;var A=f(b,T,w[P],k);if(A===null){T===null&&(T=C);break}e&&T&&A.alternate===null&&t(b,T),g=i(A,g,P),S===null?j=A:S.sibling=A,S=A,T=C}if(P===w.length)return r(b,T),ut&&ii(b,P),j;if(T===null){for(;P<w.length;P++)T=h(b,w[P],k),T!==null&&(g=i(T,g,P),S===null?j=T:S.sibling=T,S=T);return ut&&ii(b,P),j}for(T=n(b,T);P<w.length;P++)C=m(T,b,P,w[P],k),C!==null&&(e&&C.alternate!==null&&T.delete(C.key===null?P:C.key),g=i(C,g,P),S===null?j=C:S.sibling=C,S=C);return e&&T.forEach(function(V){return t(b,V)}),ut&&ii(b,P),j}function y(b,g,w,k){var j=Il(w);if(typeof j!="function")throw Error(K(150));if(w=j.call(w),w==null)throw Error(K(151));for(var S=j=null,T=g,P=g=0,C=null,A=w.next();T!==null&&!A.done;P++,A=w.next()){T.index>P?(C=T,T=null):C=T.sibling;var V=f(b,T,A.value,k);if(V===null){T===null&&(T=C);break}e&&T&&V.alternate===null&&t(b,T),g=i(V,g,P),S===null?j=V:S.sibling=V,S=V,T=C}if(A.done)return r(b,T),ut&&ii(b,P),j;if(T===null){for(;!A.done;P++,A=w.next())A=h(b,A.value,k),A!==null&&(g=i(A,g,P),S===null?j=A:S.sibling=A,S=A);return ut&&ii(b,P),j}for(T=n(b,T);!A.done;P++,A=w.next())A=m(T,b,P,A.value,k),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?P:A.key),g=i(A,g,P),S===null?j=A:S.sibling=A,S=A);return e&&T.forEach(function(I){return t(b,I)}),ut&&ii(b,P),j}function v(b,g,w,k){if(typeof w=="object"&&w!==null&&w.type===vo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case nu:e:{for(var j=w.key,S=g;S!==null;){if(S.key===j){if(j=w.type,j===vo){if(S.tag===7){r(b,S.sibling),g=s(S,w.props.children),g.return=b,b=g;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ra&&x0(j)===S.type){r(b,S.sibling),g=s(S,w.props),g.ref=Bl(b,S,w),g.return=b,b=g;break e}r(b,S);break}else t(b,S);S=S.sibling}w.type===vo?(g=Ei(w.props.children,b.mode,k,w.key),g.return=b,b=g):(k=rh(w.type,w.key,w.props,null,b.mode,k),k.ref=Bl(b,g,w),k.return=b,b=k)}return o(b);case xo:e:{for(S=w.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){r(b,g.sibling),g=s(g,w.children||[]),g.return=b,b=g;break e}else{r(b,g);break}else t(b,g);g=g.sibling}g=Cp(w,b.mode,k),g.return=b,b=g}return o(b);case ra:return S=w._init,v(b,g,S(w._payload),k)}if(tc(w))return x(b,g,w,k);if(Il(w))return y(b,g,w,k);mu(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(r(b,g.sibling),g=s(g,w),g.return=b,b=g):(r(b,g),g=Sp(w,b.mode,k),g.return=b,b=g),o(b)):r(b,g)}return v}var rl=jC(!0),NC=jC(!1),Ph=Wa(null),Oh=null,_o=null,lv=null;function cv(){lv=_o=Oh=null}function dv(e){var t=Ph.current;ct(Ph),e._currentValue=t}function ny(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Fo(e,t){Oh=e,lv=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kr=!0),e.firstContext=null)}function en(e){var t=e._currentValue;if(lv!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(Oh===null)throw Error(K(308));_o=e,Oh.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var gi=null;function uv(e){gi===null?gi=[e]:gi.push(e)}function SC(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,uv(t)):(r.next=s.next,s.next=r),t.interleaved=r,Ls(e,n)}function Ls(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var na=!1;function hv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function CC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ds(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Me&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,Ls(e,r)}return s=n.interleaved,s===null?(t.next=t,uv(n)):(t.next=s.next,s.next=t),n.interleaved=t,Ls(e,r)}function Ju(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Zx(e,r)}}function v0(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=t:i=i.next=t}else s=i=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Dh(e,t,r,n){var s=e.updateQueue;na=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?i=d:o.next=d,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;o=0,u=d=c=null,l=i;do{var f=l.lane,m=l.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,y=l;switch(f=t,m=r,y.tag){case 1:if(x=y.payload,typeof x=="function"){h=x.call(m,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,f=typeof x=="function"?x.call(m,h,f):x,f==null)break e;h=yt({},h,f);break e;case 2:na=!0}}l.callback!==null&&l.lane!==0&&(e.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},u===null?(d=u=m,c=h):u=u.next=m,o|=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(u===null&&(c=h),s.baseState=c,s.firstBaseUpdate=d,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Ii|=o,e.lanes=o,e.memoizedState=h}}function b0(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(K(191,s));s.call(n)}}}var Cd={},ns=Wa(Cd),Uc=Wa(Cd),Wc=Wa(Cd);function yi(e){if(e===Cd)throw Error(K(174));return e}function fv(e,t){switch(nt(Wc,t),nt(Uc,e),nt(ns,Cd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lg(t,e)}ct(ns),nt(ns,t)}function nl(){ct(ns),ct(Uc),ct(Wc)}function _C(e){yi(Wc.current);var t=yi(ns.current),r=Lg(t,e.type);t!==r&&(nt(Uc,e),nt(ns,r))}function mv(e){Uc.current===e&&(ct(ns),ct(Uc))}var ft=Wa(0);function Ih(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vp=[];function pv(){for(var e=0;e<vp.length;e++)vp[e]._workInProgressVersionPrimary=null;vp.length=0}var Zu=Vs.ReactCurrentDispatcher,bp=Vs.ReactCurrentBatchConfig,Di=0,gt=null,zt=null,Wt=null,Mh=!1,gc=!1,Hc=0,LI=0;function tr(){throw Error(K(321))}
vendor: 6,860 bytes, line 38
38function gv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Pn(e[r],t[r]))return!1;return!0}function yv(e,t,r,n,s,i){if(Di=i,gt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zu.current=e===null||e.memoizedState===null?zI:VI,e=r(n,s),gc){i=0;do{if(gc=!1,Hc=0,25<=i)throw Error(K(301));i+=1,Wt=zt=null,t.updateQueue=null,Zu.current=UI,e=r(n,s)}while(gc)}if(Zu.current=Lh,t=zt!==null&&zt.next!==null,Di=0,Wt=zt=gt=null,Mh=!1,t)throw Error(K(300));return e}function xv(){var e=Hc!==0;return Hc=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?gt.memoizedState=Wt=e:Wt=Wt.next=e,Wt}function tn(){if(zt===null){var e=gt.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=Wt===null?gt.memoizedState:Wt.next;if(t!==null)Wt=t,zt=e;else{if(e===null)throw Error(K(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Wt===null?gt.memoizedState=Wt=e:Wt=Wt.next=e}return Wt}function qc(e,t){return typeof t=="function"?t(e):t}function wp(e){var t=tn(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=zt,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var l=o=null,c=null,d=i;do{var u=d.lane;if((Di&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,o=n):c=c.next=h,gt.lanes|=u,Ii|=u}d=d.next}while(d!==null&&d!==i);c===null?o=n:c.next=l,Pn(n,t.memoizedState)||(kr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do i=s.lane,gt.lanes|=i,Ii|=i,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function kp(e){var t=tn(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,i=t.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Pn(i,t.memoizedState)||(kr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function TC(){}function EC(e,t){var r=gt,n=tn(),s=t(),i=!Pn(n.memoizedState,s);if(i&&(n.memoizedState=s,kr=!0),n=n.queue,vv(PC.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Wt!==null&&Wt.memoizedState.tag&1){if(r.flags|=2048,Gc(9,AC.bind(null,r,n,s,t),void 0,null),Ht===null)throw Error(K(349));Di&30||RC(r,t,s)}return s}function RC(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=gt.updateQueue,t===null?(t={lastEffect:null,stores:null},gt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function AC(e,t,r,n){t.value=r,t.getSnapshot=n,OC(t)&&DC(e)}function PC(e,t,r){return r(function(){OC(t)&&DC(e)})}function OC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Pn(e,r)}catch{return!0}}function DC(e){var t=Ls(e,1);t!==null&&En(t,e,1,-1)}function w0(e){var t=Un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qc,lastRenderedState:e},t.queue=e,e=e.dispatch=BI.bind(null,gt,e),[t.memoizedState,e]}function Gc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=gt.updateQueue,t===null?(t={lastEffect:null,stores:null},gt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function IC(){return tn().memoizedState}function Xu(e,t,r,n){var s=Un();gt.flags|=e,s.memoizedState=Gc(1|t,r,void 0,n===void 0?null:n)}function Uf(e,t,r,n){var s=tn();n=n===void 0?null:n;var i=void 0;if(zt!==null){var o=zt.memoizedState;if(i=o.destroy,n!==null&&gv(n,o.deps)){s.memoizedState=Gc(t,r,i,n);return}}gt.flags|=e,s.memoizedState=Gc(1|t,r,i,n)}function k0(e,t){return Xu(8390656,8,e,t)}function vv(e,t){return Uf(2048,8,e,t)}function MC(e,t){return Uf(4,2,e,t)}function LC(e,t){return Uf(4,4,e,t)}function FC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $C(e,t,r){return r=r!=null?r.concat([e]):null,Uf(4,4,FC.bind(null,t,e),r)}function bv(){}function BC(e,t){var r=tn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&gv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function zC(e,t){var r=tn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&gv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function VC(e,t,r){return Di&21?(Pn(r,t)||(r=GS(),gt.lanes|=r,Ii|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kr=!0),e.memoizedState=r)}function FI(e,t){var r=Ye;Ye=r!==0&&4>r?r:4,e(!0);var n=bp.transition;bp.transition={};try{e(!1),t()}finally{Ye=r,bp.transition=n}}function UC(){return tn().memoizedState}function $I(e,t,r){var n=Ta(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},WC(e))HC(t,r);else if(r=SC(e,t,r,n),r!==null){var s=mr();En(r,e,n,s),qC(r,t,n)}}function BI(e,t,r){var n=Ta(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(WC(e))HC(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,r);if(s.hasEagerState=!0,s.eagerState=l,Pn(l,o)){var c=t.interleaved;c===null?(s.next=s,uv(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}r=SC(e,t,s,n),r!==null&&(s=mr(),En(r,e,n,s),qC(r,t,n))}}function WC(e){var t=e.alternate;return e===gt||t!==null&&t===gt}function HC(e,t){gc=Mh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function qC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Zx(e,r)}}var Lh={readContext:en,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},zI={readContext:en,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:k0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xu(4194308,4,FC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xu(4,2,e,t)},useMemo:function(e,t){var r=Un();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Un();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$I.bind(null,gt,e),[n.memoizedState,e]}
vendor: 7,431 bytes, lines 38-40
38,useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:w0,useDebugValue:bv,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=w0(!1),t=e[0];return e=FI.bind(null,e[1]),Un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=gt,s=Un();if(ut){if(r===void 0)throw Error(K(407));r=r()}else{if(r=t(),Ht===null)throw Error(K(349));Di&30||RC(n,t,r)}s.memoizedState=r;var i={value:r,getSnapshot:t};return s.queue=i,k0(PC.bind(null,n,i,e),[e]),n.flags|=2048,Gc(9,AC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Un(),t=Ht.identifierPrefix;if(ut){var r=Es,n=Ts;r=(n&~(1<<32-Tn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Hc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=LI++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VI={readContext:en,useCallback:BC,useContext:en,useEffect:vv,useImperativeHandle:$C,useInsertionEffect:MC,useLayoutEffect:LC,useMemo:zC,useReducer:wp,useRef:IC,useState:function(){return wp(qc)},useDebugValue:bv,useDeferredValue:function(e){var t=tn();return VC(t,zt.memoizedState,e)},useTransition:function(){var e=wp(qc)[0],t=tn().memoizedState;return[e,t]},useMutableSource:TC,useSyncExternalStore:EC,useId:UC,unstable_isNewReconciler:!1},UI={readContext:en,useCallback:BC,useContext:en,useEffect:vv,useImperativeHandle:$C,useInsertionEffect:MC,useLayoutEffect:LC,useMemo:zC,useReducer:kp,useRef:IC,useState:function(){return kp(qc)},useDebugValue:bv,useDeferredValue:function(e){var t=tn();return zt===null?t.memoizedState=e:VC(t,zt.memoizedState,e)},useTransition:function(){var e=kp(qc)[0],t=tn().memoizedState;return[e,t]},useMutableSource:TC,useSyncExternalStore:EC,useId:UC,unstable_isNewReconciler:!1};function yn(e,t){if(e&&e.defaultProps){t=yt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function sy(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:yt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Wf={isMounted:function(e){return(e=e._reactInternals)?qi(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=mr(),s=Ta(e),i=Ds(n,s);i.payload=t,r!=null&&(i.callback=r),t=Ca(e,i,s),t!==null&&(En(t,e,s,n),Ju(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=mr(),s=Ta(e),i=Ds(n,s);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Ca(e,i,s),t!==null&&(En(t,e,s,n),Ju(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mr(),n=Ta(e),s=Ds(r,n);s.tag=2,t!=null&&(s.callback=t),t=Ca(e,s,n),t!==null&&(En(t,e,n,r),Ju(t,e,n))}};function j0(e,t,r,n,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!$c(r,n)||!$c(s,i):!0}function GC(e,t,r){var n=!1,s=Ma,i=t.contextType;return typeof i=="object"&&i!==null?i=en(i):(s=Sr(t)?Pi:or.current,n=t.contextTypes,i=(n=n!=null)?el(e,s):Ma),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wf,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function N0(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Wf.enqueueReplaceState(t,t.state,null)}function ay(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},hv(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=en(i):(i=Sr(t)?Pi:or.current,s.context=el(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(sy(e,t,i,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Wf.enqueueReplaceState(s,s.state,null),Dh(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function sl(e,t){try{var r="",n=t;do r+=y4(n),n=n.return;while(n);var s=r}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function jp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function iy(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var WI=typeof WeakMap=="function"?WeakMap:Map;function KC(e,t,r){r=Ds(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){$h||($h=!0,gy=n),iy(e,t)},r}function YC(e,t,r){r=Ds(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){iy(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){iy(e,t),typeof n!="function"&&(_a===null?_a=new Set([this]):_a.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function S0(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new WI;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=sM.bind(null,e,t,r),t.then(e,e))}function C0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _0(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ds(-1,1),t.tag=2,Ca(r,t,1))),r.lanes|=1),e)}var HI=Vs.ReactCurrentOwner,kr=!1;function cr(e,t,r,n){t.child=e===null?NC(t,null,r,n):rl(t,e.child,r,n)}function T0(e,t,r,n,s){r=r.render;var i=t.ref;return Fo(t,s),n=yv(e,t,r,n,i,s),r=xv(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Fs(e,t,s)):(ut&&r&&av(t),t.flags|=1,cr(e,t,n,s),t.child)}function E0(e,t,r,n,s){if(e===null){var i=r.type;return typeof i=="function"&&!Tv(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,JC(e,t,i,n,s)):(e=rh(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:$c,r(o,n)&&e.ref===t.ref)return Fs(e,t,s)}return t.flags|=1,e=Ea(i,n),e.ref=t.ref,e.return=t,t.child=e}function JC(e,t,r,n,s){if(e!==null){var i=e.memoizedProps;if($c(i,n)&&e.ref===t.ref)if(kr=!1,t.pendingProps=n=i,(e.lanes&s)!==0)e.flags&131072&&(kr=!0);else return t.lanes=e.lanes,Fs(e,t,s)}return oy(e,t,r,n,s)}function ZC(e,t,r){var n=t.pendingProps,s=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},nt(Eo,Rr),Rr|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,nt(Eo,Rr),Rr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,nt(Eo,Rr),Rr|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,nt(Eo,Rr),Rr|=n;return cr(e,t,s,r),t.child}function XC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function oy(e,t,r,n,s){var i=Sr(r)?Pi:or.current;return i=el(t,i),Fo(t,s),r=yv(e,t,r,n,i,s),n=xv(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Fs(e,t,s)):(ut&&n&&av(t),t.flags|=1,cr(e,t,r,s),t.child)}function R0(e,t,r,n,s){if(Sr(r)){var i=!0;Eh(t)}else i=!1;if(Fo(t,s),t.stateNode===null)Qu(e,t),GC(t,r,n),ay(t,r,n,s),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,d=r.contextType;typeof d=="object"&&d!==null?d=en(d):(d=Sr(r)?Pi:or.current,d=el(t,d));var u=r.getDerivedStateFromProps,h=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||c!==d)&&N0(t,o,n,d),na=!1;var f=t.memoizedState;o.state=f,Dh(t,n,o,s),c=t.memoizedState,l!==n||f!==c||Nr.current||na?(typeof u=="function"&&(sy(t,r,u,n),c=t.memoizedState),(l=na||j0(t,r,l,n,f,c,d))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),o.props=n,o.state=c,o.context=d,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,CC(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:yn(t.type,l),o.props=d,h=t.pendingProps,f=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=en(c):(c=Sr(r)?Pi:or.current,c=el(t,c));var m=r.getDerivedStateFromProps;(u=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&N0(t,o,n,c),na=!1,f=t.memoizedState,o.state=f,Dh(t,n,o,s);var x=t.memoizedState;l!==h||f!==x||Nr.current||na?(typeof m=="function"&&(sy(t,r,m,n),x=t.memoizedState),(d=na||j0(t,r,d,n,f,x,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,x,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,x,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),o.props=n,o.state=x,o.context=c,n=d):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return ly(e,t,r,n,i,s)}function ly(e,t,r,n,s,i){XC(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return s&&p0(t,r,!1),Fs(e,t,i);n=t.stateNode,HI.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=rl(t,e.child,null,i),t.child=rl(t,null,l,i)):cr(e,t,l,i),t.memoizedState=n.state,s&&p0(t,r,!0),t.child}function QC(e){var t=e.stateNode;t.pendingContext?m0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&m0(e,t.context,!1),fv(e,t.containerInfo)}function A0(e,t,r,n,s){return tl(),ov(s),t.flags|=256,cr(e,t,r,n),t.child}var cy={dehydrated:null,treeContext:null,retryLane:0};function dy(e){return{baseLanes:e,cachePool:null,transitions:null}}function e_(e,t,r){var n=t.pendingProps,s=ft.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),nt(ft,s&1),e===null)return ry(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Gf(o,n,0,null),e=Ei(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=dy(r),t.memoizedState=cy,e):wv(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return qI(e,t,o,n,l,s,r);if(i){i=n.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Ea(s,c),n.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Ea(l,i):(i=Ei(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?dy(r):{base
vendor: 8,918 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=cy,n}return i=e.child,e=i.sibling,n=Ea(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function wv(e,t){return t=Gf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function pu(e,t,r,n){return n!==null&&ov(n),rl(t,e.child,null,r),e=wv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qI(e,t,r,n,s,i,o){if(r)return t.flags&256?(t.flags&=-257,n=jp(Error(K(422))),pu(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,s=t.mode,n=Gf({mode:"visible",children:n.children},s,0,null),i=Ei(i,s,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&rl(t,e.child,null,o),t.child.memoizedState=dy(o),t.memoizedState=cy,i);if(!(t.mode&1))return pu(e,t,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(K(419)),n=jp(i,n,void 0),pu(e,t,o,n)}if(l=(o&e.childLanes)!==0,kr||l){if(n=Ht,n!==null){switch(o&-o){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&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Ls(e,s),En(n,e,s,-1))}return _v(),n=jp(Error(K(421))),pu(e,t,o,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=aM.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Dr=Sa(s.nextSibling),Ir=t,ut=!0,Nn=null,e!==null&&(qr[Gr++]=Ts,qr[Gr++]=Es,qr[Gr++]=Oi,Ts=e.id,Es=e.overflow,Oi=t),t=wv(t,n.children),t.flags|=4096,t)}function P0(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ny(e.return,t,r)}function Np(e,t,r,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function t_(e,t,r){var n=t.pendingProps,s=n.revealOrder,i=n.tail;if(cr(e,t,n.children,r),n=ft.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P0(e,r,t);else if(e.tag===19)P0(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(nt(ft,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Ih(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Np(t,!1,s,r,i);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ih(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Np(t,!0,r,null,i);break;case"together":Np(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ii|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,r=Ea(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ea(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function GI(e,t,r){switch(t.tag){case 3:QC(t),tl();break;case 5:_C(t);break;case 1:Sr(t.type)&&Eh(t);break;case 4:fv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;nt(Ph,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(nt(ft,ft.current&1),t.flags|=128,null):r&t.child.childLanes?e_(e,t,r):(nt(ft,ft.current&1),e=Fs(e,t,r),e!==null?e.sibling:null);nt(ft,ft.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return t_(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),nt(ft,ft.current),n)break;return null;case 22:case 23:return t.lanes=0,ZC(e,t,r)}return Fs(e,t,r)}var r_,uy,n_,s_;r_=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};uy=function(){};n_=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,yi(ns.current);var i=null;switch(r){case"input":s=Og(e,s),n=Og(e,n),i=[];break;case"select":s=yt({},s,{value:void 0}),n=yt({},n,{value:void 0}),i=[];break;case"textarea":s=Mg(e,s),n=Mg(e,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=_h)}Fg(r,n);var o;r=null;for(d in s)if(!n.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var l=s[d];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Pc.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var c=n[d];if(l=s!=null?s[d]:void 0,n.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(i||(i=[]),i.push(d,r)),r=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Pc.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&it("scroll",e),i||l===c||(i=[])):(i=i||[]).push(d,c))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};s_=function(e,t,r,n){r!==n&&(t.flags|=4)};function zl(e,t){if(!ut)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function rr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function KI(e,t,r){var n=t.pendingProps;switch(iv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rr(t),null;case 1:return Sr(t.type)&&Th(),rr(t),null;case 3:return n=t.stateNode,nl(),ct(Nr),ct(or),pv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nn!==null&&(vy(Nn),Nn=null))),uy(e,t),rr(t),null;case 5:mv(t);var s=yi(Wc.current);if(r=t.type,e!==null&&t.stateNode!=null)n_(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(K(166));return rr(t),null}if(e=yi(ns.current),fu(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Zn]=t,n[Vc]=i,e=(t.mode&1)!==0,r){case"dialog":it("cancel",n),it("close",n);break;case"iframe":case"object":case"embed":it("load",n);break;case"video":case"audio":for(s=0;s<nc.length;s++)it(nc[s],n);break;case"source":it("error",n);break;case"img":case"image":case"link":it("error",n),it("load",n);break;case"details":it("toggle",n);break;case"input":zw(n,i),it("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},it("invalid",n);break;case"textarea":Uw(n,i),it("invalid",n)}Fg(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&hu(n.textContent,l,e),s=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&hu(n.textContent,l,e),s=["children",""+l]):Pc.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&it("scroll",n)}switch(r){case"input":su(n),Vw(n,i,!0);break;case"textarea":su(n),Ww(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=_h)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=PS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Zn]=t,e[Vc]=n,r_(e,t,!1,!1),t.stateNode=e;e:{switch(o=$g(r,n),r){case"dialog":it("cancel",e),it("close",e),s=n;break;case"iframe":case"object":case"embed":it("load",e),s=n;break;case"video":case"audio":for(s=0;s<nc.length;s++)it(nc[s],e);s=n;break;case"source":it("error",e),s=n;break;case"img":case"image":case"link":it("error",e),it("load",e),s=n;break;case"details":it("toggle",e),s=n;break;case"input":zw(e,n),s=Og(e,n),it("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=yt({},n,{value:void 0}),it("invalid",e);break;case"textarea":Uw(e,n),s=Mg(e,n),it("invalid",e);break;default:s=n}Fg(r,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?IS(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&OS(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Oc(e,c):typeof c=="number"&&Oc(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Pc.hasOwnProperty(i)?c!=null&&i==="onScroll"&&it("scroll",e):c!=null&&Hx(e,i,c,o))}switch(r){case"input":su(e),Vw(e,n,!1);break;case"textarea":su(e),Ww(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ia(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Do(e,!!n.multiple,i,!1):n.defaultValue!=null&&Do(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=_h)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return rr(t),null;case 6:if(e&&t.stateNode!=null)s_(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(K(166));if(r=yi(Wc.current),yi(ns.current),fu(t)){if(n=t.stateNode,r=t.memoizedProps,n[Zn]=t,(i=n.nodeValue!==r)&&(e=Ir,e!==null))switch(e.tag){case 3:hu(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hu(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Zn]=t,t.stateNode=n}return rr(t),null;case 13:if(ct(ft),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ut&&Dr!==null&&t.mode&1&&!(t.flags&128))kC(),tl(),t.flags|=98560,i=!1;else if(i=fu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(K(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(K(317));i[Zn]=t}else tl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;rr(t),i=!1}else Nn!==null&&(vy(Nn),Nn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||ft.current&1?Vt===0&&(Vt=3):_v())),t.updateQueue!==null&&(t.flags|=4),rr(t),null);case 4:return nl(),uy(e,t),e===null&&Bc(t.stateNode.containerInfo),rr(t),null;case 10:return dv(t.type._context),rr(t),null;case 17:return Sr(t.type)&&Th(),rr(t),null;case 19:if(ct(ft),i=t.memoizedState,i===null)return rr(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)zl(i,!1);else{if(Vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ih(e),o!==null){for(t.flags|=128,zl(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return nt(ft,ft.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ct()>al&&(t.flags|=128,n=!0,zl(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ih(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),zl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ut)return rr(t),null}else 2*Ct()-i.renderingStartTime>al&&r!==1073741824&&(t.flags|=128,n=!0,zl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ct(),t.sibling=null,r=ft.current,nt(ft,n?r&1|2:r&1),t):(rr(t),null);case 22:case 23:return Cv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Rr&1073741824&&(rr(t),t.subtreeFlags&6&&(t.flags|=8192)):rr(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function YI(e,t){switch(iv(t),t.tag){case 1:return Sr(t.type)&&Th(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,764 bytes, line 40
40case 3:return nl(),ct(Nr),ct(or),pv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mv(t),null;case 13:if(ct(ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ct(ft),null;case 4:return nl(),null;case 10:return dv(t.type._context),null;case 22:case 23:return Cv(),null;case 24:return null;default:return null}}var gu=!1,ir=!1,JI=typeof WeakSet=="function"?WeakSet:Set,ie=null;function To(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){kt(e,t,n)}else r.current=null}function hy(e,t,r){try{r()}catch(n){kt(e,t,n)}}var O0=!1;function ZI(e,t){if(Yg=Nh,e=cC(),sv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,d=0,u=0,h=e,f=null;t:for(;;){for(var m;h!==r||s!==0&&h.nodeType!==3||(l=o+s),h!==i||n!==0&&h.nodeType!==3||(c=o+n),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===e)break t;if(f===r&&++d===s&&(l=o),f===i&&++u===n&&(c=o),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jg={focusedElem:e,selectionRange:r},Nh=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,v=x.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:yn(t.type,y),v);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(k){kt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return x=O0,O0=!1,x}function yc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&hy(t,r,i)}s=s.next}while(s!==n)}}function Hf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function fy(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function a_(e){var t=e.alternate;t!==null&&(e.alternate=null,a_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zn],delete t[Vc],delete t[Qg],delete t[OI],delete t[DI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function i_(e){return e.tag===5||e.tag===3||e.tag===4}function D0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function my(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=_h));else if(n!==4&&(e=e.child,e!==null))for(my(e,t,r),e=e.sibling;e!==null;)my(e,t,r),e=e.sibling}function py(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(py(e,t,r),e=e.sibling;e!==null;)py(e,t,r),e=e.sibling}var Gt=null,kn=!1;function Gs(e,t,r){for(r=r.child;r!==null;)o_(e,t,r),r=r.sibling}function o_(e,t,r){if(rs&&typeof rs.onCommitFiberUnmount=="function")try{rs.onCommitFiberUnmount(Lf,r)}catch{}switch(r.tag){case 5:ir||To(r,t);case 6:var n=Gt,s=kn;Gt=null,Gs(e,t,r),Gt=n,kn=s,Gt!==null&&(kn?(e=Gt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Gt.removeChild(r.stateNode));break;case 18:Gt!==null&&(kn?(e=Gt,r=r.stateNode,e.nodeType===8?yp(e.parentNode,r):e.nodeType===1&&yp(e,r),Lc(e)):yp(Gt,r.stateNode));break;case 4:n=Gt,s=kn,Gt=r.stateNode.containerInfo,kn=!0,Gs(e,t,r),Gt=n,kn=s;break;case 0:case 11:case 14:case 15:if(!ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&hy(r,t,o),s=s.next}while(s!==n)}Gs(e,t,r);break;case 1:if(!ir&&(To(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){kt(r,t,l)}Gs(e,t,r);break;case 21:Gs(e,t,r);break;case 22:r.mode&1?(ir=(n=ir)||r.memoizedState!==null,Gs(e,t,r),ir=n):Gs(e,t,r);break;default:Gs(e,t,r)}}function I0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JI),t.forEach(function(n){var s=iM.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function dn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Gt=l.stateNode,kn=!1;break e;case 3:Gt=l.stateNode.containerInfo,kn=!0;break e;case 4:Gt=l.stateNode.containerInfo,kn=!0;break e}l=l.return}if(Gt===null)throw Error(K(160));o_(i,o,s),Gt=null,kn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(d){kt(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)l_(t,e),t=t.sibling}function l_(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dn(t,e),Bn(e),n&4){try{yc(3,e,e.return),Hf(3,e)}catch(y){kt(e,e.return,y)}try{yc(5,e,e.return)}catch(y){kt(e,e.return,y)}}break;case 1:dn(t,e),Bn(e),n&512&&r!==null&&To(r,r.return);break;case 5:if(dn(t,e),Bn(e),n&512&&r!==null&&To(r,r.return),e.flags&32){var s=e.stateNode;try{Oc(s,"")}catch(y){kt(e,e.return,y)}}if(n&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&RS(s,i),$g(l,o);var d=$g(l,i);for(o=0;o<c.length;o+=2){var u=c[o],h=c[o+1];u==="style"?IS(s,h):u==="dangerouslySetInnerHTML"?OS(s,h):u==="children"?Oc(s,h):Hx(s,u,h,d)}switch(l){case"input":Dg(s,i);break;case"textarea":AS(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Do(s,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?Do(s,!!i.multiple,i.defaultValue,!0):Do(s,!!i.multiple,i.multiple?[]:"",!1))}s[Vc]=i}catch(y){kt(e,e.return,y)}}break;case 6:if(dn(t,e),Bn(e),n&4){if(e.stateNode===null)throw Error(K(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){kt(e,e.return,y)}}break;case 3:if(dn(t,e),Bn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Lc(t.containerInfo)}catch(y){kt(e,e.return,y)}break;case 4:dn(t,e),Bn(e);break;case 13:dn(t,e),Bn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Nv=Ct())),n&4&&I0(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(ir=(d=ir)||u,dn(t,e),ir=d):dn(t,e),Bn(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(ie=e,u=e.child;u!==null;){for(h=ie=u;ie!==null;){switch(f=ie,m=f.child,f.tag){case 0:case 11:case 14:case 15:yc(4,f,f.return);break;case 1:To(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){kt(n,r,y)}}break;case 5:To(f,f.return);break;case 22:if(f.memoizedState!==null){L0(h);continue}}m!==null?(m.return=f,ie=m):L0(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{s=h.stateNode,d?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=DS("display",o))}catch(y){kt(e,e.return,y)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(y){kt(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:dn(t,e),Bn(e),n&4&&I0(e);break;case 21:break;default:dn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(i_(r)){var n=r;break e}r=r.return}throw Error(K(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Oc(s,""),n.flags&=-33);var i=D0(e);py(e,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,l=D0(e);my(e,l,o);break;default:throw Error(K(161))}}catch(c){kt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function XI(e,t,r){ie=e,c_(e)}function c_(e,t,r){for(var n=(e.mode&1)!==0;ie!==null;){var s=ie,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||gu;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||ir;l=gu;var d=ir;if(gu=o,(ir=c)&&!d)for(ie=s;ie!==null;)o=ie,c=o.child,o.tag===22&&o.memoizedState!==null?F0(s):c!==null?(c.return=o,ie=c):F0(s);for(;i!==null;)ie=i,c_(i),i=i.sibling;ie=s,gu=l,ir=d}M0(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,ie=i):M0(e)}}function M0(e){for(;ie!==null;){var t=ie;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ir||Hf(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ir)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:yn(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&b0(t,i,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}b0(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Lc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}ir||t.flags&512&&fy(t)}catch(f){kt(t,t.return,f)}}if(t===e){ie=null;break}if(r=t.sibling,r!==null){r.return=t.return,ie=r;break}ie=t.return}}function L0(e){for(;ie!==null;){var t=ie;if(t===e){ie=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ie=r;break}ie=t.return}}function F0(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Hf(4,t)}catch(c){kt(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(c){kt(t,s,c)}}var i=t.return;try{fy(t)}catch(c){kt(t,i,c)}break;case 5:var o=t.return;try{fy(t)}catch(c){kt(t,o,c)}}}catch(c){kt(t,t.return,c)}if(t===e){ie=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ie=l;break}ie=t.return}}var QI=Math.ceil,Fh=Vs.ReactCurrentDispatcher,kv=Vs.ReactCurrentOwner,Xr=Vs.ReactCurrentBatchConfig,Me=0,Ht=null,It=null,Jt=0,Rr=0,Eo=Wa(0),Vt=0,Kc=null,Ii=0,qf=0,jv=0,xc=null,wr=null,Nv=0,al=1/0,bs=null,$h=!1,gy=null,_a=null,yu=!1,xa=null,Bh=0,vc=0,yy=null,eh=-1,th=0;function mr(){return Me&6?Ct():eh!==-1?eh:eh=Ct()}function Ta(e){return e.mode&1?Me&2&&Jt!==0?Jt&-Jt:MI.transition!==null?(th===0&&(th=GS()),th):(e=Ye,e!==0||(e=window.event,e=e===void 0?16:eC(e.type)),e):1}function En(e,t,r,n){if(50<vc)throw vc=0,yy=null,Error(K(185));jd(e,r,n),(!(Me&2)||e!==Ht)&&(e===Ht&&(!(Me&2)&&(qf|=r),Vt===4&&ia(e,Jt)),Cr(e,n),r===1&&Me===0&&!(t.mode&1)&&(al=Ct()+500,Vf&&Ha()))}function Cr(e,t){var r=e.callbackNode;M4(e,t);var n=jh(e,e===Ht?Jt:0);if(n===0)r!==null&&Gw(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Gw(r),t===1)e.tag===0?II($0.bind(null,e)):vC($0.bind(null,e)),AI(function(){!(Me&6)&&Ha()}),r=null;else{switch(KS(n)){case 1:r=Jx;break;case 4:r=HS;break;case 16:r=kh;break;case 536870912:r=qS;break;default:r=kh}r=y_(r,d_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function d_(e,t){if(eh=-1,th=0,Me&6)throw Error(K(327));var r=e.callbackNode;if($o()&&e.callbackNode!==r)return null;var n=jh(e,e===Ht?Jt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=zh(e,n);else{t=n;var s=Me;Me|=2;var i=h_();(Ht!==e||Jt!==t)&&(bs=null,al=Ct()+500,Ti(e,t));do try{rM();break}catch(l){u_(e,l)}while(!0);cv(),Fh.current=i,Me=s,It!==null?t=0:(Ht=null,Jt=0,t=Vt)}if(t!==0){if(t===2&&(s=Wg(e),s!==0&&(n=s,t=xy(e,s))),t===1)throw r=Kc,Ti(e,0),ia(e,n),Cr(e,Ct()),r;if(t===6)ia(e,n);else{if(s=e.current.alternate,!(n&30)&&!eM(s)&&(t=zh(e,n),t===2&&(i=Wg(e),i!==0&&(n=i,t=xy(e,i))),t===1))throw r=Kc,Ti(e,0),ia(e,n),Cr(e,Ct()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(K(345));case 2:oi(e,wr,bs);break;case 3:if(ia(e,n),(n&130023424)===n&&(t=Nv+500-Ct(),10<t)){if(jh(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){mr(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Xg(oi.bind(null,e,wr,bs),t);break}oi(e,wr,bs);break;case 4:if(ia(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var o=31-Tn(n);i=1<<o,o=t[o],o>s&&(s=o),n&=~i}if(n=s,n=Ct()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QI(n/1960))-n,10<n){e.timeoutHandle=Xg(oi.bind(null,e,wr,bs),n);break}oi(e,wr,bs);break;case 5:oi(e,wr,bs);break;default:throw Error(K(329))}}}return Cr(e,Ct()),e.callbackNode===r?d_.bind(null,e):null}function xy(e,t){var r=xc;return e.current.memoizedState.isDehydrated&&(Ti(e,t).flags|=256),e=zh(e,t),e!==2&&(t=wr,wr=r,t!==null&&vy(t)),e}function vy(e){wr===null?wr=e:wr.push.apply(wr,e)}function eM(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!Pn(i(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ia(e,t){for(t&=~jv,t&=~qf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Tn(t),n=1<<r;e[r]=-1,t&=~n}}function $0(e){if(Me&6)throw Error(K(327));$o();var t=jh(e,0);if(!(t&1))return Cr(e,Ct()),null;var r=zh(e,t);if(e.tag!==0&&r===2){var n=Wg(e);n!==0&&(t=n,r=xy(e,n))}if(r===1)throw r=Kc,Ti(e,0),ia(e,t),Cr(e,Ct()),r;if(r===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,oi(e,wr,bs),Cr(e,Ct()),null}function Sv(e,t){var r=Me;Me|=1;try{return e(t)}finally{Me=r,Me===0&&(al=Ct()+500,Vf&&Ha())}}function Mi(e){xa!==null&&xa.tag===0&&!(Me&6)&&$o();var t=Me;Me|=1;var r=Xr.transition,n=Ye;try{if(Xr.transition=null,Ye=1,e)return e()}finally{Ye=n,Xr.transition=r,Me=t,!(Me&6)&&Ha()}}function Cv(){Rr=Eo.current,ct(Eo)}function Ti(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,RI(r)),It!==null)for(r=It.return;r!==null;){var n=r;switch(iv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Th();break;case 3:nl(),ct(Nr),ct(or),pv();break;case 5:mv(n);break;case 4:nl();break;case 13:ct(ft);break;case 19:ct(ft);break;case 10:dv(n.type._context);break;case 22:case 23:Cv()}r=r.return}if(Ht=e,It=e=Ea(e.current,null),Jt=Rr=t,Vt=0,Kc=null,jv=qf=Ii=0,wr=xc=null,gi!==null){for(t=0;t<gi.length;t++)if(r=gi[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}gi=null}return e}function u_(e,t){do{var r=It;try{if(cv(),Zu.current=Lh,Mh){for(var n=gt.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Mh=!1}if(Di=0,Wt=zt=gt=null,gc=!1,Hc=0,kv.current=null,r===null||r.return===null){Vt=1,Kc=t,It=null;break}e:{var i=e,o=r.return,l=r,c=t;if(t=Jt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=C0(o);if(m!==null){m.flags&=-257,_0(m,o,l,i,t),m.mode&1&&S0(i,d,t),t=m,c=d;var x=t.updateQueue;if(x===null){var y=new Set;y.add(c),t.updateQueue=y}else x.add(c);break e}else{if(!(t&1)){S0(i,d,t),_v();break e}c=Error(K(426))}}else if(ut&&l.mode&1){var v=C0(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),_0(v,o,l,i,t),ov(sl(c,l));break e}}i=c=sl(c,l),Vt!==4&&(Vt=2),xc===null?xc=[i]:xc.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=KC(i,c,t);v0(i,b);break e;case 1:l=c;var g=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(_a===null||!_a.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=YC(i,l,t);v0(i,k);break e}}i=i.return}while(i!==null)}m_(r)}catch(j){t=j,It===r&&r!==null&&(It=r=r.return);continue}break}while(!0)}function h_(){var e=Fh.current;return Fh.current=Lh,e===null?Lh:e}function _v(){(Vt===0||Vt===3||Vt===2)&&(Vt=4),Ht===null||!(Ii&268435455)&&!(qf&268435455)||ia(Ht,Jt)}function zh(e,t){var r=Me;Me|=2;var n=h_();(Ht!==e||Jt!==t)&&(bs=null,Ti(e,t));do try{tM();break}catch(s){u_(e,s)}while(!0);if(cv(),Me=r,Fh.current=n,It!==null)throw Error(K(261));return Ht=null,Jt=0,Vt}function tM(){for(;It!==null;)f_(It)}function rM(){for(;It!==null&&!_4();)f_(It)}function f_(e){var t=g_(e.alternate,e,Rr);e.memoizedProps=e.pendingProps,t===null?m_(e):It=t,kv.current=null}function m_(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=YI(r,t),r!==null){r.flags&=32767,It=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Vt=6,It=null;return}}else if(r=KI(r,t,Rr),r!==null){It=r;return}if(t=t.sibling,t!==null){It=t;return}It=t=e}while(t!==null);Vt===0&&(Vt=5)}function oi(e,t,r){var n=Ye,s=Xr.transition;try{Xr.transition=null,Ye=1,nM(e,t,r,n)}finally{Xr.transition=s,Ye=n}return null}function nM(e,t,r,n){do $o();while(xa!==null);if(Me&6)throw Error(K(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(L4(e,i),e===Ht&&(It=Ht=null,Jt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||yu||(yu=!0,y_(kh,function(){return $o(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Xr.transition,Xr.transition=null;var o=Ye;Ye=1;var l=Me;Me|=4,kv.current=null,ZI(e,r),l_(r,e),jI(Jg),Nh=!!Yg,Jg=Yg=null,e.current=r,XI(r),T4(),Me=l,Ye=o,Xr.transition=i}else e.current=r;if(yu&&(yu=!1,xa=e,Bh=s),i=e.pendingLanes,i===0&&(_a=null),A4(r.stateNode),Cr(e,Ct()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if($h)throw $h=!1,e=gy,gy=null,e;return Bh&1&&e.tag!==0&&$o(),i=e.pendingLanes,i&1?e===yy?vc++:(vc=0,yy=e):vc=0,Ha(),null}function $o(){if(xa!==null){var e=KS(Bh),t=Xr.transition,r=Ye;try{if(Xr.transition=null,Ye=16>e?16:e,xa===null)var n=!1;else{if(e=xa,xa=null,Bh=0,Me&6)throw Error(K(331));var s=Me;for(Me|=4,ie=e.current;ie!==null;){var i=ie,o=i.child;if(ie.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(ie=d;ie!==null;){var u=ie;switch(u.tag){case 0:case 11:case 15:yc(8,u,i)}var h=u.child;if(h!==null)h.return=u,ie=h;else for(;ie!==null;){u=ie;var f=u.sibling,m=u.return;if(a_(u),u===d){ie=null;break}if(f!==null){f.return=m,ie=f;break}ie=m}}}var x=i.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}ie=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,ie=o;else e:for(;ie!==null;){if(i=ie,i.flags&2048)switch(i.tag){case 0:case 11:case 15:yc(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,ie=b;break e}ie=i.return}}var g=e.current;for(ie=g;ie!==null;){o=ie;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,ie=w;else e:for(o=g;ie!==null;){if(l=ie,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Hf(9,l)}}catch(j){kt(l,l.return,j)}if(l===o){ie=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,ie=k;break e}ie=l.return}}if(Me=s,Ha(),rs&&typeof rs.onPostCommitFiberRoot=="function")try{rs.onPostCommitFiberRoot(Lf,e)}catch{}n=!0}return n}finally{Ye=r,Xr.transition=t}}return!1}function B0(e,t,r){t=sl(r,t),t=KC(e,t,1),e=Ca(e,t,1),t=mr(),e!==null&&(jd(e,1,t),Cr(e,t))}function kt(e,t,r){if(e.tag===3)B0(e,e,r);else for(;t!==null;){if(t.tag===3){B0(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_a===null||!_a.has(n))){e=sl(r,e),e=YC(t,e,1),t=Ca(t,e,1),e=mr(),t!==null&&(jd(t,1,e),Cr(t,e));break}}t=t.return}}function sM(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=mr(),e.pingedLanes|=e.suspendedLanes&r,Ht===e&&(Jt&r)===r&&(Vt===4||Vt===3&&(Jt&130023424)===Jt&&500>Ct()-Nv?Ti(e,0):jv|=r),Cr(e,t)}function p_(e,t){t===0&&(e.mode&1?(t=ou,ou<<=1,!(ou&130023424)&&(ou=4194304)):t=1);var r=mr();e=Ls(e,t),e!==null&&(jd(e,t,r),Cr(e,r))}function aM(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),p_(e,r)}function iM(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(K(314))}n!==null&&n.delete(t),p_(e,r)}var g_;g_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nr.current)kr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return kr=!1,GI(e,t,r);kr=!!(e.flags&131072)}else kr=!1,ut&&t.flags&1048576&&bC(t,Ah,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qu(e,t),e=t.pendingProps;var s=el(t,or.current);Fo(t,r),s=yv(null,t,n,e,s,r);var i=xv();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sr(n)?(i=!0,Eh(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,hv(t),s.updater=Wf,t.stateNode=s,s._reactInternals=t,ay(t,n,e,r),t=ly(null,t,n,!0,i,r)):(t.tag=0,ut&&i&&av(t),cr(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qu(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=lM(n),e=yn(n,e),s){case 0:t=oy(null,t,n,e,r);break e;case 1:t=R0(null,t,n,e,r);break e;case 11:t=T0(null,t,n,e,r);break e;case 14:t=E0(null,t,n,yn(n.type,e),r);break e}throw Error(K(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:yn(n,s),oy(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:yn(n,s),R0(e,t,n,s,r);case 3:e:{if(QC(t),e===null)throw Error(K(387));n=t.pendingProps,i=t.memoizedState,s=i.element,CC(e,t),Dh(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=sl(Error(K(423)),t),t=A0(e,t,n,r,s);break e}else if(n!==s){s=sl(Error(K(424)),t),t=A0(e,t,n,r,s);break e}else for(Dr=Sa(t.stateNode.containerInfo.firstChild),Ir=t,ut=!0,Nn=null,r=NC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(tl(),n===s){t=Fs(e,t,r);break e}cr(e,t,n,r)}t=t.child}return t;case 5:return _C(t),e===null&&ry(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Zg(n,s)?o=null:i!==null&&Zg(n,i)&&(t.flags|=32),XC(e,t),cr(e,t,o,r),t.child;case 6:return e===null&&ry(t),null;case 13:return e_(e,t,r);case 4:return fv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=rl(t,null,n,r):cr(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:yn(n,s),T0(e,t,n,s,r);case 7:return cr(e,t,t.pendingProps,r),t.child;case 8:return cr(e,t,t.pendingProps.children,r),t.child;case 12:return cr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,nt(Ph,n._currentValue),n._currentValue=o,i!==null)if(Pn(i.value,o)){if(i.children===s.children&&!Nr.current){t=Fs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Ds(-1,r&-r),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),ny(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(K(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),ny(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}cr(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,Fo(t,r),s=en(s),n=n(s),t.flags|=1,cr(e,t,n,r),t.child;case 14:return n=t.type,s=yn(n,t.pendingProps),s=yn(n.type,s),E0(e,t,n,s,r);case 15:return JC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:yn(n,s),Qu(e,t),t.tag=1,Sr(n)?(e=!0,Eh(t)):e=!1,Fo(t,r),GC(t,
vendor: 7,812 bytes, line 40
40n,s),ay(t,n,s,r),ly(null,t,n,!0,e,r);case 19:return t_(e,t,r);case 22:return ZC(e,t,r)}throw Error(K(156,t.tag))};function y_(e,t){return WS(e,t)}function oM(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(e,t,r,n){return new oM(e,t,r,n)}function Tv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lM(e){if(typeof e=="function")return Tv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gx)return 11;if(e===Kx)return 14}return 2}function Ea(e,t){var r=e.alternate;return r===null?(r=Yr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rh(e,t,r,n,s,i){var o=2;if(n=e,typeof e=="function")Tv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vo:return Ei(r.children,s,i,t);case qx:o=8,s|=8;break;case Eg:return e=Yr(12,r,t,s|2),e.elementType=Eg,e.lanes=i,e;case Rg:return e=Yr(13,r,t,s),e.elementType=Rg,e.lanes=i,e;case Ag:return e=Yr(19,r,t,s),e.elementType=Ag,e.lanes=i,e;case _S:return Gf(r,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SS:o=10;break e;case CS:o=9;break e;case Gx:o=11;break e;case Kx:o=14;break e;case ra:o=16,n=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Yr(o,r,t,s),t.elementType=e,t.type=n,t.lanes=i,t}function Ei(e,t,r,n){return e=Yr(7,e,n,t),e.lanes=r,e}function Gf(e,t,r,n){return e=Yr(22,e,n,t),e.elementType=_S,e.lanes=r,e.stateNode={isHidden:!1},e}function Sp(e,t,r){return e=Yr(6,e,null,t),e.lanes=r,e}function Cp(e,t,r){return t=Yr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cM(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ip(0),this.expirationTimes=ip(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ip(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Ev(e,t,r,n,s,i,o,l,c){return e=new cM(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Yr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},hv(i),e}function dM(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xo,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function x_(e){if(!e)return Ma;e=e._reactInternals;e:{if(qi(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Sr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var r=e.type;if(Sr(r))return xC(e,r,t)}return t}function v_(e,t,r,n,s,i,o,l,c){return e=Ev(r,n,!0,e,s,i,o,l,c),e.context=x_(null),r=e.current,n=mr(),s=Ta(r),i=Ds(n,s),i.callback=t??null,Ca(r,i,s),e.current.lanes=s,jd(e,s,n),Cr(e,n),e}function Kf(e,t,r,n){var s=t.current,i=mr(),o=Ta(s);return r=x_(r),t.context===null?t.context=r:t.pendingContext=r,t=Ds(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Ca(s,t,o),e!==null&&(En(e,s,o,i),Ju(e,s,o)),o}function Vh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function z0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Rv(e,t){z0(e,t),(e=e.alternate)&&z0(e,t)}function uM(){return null}var b_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Av(e){this._internalRoot=e}Yf.prototype.render=Av.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));Kf(e,t,null,null)};Yf.prototype.unmount=Av.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mi(function(){Kf(null,e,null,null)}),t[Ms]=null}};function Yf(e){this._internalRoot=e}Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ZS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<aa.length&&t!==0&&t<aa[r].priority;r++);aa.splice(r,0,e),r===0&&QS(e)}};function Pv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Jf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function V0(){}function hM(e,t,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var d=Vh(o);i.call(d)}}var o=v_(t,n,e,0,null,!1,!1,"",V0);return e._reactRootContainer=o,e[Ms]=o.current,Bc(e.nodeType===8?e.parentNode:e),Mi(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var l=n;n=function(){var d=Vh(c);l.call(d)}}var c=Ev(e,0,!1,null,null,!1,!1,"",V0);return e._reactRootContainer=c,e[Ms]=c.current,Bc(e.nodeType===8?e.parentNode:e),Mi(function(){Kf(t,c,r,n)}),c}function Zf(e,t,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var c=Vh(o);l.call(c)}}Kf(t,o,e,s)}else o=hM(r,t,e,s,n);return Vh(o)}YS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=rc(t.pendingLanes);r!==0&&(Zx(t,r|1),Cr(t,Ct()),!(Me&6)&&(al=Ct()+500,Ha()))}break;case 13:Mi(function(){var n=Ls(e,1);if(n!==null){var s=mr();En(n,e,1,s)}}),Rv(e,1)}};Xx=function(e){if(e.tag===13){var t=Ls(e,134217728);if(t!==null){var r=mr();En(t,e,134217728,r)}Rv(e,134217728)}};JS=function(e){if(e.tag===13){var t=Ta(e),r=Ls(e,t);if(r!==null){var n=mr();En(r,e,t,n)}Rv(e,t)}};ZS=function(){return Ye};XS=function(e,t){var r=Ye;try{return Ye=e,t()}finally{Ye=r}};zg=function(e,t,r){switch(t){case"input":if(Dg(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=zf(n);if(!s)throw Error(K(90));ES(n),Dg(n,s)}}}break;case"textarea":AS(e,r);break;case"select":t=r.value,t!=null&&Do(e,!!r.multiple,t,!1)}};FS=Sv;$S=Mi;var fM={usingClientEntryPoint:!1,Events:[Sd,jo,zf,MS,LS,Sv]},Vl={findFiberByHostInstance:pi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mM={bundleType:Vl.bundleType,version:Vl.version,rendererPackageName:Vl.rendererPackageName,rendererConfig:Vl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=VS(e),e===null?null:e.stateNode},findFiberByHostInstance:Vl.findFiberByHostInstance||uM,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xu.isDisabled&&xu.supportsFiber)try{Lf=xu.inject(mM),rs=xu}catch{}}zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fM;zr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pv(t))throw Error(K(200));return dM(e,t,null,r)};zr.createRoot=function(e,t){if(!Pv(e))throw Error(K(299));var r=!1,n="",s=b_;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Ev(e,1,!1,null,null,r,!1,n,s),e[Ms]=t.current,Bc(e.nodeType===8?e.parentNode:e),new Av(t)};zr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=VS(t),e=e===null?null:e.stateNode,e};zr.flushSync=function(e){return Mi(e)};zr.hydrate=function(e,t,r){if(!Jf(t))throw Error(K(200));return Zf(null,e,t,!0,r)};zr.hydrateRoot=function(e,t,r){if(!Pv(e))throw Error(K(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=b_;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=v_(t,null,e,1,r??null,s,!1,i,o),e[Ms]=t.current,Bc(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new Yf(t)};zr.render=function(e,t,r){if(!Jf(t))throw Error(K(200));return Zf(null,e,t,!1,r)};zr.unmountComponentAtNode=function(e){if(!Jf(e))throw Error(K(40));return e._reactRootContainer?(Mi(function(){Zf(null,null,e,!1,function(){e._reactRootContainer=null,e[Ms]=null})}),!0):!1};zr.unstable_batchedUpdates=Sv;zr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Jf(r))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Zf(e,t,r,!1,n)};zr.version="18.3.1-next-f1338f8080-20240426";function w_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(w_)}catch(e){console.error(e)}}w_(),wS.exports=zr;var Gi=wS.exports;const k_=cS(Gi);var j_,U0=Gi;j_=U0.createRoot,U0.hydrateRoot;const pM=1,gM=1e6;let _p=0;function yM(){return _p=(_p+1)%Number.MAX_SAFE_INTEGER,_p.toString()}const Tp=new Map,W0=e=>{if(Tp.has(e))return;const t=setTimeout(()=>{Tp.delete(e),bc({type:"REMOVE_TOAST",toastId:e})},gM);Tp.set(e,t)},xM=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,pM)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?W0(r):e.toasts.forEach(n=>{W0(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,906 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},nh=[];let sh={toasts:[]};function bc(e){sh=xM(sh,e),nh.forEach(t=>{t(sh)})}function by({...e}){const t=yM(),r=s=>bc({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>bc({type:"DISMISS_TOAST",toastId:t});return bc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function Xf(){const[e,t]=p.useState(sh);return p.useEffect(()=>(nh.push(t),()=>{const r=nh.indexOf(t);r>-1&&nh.splice(r,1)}),[e]),{...e,toast:by,dismiss:r=>bc({type:"DISMISS_TOAST",toastId:r})}}function ce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function H0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function N_(...e){return t=>{let r=!1;const n=e.map(s=>{const i=H0(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():H0(e[s],null)}}}}function _e(...e){return p.useCallback(N_(...e),e)}function vM(e,t){const r=p.createContext(t),n=i=>{const{children:o,...l}=i,c=p.useMemo(()=>l,Object.values(l));return a.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function s(i){const o=p.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,s]}function Xt(e,t=[]){let r=[];function n(i,o){const l=p.createContext(o),c=r.length;r=[...r,o];const d=h=>{var b;const{scope:f,children:m,...x}=h,y=((b=f==null?void 0:f[e])==null?void 0:b[c])||l,v=p.useMemo(()=>x,Object.values(x));return a.jsx(y.Provider,{value:v,children:m})};d.displayName=i+"Provider";function u(h,f){var y;const m=((y=f==null?void 0:f[e])==null?void 0:y[c])||l,x=p.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,u]}const s=()=>{const i=r.map(o=>p.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[n,bM(s,...t)]}function bM(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:d})=>{const h=c(i)[`__scope${d}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Li(e){const t=wM(e),r=p.forwardRef((n,s)=>{const{children:i,...o}=n,l=p.Children.toArray(i),c=l.find(kM);if(c){const d=c.props.children,u=l.map(h=>h===c?p.Children.count(d)>1?p.Children.only(null):p.isValidElement(d)?d.props.children:null:h);return a.jsx(t,{...o,ref:s,children:p.isValidElement(d)?p.cloneElement(d,void 0,u):null})}return a.jsx(t,{...o,ref:s,children:i})});return r.displayName=`${e}.Slot`,r}var S_=Li("Slot");function wM(e){const t=p.forwardRef((r,n)=>{const{children:s,...i}=r;if(p.isValidElement(s)){const o=NM(s),l=jM(i,s.props);return s.type!==p.Fragment&&(l.ref=n?N_(n,o):o),p.cloneElement(s,l)}return p.Children.count(s)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var C_=Symbol("radix.slottable");function __(e){const t=({children:r})=>a.jsx(a.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=C_,t}function kM(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===C_}function jM(e,t){const r={...t};for(const n in t){const s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function NM(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Qf(e){const t=e+"CollectionProvider",[r,n]=Xt(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:v,children:b}=y,g=M.useRef(null),w=M.useRef(new Map).current;return a.jsx(s,{scope:v,itemMap:w,collectionRef:g,children:b})};o.displayName=t;const l=e+"CollectionSlot",c=Li(l),d=M.forwardRef((y,v)=>{const{scope:b,children:g}=y,w=i(l,b),k=_e(v,w.collectionRef);return a.jsx(c,{ref:k,children:g})});d.displayName=l;const u=e+"CollectionItemSlot",h="data-radix-collection-item",f=Li(u),m=M.forwardRef((y,v)=>{const{scope:b,children:g,...w}=y,k=M.useRef(null),j=_e(v,k),S=i(u,b);return M.useEffect(()=>(S.itemMap.set(k,{ref:k,...w}),()=>void S.itemMap.delete(k))),a.jsx(f,{[h]:"",ref:j,children:g})});m.displayName=u;function x(y){const v=i(e+"CollectionConsumer",y);return M.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((S,T)=>w.indexOf(S.ref.current)-w.indexOf(T.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:d,ItemSlot:m},x,n]}var SM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=SM.reduce((e,t)=>{const r=Li(`Primitive.${t}`),n=p.forwardRef((s,i)=>{const{asChild:o,...l}=s,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function T_(e,t){e&&Gi.flushSync(()=>e.dispatchEvent(t))}function rn(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function CM(e,t=globalThis==null?void 0:globalThis.document){const r=rn(e);p.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var _M="DismissableLayer",wy="dismissableLayer.update",TM="dismissableLayer.pointerDownOutside",EM="dismissableLayer.focusOutside",q0,E_=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kl=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,d=p.useContext(E_),[u,h]=p.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),x=_e(t,T=>h(T)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(v),g=u?y.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=g>=b,j=AM(T=>{const P=T.target,C=[...d.branches].some(A=>A.contains(P));!k||C||(s==null||s(T),o==null||o(T),T.defaultPrevented||l==null||l())},f),S=PM(T=>{const P=T.target;[...d.branches].some(A=>A.contains(P))||(i==null||i(T),o==null||o(T),T.defaultPrevented||l==null||l())},f);return CM(T=>{g===d.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},f),p.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(q0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),G0(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=q0)}},[u,f,r,d]),p.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),G0())},[u,d]),p.useEffect(()=>{const T=()=>m({});return document.addEventListener(wy,T),()=>document.removeEventListener(wy,T)},[]),a.jsx(me.div,{...c,ref:x,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,j.onPointerDownCapture)})});kl.displayName=_M;var RM="DismissableLayerBranch",R_=p.forwardRef((e,t)=>{const r=p.useContext(E_),n=p.useRef(null),s=_e(t,n);return p.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),a.jsx(me.div,{...e,ref:s})});R_.displayName=RM;function AM(e,t=globalThis==null?void 0:globalThis.document){const r=rn(e),n=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){A_(TM,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function PM(e,t=globalThis==null?void 0:globalThis.document){const r=rn(e),n=p.useRef(!1);return p.useEffect(()=>{const s=i=>{i.target&&!n.current&&A_(EM,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function G0(){const e=new CustomEvent(wy);document.dispatchEvent(e)}function A_(e,t,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?T_(s,i):s.dispatchEvent(i)}var OM=kl,DM=R_,qt=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},IM="Portal",_d=p.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[s,i]=p.useState(!1);qt(()=>i(!0),[]);const o=r||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?k_.createPortal(a.jsx(me.div,{...n,ref:t}),o):null});_d.displayName=IM;function MM(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var nn=e=>{const{present:t,children:r}=e,n=LM(t),s=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=_e(n.ref,FM(s));return typeof r=="function"||n.isPresent?p.cloneElement(s,{ref:i}):null};nn.displayName="Presence";function LM(e){const[t,r]=p.useState(),n=p.useRef(null),s=p.useRef(e),i=p.useRef("none"),o=e?"mounted":"unmounted",[l,c]=MM(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const d=vu(n.current);i.current=l==="mounted"?d:"none"},[l]),qt(()=>{const d=n.current,u=s.current;if(u!==e){const f=i.current,m=vu(d);e?c("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),qt(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=m=>{const y=vu(n.current).includes(m.animationName);if(m.target===t&&y&&(c("ANIMATION_END"),!s.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=m=>{m.target===t&&(i.current=vu(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function vu(e){return(e==null?void 0:e.animationName)||"none"}function FM(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $M=Vx[" useInsertionEffect ".trim().toString()]||qt;function Fr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,i,o]=BM({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:s;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const h=u.current;h!==l&&console.warn(`${n} 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.`),u.current=l},[l,n])}const d=p.useCallback(u=>{var h;if(l){const f=zM(u)?u(e):u;f!==e&&((h=o.current)==null||h.call(o,f))}else i(u)},[l,e,i,o]);return[c,d]}function BM({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),s=p.useRef(r),i=p.useRef(t);return $M(()=>{i.current=t},[t]),p.useEffect(()=>{var o;s.current!==r&&((o=i.current)==null||o.call(i,r),s.current=r)},[r,s]),[r,n,i]}function zM(e){return typeof e=="function"}var P_=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"}),VM="VisuallyHidden",em=p.forwardRef((e,t)=>a.jsx(me.span,{...e,ref:t,style:{...P_,...e.style}}));em.displayName=VM;var UM=em,Ov="ToastProvider",[Dv,WM,HM]=Qf("Toast"),[O_,pse]=Xt("Toast",[HM]),[qM,tm]=O_(Ov),D_=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,c]=p.useState(null),[d,u]=p.useState(0),h=p.useRef(!1),f=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ov}\`. Expected non-empty \`string\`.`),a.jsx(Dv.Provider,{scope:t,children:a.jsx(qM,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:p.useCallback(()=>u(m=>m+1),[]),onToastRemove:p.useCallback(()=>u(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};D_.displayName=Ov;var I_="ToastViewport",GM=["F8"],ky="toast.viewportPause",jy="toast.viewportResume",M_=p.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=GM,label:s="Notifications ({hotkey})",...i}=e,o=tm(I_,r),l=WM(r),c=p.useRef(null),d=p.useRef(null),u=p.useRef(null),h=p.useRef(null),f=_e(t,h,o.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;p.useEffect(()=>{const v=b=>{var w;n.length!==0&&n.every(k=>b[k]||b.code===k)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),p.useEffect(()=>{const v=c.current,b=h.current;if(x&&v&&b){const g=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(ky);b.dispatchEvent(S),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(jy);b.dispatchEvent(S),o.isClosePausedRef.current=!1}},k=S=>{!v.contains(S.relatedTarget)&&w()},j=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",g),v.addEventListener("focusout",k),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",j),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",k),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",j),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[x,o.isClosePausedRef]);const y=p.useCallback(({tabbingDirection:v})=>{const g=l().map(w=>{const k=w.ref.current,j=[k,...i3(k)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?g.reverse():g).flat()},[l]);return p.useEffect(()=>{const v=h.current;if(v){const b=g=>{var j,S,T;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const P=document.activeElement,C=g.shiftKey;if(g.target===v&&C){(j=d.current)==null||j.focus();return}const I=y({tabbingDirection:C?"backwards":"forwards"}),H=I.findIndex(F=>F===P);Ep(I.slice(H+1))?g.preventDefault():C?(S=d.current)==null||S.focus():(T=u.current)==null||T.focus()}};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)}},[l,y]),a.jsxs(DM,{ref:c,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&a.jsx(Ny,{ref:d,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});Ep(v)}}),a.jsx(Dv.Slot,{scope:r,children:a.jsx(me.ol,{tabIndex:-1,...i,ref:f})}),x&&a.jsx(Ny,{ref:u,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});Ep(v)}})]})});M_.displayName=I_;var L_="ToastFocusProxy",Ny=p.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,i=tm(L_,r);return a.jsx(em,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=i.viewport)!=null&&d.contains(l))&&n()}})});Ny.displayName=L_;var Td="Toast",KM="toast.swipeStart",YM="toast.swipeMove",JM="toast.swipeCancel",ZM="toast.swipeEnd",F_=p.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=e,[l,c]=Fr({prop:n,defaultProp:s??!0,onChange:i,caller:Td});return a.jsx(nn,{present:r||l,children:a.jsx(e3,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:rn(e.onPause),onResume:rn(e.onResume),onSwipeStart:ce(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(e.onSwipeMove,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ce(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(e.onSwipeEnd,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});F_.displayName=Td;var[XM,QM]=O_(Td,{onClose(){}}),e3=p.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...x}=e,y=tm(Td,r),[v,b]=p.useState(null),g=_e(t,F=>b(F)),w=p.useRef(null),k=p.useRef(null),j=s||y.duration,S=p.useRef(0),T=p.useRef(j),P=p.useRef(0),{onToastAdd:C,onToastRemove:A}=y,V=rn(()=>{var J;(v==null?void 0:v.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),o()}),I=p.useCallback(F=>{!F||F===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(V,F))},[V]);p.useEffect(()=>{const F=y.viewport;if(F){const J=()=>{I(T.current),d==null||d()},q=()=>{const $=new Date().getTime()-S.current;T.current=T.current-$,window.clearTimeout(P.current),c==null||c()};return F.addEventListener(ky,q),F.addEventListener(jy,J),()=>{F.removeEventListener(ky,q),F.removeEventListener(jy,J)}}},[y.viewport,j,c,d,I]),p.useEffect(()=>{i&&!y.isClosePausedRef.current&&I(j)},[i,j,y.isClosePausedRef,I]),p.useEffect(()=>(C(),()=>A()),[C,A]);const H=p.useMemo(()=>v?H_(v):null,[v]);return y.viewport?a.jsxs(a.Fragment,{children:[H&&a.jsx(t3,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),a.jsx(XM,{scope:r,onClose:V,children:Gi.createPortal(a.jsx(Dv.ItemSlot,{scope:r,children:a.jsx(OM,{asChild:!0,onEscapeKeyDown:ce(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||V(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(me.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ce(e.onKeyDown,F=>{F.key==="Escape"&&(l==null||l(F.nativeEvent),F.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:ce(e.onPointerDown,F=>{F.button===0&&(w.current={x:F.clientX,y:F.clientY})}),onPointerMove:ce(e.onPointerMove,F=>{if(!w.current)return;const J=F.clientX-w.current.x,q=F.clientY-w.current.y,$=!!k.current,R=["left","right"].includes(y.swipeDirection),D=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,U=R?D(0,J):0,de=R?0:D(0,q),ue=F.pointerType==="touch"?10:2,ge={x:U,y:de},xe={originalEvent:F,delta:ge};$?(k.current=ge,bu(YM,h,xe,{discrete:!1})):K0(ge,y.swipeDirection,ue)?(k.current=ge,bu(KM,u,xe,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(J)>ue||Math.abs(q)>ue)&&(w.current=null)}),onPointerUp:ce(e.onPointerUp,F=>{const J=k.current,q=F.target;if(q.hasPointerCapture(F.pointerId)&&q.releasePointerCapture(F.pointerId),k.current=null,w.current=null,J){const $=F.currentTarget,R={originalEvent:F,delta:J};K0(J,y.swipeDirection,y.swipeThreshold)?bu(ZM,m,R,{discrete:!0}):bu(JM,f,R,{discrete:!0}),$.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),t3=e=>{const{__scopeToast:t,children:r,...n}=e,s=tm(Td,t),[i,o]=p.useState(!1),[l,c]=p.useState(!1);return s3(()=>o(!0)),p.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:a.jsx(_d,{asChild:!0,children:a.jsx(em,{...n,children:i&&a.jsxs(a.Fragment,{children:[s.label," ",r]})})})},r3="ToastTitle",$_=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return a.jsx(me.div,{...n,ref:t})});$_.displayName=r3;var n3="ToastDescription",B_=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return a.jsx(me.div,{...n,ref:t})});B_.displayName=n3;var z_="ToastAction",V_=p.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?a.jsx(W_,{altText:r,asChild:!0,children:a.jsx(Iv,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${z_}\`. Expected non-empty \`string\`.`),null)});V_.displayName=z_;var U_="ToastClose",Iv=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=QM(U_,r);return a.jsx(W_,{asChild:!0,children:a.jsx(me.button,{type:"button",...n,ref:t,onClick:ce(e.onClick,s.onClose)})})});Iv.displayName=U_;var W_=p.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return a.jsx(me.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function H_(e){const t=[];
vendor: 9,885 bytes, lines 40-159
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),a3(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...H_(n))}}),t}function bu(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?T_(s,i):s.dispatchEvent(i)}var K0=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),i=n>s;return t==="left"||t==="right"?i&&n>r:!i&&s>r};function s3(e=()=>{}){const t=rn(e);qt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function a3(e){return e.nodeType===e.ELEMENT_NODE}function i3(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ep(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var o3=D_,q_=M_,G_=F_,K_=$_,Y_=B_,J_=V_,Z_=Iv;function X_(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=X_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Q_(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=X_(e))&&(n&&(n+=" "),n+=t);return n}const Y0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,J0=Q_,Ed=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return J0(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(d=>{const u=r==null?void 0:r[d],h=i==null?void 0:i[d];if(u===null)return null;const f=Y0(u)||Y0(h);return s[d][f]}),l=r&&Object.entries(r).reduce((d,u)=>{let[h,f]=u;return f===void 0||(d[h]=f),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:h,className:f,...m}=u;return Object.entries(m).every(x=>{let[y,v]=x;return Array.isArray(v)?v.includes({...i,...l}[y]):{...i,...l}[y]===v})?[...d,h,f]:d},[]);return J0(e,o,c,r==null?void 0:r.class,r==null?void 0:r.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 l3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e2=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).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 c3={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 d3=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...l},c)=>p.createElement("svg",{ref:c,...c3,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:e2("lucide",s),...l},[...o.map(([d,u])=>p.createElement(d,u)),...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 ae=(e,t)=>{const r=p.forwardRef(({className:n,...s},i)=>p.createElement(d3,{ref:i,iconNode:t,className:e2(`lucide-${l3(e)}`,n),...s}));return r.displayName=`${e}`,r};/**
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 u3=ae("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
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 Z0=ae("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
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 Yc=ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 qe=ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 h3=ae("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
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 t2=ae("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
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 sc=ae("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"}]]);/**
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 f3=ae("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
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 Rd=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 jl=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 r2=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 Uh=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 m3=ae("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 p3=ae("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
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 g3=ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 Ad=ae("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 y3=ae("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
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 X0=ae("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
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 x3=ae("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 v3=ae("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
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 b3=ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 Mv=ae("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/**
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 Wh=ae("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"}]]);/**
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 n2=ae("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"}]]);/**
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 Ss=ae("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"}]]);/**
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 s2=ae("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
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 Jc=ae("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
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 w3=ae("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
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 k3=ae("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
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 j3=ae("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/**
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 N3=ae("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
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 S3=ae("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"}]]);/**
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 C3=ae("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
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 Q0=ae("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
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 a2=ae("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
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 _3=ae("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"}]]);/**
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 i2=ae("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
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 o2=ae("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
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 T3=ae("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
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 Rs=ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 E3=ae("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",ke
265y:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const R3=ae("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const Ra=ae("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"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const e1=ae("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"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const A3=ae("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"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const Pd=ae("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const P3=ae("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"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const t1=ae("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const O3=ae("Mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const D3=ae("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
311 * @license lucide-react v0.462.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const I3=ae("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
316 * @license lucide-react v0.462.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const Aa=ae("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
321 * @license lucide-react v0.462.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const r1=ae("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
326 * @license lucide-react v0.462.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const M3=ae("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
331 * @license lucide-react v0.462.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const L3=ae("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
335kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
336 * @license lucide-react v0.462.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const rm=ae("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
341 * @license lucide-react v0.462.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const Hh=ae("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"}]]);/**
346 * @license lucide-react v0.462.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const n1=ae("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
351 * @license lucide-react v0.462.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const l2=ae("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
356 * @license lucide-react v0.462.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const c2=ae("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
361 * @license lucide-react v0.462.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const d2=ae("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"}]]);/**
366 * @license lucide-react v0.462.0 - ISC
367 *
368 * This source code is licensed under the ISC license.
369 * See the LICENSE file in the root directory of this source tree.
370 */const F3=ae("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
371 * @license lucide-react v0.462.0 - ISC
372 *
373 * This source code is licensed under the ISC license.
374 * See the LICENSE file in the root directory of this source tree.
375 */const $3=ae("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
376 * @license lucide-react v0.462.0 - ISC
377 *
378 * This source code is licensed under the ISC license.
379 * See the LICENSE file in the root directory of this source tree.
380 */const Sy=ae("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
381 * @license lucide-react v0.462.0 - ISC
382 *
383 * This source code is licensed under the ISC license.
384 * See the LICENSE file in the root directory of this source tree.
385 */const Od=ae("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"}]]);/**
386 * @license lucide-react v0.462.0 - ISC
387 *
388 * This source code is licensed under the ISC license.
389 * See the LICENSE file in the root directory of this source tree.
vendor: 6,776 bytes, lines 390-400
390 */const B3=ae("Wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]);/**
391 * @license lucide-react v0.462.0 - ISC
392 *
393 * This source code is licensed under the ISC license.
394 * See the LICENSE file in the root directory of this source tree.
395 */const nm=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
396 * @license lucide-react v0.462.0 - ISC
397 *
398 * This source code is licensed under the ISC license.
399 * See the LICENSE file in the root directory of this source tree.
400 */const z3=ae("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Lv="-",V3=e=>{const t=W3(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(Lv);return l[0]===""&&l.length!==1&&l.shift(),u2(l,t)||U3(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},u2=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?u2(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Lv);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},s1=/^\[(.+)\]$/,U3=e=>{if(s1.test(e)){const t=s1.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},W3=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return q3(Object.entries(e.classGroups),r).forEach(([i,o])=>{Cy(o,n,i,t)}),n},Cy=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:a1(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(H3(s)){Cy(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{Cy(o,a1(t,i),r,n)})})},a1=(e,t)=>{let r=e;return t.split(Lv).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},H3=e=>e.isThemeGetter,q3=(e,t)=>t?e.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[r,s]}):e,G3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},h2="!",K3=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],i=t.length,o=l=>{const c=[];let d=0,u=0,h;for(let v=0;v<l.length;v++){let b=l[v];if(d===0){if(b===s&&(n||l.slice(v,v+i)===t)){c.push(l.slice(u,v)),u=v+i;continue}if(b==="/"){h=v;continue}}b==="["?d++:b==="]"&&d--}const f=c.length===0?l:l.substring(u),m=f.startsWith(h2),x=m?f.substring(1):f,y=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:y}};return r?l=>r({className:l,parseClassName:o}):o},Y3=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},J3=e=>({cache:G3(e.cacheSize),parseClassName:K3(e),...V3(e)}),Z3=/\s+/,X3=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(Z3);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:u,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=r(d);let x=!!m,y=n(x?f.substring(0,m):f);if(!y){if(!x){l=d+(l.length>0?" "+l:l);continue}if(y=n(f),!y){l=d+(l.length>0?" "+l:l);continue}x=!1}const v=Y3(u).join(":"),b=h?v+h2:v,g=b+y;if(i.includes(g))continue;i.push(g);const w=s(y,x);for(let k=0;k<w.length;++k){const j=w[k];i.push(b+j)}l=d+(l.length>0?" "+l:l)}return l};function Q3(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=f2(t))&&(n&&(n+=" "),n+=r);return n}const f2=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=f2(e[n]))&&(r&&(r+=" "),r+=t);return r};function e5(e,...t){let r,n,s,i=o;function o(c){const d=t.reduce((u,h)=>h(u),e());return r=J3(d),n=r.cache.get,s=r.cache.set,i=l,l(c)}function l(c){const d=n(c);if(d)return d;const u=X3(c,r);return s(c,u),u}return function(){return i(Q3.apply(null,arguments))}}const at=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},m2=/^\[(?:([a-z-]+):)?(.+)\]$/i,t5=/^\d+\/\d+$/,r5=new Set(["px","full","screen"]),n5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,s5=/\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$/,a5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,i5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,o5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>Bo(e)||r5.has(e)||t5.test(e),Ks=e=>Nl(e,"length",p5),Bo=e=>!!e&&!Number.isNaN(Number(e)),Rp=e=>Nl(e,"number",Bo),Ul=e=>!!e&&Number.isInteger(Number(e)),l5=e=>e.endsWith("%")&&Bo(e.slice(0,-1)),Se=e=>m2.test(e),Ys=e=>n5.test(e),c5=new Set(["length","size","percentage"]),d5=e=>Nl(e,c5,p2),u5=e=>Nl(e,"position",p2),h5=new Set(["image","url"]),f5=e=>Nl(e,h5,y5),m5=e=>Nl(e,"",g5),Wl=()=>!0,Nl=(e,t,r)=>{const n=m2.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},p5=e=>s5.test(e)&&!a5.test(e),p2=()=>!1,g5=e=>i5.test(e),y5=e=>o5.test(e),x5=()=>{const e=at("colors"),t=at("spacing"),r=at("blur"),n=at("brightness"),s=at("borderColor"),i=at("borderRadius"),o=at("borderSpacing"),l=at("borderWidth"),c=at("contrast"),d=at("grayscale"),u=at("hueRotate"),h=at("invert"),f=at("gap"),m=at("gradientColorStops"),x=at("gradientColorStopPositions"),y=at("inset"),v=at("margin"),b=at("opacity"),g=at("padding"),w=at("saturate"),k=at("scale"),j=at("sepia"),S=at("skew"),T=at("space"),P=at("translate"),C=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",Se,t],I=()=>[Se,t],H=()=>["",ps,Ks],F=()=>["auto",Bo,Se],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],$=()=>["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"],D=()=>["","0",Se],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[Bo,Se];return{cacheSize:500,separator:":",theme:{colors:[Wl],spacing:[ps,Ks],blur:["none","",Ys,Se],brightness:de(),borderColor:[e],borderRadius:["n
400one","","full",Ys,Se],borderSpacing:I(),borderWidth:H(),contrast:de(),grayscale:D(),hueRotate:de(),invert:D(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[l5,Ks],inset:V(),margin:V(),opacity:de(),padding:I(),saturate:de(),scale:de(),sepia:D(),skew:de(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[Ys]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:[...J(),Se]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ul,Se]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Ul,Se]}],"grid-cols":[{"grid-cols":[Wl]}],"col-start-end":[{col:["auto",{span:["full",Ul,Se]},Se]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Wl]}],"row-start-end":[{row:["auto",{span:[Ul,Se]},Se]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],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:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,t]}],"min-w":[{"min-w":[Se,t,"min","max","fit"]}],"max-w":[{"max-w":[Se,t,"none","full","min","max","fit","prose",{screen:[Ys]},Ys]}],h:[{h:[Se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ys,Ks]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rp]}],"font-family":[{font:[Wl]}],"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",Se]}],"line-clamp":[{"line-clamp":["none",Bo,Rp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ps,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ps,Ks]}],"underline-offset":[{"underline-offset":["auto",ps,Se]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],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",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}
vendor: 4,216 bytes, line 400
400],"bg-position":[{bg:[...J(),u5]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",d5]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},f5]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"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":[b]}],"border-style":[{border:[...q(),"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":[b]}],"divide-style":[{divide:q()}],"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:["",...q()]}],"outline-offset":[{"outline-offset":[ps,Se]}],"outline-w":[{outline:[ps,Ks]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[ps,Ks]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ys,m5]}],"shadow-color":[{shadow:[Wl]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ys,Se]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Se]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ul,Se]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
400none","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",Se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ps,Ks,Rp]}],stroke:[{stroke:[e,"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"]}}},v5=e5(x5);function Z(...e){return v5(Q_(e))}const b5=o3,g2=p.forwardRef(({className:e,...t},r)=>a.jsx(q_,{ref:r,className:Z("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));g2.displayName=q_.displayName;const w5=Ed("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"}}),y2=p.forwardRef(({className:e,variant:t,...r},n)=>
400a.jsx(G_,{ref:n,className:Z(w5({variant:t}),e),...r}));y2.displayName=G_.displayName;const k5=p.forwardRef(({className:e,...t},r)=>a.jsx(J_,{ref:r,className:Z("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",e),...t}));k5.displayName=J_.displayName;const x2=p.forwardRef(({className:e,...t},r)=>a.jsx(Z_,{ref:r,className:Z("absolute right-2 top-2 rounded-md p-1 text-foreground 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",e),"toast-close":"",...t,children:a.jsx(nm,{className:"h-4 w-4"})}));x2.displayName=Z_.displayName;const v2=p.forwardRef(({className:e,...t},r)=>a.jsx(K_,{ref:r,className:Z("text-sm font-semibold",e),...t}));v2.displayName=K_.displayName;const b2=p.forwardRef(({className:e,...t},r)=>a.jsx(Y_,{ref:r,className:Z("text-sm opacity-90",e),...t}));b2.displayName=Y_.displayName;function j5(){const{toasts:e}=Xf();return a.jsxs(b5,{children:[e.map(function({id:t,title:r,description:n,action:s,...i}){return a.jsxs(y2,{...i,children:[a.jsxs("div",{className:"grid gap-1",children:[r&&a.jsx(v2,{children:r}),n&&a.jsx(b2,{children:n})]}),s,a.jsx(x2,{})]},t)}),a.jsx(g2,{})]})}var i1=["light","dark"],N5="(prefers-color-scheme: dark)",S5=p.createContext(void 0),C5={setTheme:e=>{},themes:[]},_5=()=>{var e;return(e=p.useContext(S5))!=null?e:C5};p.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let d=i==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?i1.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(x,y=!1,v=!0)=>{let b=o?o[x]:x,g=y?x+"|| ''":`'${b}'`,w="";return s&&v&&!y&&i1.includes(x)&&(w+=`d.style.colorScheme = '${x}';`),r==="class"?y||b?w+=`c.add(${g})`:w+="null":b&&(w+=`d[s](n,${g})`),w},m=e?`!function(){${u}${f(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${N5}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${d?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return p.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var T5=e=>{switch(e){case"success":return A5;case"info":return O5;case"warning":return P5;case"error":return D5;default:return null}},E5=Array(12).fill(0),R5=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},E5.map((r,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),A5=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),P5=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.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"})),O5=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),D5=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),I5=M.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"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),M5=()=>
400{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},_y=1,L5=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:_y++,i=this.toasts.find(l=>l.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:r}),{...l,...e,id:s,dismissible:o,title:r}):l):this.addToast({title:r,...n,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
400this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,i,o=n.then(async c=>{if(i=["resolve",c],M.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if($5(c)&&!c.ok){s=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:r,type:"error",message:d,description:u})}else if(t.success!==void 0){s=!1;let d=typeof t.success=="function"?await t.success(c):t.success,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"success",message:d,description:u})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let d=typeof t.error=="function"?await t.error(c):t.error,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"error",message:d,description:u})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>o.then(()=>i[0]==="reject"?d(i[1]):c(i[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||_y++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},br=new L5,F5=(e,t)=>{let r=(t==null?void 0:t.id)||_y++;return br.addToast({title:e,...t,id:r}),r},$5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",B5=F5,z5=()=>br.toasts,V5=()=>br.getActiveToasts(),Xe=Object.assign(B5,{success:br.success,info:br.info,warning:br.warning,error:br.error,custom:br.custom,message:br.message,promise:br.promise,dismiss:br.dismiss,loading:br.loading},{getHistory:z5,getToasts:V5});function U5(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}U5(`: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;
400left: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}
400: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%);
400--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%)}
401`);function wu(e){return e.label!==void 0}var W5=3,H5="32px",q5="16px",o1=4e3,G5=356,K5=14,Y5=20,J5=200;function un(...e){return e.filter(Boolean).join(" ")}function Z5(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var X5=e=>{var t,r,n,s,i,o,l,c,d,u,h;let{invert:f,toast:m,unstyled:x,interacting:y,setHeights:v,visibleToasts:b,heights:g,index:w,toasts:k,expanded:j,removeToast:S,defaultRichColors:T,closeButton:P,style:C,cancelButtonStyle:A,actionButtonStyle:V,className:I="",descriptionClassName:H="",duration:F,position:J,gap:q,loadingIcon:$,expandByDefault:R,classNames:D,icons:U,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:ue}
vendor: 4,474 bytes, line 401
401=e,[ge,xe]=M.useState(null),[$e,et]=M.useState(null),[Q,De]=M.useState(!1),[Je,Te]=M.useState(!1),[Ee,Ae]=M.useState(!1),[Et,Rt]=M.useState(!1),[Er,Ur]=M.useState(!1),[an,Lt]=M.useState(0),[E,N]=M.useState(0),_=M.useRef(m.duration||F||o1),O=M.useRef(null),z=M.useRef(null),W=w===0,L=w+1<=b,X=m.type,we=m.dismissible!==!1,Be=m.className||"",Ce=m.descriptionClassName||"",Ie=M.useMemo(()=>g.findIndex(ke=>ke.toastId===m.id)||0,[g,m.id]),yr=M.useMemo(()=>{var ke;return(ke=m.closeButton)!=null?ke:P},[m.closeButton,P]),Ji=M.useMemo(()=>m.duration||F||o1,[m.duration,F]),ei=M.useRef(0),$n=M.useRef(0),Qd=M.useRef(0),ms=M.useRef(null),[Xm,eu]=J.split("-"),Pw=M.useMemo(()=>g.reduce((ke,Ze,dt)=>dt>=Ie?ke:ke+Ze.height,0),[g,Ie]),Ow=M5(),zD=m.invert||f,Qm=X==="loading";$n.current=M.useMemo(()=>Ie*q+Pw,[Ie,Pw]),M.useEffect(()=>{_.current=Ji},[Ji]),M.useEffect(()=>{De(!0)},[]),M.useEffect(()=>{let ke=z.current;if(ke){let Ze=ke.getBoundingClientRect().height;return N(Ze),v(dt=>[{toastId:m.id,height:Ze,position:m.position},...dt]),()=>v(dt=>dt.filter(on=>on.toastId!==m.id))}},[v,m.id]),M.useLayoutEffect(()=>{if(!Q)return;let ke=z.current,Ze=ke.style.height;ke.style.height="auto";let dt=ke.getBoundingClientRect().height;ke.style.height=Ze,N(dt),v(on=>on.find(ln=>ln.toastId===m.id)?on.map(ln=>ln.toastId===m.id?{...ln,height:dt}:ln):[{toastId:m.id,height:dt,position:m.position},...on])},[Q,m.title,m.description,v,m.id]);let Ws=M.useCallback(()=>{Te(!0),Lt($n.current),v(ke=>ke.filter(Ze=>Ze.toastId!==m.id)),setTimeout(()=>{S(m)},J5)},[m,S,v,$n]);M.useEffect(()=>{if(m.promise&&X==="loading"||m.duration===1/0||m.type==="loading")return;let ke;return j||y||ue&&Ow?(()=>{if(Qd.current<ei.current){let Ze=new Date().getTime()-ei.current;_.current=_.current-Ze}Qd.current=new Date().getTime()})():_.current!==1/0&&(ei.current=new Date().getTime(),ke=setTimeout(()=>{var Ze;(Ze=m.onAutoClose)==null||Ze.call(m,m),Ws()},_.current)),()=>clearTimeout(ke)},[j,y,m,X,ue,Ow,Ws]),M.useEffect(()=>{m.delete&&Ws()},[Ws,m.delete]);function VD(){var ke,Ze,dt;return U!=null&&U.loading?M.createElement("div",{className:un(D==null?void 0:D.loader,(ke=m==null?void 0:m.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":X==="loading"},U.loading):$?M.createElement("div",{className:un(D==null?void 0:D.loader,(Ze=m==null?void 0:m.classNames)==null?void 0:Ze.loader,"sonner-loader"),"data-visible":X==="loading"},$):M.createElement(R5,{className:un(D==null?void 0:D.loader,(dt=m==null?void 0:m.classNames)==null?void 0:dt.loader),visible:X==="loading"})}return M.createElement("li",{tabIndex:0,ref:z,className:un(I,Be,D==null?void 0:D.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[X],(r=m==null?void 0:m.classNames)==null?void 0:r[X]),"data-sonner-toast":"","data-rich-colors":(n=m.richColors)!=null?n:T,"data-styled":!(m.jsx||m.unstyled||x),"data-mounted":Q,"data-promise":!!m.promise,"data-swiped":Er,"data-removed":Je,"data-visible":L,"data-y-position":Xm,"data-x-position":eu,"data-index":w,"data-front":W,"data-swiping":Ee,"data-dismissible":we,"data-type":X,"data-invert":zD,"data-swipe-out":Et,"data-swipe-direction":$e,"data-expanded":!!(j||R&&Q),style:{"--index":w,"--toasts-before":w,"--z-index":k.length-w,"--offset":`${Je?an:$n.current}px`,"--initial-height":R?"auto":`${E}px`,...C,...m.style},onDragEnd:()=>{Ae(!1),xe(null),ms.current=null},onPointerDown:ke=>{Qm||!we||(O.current=new Date,Lt($n.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(Ae(!0),ms.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Ze,dt,on;if(Et||!we)return;ms.current=null;let ln=Number(((ke=z.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Hs=Number(((Ze=z.current)==null?void 0:Ze.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ti=new Date().getTime()-((dt=O.current)==null?void 0:dt.getTime()),cn=ge==="x"?ln:Hs,qs=Math.abs(cn)/ti;if(Math.abs(cn)>=Y5||qs>.11){Lt($n.current),(on=m.onDismiss)==null||on.call(m,m),et(ge==="x"?ln>0?"right":"left":Hs>0?"down":"up"),Ws(),Rt(!0),Ur(!1);return}Ae(!1),xe(null)},onPointerMove:ke=>{var Ze,dt,on,ln;if(!ms.current||!we||((Ze=window.getSelection())==null?void 0:Ze.toString().length)>0)return;let Hs=ke.clientY-ms.current.y,ti=ke.clientX-ms.current.x,cn=(dt=e.swipeDirections)!=null?dt:Z5(J);!ge&&(Math.abs(ti)>1||Math.abs(Hs)>1)&&xe(Math.abs(ti)>Math.abs(Hs)?"x":"y");let qs={x:0,y:0};
401ge==="y"?(cn.includes("top")||cn.includes("bottom"))&&(cn.includes("top")&&Hs<0||cn.includes("bottom")&&Hs>0)&&(qs.y=Hs):ge==="x"&&(cn.includes("left")||cn.includes("right"))&&(cn.includes("left")&&ti<0||cn.includes("right")&&ti>0)&&(qs.x=ti),(Math.abs(qs.x)>0||Math.abs(qs.y)>0)&&Ur(!0),(on=z.current)==null||on.style.setProperty("--swipe-amount-x",`${qs.x}px`),(ln=z.current)==null||ln.style.setProperty("--swipe-amount-y",`${qs.y}px`)}},yr&&!m.jsx?M.createElement("button",{"aria-label":de,"data-disabled":Qm,"data-close-button":!0,onClick:Qm||!we?()=>{}:()=>{var ke;Ws(),(ke=m.onDismiss)==null||ke.call(m,m)},className:un(D==null?void 0:D.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(i=U==null?void 0:U.close)!=null?i:I5):null,m.jsx||p.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:M.createElement(M.Fragment,null,X||m.icon||m.promise?M.createElement("div",{"data-icon":"",className:un(D==null?void 0:D.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||VD():null,m.type!=="loading"?m.
vendor: 4,333 bytes, line 401
401icon||(U==null?void 0:U[X])||T5(X):null):null,M.createElement("div",{"data-content":"",className:un(D==null?void 0:D.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},M.createElement("div",{"data-title":"",className:un(D==null?void 0:D.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?M.createElement("div",{"data-description":"",className:un(H,Ce,D==null?void 0:D.description,(d=m==null?void 0:m.classNames)==null?void 0:d.description)},typeof m.description=="function"?m.description():m.description):null),p.isValidElement(m.cancel)?m.cancel:m.cancel&&wu(m.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||A,onClick:ke=>{var Ze,dt;wu(m.cancel)&&we&&((dt=(Ze=m.cancel).onClick)==null||dt.call(Ze,ke),Ws())},className:un(D==null?void 0:D.cancelButton,(u=m==null?void 0:m.classNames)==null?void 0:u.cancelButton)},m.cancel.label):null,p.isValidElement(m.action)?m.action:m.action&&wu(m.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||V,onClick:ke=>{var Ze,dt;wu(m.action)&&((dt=(Ze=m.action).onClick)==null||dt.call(Ze,ke),!ke.defaultPrevented&&Ws())},className:un(D==null?void 0:D.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function l1(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Q5(e,t){let r={};return[e,t].forEach((n,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",l=i?q5:H5;function c(d){["top","right","bottom","left"].forEach(u=>{r[`${o}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(d=>{n[d]===void 0?r[`${o}-${d}`]=l:r[`${o}-${d}`]=typeof n[d]=="number"?`${n[d]}px`:n[d]}):c(l)}),r}var eL=p.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:h,duration:f,style:m,visibleToasts:x=W5,toastOptions:y,dir:v=l1(),gap:b=K5,loadingIcon:g,icons:w,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:j}=e,[S,T]=M.useState([]),P=M.useMemo(()=>Array.from(new Set([n].concat(S.filter(ue=>ue.position).map(ue=>ue.position)))),[S,n]),[C,A]=M.useState([]),[V,I]=M.useState(!1),[H,F]=M.useState(!1),[J,q]=M.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=M.useRef(null),R=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=M.useRef(null),U=M.useRef(!1),de=M.useCallback(ue=>{T(ge=>{var xe;return(xe=ge.find($e=>$e.id===ue.id))!=null&&xe.delete||br.dismiss(ue.id),ge.filter(({id:$e})=>$e!==ue.id)})},[]);return M.useEffect(()=>br.subscribe(ue=>{if(ue.dismiss){T(ge=>ge.map(xe=>xe.id===ue.id?{...xe,delete:!0}:xe));return}setTimeout(()=>{k_.flushSync(()=>{T(ge=>{let xe=ge.findIndex($e=>$e.id===ue.id);return xe!==-1?[...ge.slice(0,xe),{...ge[xe],...ue},...ge.slice(xe+1)]:[ue,...ge]})})})}),[]),M.useEffect(()=>{if(u!=="system"){q(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;let ue=window.matchMedia("(prefers-color-scheme: dark)");try{ue.addEventListener("change",({matches:ge})=>{q(ge?"dark":"light")})}catch{ue.addListener(({matches:xe})=>{try{q(xe?"dark":"light")}catch($e){console.error($e)}})}},[u]),M.useEffect(()=>{S.length<=1&&I(!1)},[S]),M.useEffect(()=>{let ue=ge=>{var xe,$e;s.every(et=>ge[et]||ge.code===et)&&(I(!0),(xe=$.current)==null||xe.focus()),ge.code==="Escape"&&(document.activeElement===$.current||($e=$.current)!=null&&$e.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",ue),()=>document.removeEventListener("keydown",ue)},[s]),M.useEffect(()=>{if($.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,U.current=!1)}},[$.current]),M.createElement("section",{ref:t,"aria-label":`${k} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((ue,ge)=>{var xe;
vendor: 4,877 bytes, line 401
401let[$e,et]=ue.split("-");return S.length?M.createElement("ol",{key:ue,dir:v==="auto"?l1():v,tabIndex:-1,ref:$,className:l,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":$e,"data-lifted":V&&S.length>1&&!i,"data-x-position":et,style:{"--front-toast-height":`${((xe=C[0])==null?void 0:xe.height)||0}px`,"--width":`${G5}px`,"--gap":`${b}px`,...m,...Q5(c,d)},onBlur:Q=>{U.current&&!Q.currentTarget.contains(Q.relatedTarget)&&(U.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||U.current||(U.current=!0,D.current=Q.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{H||I(!1)},onDragEnd:()=>I(!1),onPointerDown:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},S.filter(Q=>!Q.position&&ge===0||Q.position===ue).map((Q,De)=>{var Je,Te;return M.createElement(X5,{key:Q.id,icons:w,index:De,toast:Q,defaultRichColors:h,duration:(Je=y==null?void 0:y.duration)!=null?Je:f,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:x,closeButton:(Te=y==null?void 0:y.closeButton)!=null?Te:o,interacting:H,position:ue,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:de,toasts:S.filter(Ee=>Ee.position==Q.position),heights:C.filter(Ee=>Ee.position==Q.position),setHeights:A,expandByDefault:i,gap:b,loadingIcon:g,expanded:V,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const tL=({...e})=>{const{theme:t="system"}=_5();return a.jsx(eL,{theme:t,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"}},...e})},w2=p.createContext({theme:"light",toggle:()=>{}}),rL=({children:e})=>{const[t,r]=p.useState(()=>typeof window<"u"&&localStorage.getItem("theme")||"light");p.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("theme",t)},[t]);const n=()=>r(s=>s==="light"?"dark":"light");return a.jsx(w2.Provider,{value:{theme:t,toggle:n},children:e})},Fv=()=>p.useContext(w2);var nL=Vx[" useId ".trim().toString()]||(()=>{}),sL=0;function Rn(e){const[t,r]=p.useState(nL());return qt(()=>{e||r(n=>n??String(sL++))},[e]),e||(t?`radix-${t}`:"")}const aL=["top","right","bottom","left"],La=Math.min,Pr=Math.max,qh=Math.round,ku=Math.floor,ss=e=>({x:e,y:e}),iL={left:"right",right:"left",bottom:"top",top:"bottom"},oL={start:"end",end:"start"};function Ty(e,t,r){return Pr(e,La(t,r))}function $s(e,t){return typeof e=="function"?e(t):e}function Bs(e){return e.split("-")[0]}function Sl(e){return e.split("-")[1]}function $v(e){return e==="x"?"y":"x"}function Bv(e){return e==="y"?"height":"width"}const lL=new Set(["top","bottom"]);function es(e){return lL.has(Bs(e))?"y":"x"}function zv(e){return $v(es(e))}function cL(e,t,r){r===void 0&&(r=!1);const n=Sl(e),s=zv(e),i=Bv(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Gh(o)),[o,Gh(o)]}function dL(e){const t=Gh(e);return[Ey(e),t,Ey(t)]}function Ey(e){return e.replace(/start|end/g,t=>oL[t])}const c1=["left","right"],d1=["right","left"],uL=["top","bottom"],hL=["bottom","top"];function fL(e,t,r){switch(e){case"top":case"bottom":return r?t?d1:c1:t?c1:d1;case"left":case"right":return t?uL:hL;default:return[]}}function mL(e,t,r,n){const s=Sl(e);let i=fL(Bs(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Ey)))),i}function Gh(e){return e.replace(/left|right|bottom|top/g,t=>iL[t])}function pL(e){return{top:0,right:0,bottom:0,left:0,...e}}function k2(e){return typeof e!="number"?pL(e):{top:e,right:e,bottom:e,left:e}}function Kh(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function u1(e,t,r){let{reference:n,floating:s}=e;const i=es(t),o=zv(t),l=Bv(o),c=Bs(t),d=i==="y",u=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,f=n[l]/2-s[l]/2;let m;switch(c){case"top":m={x:u,y:n.y-s.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:h};break;case"left":m={x:n.x-s.width,y:h};break;default:m={x:n.x,y:n.y}}switch(Sl(t)){case"start":m[o]-=f*(r&&d?-1:1);break;case"end":m[o]+=f*(r&&d?-1:1);break}return m}const gL=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}
vendor: 17,327 bytes, line 401
401=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:h}=u1(d,n,c),f=n,m={},x=0;for(let y=0;y<l.length;y++){const{name:v,fn:b}=l[y],{x:g,y:w,data:k,reset:j}=await b({x:u,y:h,initialPlacement:n,placement:f,strategy:s,middlewareData:m,rects:d,platform:o,elements:{reference:e,floating:t}});u=g??u,h=w??h,m={...m,[v]:{...m[v],...k}},j&&x<=50&&(x++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(d=j.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):j.rects),{x:u,y:h}=u1(d,f,c)),y=-1)}return{x:u,y:h,placement:f,strategy:s,middlewareData:m}};async function Zc(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=$s(t,e),x=k2(m),v=l[f?h==="floating"?"reference":"floating":h],b=Kh(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),g=h==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},j=Kh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:c}):g);return{top:(b.top-j.top+x.top)/k.y,bottom:(j.bottom-b.bottom+x.bottom)/k.y,left:(b.left-j.left+x.left)/k.x,right:(j.right-b.right+x.right)/k.x}}const yL=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=$s(e,t)||{};if(d==null)return{};const h=k2(u),f={x:r,y:n},m=zv(s),x=Bv(m),y=await o.getDimensions(d),v=m==="y",b=v?"top":"left",g=v?"bottom":"right",w=v?"clientHeight":"clientWidth",k=i.reference[x]+i.reference[m]-f[m]-i.floating[x],j=f[m]-i.reference[m],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let T=S?S[w]:0;(!T||!await(o.isElement==null?void 0:o.isElement(S)))&&(T=l.floating[w]||i.floating[x]);const P=k/2-j/2,C=T/2-y[x]/2-1,A=La(h[b],C),V=La(h[g],C),I=A,H=T-y[x]-V,F=T/2-y[x]/2+P,J=Ty(I,F,H),q=!c.arrow&&Sl(s)!=null&&F!==J&&i.reference[x]/2-(F<I?A:V)-y[x]/2<0,$=q?F<I?F-I:F-H:0;return{[m]:f[m]+$,data:{[m]:J,centerOffset:F-J-$,...q&&{alignmentOffset:$}},reset:q}}}),xL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...v}=$s(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Bs(s),g=es(l),w=Bs(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(d.floating)),j=f||(w||!y?[Gh(l)]:dL(l)),S=x!=="none";!f&&S&&j.push(...mL(l,y,x,k));const T=[l,...j],P=await Zc(t,v),C=[];let A=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&C.push(P[b]),h){const F=cL(s,o,k);C.push(P[F[0]],P[F[1]])}if(A=[...A,{placement:s,overflows:C}],!C.every(F=>F<=0)){var V,I;const F=(((V=i.flip)==null?void 0:V.index)||0)+1,J=T[F];if(J&&(!(h==="alignment"?g!==es(J):!1)||A.every(R=>R.overflows[0]>0&&es(R.placement)===g)))return{data:{index:F,overflows:A},reset:{placement:J}};let q=(I=A.filter($=>$.overflows[0]<=0).sort(($,R)=>$.overflows[1]-R.overflows[1])[0])==null?void 0:I.placement;if(!q)switch(m){case"bestFit":{var H;const $=(H=A.filter(R=>{if(S){const D=es(R.placement);return D===g||D==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(D=>D>0).reduce((D,U)=>D+U,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:H[0];$&&(q=$);break}case"initialPlacement":q=l;break}if(s!==q)return{reset:{placement:q}}}return{}}}};function h1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function f1(e){return aL.some(t=>e[t]>=0)}const vL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=$s(e,t);switch(n){case"referenceHidden":{const i=await Zc(t,{...s,elementContext:"reference"}),o=h1(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:f1(o)}}}case"escaped":{const i=await Zc(t,{...s,altBoundary:!0}),o=h1(i,r.floating);return{data:{escapedOffsets:o,escaped:f1(o)}}}default:return{}}}}},j2=new Set(["left","top"]);async function bL(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=Bs(r),l=Sl(r),c=es(r)==="y",d=j2.has(o)?-1:1,u=i&&c?-1:1,h=$s(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),c?{x:m*u,y:f*d}:{x:f*d,y:m*u}}const wL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:l}=t,c=await bL(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},kL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:b,y:g}=v;return{x:b,y:g}}},...c}=$s(e,t),d={x:r,y:n},u=await Zc(t,c),h=es(Bs(s)),f=$v(h);let m=d[f],x=d[h];if(i){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",g=m+u[v],w=m-u[b];m=Ty(g,m,w)}if(o){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",g=x+u[v],w=x-u[b];x=Ty(g,x,w)}const y=l.fn({...t,[f]:m,[h]:x});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[f]:i,[h]:o}}}}}},jL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=$s(e,t),u={x:r,y:n},h=es(s),f=$v(h);let m=u[f],x=u[h];const y=$s(l,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=f==="y"?"height":"width",k=i.reference[f]-i.floating[w]+v.mainAxis,j=i.reference[f]+i.reference[w]-v.mainAxis;m<k?m=k:m>j&&(m=j)}if(d){var b,g;const w=f==="y"?"width":"height",k=j2.has(Bs(s)),j=i.reference[h]-i.floating[w]+(k&&((b=o.offset)==null?void 0:b[h])||0)+(k?0:v.crossAxis),S=i.reference[h]+i.reference[w]+(k?0:((g=o.offset)==null?void 0:g[h])||0)-(k?v.crossAxis:0);x<j?x=j:x>S&&(x=S)}return{[f]:m,[h]:x}}}},NL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...d}=$s(e,t),u=await Zc(t,d),h=Bs(s),f=Sl(s),m=es(s)==="y",{width:x,height:y}=i.floating;let v,b;h==="top"||h==="bottom"?(v=h,b=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(b=h,v=f==="end"?"top":"bottom");const g=y-u.top-u.bottom,w=x-u.left-u.right,k=La(y-u[v],g),j=La(x-u[b],w),S=!t.middlewareData.shift;let T=k,P=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=g),S&&!f){const A=Pr(u.left,0),V=Pr(u.right,0),I=Pr(u.top,0),H=Pr(u.bottom,0);m?P=x-2*(A!==0||V!==0?A+V:Pr(u.left,u.right)):T=y-2*(I!==0||H!==0?I+H:Pr(u.top,u.bottom))}await c({...t,availableWidth:P,availableHeight:T});const C=await o.getDimensions(l.floating);return x!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}};function sm(){return typeof window<"u"}function Cl(e){return N2(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ds(e){var t;return(t=(N2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function N2(e){return sm()?e instanceof Node||e instanceof Mr(e).Node:!1}function On(e){return sm()?e instanceof Element||e instanceof Mr(e).Element:!1}function os(e){return sm()?e instanceof HTMLElement||e instanceof Mr(e).HTMLElement:!1}function m1(e){return!sm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot}const SL=new Set(["inline","contents"]);function Dd(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!SL.has(s)}const CL=new Set(["table","td","th"]);function _L(e){return CL.has(Cl(e))}const TL=[":popover-open",":modal"];function am(e){return TL.some(t=>{try{return e.matches(t)}catch{return!1}})}const EL=["transform","translate","scale","rotate","perspective"],RL=["transform","translate","scale","rotate","perspective","filter"],AL=["paint","layout","strict","content"];function Vv(e){const t=Uv(),r=On(e)?Dn(e):e;return EL.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||RL.some(n=>(r.willChange||"").includes(n))||AL.some(n=>(r.contain||"").includes(n))}function PL(e){let t=Fa(e);for(;os(t)&&!il(t);){if(Vv(t))return t;if(am(t))return null;t=Fa(t)}return null}function Uv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OL=new Set(["html","body","#document"]);function il(e){return OL.has(Cl(e))}function Dn(e){return Mr(e).getComputedStyle(e)}function im(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fa(e){if(Cl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||m1(e)&&e.host||ds(e);return m1(t)?t.host:t}function S2(e){const t=Fa(e);return il(t)?e.ownerDocument?e.ownerDocument.body:e.body:os(t)&&Dd(t)?t:S2(t)}function Xc(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=S2(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Mr(s);if(i){const l=Ry(o);return t.concat(o,o.visualViewport||[],Dd(s)?s:[],l&&r?Xc(l):[])}return t.concat(s,Xc(s,[],r))}function Ry(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function C2(e){const t=Dn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=os(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,l=qh(r)!==i||qh(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function Wv(e){return On(e)?e:e.contextElement}function zo(e){const t=Wv(e);if(!os(t))return ss(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=C2(t);let o=(i?qh(r.width):r.width)/n,l=(i?qh(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const DL=ss(0);function _2(e){const t=Mr(e);return!Uv()||!t.visualViewport?DL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function IL(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Mr(e)?!1:t}function Fi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Wv(e);let o=ss(1);t&&(n?On(n)&&(o=zo(n)):o=zo(e));const l=IL(i,r,n)?_2(i):ss(0);let c=(s.left+l.x)/o.x,d=(s.top+l.y)/o.y,u=s.width/o.x,h=s.height/o.y;if(i){const f=Mr(i),m=n&&On(n)?Mr(n):n;let x=f,y=Ry(x);for(;y&&n&&m!==x;){const v=zo(y),b=y.getBoundingClientRect(),g=Dn(y),w=b.left+(y.clientLeft+parseFloat(g.paddingLeft))*v.x,k=b.top+(y.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,d*=v.y,u*=v.x,h*=v.y,c+=w,d+=k,x=Mr(y),y=Ry(x)}}return Kh({width:u,height:h,x:c,y:d})}function Hv(e,t){const r=im(e).scrollLeft;return t?t.left+r:Fi(ds(e)).left+r}function T2(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:Hv(e,n)),i=n.top+t.scrollTop;return{x:s,y:i}}function ML(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=ds(n),l=t?am(t.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},d=ss(1);const u=ss(0),h=os(n);if((h||!h&&!i)&&((Cl(n)!=="body"||Dd(o))&&(c=im(n)),os(n))){const m=Fi(n);d=zo(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const f=o&&!h&&!i?T2(o,c,!0):ss(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-c.scrollTop*d.y+u.y+f.y}}function LL(e){return Array.from(e.getClientRects())}function FL(e){const t=ds(e),r=im(e),n=e.ownerDocument.body,s=Pr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Hv(e);const l=-r.scrollTop;return Dn(n).direction==="rtl"&&(o+=Pr(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:l}}function $L(e,t){const r=Mr(e),n=ds(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(s){i=s.width,o=s.height;const d=Uv();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:l,y:c}}const BL=new Set(["absolute","fixed"]);function zL(e,t){const r=Fi(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=os(e)?zo(e):ss(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,d=n*i.y;return{width:o,height:l,x:c,y:d}}function p1(e,t,r){let n;if(t==="viewport")n=$L(e,r);else if(t==="document")n=FL(ds(e));else if(On(t))n=zL(t,r);else{const s=_2(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Kh(n)}function E2(e,t){const r=Fa(e);return r===t||!On(r)||il(r)?!1:Dn(r).position==="fixed"||E2(r,t)}function VL(e,t){const r=t.get(e);if(r)return r;let n=Xc(e,[],!1).filter(l=>On(l)&&Cl(l)!=="body"),s=null;const i=Dn(e).position==="fixed";let o=i?Fa(e):e;for(;On(o)&&!il(o);){const l=Dn(o),c=Vv(o);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&BL.has(s.position)||Dd(o)&&!c&&E2(e,o))?n=n.filter(u=>u!==o):s=l,o=Fa(o)}return t.set(e,n),n}function UL(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const o=[...r==="clippingAncestors"?am(t)?[]:VL(t,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,u)=>{const h=p1(t,u,s);return d.top=Pr(h.top,d.top),d.right=La(h.right,d.right),d.bottom=La(h.bottom,d.bottom),d.left=Pr(h.left,d.left),d},p1(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function WL(e){const{width:t,height:r}=C2(e);return{width:t,height:r}}function HL(e,t,r){const n=os(t),s=ds(t),i=r==="fixed",o=Fi(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=ss(0);function d(){c.x=Hv(s)}if(n||!n&&!i)if((Cl(t)!=="body"||Dd(s))&&(l=im(t)),n){const m=Fi(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else s&&d();i&&!n&&s&&d();const u=s&&!n&&!i?T2(s,l):ss(0),h=o.left+l.scrollLeft-c.x-u.x,f=o.top+l.scrollTop-c.y-u.y;return{x:h,y:f,width:o.width,height:o.height}}function Ap(e){return Dn(e).position==="static"}function g1(e,t){if(!os(e)||Dn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ds(e)===r&&(r=r.ownerDocument.body),r}function R2(e,t){const r=Mr(e);if(am(e))return r;if(!os(e)){let s=Fa(e);for(;s&&!il(s);){if(On(s)&&!Ap(s))return s;s=Fa(s)}return r}let n=g1(e,t);for(;n&&_L(n)&&Ap(n);)n=g1(n,t);return n&&il(n)&&Ap(n)&&!Vv(n)?r:n||PL(e)||r}const qL=async function(e){const t=this.getOffsetParent||R2,r=this.getDimensions,n=await r(e.floating);return{reference:HL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function GL(e){return Dn(e).direction==="rtl"}const KL={convertOffsetParentRelativeRectToViewportRelativeRect:ML,getDocumentElement:ds,getClippingRect:UL,getOffsetParent:R2,getElementRects:qL,getClientRects:LL,getDimensions:WL,getScale:zo,isElement:On,isRTL:GL};function A2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YL(e,t){let r=null,n;const s=ds(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:h,width:f,height:m}=d;if(l||t(),!f||!m)return;const x=ku(h),y=ku(s.clientWidth-(u+f)),v=ku(s.clientHeight-(h+m)),b=ku(u),w={rootMargin:-x+"px "+-y+"px "+-v+"px "+-b+"px",threshold:Pr(0,La(1,c))||1};let k=!0;function j(S){const T=S[0].intersectionRatio;if(T!==c){if(!k)return o();T?o(!1,T):n=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!A2(d,e.getBoundingClientRect())&&o(),k=!1}try{r=new IntersectionObserver(j,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(j,w)}r.observe(e)}return o(!0),i}function JL(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Wv(e),u=s||i?[...d?Xc(d):[],...Xc(t)]:[];u.forEach(b=>{s&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const h=d&&l?YL(d,r):null;let f=-1,m=null;o&&(m=new ResizeObserver(b=>{let[g]=b;g&&g.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),r()}),d&&!c&&m.observe(d),m.observe(t));let x,y=c?Fi(e):null;c&&v();function v(){const b=Fi(e);y&&!A2(y,b)&&r(),y=b,x=requestAnimationFrame(v)}return r(),()=>{var b;u.forEach(g=>{s&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),h==null||h(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const ZL=wL,XL=kL,QL=xL,e6=NL,t6=vL,y1=yL,r6=jL,n6=(e,t,r)=>{const n=new Map,s={platform:KL,...r},i={...s.platform,_c:n};return gL(e,t,{...s,platform:i})};var s6=typeof document<"u",a6=function(){},ah=s6?p.useLayoutEffect:a6;function Yh(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 401
401if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Yh(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!Yh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function P2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function x1(e,t){const r=P2(e);return Math.round(t*r)/r}function Pp(e){const t=p.useRef(e);return ah(()=>{t.current=e}),t}function i6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(n);Yh(f,n)||m(n);const[x,y]=p.useState(null),[v,b]=p.useState(null),g=p.useCallback(R=>{R!==S.current&&(S.current=R,y(R))},[]),w=p.useCallback(R=>{R!==T.current&&(T.current=R,b(R))},[]),k=i||x,j=o||v,S=p.useRef(null),T=p.useRef(null),P=p.useRef(u),C=c!=null,A=Pp(c),V=Pp(s),I=Pp(d),H=p.useCallback(()=>{if(!S.current||!T.current)return;const R={placement:t,strategy:r,middleware:f};V.current&&(R.platform=V.current),n6(S.current,T.current,R).then(D=>{const U={...D,isPositioned:I.current!==!1};F.current&&!Yh(P.current,U)&&(P.current=U,Gi.flushSync(()=>{h(U)}))})},[f,t,r,V,I]);ah(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[d]);const F=p.useRef(!1);ah(()=>(F.current=!0,()=>{F.current=!1}),[]),ah(()=>{if(k&&(S.current=k),j&&(T.current=j),k&&j){if(A.current)return A.current(k,j,H);H()}},[k,j,H,A,C]);const J=p.useMemo(()=>({reference:S,floating:T,setReference:g,setFloating:w}),[g,w]),q=p.useMemo(()=>({reference:k,floating:j}),[k,j]),$=p.useMemo(()=>{const R={position:r,left:0,top:0};if(!q.floating)return R;const D=x1(q.floating,u.x),U=x1(q.floating,u.y);return l?{...R,transform:"translate("+D+"px, "+U+"px)",...P2(q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:U}},[r,l,q.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:H,refs:J,elements:q,floatingStyles:$}),[u,H,J,q,$])}const o6=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?y1({element:n.current,padding:s}).fn(r):{}:n?y1({element:n,padding:s}).fn(r):{}}}},l6=(e,t)=>({...ZL(e),options:[e,t]}),c6=(e,t)=>({...XL(e),options:[e,t]}),d6=(e,t)=>({...r6(e),options:[e,t]}),u6=(e,t)=>({...QL(e),options:[e,t]}),h6=(e,t)=>({...e6(e),options:[e,t]}),f6=(e,t)=>({...t6(e),options:[e,t]}),m6=(e,t)=>({...o6(e),options:[e,t]});var p6="Arrow",O2=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...i}=e;return a.jsx(me.svg,{...i,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});O2.displayName=p6;var g6=O2;function om(e){const[t,r]=p.useState(void 0);return qt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var qv="Popper",[D2,_l]=Xt(qv),[y6,I2]=D2(qv),M2=e=>{const{__scopePopper:t,children:r}=e,[n,s]=p.useState(null);return a.jsx(y6,{scope:t,anchor:n,onAnchorChange:s,children:r})};M2.displayName=qv;var L2="PopperAnchor",F2=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,i=I2(L2,r),o=p.useRef(null),l=_e(t,o);return p.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:a.jsx(me.div,{...s,ref:l})});F2.displayName=L2;var Gv="PopperContent",[x6,v6]=D2(Gv),$2=p.forwardRef((e,t)=>
vendor: 4,213 bytes, line 401
401{var Q,De,Je,Te,Ee,Ae;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:x,...y}=e,v=I2(Gv,r),[b,g]=p.useState(null),w=_e(t,Et=>g(Et)),[k,j]=p.useState(null),S=om(k),T=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,C=n+(i!=="center"?"-"+i:""),A=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},V=Array.isArray(d)?d:[d],I=V.length>0,H={padding:A,boundary:V.filter(w6),altBoundary:I},{refs:F,floatingStyles:J,placement:q,isPositioned:$,middlewareData:R}=i6({strategy:"fixed",placement:C,whileElementsMounted:(...Et)=>JL(...Et,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[l6({mainAxis:s+P,alignmentAxis:o}),c&&c6({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?d6():void 0,...H}),c&&u6({...H}),h6({...H,apply:({elements:Et,rects:Rt,availableWidth:Er,availableHeight:Ur})=>{const{width:an,height:Lt}=Rt.reference,E=Et.floating.style;E.setProperty("--radix-popper-available-width",`${Er}px`),E.setProperty("--radix-popper-available-height",`${Ur}px`),E.setProperty("--radix-popper-anchor-width",`${an}px`),E.setProperty("--radix-popper-anchor-height",`${Lt}px`)}}),k&&m6({element:k,padding:l}),k6({arrowWidth:T,arrowHeight:P}),f&&f6({strategy:"referenceHidden",...H})]}),[D,U]=V2(q),de=rn(x);qt(()=>{$&&(de==null||de())},[$,de]);const ue=(Q=R.arrow)==null?void 0:Q.x,ge=(De=R.arrow)==null?void 0:De.y,xe=((Je=R.arrow)==null?void 0:Je.centerOffset)!==0,[$e,et]=p.useState();return qt(()=>{b&&et(window.getComputedStyle(b).zIndex)},[b]),a.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:$?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(Te=R.transformOrigin)==null?void 0:Te.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ae=R.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(x6,{scope:r,placedSide:D,onArrowChange:j,arrowX:ue,arrowY:ge,shouldHideArrow:xe,children:a.jsx(me.div,{"data-side":D,"data-align":U,...y,ref:w,style:{...y.style,animation:$?void 0:"none"}})})})});$2.displayName=Gv;var B2="PopperArrow",b6={top:"bottom",right:"left",bottom:"top",left:"right"},z2=p.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,i=v6(B2,n),o=b6[i.placedSide];return a.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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:a.jsx(g6,{...s,ref:r,style:{...s.style,display:"block"}})})});z2.displayName=B2;function w6(e){return e!==null}var k6=e=>({name:"transformOrigin",options:e,fn(t){var v,b,g;const{placement:r,rects:n,middlewareData:s}=t,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,u]=V2(r),h={start:"0%",center:"50%",end:"100%"}[u],f=(((b=s.arrow)==null?void 0:b.x)??0)+l/2,m=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let x="",y="";return d==="bottom"?(x=o?h:`${f}px`,y=`${-c}px`):d==="top"?(x=o?h:`${f}px`,y=`${n.floating.height+c}px`):d==="right"?(x=`${-c}px`,y=o?h:`${m}px`):d==="left"&&(x=`${n.floating.width+c}px`,y=o?h:`${m}px`),{data:{x,y}}}});function V2(e){const[t,r="center"]=e.split("-");return[t,r]}var U2=M2,lm=F2,Kv=$2,Yv=z2,[cm,gse]=Xt("Tooltip",[_l]),Jv=_l(),W2="TooltipProvider",j6=700,v1="tooltip.open",[N6,H2]=cm(W2),q2=e=>{const{__scopeTooltip:t,delayDuration:r=j6,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=e,o=p.useRef(!0),l=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(N6,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,221 bytes, line 401
401o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:p.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:i})};q2.displayName=W2;var G2="Tooltip",[yse,dm]=cm(G2),Ay="TooltipTrigger",S6=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=dm(Ay,r),i=H2(Ay,r),o=Jv(r),l=p.useRef(null),c=_e(t,l,s.onTriggerChange),d=p.useRef(!1),u=p.useRef(!1),h=p.useCallback(()=>d.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(lm,{asChild:!0,...o,children:a.jsx(me.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:ce(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ce(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ce(e.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ce(e.onFocus,()=>{d.current||s.onOpen()}),onBlur:ce(e.onBlur,s.onClose),onClick:ce(e.onClick,s.onClose)})})});S6.displayName=Ay;var C6="TooltipPortal",[xse,_6]=cm(C6,{forceMount:void 0}),ol="TooltipContent",K2=p.forwardRef((e,t)=>{const r=_6(ol,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=e,o=dm(ol,e.__scopeTooltip);return a.jsx(nn,{present:n||o.open,children:o.disableHoverableContent?a.jsx(Y2,{side:s,...i,ref:t}):a.jsx(T6,{side:s,...i,ref:t})})}),T6=p.forwardRef((e,t)=>{const r=dm(ol,e.__scopeTooltip),n=H2(ol,e.__scopeTooltip),s=p.useRef(null),i=_e(t,s),[o,l]=p.useState(null),{trigger:c,onClose:d}=r,u=s.current,{onPointerInTransitChange:h}=n,f=p.useCallback(()=>{l(null),h(!1)},[h]),m=p.useCallback((x,y)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},g=O6(b,v.getBoundingClientRect()),w=D6(b,g),k=I6(y.getBoundingClientRect()),j=L6([...w,...k]);l(j),h(!0)},[h]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(c&&u){const x=v=>m(v,u),y=v=>m(v,c);return c.addEventListener("pointerleave",x),u.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",y)}}},[c,u,m,f]),p.useEffect(()=>{if(o){const x=y=>{const v=y.target,b={x:y.clientX,y:y.clientY},g=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),w=!M6(b,o);g?f():w&&(f(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,u,o,d,f]),a.jsx(Y2,{...e,ref:i})}),[E6,R6]=cm(G2,{isInside:!1}),A6=__("TooltipContent"),Y2=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=dm(ol,r),d=Jv(r),{onClose:u}=c;return p.useEffect(()=>(document.addEventListener(v1,u),()=>document.removeEventListener(v1,u)),[u]),p.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),a.jsx(kl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:a.jsxs(Kv,{"data-state":c.stateAttribute,...d,...l,ref:t,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:[a.jsx(A6,{children:n}),a.jsx(E6,{scope:r,isInside:!0,children:a.jsx(UM,{id:c.contentId,role:"tooltip",children:s||n})})]})})});K2.displayName=ol;var J2="TooltipArrow",P6=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Jv(r);return R6(J2,r).isInside?null:a.jsx(Yv,{...s,...n,ref:t})});P6.displayName=J2;function O6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function D6(e,t,r=5){const n=[];
401switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function I6(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function M6(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,u=l.y,h=c.x,f=c.y;u>n!=f>n&&r<(h-d)*(n-u)/(f-u)+d&&(s=!s)}return s}function L6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),F6(t)}function F6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var $6=q2,Z2=K2;const B6=$6,z6=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>a.jsx(Z2,{ref:n,sideOffset:t,className:Z("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));z6.displayName=Z2.displayName;var um=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hm=typeof window>"u"||"Deno"in globalThis;function xn(){}function V6(e,t){return typeof e=="function"?e(t):e}function U6(e){return typeof e=="number"&&e>=0&&e!==1/0}function W6(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Py(e,t){return typeof e=="function"?e(t):e}function H6(e,t){return typeof e=="function"?e(t):e}function b1(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==Zv(o,t.options))return!1}else if(!ed(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function w1(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Qc(t.options.mutationKey)!==Qc(i))return!1}else if(!ed(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Zv(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qc)(e)}function Qc(e){return JSON.stringify(e,(t,r)=>Oy(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function ed(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ed(e[r],t[r])):!1}function X2(e,t){if(e===t)return e;const r=k1(e)&&k1(t);if(r||Oy(e)&&Oy(t)){const n=r?e:Object.keys(e),s=n.length,i=r?t:Object.keys(t),o=i.length,l=r?[]:{},c=new Set(n);let d=0;for(let u=0;u<o;u++){const h=r?u:i[u];(!r&&c.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=X2(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return s===o&&d===s?e:l}return t}function k1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oy(e){if(!j1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!j1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function j1(e){return Object.prototype.toString.call(e)==="[object Object]"}function q6(e){return new Promise(t=>{setTimeout(t,e)})}function G6(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?X2(e,t):t}function K6(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Y6(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Xv=Symbol();function Q2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ki,ha,Ho,tS,J6=(tS=class extends um{constructor(){super();ze(this,ki);ze(this,ha);ze(this,Ho);je(this,Ho,t=>{if(!hm&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){B(this,ha)||this.setEventListener(B(this,Ho))}onUnsubscribe(){var t;this.hasListeners()||((t=B(this,ha))==null||t.call(this),je(this,ha,void 0))}setEventListener(t){var r;
vendor: 5,143 bytes, line 401
401je(this,Ho,t),(r=B(this,ha))==null||r.call(this),je(this,ha,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){B(this,ki)!==t&&(je(this,ki,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof B(this,ki)=="boolean"?B(this,ki):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ki=new WeakMap,ha=new WeakMap,Ho=new WeakMap,tS),eT=new J6,qo,fa,Go,rS,Z6=(rS=class extends um{constructor(){super();ze(this,qo,!0);ze(this,fa);ze(this,Go);je(this,Go,t=>{if(!hm&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){B(this,fa)||this.setEventListener(B(this,Go))}onUnsubscribe(){var t;this.hasListeners()||((t=B(this,fa))==null||t.call(this),je(this,fa,void 0))}setEventListener(t){var r;je(this,Go,t),(r=B(this,fa))==null||r.call(this),je(this,fa,t(this.setOnline.bind(this)))}setOnline(t){B(this,qo)!==t&&(je(this,qo,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return B(this,qo)}},qo=new WeakMap,fa=new WeakMap,Go=new WeakMap,rS),Jh=new Z6;function X6(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function Q6(e){return Math.min(1e3*2**e,3e4)}function tT(e){return(e??"online")==="online"?Jh.isOnline():!0}var rT=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Op(e){return e instanceof rT}function nT(e){let t=!1,r=0,n=!1,s;const i=X6(),o=y=>{var v;n||(f(new rT(y)),(v=e.abort)==null||v.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>eT.isFocused()&&(e.networkMode==="always"||Jh.isOnline())&&e.canRun(),u=()=>tT(e.networkMode)&&e.canRun(),h=y=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,y),s==null||s(),i.resolve(y))},f=y=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,y),s==null||s(),i.reject(y))},m=()=>new Promise(y=>{var v;s=b=>{(n||d())&&y(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;s=void 0,n||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(n)return;let y;const v=r===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(b){y=Promise.reject(b)}Promise.resolve(y).then(h).catch(b=>{var S;if(n)return;const g=e.retry??(hm?0:3),w=e.retryDelay??Q6,k=typeof w=="function"?w(r,b):w,j=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,b);if(t||!j){f(b);return}r++,(S=e.onFail)==null||S.call(e,r,b),q6(k).then(()=>d()?void 0:m()).then(()=>{t?f(b):x()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?x():m().then(x),i)}}var eF=e=>setTimeout(e,0);function tF(){let e=[],t=0,r=l=>{l()},n=l=>{l()},s=eF;const i=l=>{t?e.push(l):s(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{s=l}}}var ur=tF(),ji,nS,sT=(nS=class{constructor(){ze(this,ji)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),U6(this.gcTime)&&je(this,ji,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hm?1/0:5*60*1e3))}clearGcTimeout(){B(this,ji)&&(clearTimeout(B(this,ji)),je(this,ji,void 0))}},ji=new WeakMap,nS),Ko,Ni,Hr,Si,sr,bd,Ci,bn,vs,sS,rF=(sS=class extends sT{constructor(t){super();ze(this,bn);ze(this,Ko);ze(this,Ni);ze(this,Hr);ze(this,Si);ze(this,sr);ze(this,bd);ze(this,Ci);je(this,Ci,!1),je(this,bd,t.defaultOptions),this.setOptions(t.options),this.observers=[],je(this,Si,t.client),je(this,Hr,B(this,Si).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,je(this,Ko,sF(this.options)),this.state=t.state??B(this,Ko),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=B(this,sr))==null?void 0:t.promise}setOptions(t){this.options={...B(this,bd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&B(this,Hr).remove(this)}setData(t,r){const n=G6(this.state.data,t,this.options);return er(this,bn,vs).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){er(this,bn,vs).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=B(this,sr))==null?void 0:n.promise;return(s=B(this,sr))==null||s.cancel(t),r?r.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(B(this,Ko))}isActive(){return this.observers.some(t=>H6(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xv||this.state.dataUpdateCount+this.state.errorUpdate
401Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Py(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!W6(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=B(this,sr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=B(this,sr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),B(this,Hr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(B(this,sr)&&(B(this,Ci)?B(this,sr).cancel({revert:!0}):B(this,sr).cancelRetry()),this.scheduleGc()),B(this,Hr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||er(this,bn,vs).call(this,{type:"invalidate"})}fetch(t,r){var d,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(B(this,sr))return B(this,sr).continueRetry(),B(this,sr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(je(this,Ci,!0),n.signal)})},i=()=>{const f=Q2(this.options,r),x=(()=>{const y={client:B(this,Si),queryKey:this.queryKey,meta:this.meta};return s(y),y})();return je(this,Ci,!1),this.options.persister?this.options.persister(f,x,this):f(x)},l=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:B(this,Si),state:this.state,fetchFn:i};return s(f),f})();(d=this.options.behavior)==null||d.onFetch(l,this),je(this,Ni,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&er(this,bn,vs).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,x,y,v;Op(f)&&f.silent||er(this,bn,vs).call(this,{type:"error",error:f}),Op(f)||((x=(m=B(this,Hr).config).onError)==null||x.call(m,f,this),(v=(y=B(this,Hr).config).onSettled)==null||v.call(y,this.state.data,f,this)),this.scheduleGc()};return je(this,sr,nT({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var m,x,y,v;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){c(b);return}(x=(m=B(this,Hr).config).onSuccess)==null||x.call(m,f,this),(v=(y=B(this,Hr).config).onSettled)==null||v.call(y,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{er(this,bn,vs).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{er(this,bn,vs).call(this,{type:"pause"})},onContinue:()=>{er(this,bn,vs).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),B(this,sr).start()}},Ko=new WeakMap,Ni=new WeakMap,Hr=new WeakMap,Si=new WeakMap,sr=new WeakMap,bd=new WeakMap,Ci=new WeakMap,bn=new WeakSet,vs=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...nF(n.data,this.options),fetchMeta:t.meta??null};case"success":return je(this,Ni,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Op(s)&&s.revert&&B(this,Ni)?{...B(this,Ni),fetchStatus:"idle"}
vendor: 2,871 bytes, line 401
401:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),ur.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),B(this,Hr).notify({query:this,type:"updated",action:t})})},sS);function nF(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sF(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var qn,aS,aF=(aS=class extends um{constructor(t={}){super();ze(this,qn);this.config=t,je(this,qn,new Map)}build(t,r,n){const s=r.queryKey,i=r.queryHash??Zv(s,r);let o=this.get(i);return o||(o=new rF({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){B(this,qn).has(t.queryHash)||(B(this,qn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=B(this,qn).get(t.queryHash);r&&(t.destroy(),r===t&&B(this,qn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ur.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return B(this,qn).get(t)}getAll(){return[...B(this,qn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>b1(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>b1(t,n)):r}notify(t){ur.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){ur.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ur.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qn=new WeakMap,aS),Gn,lr,_i,Kn,Xs,iS,iF=(iS=class extends sT{constructor(t){super();ze(this,Kn);ze(this,Gn);ze(this,lr);ze(this,_i);this.mutationId=t.mutationId,je(this,lr,t.mutationCache),je(this,Gn,[]),this.state=t.state||oF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){B(this,Gn).includes(t)||(B(this,Gn).push(t),this.clearGcTimeout(),B(this,lr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){je(this,Gn,B(this,Gn).filter(r=>r!==t)),this.scheduleGc(),B(this,lr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){B(this,Gn).length||(this.state.status==="pending"?this.scheduleGc():B(this,lr).remove(this))}continue(){var t;
401return((t=B(this,_i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,d,u,h,f,m,x,y,v,b,g,w,k,j,S,T,P;const r=()=>{er(this,Kn,Xs).call(this,{type:"continue"})};je(this,_i,nT({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{er(this,Kn,Xs).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{er(this,Kn,Xs).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>B(this,lr).canRun(this)}));const n=this.state.status==="pending",s=!B(this,_i).canStart();try{if(n)r();else{er(this,Kn,Xs).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=B(this,lr).config).onMutate)==null?void 0:o.call(i,t,this));const A=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));A!==this.state.context&&er(this,Kn,Xs).call(this,{type:"pending",context:A,variables:t,isPaused:s})}const C=await B(this,_i).start();return await((u=(d=B(this,lr).config).onSuccess)==null?void 0:u.call(d,C,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,C,t,this.state.context)),await((x=(m=B(this,lr).config).onSettled)==null?void 0:x.call(m,C,null,this.state.variables,this.state.context,this)),await((v=(y=this.options).onSettled)==null?void 0:v.call(y,C,null,t,this.state.context)),er(this,Kn,Xs).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(b=B(this,lr).config).onError)==null?void 0:g.call(b,C,t,this.state.context,this)),await((k=(w=this.options).onError)==null?void 0:k.call(w,C,t,this.state.context)),await((S=(j=B(this,lr).config).onSettled)==null?void 0:S.call(j,void 0,C,this.state.variables,this.state.context,this)),await((P=(T=this.options).onSettled)==null?void 0:P.call(T,void 0,C,t,this.state.context)),C}finally{er(this,Kn,Xs).call(this,{type:"error",error:C})}}finally{B(this,lr).runNext(this)}}},Gn=new WeakMap,lr=new WeakMap,_i=new WeakMap,Kn=new WeakSet,Xs=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ur.batch(()=>{B(this,Gn).forEach(n=>{n.onMutationUpdate(t)}),B(this,lr).notify({mutation:this,type:"updated",action:t})})},iS);function oF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cs,wn,wd,oS,lF=(oS=class extends um{constructor(t={}){super();ze(this,Cs);ze(this,wn);ze(this,wd);this.config=t,je(this,Cs,new Set),je(this,wn,new Map),je(this,wd,0)}build(t,r,n){const s=new iF({mutationCache:this,mutationId:++tu(this,wd)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){B(this,Cs).add(t);const r=ju(t);if(typeof r=="string"){const n=B(this,wn).get(r);n?n.push(t):B(this,wn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(B(this,Cs).delete(t)){const r=ju(t);if(typeof r=="string"){const n=B(this,wn).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&B(this,wn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=ju(t);if(typeof r=="string"){const n=B(this,wn).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=ju(t);if(typeof r=="string"){const s=(n=B(this,wn).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ur.batch(()=>{B(this,Cs).forEach(t=>{this.notify({type:"removed",mutation:t})}),B(this,Cs).clear(),B(this,wn).clear()})}getAll(){return Array.from(B(this,Cs))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>w1(r,n))}findAll(t={}){return this.getAll().filter(r=>w1(t,r))}notify(t){ur.batch(()=>
vendor: 4,531 bytes, line 401
401{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return ur.batch(()=>Promise.all(t.map(r=>r.continue().catch(xn))))}},Cs=new WeakMap,wn=new WeakMap,wd=new WeakMap,oS);function ju(e){var t;return(t=e.options.scope)==null?void 0:t.id}function N1(e){return{onFetch:(t,r)=>{var u,h,f,m,x;const n=t.options,s=(f=(h=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let y=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},b=Q2(t.options,t.fetchOptions),g=async(w,k,j)=>{if(y)return Promise.reject();if(k==null&&w.pages.length)return Promise.resolve(w);const T=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:k,direction:j?"backward":"forward",meta:t.options.meta};return v(V),V})(),P=await b(T),{maxPages:C}=t.options,A=j?Y6:K6;return{pages:A(w.pages,P,C),pageParams:A(w.pageParams,k,C)}};if(s&&i.length){const w=s==="backward",k=w?cF:S1,j={pages:i,pageParams:o},S=k(n,j);l=await g(j,S,w)}else{const w=e??i.length;do{const k=c===0?o[0]??n.initialPageParam:S1(n,l);if(c>0&&k==null)break;l=await g(l,k),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=d}}}function S1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function cF(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var vt,ma,pa,Yo,Jo,ga,Zo,Xo,lS,dF=(lS=class{constructor(e={}){ze(this,vt);ze(this,ma);ze(this,pa);ze(this,Yo);ze(this,Jo);ze(this,ga);ze(this,Zo);ze(this,Xo);je(this,vt,e.queryCache||new aF),je(this,ma,e.mutationCache||new lF),je(this,pa,e.defaultOptions||{}),je(this,Yo,new Map),je(this,Jo,new Map),je(this,ga,0)}mount(){tu(this,ga)._++,B(this,ga)===1&&(je(this,Zo,eT.subscribe(async e=>{e&&(await this.resumePausedMutations(),B(this,vt).onFocus())})),je(this,Xo,Jh.subscribe(async e=>{e&&(await this.resumePausedMutations(),B(this,vt).onOnline())})))}unmount(){var e,t;tu(this,ga)._--,B(this,ga)===0&&((e=B(this,Zo))==null||e.call(this),je(this,Zo,void 0),(t=B(this,Xo))==null||t.call(this),je(this,Xo,void 0))}isFetching(e){return B(this,vt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return B(this,ma).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=B(this,vt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=B(this,vt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Py(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return B(this,vt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=B(this,vt).get(n.queryHash),i=s==null?void 0:s.state.data,o=V6(t,i);if(o!==void 0)return B(this,vt).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return ur.batch(()=>B(this,vt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=B(this,vt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=B(this,vt);ur.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=B(this,vt);return ur.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=ur.batch(()=>B(this,vt).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(xn).catch(xn)}invalidateQueries(e,t={}){return ur.batch(()=>(B(this,vt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=ur.batch(()=>B(this,vt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(xn)),s.state.fetchStatus==="paused"?Promise.resolve():i}
401));return Promise.all(n).then(xn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=B(this,vt).build(this,t);return r.isStaleByTime(Py(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xn).catch(xn)}fetchInfiniteQuery(e){return e.behavior=N1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xn).catch(xn)}ensureInfiniteQueryData(e){return e.behavior=N1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jh.isOnline()?B(this,ma).resumePausedMutations():Promise.resolve()}getQueryCache(){return B(this,vt)}getMutationCache(){return B(this,ma)}getDefaultOptions(){return B(this,pa)}setDefaultOptions(e){je(this,pa,e)}setQueryDefaults(e,t){B(this,Yo).set(Qc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...B(this,Yo).values()],r={};return t.forEach(n=>{ed(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){B(this,Jo).set(Qc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...B(this,Jo).values()],r={};return t.forEach(n=>{ed(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...B(this,pa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xv&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...B(this,pa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){B(this,vt).clear(),B(this,ma).clear()}},vt=new WeakMap,ma=new WeakMap,pa=new WeakMap,Yo=new WeakMap,Jo=new WeakMap,ga=new WeakMap,Zo=new WeakMap,Xo=new WeakMap,lS),uF=p.createContext(void 0),hF=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(uF.Provider,{value:e,children:t}));/**
402 * @remix-run/router v1.23.3
403 *
404 * Copyright (c) Remix Software Inc.
405 *
406 * This source code is licensed under the MIT license found in the
407 * LICENSE.md file in the root directory of this source tree.
408 *
409 * @license MIT
410 */function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(null,arguments)}var va;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(va||(va={}));const C1="popstate";function fF(e){e===void 0&&(e={});function t(n,s){let{pathname:i,search:o,hash:l}=n.location;return Dy("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:Zh(s)}return pF(t,r,null,e)}function _t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mF(){return Math.random().toString(36).substr(2,8)}function _1(e,t){return{usr:e.state,key:e.key,idx:t}}function Dy(e,t,r,n){return r===void 0&&(r=null),td({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tl(t):t,{state:r,key:t&&t.key||n||mF()})}function Zh(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Tl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function pF(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,l=va.Pop,c=null,d=u();d==null&&(d=0,o.replaceState(td({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function h(){l=va.Pop;let v=u(),b=v==null?null:v-d;d=v,c&&c({action:l,location:y.location,delta:b})}function f(v,b){l=va.Push;let g=Dy(y.location,v,b);d=u()+1;let w=_1(g,d),k=y.createHref(g);try{o.pushState(w,"",k)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;s.location.assign(k)}i&&c&&c({action:l,location:y.location,delta:1})}function m(v,b){l=va.Replace;let g=Dy(y.location,v,b);d=u();let w=_1(g,d),k=y.createHref(g);o.replaceState(w,"",k),i&&c&&c({action:l,location:y.location,delta:0})}function x(v){let b=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof v=="string"?v:Zh(v);return g=g.replace(/ $/,"%20"),_t(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let y={get action(){return l},get location(){return e(s,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(C1,h),c=v,()=>{s.removeEventListener(C1,h),c=null}},createHref(v){return t(s,v)},createURL:x,encodeLocation(v){let b=x(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(v){return o.go(v)}};return y}var T1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(T1||(T1={}));function gF(e,t,r){return r===void 0&&(r="/"),yF(e,t,r,!1)}function yF(e,t,r,n){let s=typeof t=="string"?Tl(t):t,i=eb(s.pathname||"/",r);if(i==null)return null;let o=aT(e);xF(o);let l=null,c=EF(i);for(let d=0;l==null&&d<o.length;++d)l=_F(o[d],c,n);return l}function aT(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(_t(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not val
410id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let d=Pa([n,c.relativePath]),u=r.concat(c);i.children&&i.children.length>0&&(_t(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),aT(i.children,t,u,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:SF(d,i.index),routesMeta:u})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,o);else for(let c of iT(i.path))s(i,o,c)}),t}function iT(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=iT(n.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function xF(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:CF(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const vF=/^:[\w-]+$/,bF=3,wF=2,kF=1,jF=10,NF=-2,E1=e=>e==="*";function SF(e,t){let r=e.split("/"),n=r.length;return r.some(E1)&&(n+=NF),t&&(n+=wF),r.filter(s=>!E1(s)).reduce((s,i)=>s+(vF.test(i)?bF:i===""?kF:jF),n)}function CF(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function _F(e,t,r){let{routesMeta:n}=e,s={},i="/",o=[];for(let l=0;l<n.length;++l){let c=n[l],d=l===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",h=R1({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),f=c.route;if(!h&&d&&r&&!n[n.length-1].route.index&&(h=R1({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;
vendor: 4,345 bytes, lines 410-419
410Object.assign(s,h.params),o.push({params:s,pathname:Pa([i,h.pathname]),pathnameBase:DF(Pa([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=Pa([i,h.pathnameBase]))}return o}function R1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=TF(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:n.reduce((d,u,h)=>{let{paramName:f,isOptional:m}=u;if(f==="*"){let y=l[h]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const x=l[h];return m&&!x?d[f]=void 0:d[f]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function TF(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Qv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function EF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function eb(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const RF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AF=e=>RF.test(e);function PF(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?Tl(e):e,i;if(r)if(AF(r))i=r;else{if(r.includes("//")){let o=r;r=oT(r),Qv(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?i=A1(r.substring(1),"/"):i=A1(r,t)}else i=t;return{pathname:i,search:IF(n),hash:MF(s)}}function A1(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Dp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function OF(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function tb(e,t){let r=OF(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function rb(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=Tl(e):(s=td({},e),_t(!s.pathname||!s.pathname.includes("?"),Dp("?","pathname","search",s)),_t(!s.pathname||!s.pathname.includes("#"),Dp("#","pathname","hash",s)),_t(!s.search||!s.search.includes("#"),Dp("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,l;if(o==null)l=r;else{let h=t.length-1;if(!n&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=PF(s,l),d=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const oT=e=>e.replace(/\/\/+/g,"/"),Pa=e=>oT(e.join("/")),DF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,MF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function LF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lT=["post","put","patch","delete"];new Set(lT);const FF=["get",...lT];new Set(FF);/**
411 * React Router v6.30.4
412 *
413 * Copyright (c) Remix Software Inc.
414 *
415 * This source code is licensed under the MIT license found in the
416 * LICENSE.md file in the root directory of this source tree.
417 *
418 * @license MIT
419 */function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
vendor: 5,280 bytes, line 419
419).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rd.apply(null,arguments)}const nb=p.createContext(null),$F=p.createContext(null),qa=p.createContext(null),fm=p.createContext(null),us=p.createContext({outlet:null,matches:[],isDataRoute:!1}),cT=p.createContext(null);function BF(e,t){let{relative:r}=t===void 0?{}:t;El()||_t(!1);let{basename:n,navigator:s}=p.useContext(qa),{hash:i,pathname:o,search:l}=uT(e,{relative:r}),c=o;return n!=="/"&&(c=o==="/"?n:Pa([n,o])),s.createHref({pathname:c,search:l,hash:i})}function El(){return p.useContext(fm)!=null}function hs(){return El()||_t(!1),p.useContext(fm).location}function dT(e){p.useContext(qa).static||p.useLayoutEffect(e)}function mm(){let{isDataRoute:e}=p.useContext(us);return e?r$():zF()}function zF(){El()||_t(!1);let e=p.useContext(nb),{basename:t,future:r,navigator:n}=p.useContext(qa),{matches:s}=p.useContext(us),{pathname:i}=hs(),o=JSON.stringify(tb(s,r.v7_relativeSplatPath)),l=p.useRef(!1);return dT(()=>{l.current=!0}),p.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let h=rb(d,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Pa([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,o,i,e])}const VF=p.createContext(null);function UF(e){let t=p.useContext(us).outlet;return t&&p.createElement(VF.Provider,{value:e},t)}function WF(){let{matches:e}=p.useContext(us),t=e[e.length-1];return t?t.params:{}}function uT(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(qa),{matches:s}=p.useContext(us),{pathname:i}=hs(),o=JSON.stringify(tb(s,n.v7_relativeSplatPath));return p.useMemo(()=>rb(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function HF(e,t){return qF(e,t)}function qF(e,t,r,n){El()||_t(!1);let{navigator:s}=p.useContext(qa),{matches:i}=p.useContext(us),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=hs(),u;if(t){var h;let v=typeof t=="string"?Tl(t):t;c==="/"||(h=v.pathname)!=null&&h.startsWith(c)||_t(!1),u=v}else u=d;let f=u.pathname||"/",m=f;if(c!=="/"){let v=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=gF(e,{pathname:m}),y=ZF(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Pa([c,s.encodeLocation?s.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:Pa([c,s.encodeLocation?s.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r,n);return t&&y?p.createElement(fm.Provider,{value:{location:rd({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:va.Pop}},y):y}function GF(){let e=t$(),t=LF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:s},r):null,null)}const KF=p.createElement(GF,null);class YF extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?p.createElement(us.Provider,{value:this.props.routeContext},p.createElement(cT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JF(e){let{routeContext:t,match:r,children:n}=e,s=p.useContext(nb);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(us.Provider,{value:t},n)}function ZF(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,l=(s=r)==null?void 0:s.errors;if(l!=null){let u=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||_t(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:f,errors:m}=r,x=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||x){c=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((u,h,f)=>{let m,x=!1,y=null,v=null;r&&(m=l&&h.route.id?l[h.route.id]:void 0,y=h.route.errorElement||KF,c&&(d<0&&f===0?(x=!0,v=null):d===f&&(x=!0,v=h.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,f+1)),g=()=>{let w;return m?w=y:x?w=v:h.route.Component?w=p.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=u,p.createElement(JF,{match:h,routeC
419ontext:{outlet:u,matches:b,isDataRoute:r!=null},children:w})};return r&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?p.createElement(YF,{location:r.location,revalidation:r.revalidation,component:y,error:m,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var hT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hT||{}),Xh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xh||{});function XF(e){let t=p.useContext(nb);return t||_t(!1),t}function QF(e){let t=p.useContext($F);return t||_t(!1),t}function e$(e){let t=p.useContext(us);return t||_t(!1),t}function fT(e){let t=e$(),r=t.matches[t.matches.length-1];return r.route.id||_t(!1),r.route.id}function t$(){var e;let t=p.useContext(cT),r=QF(Xh.UseRouteError),n=fT(Xh.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function r$(){let{router:e}=XF(hT.UseNavigateStable),t=fT(Xh.UseNavigateStable),r=p.useRef(!1);return dT(()=>{r.current=!0}),p.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,rd({fromRouteId:t},i)))},[e,t])}function n$(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wc(e){let{to:t,replace:r,state:n,relative:s}=e;El()||_t(!1);let{future:i,static:o}=p.useContext(qa),{matches:l}=p.useContext(us),{pathname:c}=hs(),d=mm(),u=rb(t,tb(l,i.v7_relativeSplatPath),c,s==="path"),h=JSON.stringify(u);return p.useEffect(()=>d(JSON.parse(h),{replace:r,state:n,relative:s}),[d,h,s,r,n]),null}function s$(e){return UF(e.context)}function Ue(e){_t(!1)}function a$(e){let{basename:t="/",children:r=null,location:n,navigationType:s=va.Pop,navigator:i,static:o=!1,future:l}=e;El()&&_t(!1);let c=t.replace(/^\/*/,"/"),d=p.useMemo(()=>({basename:c,navigator:i,static:o,future:rd({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof n=="string"&&(n=Tl(n));let{pathname:u="/",search:h="",hash:f="",state:m=null,key:x="default"}=n,y=p.useMemo(()=>{let v=eb(u,c);return v==null?null:{location:{pathname:v,search:h,hash:f,state:m,key:x},navigationType:s}},[c,u,h,f,m,x,s]);return y==null?null:p.createElement(qa.Provider,{value:d},p.createElement(fm.Provider,{children:r,value:y}))}function i$(e){let{children:t,location:r}=e;return HF(Iy(t),r)}new Promise(()=>{});function Iy(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,s)=>{if(!p.isValidElement(n))return;let i=[...t,s];if(n.type===p.Fragment){r.push.apply(r,Iy(n.props.children,i));return}n.type!==Ue&&_t(!1),!n.props.index||!n.props.children||_t(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Iy(n.props.children,i)),r.push(o)}),r}/**
420 * React Router DOM v6.30.4
421 *
422 * Copyright (c) Remix Software Inc.
423 *
424 * This source code is licensed under the MIT license found in the
425 * LICENSE.md file in the root directory of this source tree.
426 *
427 * @license MIT
428 */function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},My.apply(null,arguments)}function o$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function l$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c$(e,t){return e.button===0&&(!t||t==="_self")&&!l$(e)}function Ly(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function d$(e,t){let r=Ly(e);return t&&t.forEach((n,s)=>
428{r.has(s)||t.getAll(s).forEach(i=>{r.append(s,i)})}),r}const u$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],h$="6";try{window.__reactRouterVersion=h$}catch{}const f$="startTransition",P1=Vx[f$];function m$(e){let{basename:t,children:r,future:n,window:s}=e,i=p.useRef();i.current==null&&(i.current=fF({window:s,v5Compat:!0}));let o=i.current,[l,c]=p.useState({action:o.action,location:o.location}),{v7_startTransition:d}=n||{},u=p.useCallback(h=>{d&&P1?P1(()=>c(h)):c(h)},[c,d]);return p.useLayoutEffect(()=>o.listen(u),[o,u]),p.useEffect(()=>n$(n),[n]),p.createElement(a$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const p$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,se=p.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:d,preventScrollReset:u,viewTransition:h}=t,f=o$(t,u$),{basename:m}=p.useContext(qa),x,y=!1;if(typeof d=="string"&&g$.test(d)&&(x=d,p$))try{let w=new URL(window.location.href),k=d.startsWith("//")?new URL(w.protocol+d):new URL(d),j=eb(k.pathname,m);k.origin===w.origin&&j!=null?d=j+k.search+k.hash:y=!0}catch{}let v=BF(d,{relative:s}),b=y$(d,{replace:o,state:l,target:c,preventScrollReset:u,relative:s,viewTransition:h});function g(w){n&&n(w),w.defaultPrevented||b(w)}return p.createElement("a",My({},f,{href:x||v,onClick:y||i?n:g,ref:r,target:c}))});var O1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(O1||(O1={}));var D1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(D1||(D1={}));function y$(e,t){let{target:r,replace:n,state:s,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=mm(),d=hs(),u=uT(e,{relative:o});return p.useCallback(h=>{if(c$(h,r)){h.preventDefault();let f=n!==void 0?n:Zh(d)===Zh(u);c(e,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:l})}},[d,c,u,n,s,r,e,i,o,l])}function sb(e){let t=p.useRef(Ly(e)),r=p.useRef(!1),n=hs(),s=p.useMemo(()=>d$(n.search,r.current?null:t.current),[n.search]),i=mm(),o=p.useCallback((l,c)=>{const d=Ly(typeof l=="function"?l(s):l);r.current=!0,i("?"+d,c)},[i,s]);return[s,o]}const ab=p.createContext({});function ib(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const x$=typeof window<"u",mT=x$?p.useLayoutEffect:p.useEffect,pm=p.createContext(null);function ob(e,t){e.indexOf(t)===-1&&e.push(t)}function Qh(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const ls=(e,t,r)=>r>t?t:r<e?e:r;let gm=()=>{},ll=()=>{};const $a={},pT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gT(e){return typeof e=="object"&&e!==null}const yT=e=>/^0[^.\s]+$/u.test(e);function xT(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qr=e=>e,v$=(e,t)=>r=>t(e(r)),Id=(...e)=>e.reduce(v$),nd=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class lb{constructor(){this.subscriptions=[]}add(t){return ob(this.subscriptions,t),()=>Qh(this.subscriptions,t)}notify(t,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,r,n);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _r=e=>e*1e3,Jr=e=>e/1e3;function vT(e,t){return t?e*(1e3/t):0}const bT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,b$=1e-7,w$=12;function k$(e,t,r,n,s){let i,o,l=0;do o=t+(r-t)/2,i=bT(o,n,s)-e,i>0?r=o:t=o;while(Math.abs(i)>b$&&++l<w$);return o}function Md(e,t,r,n){if(e===t&&r===n)return Qr;const s=i=>k$(i,0,1,e,r);return i=>i===0||i===1?i:bT(s(i),t,n)}const wT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kT=e=>t=>1-e(1-t),jT=Md(.33,1.53,.69,.99),cb=kT(jT),NT=wT(cb),ST=e=>e>=1?1:(e*=2)<1?.5*cb(e):.5*(2-Math.pow(2,-10*(e-1))),db=e=>1-Math.sin(Math.acos(e)),CT=kT(db),_T=wT(db),j$=Md(.42,0,1,1),N$=Md(0,0,.58,1),TT=Md(.42,0,.58,1),S$=e=>Array.isArray(e)&&typeof e[0]!="number",ET=e=>Array.isArray(e)&&typeof e[0]=="number",I1={linear:Qr,easeIn:j$,easeInOut:TT,easeOut:N$,circIn:db,circInOut:_T,circOut:CT,backIn:cb,backInOut:NT,backOut:jT,anticipate:ST},C$=e=>typeof e=="string",M1=e=>{if(ET(e)){ll(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,s]=e;return Md(t,r,n,s)}else if(C$(e))return ll(I1[e]!==void 0,`Invalid easing type '${e}
428'`,"invalid-easing-type"),I1[e];return e},Nu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],L1={value:null,addProjectionMetrics:null};function _$(e,t){let r=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function d(h){o.has(h)&&(u.schedule(h),e()),c++,h(l)}const u={schedule:(h,f=!1,m=!1)=>{const y=m&&s?r:n;return f&&o.add(h),y.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,s){i=!0;return}s=!0;const f=r;r=n,n=f,r.forEach(d),t&&L1.value&&L1.value.frameloop[t].push(c),c=0,r.clear(),s=!1,i&&(i=!1,u.process(h))}};return u}const T$=40;function RT(e,t){let r=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,o=Nu.reduce((w,k)=>(w[k]=_$(i,t?k:void 0),w),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:f,render:m,postRender:x}=o,y=()=>{const w=$a.useManualTiming,k=w?s.timestamp:performance.now();r=!1,w||(s.delta=n?1e3/60:Math.max(Math.min(k-s.timestamp,T$),1)),s.timestamp=k,s.isProcessing=!0,l.process(s),c.process(s),d.process(s),u.process(s),h.process(s),f.process(s),m.process(s),x.process(s),s.isProcessing=!1,r&&t&&(n=!1,e(y))},v=()=>{r=!0,n=!0,s.isProcessing||e(y)};return{schedule:Nu.reduce((w,k)=>{const j=o[k];return w[k]=(S,T=!1,P=!1)=>(r||v(),j.schedule(S,T,P)),w},{}),cancel:w=>{for(let k=0;k<Nu.length;k++)o[Nu[k]].cancel(w)},state:s,steps:o}}const{schedule:Qe,cancel:Ba,state:Kt,steps:Ip}=RT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qr,!0);let ih;function E$(){ih=void 0}const hr={now:()=>(ih===void 0&&hr.set(Kt.isProcessing||$a.useManualTiming?Kt.timestamp:performance.now()),ih),set
vendor: 11,398 bytes, line 428
428:e=>{ih=e,queueMicrotask(E$)}},AT=e=>t=>typeof t=="string"&&t.startsWith(e),PT=AT("--"),R$=AT("var(--"),ub=e=>R$(e)?A$.test(e.split("/*")[0].trim()):!1,A$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function F1(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Rl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},sd={...Rl,transform:e=>ls(0,1,e)},Su={...Rl,default:1},kc=e=>Math.round(e*1e5)/1e5,hb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function P$(e){return e==null}const O$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fb=(e,t)=>r=>!!(typeof r=="string"&&O$.test(r)&&r.startsWith(e)||t&&!P$(r)&&Object.prototype.hasOwnProperty.call(r,t)),OT=(e,t,r)=>n=>{if(typeof n!="string")return n;const[s,i,o,l]=n.match(hb);return{[e]:parseFloat(s),[t]:parseFloat(i),[r]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},D$=e=>ls(0,255,e),Mp={...Rl,transform:e=>Math.round(D$(e))},xi={test:fb("rgb","red"),parse:OT("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Mp.transform(e)+", "+Mp.transform(t)+", "+Mp.transform(r)+", "+kc(sd.transform(n))+")"};function I$(e){let t="",r="",n="",s="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,r+=r,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Fy={test:fb("#"),parse:I$,transform:xi.transform},Ld=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qs=Ld("deg"),as=Ld("%"),oe=Ld("px"),M$=Ld("vh"),L$=Ld("vw"),$1={...as,parse:e=>as.parse(e)/100,transform:e=>as.transform(e*100)},Ro={test:fb("hsl","hue"),parse:OT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+as.transform(kc(t))+", "+as.transform(kc(r))+", "+kc(sd.transform(n))+")"},Dt={test:e=>xi.test(e)||Fy.test(e)||Ro.test(e),parse:e=>xi.test(e)?xi.parse(e):Ro.test(e)?Ro.parse(e):Fy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xi.transform(e):Ro.transform(e),getAnimatableNone:e=>{const t=Dt.parse(e);return t.alpha=0,Dt.transform(t)}},F$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $$(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hb))==null?void 0:t.length)||0)+(((r=e.match(F$))==null?void 0:r.length)||0)>0}const DT="number",IT="color",B$="var",z$="var(",B1="${}",V$=/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 cl(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(V$,c=>(Dt.test(c)?(n.color.push(i),s.push(IT),r.push(Dt.parse(c))):c.startsWith(z$)?(n.var.push(i),s.push(B$),r.push(c)):(n.number.push(i),s.push(DT),r.push(parseFloat(c))),++i,B1)).split(B1);return{values:r,split:l,indexes:n,types:s}}function U$(e){return cl(e).values}function MT({split:e,types:t}){const r=e.length;return n=>{let s="";for(let i=0;i<r;i++)if(s+=e[i],n[i]!==void 0){const o=t[i];o===DT?s+=kc(n[i]):o===IT?s+=Dt.transform(n[i]):s+=n[i]}return s}}function W$(e){return MT(cl(e))}const H$=e=>typeof e=="number"?0:Dt.test(e)?Dt.getAnimatableNone(e):e,q$=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:H$(e);function G$(e){const t=cl(e);return MT(t)(t.values.map((n,s)=>q$(n,t.split[s])))}const An={test:$$,parse:U$,createTransformer:W$,getAnimatableNone:G$};function Lp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function K$({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let s=0,i=0,o=0;if(!t)s=i=o=r;else{const l=r<.5?r*(1+t):r+t-r*t,c=2*r-l;s=Lp(c,l,e+1/3),i=Lp(c,l,e),o=Lp(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function ef(e,t){return r=>r>0?t:e}const lt=(e,t,r)=>e+(t-e)*r,Fp=(e,t,r)=>{const n=e*e,s=r*(t*t-n)+n;return s<0?0:Math.sqrt(s)},Y$=[Fy,xi,Ro],J$=e=>Y$.find(t=>t.test(e));function z1(e){const t=J$(e);if(gm(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===Ro&&(r=K$(r)),r}const V1=(e,t)=>{const r=z1(e),n=z1(t);if(!r||!n)return ef(e,t);const s={...r};return i=>(s.red=Fp(r.red,n.red,i),s.green=Fp(r.green,n.green,i),s.blue=Fp(r.blue,n.blue,i),s.alpha=lt(r.alpha,n.alpha,i),xi.transform(s))},$y=new Set(["none","hidden"]);function Z$(e,t){return $y.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function X$(e,t){return r=>lt(e,t,r)}function mb(e){return typeof e=="number"?X$:typeof e=="string"?ub(e)?ef:Dt.test(e)?V1:t8:Array.isArray(e)?LT:typeof e=="object"?Dt.test(e)?V1:Q$:ef}function LT(e,t){const r=[...e],n=r.length,s=e.map((i,o)=>mb(i)(i,t[o]));return i=>{for(let o=0;o<n;o++)r[o]=s[o](i);return r}}function Q$(e,t){const r={...e,...t},n={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(n[s]=mb(e[s])(e[s],t[s]));return s=>{for(const i in n)r[i]=n[i](s);return r}}function e8(e,t){const r=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][n[i]],l=e.values[o]??0;r[s]=l,n[i]++}return r}const t8=(e,t)=>{const r=An.createTransformer(t),n=cl(e),s=cl(t);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?$y.has(e)&&!s.values.length||$y.has(t)&&!n.values.length?Z$(e,t):Id(LT(e8(n,s),s.values),r):(gm(!0,`Complex values '${e}' and '${t}' 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"),ef(e,t))};function FT(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?lt(e,t,r):mb(e)(e,t)}const r8=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Qe.update(t,r),stop:()=>Ba(t),now:()=>Kt.isProcessing?Kt.timestamp:hr.now()}},$T=(e,t,r=10)=>{let n="";const s=Math.max(Math.round(t/r),2);for(let i=0;i<s;i++)n+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},tf=2e4;function pb(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<tf;)t+=r,n=e.next(t);return t>=tf?1/0:t}function n8(e,t=100,r){const n=r({...e,keyframes:[0,t]}),s=Math.min(pb(n),tf);return{type:"keyframes",ease:i=>n.next(s*i).value/t,duration:Jr(s)}}const ht={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};function By(e,t){return e*Math.sqrt(1-t*t)}const s8=12;function a8(e,t,r){let n=r;for(let s=1;s<s8;s++)n=n-e(n)/t(n);return n}const $p=.001;function i8({duration:e=ht.duration,bounce:t=ht.bounce,velocity:r=ht.velocity,mass:n=ht.mass}){let s,i;gm(e<=_r(ht.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=ls(ht.minDamping,ht.maxDamping,o),e=ls(ht.minDuration,ht.maxDuration,Jr(e)),o<1?(s=d=>{const u=d*o,h=u*e,f=u-r,m=By(d,o),x=Math.exp(-h);return $p-f/m*x},i=d=>{const h=d*o*e,f=h*r+r,m=Math.pow(o,2)*Math.pow(d,2)*e,x=Math.exp(-h),y=By(Math.pow(d,2),o);return(-s(d)+$p>0?-1:1)*((f-m)*x)/y}):(s=d=>{const u=Math.exp(-d*e),h=(d-r)*e+1;return-$p+u*h},i=d=>{const u=Math.exp(-d*e),h=(r-d)*(e*e);return u*h});const l=5/e,c=a8(s,i,l);if(e=_r(e),isNaN(c))return{stiffness:ht.stiffness,damping:ht.damping,duration:e};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:e}}}const o8=["duration","bounce"],l8=["stiffness","damping","mass"];function U1(e,t){return t.some(r=>e[r]!==void 0)}function c8(e){let t={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...e};if(!U1(e,l8)&&U1(e,o8))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),s=n*n,i=2*ls(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ht.mass,stiffness:s,damping:i}}else{const r=i8({...e,velocity:0});t={...t,...r,mass:ht.mass},t.isResolvedFromDuration=!0}return t}function rf(e=ht.visualDuration,t=ht.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:s}=r;const i=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:d,mass:u,duration:h,velocity:f,isResolvedFromDuration:m}=c8({...r,velocity:-Jr(r.velocity||0)}),x=f||0,y=d/(2*Math.sqrt(c*u)),v=o-i,b=Jr(Math.sqrt(c/u)),g=Math.abs(v)<5;n||(n=g?ht.restSpeed.granular:ht.restSpeed.default),s||(s=g?ht.restDelta.granular:ht.restDelta.default);let w,k,j,S,T,P;if(y<1)j=By(b,y),S=(x+y*b*v)/j,w=A=>{const V=Math.exp(-y*b*A);return o-V*(S*Math.sin(j*A)+v*Math.cos(j*A))},T=y*b*S+v*j,P=y*b*v-S*j,k=A=>Math.exp(-y*b*A)*(T*Math.sin(j*A)+P*Math.cos(j*A));else if(y===1){w=V=>o-Math.exp(-b*V)*(v+(x+b*v)*V);const A=x+b*v;k=V=>Math.exp(-b*V)*(b*A*V-x)}else{const A=b*Math.sqrt(y*y-1);w=F=>{const J=Math.exp(-y*b*F),q=Math.min(A*F,300);return o-J*((x+y*b*v)*Math.sinh(q)+A*v*Math.cosh(q))/A};const V=(x+y*b*v)/A,I=y*b*V-v*A,H=y*b*v-V*A;k=F=>{const J=Math.exp(-y*b*F),q=Math.min(A*F,300);return J*(I*Math.sinh(q)+H*Math.cosh(q))}}const C={calculatedDuration:m&&h||null,velocity:A=>_r(k(A)),next:A=>{if(!m&&y<1){const I=Math.exp(-y*b*A),H=Math.sin(j*A),F=Math.cos(j*A),J=o-I*(S*H+v*F),q=_r(I*(T*H+P*F));return l.done=Math.abs(q)<=n&&Math.abs(o-J)<=s,l.value=l.done?o:J,l}const V=w(A);if(m)l.done=A>=h;else{const I=_r(k(A));l.done=Math.abs(I)<=n&&Math.abs(o-V)<=s}return l.value=l.done?o:V,l},toString:()=>{const A=Math.min(pb(C),tf),V=$T(I=>C.next(A*I).value,A,30);return A+"ms "+V},toTransition:()=>{}};return C}rf.applyToOptions=e=>{const t=n8(e,100,rf);return e.ease=t.ease,e.duration=_r(t.duration),e.type="keyframes",e};const d8=5;function BT(e,t,r){const n=Math.max(t-d8,0);return vT(r-e(n),t-n)}function zy({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=e[0],f={done:!1,value:h},m=P=>l!==void 0&&P<l||c!==void 0&&P>c,x=P=>l===void 0?c:c===void 0||Math.abs(l-P)<Math.abs(c-P)?l:c;let y=r*t;const v=h+y,b=o===void 0?v:o(v);b!==v&&(y=b-h);const g=P=>-y*Math.exp(-P/n),w=P=>b+g(P),k=P=>{const C=g(P),A=w(P);f.done=Math.abs(C)<=d,f.value=f.done?b:A};let j,S;const T=P=>{m(f.value)&&(j=P,S=rf({keyframes:[f.value,x(f.value)],velocity:BT(w,P,f.value),damping:s,stiffness:i,restDelta:d,restSpeed:u}))};return T(0),{calculatedDuration:null,next:P=>{let C=!1;return!S&&j===void 0&&(C=!0,k(P),T(P)),j!==void 0&&P>=j?S.next(P-j):(!C&&k(P),f)}}}function u8(e,t,r){const n=[],s=r||$a.mix||FT,i=e.length-1;for(let o=0;o<i;o++){let l=s(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Qr:t;l=Id(c,l)}n.push(l)}return n}function h8(e,t,{clamp:r=!0,ease:n,mixer:s}={}){const i=e.length;if(ll(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());
vendor: 3,265 bytes, line 428
428const l=u8(t,n,s),c=l.length,d=u=>{if(o&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const f=nd(e[h],e[h+1],u);return l[h](f)};return r?u=>d(ls(e[0],e[i-1],u)):d}function f8(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const s=nd(0,t,n);e.push(lt(r,1,s))}}function m8(e){const t=[0];return f8(t,e.length-1),t}function p8(e,t){return e.map(r=>r*t)}function g8(e,t){return e.map(()=>t||TT).splice(0,e.length-1)}function jc({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const s=S$(n)?n.map(M1):M1(n),i={done:!1,value:t[0]},o=p8(r&&r.length===t.length?r:m8(t),e),l=h8(o,t,{ease:Array.isArray(s)?s:g8(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const y8=e=>e!==null;function ym(e,{repeat:t,repeatType:r="loop"},n,s=1){const i=e.filter(y8),l=s<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!l||n===void 0?i[l]:n}const x8={decay:zy,inertia:zy,tween:jc,keyframes:jc,spring:rf};function zT(e){typeof e.type=="string"&&(e.type=x8[e.type])}class gb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const v8=e=>e/100;class nf extends gb{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var n,s;const{motionValue:r}=this.options;r&&r.updatedAt!==hr.now()&&this.tick(hr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(n=this.options).onStop)==null||s.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;zT(t);const{type:r=jc,repeat:n=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const c=r||jc;c!==jc&&typeof l[0]!="number"&&(this.mixKeyframes=Id(v8,FT(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=pb(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=d}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:m,type:x,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const b=this.currentTime-d*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?b<0:b>s;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,k=n;if(h){const P=Math.min(this.currentTime,s)/l;let C=Math.floor(P),A=P%1;!A&&P>=1&&(A=1),A===1&&C--,C=Math.min(C,h+1),!!(C%2)&&(f==="reverse"?(A=1-A,m&&(A-=m/l)):f==="mirror"&&(k=o)),w=ls(0,
vendor: 11,603 bytes, line 428
4281,A)*l}let j;g?(this.delayState.value=u[0],j=this.delayState):j=k.next(w),i&&!g&&(j.value=i(j.value));let{done:S}=j;!g&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&x!==zy&&(j.value=ym(u,this.options,v,this.speed)),y&&y(j.value),T&&this.finish(),j}then(t,r){return this.finished.then(t,r)}get duration(){return Jr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jr(t)}get time(){return Jr(this.currentTime)}set time(t){t=_r(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return BT(n=>this.generator.next(n).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(hr.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=Jr(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=r8,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(hr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function b8(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const vi=e=>e*180/Math.PI,Vy=e=>{const t=vi(Math.atan2(e[1],e[0]));return Uy(t)},w8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vy,rotateZ:Vy,skewX:e=>vi(Math.atan(e[1])),skewY:e=>vi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uy=e=>(e=e%360,e<0&&(e+=360),e),W1=Vy,H1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),q1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),k8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:H1,scaleY:q1,scale:e=>(H1(e)+q1(e))/2,rotateX:e=>Uy(vi(Math.atan2(e[6],e[5]))),rotateY:e=>Uy(vi(Math.atan2(-e[2],e[0]))),rotateZ:W1,rotate:W1,skewX:e=>vi(Math.atan(e[4])),skewY:e=>vi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Wy(e){return e.includes("scale")?1:0}function Hy(e,t){if(!e||e==="none")return Wy(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(r)n=k8,s=r;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=w8,s=l}if(!s)return Wy(t);const i=n[t],o=s[1].split(",").map(N8);return typeof i=="function"?i(o):o[i]}const j8=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Hy(r,t)};function N8(e){return parseFloat(e.trim())}const Al=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pl=new Set(Al),G1=e=>e===Rl||e===oe,S8=new Set(["x","y","z"]),C8=Al.filter(e=>!S8.has(e));function _8(e){const t=[];return C8.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const ba={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{const s=e.max-e.min;return n==="border-box"?s:s-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{const s=e.max-e.min;return n==="border-box"?s:s-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Hy(t,"x"),y:(e,{transform:t})=>Hy(t,"y")};ba.translateX=ba.x;ba.translateY=ba.y;const Ri=new Set;let qy=!1,Gy=!1,Ky=!1;function VT(){if(Gy){const e=Array.from(Ri).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const s=_8(n);s.length&&(r.set(n,s),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const s=r.get(n);s&&s.forEach(([i,o])=>{var l;(l=n.getValue(i))==null||l.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Gy=!1,qy=!1,Ri.forEach(e=>e.complete(Ky)),Ri.clear()}function UT(){Ri.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gy=!0)})}function T8(){Ky=!0,UT(),VT(),Ky=!1}class yb{constructor(t,r,n,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ri.add(this),qy||(qy=!0,Qe.read(UT),Qe.resolveKeyframes(VT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){const l=n.readValue(r,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}b8(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ri.delete(this)}cancel(){this.state==="scheduled"&&(Ri.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const E8=e=>e.startsWith("--");function WT(e,t,r){E8(t)?e.style.setProperty(t,r):e.style[t]=r}const R8={};function HT(e,t){const r=xT(e);return()=>R8[t]??r()}const A8=HT(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),qT=HT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ac=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,K1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ac([0,.65,.55,1]),circOut:ac([.55,0,1,.45]),backIn:ac([.31,.01,.66,-.59]),backOut:ac([.33,1.53,.69,.99])};function GT(e,t){if(e)return typeof e=="function"?qT()?$T(e,t):"ease-out":ET(e)?ac(e):Array.isArray(e)?e.map(r=>GT(r,t)||K1.easeOut):K1[e]}function P8(e,t,r,{delay:n=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:r};c&&(u.offset=c);const h=GT(l,s);Array.isArray(h)&&(u.easing=h);const f={delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(f.pseudoElement=d),e.animate(u,f)}function KT(e){return typeof e=="function"&&"applyToOptions"in e}function O8({type:e,...t}){return KT(e)&&qT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class YT extends gb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,ll(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=O8(t);this.animation=P8(r,n,s,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=ym(s,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(u),WT(r,n,u),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 t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,n,s;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(n=this.animation).commitStyles)==null||s.call(n))}get duration(){var r,n;const t=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return Jr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jr(t)}get time(){return Jr(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_r(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:n,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&A8()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),Qr):s(this)}}const JT={anticipate:ST,backInOut:NT,circInOut:_T};function D8(e){return e in JT}function I8(e){typeof e.ease=="string"&&D8(e.ease)&&(e.ease=JT[e.ease])}const Bp=10;class M8 extends YT{constructor(t){I8(t),zT(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:s,element:i,...o}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const l=new nf({...o,autoplay:!1}),c=Math.max(Bp,hr.now()-this.startTime),d=ls(0,Bp,c-Bp),u=l.sample(c).value,{name:h}=this.options;i&&h&&WT(i,h,u),r.setWithVelocity(l.sample(Math.max(0,c-d)).value,u,d),l.stop()}}const Y1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(An.test(e)||e==="0")&&!e.startsWith("url("));function L8(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function F8(e,t,r,n){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Y1(s,t),l=Y1(i,t);return gm(o===l,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!l?!1:L8(e)||(r==="spring"||KT(r))&&n}function Yy(e){e.duration=0,e.type="keyframes"}const ZT=new Set(["opacity","clipPath","filter","transform"]),$8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function B8(e){for(let t=0;t<e.length;
428t++)if(typeof e[t]=="string"&&$8.test(e[t]))return!0;return!1}const z8=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),V8=xT(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function U8(e){var h;const{motionValue:t,name:r,repeatDelay:n,repeatType:s,damping:i,type:o,keyframes:l}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:u}=t.owner.getProps();return V8()&&r&&(ZT.has(r)||z8.has(r)&&B8(l))&&(r!=="transform"||!u)&&!d&&!n&&s!=="mirror"&&i!==0&&o!=="inertia"}const W8=40;class H8 extends gb{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:c,motionValue:d,element:u,...h}){var x;super(),this.stop=()=>{var y,v;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=hr.now();const f={autoplay:t,delay:r,type:n,repeat:s,repeatDelay:i,repeatType:o,name:c,motionValue:d,element:u,...h},m=(u==null?void 0:u.KeyframeResolver)||yb;this.keyframeResolver=new m(l,(y,v,b)=>this.onKeyframesResolved(y,v,f,!b),c,d,u),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,r,n,s){var b,g;this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=hr.now();let h=!0;F8(t,i,o,l)||(h=!1,($a.instantAnimations||!c)&&(u==null||u(ym(t,n,r))),t[0]=t[t.length-1],Yy(n),n.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>W8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},x=h&&!d&&U8(m),y=(g=(b=m.motionValue)==null?void 0:b.owner)==null?void 0:g.current;let v;if(x)try{v=new M8({...m,element:y})}catch{v=new nf(m)}else v=new nf(m);v.finished.then(()=>{this.notifyFinished()}).catch(Qr),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),T8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function XT(e,t,r,n=0,s=1){const i=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),o=e.size,l=(o-1)*n;return typeof r=="function"?r(i,o):s===1?i*n:l-i*n}const q8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G8(e){const t=q8.exec(e);if(!t)return[,];const[,r,n,s]=t;return[`--${r??n}`,s]}const K8=4;function QT(e,t,r=1){ll(r<=K8,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,s]=G8(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const o=i.trim();return pT(o)?parseFloat(o):o}return ub(s)?QT(s,t,r+1):s}const Y8={type:"spring",stiffness:500,damping:25,restSpeed:10},J8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Z8={type:"keyframes",duration:.8},X8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Q8=(e,{keyframes:t})=>t.length>2?Z8:Pl.has(e)?e.startsWith("scale")?J8(t[1]):Y8:X8;function eE(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...n}=e;return{...t,...n}}return e}function xb(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?eE(r,e):r}const eB=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function tB(e){for(const t in e)if(!eB.has(t))return!0;return!1}const vb=(e,t,r,n={},s,i)=>o=>{const l=xb(n,e)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-_r(c);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};tB(l)||Object.assign(u,Q8(e,u)),u.duration&&(u.duration=_r(u.duration)),u.repeatDelay&&(u.repeatDelay=_r(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Yy(u),u.delay===0&&(h=!0)),($a.instantAnimations||$a.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(h=!0,Yy(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,h&&!i&&t.get()!==void 0){const f=ym(u.keyframes,l);if(f!==void 0){Qe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return l.isSync?new nf(u):new H8(u)};function J1(e){const t=[{},{}];
vendor: 58,871 bytes, line 428
428return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function bb(e,t,r,n){if(typeof t=="function"){const[s,i]=J1(n);t=t(r!==void 0?r:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=J1(n);t=t(r!==void 0?r:e.custom,s,i)}return t}function Ai(e,t,r){const n=e.getProps();return bb(n,t,r!==void 0?r:n.custom,e)}const tE=new Set(["width","height","top","left","right","bottom",...Al]),Z1=30,rB=e=>!isNaN(parseFloat(e));class nB{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var i;const s=hr.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=hr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new lb);const n=this.events[t].add(r);return t==="change"?()=>{n(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=hr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Z1)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Z1);return vT(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dl(e,t){return new nB(e,t)}const Jy=e=>Array.isArray(e);function sB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,dl(r))}function aB(e){return Jy(e)?e[e.length-1]||0:e}function iB(e,t){const r=Ai(e,t);let{transitionEnd:n={},transition:s={},...i}=r||{};i={...i,...n};for(const o in i){const l=aB(i[o]);sB(e,o,l)}}const Yt=e=>!!(e&&e.getVelocity);function oB(e){return!!(Yt(e)&&e.add)}function Zy(e,t){const r=e.getValue("willChange");if(oB(r))return r.add(t);if(!r&&$a.WillChange){const n=new $a.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function wb(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const lB="framerAppearId",rE="data-"+wb(lB);function nE(e){return e.props[rE]}function cB({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function sE(e,t,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:i,transitionEnd:o,...l}=t;const c=e.getDefaultTransition();i=i?eE(i,c):c;const d=i==null?void 0:i.reduceMotion;n&&(i=n);const u=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const f in l){const m=e.getValue(f,e.latestValues[f]??null),x=l[f];if(x===void 0||h&&cB(h,f))continue;const y={delay:r,...xb(i||{},f)},v=m.get();if(v!==void 0&&!m.isAnimating()&&!Array.isArray(x)&&x===v&&!y.velocity){Qe.update(()=>m.set(x));continue}let b=!1;if(window.MotionHandoffAnimation){const k=nE(e);if(k){const j=window.MotionHandoffAnimation(k,f,Qe);j!==null&&(y.startTime=j,b=!0)}}Zy(e,f);const g=d??e.shouldReduceMotion;m.start(vb(f,m,x,g&&tE.has(f)?{type:!1}:y,e,b));const w=m.animation;w&&u.push(w)}if(o){const f=()=>Qe.update(()=>{o&&iB(e,o)});u.length?Promise.all(u).then(f):f()}return u}function Xy(e,t,r={}){var c;const n=Ai(e,t,r.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const i=n?()=>Promise.all(sE(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=s;return dB(e,t,d,u,h,f,r)}:()=>Promise.resolve(),{when:l}=s;if(l){const[d,u]=l==="beforeChildren"?[i,o]:[o,i];return d().then(()=>u())}else return Promise.all([i(),o(r.delay)])}function dB(e,t,r=0,n=0,s=0,i=1,o){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Xy(c,t,{...o,delay:r+(typeof n=="function"?0:n)+XT(e.variantChildren,c,n,s,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function uB(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const s=t.map(i=>Xy(e,i,r));n=Promise.all(s)}else if(typeof t=="string")n=Xy(e,t,r);else{const s=typeof t=="function"?Ai(e,t,r.custom):t;n=Promise.all(sE(e,s,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const hB={test:e=>e==="auto",parse:e=>e},aE=e=>t=>t.test(e),iE=[Rl,oe,as,Qs,L$,M$,hB],X1=e=>iE.find(aE(e));function fB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yT(e):!0}const mB=new Set(["brightness","contrast","saturate","opacity"]);function pB(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(hb)||[];if(!n)return e;const s=r.replace(n,"");let i=mB.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+s+")"}const gB=/\b([a-z-]*)\(.*?\)/gu,Qy={...An,getAnimatableNone:e=>{const t=e.match(gB);return t?t.map(pB).join(" "):e}},ex={...An,getAnimatableNone:e=>{const t=An.parse(e);return An.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},Q1={...Rl,transform:Math.round},yB={rotate:Qs,rotateX:Qs,rotateY:Qs,rotateZ:Qs,scale:Su,scaleX:Su,scaleY:Su,scaleZ:Su,skew:Qs,skewX:Qs,skewY:Qs,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:sd,originX:$1,originY:$1,originZ:oe},kb={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,inset:oe,insetBlock:oe,insetBlockStart:oe,insetBlockEnd:oe,insetInline:oe,insetInlineStart:oe,insetInlineEnd:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,paddingBlock:oe,paddingBlockStart:oe,paddingBlockEnd:oe,paddingInline:oe,paddingInlineStart:oe,paddingInlineEnd:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,marginBlock:oe,marginBlockStart:oe,marginBlockEnd:oe,marginInline:oe,marginInlineStart:oe,marginInlineEnd:oe,fontSize:oe,backgroundPositionX:oe,backgroundPositionY:oe,...yB,zIndex:Q1,fillOpacity:sd,strokeOpacity:sd,numOctaves:Q1},xB={...kb,color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:Qy,WebkitFilter:Qy,mask:ex,WebkitMask:ex},oE=e=>xB[e],vB=new Set([Qy,ex]);function lE(e,t){let r=oE(e);return vB.has(r)||(r=An),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const bB=new Set(["auto","none","0"]);function wB(e,t,r){let n=0,s;for(;n<e.length&&!s;){const i=e[n];typeof i=="string"&&!bB.has(i)&&cl(i).values.length&&(s=e[n]),n++}if(s&&r)for(const i of t)e[i]=lE(r,s)}class kB extends yb{constructor(t,r,n,s,i){super(t,r,n,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let h=t[u];if(typeof h=="string"&&(h=h.trim(),ub(h))){const f=QT(h,r.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!tE.has(n)||t.length!==2)return;const[s,i]=t,o=X1(s),l=X1(i),c=F1(s),d=F1(i);if(c!==d&&ba[n]){this.needsMeasurement=!0;return}if(o!==l)if(G1(o)&&G1(l))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else ba[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let s=0;s<t.length;s++)(t[s]===null||fB(t[s]))&&n.push(s);n.length&&wB(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ba[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&t.getValue(n,s).jump(s,!1)}measureEndState(){var l;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const s=t.getValue(r);s&&s.jump(this.measuredOrigin,!1);const i=n.length-1,o=n[i];n[i]=ba[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,d])=>{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function cE(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(n=>n!=null)}const dE=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oh(e){return gT(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:jb,cancel:vse}=RT(queueMicrotask,!1),mn={x:!1,y:!1};function uE(){return mn.x||mn.y}function jB(e){return e==="x"||e==="y"?mn[e]?null:(mn[e]=!0,()=>{mn[e]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function hE(e,t){const r=cE(e),n=new AbortController,s={passive:!0,...t,signal:n.signal};return[r,s,()=>n.abort()]}function NB(e){return!(e.pointerType==="touch"||uE())}function SB(e,t,r={}){const[n,s,i]=hE(e,r);return n.forEach(o=>{let l=!1,c=!1,d;const u=()=>{o.removeEventListener("pointerleave",x)},h=v=>{d&&(d(v),d=void 0),u()},f=v=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(v))},m=()=>{l=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},x=v=>{if(v.pointerType!=="touch"){if(l){c=!0;return}h(v)}},y=v=>{if(!NB(v))return;c=!1;const b=t(o,v);typeof b=="function"&&(d=b,o.addEventListener("pointerleave",x,s))};o.addEventListener("pointerenter",y,s),o.addEventListener("pointerdown",m,s)}),i}const fE=(e,t)=>t?e===t?!0:fE(e,t.parentElement):!1,Nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,CB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _B(e){return CB.has(e.tagName)||e.isContentEditable===!0}const TB=new Set(["INPUT","SELECT","TEXTAREA"]);function EB(e){return TB.has(e.tagName)||e.isContentEditable===!0}const lh=new WeakSet;function ek(e){return t=>{t.key==="Enter"&&e(t)}}function zp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const RB=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=ek(()=>{if(lh.has(r))return;zp(r,"down");const s=ek(()=>{zp(r,"up")}),i=()=>zp(r,"cancel");r.addEventListener("keyup",s,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function tk(e){return Nb(e)&&!uE()}const rk=new WeakSet;function AB(e,t,r={}){const[n,s,i]=hE(e,r),o=l=>{const c=l.currentTarget;if(!tk(l)||rk.has(l))return;lh.add(c),r.stopPropagation&&rk.add(l);const d=t(c,l),u=(m,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),lh.has(c)&&lh.delete(c),tk(m)&&typeof d=="function"&&d(m,{success:x})},h=m=>{u(m,c===window||c===document||r.useGlobalTarget||fE(c,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return n.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",o,s),oh(l)&&(l.addEventListener("focus",d=>RB(d,s)),!_B(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Sb(e){return gT(e)&&"ownerSVGElement"in e}const ch=new WeakMap;let ea;const mE=(e,t,r)=>(n,s)=>s&&s[0]?s[0][e+"Size"]:Sb(n)&&"getBBox"in n?n.getBBox()[t]:n[r],PB=mE("inline","width","offsetWidth"),OB=mE("block","height","offsetHeight");function DB({target:e,borderBoxSize:t}){var r;(r=ch.get(e))==null||r.forEach(n=>{n(e,{get width(){return PB(e,t)},get height(){return OB(e,t)}})})}function IB(e){e.forEach(DB)}function MB(){typeof ResizeObserver>"u"||(ea=new ResizeObserver(IB))}function LB(e,t){ea||MB();const r=cE(e);return r.forEach(n=>{let s=ch.get(n);s||(s=new Set,ch.set(n,s)),s.add(t),ea==null||ea.observe(n)}),()=>{r.forEach(n=>{const s=ch.get(n);s==null||s.delete(t),s!=null&&s.size||ea==null||ea.unobserve(n)})}}const dh=new Set;let Ao;function FB(){Ao=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};dh.forEach(t=>t(e))},window.addEventListener("resize",Ao)}function $B(e){return dh.add(e),Ao||FB(),()=>{dh.delete(e),!dh.size&&typeof Ao=="function"&&(window.removeEventListener("resize",Ao),Ao=void 0)}}function nk(e,t){return typeof e=="function"?$B(e):LB(e,t)}function BB(e){return Sb(e)&&e.tagName==="svg"}const zB=[...iE,Dt,An],VB=e=>zB.find(aE(e)),sk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:sk(),y:sk()}),ak=()=>({min:0,max:0}),$t=()=>({x:ak(),y:ak()}),UB=new WeakMap;function xm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ad(e){return typeof e=="string"||Array.isArray(e)}const Cb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_b=["initial",...Cb];function vm(e){return xm(e.animate)||_b.some(t=>ad(e[t]))}function pE(e){return!!(vm(e)||e.variants)}function WB(e,t,r){for(const n in t){const s=t[n],i=r[n];if(Yt(s))e.addValue(n,s);else if(Yt(i))e.addValue(n,dl(s,{owner:e}));else if(i!==s)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(n);e.addValue(n,dl(o!==void 0?o:s,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const sf={current:null},Tb={current:!1},HB=typeof window<"u";function gE(){if(Tb.current=!0,!!HB)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sf.current=e.matches;e.addEventListener("change",t),t()}else sf.current=!1}const ik=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let af={};function yE(e){af=e}function qB(){return af}class GB{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=yb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=hr.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Qe.render(this.render,!1,!0))};const{latestValues:d,renderState:u}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=vm(r),this.isVariantNode=pE(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in f){const x=f[m];d[m]!==void 0&&Yt(x)&&x.set(d[m])}}mount(t){var r,n;if(this.hasBeenMounted)for(const s in this.initialValues)(r=this.values.get(s))==null||r.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,UB.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Tb.current||gE(),this.shouldReduceMotion=sf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ba(this.notifyUpdate),Ba(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&ZT.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:l,times:c,ease:d,duration:u}=r.accelerate,h=new YT({element:this.current,name:t,keyframes:l,times:c,ease:d,duration:_r(u)}),f=o(h);this.valueSubscriptions.set(t,()=>{f(),h.cancel()});return}const n=Pl.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in af){const r=af[t];if(!r)continue;const{isEnabled:n,Feature:s}=r;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];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):$t()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<ik.length;n++){const s=ik[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=WB(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=dl(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(pT(n)||yT(n))?n=parseFloat(n):!VB(n)&&An.test(r)&&(n=lE(t,r)),this.setBaseTarget(t,Yt(n)?n.get():n)),Yt(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var i;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const o=bb(this.props,r,(i=this.presenceContext)==null?void 0:i.custom);o&&(n=o[t])}if(r&&n!==void 0)return n;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Yt(s)?s:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new lb),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){jb.render(this.render)}}class xE extends GB{constructor(){super(...arguments),this.KeyframeResolver=kB}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Yt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Ga{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vE({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function KB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YB(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Vp(e){return e===void 0||e===1}function tx({scale:e,scaleX:t,scaleY:r}){return!Vp(e)||!Vp(t)||!Vp(r)}function li(e){return tx(e)||bE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bE(e){return ok(e.x)||ok(e.y)}function ok(e){return e&&e!=="0%"}function of(e,t,r){const n=e-r,s=t*n;return r+s}function lk(e,t,r,n,s){return s!==void 0&&(e=of(e,s,n)),of(e,r,n)+t}function rx(e,t=0,r=1,n,s){e.min=lk(e.min,t,r,n,s),e.max=lk(e.max,t,r,n,s)}function wE(e,{x:t,y:r}){rx(e.x,t.translate,t.scale,t.originPoint),rx(e.y,r.translate,r.scale,r.originPoint)}const ck=.999999999999,dk=1.0000000000001;function JB(e,t,r,n=!1){var l;const s=r.length;if(!s)return;t.x=t.y=1;let i,o;for(let c=0;c<s;c++){i=r[c],o=i.projectionDelta;const{visualElement:d}=i.options;d&&d.props.style&&d.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Yn(e.x,-i.scroll.offset.x),Yn(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,wE(e,o)),n&&li(i.latestValues)&&uh(e,i.latestValues,(l=i.layout)==null?void 0:l.layoutBox))}t.x<dk&&t.x>ck&&(t.x=1),t.y<dk&&t.y>ck&&(t.y=1)}function Yn(e,t){e.min+=t,e.max+=t}function uk(e,t,r,n,s=.5){const i=lt(e.min,e.max,s);rx(e,t,r,i,n)}function hk(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function uh(e,t,r){const n=r??e;uk(e.x,hk(t.x,n.x),t.scaleX,t.scale,t.originX),uk(e.y,hk(t.y,n.y),t.scaleY,t.scale,t.originY)}function kE(e,t){return vE(YB(e.getBoundingClientRect(),t))}function ZB(e,t,r){const n=kE(e,r),{scroll:s}=t;return s&&(Yn(n.x,s.offset.x),Yn(n.y,s.offset.y)),n}const XB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QB=Al.length;function ez(e,t,r){let n="",s=!0;for(let i=0;i<QB;i++){const o=Al[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(o.startsWith("scale")?1:0);else{const d=parseFloat(l);c=o.startsWith("scale")?d===1:d===0}if(!c||r){const d=dE(l,kb[o]);if(!c){s=!1;const u=XB[o]||o;n+=`${u}(${d}) `}r&&(t[o]=d)}}return n=n.trim(),r?n=r(t,s?"":n):s&&(n="none"),n}function Eb(e,t,r){const{style:n,vars:s,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const d=t[c];if(Pl.has(c)){o=!0;continue}else if(PT(c)){s[c]=d;continue}else{const u=dE(d,kb[c]);c.startsWith("origin")?(l=!0,i[c]=u):n[c]=u}}if(t.transform||(o||r?n.transform=ez(t,e.transform,r):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=i;n.transformOrigin=`${c} ${d} ${u}`}}function jE(e,{style:t,vars:r},n,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,n);for(o in r)i.setProperty(o,r[o])}function fk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const r=fk(e,t.target.x),n=fk(e,t.target.y);return`${r}% ${n}%`}},tz={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,s=An.parse(e);if(s.length>5)return n;const i=An.createTransformer(e),o=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,c=r.y.scale*t.y;s[0+o]/=l,s[1+o]/=c;const d=lt(l,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=d),typeof s[3+o]=="number"&&(s[3+o]/=d),i(s)}},nx={borderRadius:{...Hl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hl,borderTopRightRadius:Hl,borderBottomLeftRadius:Hl,borderBottomRightRadius:Hl,boxShadow:tz};function NE(e,{layout:t,layoutId:r}){return Pl.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!nx[e]||e==="opacity")}function Rb(e,t,r){var o;const n=e.style,s=t==null?void 0:t.style,i={};if(!n)return i;for(const l in n)(Yt(n[l])||s&&Yt(s[l])||NE(l,e)||((o=r==null?void 0:r.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(i[l]=n[l]);return i}function rz(e){return window.getComputedStyle(e)}class nz extends xE{constructor(){super(...arguments),this.type="html",this.renderInstance=jE}readValueFromInstance(t,r){var n;if(Pl.has(r))return(n=this.projection)!=null&&n.isProjecting?Wy(r):j8(t,r);{const s=rz(t),i=(PT(r)?s.getPropertyValue(r):s[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return kE(t,r)}build(t,r,n){Eb(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Rb(t,r,n)}}const sz={offset:"stroke-dashoffset",array:"stroke-dasharray"},az={offset:"strokeDashoffset",array:"strokeDasharray"};function iz(e,t,r=1,n=0,s=!0){e.pathLength=1;const i=s?sz:az;e[i.offset]=`${-n}`,e[i.array]=`${t} ${r}`}const oz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function SE(e,{attrX:t,attrY:r,attrScale:n,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...l},c,d,u){if(Eb(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;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=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox);for(const m of oz)h[m]!==void 0&&(f[m]=h[m],delete h[m]);t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),s!==void 0&&iz(h,s,i,o,!1)}const CE=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"]),_E=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lz(e,t,r,n){jE(e,t,void 0,n);for(const s in t.attrs)e.setAttribute(CE.has(s)?s:wb(s),t.attrs[s])}function TE(e,t,r){const n=Rb(e,t,r);for(const s in e)if(Yt(e[s])||Yt(t[s])){const i=Al.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[i]=e[s]}return n}class cz extends xE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Pl.has(r)){const n=oE(r);return n&&n.default||0}return r=CE.has(r)?r:wb(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return TE(t,r,n)}build(t,r,n){SE(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,s){lz(t,r,n,s)}mount(t){this.isSVGTag=_E(t.tagName),super.mount(t)}}const dz=_b.length;function EE(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?EE(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<dz;r++){const n=_b[r],s=e.props[n];(ad(s)||s===!1)&&(t[n]=s)}return t}function RE(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const uz=[...Cb].reverse(),hz=Cb.length;function fz(e){return t=>Promise.all(t.map(({animation:r,options:n})=>uB(e,r,n)))}function mz(e){let t=fz(e),r=mk(),n=!0,s=!1;const i=d=>(u,h)=>{var m;const f=Ai(e,h,d==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);if(f){const{transition:x,transitionEnd:y,...v}=f;u={...u,...v,...y}}return u};function o(d){t=d(e)}function l(d){const{props:u}=e,h=EE(e.parent)||{},f=[],m=new Set;let x={},y=1/0;for(let b=0;b<hz;b++){const g=uz[b],w=r[g],k=u[g]!==void 0?u[g]:h[g],j=ad(k),S=g===d?w.isActive:null;S===!1&&(y=b);let T=k===h[g]&&k!==u[g]&&j;if(T&&(n||s)&&e.manuallyAnimateOnMount&&(T=!1),w.protectedKeys={...x},!w.isActive&&S===null||!k&&!w.prevProp||xm(k)||typeof k=="boolean")continue;if(g==="exit"&&w.isActive&&S!==!0){w.prevResolvedValues&&(x={...x,...w.prevResolvedValues});continue}const P=pz(w.prevProp,k);let C=P||g===d&&w.isActive&&!T&&j||b>y&&j,A=!1;const V=Array.isArray(k)?k:[k];let I=V.reduce(i(g),{});S===!1&&(I={});const{prevResolvedValues:H={}}=w,F={...H,...I},J=R=>{C=!0,m.has(R)&&(A=!0,m.delete(R)),w.needsAnimating[R]=!0;const D=e.getValue(R);D&&(D.liveStyle=!1)};for(const R in F){const D=I[R],U=H[R];if(x.hasOwnProperty(R))continue;let de=!1;Jy(D)&&Jy(U)?de=!RE(D,U):de=D!==U,de?D!=null?J(R):m.add(R):D!==void 0&&m.has(R)?J(R):w.protectedKeys[R]=!0}w.prevProp=k,w.prevResolvedValues=I,w.isActive&&(x={...x,...I}),(n||s)&&e.blockInitialAnimation&&(C=!1);const q=T&&P;C&&(!q||A)&&f.push(...V.map(R=>{const D={type:g};if(typeof R=="string"&&(n||s)&&!q&&e.manuallyAnimateOnMount&&e.parent){const{parent:U}=e,de=Ai(U,R);if(U.enteringChildren&&de){const{delayChildren:ue}=de.transition||{};D.delay=XT(U.enteringChildren,e,ue)}}return{animation:R,options:D}}))}if(m.size){const b={};if(typeof u.initial!="boolean"){const g=Ai(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(b.transition=g.transition)}m.forEach(g=>{const w=e.getBaseTarget(g),k=e.getValue(g);k&&(k.liveStyle=!0),b[g]=w??null}),f.push({animation:b})}let v=!!f.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,s=!1,v?t(f):Promise.resolve()}function c(d,u){var f;if(r[d].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(m=>{var x;return(x=m.animationState)==null?void 0:x.setActive(d,u)}),r[d].isActive=u;const h=l(d);for(const m in r)r[m].protectedKeys={};return h}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>r,reset:()=>{r=mk(),s=!0}}}function pz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!RE(t,e):!1}function ri(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mk(){return{animate:ri(!0),whileInView:ri(),whileHover:ri(),whileTap:ri(),whileDrag:ri(),whileFocus:ri(),exit:ri()}}function sx(e,t){e.min=t.min,e.max=t.max}function hn(e,t){sx(e.x,t.x),sx(e.y,t.y)}function pk(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const AE=1e-4,gz=1-AE,yz=1+AE,PE=.01,xz=0-PE,vz=0+PE;function fr(e){return e.max-e.min}function bz(e,t,r){return Math.abs(e-t)<=r}function gk(e,t,r,n=.5){e.origin=n,e.originPoint=lt(t.min,t.max,e.origin),e.scale=fr(r)/fr(t),e.translate=lt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=gz&&e.scale<=yz||isNaN(e.scale))&&(e.scale=1),(e.translate>=xz&&e.translate<=vz||isNaN(e.translate))&&(e.translate=0)}function Nc(e,t,r,n){gk(e.x,t.x,r.x,n?n.originX:void 0),gk(e.y,t.y,r.y,n?n.originY:void 0)}function yk(e,t,r,n=0){const s=n?lt(r.min,r.max,n):r.min;e.min=s+t.min,e.max=e.min+fr(t)}function wz(e,t,r,n){yk(e.x,t.x,r.x,n==null?void 0:n.x),yk(e.y,t.y,r.y,n==null?void 0:n.y)}function xk(e,t,r,n=0){const s=n?lt(r.min,r.max,n):r.min;e.min=t.min-s,e.max=e.min+fr(t)}function lf(e,t,r,n){xk(e.x,t.x,r.x,n==null?void 0:n.x),xk(e.y,t.y,r.y,n==null?void 0:n.y)}function vk(e,t,r,n,s){return e-=t,e=of(e,1/r,n),s!==void 0&&(e=of(e,1/s,n)),e}function kz(e,t=0,r=1,n=.5,s,i=e,o=e){if(as.test(t)&&(t=parseFloat(t),t=lt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=lt(i.min,i.max,n);e===i&&(l-=t),e.min=vk(e.min,t,r,l,s),e.max=vk(e.max,t,r,l,s)}function bk(e,t,[r,n,s],i,o){kz(e,t[r],t[n],t[s],t.scale,i,o)}const jz=["x","scaleX","originX"],Nz=["y","scaleY","originY"];function wk(e,t,r,n){bk(e.x,t,jz,r?r.x:void 0,n?n.x:void 0),bk(e.y,t,Nz,r?r.y:void 0,n?n.y:void 0)}function kk(e){return e.translate===0&&e.scale===1}function OE(e){return kk(e.x)&&kk(e.y)}function jk(e,t){return e.min===t.min&&e.max===t.max}function Sz(e,t){return jk(e.x,t.x)&&jk(e.y,t.y)}function Nk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function DE(e,t){return Nk(e.x,t.x)&&Nk(e.y,t.y)}function Sk(e){return fr(e.x)/fr(e.y)}function Ck(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Wn(e){return[e("x"),e("y")]}function Cz(e,t,r){let n="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(r==null?void 0:r.z)||0;if((s||i||o)&&(n=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:f,skewX:m,skewY:x}=r;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),m&&(n+=`skewX(${m}deg) `),x&&(n+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const IE=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],_z=IE.length,_k=e=>typeof e=="string"?parseFloat(e):e,Tk=e=>typeof e=="number"||oe.test(e);function Tz(e,t,r,n,s,i){s?(e.opacity=lt(0,r.opacity??1,Ez(n)),e.opacityExit=lt(t.opacity??1,0,Rz(n))):i&&(e.opacity=lt(t.opacity??1,r.opacity??1,n));for(let o=0;o<_z;o++){const l=IE[o];let c=Ek(t,l),d=Ek(r,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Tk(c)===Tk(d)?(e[l]=Math.max(lt(_k(c),_k(d),n),0),(as.test(d)||as.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||r.rotate)&&(e.rotate=lt(t.rotate||0,r.rotate||0,n))}function Ek(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ez=ME(0,.5,CT),Rz=ME(.5,.95,Qr);function ME(e,t,r){return n=>n<e?0:n>t?1:r(nd(e,t,n))}function Az(e,t,r){const n=Yt(e)?e:dl(e);return n.start(vb("",n,t,r)),n.animation}function id(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Pz=(e,t)=>e.depth-t.depth;class Oz{constructor(){this.children=[],this.isDirty=!1}add(t){ob(this.children,t),this.isDirty=!0}remove(t){Qh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pz),this.isDirty=!1,this.children.forEach(t)}}function Dz(e,t){const r=hr.now(),n=({timestamp:s})=>{const i=s-r;i>=t&&(Ba(n),e(i-t))};return Qe.setup(n,!0),()=>Ba(n)}function hh(e){return Yt(e)?e.get():e}class Iz{constructor(){this.members=[]}add(t){ob(this.members,t);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;const s=n.instance;(!s||s.isConnected===!1)&&!n.snapshot&&(Qh(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(Qh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){var r;for(let n=this.members.indexOf(t)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&((r=s.instance)==null?void 0:r.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,r){var s;const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=n.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=n,r&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,s,i,o;(n=(r=t.options).onExitComplete)==null||n.call(r),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const fh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Up=["","X","Y","Z"],Mz=1e3;let Lz=0;function Wp(e,t,r,n){const{latestValues:s}=t;s[e]&&(r[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function LE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=nE(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Qe,!(s||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&LE(n)}function FE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=Lz++,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(Bz),this.nodes.forEach(qz),this.nodes.forEach(Gz),this.nodes.forEach(zz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Oz)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new lb),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Sb(o)&&!BB(o),this.instance=o;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;Qe.read(()=>{h=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=Dz(f,250),fh.hasAnimatedSinceResize&&(fh.hasAnimatedSinceResize=!1,this.nodes.forEach(Pk)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||Xz,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=d.getProps(),b=!this.targetLayout||!DE(this.targetLayout,m),g=!h&&f;if(this.options.layoutRoot||this.resumeFrom||g||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...xb(x,"layout"),onPlay:y,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,g)}else h||Pk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ba(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(Kz),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Uz),this.nodes.forEach(Rk);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ak);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Wz),this.nodes.forEach(Hz),this.nodes.forEach(Fz),this.nodes.forEach($z)):this.nodes.forEach(Ak),this.clearAllSnapshots();const l=hr.now();Kt.delta=ls(0,1e3/60,l-Kt.timestamp),Kt.timestamp=l,Kt.isProcessing=!0,Ip.update.process(Kt),Ip.preRender.process(Kt),Ip.render.process(Kt),Kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vz),this.sharedNodes.forEach(Yz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fr(this.snapshot.measuredBox.x)&&!fr(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 o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=$t()),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!OE(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;o&&this.instance&&(l||li(this.latestValues)||u)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),Qz(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:o}=this.options;if(!o)return $t();const l=o.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(eV))){const{scroll:u}=this.root;u&&(Yn(l.x,u.offset.x),Yn(l.y,u.offset.y))}return l}removeElementScroll(o){var c;const l=$t();if(hn(l,o),(c=this.scroll)!=null&&c.wasRoot)return l;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&hn(l,o),Yn(l.x,h.offset.x),Yn(l.y,h.offset.y))}return l}applyTransform(o,l=!1,c){var u,h;const d=c||$t();hn(d,o);for(let f=0;f<this.path.length;f++){const m=this.path[f];!l&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Yn(d.x,-m.scroll.offset.x),Yn(d.y,-m.scroll.offset.y)),li(m.latestValues)&&uh(d,m.latestValues,(u=m.layout)==null?void 0:u.layoutBox)}return li(this.latestValues)&&uh(d,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),d}removeTransform(o){var c;const l=$t();hn(l,o);for(let d=0;d<this.path.length;d++){const u=this.path[d];if(!li(u.latestValues))continue;let h;u.instance&&(tx(u.latestValues)&&u.updateSnapshot(),h=$t(),hn(h,u.measurePageBox())),wk(l,u.latestValues,(c=u.snapshot)==null?void 0:c.layoutBox,h)}return li(this.latestValues)&&wk(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==Kt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=Kt.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wz(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):hn(this.target,this.layout.layoutBox),wE(this.target,this.targetDelta)):hn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!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||tx(this.parent.latestValues)||bE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,l,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),lf(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Kt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;hn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;JB(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=$t());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pk(this.prevProjectionDelta.x,this.projectionDelta.x),pk(this.prevProjectionDelta.y,this.projectionDelta.y)),Nc(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ck(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ck(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Po(),this.projectionDelta=Po(),this.projectionDeltaWithTransform=Po()}setAnimationOrigin(o,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=Po();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=$t(),m=c?c.source:void 0,x=this.layout?this.layout.source:void 0,y=m!==x,v=this.getStack(),b=!v||v.members.length<=1,g=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(Zz));this.animationProgress=0;let w;this.mixTargetDelta=k=>{const j=k/1e3;Ok(h.x,o.x,j),Ok(h.y,o.y,j),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lf(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Jz(this.relativeTarget,this.relativeTargetOrigin,f,j),w&&Sz(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=$t()),hn(w,this.relativeTarget)),y&&(this.animationValues=u,Tz(u,d,this.latestValues,j,g,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,c,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||d.stop(),this.pendingAnimation&&(Ba(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{fh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dl(0)),this.motionValue.jump(0,!1),this.currentAnimation=Az(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&$E(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||$t();const h=fr(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=fr(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}hn(l,c),uh(l,u),Nc(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Iz),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Wp("z",o,d,this.animationValues);for(let u=0;u<Up.length;u++)Wp(`rotate${Up[u]}`,o,d,this.animationValues),Wp(`skew${Up[u]}`,o,d,this.animationValues);o.render();for(const u in d)o.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=hh(l==null?void 0:l.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=hh(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!li(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=Cz(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),o.transform=h;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,d.animationValues?o.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const x in nx){if(u[x]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:b}=nx[x],g=h==="none"?u[x]:y(u[x],d);if(v){const w=v.length;for(let k=0;k<w;k++)o[v[k]]=g}else b?this.options.visualElement.renderState.vars[x]=g:o[x]=g}this.options.layoutId&&(o.pointerEvents=d===this?hh(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Rk),this.root.sharedNodes.clear()}}}function Fz(e){e.updateLayout()}function $z(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")Wn(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],m=fr(f);f.min=n[h].min,f.max=f.min+m});else if(i==="x"||i==="y"){const h=i==="x"?"y":"x";sx(o?t.measuredBox[h]:t.layoutBox[h],n[h])}else $E(i,t.layoutBox,n)&&Wn(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],m=fr(n[h]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const l=Po();Nc(l,n,t.layoutBox);const c=Po();
428o?Nc(c,e.applyTransform(s,!0),t.measuredBox):Nc(c,n,t.layoutBox);const d=!OE(l);let u=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const x=e.options.layoutAnchor||void 0,y=$t();lf(y,t.layoutBox,f.layoutBox,x);const v=$t();lf(v,n,m.layoutBox,x),DE(y,v)||(u=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Bz(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vz(e){e.clearSnapshot()}function Rk(e){e.clearMeasurements()}function Uz(e){e.isLayoutDirty=!0,e.updateLayout()}function Ak(e){e.isLayoutDirty=!1}function Wz(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Hz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qz(e){e.resolveTargetDelta()}function Gz(e){e.calcProjection()}function Kz(e){e.resetSkewAndRotation()}function Yz(e){e.removeLeadSnapshot()}function Ok(e,t,r){e.translate=lt(t.translate,0,r),e.scale=lt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Dk(e,t,r,n){e.min=lt(t.min,r.min,n),e.max=lt(t.max,r.max,n)}function Jz(e,t,r,n){Dk(e.x,t.x,r.x,n),Dk(e.y,t.y,r.y,n)}function Zz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Xz={duration:.45,ease:[.4,0,.1,1]},Ik=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mk=Ik("applewebkit/")&&!Ik("chrome/")?Math.round:Qr;function Lk(e){e.min=Mk(e.min),e.max=Mk(e.max)}function Qz(e){Lk(e.x),Lk(e.y)}function $E(e,t,r){return e==="position"||e==="preserve-aspect"&&!bz(Sk(t),Sk(r),.2)}function eV(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const tV=FE({attachResizeListener:(e,t)=>id(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Hp={current:void 0},BE=FE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hp.current){const e=new tV({});e.mount(window),e.setOptions({layoutScroll:!0}),Hp.current=e}return Hp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ab=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Fk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rV(...e){return t=>{let r=!1;const n=e.map(s=>{const i=Fk(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():Fk(e[s],null)}}}}function nV(...e){return p.useCallback(rV(...e),e)}class sV extends p.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(oh(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,s=oh(n)&&n.offsetWidth||0,i=oh(n)&&n.offsetHeight||0,o=getComputedStyle(r),l=this.props.sizeRef.current;l.height=parseFloat(o.height),l.width=parseFloat(o.width),l.top=r.offsetTop,l.left=r.offsetLeft,l.right=s-l.width-l.left,l.bottom=i-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function aV({children:e,isPresent:t,anchorX:r,anchorY:n,root:s,pop:i}){var f;const o=p.useId(),l=p.useRef(null),c=p.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=p.useContext(Ab),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),h=nV(l,u);return p.useInsertionEffect(()=>{const{width:m,height:x,top:y,left:v,right:b,bottom:g}=c.current;if(t||i===!1||!l.current||!m||!x)return;
vendor: 5,138 bytes, lines 428-436
428const w=r==="left"?`left: ${v}`:`right: ${b}`,k=n==="bottom"?`bottom: ${g}`:`top: ${y}`;l.current.dataset.motionPopId=o;const j=document.createElement("style");d&&(j.nonce=d);const S=s??document.head;return S.appendChild(j),j.sheet&&j.sheet.insertRule(`
429          [data-motion-pop-id="${o}"] {
430            position: absolute !important;
431            width: ${m}px !important;
432            height: ${x}px !important;
433            ${w}px !important;
434            ${k}px !important;
435          }
436        `),()=>{var T;(T=l.current)==null||T.removeAttribute("data-motion-pop-id"),S.contains(j)&&S.removeChild(j)}},[t]),a.jsx(sV,{isPresent:t,childRef:l,sizeRef:c,pop:i,children:i===!1?e:p.cloneElement(e,{ref:h})})}const iV=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:i,mode:o,anchorX:l,anchorY:c,root:d})=>{const u=ib(oV),h=p.useId();let f=!0,m=p.useMemo(()=>(f=!1,{id:h,initial:t,isPresent:r,custom:s,onExitComplete:x=>{u.set(x,!0);for(const y of u.values())if(!y)return;n&&n()},register:x=>(u.set(x,!1),()=>u.delete(x))}),[r,u,n]);return i&&f&&(m={...m}),p.useMemo(()=>{u.forEach((x,y)=>u.set(y,!1))},[r]),p.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),e=a.jsx(aV,{pop:o==="popLayout",isPresent:r,anchorX:l,anchorY:c,root:d,children:e}),a.jsx(pm.Provider,{value:m,children:e})};function oV(){return new Map}function zE(e=!0){const t=p.useContext(pm);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:s}=t,i=p.useId();p.useEffect(()=>{if(e)return s(i)},[e]);const o=p.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,o]:[!0]}const Cu=e=>e.key||"";function $k(e){const t=[];return p.Children.forEach(e,r=>{p.isValidElement(r)&&t.push(r)}),t}const Fd=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:l="left",anchorY:c="top",root:d})=>{const[u,h]=zE(o),f=p.useMemo(()=>$k(e),[e]),m=o&&!u?[]:f.map(Cu),x=p.useRef(!0),y=p.useRef(f),v=ib(()=>new Map),b=p.useRef(new Set),[g,w]=p.useState(f),[k,j]=p.useState(f);mT(()=>{x.current=!1,y.current=f;for(let P=0;P<k.length;P++){const C=Cu(k[P]);m.includes(C)?(v.delete(C),b.current.delete(C)):v.get(C)!==!0&&v.set(C,!1)}},[k,m.length,m.join("-")]);const S=[];if(f!==g){let P=[...f];for(let C=0;C<k.length;C++){const A=k[C],V=Cu(A);m.includes(V)||(P.splice(C,0,A),S.push(A))}return i==="wait"&&S.length&&(P=S),j($k(P)),w(f),null}const{forceRender:T}=p.useContext(ab);return a.jsx(a.Fragment,{children:k.map(P=>{const C=Cu(P),A=o&&!u?!1:f===k||m.includes(C),V=()=>{if(b.current.has(C))return;if(v.has(C))b.current.add(C),v.set(C,!0);else return;let I=!0;v.forEach(H=>{H||(I=!1)}),I&&(T==null||T(),j(y.current),o&&(h==null||h()),n&&n())};return a.jsx(iV,{isPresent:A,initial:!x.current||r?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:d,onExitComplete:A?void 0:V,anchorX:l,anchorY:c,children:P},C)})})},VE=p.createContext({strict:!1}),Bk={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 zk=!1;function lV(){if(zk)return;const e={};for(const t in Bk)e[t]={isEnabled:r=>Bk[t].some(n=>!!r[n])};yE(e),zk=!0}function UE(){return lV(),qB()}function cV(e){const t=UE();for(const r in e)t[r]={...t[r],...e[r]};yE(t)}const dV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function cf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dV.has(e)}let WE=e=>!cf(e);function uV(e){typeof e=="function"&&(WE=t=>t.startsWith("on")?!cf(t):e(t))}try{uV(require("@emotion/is-prop-valid").default)}catch{}function hV(e,t,r){const n={};for(const s in e)s==="values"&&typeof e.values=="object"||Yt(e[s])||(WE(s)||r===!0&&cf(s)||!t&&!cf(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}const bm=p.createContext({});function fV(e,t){if(vm(e)){const{initial:r,animate:n}=e;return{initial:r===!1||ad(r)?r:void 0,animate:ad(n)?n:void 0}}return e.inherit!==!1?t:{}}function mV(e){const{initial:t,animate:r}=fV(e,p.useContext(bm));return p.useMemo(()=>({initial:t,animate:r}),[Vk(t),Vk(r)])}function Vk(e){return Array.isArray(e)?e.join(" "):e}const Pb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HE(e,t,r){for(const n in t)!Yt(t[n])&&!NE(n,r)&&(e[n]=t[n])}function pV({transformTemplate:e},t){return p.useMemo(()=>{const r=Pb();return Eb(r,t,e),Object.assign({},r.vars,r.style)}
vendor: 27,080 bytes, line 436
436,[t])}function gV(e,t){const r=e.style||{},n={};return HE(n,r,e),Object.assign(n,pV(e,t)),n}function yV(e,t){const r={},n=gV(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const qE=()=>({...Pb(),attrs:{}});function xV(e,t,r,n){const s=p.useMemo(()=>{const i=qE();return SE(i,t,_E(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};HE(i,e.style,e),s.style={...i,...s.style}}return s}const vV=["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 Ob(e){return typeof e!="string"||e.includes("-")?!1:!!(vV.indexOf(e)>-1||/[A-Z]/u.test(e))}function bV(e,t,r,{latestValues:n},s,i=!1,o){const c=(o??Ob(e)?xV:yV)(t,n,s,e),d=hV(t,typeof e=="string",i),u=e!==p.Fragment?{...d,...c,ref:r}:{},{children:h}=t,f=p.useMemo(()=>Yt(h)?h.get():h,[h]);return p.createElement(e,{...u,children:f})}function wV({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,s){return{latestValues:kV(r,n,s,e),renderState:t()}}function kV(e,t,r,n){const s={},i=n(e,{});for(const f in i)s[f]=hh(i[f]);let{initial:o,animate:l}=e;const c=vm(e),d=pE(e);t&&d&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const h=u?l:o;if(h&&typeof h!="boolean"&&!xm(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const x=bb(e,f[m]);if(x){const{transitionEnd:y,transition:v,...b}=x;for(const g in b){let w=b[g];if(Array.isArray(w)){const k=u?w.length-1:0;w=w[k]}w!==null&&(s[g]=w)}for(const g in y)s[g]=y[g]}}}return s}const GE=e=>(t,r)=>{const n=p.useContext(bm),s=p.useContext(pm),i=()=>wV(e,t,n,s);return r?i():ib(i)},jV=GE({scrapeMotionValuesFromProps:Rb,createRenderState:Pb}),NV=GE({scrapeMotionValuesFromProps:TE,createRenderState:qE}),SV=Symbol.for("motionComponentSymbol");function CV(e,t,r){const n=p.useRef(r);p.useInsertionEffect(()=>{n.current=r});const s=p.useRef(null);return p.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i));const o=n.current;if(typeof o=="function")if(i){const c=o(i);typeof c=="function"&&(s.current=c)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i);t&&(i?t.mount(i):t.unmount())},[t])}const KE=p.createContext({});function oo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _V(e,t,r,n,s,i){var w,k;const{visualElement:o}=p.useContext(bm),l=p.useContext(VE),c=p.useContext(pm),d=p.useContext(Ab),u=d.reducedMotion,h=d.skipAnimations,f=p.useRef(null),m=p.useRef(!1);n=n||l.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:o,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:i}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const x=f.current,y=p.useContext(KE);x&&!x.projection&&s&&(x.type==="html"||x.type==="svg")&&TV(f.current,r,s,y);const v=p.useRef(!1);p.useInsertionEffect(()=>{x&&v.current&&x.update(r,c)});const b=r[rE],g=p.useRef(!!b&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,b))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,b)));return mT(()=>{m.current=!0,x&&(v.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),g.current&&x.animationState&&x.animationState.animateChanges())}),p.useEffect(()=>{x&&(!g.current&&x.animationState&&x.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)==null||j.call(window,b)}),g.current=!1),x.enteringChildren=void 0)}),x}function TV(e,t,r,n){const{layoutId:s,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutAnchor:u,layoutCrossfade:h}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:YE(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||l&&oo(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:c,layoutRoot:d,layoutAnchor:u})}function YE(e){if(e)return e.options.allowProjection!==!1?e.projection:YE(e.parent)}function qp(e,{forwardMotionProps:t=!1,type:r}={},n,s){n&&cV(n);const i=r?r==="svg":Ob(e),o=i?NV:jV;function l(d,u){let h;const f={...p.useContext(Ab),...d,layoutId:EV(d)},{isStatic:m}=f,x=mV(d),y=o(d,m);if(!m&&typeof window<"u"){RV();const v=AV(f);h=v.MeasureLayout,x.visualElement=_V(e,y,f,s,v.ProjectionNode,i)}return a.jsxs(bm.Provider,{value:x,children:[h&&x.visualElement?a.jsx(h,{visualElement:x.visualElement,...f}):null,bV(e,d,CV(y,x.visualElement,u),y,m,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=p.forwardRef(l);return c[SV]=e,c}function EV({layoutId:e}){const t=p.useContext(ab).id;return t&&e!==void 0?t+"-"+e:e}function RV(e,t){p.useContext(VE).strict}function AV(e){const t=UE(),{drag:r,layout:n}=t;if(!r&&!n)return{};const s={...r,...n};return{MeasureLayout:r!=null&&r.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function PV(e,t){if(typeof Proxy>"u")return qp;const r=new Map,n=(i,o)=>qp(i,o,e,t),s=(i,o)=>n(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?n:(r.has(o)||r.set(o,qp(o,void 0,e,t)),r.get(o))})}const OV=(e,t)=>t.isSVG??Ob(e)?new cz(t):new nz(t,{allowProjection:e!==p.Fragment});class DV extends Ga{constructor(t){super(t),t.animationState||(t.animationState=mz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let IV=0;class MV extends Ga{constructor(){super(...arguments),this.id=IV++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&n===!1){if(this.isExitComplete){const{initial:o,custom:l}=this.node.getProps();if(typeof o=="string"){const c=Ai(this.node,o,l);if(c){const{transition:d,transitionEnd:u,...h}=c;for(const f in h)(i=this.node.getValue(f))==null||i.jump(h[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);r&&!t&&s.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const LV={animation:{Feature:DV},exit:{Feature:MV}};function $d(e){return{point:{x:e.pageX,y:e.pageY}}}const FV=e=>t=>Nb(t)&&e(t,$d(t));function Sc(e,t,r,n){return id(e,t,FV(r),n)}const JE=({current:e})=>e?e.ownerDocument.defaultView:null,Uk=(e,t)=>Math.abs(e-t);function $V(e,t){const r=Uk(e.x,t.x),n=Uk(e.y,t.y);return Math.sqrt(r**2+n**2)}const Wk=new Set(["auto","scroll"]);class ZE{constructor(t,r,{transformPagePoint:n,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=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;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=_u(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Gp(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,y=$V(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!y)return;const{point:v}=m,{timestamp:b}=Kt;this.history.push({...v,timestamp:b});const{onStart:g,onMove:w}=this.handlers;x||(g&&g(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,x)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=_u(x,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(m,x)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Gp(m.type==="pointercancel"?this.lastMoveEventInfo:_u(x,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,g),v&&v(m,g)},!Nb(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=s||window;const c=$d(t),d=_u(c,this.transformPagePoint),{point:u}=d,{timestamp:h}=Kt;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=r;f&&f(t,Gp(d,this.history)),this.removeListeners=Id(Sc(this.contextWindow,"pointermove",this.handlePointerMove),Sc(this.contextWindow,"pointerup",this.handlePointerUp),Sc(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(Wk.has(n.overflowX)||Wk.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,s=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-r.x,y:s.y-r.y};i.x===0&&i.y===0||(n?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(t,s),Qe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ba(this.updatePoint)}}function _u(e,t){return t?{point:t(e.point)}:e}function Hk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gp({point:e},t){return{point:e,delta:Hk(e,XE(t)),offset:Hk(e,BV(t)),velocity:zV(t,.1)}}function BV(e){return e[0]}function XE(e){return e[e.length-1]}function zV(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const s=XE(e);for(;r>=0&&(n=e[r],!(s.timestamp-n.timestamp>_r(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&s.timestamp-n.timestamp>_r(t)*2&&(n=e[1]);const i=Jr(s.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-n.x)/i,y:(s.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function VV(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?lt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?lt(r,e,n.max):Math.min(e,r)),e}function qk(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function UV(e,{top:t,left:r,bottom:n,right:s}){return{x:qk(e.x,r,s),y:qk(e.y,t,n)}}function Gk(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function WV(e,t){return{x:Gk(e.x,t.x),y:Gk(e.y,t.y)}}function HV(e,t){let r=.5;const n=fr(e),s=fr(t);return s>n?r=nd(t.min,t.max-n,e.min):n>s&&(r=nd(e.min,e.max-s,t.min)),ls(0,1,r)}function qV(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const ax=.35;function GV(e=ax){return e===!1?e=0:e===!0&&(e=ax),{x:Kk(e,"left","right"),y:Kk(e,"top","bottom")}}function Kk(e,t,r){return{min:Yk(e,t),max:Yk(e,r)}}function Yk(e,t){return typeof e=="number"?e:e[t]||0}const KV=new WeakMap;class YV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=h=>{r&&this.snapToCursor($d(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:m,dragPropagation:x,onDragStart:y}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jB(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),Wn(b=>{let g=this.getAxisMotionValue(b).get()||0;if(as.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const k=w.layout.layoutBox[b];k&&(g=fr(k)*(parseFloat(g)/100))}}this.originPoint[b]=g}),y&&Qe.update(()=>y(h,f),!1,!0),Zy(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:y,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:b}=f;if(x&&this.currentDirection===null){this.currentDirection=ZV(b),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&Qe.update(()=>v(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ZE(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:JE(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,s=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!n)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&Qe.postRender(()=>l(n,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){const{drag:s}=this.getProps();if(!n||!Tu(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=VV(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&oo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=UV(n.layoutBox,t):this.constraints=!1,this.elastic=GV(r),s!==this.constraints&&!oo(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&Wn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=qV(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!oo(t))return!1;const n=t.current;ll(n!==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=ZB(n,s.root,this.visualElement.getTransformPagePoint());let o=WV(s.layout.layoutBox,i);if(r){const l=r(KB(o));this.hasMutatedConstraints=!!l,l&&(o=vE(l))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Wn(u=>{if(!Tu(u,r,this.currentDirection))return;let h=c&&c[u]||{};(o===!0||o===u)&&(h={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,x={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(u,x)});return Promise.all(d).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Zy(this.visualElement,t),n.start(vb(t,n,0,r,this.visualElement,!1))}stopAnimation(){Wn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Wn(r=>{const{drag:n}=this.getProps();if(!Tu(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:l}=s.layout.layoutBox[r],c=i.get()||0;i.set(t[r]-lt(o,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!oo(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Wn(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();s[o]=HV({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Wn(o=>{if(!Tu(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(lt(c,d,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;KV.set(this.visualElement,this);const t=this.visualElement.current,r=Sc(t,"pointerdown",d=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=d.target,m=f!==t&&EB(f);u&&h&&!m&&this.start(d)});let n;const s=()=>{const{dragConstraints:d}=this.getProps();oo(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),n||(n=JV(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Qe.read(s);const l=id(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(Wn(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=d[h].translate,f.set(f.get()+d[h].translate))}),this.visualElement.render())});return()=>{l(),r(),o(),c&&c(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=ax,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Jk(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function JV(e,t,r){const n=nk(e,Jk(r)),s=nk(t,Jk(r));return()=>{n(),s()}}function Tu(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function ZV(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class XV extends Ga{constructor(t){super(t),this.removeGroupControls=Qr,this.removeListeners=Qr,this.controls=new YV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Kp=e=>(t,r)=>{e&&Qe.update(()=>e(t,r),!1,!0)};class QV extends Ga{constructor(){super(...arguments),this.removePointerDownListener=Qr}onPointerDown(t){this.session=new ZE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:JE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:Kp(t),onStart:Kp(r),onMove:Kp(n),onEnd:(i,o)=>{delete this.session,s&&Qe.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Sc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Yp=!1;class eU extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=t;i&&(r.group&&r.group.add(i),n&&n.register&&s&&n.register(i),Yp&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:s,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,t.layoutDependency!==r&&o.setOptions({...o.options,layoutDependency:r}),Yp=!0,s||t.layoutDependency!==r||r===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Qe.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:r}=this.props,{projection:n}=t;n&&(n.options.layoutAnchor=r,n.root.didUpdate(),jb.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=t;Yp=!0,s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function QE(e){const[t,r]=zE(),n=p.useContext(ab);return a.jsx(eU,{...e,layoutGroup:n,switchLayoutGroup:p.useContext(KE),isPresent:t,safeToRemove:r})}const tU={pan:{Feature:QV},drag:{Feature:XV,ProjectionNode:BE,MeasureLayout:QE}};function Zk(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,i=n[s];i&&Qe.postRender(()=>i(t,$d(t)))}class rU extends Ga{mount(){const{current:t}=this.node;t&&(this.unmount=SB(t,(r,n)=>(Zk(this.node,n,"Start"),s=>Zk(this.node,s,"End"))))}unmount(){}}class nU extends Ga{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Id(id(this.node.current,"focus",()=>this.onFocus()),id(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xk(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),i=n[s];i&&Qe.postRender(()=>i(t,$d(t)))}class sU extends Ga{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=AB(t,(s,i)=>(Xk(this.node,i,"Start"),(o,{success:l})=>Xk(this.node,o,l?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}}const ix=new WeakMap,Jp=new WeakMap,aU=e=>{const t=ix.get(e.target);t&&t(e)},iU=e=>{e.forEach(aU)};function oU({root:e,...t}){const r=e||document;Jp.has(r)||Jp.set(r,{});const n=Jp.get(r),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(iU,{root:e,...t})),n[s]}function lU(e,t,r){const n=oU(t);return ix.set(e,r),n.observe(e),()=>{ix.delete(e),n.unobserve(e)}}const cU={some:0,all:1};class dU extends Ga{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var c;(c=this.stopObserver)==null||c.call(this);const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:i}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:cU[s]},l=d=>{const{isIntersecting:u}=d;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:h,onViewportLeave:f}=this.node.getProps(),m=u?h:f;m&&m(d)};this.stopObserver=lU(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(uU(t,r))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function uU({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const hU={inView:{Feature:dU},tap:{Feature:sU},focus:{Feature:nU},hover:{Feature:rU}},fU={layout:{ProjectionNode:BE,MeasureLayout:QE}},mU={...LV,...hU,...tU,...fU},ne=PV(mU,OV);function eR(){!Tb.current&&gE();const[e]=p.useState(sf.current);return e}const od=Ed("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors 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-primary/90 btn-ripple",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent/90 btn-ripple"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),G=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},i)=>{const o=n?S_:"button";return a.jsx(o,{className:Z(od({variant:t,size:r,className:e})),ref:i,...s})});G.displayName="Button";var Zp="focusScope.autoFocusOnMount",Xp="focusScope.autoFocusOnUnmount",Qk={bubbles:!1,cancelable:!0},pU="FocusScope",wm=p.forwardRef((e,t)=>
vendor: 5,004 bytes, line 436
436{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[l,c]=p.useState(null),d=rn(s),u=rn(i),h=p.useRef(null),f=_e(t,y=>c(y)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let y=function(w){if(m.paused||!l)return;const k=w.target;l.contains(k)?h.current=k:ta(h.current,{select:!0})},v=function(w){if(m.paused||!l)return;const k=w.relatedTarget;k!==null&&(l.contains(k)||ta(h.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const j of w)j.removedNodes.length>0&&ta(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const g=new MutationObserver(b);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),g.disconnect()}}},[n,l,m.paused]),p.useEffect(()=>{if(l){tj.add(m);const y=document.activeElement;if(!l.contains(y)){const b=new CustomEvent(Zp,Qk);l.addEventListener(Zp,d),l.dispatchEvent(b),b.defaultPrevented||(gU(wU(tR(l)),{select:!0}),document.activeElement===y&&ta(l))}return()=>{l.removeEventListener(Zp,d),setTimeout(()=>{const b=new CustomEvent(Xp,Qk);l.addEventListener(Xp,u),l.dispatchEvent(b),b.defaultPrevented||ta(y??document.body,{select:!0}),l.removeEventListener(Xp,u),tj.remove(m)},0)}}},[l,d,u,m]);const x=p.useCallback(y=>{if(!r&&!n||m.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,b=document.activeElement;if(v&&b){const g=y.currentTarget,[w,k]=yU(g);w&&k?!y.shiftKey&&b===k?(y.preventDefault(),r&&ta(w,{select:!0})):y.shiftKey&&b===w&&(y.preventDefault(),r&&ta(k,{select:!0})):b===g&&y.preventDefault()}},[r,n,m.paused]);return a.jsx(me.div,{tabIndex:-1,...o,ref:f,onKeyDown:x})});wm.displayName=pU;function gU(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ta(n,{select:t}),document.activeElement!==r)return}function yU(e){const t=tR(e),r=ej(t,e),n=ej(t.reverse(),e);return[r,n]}function tR(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ej(e,t){for(const r of e)if(!xU(r,{upTo:t}))return r}function xU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vU(e){return e instanceof HTMLInputElement&&"select"in e}function ta(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&vU(e)&&t&&e.select()}}var tj=bU();function bU(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=rj(e,t),e.unshift(t)},remove(t){var r;e=rj(e,t),(r=e[0])==null||r.resume()}}}function rj(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function wU(e){return e.filter(t=>t.tagName!=="A")}var Qp=0;function Db(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nj()),document.body.insertAdjacentElement("beforeend",e[1]??nj()),Qp++,()=>{Qp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qp--}},[])}function nj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Xn=function(){return Xn=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Xn.apply(this,arguments)};function rR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function kU(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var mh="right-scroll-bar-position",ph="width-before-scroll-bar",jU="with-scroll-bars-hidden",NU="--removed-body-scroll-bar-size";function eg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function SU(e,t){var r=p.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var CU=typeof window<"u"?p.useLayoutEffect:p.useEffect,sj=new WeakMap;function _U(e,t){var r=SU(null,function(n){return e.forEach(function(s){return eg(s,n)})});return CU(function(){var n=sj.get(r);if(n){var s=new Set(n),i=new Set(e),o=r.current;
vendor: 4,196 bytes, lines 436-451
436s.forEach(function(l){i.has(l)||eg(l,null)}),i.forEach(function(l){s.has(l)||eg(l,o)})}sj.set(r,e)},[e]),r}function TU(e){return e}function EU(e,t){t===void 0&&(t=TU);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var u=o;o=[],u.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(u){o.push(u),d()},filter:function(u){return o=o.filter(u),r}}}};return s}function RU(e){e===void 0&&(e={});var t=EU(null);return t.options=Xn({async:!0,ssr:!1},e),t}var nR=function(e){var t=e.sideCar,r=rR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return p.createElement(n,Xn({},r))};nR.isSideCarExport=!0;function AU(e,t){return e.useMedium(t),nR}var sR=RU(),tg=function(){},km=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:tg,onWheelCapture:tg,onTouchMoveCapture:tg}),s=n[0],i=n[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,f=e.sideCar,m=e.noRelative,x=e.noIsolation,y=e.inert,v=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,w=e.gapMode,k=rR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=f,S=_U([r,t]),T=Xn(Xn({},k),s);return p.createElement(p.Fragment,null,u&&p.createElement(j,{sideCar:sR,removeScrollBar:d,shards:h,noRelative:m,noIsolation:x,inert:y,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:w}),o?p.cloneElement(p.Children.only(l),Xn(Xn({},T),{ref:S})):p.createElement(g,Xn({},T,{className:c,ref:S}),l))});km.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};km.classNames={fullWidth:ph,zeroRight:mh};var PU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PU();return t&&e.setAttribute("nonce",t),e}function DU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var MU=function(){var e=0,t=null;return{add:function(r){e==0&&(t=OU())&&(DU(t,r),IU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LU=function(){var e=MU();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},aR=function(){var e=LU(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},FU={left:0,top:0,right:0,gap:0},rg=function(e){return parseInt(e||"",10)||0},$U=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[rg(r),rg(n),rg(s)]},BU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FU;var t=$U(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},zU=aR(),Vo="data-scroll-locked",VU=function(e,t,r,n){var s=e.left,i=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),`
437  .`.concat(jU,` {
438   overflow: hidden `).concat(n,`;
439   padding-right: `).concat(l,"px ").concat(n,`;
440  }
441  body[`).concat(Vo,`] {
442    overflow: hidden `).concat(n,`;
443    overscroll-behavior: contain;
444    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
445    padding-left: `.concat(s,`px;
446    padding-top: `).concat(i,`px;
447    padding-right: `).concat(o,`px;
448    margin-left:0;
449    margin-top:0;
450    margin-right: `).concat(l,"px ").concat(n,`;
451    `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
451")].filter(Boolean).join(""),`
452  }
453  
454  .`).concat(mh,` {
455    right: `).concat(l,"px ").concat(n,`;
456  }
457  
458  .`).concat(ph,` {
459    margin-right: `).concat(l,"px ").concat(n,`;
460  }
461  
462  .`).concat(mh," .").concat(mh,` {
463    right: 0 `).concat(n,`;
464  }
465  
466  .`).concat(ph," .").concat(ph,` {
467    margin-right: 0 `).concat(n,`;
468  }
469  
470  body[`).concat(Vo,`] {
471    `).concat(NU,": ").concat(l,`px;
472  }
473`)},aj=function(){var e=parseInt(document.body.getAttribute(Vo)||"0",10);return isFinite(e)?e:0},UU=function(){p.useEffect(function(){return document.body.setAttribute(Vo,(aj()+1).toString()),function(){var e=aj()-1;e<=0?document.body.removeAttribute(Vo):document.body.setAttribute(Vo,e.toString())}},[])},WU=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;UU();var i=p.useMemo(function(){return BU(s)},[s]);return p.createElement(zU,{styles:VU(i,!t,s,r?"":"!important")})},ox=!1;if(typeof window<"u")try{var Eu=Object.defineProperty({},"passive",{get:function(){return ox=!0,!0}});window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{ox=!1}var Xi=ox?{passive:!1}:!1,HU=function(e){return e.tagName==="TEXTAREA"},iR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!HU(e)&&r[t]==="visible")},qU=function(e){return iR(e,"overflowY")},GU=function(e){return iR(e,"overflowX")},ij=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=oR(e,n);if(s){var i=lR(e,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},KU=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},YU=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},oR=function(e,t){return e==="v"?qU(t):GU(t)},lR=function(e,t){return e==="v"?KU(t):YU(t)},JU=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZU=function(e,t,r,n,s){var i=JU(e,window.getComputedStyle(t).direction),o=i*n,l=r.target,c=t.contains(l),d=!1,u=o>0,h=0,f=0;do{if(!l)break;var m=lR(e,l),x=m[0],y=m[1],v=m[2],b=y-v-i*x;(x||b)&&oR(e,l)&&(h+=b,f+=x);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(Math.abs(h)<1||!s)||!u&&(Math.abs(f)<1||!s))&&(d=!0),d},Ru=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oj=function(e){return[e.deltaX,e.deltaY]},lj=function(e){return e&&"current"in e?e.current:e},XU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QU=function(e){return`
474  .block-interactivity-`.concat(e,` {pointer-events: none;}
475  .allow-interactivity-`).concat(e,` {pointer-events: all;}
476`)},eW=0,Qi=[];function tW(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),s=p.useState(eW++)[0],i=p.useState(aR)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var y=kU([e.lockRef.current],(e.shards||[]).map(lj),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var b=Ru(y),g=r.current,w="deltaX"in y?y.deltaX:g[0]-b[0],k="deltaY"in y?y.deltaY:g[1]-b[1],j,S=y.target,T=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in y&&T==="h"&&S.type==="range")return!1;var P=ij(T,S);if(!P)return!0;if(P?j=T:(j=T==="v"?"h":"v",P=ij(T,S)),!P)return!1;if(!n.current&&"changedTouches"in y&&(w||k)&&(n.current=j),!j)return!0;var C=n.current||j;return ZU(C,v,y,C==="h"?w:k,!0)},[]),c=p.useCallback(function(y){var v=y;if(!(!Qi.length||Qi[Qi.length-1]!==i)){var b="deltaY"in v?oj(v):Ru(v),g=t.current.filter(function(j){return j.name===v.type&&(j.target===v.target||v.target===j.shadowParent)&&XU(j.delta,b)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}
vendor: 4,333 bytes, line 476
476if(!g){var w=(o.current.shards||[]).map(lj).filter(Boolean).filter(function(j){return j.contains(v.target)}),k=w.length>0?l(v,w[0]):!o.current.noIsolation;k&&v.cancelable&&v.preventDefault()}}},[]),d=p.useCallback(function(y,v,b,g){var w={name:y,delta:v,target:b,should:g,shadowParent:rW(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=p.useCallback(function(y){r.current=Ru(y),n.current=void 0},[]),h=p.useCallback(function(y){d(y.type,oj(y),y.target,l(y,e.lockRef.current))},[]),f=p.useCallback(function(y){d(y.type,Ru(y),y.target,l(y,e.lockRef.current))},[]);p.useEffect(function(){return Qi.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Xi),document.addEventListener("touchmove",c,Xi),document.addEventListener("touchstart",u,Xi),function(){Qi=Qi.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Xi),document.removeEventListener("touchmove",c,Xi),document.removeEventListener("touchstart",u,Xi)}},[]);var m=e.removeScrollBar,x=e.inert;return p.createElement(p.Fragment,null,x?p.createElement(i,{styles:QU(s)}):null,m?p.createElement(WU,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rW(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nW=AU(sR,tW);var jm=p.forwardRef(function(e,t){return p.createElement(km,Xn({},e,{ref:t,sideCar:nW}))});jm.classNames=km.classNames;var sW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},eo=new WeakMap,Au=new WeakMap,Pu={},ng=0,cR=function(e){return e&&(e.host||cR(e.parentNode))},aW=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=cR(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},iW=function(e,t,r,n){var s=aW(t,Array.isArray(e)?e:[e]);Pu[r]||(Pu[r]=new WeakMap);var i=Pu[r],o=[],l=new Set,c=new Set(s),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};s.forEach(d);var u=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))u(f);else try{var m=f.getAttribute(n),x=m!==null&&m!=="false",y=(eo.get(f)||0)+1,v=(i.get(f)||0)+1;eo.set(f,y),i.set(f,v),o.push(f),y===1&&x&&Au.set(f,!0),v===1&&f.setAttribute(r,"true"),x||f.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return u(t),l.clear(),ng++,function(){o.forEach(function(h){var f=eo.get(h)-1,m=i.get(h)-1;eo.set(h,f),i.set(h,m),f||(Au.has(h)||h.removeAttribute(n),Au.delete(h)),m||h.removeAttribute(r)}),ng--,ng||(eo=new WeakMap,eo=new WeakMap,Au=new WeakMap,Pu={})}},Ib=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=sW(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),iW(n,s,r,"aria-hidden")):function(){return null}},Nm="Dialog",[dR,uR]=Xt(Nm),[oW,Ln]=dR(Nm),hR=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,l=p.useRef(null),c=p.useRef(null),[d,u]=Fr({prop:n,defaultProp:s??!1,onChange:i,caller:Nm});return a.jsx(oW,{scope:t,triggerRef:l,contentRef:c,contentId:Rn(),titleId:Rn(),descriptionId:Rn(),open:d,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(h=>!h),[u]),modal:o,children:r})};hR.displayName=Nm;var fR="DialogTrigger",mR=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ln(fR,r),i=_e(t,s.triggerRef);return a.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Fb(s.open),...n,ref:i,onClick:ce(e.onClick,s.onOpenToggle)})});mR.displayName=fR;var Mb="DialogPortal",[lW,pR]=dR(Mb,{forceMount:void 0}),gR=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,i=Ln(Mb,t);return a.jsx(lW,{scope:t,forceMount:r,children:p.Children.map(n,o=>a.jsx(nn,{present:r||i.open,children:a.jsx(_d,{asChild:!0,container:s,children:o})}))})};gR.displayName=Mb;var df="DialogOverlay",yR=p.forwardRef((e,t)=>{const r=pR(df,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,i=Ln(df,e.__scopeDialog);return i.modal?a.jsx(nn,{present:n||i.open,children:a.jsx(dW,{...s,ref:t})}):null});yR.displayName=df;var cW=Li("DialogOverlay.RemoveScroll"),dW=p.forwardRef((e,t)=>
vendor: 4,978 bytes, lines 476-480
476{const{__scopeDialog:r,...n}=e,s=Ln(df,r);return a.jsx(jm,{as:cW,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(me.div,{"data-state":Fb(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),$i="DialogContent",xR=p.forwardRef((e,t)=>{const r=pR($i,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,i=Ln($i,e.__scopeDialog);return a.jsx(nn,{present:n||i.open,children:i.modal?a.jsx(uW,{...s,ref:t}):a.jsx(hW,{...s,ref:t})})});xR.displayName=$i;var uW=p.forwardRef((e,t)=>{const r=Ln($i,e.__scopeDialog),n=p.useRef(null),s=_e(t,r.contentRef,n);return p.useEffect(()=>{const i=n.current;if(i)return Ib(i)},[]),a.jsx(vR,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,i=>i.preventDefault())})}),hW=p.forwardRef((e,t)=>{const r=Ln($i,e.__scopeDialog),n=p.useRef(!1),s=p.useRef(!1);return a.jsx(vR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((d=r.triggerRef.current)==null?void 0:d.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),vR=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,l=Ln($i,r),c=p.useRef(null),d=_e(t,c);return Db(),a.jsxs(a.Fragment,{children:[a.jsx(wm,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:a.jsx(kl,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Fb(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(mW,{titleId:l.titleId}),a.jsx(gW,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Lb="DialogTitle",bR=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ln(Lb,r);return a.jsx(me.h2,{id:s.titleId,...n,ref:t})});bR.displayName=Lb;var wR="DialogDescription",kR=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ln(wR,r);return a.jsx(me.p,{id:s.descriptionId,...n,ref:t})});kR.displayName=wR;var jR="DialogClose",NR=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ln(jR,r);return a.jsx(me.button,{type:"button",...n,ref:t,onClick:ce(e.onClick,()=>s.onOpenChange(!1))})});NR.displayName=jR;function Fb(e){return e?"open":"closed"}var SR="DialogTitleWarning",[fW,CR]=vM(SR,{contentName:$i,titleName:Lb,docsSlug:"dialog"}),mW=({titleId:e})=>{const t=CR(SR),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
477
478If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
479
480For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},pW="DialogDescriptionWarning",gW=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${CR(pW).contentName}}.`;return p.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},$b=hR,_R=mR,Bb=gR,Bd=yR,zd=xR,Vd=bR,Ud=kR,Sm=NR;const yW=$b,xW=_R,vW=Bb,TR=p.forwardRef(({className:e,...t},r)=>a.jsx(Bd,{className:Z("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));TR.displayName=Bd.displayName;const bW=Ed("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ER=p.forwardRef(({side:e="right",className:t,children:r,...n},s)=>a.jsxs(vW,{children:[a.jsx(TR,{}),a.jsxs(zd,{ref:s,className:Z(bW({side:e}),t),...n,children:[r,a.jsxs(Sm,{className:"absolute right-4 top-4 roun
480ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(nm,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ER.displayName=zd.displayName;const RR=p.forwardRef(({className:e,...t},r)=>a.jsx(Vd,{ref:r,className:Z("text-lg font-semibold text-foreground",e),...t}));RR.displayName=Vd.displayName;const wW=p.forwardRef(({className:e,...t},r)=>a.jsx(Ud,{ref:r,className:Z("text-sm text-muted-foreground",e),...t}));wW.displayName=Ud.displayName;const zb="/assets/logo-shui-BjSnP4CF.webp",Vb="/assets/logo-shui-dark-Wet6RvHy.webp",cj=[{label:"Work With Us",href:"/services"},{label:"Proof & Insights",href:"/research"},{label:"Breakfast Club",href:"/carbon-removal-breakfast-club"},{label:"About",href:"/about"},{label:"Contact",href:"/contact"}],kW=()=>{const[e,t]=p.useState(!1),{pathname:r}=hs(),{theme:n,toggle:s}=Fv(),i=n==="dark"?Vb:zb;return a.jsx("nav",{className:"glass-navbar sticky top-0 z-50 border-b",children:a.jsxs("div",{className:"container flex h-14 items-center justify-between",children:[a.jsxs(se,{to:"/",className:"flex items-center gap-2",children:[a.jsx("img",{src:i,alt:"Seoi.Cure",className:"h-8 md:h-9 w-auto flex-shrink-0 drop-shadow-sm"}),a.jsx("span",{className:"font-display text-sm md:text-base font-bold tracking-tight text-foreground",children:"Seoi.Cure"})]}),a.jsxs("div",{className:"hidden items-center gap-1 md:flex",children:[cj.map(o=>a.jsx(se,{to:o.href,className:`rounded-lg px-3 py-2 text-sm font-medium transition-all hover:text-foreground hover:bg-secondary/50 ${r===o.href||r.startsWith(o.href+"/")?"text-foreground":"text-muted-foreground"}`,children:o.label},o.href)),a.jsx(G,{variant:"ghost",size:"icon",onClick:s,className:"ml-1","aria-label":"Toggle theme",children:n==="light"?a.jsx(t1,{className:"h-4 w-4"}):a.jsx(n1,{className:"h-4 w-4"})})]}),a.jsxs("div",{className:"flex items-center gap-1 md:hidden",children:[a.jsx(G,{variant:"ghost",size:"icon",onClick:s,"aria-label":"Toggle theme",children:n==="light"?a.jsx(t1,{className:"h-4 w-4"}):a.jsx(n1,{className:"h-4 w-4"})}),a.jsxs(yW,{open:e,onOpenChange:t,children:[a.jsx(xW,{asChild:!0,children:a.jsx(G,{variant:"ghost",size:"icon","aria-label":"Open menu",children:a.jsx(A3,{className:"h-5 w-5"})})}),a.jsxs(ER,{side:"right",className:"w-72",children:[a.jsx(RR,{className:"font-display text-lg",children:"Navigation"}),a.jsx("div",{className:"mt-6 flex flex-col gap-1",children:cj.map(o=>a.jsx(se,{to:o.href,onClick:()=>t(!1),className:`rounded-lg px-3 py-2.5 text-sm font-medium transition-colors hover:bg-secondary/50 ${r===o.href?"text-foreground":"text-muted-foreground"}`,children:o.label},o.href))})]})]})]})]})})};function jW(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(u){try{d(n.next(u))}catch(h){o(h)}}function c(u){try{d(n.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):s(u.value).then(l,c)}d((n=n.apply(e,t||[])).next())})}const NW=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Ub extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class SW extends Ub{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class dj extends Ub{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class uj extends Ub{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var lx;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(lx||(lx={}));class CW{constructor(t,{headers:r={},customFetch:n,region:s=lx.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=NW(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return jW(this,arguments,void 0,function*(r,n={}){var s;let i,o;try{const{headers:l,method:c,body:d,signal:u,timeout:h}=n;let f={},{region:m}=n;m||(m=this.region);const x=new URL(`${this.url}/${r}`);m&&m!=="any"&&(f["x-region"]=m,x.searchParams.set("forceFunctionRegion",m));let y;d&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",y=d):typeof d=="str
480ing"?(f["Content-Type"]="text/plain",y=d):typeof FormData<"u"&&d instanceof FormData?y=d:(f["Content-Type"]="application/json",y=JSON.stringify(d)):d&&typeof d!="string"&&!(typeof Blob<"u"&&d instanceof Blob)&&!(d instanceof ArrayBuffer)&&!(typeof FormData<"u"&&d instanceof FormData)?y=JSON.stringify(d):y=d;let v=u;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),u?(v=o.signal,u.addEventListener("abort",()=>o.abort())):v=o.signal);const b=yield this.fetch(x.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:y,signal:v}).catch(j=>{throw new SW(j)}),g=b.headers.get("x-relay-error");if(g&&g==="true")throw new dj(b);if(!b.ok)throw new uj(b);let w=((s=b.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),k;return w==="application/json"?k=yield b.json():w==="application/octet-stream"||w==="application/pdf"?k=yield b.blob():w==="text/event-stream"?k=b:w==="multipart/form-data"?k=yield b.formData():k=yield b.text(),{data:k,error:null,response:b}}catch(l){return{data:null,error:l,response:l instanceof uj||l instanceof dj?l.context:void 0}}finally{i&&clearTimeout(i)}})}}const AR=3,hj=e=>Math.min(1e3*2**e,3e4),_W=[520,503],PR=["GET","HEAD","OPTIONS"];var fj=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
480de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function mj(e,t){return new Promise(r=>{if(t!=null&&t.aborted){r();return}const n=setTimeout(()=>{t==null||t.removeEventListener("abort",s),r()},e);function s(){clearTimeout(n),r()}t==null||t.addEventListener("abort",s)})}function TW(e,t,r,n){return!(!n||r>=AR||!PR.includes(e)||!_W.includes(t))}var EW=class{constructor(e){var t,r,n,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.shouldStripNulls=(n=e.shouldStripNulls)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var r=this;if(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"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const n=this.fetch;let i=(async()=>{let o=0;for(;;){const d={};r.headers.forEach((h,f)=>{d[f]=h}),o>0&&(d["X-Retry-Count"]=String(o));let u;try{u=await n(r.url.toString(),{method:r.method,headers:d,body:JSON.stringify(r.body,(h,f)=>typeof f=="bigint"?f.toString():f),signal:r.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!PR.includes(r.method))throw h;if(r.retryEnabled&&o<AR){const f=hj(o);o++,await mj(f,r.signal);continue}throw h}if(TW(r.method,u.status,o,r.retryEnabled)){var l,c;const h=(l=(c=u.headers)===null||c===void 0?void 0:c.get("Retry-After"))!==null&&l!==void 0?l:null,f=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:hj(o);await u.text(),o++,await mj(f,r.signal);continue}return await r.processResponse(u)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var l;let c="",d="",u="";const h=o==null?void 0:o.cause;if(h){var f,m,x,y;const g=(f=h==null?void 0:h.message)!==null&&f!==void 0?f:"",w=(m=h==null?void 0:h.code)!==null&&m!==void 0?m:"";c=`${(x=o==null?void 0:o.name)!==null&&x!==void 0?x:"FetchError"}: ${o==null?void 0:o.message}`,c+=`
481
482Caused by: ${(y=h==null?void 0:h.name)!==null&&y!==void 0?y:"Error"}: ${g}`,w&&(c+=` (${w})`),h!=null&&h.stack&&(c+=`
483${h.stack}`)}else{var v;c=(v=o==null?void 0:o.stack)!==null&&v!==void 0?v:""}const b=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",d="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(d+=`. 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.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",d="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(d+=`. 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.`)),{success:!1,error:{message:`${(l=o==null?void 0:o.name)!==null&&l!==void 0?l:"FetchError"}: ${o==null?void 0:o.message}`,details:c,hint:d,code:u},data:null,count:null,status:0,statusText:""}}
483)),i.then(e,t)}async processResponse(e){var t=this;let r=null,n=null,s=null,i=e.status,o=e.statusText;if(e.ok){var l,c;if(t.method!=="HEAD"){var d;const f=await e.text();if(f!=="")if(t.headers.get("Accept")==="text/csv")n=f;else if(t.headers.get("Accept")&&(!((d=t.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text")))n=f;else try{n=JSON.parse(f)}catch{if(r={message:f},n=null,t.shouldThrowOnError)throw new fj({message:f,details:"",hint:"",code:""})}}const u=(l=t.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),h=(c=e.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");u&&h&&h.length>1&&(s=parseInt(h[1])),t.isMaybeSingle&&Array.isArray(n)&&(n.length>1?(r={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,s=null,i=406,o="Not Acceptable"):n.length===1?n=n[0]:n=null)}else{const u=await e.text();try{r=JSON.parse(u),Array.isArray(r)&&e.status===404&&(n=[],r=null,i=200,o="OK")}catch{e.status===404&&u===""?(i=204,o="No Content"):r={message:u}}if(r&&t.shouldThrowOnError)throw new fj(r)}return{success:r===null,error:r,data:n,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},RW=class extends EW{throwOnError(){return super.throwOnError()}select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return 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:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:i="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"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(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const pj=new RegExp("[,()]");var lo=class extends RW{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&pj.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&pj.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,r])=>
483r!==void 0).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},AW=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(d=>/\s/.test(d)&&!i?"":(d==='"'&&(i=!i),d)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),n&&c.append("Prefer",`count=${n}`),new lo({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);i.searchParams.set("columns",c.join(","))}}return new lo({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var i;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),n&&c.append("Prefer",`count=${n}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((u,h)=>u.concat(Object.keys(h)),[]);if(d.length>0){const u=[...new Set(d)].map(h=>`"${h}"`);l.searchParams.set("columns",u.join(","))}}return new lo({method:o,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;const n="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new lo({method:n,url:s,headers:i,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new lo({method:r,url:n,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function ld(e){"@babel/helpers - typeof";return ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ld(e)}function PW(e,t){if(ld(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ld(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OW(e){var t=PW(e,"string");return ld(t)=="symbol"?t:t+""}function DW(e,t,r){return(t=OW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gj(Object(r),!0).forEach(function(n){DW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IW=class OR{constructor(t,{headers:r={},schema:n,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:l}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=o;const c=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(d,u)=>{const h=new AbortController,f=setTimeout(()=>h.abort(),i),m=u==null?void 0:u.signal;if(m){if(m.aborted)return clearTimeout(f),c(d,u);const x=()=>{clearTimeout(f),h.abort()};return m.addEventListener("abort",x,{once:!0}),c(d,Ou(Ou({},u),{},{signal:h.signal})).finally(()=>{clearTimeout(f),m.removeEventListener("abort",x)})}return c(d,Ou(Ou({},u),{},{signal:h.signal})).finally(()=>clearTimeout(f))}:this.fetch=c,this.retry=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new AW(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new OR(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,r={},{head:n=!1,get:s=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let d;const u=m=>m!==null&&typeof m=="object"&&(!Array.isArray(m)||m.some(u)),h=n&&Object.values(r).some(u);h?(l="POST",d=r):n||s?(l=n?"HEAD":"GET",Object.entries(r).filter(([m,x])=>x!==void 0).map(([m,x])=>[m,Array.isArray(x)?`{${x.join(",")}}`:`${x}
483`]).forEach(([m,x])=>{c.searchParams.append(m,x)})):(l="POST",d=r);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 lo({method:l,url:c,headers:f,schema:this.schemaName,body:d,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class MW{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const r=globalThis;if(typeof globalThis<"u"&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};const n=typeof global<"u"?global:void 0;if(n&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};if(typeof globalThis<"u"&&typeof r.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"&&r.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.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 s=globalThis.process;if(s){const i=s.versions;if(i&&i.node){const o=i.node,l=parseInt(o.replace(/^v/,"").split(".")[0]);return l>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${l} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${l} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
484import ws from "ws"
485new 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 t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=`
486
487Suggested solution: ${t.workaround}`),new Error(r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const LW="2.108.2",FW=`realtime-js/${LW}`,$W="1.0.0",DR="2.0.0",BW=DR,zW=1e4,VW=100,oa={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},IR={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},cx={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class UW{constructor(t){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=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var s,i;const o=t.topic,l=(s=t.ref)!==null&&s!==void 0?s:"",c=(i=t.join_ref)!==null&&i!==void 0?i:"",d=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(u).length===0?"":JSON.stringify(u);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(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`userEvent length ${d.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+o.length+d.length+h.length,m=new ArrayBuffer(this.HEADER_LENGTH+f);let x=new DataView(m),y=0;x.setUint8(y++,this.KINDS.userBroadcastPush),x.setUint8(y++,c.length),x.setUint8(y++,l.length),x.setUint8(y++,o.length),x.setUint8(y++,d.length),x.setUint8(y++,h.length),x.setUint8(y++,r),Array.from(c,b=>x.setUint8(y++,b.charCodeAt(0))),Array.from(l,b=>x.setUint8(y++,b.charCodeAt(0))),Array.from(o,b=>x.setUint8(y++,b.charCodeAt(0))),Array.from(d,b=>x.setUint8(y++,b.charCodeAt(0))),Array.from(h,b=>x.setUint8(y++,b.charCodeAt(0)));var v=new Uint8Array(m.byteLength+n.byteLength);return v.set(new Uint8Array(m),0),v.set(new Uint8Array(n),m.byteLength),v.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,i,o,l,c]=n;return r({join_ref:s,ref:i,topic:o,event:l,payload:c})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),l=r.getUint8(4);let c=this.HEADER_LENGTH+4;const d=n.decode(t.slice(c,c+s));c=c+s;const u=n.decode(t.slice(c,c+i));c=c+i;
487const h=n.decode(t.slice(c,c+o));c=c+o;const f=t.slice(c,t.byteLength),m=l===this.JSON_ENCODING?JSON.parse(n.decode(f)):f,x={type:this.BROADCAST_EVENT,event:u,payload:m};return o>0&&(x.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}var rt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(rt||(rt={}));const yj=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=WW(o,e,t,s),i),{}):{}},WW=(e,t,r,n)=>{const s=t.find(l=>
vendor: 5,523 bytes, line 487
487l.name===e),i=s==null?void 0:s.type,o=r[e];return i&&!n.includes(i)?MR(i,o):dx(o)},MR=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return KW(t,r)}switch(e){case rt.bool:return HW(t);case rt.float4:case rt.float8:case rt.int2:case rt.int4:case rt.int8:case rt.numeric:case rt.oid:return qW(t);case rt.json:case rt.jsonb:return GW(t);case rt.timestamp:return YW(t);case rt.abstime:case rt.date:case rt.daterange:case rt.int4range:case rt.int8range:case rt.money:case rt.reltime:case rt.text:case rt.time:case rt.timestamptz:case rt.timetz:case rt.tsrange:case rt.tstzrange:return dx(t);default:return dx(t)}},dx=e=>e,HW=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},qW=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},GW=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},KW=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>MR(t,l))}return e},YW=e=>typeof e=="string"?e.replace(" ","T"):e,LR=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Cc=e=>typeof e=="function"?e:function(){return e},JW=typeof self<"u"?self:null,co=typeof window<"u"?window:null,Hn=JW||co||globalThis,ZW="2.0.0",XW=1e4,QW=1e3,Jn={connecting:0,open:1,closing:2,closed:3},xr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ws={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ux={longpoll:"longpoll",websocket:"websocket"},e9={complete:4},hx="base64url.bearer.phx.",Du=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},FR=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},t9=class{constructor(e,t,r){this.state=xr.closed,this.topic=e,this.params=Cc(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Du(this,ws.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new FR(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=xr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",n=>{this.state=xr.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=xr.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=xr.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Du(this,ws.leave,Cc({}),this.timeout).send(),this.state=xr.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ws.reply,(n,s)=>{this.trigger(this.replyEventName(s),n)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 487
487teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=xr.closed,this.bindings=[]}onClose(e){this.on(ws.close,e)}onError(e){return this.on(ws.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(typeof t>"u"||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new Du(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=xr.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ws.close,"leave")},r=new Du(this,ws.leave,Cc({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,n){return this.topic!==e?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=xr.joining,this.joinPush.resend(e))}trigger(e,t,r,n){let s=this.onMessage(e,t,r,n);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,r));for(let o=0;o<i.length;o++)i[o].callback(s,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===xr.closed}isErrored(){return this.state===xr.errored}isJoined(){return this.state===xr.joined}isJoining(){return this.state===xr.joining}isLeaving(){return this.state===xr.leaving}},uf=class{static request(e,t,r,n,s,i,o){if(Hn.XDomainRequest){let l=new Hn.XDomainRequest;return this.xdomainRequest(l,e,t,n,s,i,o)}else if(Hn.XMLHttpRequest){let l=new Hn.XMLHttpRequest;return this.xhrRequest(l,e,t,r,n,s,i,o)}else{if(Hn.fetch&&Hn.AbortController)return this.fetchRequest(e,t,r,n,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,r,n,s,i,o){let l={method:e,headers:r,body:n},c=null;return s&&(c=new AbortController,setTimeout(()=>c.abort(),s),l.signal=c.signal),Hn.fetch(t,l).then(d=>d.text()).then(d=>this.parseJSON(d)).then(d=>o&&o(d)).catch(d=>{d.name==="AbortError"&&i?i():o&&o(null)}),c}static xdomainRequest(e,t,r,n,s,i,o){return e.timeout=s,e.open(t,r),e.onload=()=>{let l=this.parseJSON(e.responseText);o&&o(l)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,s,i,o,l){e.open(t,r,!0),e.timeout=i;for(let[c,d]of Object.entries(n))e.setRequestHeader(c,d);return e.onerror=()=>l&&l(null),e.onreadystatechange=()=>{if(e.readyState===e9.complete&&l){let c=this.parseJSON(e.responseText);l(c)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let s=t?`${t}[${n}]`:n,i=e[n];typeof i=="object"?r.push(this.serialize(i,s)):r.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return r.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},r9=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let s=0;s<n;s++)t+=String.fromCharCode(r[s]);return btoa(t)},to=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(hx)&&(this.authToken=atob(t[1].slice(hx.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Jn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+ux.websocket),"$1/"+ux.longpoll)}endpointURL(){return uf.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=Jn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Jn.open||this.readyState===Jn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:r,token:n,messages:s}=t;if(r===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else r=0;switch(r){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Jn.open,this.onopen({}),this.poll();break;
487case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${r}`)}})}send(e){typeof e!="string"&&(e=r9(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
488`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,r){for(let s of this.reqs)s.abort();this.readyState=Jn.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n,s){let i,o=()=>{this.reqs.delete(i),n()};i=uf.request(e,this.endpointURL(),t,r,this.timeout,o,l=>{this.reqs.delete(i),this.isActive()&&s(l)}),this.reqs.add(i)}},n9=class ic{constructor(t,r={}){let n=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,s=>{let{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=ic.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=ic.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel.on(n.diff,s=>{let{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ic.syncDiff(this.state,s,i,o),l())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return ic.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,r,n,s){let i=this.clone(t),o={},l={};return this.map(i,(c,d)=>{r[c]||(l[c]=d)}),this.map(r,(c,d)=>{let u=i[c];if(u){let h=d.metas.map(y=>y.phx_ref),f=u.metas.map(y=>y.phx_ref),m=d.metas.filter(y=>f.indexOf(y.phx_ref)<0),x=u.metas.filter(y=>h.indexOf(y.phx_ref)<0);m.length>0&&(o[c]=d,o[c].metas=m),x.length>0&&(l[c]=this.clone(u),l[c].metas=x)}else o[c]=d}),this.syncDiff(i,{joins:o,leaves:l},n,s)}static syncDiff(t,r,n,s){let{joins:i,leaves:o}=this.clone(r);return n||(n=function(){}),s||(s=function(){}),this.map(i,(l,c)=>{let d=t[l];if(t[l]=this.clone(c),d){let u=t[l].metas.map(f=>f.phx_ref),h=d.metas.filter(f=>u.indexOf(f.phx_ref)<0);t[l].metas.unshift(...h)}n(l,d,c)}),this.map(o,(l,c)=>{let d=t[l];if(!d)return;let u=c.metas.map(h=>h.phx_ref);d.metas=d.metas.filter(h=>u.indexOf(h.phx_ref)<0),s(l,d,c),d.metas.length===0&&delete t[l]}),t}static list(t,r){return r||(r=function(n,s){return s}),this.map(t,(n,s)=>r(n,s))}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Iu={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,s,i,o]=JSON.parse(e);return t({join_ref:r,ref:n,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:s,payload:i}=e,o=this.META_LENGTH+t.length+r.length+s.length+n.length,l=new ArrayBuffer(this.HEADER_LENGTH+o),c=new DataView(l),d=0;c.setUint8(d++,this.KINDS.push),c.setUint8(d++,t.length),c.setUint8(d++,r.length),c.setUint8(d++,s.length),c.setUint8(d++,n.length),Array.from(t,h=>c.setUint8(d++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(d++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(d++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(d++,h.charCodeAt(0)));var u=new Uint8Array(l.byteLength+i.byteLength);return u.set(new Uint8Array(l),0),u.set(new Uint8Array(i),l.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;
vendor: 8,661 bytes, line 488
488switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,l=r.decode(e.slice(o,o+n));o=o+n;let c=r.decode(e.slice(o,o+s));o=o+s;let d=r.decode(e.slice(o,o+i));o=o+i;let u=e.slice(o,e.byteLength);return{join_ref:l,ref:null,topic:c,event:d,payload:u}},decodeReply(e,t,r){let n=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,c=r.decode(e.slice(l,l+n));l=l+n;let d=r.decode(e.slice(l,l+s));l=l+s;let u=r.decode(e.slice(l,l+i));l=l+i;let h=r.decode(e.slice(l,l+o));l=l+o;let f=e.slice(l,e.byteLength),m={status:h,response:f};return{join_ref:c,ref:d,topic:u,event:ws.reply,payload:m}},decodeBroadcast(e,t,r){let n=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=r.decode(e.slice(i,i+n));i=i+n;let l=r.decode(e.slice(i,i+s));i=i+s;let c=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:l,payload:c}}},s9=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||XW,this.transport=t.transport||Hn.WebSocket||to,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let r=null;try{r=Hn&&Hn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||r,this.establishedConnections=0,this.defaultEncoder=Iu.encode.bind(Iu),this.defaultDecoder=Iu.decode.bind(Iu),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==to?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;co&&co.addEventListener&&(co.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),n=this.connectClock)}),co.addEventListener("pageshow",s=>{n===this.connectClock&&(n=null,this.connect())}),co.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,o)=>{console.log(`${s}: ${i}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Cc(t.params||{}),this.endPoint=`${e}/${ux.websocket}`,this.vsn=t.vsn||ZW,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new FR(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return to}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=uf.appendParams(uf.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Cc(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==to?this.connectWithFallback(to,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(s=>{s.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}transportName(e){switch(e){case to:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${hx}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let r=!1,n=!0,s,i,o=this.transportName(e),l=c=>{this.log("transport",`falling back to ${o}...`,c),this.off([s,i]),n=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return l("memorized");this.fallbackTimer=setTimeout(l,t),i=this.onError(c=>{this.log("transport","error",c),n&&!r&&(clearTimeout(this.fallbackTimer),l(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!n){let c=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,t),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),QW,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const n=this.conn;this.waitForBufferDone(n,()=>{t?n.close(t,r||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){if(r===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r)}waitForSocketClosed(e,t,r=1){if(r===5||e.readyState===Jn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 488
488triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(ws.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Jn.connecting:return"connecting";case Jn.open:return"open";case Jn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([r])=>e.indexOf(r)===-1)}channel(e,t={}){let r=new t9(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:s,join_ref:i}=e;this.log("push",`${t} ${r} (${i}, ${s})`,n)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:r,event:n,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",l)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${r} ${n} ${i&&"("+i+")"||""}`.trim(),s);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(r,n,s,o)&&c.trigger(n,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,n])=>{try{n(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}leaveOpenTopic(e){let t=this.channels.find(r=>r.topic===e&&(r.isJoined()||r.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class _c{constructor(t,r){const n=i9(r);this.presence=new n9(t.getChannel(),n),this.presence.onJoin((s,i,o)=>{const l=_c.onJoinPayload(s,i,o);t.getChannel().trigger("presence",l)}),this.presence.onLeave((s,i,o)=>{const l=_c.onLeavePayload(s,i,o);t.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return _c.transformState(this.presence.state)}static transformState(t){return t=a9(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return r[n]=gh(s),r},{})}static onJoinPayload(t,r,n){const s=xj(r),i=gh(n);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,r,n){const s=xj(r),i=gh(n);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function gh(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function a9(e){return JSON.parse(JSON.stringify(e))}function i9(e){return(e==null?void 0:e.events)&&{events:e.events}}function xj(e){return e!=null&&e.metas?gh(e):[]}var vj;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(vj||(vj={}));class o9{get state(){return this.presenceAdapter.state}constructor(t,r){this.channel=t,this.presenceAdapter=new _c(this.channel.channelAdapter,r)}}function l9(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
488if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const r=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${r}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class c9{constructor(t,r,n){const s=d9(n);this.channel=t.getSocket().channel(r,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,r){return this.channel.on(t,r)}off(t,r){this.channel.off(t,r)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,r,n){let s;try{s=this.channel.push(t,r,n)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>VW){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const r=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},r),t)}canPush(){return this.socket.isConnected()&&this.state===oa.joined}isJoined(){return this.state===oa.joined}isJoining(){return this.state===oa.joining}isClosed(){return this.state===oa.closed}isLeaving(){return this.state===oa.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function d9(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var bj;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(bj||(bj={}));var Oo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Oo||(Oo={}));var ks;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(ks||(ks={}));class Tc{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,r={config:{}},n){var s,i;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.channelAdapter=new c9(this.socket.socketAdapter,t,this.params),this.presence=new o9(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=LR(this.socket.socketAdapter.endPointURL()),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 new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:l,private:c}}=this.params,d=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(m=>m.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[Oo.PRESENCE]&&this.bindings[Oo.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:u}),postgres_changes:d,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(m=>{t==null||t(ks.CHANNEL_ERROR,l9(m))}),this._onClose(()=>t==null?void 0:t(ks.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(r).receive("ok",async({postgres_changes:m})=>
488{if(this.socket._isManualToken()||this.socket.setAuth(),m===void 0){t==null||t(ks.SUBSCRIBED);return}this._updatePostgresBindings(m,t)}).receive("error",m=>{this.state=oa.errored;const x=Object.values(m).join(", ")||"error";t==null||t(ks.CHANNEL_ERROR,new Error(x,{cause:m}))}).receive("timeout",()=>{t==null||t(ks.TIMED_OUT)})}return this}_updatePostgresBindings(t,r){var n;const s=this.bindings.postgres_changes,i=(n=s==null?void 0:s.length)!==null&&n!==void 0?n:0,o=[];for(let l=0;l<i;l++){const c=s[l],{filter:{event:d,schema:u,table:h,filter:f}}=c,m=t&&t[l];if(m&&m.event===d&&Tc.isFilterValueEqual(m.schema,u)&&Tc.isFilterValueEqual(m.table,h)&&Tc.isFilterValueEqual(m.filter,f))o.push(Object.assign(Object.assign({},c),{id:m.id}));else{this.unsubscribe(),this.state=oa.errored,r==null||r(ks.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=oa.errored&&r&&r(ks.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===Oo.PRESENCE||t===Oo.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=r instanceof ArrayBuffer||ArrayBuffer.isView(r),o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l=new URL(this.broadcastEndpointURL);l.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&l.searchParams.set("private","true");const c={method:"POST",headers:o,body:i?r:JSON.stringify(r)},d=await this._fetchWithTimeout(l.toString(),c,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(d.status===202)return{success:!0};if(d.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let u=d.statusText;try{const h=await d.json();u=h.error||h.message||u}catch{}return Promise.reject(new Error(u))}async send(t,r={}){var n,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
488in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,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:o,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=d.body)===null||s===void 0?void 0:s.cancel()),d.ok?"ok":"error"}catch(d){return d instanceof Error&&d.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const d=this.channelAdapter.push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),d.receive("ok",()=>i("ok")),d.receive("error",()=>i("error")),d.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(r=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>r("ok")).receive("timeout",()=>r("timed out")).receive("error",()=>r("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_on(t,r,n){const s=t.toLocaleLowerCase(),i=this.channelAdapter.on(t,n),o={type:s,filter:r,callback:n,ref:i};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,r,n)=>{var s,i,o,l,c,d,u;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,n))return!1;const f=(s=this.bindings[h])===null||s===void 0?void 0:s.find(m=>m.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in f){const m=f.id,x=(i=f.filter)===null||i===void 0?void 0:i.event;return m&&((o=r.ids)===null||o===void 0?void 0:o.includes(m))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((l=r.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const m=(d=(c=f==null?void 0:f.filter)===null||c===void 0?void 0:c.event)===null||d===void 0?void 0:d.toLocaleLowerCase();return m==="*"||m===((u=r==null?void 0:r.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,r){const{close:n,error:s,leave:i,join:o}=IR;return r&&[n,s,i,o].includes(t)&&r!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,r,n)=>{if(typeof r=="object"&&"ids"in r){const s=r.data,{schema:i,table:o,commit_timestamp:l,type:c,errors:d}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:l,eventType:c,new:{},old:{},errors:d}),this._getPayloadRecords(s))}return r})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const r in t.bindings)for(const n of t.bindings[r])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=yj(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=yj(t.columns,t.old_record)),r}}class u9{constructor(t,r){this.socket=new s9(t,r)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,r,n,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},r,n)})}push(t){this.socket.push(t)}log(t,r,n){this.socket.log(t,r,n)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==cx.connecting}isDisconnecting(){return this.socket.connectionState()==cx.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const wj={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},h9=[1e3,2e3,5e3,1e4],f9=1e4;function m9(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var r;return(r=Array.from(e.keys())[t])!==null&&r!==void 0?r:null},removeItem(t){e.delete(t)},setItem(t,r){e.set(t,String(r))}}}function p9(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return m9()}const g9=`
489  addEventListener("message", (e) => {
490    if (e.data.event === "start") {
491      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
492    }
493  });`;class y9{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,r){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
493,this.ref=0,this.serializer=new UW,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey;const s=this._initializeOptions(r);this.socketAdapter=new u9(t,s),this.httpEndpoint=LR(t),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const r=t.message;throw r.includes("Node.js")?new Error(`${r}
494
495To use Realtime in Node.js, you need to provide a WebSocket implementation:
496
497Option 1: Use Node.js 22+ which has native WebSocket support
498Option 2: Install and provide the "ws" package:
499
500  npm install ws
501
502  import ws from "ws"
503  const client = new RealtimeClient(url, {
504    ...options,
505    transport: ws
506  })`):new Error(`WebSocket not available: ${r}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,r){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,r)}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&t.teardown(),r}async removeAllChannels(){const t=this.channels.map(async n=>{const s=await n.unsubscribe();return n.teardown(),s}),r=await Promise.all(t);return await this.disconnect(),r}log(t,r,n){this.socketAdapter.log(t,r,n)}connectionState(){return this.socketAdapter.connectionState()||cx.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new Tc(`realtime:${t}`,r,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
506this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const i={access_token:r,version:FW};r&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(IR.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(r=>{this.log("error","error waiting for auth on connect",r)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(r,n)=>{r=="sent"&&this._setAuthSafely(),t&&t(r,n)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=r=>{r.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)}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([g9],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_initializeOptions(t){var r,n,s,i,o,l,c,d,u,h,f,m;this.worker=(r=t==null?void 0:t.worker)!==null&&r!==void 0?r:!1,this.accessToken=(n=t==null?void 0:t.accessToken)!==null&&n!==void 0?n:null;const x={};x.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:zW,x.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:wj.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((l=t==null?void 0:t.heartbeatIntervalMs)!==null&&l!==void 0?l:wj.HEARTBEAT_INTERVAL),x.transport=(c=t==null?void 0:t.transport)!==null&&c!==void 0?c:MW.getWebSocketConstructor(),x.params=t==null?void 0:t.params,x.logger=t==null?void 0:t.logger,x.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),x.sessionStorage=(d=t==null?void 0:t.sessionStorage)!==null&&d!==void 0?d:p9(),x.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:g=>h9[g-1]||f9;let y,v;const b=(h=t==null?void 0:t.vsn)!==null&&h!==void 0?h:BW;switch(b){case $W:y=(g,w)=>w(JSON.stringify(g)),v=(g,w)=>w(JSON.parse(g));break;case DR:y=this.serializer.encode.bind(this.serializer),v=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${x.vsn}`)}if(x.vsn=b,x.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:y,x.decode=(m=t==null?void 0:t.decode)!==null&&m!==void 0?m:v,x.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,x.params=Object.assign(Object.assign({},x.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,x.autoSendHeartbeat=!this.worker}return x}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
506var cd=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function x9(e,t,r){const n=new URL(t,e);if(r)for(const[s,i]of Object.entries(r))i!==void 0&&n.searchParams.set(s,i);return n.toString()}async function v9(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function b9(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:i,headers:o}){const l=x9(e.baseUrl,n,s),c=await v9(e.auth),d=await t(l,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),u=await d.text(),h=(d.headers.get("content-type")||"").includes("application/json"),f=h&&u?JSON.parse(u):u;if(!d.ok){const m=h?f:void 0,x=m==null?void 0:m.error;throw new cd((x==null?void 0:x.message)??`Request failed with status ${d.status}`,{status:d.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:m})}return{status:d.status,headers:d.headers,data:f}}}}function Mu(e){return e.join("�")}var w9=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Mu(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Mu(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Mu(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Mu(e.namespace)}`}),!0}catch(t){if(t instanceof cd&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof cd&&r.status===409)return;throw r}}};function ro(e){return e.join("�")}var k9=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ro(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ro(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ro(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ro(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ro(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ro(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof cd&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof cd&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},j9=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=b9({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new w9(this.client,t),this.tableOps=new k9(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
506async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function dd(e){"@babel/helpers - typeof";return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function N9(e,t){if(dd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S9(e){var t=N9(e,"string");return dd(t)=="symbol"?t:t+""}function C9(e,t,r){return(t=S9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(r),!0).forEach(function(n){C9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Cm=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function _m(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var fx=class extends Cm{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return pe({},super.toJSON())}},$R=class extends Cm{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function hf(e,t,r){const n=pe({},e),s=t.toLowerCase();for(const i of Object.keys(n))i.toLowerCase()===s&&delete n[i];return n[s]=r,n}function _9(e){const t={};for(const[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}const T9=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),E9=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mx=e=>{if(Array.isArray(e))return e.map(r=>mx(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=mx(n)}),t},R9=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),jj=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const r=t.error;if(typeof r.message=="string")return r.message}}return JSON.stringify(e)},A9=async(e,t,r,n)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(o=>{const l=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new fx(jj(o),i,l,n))}).catch(()=>{const o=i+"";t(new fx(s.statusText||`HTTP ${i} error`,i,o,n))})}else t(new $R(jj(e),e,n))},P9=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!n)return pe(pe({},s),r);if(E9(n)){var i;const o=(t==null?void 0:t.headers)||{};let l;for(const[c,d]of Object.entries(o))c.toLowerCase()==="content-type"&&(l=d);s.headers=hf(o,"Content-Type",(i=l)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(n)}else s.body=n;return t!=null&&t.duplex&&(s.duplex=t.duplex),pe(pe({},s),r)};async function ql(e,t,r,n,s,i,o){return new Promise((l,c)=>{e(r,P9(t,n,s,i)).then(d=>{if(!d.ok)throw d;if(n!=null&&n.noResolveJson)return d;if(o==="vectors"){const u=d.headers.get("content-type");if(d.headers.get("content-length")==="0"||d.status===204)return{};if(!u||!u.includes("application/json"))return{}}return d.json()}).then(d=>l(d)).catch(d=>A9(d,c,n,o))})}function BR(e="storage"){return{get:async(t,r,n,s)=>ql(t,"GET",r,n,s,void 0,e),post:async(t,r,n,s,i)=>ql(t,"POST",r,s,i,n,e),put:async(t,r,n,s,i)=>ql(t,"PUT",r,s,i,n,e),head:async(t,r,n,s)=>ql(t,"HEAD",r,pe(pe({},n),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,r,n,s,i)=>ql(t,"DELETE",r,s,i,n,e)}}const O9=BR("storage"),{get:ud,post:vn,put:px,head:D9,remove:Wb}=O9,Or=BR("vectors");var Ol=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=_9(t),this.fetch=T9(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=hf(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(_m(r))return{data:null,error:r};throw r}}};let zR;zR=Symbol.toStringTag;var I9=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[zR]="StreamDownloadBuilder",this.promise=null}
506then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(_m(t))return{data:null,error:t};throw t}}};let VR;VR=Symbol.toStringTag;var M9=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[VR]="BlobDownloadBuilder",this.promise=null}asStream(){return new I9(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(_m(t))return{data:null,error:t};throw t}}};const L9={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Nj={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var F9=class extends Ol{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var s=this;return s.handleOperation(async()=>{let i;const o=pe(pe({},Nj),n);let l=pe(pe({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;if(typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.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")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers)for(const[f,m]of Object.entries(n.headers))l=hf(l,f,m);const d=s._removeEmptyFolders(t),u=s._getFinalPath(d),h=await(e=="PUT"?px:vn)(s.fetch,`${s.url}/object/${u}`,i,pe({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:d,id:h.Id,fullPath:h.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${o}`);return l.searchParams.set("token",t),s.handleOperation(async()=>{let c;const d=pe(pe({},Nj),n);let u=pe(pe({},s.headers),{"x-upsert":String(d.upsert)});const h=d.metadata;if(typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),h&&c.append("metadata",s.encodeMetadata(h)),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.has("cacheControl")||c.append("cacheControl",d.cacheControl),h&&!c.has("metadata")&&c.append("metadata",s.encodeMetadata(h))):(c=r,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType,h&&(u["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!d.duplex&&(d.duplex="half")),n!=null&&n.headers)for(const[f,m]of Object.entries(n.headers))u=hf(u,f,m);return{path:i,fullPath:(await px(s.fetch,l.toString(),c,pe({headers:u},d!=null&&d.duplex?{duplex:d.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const s=pe({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await vn(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(r.url+i.url),l=o.searchParams.get("token");if(!l)throw new Cm("No token returned by API");return{signedUrl:o.toString(),path:e,token:l}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await vn(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
506stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await vn(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e);const i=typeof(r==null?void 0:r.transform)=="object"&&r.transform!==null&&Object.keys(r.transform).length>0;let o=await vn(n.fetch,`${n.url}/object/sign/${s}`,pe({expiresIn:t},i?{transform:r.transform}:{}),{headers:n.headers});const l=new URLSearchParams;r!=null&&r.download&&l.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&l.set("cacheNonce",String(r.cacheNonce));const c=l.toString();return{signedUrl:encodeURI(`${n.url}${o.signedURL}${c?`&${c}`:""}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const s=await vn(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),i=new URLSearchParams;r!=null&&r.download&&i.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&i.set("cacheNonce",String(r.cacheNonce));const o=i.toString();return s.map(l=>pe(pe({},l),{},{signedUrl:l.signedURL?encodeURI(`${n.url}${l.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),l=()=>ud(this.fetch,`${this.url}/${n}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},r);return new M9(l,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>mx(await ud(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await D9(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(_m(s)){var n;const i=s instanceof fx?s.status:s instanceof $R?(n=s.originalError)===null||n===void 0?void 0:n.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=new URLSearchParams;t!=null&&t.download&&n.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(n,t.transform),(t==null?void 0:t.cacheNonce)!=null&&n.set("cacheNonce",String(t.cacheNonce));const s=n.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Wb(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const s=pe(pe(pe({},L9),t),{},{prefix:e||""});return await vn(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=pe({},e);return await vn(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const $9="2.108.2",Wd={"X-Client-Info":`storage-js/${$9}`};var B9=class extends Ol{constructor(e,t={},r,n){const s=new URL(e);n!=null&&n.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(/\/$/,""),o=pe(pe({},Wd),t);super(i,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await ud(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ud(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await vn(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await px(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await vn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Wb(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},z9=class extends Ol{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=pe(pe({},Wd),t);super(n,s,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await vn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
506{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await ud(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Wb(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!R9(e))throw new Cm("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 r=new j9({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(s,l),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}},V9=class extends Ol{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=pe(pe({},Wd),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Or.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Or.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},U9=class extends Ol{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=pe(pe({},Wd),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},W9=class extends Ol{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=pe(pe({},Wd),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Or.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},H9=class extends W9{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new q9(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},q9=class extends V9{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName}))}
506async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new G9(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},G9=class extends U9{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,pe(pe({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},K9=class extends B9{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new F9(this.url,this.headers,e,this.fetch)}get vectors(){return new H9(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new z9(this.url+"/iceberg",this.headers,this.fetch)}};function Tm(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}const UR="2.108.2",js=30*1e3,oc=3,sg=oc*js,Y9=2*js,J9="http://localhost:9999",Z9="supabase.auth.token",X9={"X-Client-Info":`gotrue-js/${UR}`},gx="X-Supabase-Api-Version",WR={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Q9=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,e7=10*60*1e3;class hd extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function te(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class t7 extends hd{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function r7(e){return te(e)&&e.name==="AuthApiError"}class Sn extends hd{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class fs extends hd{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class Ut extends fs{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Lu(e){return te(e)&&e.name==="AuthSessionMissingError"}class no extends fs{constructor(){super("Auth session or user missing","AuthInvalidToken
506ResponseError",500,void 0)}}class Fu extends fs{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class $u extends fs{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function n7(e){return te(e)&&e.name==="AuthImplicitGrantRedirectError"}class Sj extends fs{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class s7 extends fs{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 yx extends fs{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Cj(e){return te(e)&&e.name==="AuthRetryableFetchError"}class _j extends fs{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function a7(e){return te(e)&&e.name==="AuthRefreshDiscardedError"}class Tj extends fs{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class ff extends fs{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const mf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Ej=` 	
507\r=`.split(""),i7=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Ej.length;t+=1)e[Ej[t].charCodeAt(0)]=-2;for(let t=0;t<mf.length;t+=1)e[mf[t].charCodeAt(0)]=t;return e})();function Rj(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(mf[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(mf[n]),t.queuedBits-=6}}function HR(e,t,r){const n=i7[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Aj(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{c7(o,n,r)};for(let o=0;o<e.length;o+=1)HR(e.charCodeAt(o),s,i);return t.join("")}function o7(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function l7(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}o7(n,t)}}function c7(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Uo(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)HR(e.charCodeAt(s),r,n);return new Uint8Array(t)}function d7(e){const t=[];return l7(e,r=>t.push(r)),new Uint8Array(t)}function bi(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>Rj(s,r,n)),Rj(null,r,n),t.join("")}function u7(e){return Math.round(Date.now()/1e3)+e}function h7(){return Symbol("auth-callback")}const nr=()=>typeof window<"u"&&typeof document<"u",ni={tested:!1,writable:!1},qR=()=>
507{if(!nr())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ni.tested)return ni.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ni.tested=!0,ni.writable=!0}catch{ni.tested=!0,ni.writable=!1}return ni.writable};function f7(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const GR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),m7=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",uo=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},fn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return null}},jt=async(e,t)=>{await e.removeItem(t)};class Em{constructor(){this.promise=new Em.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Em.promiseConstructor=Promise;function Bu(e){const t=e.split(".");if(t.length!==3)throw new ff("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Q9.test(t[n]))throw new ff("JWT not in base64url format");return{header:JSON.parse(Aj(t[0])),payload:JSON.parse(Aj(t[1])),signature:Uo(t[2]),raw:{header:t[0],payload:t[1]}}}async function p7(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function g7(e,t){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function y7(e){return("0"+e.toString(16)).substr(-2)}function x7(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,y7).join("")}async function v7(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function b7(e){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."),e;const r=await v7(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function si(e,t,r=!1){const n=x7();let s=n;r&&(s+="/recovery"),await uo(e,`${t}-code-verifier`,s);const i=await b7(n);return[i,n===i?"plain":"s256"]}const w7=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function k7(e){const t=e.headers.get(gx);if(!t||!t.match(w7))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function j7(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function N7(e){switch(e){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 S7=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function gs(e){if(!S7.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function pn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function ag(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function C7(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;
507if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="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."),t.value=!0),Reflect.get(r,n,s)}})}function Pj(e){return JSON.parse(JSON.stringify(e))}const ci=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},_7=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Oj(e){var t;if(!m7(e))throw new yx(ci(e),0);if(_7.includes(e.status))throw new yx(ci(e),e.status);let r;try{r=await e.json()}catch(i){throw new Sn(ci(i),i)}let n;const s=k7(e);if(s&&s.getTime()>=WR["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Tj(ci(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Ut}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Tj(ci(r),e.status,r.weak_password.reasons);throw new t7(ci(r),e.status||500,n)}const T7=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function le(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[gx]||(i[gx]=WR["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await E7(e,t,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function E7(e,t,r,n,s,i){const o=T7(t,n,s,i);let l;try{l=await e(r,Object.assign({},o))}catch(c){throw console.error(c),new yx(ci(c),0)}if(l.ok||await Oj(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await Oj(c)}}function Wr(e){var t;let r=null;P7(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=u7(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:r,user:n},error:null}}function Dj(e){const t=Wr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function la(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function R7(e){return{data:e,error:null}}function A7(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=Tm(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function Ij(e){return e}function P7(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const ig=["global","local","others"];class O7{constructor({url:t="",headers:r={},fetch:n,experimental:s}){this.url=t,this.headers=r,this.fetch=GR(n),this.experimental=s??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,r=ig[0]){if(ig.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${ig.join(", ")}`);try{return await le(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(te(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await le(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:la})}catch(n){if(te(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Tm(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await le(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:A7,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(te(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await le(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:la})}catch(r){if(te(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await le(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Ij});if(u.error)throw u.error;const h=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(x=>{const y=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(x.split(";")[1].split("=")[1]);d[`${v}Page`]=y}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(te(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){gs(t);try{return await le(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:la})}catch(r){if(te(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){gs(t);try{return await le(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:la})}catch(n){if(te(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){gs(t);
507try{return await le(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:la})}catch(n){if(te(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){gs(t.userId);try{const{data:r,error:n}=await le(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(te(r))return{data:null,error:r};throw r}}async _deleteFactor(t){gs(t.userId),gs(t.id);try{return{data:await le(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(te(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await le(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Ij});if(u.error)throw u.error;const h=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(x=>{const y=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(x.split(";")[1].split("=")[1]);d[`${v}Page`]=y}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(te(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(t){try{return await le(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(te(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await le(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(te(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await le(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await le(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(te(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await le(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(te(r))return{data:null,error:r};throw r}}async _listCustomProviders(t){try{const r={};return t!=null&&t.type&&(r.type=t.type),await le(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:r,xform:n=>{var s;return{data:{providers:(s=n==null?void 0:n.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(r){if(te(r))return{data:{providers:[]},error:r};throw r}}async _createCustomProvider(t){try{return await le(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(te(r))return{data:null,error:r};throw r}}async _getCustomProvider(t){try{return await le(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(te(r))return{data:null,error:r};throw r}}async _updateCustomProvider(t,r){try{return await le(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(te(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(t){try{return await le(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(te(r))return{data:null,error:r};throw r}}async _adminListPasskeys(t){pn(this.experimental),gs(t.userId);try{return await le(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(te(r))return{data:null,error:r};throw r}}async _adminDeletePasskey(t){pn(this.experimental),gs(t.userId),gs(t.passkeyId);
507try{return await le(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(te(r))return{data:null,error:r};throw r}}}function Mj(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}globalThis&&qR()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class D7 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function I7(){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 KR(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function M7(e){return parseInt(e,16)}function L7(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function F7(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:d,scheme:u,uri:h,version:f}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);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(!((t=e.statement)===null||t===void 0)&&t.includes(`
508`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const m=KR(e.address),x=u?`${u}://${n}`:n,y=e.statement?`${e.statement}
509`:"",v=`${x} wants you to sign in with your Ethereum account:
510${m}
511
512${y}`;let b=`URI: ${h}
513Version: ${f}
514Chain ID: ${r}${o?`
515Nonce: ${o}`:""}
516Issued At: ${i.toISOString()}`;if(s&&(b+=`
517Expiration Time: ${s.toISOString()}`),l&&(b+=`
518Not Before: ${l.toISOString()}`),c&&(b+=`
519Request ID: ${c}`),d){let g=`
520Resources:`;for(const w of d){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);g+=`
521- ${w}`}b+=g}return`${v}
522${b}`}class Pt extends Error{constructor({message:t,code:r,cause:n,name:s}){var i;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=s??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class pf extends Pt{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function $7({error:e,options:t}){var r,n,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Pt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Pt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Pt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Pt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Pt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Pt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new Pt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Pt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(YR(o)){if(i.rp.id!==o)return new Pt({message:`The RP ID "${i.rp.id}
522" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Pt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Pt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Pt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Pt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function B7({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Pt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Pt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(YR(n)){if(r.rpId!==n)return new Pt({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Pt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Pt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Pt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class z7{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const xx=new z7;function Lj(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=Tm(e,["challenge","user","excludeCredentials"]),i=Uo(t).buffer,o=Object.assign(Object.assign({},r),{id:Uo(r.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:o});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const d=n[c];l.excludeCredentials[c]=Object.assign(Object.assign({},d),{id:Uo(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function Fj(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=Tm(e,["challenge","allowCredentials"]),s=Uo(t).buffer,i=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const l=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:Uo(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function $j(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:bi(new Uint8Array(e.response.attestationObject)),clientDataJSON:bi(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Bj(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:bi(new Uint8Array(s.authenticatorData)),clientDataJSON:bi(new Uint8Array(s.clientDataJSON)),signature:bi(new Uint8Array(s.signature)),userHandle:s.userHandle?bi(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function YR(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function gf(){var e,t;return!!(nr()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function JR(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new pf("Browser returned unexpected credential type",t)}:{data:null,error:new pf("Empty credential response",t)}}
522catch(t){return{data:null,error:$7({error:t,options:e})}}}async function ZR(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new pf("Browser returned unexpected credential type",t)}:{data:null,error:new pf("Empty credential response",t)}}catch(t){return{data:null,error:B7({error:t,options:e})}}}const V7={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},U7={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function yf(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(t(o)){const l=n[i];t(l)?n[i]=yf(l,o):n[i]=yf(o)}else n[i]=o}return n}function W7(e,t){return yf(V7,e,t||{})}function H7(e,t){return yf(U7,e,t||{})}class q7{constructor(t){this.client=t,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(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},i){var o;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!l)return{data:null,error:c};const d=s??xx.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:u}=l.webauthn.credential_options.publicKey;if(!u.name){const h=n;if(h)u.name=`${u.id}:${h}`;else{const m=(await this.client.getUser()).data.user,x=((o=m==null?void 0:m.user_metadata)===null||o===void 0?void 0:o.name)||(m==null?void 0:m.email)||(m==null?void 0:m.id)||"User";u.name=`${u.id}:${x}`}}u.displayName||(u.displayName=u.name)}switch(l.webauthn.type){case"create":{const u=W7(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await JR({publicKey:u,signal:d});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const u=H7(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await ZR(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:u,signal:d}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(l){return te(l)?{data:null,error:l}:{data:null,error:new Sn("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new hd("rpId is required for WebAuthn authentication")};try{if(!gf())return{data:null,error:new Sn("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(o){return te(o)?{data:null,error:o}:{data:null,error:new Sn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new hd("rpId is required for WebAuthn registration")};try{if(!gf())return{data:null,error:new Sn("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var h;
522return(h=u.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:l};const{data:c,error:d}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:d}}catch(o){return te(o)?{data:null,error:o}:{data:null,error:new Sn("Unexpected error in register",o)}}}}I7();const G7={url:J9,storageKey:Z9,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:X9,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},so={};class fd{get jwks(){var t,r;return(r=(t=so[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){so[this.storageKey]=Object.assign(Object.assign({},so[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=so[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){so[this.storageKey]=Object.assign(Object.assign({},so[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},G7),t);if(this.storageKey=i.storageKey,this.instanceID=(r=fd.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,fd.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&nr()){const o=`${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(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(n=i.experimental)!==null&&n!==void 0?n:{},this.admin=new O7({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=GR(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock),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 q7(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.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:qR()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Mj(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Mj(this.memoryStorage)),nr()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),(o.data.event==="TOKEN_REFRESHED"||o.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${UR}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(nr()&&(r=f7(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),nr()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),n7(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return te(r)?this._returnResult({error:r}):this._returnResult({error:new Sn("Unexpected error during initialization",r)}
522)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const i=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Wr}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(te(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var r,n,s;try{let i;if("email"in t){const{email:u,password:h,options:f}=t;let m=null,x=null;this.flowType==="pkce"&&([m,x]=await si(this.storage,this.storageKey)),i=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:x},xform:Wr})}else if("phone"in t){const{phone:u,password:h,options:f}=t;i=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},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:Wr})}else throw new Fu("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await jt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:l}=t;r=await le(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Dj})}else if("phone"in t){const{phone:i,password:o,options:l}=t;r=await le(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Dj})}else throw new Fu("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const i=new no;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(te(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,i,o,l,c,d,u,h,f;let m,x;if("message"in t)m=t.message,x=t.signature;else{const{chain:y,wallet:v,statement:b,options:g}=t;let w;if(nr())if(typeof v=="object")w=v;else{const C=window;if("ethereum"in C&&typeof C.ethereum=="object"&&"request"in C.ethereum&&typeof C.ethereum.request=="function")w=C.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 v!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=v}const k=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),j=await w.request({method:"eth_requestAccounts"}).then(C=>C).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!j||j.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=KR(j[0]);let T=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!T){const C=await w.request({method:"eth_chainId"});T=M7(C)}const P={domain:k.host,address:S,statement:b,uri:k.href,version:"1",chainId:T,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.resources};m=F7(P),x=await w.request({method:"personal_sign",params:[L7(m),S]})}try{const{data:y,error:v}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:m,signature:x}
522,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Wr});if(v)throw v;if(!y||!y.session||!y.user){const b=new no;return this._returnResult({data:{user:null,session:null},error:b})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:v})}catch(y){if(te(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(t){var r,n,s,i,o,l,c,d,u,h,f,m;let x,y;if("message"in t)x=t.message,y=t.signature;else{const{chain:v,wallet:b,statement:g,options:w}=t;let k;if(nr())if(typeof b=="object")k=b;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))k=S.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 b!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=b}const j=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href);
522if("signIn"in k&&k.signIn){const S=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:j.host,uri:j.href}),g?{statement:g}:null));let T;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")T=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)T=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)x=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),y=T.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");x=[`${j.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${j.href}`,`Issued At: ${(s=(n=w==null?void 0:w.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((d=w==null?void 0:w.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((h=(u=w==null?void 0:w.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||h===void 0)&&h.length?["Resources",...w.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(`
523`);const S=await k.signMessage(new TextEncoder().encode(x),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=S}}try{const{data:v,error:b}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:bi(y)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Wr});if(b)throw b;if(!v||!v.session||!v.user){const g=new no;return this._returnResult({data:{user:null,session:null},error:g})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:b})}catch(v){if(te(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async _exchangeCodeForSession(t){const r=await fn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new s7;const{data:i,error:o}=await le(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Wr});if(await jt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new no;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,l=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Wr}),{data:c,error:d}=l;if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!c||!c.session||!c.user){const u=new no;return this._returnResult({data:{user:null,session:null},error:u})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:d})}catch(r){if(te(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if("email"in t){const{email:l,options:c}=t;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await si(this.storage,this.storageKey));const{error:h}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:l,options:c}=t,{data:d,error:u}=await le(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:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u})}throw new Fu("You must provide either an email or phone number.")}catch(l){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var r,n;try{let s,i;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await le(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Wr});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,d=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(s){if(te(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await si(this.storage,this.storageKey));const d=await le(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:R7});return!((i=d.data)===null||i===void 0)&&i.url&&nr()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(l){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Ut;const{error:s}=await le(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(te(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t;let o=null,l=null;this.flowType==="pkce"&&([o,l]=await si(this.storage,this.storageKey));const{error:c}=await le(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}
523,code_challenge:o,code_challenge_method:l},redirectTo:i==null?void 0:i.emailRedirectTo});return c&&await jt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:c})}else if("phone"in t){const{phone:n,type:s,options:i}=t,{data:o,error:l}=await le(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new Fu("You must provide either an email or phone number and a type")}catch(r){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await fn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<sg:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await fn(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ag()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=C7(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const l=await fn(this.storage,this.storageKey);if(l&&l.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let r;return this.lock!=null?r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):r=await this._getUser(),r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await le(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:la}):await this._useSession(async r=>{var n,s,i;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ut}:await le(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:la})})}catch(r){if(te(r))return Lu(r)&&(await this._removeSession(),await jt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r)):await this._updateUser(t,r)}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new Ut;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await si(this.storage,this.storageKey));const{data:d,error:u}=await le(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:la});if(u)throw u;return o.user=d.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ut;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=Bu(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{data:l,error:c}=await this._callRefreshToken(t.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(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(te(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:l}=r;if(l)throw l;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Ut;const{data:s,error:i}=await this._callRefreshToken(t.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(r){if(te(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){var n;try{if(!nr())throw new $u("No browser detected.");
523if(t.error||t.error_description||t.error_code)throw new $u(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Sj("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new $u("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Sj("No code detected.");const{data:w,error:k}=await this._exchangeCodeForSession(t.code);if(k)throw k;const j=new URL(window.location.href);return j.searchParams.delete("code"),window.history.replaceState(window.history.state,"",j.toString()),{data:{session:w.session,redirectType:(n=w.redirectType)!==null&&n!==void 0?n:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:o,refresh_token:l,expires_in:c,expires_at:d,token_type:u}=t;if(!o||!c||!l||!u)throw new $u("No session defined in URL");const h=Math.round(Date.now()/1e3),f=parseInt(c);let m=h+f;d&&(m=parseInt(d));const x=m-h;x*1e3<=js&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${x}s, should have been closer to ${f}s`);const y=m-f;h-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,m,h):h-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,m,h);const{data:v,error:b}=await this._getUser(o);if(b)throw b;const g={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:f,expires_at:m,refresh_token:l,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(s){if(te(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const r=await fn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i&&!Lu(i))return this._returnResult({error:i});const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(r7(l)&&(l.status===404||l.status===401||l.status===403)||Lu(l)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await jt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=h7(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)}):await this._emitInitialSession(r)))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),Lu(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await si(this.storage,this.storageKey,!0));try{return await le(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await jt(this.storage,`${this.storageKey}-code-verifier`),te(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,l,c,d,u;const{data:h,error:f}=i;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await le(this.fetch,"GET",m,{headers:this.headers,jwt:(u=(d=h.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return nr()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(te(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:i}}=r;if(s)throw s;const{options:o,provider:l,token:c,access_token:d,nonce:u}=t,h=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:c,access_token:d,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Wr}),{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 no}):(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`),te(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
523return await le(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r="#_refreshAccessToken()";this._debug(r,"begin");try{const n=Date.now();return await g7(async s=>(s>0&&await p7(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await le(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Wr})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Cj(i)&&Date.now()+o-n<js})}catch(n){if(this._debug(r,"error",n),te(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),nr()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await fn(this.storage,this.storageKey);if(s&&this.userStorage){let o=await fn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await uo(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ag()}else if(s&&!s.user&&!s.user){const o=await fn(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await jt(this.storage,this.storageKey+"-user"),await uo(this.storage,this.storageKey,s)):s.user=ag()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<sg;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${sg}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(a7(o)?this._debug(n,"refresh discarded by commit guard",o):this._debug(n,"refresh failed",o))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Ut;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new Em;const i=await fn(this.storage,this.storageKey),{data:o,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!o.session)throw new Ut;const c=await fn(this.storage,this.storageKey);if(i!==null&&(c===null||c.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:c?"replaced":"cleared"});const f={data:null,error:new _j};return this.refreshingDeferred.resolve(f),f}const u=this._sessionRemovalEpoch;if(await this._saveSession(o.session),this._sessionRemovalEpoch!==u){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, und
523oing write"),await jt(this.storage,this.storageKey),this.userStorage&&await jt(this.userStorage,this.storageKey+"-user");const f={data:null,error:new _j};return this.refreshingDeferred.resolve(f),f}await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const h={data:o.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(h),h}catch(i){if(this._debug(s,"error",i),te(i)){const o={data:null,error:i};if(!Cj(i)){const l=await fn(this.storage,this.storageKey);!!(l!=null&&l.expires_at&&l.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid — preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:o,expiresAt:Date.now()+Y9},(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,r)}catch(c){i.push(c)}});if(await Promise.all(o),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(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await jt(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await uo(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=Pj(s);await uo(this.storage,this.storageKey,i)}else{const s=Pj(r);await uo(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,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 t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&nr()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),js);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/js);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${js}ms, refresh threshold is ${oc} ticks`),s<=oc&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof D7)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/js);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${js}ms, refresh threshold is ${oc} ticks`),s<=oc&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!nr()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;if(this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
523{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(r,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await si(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?this._returnResult({data:null,error:i}):await le(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:d}=await le(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return d?this._returnResult({data:null,error:d}):(t.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(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){const r=async()=>{try{return await this._useSession(async n=>{var s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?$j(t.webauthn.credential_response):Bj(t.webauthn.credential_response)})}:{code:t.code}),{data:c,error:d}=await le(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:l,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return d?this._returnResult({data:null,error:d}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:d}))})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,r):r()}async _challenge(t){const r=async()=>{try{return await this._useSession(async n=>{var s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const l=await le(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(l.error)return l;const{data:c}=l;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Lj(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Fj(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,r):r()}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,s,i;if(t)try{const{payload:m}=Bu(t);let x=null;m.aal&&(x=m.aal);let y=x;const{data:{user:v},error:b}=await this.getUser(t);if(b)return this._returnResult({data:null,error:b});((n=(r=v==null?void 0:v.factors)===null||r===void 0?void 0:r.filter(k=>k.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(y="aal2");const w=m.amr||[];return{data:{currentLevel:x,nextLevel:y,currentAuthenticationMethods:w},error:null}}catch(m){if(te(m))return this._returnResult({data:null,error:m});throw m}const{data:{session:o},error:l}
523=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=Bu(o.access_token);let d=null;c.aal&&(d=c.aal);let u=d;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(m=>m.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const f=c.amr||[];return{data:{currentLevel:d,nextLevel:u,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await le(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ut})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ut});const o=await le(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&nr()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ut});const o=await le(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&nr()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await le(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Ut})})}catch(t){if(te(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await le(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ut})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(l=>l.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(l=>l.kid===t),n&&this.jwks_cached_at+e7>s)return n;const{data:i,error:o}=await le(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(l=>l.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:m,error:x}
523=await this.getSession();if(x||!m.session)return this._returnResult({data:null,error:x});n=m.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:c}}=Bu(n);if(!(r!=null&&r.allowExpired))try{j7(i.exp)}catch(m){throw new ff(m instanceof Error?m.message:"JWT validation failed")}const d=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!d){const{error:m}=await this.getUser(n);if(m)throw m;return{data:{claims:i,header:s,signature:o},error:null}}const u=N7(s.alg),h=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,h,o,d7(`${l}.${c}`)))throw new ff("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async signInWithPasskey(t){var r,n,s;pn(this.experimental);try{if(!gf())return this._returnResult({data:null,error:new Sn("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const l=Fj(i.options),c=(s=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&s!==void 0?s:xx.createNewAbortSignal(),{data:d,error:u}=await ZR({publicKey:l,signal:c});if(u||!d)return this._returnResult({data:null,error:u??new Sn("WebAuthn ceremony failed",null)});const h=Bj(d);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:h})}catch(i){if(te(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var r,n;pn(this.experimental);try{if(!gf())return this._returnResult({data:null,error:new Sn("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const o=Lj(s.options),l=(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&n!==void 0?n:xx.createNewAbortSignal(),{data:c,error:d}=await JR({publicKey:o,signal:l});if(d||!c)return this._returnResult({data:null,error:d??new Sn("WebAuthn ceremony failed",null)});const u=$j(c);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:u})}catch(s){if(te(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){pn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)return this._returnResult({data:null,error:n});if(!r)return this._returnResult({data:null,error:new Ut});const{data:s,error:i}=await le(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:r.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(te(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){pn(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new Ut});const{data:i,error:o}=await le(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _startPasskeyAuthentication(t){var r;pn(this.experimental);try{const{data:n,error:s}=await le(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:n,error:null})}catch(n){if(te(n))return this._returnResult({data:null,error:n});throw n}}async _verifyPasskeyAuthentication(t){pn(this.experimental);try{const{data:r,error:n}=await le(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:Wr});return n?this._returnResult({data:null,error:n}):(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:r,error:null}))}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _listPasskeys(){pn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)return this._returnResult({data:null,error:n});if(!r)return this._returnResult({data:null,error:new Ut});const{data:s,error:i}=await le(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(te(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){pn(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new Ut});const{data:i,error:o}=await le(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}async _deletePasskey(t){pn(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new Ut});const{error:i}
523=await le(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(r){if(te(r))return this._returnResult({data:null,error:r});throw r}}}fd.nextInstanceID={};const K7=fd,Y7="2.108.2";let lc="",xf;if(typeof Deno<"u"){var og;lc="deno",xf=(og=Deno.version)===null||og===void 0?void 0:og.deno}else if(typeof document<"u")lc="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")lc="react-native";else{var lg;lc="node",xf=typeof process<"u"?(lg=process.version)===null||lg===void 0?void 0:lg.replace(/^v/,""):void 0}const XR=[`runtime=${lc}`];xf&&XR.push(`runtime-version=${xf}`);const J7={"X-Client-Info":`supabase-js/${Y7}; ${XR.join("; ")}`},Z7={headers:J7},X7={schema:"public"},Q7={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},eH={},tH={enabled:!1,respectSamplingDecision:!0};function rH(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(u){try{d(n.next(u))}catch(h){o(h)}}function c(u){try{d(n.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):s(u.value).then(l,c)}d((n=n.apply(e,[])).next())})}let cg=null;const nH="@opentelemetry/api";function sH(){return cg===null&&(cg=import(nH).catch(()=>null)),cg}function aH(){return rH(this,void 0,void 0,function*(){try{const e=yield sH();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const r=t.traceparent;return r?{traceparent:r,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function iH(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[r,n,s,i]=t;if(r.length!==2||n.length!==32||s.length!==16||i.length!==2)return null;const o=/^[0-9a-f]+$/i;return!o.test(r)||!o.test(n)||!o.test(s)||!o.test(i)||n==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:r,traceId:n,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function oH(e,t){if(!e||!t||t.length===0)return!1;let r;if(e instanceof URL)r=e;else try{r=new URL(e)}catch{return!1}for(const n of t)try{if(typeof n=="string"){if(lH(r.hostname,n))return!0}else if(n instanceof RegExp){if(n.test(r.hostname))return!0}else if(typeof n=="function"&&n(r))return!0}catch{continue}return!1}function lH(e,t){if(t===e)return!0;if(t.startsWith("*.")){const r=t.slice(2);if(e.endsWith(r)&&(e===r||e.endsWith("."+r)))return!0}return!1}function cH(e){const t=[];try{const r=new URL(e);t.push(r.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function md(e){"@babel/helpers - typeof";return md=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},md(e)}function dH(e,t){if(md(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(md(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uH(e){var t=dH(e,"string");return md(t)=="symbol"?t:t+""}function hH(e,t,r){return(t=uH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zj(Object(r),!0).forEach(function(n){hH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const fH=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),mH=()=>Headers,pH=(e,t,r,n,s)=>{const i=fH(n),o=mH(),l=(s==null?void 0:s.enabled)===!0,c=(s==null?void 0:s.respectSamplingDecision)!==!1,d=l?cH(t):null;return async(u,h)=>{var f;const m=(f=await r())!==null&&f!==void 0?f:e;let x=new o(h==null?void 0:h.headers);if(x.has("apikey")||x.set("apikey",e),x.has("Authorization")||x.set("Authorization",`Bearer ${m}`),d){const y=await gH(u,d,c);y&&(y.traceparent&&!x.has("traceparent")&&x.set("traceparent",y.traceparent),y.tracestate&&!x.has("tracestate")&&x.set("tracestate",y.tracestate),y.baggage&&!x.has("baggage")&&x.set("baggage",y.baggage))}return i(u,bt(bt({},h),{},{headers:x}))}};async function gH(e,t,r){if(!oH(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const n=await aH();if(!n||!n.traceparent)return null;if(r){const s=iH(n.traceparent);if(s&&!s.isSampled)return null}return n}function Vj(e){return typeof e=="boolean"?{enabled:e}:e}function yH(e){return e.endsWith("/")?e:e+"/"}function xH(e,t){var r,n,s,i,o,l;const{db:c,auth:d,realtime:u,global:h}=e,{db:f,auth:m,realtime:x,global:y}=t,v=Vj(e.tracePropagation),b=Vj(t.tracePropagation),g={db:bt(bt({},f),c),auth:bt(bt({},m),d),realtime:bt(bt({},x),u),storage:{},global:bt(bt(bt({},y),h),{},{headers:bt(bt({},(r=y==null?void 0:y.headers)!==null&&r!==void 0?r:{}),(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{})}),tracePropagation:{enabled:(s=(i=v==null?void 0:v.enabled)!==null&&i!==void 0?i:b==null?void 0:b.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(o=(l=v==null?void 0:v.respectSamplingDecision)!==null&&l!==void 0?l:b==null?void 0:b.respectSamplingDecision)!==null&&o!==void 0?o:!0},accessToken:async()=>""};return e.accessToken?g.accessToken=e.accessToken:delete g.accessToken,g}function vH(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
523if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(yH(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var bH=class extends K7{constructor(e){super(e)}},wH=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const i=vH(e);if(!t)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 o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:X7,realtime:eH,auth:bt(bt({},Q7),{},{storageKey:o}),global:Z7,tracePropagation:tH},c=xH(r??{},l);if(this.settings=c,this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(u,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 d;this.auth=this._initSupabaseAuthClient((d=c.auth)!==null&&d!==void 0?d:{},this.headers,c.global.fetch)}this.fetch=pH(t,e,this._getAccessToken.bind(this),c.global.fetch,c.tracePropagation),this.realtime=this._initRealtimeClient(bt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new IW(new URL("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 K9(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new CW(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:d,experimental:u,lockAcquireTimeout:h,skipAutoInitialize:f},m,x){const y={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new bH({url:this.authUrl.href,headers:bt(bt({},y),m),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:d,experimental:u,fetch:x,lockAcquireTimeout:h,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(v=>v.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new y9(this.realtimeUrl.href,bt(bt({},e),{},{params:bt(bt({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const kH=(e,t,r)=>new wH(e,t,r);function jH(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}jH()&&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 N
523ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function NH(){var v,b;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((v=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:v[1])??((b=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:b[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),l=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),d=c&&l.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),m=(g,w,k)=>new Promise(j=>{const S=f();let T=!1,P;const C=I=>{T||(T=!0,clearTimeout(P),window.removeEventListener("message",A),j(I))},A=I=>{if(d.indexOf(I.origin)<0)return;const H=I.data;H&&H.type===u&&H.requestId===S&&C(H)};window.addEventListener("message",A);const V={type:g,requestId:S,projectId:s,key:w};k!==void 0&&(V.value=k);for(const I of d)window.parent.postMessage(V,I);P=setTimeout(()=>C(null),h)});let x=!0;const y=250;return{getItem:async g=>{let w=await m("lovable-preview-auth:get",g);return!w&&x&&(await new Promise(k=>setTimeout(k,y)),w=await m("lovable-preview-auth:get",g)),x=!1,w&&w.ok&&typeof w.value=="string"?w.value===""?(localStorage.removeItem(g),null):w.value:localStorage.getItem(g)},setItem:(g,w)=>(localStorage.setItem(g,w),m("lovable-preview-auth:set",g,w).then(k=>{k&&k.ok&&typeof k.value=="string"&&localStorage.getItem(g)===w&&(k.value===""?localStorage.removeItem(g):localStorage.setItem(g,k.value))})),removeItem:g=>(localStorage.removeItem(g),m("lovable-preview-auth:remove",g).then(()=>{}))}}const SH="https://ooqeaipofxhyibbnmaca.supabase.co",CH="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9vcWVhaXBvZnhoeWliYm5tYWNhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzM4NTA5MjUsImV4cCI6MjA4OTQyNjkyNX0.3oWHRiLEsNpY_gthzRKkfgAQTstF6SG8AXZ9iFu0xxw",Mt=kH(SH,CH,{auth:{storage:NH(),persistSession:!0,autoRefreshToken:!0}});function QR(){if(typeof window>"u")return{};const e=new URLSearchParams(window.location.search),t=r=>e.get(r)??void 0;return{landing_url:window.location.href,referrer:document.referrer||void 0,utm_source:t("utm_source"),utm_medium:t("utm_medium"),utm_campaign:t("utm_campaign"),utm_content:t("utm_content")}}const _H=()=>{const[e,t]=p.useState(""),[r,n]=p.useState(!1),[s,i]=p.useState(!1),[o,l]=p.useState(null),c=async d=>{d.preventDefault();const u=e.trim();if(!u||u.length>255||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u)){l("Please enter a valid email.");return}n(!0),l(null);const{data:h,error:f}=await Mt.functions.invoke("newsletter-signup",{body:{email:u,source_page:"/footer-fresh-air-finance",source:QR()}});if(n(!1),f||!(h!=null&&h.success)){l("Something went wrong. Please try again.");return}i(!0)};return s?a.jsxs("div",{className:"mx-auto mt-4 inline-flex items-center gap-2 rounded-md bg-accent/10 px-4 py-3 text-sm text-foreground",children:[a.jsx(Ad,{className:"h-4 w-4 text-primary"}),"You're on the list — thanks for subscribing."]}):a.jsxs("form",{onSubmit:c,className:"mx-auto mt-4 flex w-full max-w-md flex-col gap-2 sm:flex-row",children:[a.jsx("input",{type:"email",required:!0,value:e,maxLength:255,onChange:d=>t(d.target.value),placeholder:"[email protected]","aria-label":"Email address",className:"h-10 flex-1 rounded-md border border-border bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),a.jsx("button",{type:"submit",disabled:r,className:"h-10 rounded-md bg-primary px-5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 shadow-md shadow-primary/20 disabled:opacity-60",children:r?"Subscribing…":"Subscribe"}),o&&a.jsx("p",{className:"w-full text-xs text-destructive sm:basis-full",role:"alert",children:o})]})},TH=()=>{const{theme:e}=Fv(),t=e==="dark"?Vb:zb;return a.jsx("footer",{className:"border-t border-border bg-background",children:a.jsxs("div",{className:"container py-12",children:[a.jsxs("div",{className:"mb-10 rounded-xl border border-border bg-secondary/30 p-6 text-center sm:p-8",children:[a.jsx("h3",{className:"font-display text-lg font-bold text-foreground",children:"Fresh Air Finance"}),a.jsx("p",{className:"mx-auto mt-2 max-w-md text-sm text-muted-foreground",children:"The newsletter at the intersection of structured finance and decarbonization. No fluff."}),a.jsx(_H,{}),a.jsxs("p",{className:"mx-auto mt-3 max-w-md text-xs text-muted-foreground",children:["Email only used to send Fresh Air Finance updates. See our"," ",a.jsx(se,{to:"/privacy",className:"underline hover:text-foreground",children:"privacy policy"}),"."]})]}),a.jsxs("div",{className:"grid gap-8 md:grid-cols-5",children:[a.jsxs("div",{className:"md:col-span-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("img",{src:t,alt:"Seoi.Cure logo",className:"h-10 w-auto flex-shrink-0 drop-shadow-sm",loading:"lazy",decoding:"async"}),a.jsx("span",{className:"font-display text-base font-bold tracking-tight text-foreground",children:"Seoi.Cure"})]}),a.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Structured finance for decarbonization."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Work With Us"}),a.jsxs("div",{className:"flex flex-col gap-2 text-sm text-muted-foreground",children:[a.jsx(se,{to:"/services#market-ready-narrative",className:"hover:text-foreground transition-colors",children:"Market-Ready Narrative"}),a.jsx(se,{to:"/services#financeability",className:"hover:text-foreground transition-colors",children:"Climate-to-Credit Review"}),a.jsx(se,{to:"/services#crbc-partnerships",className:"hover:text-foreground transition-colors",children:"CRBC Partnerships"}),a.jsx(se,{to:"/services/readiness-tool",className:"hover:text-foreground transition-colors",children:"Readiness Tool"})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Explore"}),a.jsxs("div",{className:"flex flex-col gap-2 text-sm text-muted-foreground",children:[a.jsx(se,{to:"/research",className:"hover:text-foreground transition-colors",children:"Research"}),a.jsx(se,{to:"/bite-size-climate-tech",className:"hover:text-foreground transition-colors",children:"CDR Field Notes (BSCT)"}),a.jsx(se,{to:"/services/readiness-tool",className:"hover:text-foreground transition-colors",children:"CDR Readiness Tool"}),a.jsx(se,{to:"/carbon-removal-breakfast-club",className:"hover:text-foreground transition-colors",children:"Carbon Removal Breakfast Club"}),a.jsx(se,{to:"/east-west-climate-capital-delegation",className:"hover:text-foreground transition-colors",children:"East Meets West"}),a.jsx(se,{to:"/about",className:"hover:text-foreground transition-colors",children:"About"}),a.jsx(se,{to:"/contact",className:"hover:text-foreground transition-colors",children:"Contact"})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Legal"}),a.jsxs("div",{className:"flex flex-col gap-2 text-sm text-muted-foreground",children:[a.jsx(se,{to:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),a.jsx(se,{to:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),a.jsx(se,{to:"/cookies",className:"hover:text-foreground transition-colors",children:"Cookie Policy"}),a.jsx(se,{to:"/accessibility",className:"hover:text-foreground transition-colors",children:"Accessibility"}),a.jsx(se,{to:"/disclaimer",className:"hover:text-foreground transition-colors",children:"Financial Disclaimer"})]})]})]}),a.jsxs("div",{className:"mt-10 border-t border-border pt-6 text-center text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," Seoi.Cure. All rights reserved."]})]})})},EH=({children:e})=>a.jsx(ne.div,{initial:{opacity:0,y:8}
523,animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2,ease:"easeOut"},children:e}),RH=()=>a.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[100] focus:rounded-md focus:bg-accent focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-accent-foreground focus:shadow-lg",children:"Skip to content"}),Uj="seoicure-cookie-consent",AH=()=>{const[e,t]=p.useState(!1);p.useEffect(()=>{if(typeof window>"u")return;window.localStorage.getItem(Uj)||t(!0)},[]);const r=n=>{window.localStorage.setItem(Uj,n),t(!1)};return e?a.jsx("div",{role:"dialog","aria-live":"polite","aria-label":"Cookie consent",className:"fixed inset-x-3 bottom-3 z-[60] sm:inset-x-auto sm:right-4 sm:bottom-4 sm:max-w-md",children:a.jsxs("div",{className:"glass-card relative p-5 shadow-xl",children:[a.jsx("button",{onClick:()=>r("rejected"),"aria-label":"Dismiss cookie banner",className:"absolute right-3 top-3 rounded-md p-1 text-muted-foreground hover:bg-secondary/60 hover:text-foreground",children:a.jsx(nm,{className:"h-4 w-4"})}),a.jsx("h2",{className:"pr-8 font-display text-base font-semibold text-foreground",children:"We respect your privacy"}),a.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:["We use only essential cookies by default. With your consent we may enable analytics cookies to help us improve the site."," ",a.jsx(se,{to:"/cookies",className:"font-medium text-accent underline-offset-4 hover:underline",children:"Cookie Policy"})]}),a.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[a.jsx(G,{size:"sm",onClick:()=>r("accepted"),className:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-md shadow-accent/20",children:"Accept all"}),a.jsx(G,{size:"sm",variant:"outline",onClick:()=>r("rejected"),children:"Essential only"})]})]})}):null},dg="pk_live_51TATeJ5HWrBkcGHckyj3VTWgk1ZbY8UNMbSpiUBUANTWSZEuZEb9eeuBNQUrc6NVwq9reaH32ujEGERc9nA5jFzu00Hfs35nyH";function PH(){return dg!=null&&dg.startsWith("pk_test_")?a.jsxs("div",{className:"w-full bg-orange-100 border-b border-orange-300 px-4 py-2 text-center text-sm text-orange-800 relative z-50",children:["All payments made in the preview are in test mode."," ",a.jsx("a",{href:"https://docs.lovable.dev/features/payments#test-and-live-environments",target:"_blank",rel:"noopener noreferrer",className:"underline font-medium",children:"Read more"})]}):null}const OH=()=>{const e=hs();return p.useEffect(()=>{window.scrollTo(0,0)},[e.pathname]),a.jsxs("div",{className:"flex min-h-screen flex-col",children:[a.jsx(PH,{}),a.jsx(RH,{}),a.jsx(kW,{}),a.jsx("main",{id:"main-content",className:"flex-1",tabIndex:-1,children:a.jsx(Fd,{mode:"wait",children:a.jsx(EH,{children:a.jsx(s$,{})},e.pathname)})}),a.jsx(TH,{}),a.jsx(AH,{})]})},DH=()=>{const[e,t]=p.useState(0);return p.useEffect(()=>{let r=!1;const n=()=>{r||(requestAnimationFrame(()=>{t(window.scrollY),r=!1}),r=!0)};return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),e},pt=({variant:e="dark"})=>{const t=DH(),r=p.useRef(null),n=t*.04,s=t*-.03,i=t*.025;return e==="light"?a.jsxs("div",{ref:r,className:"pointer-events-none absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"animate-float-1 absolute -left-32 -top-32 h-[400px] w-[400px] rounded-full bg-secondary/40 blur-[100px] will-change-transform",style:{transform:`translateY(${n}px)`}}),a.jsx("div",{className:"animate-float-2 absolute -right-20 top-1/3 h-[350px] w-[350px] rounded-full bg-accent/[0.06] blur-[100px] will-change-transform",style:{transform:`translateY(${s}px)`}}),a.jsx("div",{className:"animate-float-3 absolute bottom-0 left-1/3 h-[300px] w-[300px] rounded-full bg-secondary/30 blur-[80px] will-change-transform",style:{transform:`translateY(${i}px)`}})]}):a.jsxs("div",{ref:r,className:"pointer-events-none absolute inset-0 overflow-hidden",children:[a.jsxs("svg",{className:"absolute inset-0 w-full h-full opacity-[0.025]",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("defs",{children:a.jsxs("pattern",{id:"ripples",x:"0",y:"0",width:"200",height:"200",patternUnits:"userSpaceOnUse",children:[a.jsx("circle",{cx:"100",cy:"100",r:"20",fill:"none",stroke:"hsl(187 77% 25%)",strokeWidth:"0.5"}),a.jsx("circle",{cx:"100",cy:"100",r:"40",fill:"none",stroke:"hsl(176 44% 45%)",strokeWidth:"0.4"}
523),a.jsx("circle",{cx:"100",cy:"100",r:"60",fill:"none",stroke:"hsl(187 77% 25%)",strokeWidth:"0.3"}),a.jsx("circle",{cx:"100",cy:"100",r:"80",fill:"none",stroke:"hsl(176 44% 45%)",strokeWidth:"0.2"})]})}),a.jsx("rect",{width:"100%",height:"100%",fill:"url(#ripples)"})]}),a.jsx("div",{className:"animate-float-1 absolute -left-40 -top-40 h-[500px] w-[500px] rounded-full bg-accent/30 blur-[120px] will-change-transform",style:{transform:`translateY(${n}px)`}}),a.jsx("div",{className:"animate-float-2 absolute -right-20 top-1/2 h-[400px] w-[400px] rounded-full bg-secondary/20 blur-[120px] will-change-transform",style:{transform:`translateY(${s}px)`}}),a.jsx("div",{className:"animate-float-3 absolute bottom-0 left-1/3 h-[300px] w-[300px] rounded-full bg-accent/15 blur-[100px] will-change-transform",style:{transform:`translateY(${i}px)`}})]})},pd=({videoId:e,title:t,thumbnail:r,className:n=""})=>{const[s,i]=p.useState(!1),o=r??`https://img.youtube.com/vi/${e}/maxresdefault.jpg`;return a.jsxs("div",{className:n,children:[a.jsx("div",{className:"relative aspect-video w-full overflow-hidden rounded-2xl border border-border bg-secondary/30 shadow-lg",children:s?a.jsx("iframe",{src:`https://www.youtube-nocookie.com/embed/${e}?autoplay=1&rel=0`,title:t,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",className:"absolute inset-0 h-full w-full"}):a.jsxs("button",{type:"button",onClick:()=>i(!0),"aria-label":`Play video: ${t}`,className:"group absolute inset-0 h-full w-full cursor-pointer",children:[a.jsx("img",{src:o,alt:t,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}),a.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-foreground
523/20 transition-colors group-hover:bg-foreground/30",children:a.jsx("span",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-accent text-accent-foreground shadow-lg shadow-accent/30",children:a.jsx(Aa,{className:"h-7 w-7 ml-1"})})}),a.jsx("span",{className:"sr-only",children:"Play video"})]})}),a.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"This video is hosted by YouTube."})]})},IH="/assets/hero-inkwash-Cppp9dxZ.webp",MH="/assets/hero-inkwash-dark-BYmkm1DH.webp",Qt=({title:e,subtitle:t,children:r,showLogo:n=!0})=>{const{theme:s}=Fv(),i=s==="dark"?MH:IH;return a.jsxs("section",{className:"relative overflow-hidden bg-background dark:ocean-gradient min-h-[480px] md:min-h-[560px] flex flex-col",children:[a.jsx(ne.img,{src:i,alt:"","aria-hidden":"true",initial:{opacity:0,scale:1.04},animate:{opacity:1,scale:1},transition:{duration:1.4,ease:"easeOut"},className:"absolute inset-0 w-full h-full object-cover object-center pointer-events-none select-none"}),a.jsx("div",{className:"absolute inset-0 pointer-events-none dark:bg-gradient-to-b dark:from-[hsl(188_50%_8%/0.25)] dark:via-[hsl(186_45%_12%/0.15)] dark:to-[hsl(180_40%_16%/0.2)]"}),a.jsx("div",{className:"absolute inset-0 bg-background/30 dark:bg-[hsl(188_50%_10%/0.25)] pointer-events-none"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background/50 via-background/25 to-transparent dark:from-[hsl(188_50%_8%/0.4)] dark:via-[hsl(188_50%_8%/0.15)] dark:to-transparent pointer-events-none"}),n&&a.jsxs(ne.div,{initial:!1,className:"container relative z-20 pt-8 md:pt-10 flex items-center gap-3",children:[a.jsx("img",{src:s==="dark"?Vb:zb,alt:"Seoi.Cure",className:"h-16 md:h-20 lg:h-24 w-auto flex-shrink-0 drop-shadow-sm"}),a.jsx("span",{className:"font-display text-xl md:text-2xl lg:text-3xl font-bold tracking-tight text-foreground",children:"Seoi.Cure"})]}),a.jsx("div",{className:"container relative z-20 flex-1 flex items-center pb-12 md:pb-16",children:a.jsxs("div",{className:"max-w-xl",children:[a.jsx("h1",{className:"font-display text-4xl font-bold leading-tight tracking-tight text-foreground md:text-5xl lg:text-[3.5rem]",children:e}),t&&a.jsx("p",{className:"mt-4 text-lg leading-relaxed text-muted-foreground md:text-xl",children:t}),r&&a.jsx("div",{className:"mt-8",children:r})]})})]})},Oe=({className:e="",flip:t=!1})=>a.jsx("div",{className:`w-full overflow-hidden leading-none ${t?"rotate-180":""} ${e}`,children:a.jsxs("svg",{viewBox:"0 0 1440 80",preserveAspectRatio:"none",className:"w-full h-12 md:h-16",children:[a.jsx("path",{d:"M0,60 C120,55 240,40 360,35 C480,30 540,45 660,50 C780,55 840,30 960,25 C1080,20 1200,40 1320,45 C1380,47 1420,50 1440,52 L1440,80 L0,80 Z",fill:"hsl(var(--background))"}),a.jsx("path",{d:"M0,65 C180,50 360,42 540,40 C720,38 900,50 1080,48 C1200,46 1350,55 1440,58 L1440,80 L0,80 Z",fill:"hsl(var(--background))",opacity:"0.7"})]})}),LH=[{icon:Pd,eyebrow:"Narrative",title:"Market-Ready Narrative",desc:"Clarify the story, audience and proof so technical work becomes easier to explain.",href:"/services#market-ready-narrative"},{icon:s2,eyebrow:"Financeability",title:"Climate-to-Credit Review",desc:"A structured diagnostic on how capital providers will read your project — and what to address next.",href:"/services#financeability"},{icon:Mv,eyebrow:"Rooms",title:"CRBC Partnerships",desc:"Partner with small, carefully designed rooms that create useful climate-capital conversations.",href:"/services#crbc-partnerships"}],FH=["Global ABS 2026 · Spotlight Stage","CRBC at London Climate Action Week","Banking & structured-finance experience"],$H=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Where capital flows toward climate solutions.",children:a.jsxs("div",{className:"max-w-2xl rounded-2xl bg-background/85 dark:bg-[hsl(188_50%_8%/0.6)] backdrop-blur-sm border border-border/40 p-5 md:p-6 shadow-sm",children:[a.jsx("p",{className:"text-base md:text-lg leading-relaxed text-foreground",children:"Seoi.Cure helps technical climate companies become easier to understand, finance and back — through market-ready narratives, financeability reviews and carefully designed rooms."}),a.jsxs("div",{className:"mt-5 flex flex-col items-start gap-3 sm:flex-row",children:[a.jsx(G,{asChild:!0,size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-md shadow-primary/20",children:a.jsxs(se,{to:"/services",children:["See how we work ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})}),a.jsx(G,{asChild:!0,size:"lg",variant:"outline",children:a.jsx(se,{to:"/research#global-abs-2026",children:"See proof in practice"})})]})]})}),a.jsx("section",{className:"border-t border-border bg-secondary/30 py-6",children:a.jsx("div",{className:"container flex flex-wrap items-center justify-center gap-x-8 gap-y-3 text-xs uppercase tracking-[0.15em] text-muted-foreground",children:FH.map(e=>a.jsxs("span",{className:"inline-flex items-center gap-2",children:[a.jsx("span",{className:"h-1 w-1 rounded-full bg-accent","aria-hidden":"true"}),e]},e))})}),a.jsx("section",{className:"bg-background py-16 md:py-20","aria-labelledby":"ways-heading",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Work with us"}),a.jsx("h2",{id:"ways-heading",className:"mt-2 font-display text-3xl font-bold text-foreground md:text-4xl",children:"Three ways to make a climate opportunity easier to understand, finance and support."})]}),a.jsx("ul",{className:"grid gap-6 md:grid-cols-3",children:LH.map((e,t)=>a.jsx(ne.li,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08,duration:.5},children:a.jsxs(se,{to:e.href,className:"group flex h-full flex-col glass-card p-6 transition-all hover:shadow-xl hover:shadow-accent/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:[a.jsx("div",{className:"inline-flex rounded-xl bg-accent/10 p-3 w-fit",children:a.jsx(e.icon,{className:"h-6 w-6 text-accent"})}),a.jsx("span",{className:"mt-4 text-xs font-semibold uppercase tracking-[0.15em] text-accent",children:e.eyebrow}),a.jsx("h3",{className:"mt-1 font-display text-lg font-semibold text-foreground leading-snug",children:e.title}),a.jsx("p",{className:"mt-2 flex-1 text-sm leading-relaxed text-muted-foreground",children:e.desc}),a.jsxs("span",{className:"mt-5 inline-flex items-center text-sm font-medium text-accent group-hover:underline",children:["Learn more ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})]})},e.href))})]})}),a.jsx(Oe,{}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-20 bg-background border-t border-border","aria-labelledby":"abs-heading",children:[a.jsx(pt,{variant:"light"}),a.jsx("div",{className:"container relative z-10 max-w-6xl",children:a.jsxs("div",{className:"grid gap-10 md:grid-cols-2 md:items-center",children:[a.jsxs(ne.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Latest proof · Global ABS 202
5236 · Spotlight Stage"}),a.jsx("h2",{id:"abs-heading",className:"mt-2 font-display text-3xl font-bold text-foreground md:text-4xl",children:"From climate story to credit story."}),a.jsx("p",{className:"mt-4 leading-relaxed text-muted-foreground",children:"On the Global ABS 2026 Spotlight Stage in Barcelona, Lydia Chen was joined by Jim Mann of UNDO for a live case study in translating enhanced rock weathering into something structured capital can understand."}),a.jsx("blockquote",{className:"mt-5 border-l-2 border-accent pl-4 font-display italic text-foreground",children:'"A buyer asks whether the tonne is real. A lender asks who takes the loss if it is not."'}),a.jsx("div",{className:"mt-6",children:a.jsx(G,{asChild:!0,variant:"accent",className:"rounded-full",children:a.jsxs(se,{to:"/research#global-abs-2026",children:["See the full Global ABS 2026 module ",a.jsx(qe,{className:"ml-2 h-4 w-4"})]})})})]}),a.jsxs(ne.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"md:justify-self-end w-full max-w-md",children:[a.jsx(pd,{videoId:"om2q4WZi3V8",title:"Global ABS 2026 highlight — Lydia Chen with Jim Mann, UNDO"}),a.jsx("p",{className:"-mt-1 text-xs text-center text-muted-foreground",children:"2-minute highlight"})]})]})})]}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-20",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/15 via-primary/10 to-background"}),a.jsx("div",{className:"container relative z-10 max-w-4xl",children:a.jsxs(ne.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"glass-card-wave p-8 md:p-12 text-center",children:[a.jsx("div",{className:"inline-flex rounded-xl bg-accent/10 p-3",children:a.jsx(Mv,{className:"h-6 w-6 text-accent"})}),a.jsx("span",{className:"mt-4 block text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Carbon Removal Breakfast Club"}),a.jsx("h2",{className:"mt-2 font-display text-3xl font-bold text-foreground md:text-4xl",children:"Small rooms, better questions."}),a.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-muted-foreground leading-relaxed",children:"CRBC brings scientists, founders, financiers, buyers and market infrastructure people into carefully designed conversations around major climate weeks. Latest edition: London Climate Action Week 2026."}),a.jsxs("div",{className:"mt-8 flex flex-col items-center gap-3 sm:flex-row sm:justify-center",children:[a.jsx(G,{asChild:!0,size:"lg",variant:"accent",className:"shadow-md shadow-accent/20",children:a.jsxs(se,{to:"/carbon-removal-breakfast-club",children:["See the latest room ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})}),a.jsx(G,{asChild:!0,size:"lg",variant:"outline",children:a.jsx(se,{to:"/carbon-removal-breakfast-club#partner",children:"Partner with a future room"})})]})]})})]}),a.jsx(Oe,{}),a.jsx("section",{className:"bg-background py-16 md:py-20",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsxs("div",{className:"flex items-end justify-between mb-8",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Selected insights"}),a.jsx("h2",{className:"mt-2 font-display text-2xl md:text-3xl font-bold text-foreground",children:"Current thinking"})]}),a.jsxs(se,{to:"/research",className:"hidden sm:inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",children:["View all ",a.jsx(qe,{className:"h-4 w-4"})]})]}),a.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:[{eyebrow:"Global ABS 2026",title:"From climate story to credit story",to:"/research#global-abs-2026"},{eyebrow:"Discussion paper",title:"Securitizing carbon removal",to:"/research/cdr-securitization"},{eyebrow:"Article series",title:"Securitization Saturday",to:"/research#securitization-saturday"}].map(e=>a.jsxs(se,{to:e.to,className:"group glass-card p-5 transition-all hover:shadow-lg hover:shadow-accent/10",children:[a.jsx(Hh,{className:"h-5 w-5 text-accent"}),a.jsx("span",{className:"mt-3 block text-xs font-semibold uppercase tracking-[0.15em] text-accent",children:e.eyebrow}),a.jsx("h3",{className:"mt-1 font-display text-base font-semibold text-foreground leading-snug",children:e.title}),a.jsxs("span",{className:"mt-4 inline-flex items-center text-sm font-medium text-accent group-hover:underline",children:["Read ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})]},e.to))})]})}),a.jsxs("section",{className:"relative overflow-hidden py-20 bg-background border-t border-border",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-4xl text-center",children:[a.jsx("h2",{className:"font-display text-3xl font-bold text-foreground md:text-4xl",children:"Start a conversation"}),a.jsx("p",{className:"mx-auto mt-3 max-w-xl text-muted-foreground",children:"Choose the pathway closest to what you are trying to move forward."}),a.jsxs("div",{className:"mt-8 grid gap-3 sm:grid-cols-3 max-w-3xl mx-auto",children:[a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx(se,{to:"/contact?subject=Market-Ready%20Narrative",children:"Narrative work"})}),a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx(se,{to:"/contact?subject=Financeability",children:"Financeability review"})}),a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx(se,{to:"/contact?subject=CRBC%20partner",children:"CRBC partnership"})})]})]})]})]}),zn=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e}),Wj="vRGOxgWfVrM",BH=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"About Seoi.Cure",subtitle:"A climate-market translation practice sitting between technical climate work and serious capital conversations."}),a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[12%] right-[8%] w-[500px] h-[500px] rounded-full opacity-[0.08] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 65%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[55%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(176 44% 55%), transparent 70%)"}})]}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(zn,{children:a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground",children:"Who we are"})}),a.jsx(zn,{delay:.1,children:a.jsx("p",{className:"mt-4 leading-relaxed text-foreground",children:"Lydia Chen is a former structured-finance banker and climate-market translator. Her work brings together banking and structured-finance experience, climate storytelling, market-facing materials and carefully designed industry conversations."})}),a.jsx(zn,{delay:.2,children:a.jsx("p",{className:"mt-6 leading-relaxed text-foreground",children:"Seoi.Cure today focuses on three linked pieces of work: sharpening how technical climate companies tell their story (Market-Ready Narrative), diagnosing how those same companies will be read by capital providers (Climate-to-Credit / Financeability Review), and convening careful rooms for founders, funders, scientists and market builders (Carbon Removal Breakfast Club)."})}),a.jsx(zn,{delay:.3,children:a.jsx("p",{className:"mt-6 leading-relaxed text-muted-foreground text-sm italic",children:"Seoi.Cure is not an underwriting platform, securitization issuer or investment advisor. The wider ambition — helping build financial infrastru
523cture for durable carbon removal — is a longer-term horizon, most clearly expressed in the original 2024 founder's letter."})})]}),a.jsx(Oe,{}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(zn,{children:a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground",children:'What Does "Seoi" Mean?'})}),a.jsx(zn,{delay:.1,children:a.jsx("p",{className:"mt-4 leading-relaxed text-foreground",children:'"Seoi" (水) is the Cantonese word for "water"—the most essential element of life, and a universal symbol of flow, liquidity, and renewal. Water carves canyons, nourishes ecosystems, and finds its way through every obstacle. It represents the kind of capital we aim to channel into climate finance: life-giving, persistent, and transformative.'})}),a.jsx(zn,{delay:.2,children:a.jsx("p",{className:"mt-6 leading-relaxed text-foreground",children:'Combined with "Cure," our name embodies our mission: to bring the liquidity and flow of water to cure the capital gap holding back decarbonization.'})})]}),a.jsx(Oe,{flip:!0}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:a.jsx(zn,{children:a.jsxs("div",{className:"glass-card p-8 md:p-10 border-accent/20",children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground",children:"Our Vision"}),a.jsx("p",{className:"mt-4 leading-relaxed text-foreground",children:"Seoi.Cure’s vision is a climate market where strong technical work is easier to understand, finance and support. Today, we help make that happen through Market-Ready Narratives, Climate-to-Credit Reviews and carefully designed CRBC partnerships."})]})})}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:a.jsx(zn,{children:a.jsxs("div",{className:"glass-card overflow-hidden border-accent/20",children:[a.jsxs("a",{href:`https://www.youtube.com/watch?v=${Wj}`,target:"_blank",rel:"noopener noreferrer",className:"group relative block",children:[a.jsx("img",{src:`https://img.youtube.com/vi/${Wj}/hqdefault.jpg`,alt:"Lydia's Global ABS 2025 talk",className:"w-full aspect-video object-cover transition-transform duration-300 group-hover:scale-105"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground
523/20 transition-colors group-hover:bg-foreground/30",children:a.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-accent text-accent-foreground shadow-lg shadow-accent/30",children:a.jsx(Aa,{className:"h-7 w-7 ml-1"})})})]}),a.jsxs("div",{className:"p-8 text-center bg-gradient-to-b from-secondary/20 to-secondary/5",children:[a.jsx("h2",{className:"font-display text-xl font-bold text-foreground",children:"Hear from Our Founder"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"Watch Lydia's Global ABS 2025 talk on building the structured finance layer for decarbonization."}),a.jsx("a",{href:"/founders-letter",className:"mt-4 inline-flex items-center gap-2 font-medium text-accent hover:underline",children:"Read Lydia's Founder Letter →"})]})]})})}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 pb-16 md:pb-24",children:a.jsx(zn,{children:a.jsxs("div",{className:"glass-card p-8 md:p-10 border-accent/20",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Selected talk · Global ABS 2026"}),a.jsx("h2",{className:"mt-2 font-display text-2xl md:text-3xl font-bold text-foreground",children:"From Climate Story to Credit Story"}),a.jsx("p",{className:"mt-4 leading-relaxed text-foreground",children:"On the Global ABS 2026 Spotlight Stage in Barcelona, Lydia Chen was joined by Jim Mann, founder of UNDO, for a live case study in translating enhanced rock weathering from a climate story into a credit story that structured capital can underwrite."}),a.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-4",children:[a.jsx("a",{href:"https://youtu.be/58LfmBp74Ao",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center rounded-full bg-accent px-5 py-2.5 text-sm font-medium text-accent-foreground shadow-md shadow-accent/20 hover:bg-accent/90",children:"Watch the full session →"}),a.jsx("a",{href:"https://youtu.be/om2q4WZi3V8",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-accent hover:underline",children:"Watch the 2-minute highlight →"})]})]})})})]}),Gl={initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5}},zH=()=>a.jsxs(a.Fragment,{children:[a.jsxs("section",{className:"relative overflow-hidden ocean-gradient py-20",children:[a.jsx(pt,{variant:"dark"}),a.jsxs("div",{className:"container relative z-10",children:[a.jsx(ne.h1,{...Gl,className:"mx-auto max-w-2xl text-center font-display text-4xl font-bold text-primary-foreground md:text-5xl",children:"A Letter from Our Founder"}),a.jsxs(ne.p,{...Gl,className:"mx-auto mt-4 max-w-xl text-center text-primary-foreground",children:["8th April, 2024 · Atmospheric CO₂: ",a.jsx("strong",{className:"text-primary-foreground",children:"425.67 ppm"})]})]})]}),a.jsx(Oe,{className:"-mt-1"}),a.jsxs("section",{className:"relative overflow-hidden py-20",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl space-y-8",children:[a.jsx(ne.div,{...Gl,className:"rounded-xl border border-accent/30 bg-accent/10 p-5 text-sm text-foreground leading-relaxed",children:"Originally published in April 2024, this letter records Seoi.Cure's original carbon-removal and securitization thesis. The business has since broadened its work across climate technology, market narrative and financeability."}),a.jsxs(ne.div,{...Gl,className:"glass-card p-8 md:p-12 space-y-6 border-accent/20",children:[a.jsx("blockquote",{className:"border-l-4 border-accent/40 pl-4 italic text-foreground",children:'"I never envisioned myself starting a company. Yet, there comes a time when someone has to step up, and I believe now is that time."'}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Dear friend,"}),a.jsxs("p",{className:"leading-relaxed text-muted-foreground",children:[`Welcome, I'm Lydia, the founder of Seoi.Cure CDR. The word "水 Seoi" (pronounced "se") echoes "water" in Cantonese, representing the liquidity and life-giving force we aim to channel into the `,a.jsx("strong",{className:"text-foreground",children:"Carbon Dioxide Removal (CDR
523)"})," space by marrying structured finance with vital carbon removal efforts."]}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"This endeavour is deeply personal to me, and I hope that by the end of this letter, it will resonate with you just as strongly. At Seoi.Cure CDR, we are harnessing my extensive experience in structured finance and securitization to tackle one of the most pressing challenges of our time—carbon dioxide removal from our atmosphere."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground pt-4",children:"The Problem"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Picture a bright new tech employee with a surefire future, yet they can't get a mortgage because they just started their career. This is the predicament many CDR developers face: they hold contracts rich in potential but confront formidable financial hurdles."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"By aggregating a group of them, together we are stronger with bigger volume and lower risk."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground pt-4",children:"What Sets Us Apart"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Others may focus on expanding the market, but at Seoi.Cure CDR, we're laying the very financial groundwork necessary for the CDR sector. We're not just participating; we're leading by introducing time-tested financial strategies."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"We're amassing durable carbon removal credits so that they reach a critical mass, akin to constructing a mortgage-backed securities framework for the carbon removal market. The market lacks adequate in-house financial acumen paired with a commitment to developing the innovations it truly needs."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:`It frustrates me to witness such a perfect synergy between the high-quality cash flows of durable CDR developers and credit lenders searching for their next big investment. The situation is often likened to "crypto in 2009"—it's an era ripe with opportunity and necessitates astute risk management.`}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground pt-4",children:"Why Now"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"After a decade in investment banking, it's evident to me that traditional methods will not suffice to scale the CDR industry within the crucial next ten years. We are merely six years shy of 2030, and the task at hand transcends polished platforms, comprehensive datasets, or influential figures' dialogues at conferences."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Despite being trained as a structured finance banker, I'm lucky enough to witness the booming CDR market at the right time in the right way—lucky enough to have been involved in the vibrant ecosystem. The structured finance market has never lacked innovation or financing structures to be deployed to a new and booming market; they are just waiting for the right time. With the durable carbon removal credit market rocketing 7.3× in 2023, it's time for us to use proven and readily available financing instruments to channel funding to the right place."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground pt-4",children:"Our Mission"}),a.jsxs("p",{className:"leading-relaxed text-muted-foreground",children:["Now is the time to construct robust, repeatable, and scalable financial structures that truly work. The challenge is immense, but my resolve is steadfast. There is nothing I am more committed to than actualising our vision: to facilitate ",a.jsx("strong",{className:"text-foreground",children:"10 Gt of CO₂ removal annually"})," and achieve our goal of reducing the cost to ",a.jsx("strong",{className:"text-foreground",children:"$100 per ton"}),"."]}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"I hope this mission has now become as personal to you as it is to me. Join us as we lay the foundation for a greener, more resilient future. Together, we can address the scale-up challenge head-on and enable CDR technologies to realise their gigatonne-scale potential. The path ahead is bright, and with your support, Seoi.Cure CDR will spearhead the journey toward a sustainable world for all our successors."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"With hope and determination,"}),a.jsxs("div",{className:"leading-relaxed text-foreground font-medium pt-2",children:[a.jsx("p",{className:"font-display text-lg",children:"Lydia Chen"}),a.jsx("p",{className:"text-muted-foreground font-normal text-sm",children:"Founder, Seoi.Cure CDR"})]}),a.jsxs("div",{className:"mt-4 rounded-lg bg-muted/50 p-4 text-sm text-muted-foreground space-y-1",children:[a.jsxs("p",{children:[a.jsx("strong",{className:"text-foreground",children:"Written:"})," 8th April, 2024"]}),a.jsxs("p",{children:[a.jsx("strong",{className:"text-foreground",children:"Atmospheric CO₂ level:"})," 425.67 ppm"]}),a.jsxs("p",{children:[a.jsx("strong",{className:"text-foreground",children:"Atmospheric CO₂ level in 1841:"})," 283.70 ppm"]})]})]}),a.jsx(ne.div,{...Gl,className:"text-center",children:a.jsx(G,{asChild:!0,size:"lg",children:a.jsx(se,{to:"/contact",children:"Join This Mission"})})})]})]})]}),eA=[];function VH(e=eA){return e.filter(t=>t.status==="approved"&&t.engagementType==="paid"&&t.permissionConfirmed===!0)}const UH=({entries:e,className:t=""})=>{const r=VH(e??eA);return r.length===0?null:a.jsx("section",{className:`bg-background py-16 md:py-20 ${t}`,"aria-labelledby":"mrn-proof-heading",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Proof in practice"}),a.jsx("h2",{id:"mrn-proof-heading",className:"mt-2 font-display text-3xl font-bold text-foreground md:text-4xl",children:"Market-Ready Narrative work"}),a.jsx("ul",{className:"mt-10 grid gap-6 md:grid-cols-2",children:r.map(n=>a.jsxs("li",{className:"glass-card flex h-full flex-col p-6 md:p-8",children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.15em] text-accent",children:n.attribution==="named"&&n.clientName?n.clientName:"Confidential engagement"}),a.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:n.context}),n.workCompleted.length>0&&a.jsx("ul",{className:"mt-4 space-y-1.5 text-sm text-foreground",children:n.workCompleted.map(s=>a.jsxs("li",{className:"flex gap-2",children:[a.jsx("span",{className:"mt-2 h-1 w-1 shrink-0 rounded-full bg-accent","aria-hidden":"true"}),s]},s))}),n.approvedArtifact&&a.jsxs("figure",{className:"mt-5 overflow-hidden rounded-xl border border-border/60",children:[a.jsx("img",{src:n.approvedArtifact.image,alt:n.approvedArtifact.alt,loading:"lazy",className:"h-auto w-full object-cover"}),a.jsx("figcaption",{className:"px-4 py-2 text-xs text-muted-foreground",children:n.approvedArtifact.href?a.jsx("a",{href:n.approvedArtifact.href,className:"underline underline-offset-2 hover:text-accent",children:n.approvedArtifact.label}):n.approvedArtifact.label})]}),n.outcome&&a.jsx("p",{className:"mt-5 text-sm leading-relaxed text-foreground",children:n.outcome}),n.quote&&a.jsxs("blockquote",{className:"mt-5 border-l-2 border-accent/50 pl-4 text-sm italic leading-relaxed text-muted-foreground",children:["“",n.quote,"”"]})]},n.id))})]})})},ug=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e}),WH=[{id:"market-ready-narrative",icon:Pd,eyebrow:"For technical climate companies",title:"Market-Ready Narrative",intro:"For technical climate companies whose value is difficult to explain. Clarify the story, audience, proof and materials needed for stronger market conversations.",outputs:["Positioning and audience clarity","Market-ready core narrative","Messaging architecture","Review of key presentation materials","Clear evidence and credibility gaps","Recommended next actions"],ctaLabel:"Discuss narrative work",ctaHref:"/contact?subject=Market-Ready%20Narrative"},{id:"financeability",icon:s2,eyebrow:"Climate-to-Credit review",title:"Climate-to-Credit / Financeability Review",intro:"A structured review of how a technical climate project is likely to be understood by capital providers, where evidence or structure is missing, and what needs to be addressed next.",outputs:["Commercial and financing narrative review","Evidence and documentation gaps","Revenue, contract and delivery questions","Risk-allocation and financeability observations","Priority actions for the next stage","Feedback on market-facing materials"],ctaLabel:"Discuss your project",ctaHref:"/contact?subject=Financeability",note:"This review is a diagnostic layer. Specialist technical, legal, regulatory and investment advice may be required separately."},{id:"crbc-partnerships",icon:Mv,eyebrow:"Convening & partnership",title:"CRBC Partnerships & Curated Rooms",intro:"Partner with small, carefully designed rooms that create useful conversations across climate technology, finance and market building.",outputs:["Venue and hospital
523ity partnership","Knowledge and speaker partnership","Sponsor / underwriting partnership","City and community partnership"],ctaLabel:"Explore CRBC partnerships",ctaHref:"/carbon-removal-breakfast-club#partner"}],HH=()=>(p.useEffect(()=>{const e=window.location.hash.slice(1);if(e){const t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView({behavior:"smooth",block:"start"}),80)}},[]),a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Three ways to make a climate opportunity easier to understand, finance and support.",subtitle:"Seoi.Cure helps technical climate companies become more legible to markets, more credible to capital, and better connected to the right rooms."}),a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[12%] right-[8%] w-[500px] h-[500px] rounded-full opacity-[0.08] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 65%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[55%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(176 44% 55%), transparent 70%)"}})]}),a.jsx(Oe,{}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16 md:py-20",children:[a.jsx("div",{className:"grid gap-8 md:grid-cols-3",children:WH.map((e,t)=>a.jsx(ug,{delay:t*.1,children:a.jsxs("a",{id:e.id,href:e.ctaHref,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"group flex h-full flex-col glass-card p-6 transition-all hover:shadow-xl hover:shadow-accent/10 scroll-mt-24 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:[a.jsx("div",{className:"inline-flex rounded-xl bg-accent/10 p-3 w-fit",children:a.jsx(e.icon,{className:"h-6 w-6 text-accent"})}),a.jsx("span",{className:"mt-4 text-xs font-semibold uppercase tracking-[0.15em] text-accent",children:e.eyebrow}),a.jsx("h2",{className:"mt-1 font-display text-xl font-semibold text-foreground leading-snug",children:e.title}),a.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:e.intro}),a.jsx("ul",{className:"mt-4 space-y-1.5 text-xs text-muted-foreground",children:e.outputs.map(r=>a.jsxs("li",{className:"flex gap-2",children:[a.jsx("span",{className:"mt-1.5 h-1 w-1 rounded-full bg-accent shrink-0","aria-hidden":"true"}),a.jsx("span",{children:r})]},r))}),e.note&&a.jsx("p",{className:"mt-4 text-xs italic text-muted-foreground/80 leading-relaxed",children:e.note}),a.jsxs("span",{className:"mt-6 inline-flex items-center text-sm font-medium text-accent group-hover:underline",children:[e.ctaLabel," ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})]})},e.id))}),a.jsx(ug,{delay:.3,children:a.jsx("div",{className:"mt-14 rounded-2xl border border-border/60 bg-secondary/30 p-6 md:p-8",children:a.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(v3,{className:"h-5 w-5 text-accent"}),a.jsx("h3",{className:"font-display text-lg font-semibold text-foreground",children:"Free resource: Carbon Removal Readiness Tool"})]}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground max-w-2xl leading-relaxed",children:"A short self-assessment specifically for carbon removal projects preparing to approach institutional capital. Complements, but does not replace, a full financeability review."})]}),a.jsx(G,{asChild:!0,variant:"outline",className:"shrink-0",children:a.jsx(se,{to:"/services/readiness-tool",children:"Take the assessment"})})]})})}),a.jsx(ug,{delay:.4,children:a.jsxs("div",{className:"mt-14 mx-auto max-w-2xl glass-card p-8 border-accent/20 text-center",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"What this looks like in practice"}),a.jsx("h3",{className:"mt-2 font-display text-xl font-semibold text-foreground",children:"Enhanced rock weathering, on the Global ABS 2026 Spotlight Stage"}),a.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:"Lydia Chen and Jim Mann of UNDO walk through the diagnostic layers that turn an emerging climate asset into something structured capital can understand — live from Barcelona."}),a.jsx(G,{asChild:!0,className:"mt-5 rounded-full",variant:"accent",children:a.jsxs(se,{to:"/research#global-abs-2026",children:["See the Global ABS 202
5236 proof ",a.jsx(qe,{className:"ml-2 h-4 w-4"})]})})]})})]}),a.jsx(UH,{})]}));var Hb="Progress",qb=100,[qH,wse]=Xt(Hb),[GH,KH]=qH(Hb),tA=p.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=YH,...o}=e;(s||s===0)&&!Hj(s)&&console.error(JH(`${s}`,"Progress"));const l=Hj(s)?s:qb;n!==null&&!qj(n,l)&&console.error(ZH(`${n}`,"Progress"));const c=qj(n,l)?n:null,d=vf(c)?i(c,l):void 0;return a.jsx(GH,{scope:r,value:c,max:l,children:a.jsx(me.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":vf(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":sA(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});tA.displayName=Hb;var rA="ProgressIndicator",nA=p.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,s=KH(rA,r);return a.jsx(me.div,{"data-state":sA(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:t})});nA.displayName=rA;function YH(e,t){return`${Math.round(e/t*100)}%`}function sA(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vf(e){return typeof e=="number"}function Hj(e){return vf(e)&&!isNaN(e)&&e>0}function qj(e,t){return vf(e)&&!isNaN(e)&&e<=t&&e>=0}function JH(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${qb}\`.`}function ZH(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
524  - a positive number
525  - less than the value passed to \`max\` (or ${qb} if no \`max\` prop is set)
526  - \`null\` or \`undefined\` if the progress is indeterminate.
527
528Defaulting to \`null\`.`}var aA=tA,XH=nA;const Gb=p.forwardRef(({className:e,value:t,...r},n)=>a.jsx(aA,{ref:n,className:Z("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:a.jsx(XH,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Gb.displayName=aA.displayName;const Js=[{id:"stage",question:"What stage is your decarbonization project?",options:[{label:"Concept / Pre-feasibility",score:1},{label:"Pilot / Demonstration",score:2},{label:"First commercial deployment",score:3},{label:"Scaling / Repeat deployment",score:4}]},{id:"technology",question:"What is your primary technology area?",options:[{label:"Biochar / Biomass",score:3},{label:"Enhanced Rock Weathering",score:2},{label:"Direct Air Capture",score:2},{label:"Nature-based / Blue Carbon",score:3}]},{id:"revenue",question:"Do you have a defined revenue model?",options:[{label:"No revenue model yet",score:1},{label:"Revenue model defined, no contracts",score:2},{label:"Letters of intent or MOUs in place",score:3},{label:"Signed off-take or purchase agreements",score:4}]},{id:"financial_model",question:"Do you have a financial model?",options:[{label:"No financial model",score:1},{label:"Basic spreadsheet / back-of-envelope",score:2},{label:"Detailed model, not externally reviewed",score:3},{label:"Audited or third-party validated model",score:4}]},{id:"funding",question:"What is your target funding range?",options:[{label:"Under $1M",score:2},{label:"$1M – $10M",score:3},{label:"$10M – $50M",score:3},{label:"Over $50M",score:4}]},{id:"carbon_credits",question:"Do you have a carbon credit methodology or certification?",options:[{label:"No methodology selected",score:1},{label:"Methodology identified, not applied",score:2},{label:"Application in progress",score:3},{label:"Certified / credits issued",score:4}]}],QH=(e,t)=>{const r=e/t;return r>=.75?{label:"Strong",color:"text-cupid",message:"Your carbon removal project shows strong fundamentals. A Climate-to-Credit / Financeability Review can identify where the evidence and structure still need work before capital-market conversations."}:r>=.5?{label:"Developing",color:"text-accent",message:"You have solid foundations but gaps that need addressing before approaching institutional capital. Start with a short financeability conversation to prioritize next steps."}:{label:"Early",color:"text-destructive",message:"Your project is at an early stage. Focus on building your revenue model, contract stack and delivery evidence. When ready, a financeability conversation can help sequence next steps."}},eq=()=>{const[e,t]=p.useState(0),[r,n]=p.useState({}),s=e===Js.length,i=e/Js.length*100,o=(u,h)=>{n(f=>({...f,[u]:h})),setTimeout(()=>t(f=>f+1),300)},l=Object.values(r).reduce((u,h)=>u+h,0),c=Js.length*4,d=QH(l,c);return a.jsxs(a.Fragment,{children:[a.jsxs("section",{className:"relative overflow-hidden ocean-gradient py-20",children:[a.jsx(pt,{variant:"dark"}),a.jsxs("div",{className:"container relative z-10 text-center",children:[a.jsx(ne.h1,{initial:{opacity:0,y:20}
528,animate:{opacity:1,y:0},className:"font-display text-4xl font-bold text-background md:text-5xl dark:text-foreground",children:"Carbon Removal Readiness Tool"}),a.jsx("p",{className:"mx-auto mt-4 max-w-xl text-background/70 dark:text-muted-foreground",children:"A short self-assessment for carbon removal projects. Focused on CDR, not a universal climate-tech scorecard. Under 3 minutes."})]})]}),a.jsx(Oe,{className:"-mt-1"}),a.jsxs("section",{className:"relative overflow-hidden py-20",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 mx-auto max-w-2xl",children:[a.jsx(Gb,{value:i,className:"mb-8 h-2"}),a.jsx(Fd,{mode:"wait",children:s?a.jsxs(ne.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"glass-card p-10 text-center",children:[a.jsx(f3,{className:"mx-auto h-12 w-12 text-accent"}),a.jsxs("h2",{className:"mt-4 font-display text-3xl font-bold text-foreground",children:["Your Readiness: ",a.jsx("span",{className:d.color,children:d.label})]}),a.jsxs("p",{className:"mt-2 text-lg text-muted-foreground",children:["Score: ",l," / ",c]}),a.jsx("p",{className:"mx-auto mt-6 max-w-lg leading-relaxed text-muted-foreground",children:d.message}),a.jsxs("div",{className:"mt-8 flex flex-col items-center gap-4 sm:flex-row sm:justify-center",children:[a.jsx(G,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-md shadow-accent/20",children:a.jsx(se,{to:"/contact?subject=Financeability",children:"Discuss your financeability questions"})}),a.jsx(G,{variant:"outline",onClick:()=>{t(0),n({})},children:"Retake Assessment"})]})]},"result"):a.jsxs(ne.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.3},children:[a.jsxs("p",{className:"mb-2 text-sm text-muted-foreground",children:["Question ",e+1," of ",Js.length]}),a.jsx("h2",{className:"font-display text-xl font-semibold text-foreground md:text-2xl",children:Js[e].question}),a.jsx("div",{className:"mt-6 grid gap-3",children:Js[e].options.map(u=>a.jsx("button",{onClick:()=>o(Js[e].id,u.score),className:`glass-card p-4 text-left text-sm font-medium transition-all hover:shadow-lg hover:shadow-accent/10 hover:border-accent/30 ${r[Js[e].id]===u.score?"!border-accent/40 !bg-accent/5":""}`,children:u.label},u.label))}),e>0&&a.jsxs(G,{variant:"ghost",className:"mt-4",onClick:()=>t(u=>u-1),children:[a.jsx(Yc,{className:"mr-1 h-4 w-4"})," Back"]})]},e)})]})]})]})},tq=["Commercial and financing narrative review","Evidence and documentation gaps","Revenue, contract and delivery questions","Risk-allocation and financeability observations","Priority actions for the next stage","Feedback on market-facing materials"],rq=()=>a.jsxs(a.Fragment,{children:[a.jsxs("section",{className:"relative overflow-hidden ocean-gradient py-20",children:[a.jsx(pt,{variant:"dark"}),a.jsxs("div",{className:"container relative z-10 text-center",children:[a.jsx(ne.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"font-display text-4xl font-bold text-primary-foreground md:text-5xl",children:"Climate-to-Credit / Financeability Review"}),a.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-primary-foreground",children:"A structured review of how a technical climate project is likely to be understood by capital providers, where evidence or structure is missing, and what needs to be addressed next."})]})]}),a.jsx(Oe,{className:"-mt-1"}),a.jsxs("section",{className:"relative overflow-hidden py-20",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl",children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground",children:"What the review covers"}),a.jsx("p",{className:"mt-3 text-muted-foreground leading-relaxed",children:"Each engagement is scoped to the project and produces a written diagnostic focused on how the story, evidence and structure of the project would be read by capital providers."}),a.jsx("div",{className:"mt-8 grid gap-3 sm:grid-cols-2",children:tq.map(e=>a.jsxs("div",{className:"glass-card flex items-start gap-3 p-4",children:[a.jsx(g3,{className:"mt-0.5 h-5 w-5 shrink-0 text-accent"}),a.jsx("span",{className:"text-sm text-foreground",children:e})]},e))}),a.jsx("div",{className:"mt-10 rounded-xl border border-border/60 bg-secondary/30 p-5",children:a.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:[a.jsx("strong",{className:"text-foreground",children:"Scope note."})," This is a bounded financeability diagnostic. It is not a substitute for independent legal, technical, regulatory, permitting or investment due diligence, which specialist advisors typically provide separately. Seoi.Cure does not guarantee introductions, fundraising or investment outcomes."]})}),a.jsxs("div",{className:"mt-10 glass-card p-8 text-center border-accent/20",children:[a.jsx("h3",{className:"font-display text-xl font-semibold text-foreground",children:"Next step"}),a.jsx("p",{className:"mt-2 text-muted-foreground leading-relaxed",children:"Engagements are scoped and priced based on project complexity, technology type, and timeline. Start with a short conversation about your project."}),a.jsxs("div",{className:"mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[a.jsx(G,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-md shadow-accent/20",children:a.jsx(se,{to:"/contact?subject=Financeability",children:"Discuss your project"})}),a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx(se,{to:"/services",children:"Back to all services"})})]})]})]})]})]}),nq="/assets/securitization-flow-l_HRAx-C.png",Kl=[{icon:Od,tag:"Step 1",title:"CDR Developers & Brokers",body:"Multiple carbon removal developers—across biochar, enhanced rock weathering, direct air capture, and ocean alkalinity—contribute contract cash flows. Each project carries its own credit profile and risk characteristics.",color:"text-accent",bg:"bg-accent/10"},{icon:a2,tag:"Step 2",title:"Seoi.Cure Aggregation",body:"Seoi.Cure pools these diverse cash flows into a single structured vehicle, applying rigorous underwriting, credit enhancement, and waterfall mechanics to create high-quality, investment-grade contractual cash flows.",color:"text-cupid",bg:"bg-cupid/10"},{icon:d2,tag:"Step 3",title:"Debt Investors Receive",body:"A brand-new asset class with diversified risk, loss protection through tranching, a pricing premium over traditional fixed income, and real, measurable climate impact—all in a format institutional investors already understand.",color:"text-accent",bg:"bg-accent/10"}],sq=()=>{const[e,t]=p.useState(0),r=()=>t(i=>i>0?i-1:Kl.length-1),n=()=>t(i=>i<Kl.length-1?i+1:0),s=Kl[e];return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"glass-card overflow-hidden border-accent/20 min-h-[260px] relative",children:[a.jsx(Fd,{mode:"wait",children:a.jsxs(ne.div,{initial:{opacity:0,x:40}
528,animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.35},className:"p-8 md:p-10",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:`inline-flex rounded-xl ${s.bg} p-3`,children:a.jsx(s.icon,{className:`h-6 w-6 ${s.color}`})}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:s.tag})]}),a.jsx("h3",{className:"font-display text-xl font-bold text-foreground md:text-2xl",children:s.title}),a.jsx("p",{className:"mt-3 leading-relaxed text-muted-foreground max-w-xl",children:s.body})]},e)}),a.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2",children:Kl.map((i,o)=>a.jsx("button",{onClick:()=>t(o),className:`h-2 rounded-full transition-all ${o===e?"w-6 bg-accent":"w-2 bg-border"}`,"aria-label":`Go to step ${o+1}`},o))})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs(G,{variant:"outline",size:"sm",onClick:r,className:"gap-1",children:[a.jsx(Yc,{className:"h-4 w-4"})," Previous"]}),a.jsxs("span",{className:"text-sm text-muted-foreground",children:[e+1," / ",Kl.length]}),a.jsxs(G,{variant:"outline",size:"sm",onClick:n,className:"gap-1",children:["Next ",a.jsx(qe,{className:"h-4 w-4"})]})]}),a.jsxs("details",{className:"text-sm text-muted-foreground",children:[a.jsx("summary",{className:"cursor-pointer text-accent hover:underline",children:"View full diagram"}),a.jsx("img",{src:nq,alt:"Infographic showing CDR developers contributing cash flows, Seoi.Cure aggregating them, and debt investors receiving a new asset class with diversified risk",className:"mt-4 w-full rounded-lg",loading:"lazy"})]})]})},aq=[{icon:j3,label:"Grab",desc:"Identify and aggregate high-quality carbon removal credits from diverse project types."},{icon:a2,label:"Stack",desc:"Pool credits into a structured portfolio with layered risk tranches for different investor appetites."},{icon:rm,label:"Lock",desc:"Secure cashflows through credit enhancement, performance triggers and legal ring-fencing."},{icon:L3,label:"Scale",desc:"Issue rated securities that institutional investors can buy—unlocking billions for decarbonization."}],iq=()=>a.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:aq.map((e,t)=>a.jsxs(ne.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.12,duration:.5},className:"glass-card-wave p-6 text-center",children:[a.jsx("div",{className:"mx-auto inline-flex rounded-xl bg-accent/10 p-3",children:a.jsx(e.icon,{className:"h-7 w-7 text-accent"})}),a.jsx("h3",{className:"mt-4 font-display text-lg font-bold text-foreground",children:e.label}),a.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:e.desc})]},e.label))}),oq="14 July 2026",lq="USD figures are approximate presentation conversions at £1 = US$1.3378 on 14 July 2026; the audited source-of-truth remains GBP.",vx={"core-cdr":"Core CDR","cdr-enabling":"CDR enabling",adjacent:"Adjacent climate tech"},cq={"core-cdr":"Companies whose primary product is measurable carbon removal.","cdr-enabling":"Direct enabling technologies, MRV and inputs for CDR.",adjacent:"Wider climate technology conversations from the archive."},dq=["Publicly announced equity and grants","Deduplicated by company and transaction","Selection signal, not causation",`Updated ${oq}`],Yl={coreCDR:{key:"coreCDR",label:"Core carbon-removal companies",gbp:"£60m+",usd:"≈US$80m+",scope:"Core carbon-removal companies represented in BSCT episodes.",companies:["Mission Zero","UNDO","Brineworks","Lithos","Vycarb","Octavia Carbon","Parallel Carbon","Planboo","CURA Climate"],companiesNote:"Metalplant may be included as a recorded event-special guest without changing the rounded claim.",geography:"Verified minimum geography: at least five countries across three continents — United Kingdom, United States, Kenya, Netherlands and Canada."},cdrPlusEnabling:{key:"cdrPlusEnabling",label:"CDR companies and direct enabling technologies",gbp:"£85m+",usd:"≈US$115m",scope:"Core CDR companies plus direct enabling technologies covered in the series.",companies:["Endolith","[C]Worthy","Ki Hydrogen","A&B Smart Materials","NORMA","Hourglass Climate","ProBioSphere"],companiesNote:"Direct enabling scope in addition to the Core CDR list."},fullSeries:{key:"fullSeries",label:"Across the wider Bite-Size Climate Tech archive",gbp:"£275m+",usd:"≈US$370m",scope:"Full-series context across every Bite-Size Climate Tech guest. Not a CDR-only total."}},uq={RwZkCvS3VcI:"core-cdr",nZ8szrjprRk:"core-cdr",A4ojq4hn3X4:"core-cdr",Wzgb5R8uZlU:"core-cdr","23cERI1Zk5I":"core-cdr",fgRmkiw68rk:"core-cdr",YjoUsq8gZlA:"core-cdr","B3-BLX76jJE":"core-cdr",bOOh98bdn8o:"cdr-enabling","lWk-fagdkKk":"cdr-enabling","GZ7lC9EN-kg":"adjacent","vIrLMPGr7-k":"adjacent",GUZxO5TgsUw:"adjacent",rud8RWCaKH4:"adjacent","Fr36M9jdR-8":"adjacent",nkIxyyOU0a4:"adjacent","wkYmSN6i-9Y":"adjacent",j0z1zGHEdiU:"adjacent",dQSaYPg_Gho:"adjacent","6k45fX5ZYu8":"adjacent",cLymNfq22EE:"adjacent",q6R7ADGTAT4:"adjacent"},Gj="https://www.youtube.com/@BiteSizeClimateTech",hg=({extra:e})=>a.jsxs("details",{className:"group mt-4 text-xs text-muted-foreground",children:[a.jsxs("summary",{"aria-label":"Methodology and notes",className:"cursor-pointer list-none font-medium text-accent underline-offset-4 hover:underline",children:["Methodology",a.jsx("span",{className:"ml-1 inline-block transition-transform group-open:rotate-90",children:"›"})]}),a.jsx("ul",{className:"mt-2 space-y-1 leading-relaxed",children:dq.map(t=>a.jsxs("li",{children:["• ",t]},t))}),a.jsx("p",{className:"mt-2 leading-relaxed",children:lq}),e&&a.jsx("p",{className:"mt-2 leading-relaxed",children:e})]}),iA=({variant:e="hero"})=>{if(e==="compact"){const s=Yl.coreCDR,i=Yl.fullSeries;return a.jsx("div",{className:"glass-card p-6 md:p-7 border-accent/20",children:a.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[a.jsxs("div",{className:"max-w-xl",children:[a.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-accent",children:"CDR field intelligence · primary metric"}),a.jsxs("p",{className:"mt-2 font-display text-2xl md:text-3xl font-bold text-foreground",children:[s.gbp," ",a.jsx("span",{className:"text-muted-foreground text-lg font-normal",children:s.usd})]}),a.jsxs("p",{className:"mt-1 text-sm text-muted-foreground leading-relaxed",children:["Publicly announced equity and grants across"," ",s.companies.length," core carbon-removal companies represented in BSCT episodes. ",s.geography]}),a.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Wider-archive context: ",i.gbp," / ",i.usd," across every BSCT guest — not a CDR-only total."]}),a.jsx(hg,{extra:s.companiesNote})]}),a.jsxs(se,{to:"/bite-size-climate-tech",className:"inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",children:["See the CDR field notes ",a.jsx(qe,{className:"h-4 w-4"})]})]})})}const t=Yl.coreCDR,r=Yl.cdrPlusEnabling,n=Yl.fullSeries;return a.jsxs("div",{className:"grid gap-5 md:grid-cols-5",children:[a.jsxs("div",{className:"md:col-span-3 glass-card p-7 md:p-8 border-accent/30 shadow-md shadow-accent/5",children:[a.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-accent",children:"Primary metric · Core CDR"}),a.jsx("p",{className:"mt-3 font-display text-4xl md:text-5xl font-bold text-foreground",children:t.gbp}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t.usd}),a.jsxs("p",{className:"mt-4 text-sm text-foreground leading-relaxed",children:["Publicly announced equity and grants across"," ",a.jsx("strong",{className:"font-semibold",children:t.companies.length}
528)," ","core carbon-removal companies represented in BSCT episodes."]}),a.jsxs("p",{className:"mt-3 text-xs text-muted-foreground leading-relaxed",children:[t.companies.join(" · "),"."]}),a.jsx("p",{className:"mt-3 text-xs text-muted-foreground leading-relaxed",children:t.geography}),a.jsx(hg,{extra:t.companiesNote})]}),a.jsxs("div",{className:"md:col-span-2 glass-card p-6 flex flex-col",children:[a.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-accent",children:"Secondary · with direct enabling tech"}),a.jsx("p",{className:"mt-3 font-display text-2xl md:text-3xl font-bold text-foreground",children:r.gbp}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:r.usd}),a.jsxs("p",{className:"mt-3 text-sm text-muted-foreground leading-relaxed flex-1",children:[r.label,". Adds ",r.companies.length," direct enabling companies to the Core CDR list."]}),a.jsxs("p",{className:"mt-2 text-xs text-muted-foreground leading-relaxed",children:[r.companies.join(" · "),"."]}),a.jsx(hg,{}),a.jsxs("div",{className:"mt-5 border-t border-border pt-4",children:[a.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:"Wider-archive context"}),a.jsxs("p",{className:"mt-1 text-sm text-foreground",children:[a.jsx("strong",{className:"font-semibold",children:n.gbp})," ",a.jsxs("span",{className:"text-muted-foreground",children:["/ ",n.usd]})," ",a.jsxs("span",{className:"text-muted-foreground",children:["— ",n.label.toLowerCase(),". Not a CDR-only total."]})]})]})]})]})},Ec=[{number:1,slug:"whats-securitization",title:"What's Securitization?",summary:"An introduction to securitization — how future cash flows are transformed into upfront capital through pooling, isolation, and channelling.",author:"Lydia Chen",date:"July 20, 2024",linkedinUrl:"https://www.linkedin.com/pulse/securitization-saturday-whats-seoicurecdr-ukkje/",sections:[{type:"prose",html:"Summer is a time to recharge and reflect. At Seoi.Cure CDR, with our commitment to bringing liquidity to the market and our proud element of water, there's no better time to start a series on securitization. Welcome to our first issue of <strong>Securitization Saturday</strong>!"},{type:"prose",html:`The first question many people often ask is, "what's securitization?"`},{type:"blockquote",text:"Securitization, structured products, structured credit, and ABS all refer to roughly the same thing: debt secured primarily by pools of contractual obligations to pay.",cite:"The ABCs of Asset-Backed Securities, Guggenheim"},{type:"prose",html:"We couldn't give a better explanation than Guggenheim. In simpler terms, if you have a consistent stream of income from any contractual obligation (like loans or leases), you can use securitization to transform these future cash flows into upfront capital in a form of a loan."},{type:"heading",level:2,id:"examples-of-common-securitization-assets",text:"Examples of Common Securitization Assets"},{type:"list",items:["<strong>Consumer ABS:</strong> Backed by personal financial assets such as student loans, credit card receivables, and auto loans.","<strong>Commercial ABS (sometimes called Esoteric ABS):</strong> Constructed from pools of receivables, loans, or leases on commercial assets such as shipping containers, data centers, and aircraft. This also includes collateralized loan obligations (CLOs) backed by corporate bank debt or even private-equity backed securitization, known as Collateralized Fund Obligations."]},{type:"prose",html:"(They can even securitize sports personalities, I know, fascinating right!)"},{type:"prose",html:"<strong>It's genuinely fascinating how people can structure cashflows into tranches, matching different investors' risk tolerances, and in a way, generating the best capital structure for a pool of assets.</strong>"},{type:"heading",level:2,id:"key-features-of-securitization",text:"Key Features of Securitization"},{type:"callout-cards",cards:[{icon:"🔗",title:"Pooling",desc:"Aggregation of multiple cash flows. Diversifies risk for investors."},{icon:"🛡️",title:"Isolation",desc:'Ensures cash flow reaches investors uninterrupted. Legal "True Sale" ensures assets are protected even if the original owner goes bankrupt.'},{icon:"💧",title:"Channelling",desc:"Directs cash generated by assets to repay investments. Can be structured as pass-through or tranched securities."}]},{type:"prose",html:"There's so much more detail to dive into, but let's just focus on isolation today. The pool of assets entitled to future cash flows is often transferred to an SPV (Special Purpose Vehicle). This SPV is ring-fenced from the company that owns the contract and often operates as an orphan SPV. Once transferred, the SPV holds the entitlement for all future cash flows and issues the structured notes."},{type:"prose",html:"The companies that originally owned the contractual cashflows will then only need to service these contracts, meaning they need to be active throughout the life of the contracts."},{type:"heading",level:2,id:"why-cdr",text:"Why CDR?"},{type:"prose",html:"💡 Phew, it's a lot to digest right? Let's pause here and see why Carbon Dioxide Removal (CDR
528) developers can potentially use this structure:"},{type:"callout-cards",cards:[{icon:"📈",title:"Stable Cash Flow",desc:"High-quality CDR developers often have long-term offtake agreements with investment-grade companies."},{icon:"💰",title:"Investment Opportunities",desc:"These agreements create predictable, multi-year cash flows, ideal for securitization."}]},{type:"prose",html:"Stay tuned for more insights in our upcoming “Securitization Saturday” posts! 📈🔗"}]},{number:2,slug:"what-can-be-securitized",title:"When Picasso Says 'I Will Back You Up' — What Can Be Securitized?",summary:"From fine art to music royalties — the surprising breadth of asset-backed finance and how it connects to carbon removal.",author:"Lydia Chen",date:"July 27, 2024",linkedinUrl:"https://www.linkedin.com/pulse/when-picasso-says-i-back-you-up-what-can-securitized-seoicurecdr-fai8e/",sections:[{type:"prose",html:"Welcome back to <strong>Securitization Saturday</strong>! Last week, we explored the basics of securitization and its key features. Today, let's dive into the core concept of <strong>contractual obligations to pay</strong> and discover the wide range of assets that can be securitized."},{type:"heading",level:2,id:"wait-a-minute-you-get-aaa-rating",text:"Wait a minute, you get AAA rating."},{type:"prose",html:"Artwork and auctions are luxury and fancy stuff, but what happens when auction house Sotheby's meets financial engineering? In April this year, Sotheby's debuted its first art-loan-backed securitization, launching an innovative $700 million art-backed debt instrument."},{type:"prose",html:"The Sotheby's deal, known formally as <strong>Sotheby's ArtFi Master Trust</strong>, includes 89 loans that are secured by 2,484 works of fine art and collectibles worth $2.8 billion, featuring pieces by Rembrandt, Warhol, and Picasso."},{type:"stat-panel",stats:[{value:"$700M",label:"Art-backed debt instrument"},{value:"2,484",label:"Works of fine art & collectibles"},{value:"$2.8B",label:"Total collateral value"},{value:"AAA",label:"Senior tranche rating (DBRA)"}]},{type:"heading",level:2,id:"contractual-obligations-to-pay-the-heart-of-securitization",text:"Contractual Obligations to Pay: The Heart of Securitization"},{type:"prose",html:"At its essence, securitization revolves around transforming pools of contractual obligations to pay into tradable financial instruments. This process channels future income streams into upfront capital, providing liquidity and risk diversification. But what kinds of assets fit into this category? Let's explore:"},{type:"prose",html:"Just as there are so many different flavors and shades in carbon removal pathways, you can group them into nature-based and engineered or conventional and n
528ovel. In the world of securitization, there are also many ways to categorize it."},{type:"prose",html:"<em>Note: Even though most of the people first come across asset-backed securities as mortgage-backed securities and yes real estate-related securitized credit are types of ABS but usually will be grouped into their own due to the investment considerations.</em>"},{type:"prose",html:"Outside of this, the industry separates the assets into:"},{type:"heading",level:3,id:"consumer-abs",text:"1. Consumer ABS"},{type:"prose",html:"These are backed by personal financial assets. Here are some common examples:"},{type:"list",items:["<strong>Credit Card Receivables:</strong> Future payments made by cardholders.","<strong>Auto Loans and Leases:</strong> Payments from individuals for auto loans or leases.","<strong>Student Loans:</strong> Payments from borrowers repaying their student loans.","<strong>Timeshare Contracts:</strong> Payments from timeshare property owners.","<strong>Residential Solar Agreements:</strong> Payments from solar power purchase agreements and equipment loans."]},{type:"heading",level:3,id:"commercial-esoteric-abs",text:"2. Commercial / Esoteric ABS"},{type:"prose",html:"These are backed by commercial assets and often include more unique or non-traditional assets:"},{type:"list",items:["<strong>Marketplace Lending:</strong> Payments from unsecured consumer loans facilitated by online lenders.","<strong>Equipment Leases:</strong> Payments from leases on equipment like machinery or IT equipment.","<strong>Aircraft Leases:</strong> Payments from leasing aircraft to airlines.","<strong>Shipping Container Leases:</strong> Payments from leasing containers to shipping companies.","<strong>Franchise Agreements:</strong> Payments from franchisees to franchisors.","<strong>Royalties and Licensing Agreements:</strong> Payments from intellectual property agreements, like patents and trademarks."]},{type:"heading",level:2,id:"innovation-in-securitizations",text:"Innovation in Securitizations"},{type:"prose",html:"Recently, there have been innovative deals that securitize less conventional assets. For example:"},{type:"callout-cards",cards:[{icon:"🎨",title:"Artworks",desc:"Art-backed securities have also emerged, allowing investors to invest in high-value artworks and earn returns from their appreciation and sale. The Sotheby's ArtFi Master Trust deal is a recent example of this trend."},{icon:"🎵",title:"Music Royalties & Esoteric Assets",desc:"The trend extends to other unique assets like music royalties, sports broadcasting revenues, and even loans tied to yachts and jets. These types of securitizations show the versatility and creativity in the finance industry to monetize various streams of income."}]},{type:"prose",html:"Securitization continues to evolve, demonstrating its versatility and capacity to adapt to new asset classes."},{type:"heading",level:2,id:"connecting-to-cdr",text:"Connecting to CDR"},{type:"prose",html:`You see where we are getting at here? This hip concept "First-of-a-Kind" might seem new and novel in climate tech or in CDR (carbon removal dioxide, not to be confused with 'credit default risk'), it's not a new thing for securitization and people have never been shy away from providing a solution.`},{type:"prose",html:"Connecting this to Carbon Dioxide Removal (CDR), the concept of pooling multiple income streams into a single securitized instrument can help scale high-quality CDR projects. These projects, often backed by long-term offtake agreements with investment-grade companies, can benefit from the upfront capital generated through securitization."},{type:"prose",html:"Next week, we'll explore another characteristic of securitization: <strong>pooling</strong>. How can we, as an industry, get the attention of a sector used to innovating billion-dollar deals rather than tens of millions? Stay tuned to find out!"},{type:"heading",level:3,id:"sources-2",text:"Sources"},{type:"list",items:[`<a href="https://www.ft.com/content/e846c5c7-0bee-4c37-ba69-14f57b91dad4" target="_blank" rel="noopener noreferrer">FT — Sotheby's art‑backed bond</a>`,`<a href="https://www.reuters.com/breakingviews/sothebys-next-hot-auction-picasso-backed-bond-2024-04-11/" target="_blank" rel="noopener noreferrer">Reuters — Sotheby's Picasso‑backed bond</a>`,'<a href="https://www.addleshawgoddard.com/en/insights/insights-briefings/2024/finance/bringing-investment-creativity-art-world-art-securitisation-what-how-why/" target="_blank" rel="noopener noreferrer">Addleshaw Goddard — Art securitisation</a>']}]},{number:3,slug:"transform-the-impossibles",title:"Transform the Impossibles — Pooling",summary:"How pooling aggregates smaller cash flows into diversified, investable pools — the backbone of securitization.",author:"Lydia Chen",date:"August 3, 2024",linkedinUrl:"https://www.linkedin.com/pulse/securitization-saturday-transform-impossibles-seoicurecdr-zn5ue/",sections:[{type:"blockquote",text:"The whole is greater than the sum of its parts.",cite:"Aristotle"},{type:"prose",html:"Welcome back to <strong>Securitization Saturday</strong>! In our last session, we delved into the fascinating world of various asset types that can be securitized. Today, we're going to explore the essential concept of <strong>pooling</strong>, a fundamental mechanism in the securitization process."},{type:"heading",level:2,id:"pooling-the-backbone-of-securitization",text:"Pooling: The Backbone of Securitization"},{type:"prose",html:"Pooling is the aggregation of various cash flows, such as auto loans, aircraft leases, or credit card receivables, into a single pool. This pool forms the collateral for asset-backed securities (ABS), providing a diversified investment option. By pooling these assets, we can transform future cash flows into upfront capital, distributing risk across multiple investors."},{type:"prose",html:"This structure allows for risk diversification, as each security represents a share of the entire pool, rather than a single loan or receivable."},{type:"prose",html:"Just as what we shared last week, the Sotheby's deal (Sotheby's ArtFi Master Trust), includes 89 loans that are secured by 2,484 works of fine art and collectibles worth $2.8 billion, featuring pieces by Rembrandt, Warhol, and Picasso."},{type:"image",src:"/images/pooling-artfi-2024-1.webp",alt:"Distribution of fine art and collectibles in ArtFi 2024-1, showing breakdown by artist including Rembrandt, Warhol, Picasso, Basquiat, and Kahlo",caption:"Distribution of fine art and collectibles in ArtFi 2024-1"},{type:"prose",html:'While art finance might seem esoteric, most securitizations are much more familiar, often described as "vanilla." "Vanilla" asset classes in securitization refer to straightforward, commonly understood, and relatively simple financial products.'},{type:"prose",html:"For instance, if an investor is exposed to a single project loan or SME loan, they risk total loss if the project defaults. However, by investing in a pool of 100 project loans, the impact of a single default is reduced, from 1 out of 1 to 1 out of 100, thus spreading and reducing overall risk. This principle is particularly valuable in investments like project or SME loans, where pooling significantly lowers risk exposure."},{type:"prose",html:"One of the other most well-known applications of pooling is in the creation of Mortgage-Backed Securities (MBS). Here, individual mortgage loans are pooled together, allowing investors to purchase securities backed by the aggregate cash flows from these loans. This method has been used for decades and serves as a cornerstone of the securitization market."},{type:"prose",html:"Moreover, pooling can enhance the pricing and yield conditions for the securities issued, depending on the credit quality of the pooled assets."},{type:"heading",level:3,id:"recap-pooling",text:"Let's recap, what does Pooling do for securitization:"},{type:"callout-cards",cards:[{icon:"📦",title:"Scalability and Efficiency",desc:"Pooling allows the aggregation of smaller, individual assets into a larger pool, making it feasible to issue substantial, tradable securities. This scalability benefits both investors, who receive a diversified portfolio, and originators, who can offload a significant volume of assets."},{icon:"💧",title:"Cash Flow Stability",desc:"The combined cash flows from pooled assets create a more stable and predictable income stream, crucial for structuring different tranches with varying risk and return profiles."}]},{type:"heading",level:2,id:"extending-pooling-to-cdr-projects",text:"Extending Pooling to CDR Projects"},{type:"prose",html:'How does this apply to Carbon Dioxide Removal (CDR
528) projects? CDR developers often enter into offtake agreements, receiving periodic payments from large corporations in exchange for carbon removals. Individually, these payments might seem small (though "small" is relative). However, by pooling various CDR offtake agreements, we can create a larger, more appealing asset for investors.'},{type:"prose",html:"The combined cash flows from long-term offtake agreements with investment-grade companies provide a stable income stream, making the securitized asset more appealing."},{type:"prose",html:"Pooling is not just a technical aspect; it's the crucial concept that allows securitization to be a versatile and powerful financial tool. Whether it's transforming mortgages, art loans, or CDR projects into tradable securities, pooling plays a crucial role in making these transactions possible."},{type:"blockquote",text:"Individually, we are one drop. Together, we are an ocean.",cite:"Ryunosuke Satoro"},{type:"prose",html:"Just as many drops are needed to form an ocean, the collective power of pooling individual contractual cash flows from multiple CDR developers can bring greater benefits."},{type:"prose",html:"Next week, we'll delve into the different <strong>tranches</strong> within a securitization deal and explore how they cater to various investor profiles."},{type:"heading",level:3,id:"source-3",text:"Source"},{type:"list",items:['<a href="https://www.apsa-asia.com/files/pdf/publications/The_Report_English.pdf" target="_blank" rel="noopener noreferrer">APSA Asia — The Report (Ch. 3)</a>']}]},{number:4,slug:"how-tranching-works",title:"From Filet to Ground Beef — How Tranching Tailors Risk",summary:"Risk slicing explained — why tranching is the magic that makes securitization work for different investors.",author:"Lydia Chen",date:"August 10, 2024",linkedinUrl:"https://www.linkedin.com/pulse/securitization-saturday-from-filet-ground-beef-how-tranching-w1tme/",sections:[{type:"prose",html:"<strong>Welcome back to Securitization Saturday!</strong> Last week, we explored the concept of pooling, where multiple cash flows are combined to create a diversified and robust securitized asset. This week, we're diving into the concept of <strong>tranching</strong>—a technique that allows the debt issued from a single pool of assets to be divided into different layers, each catering to a specific risk tolerance."},{type:"heading",level:2,id:"anecdote-a-chef-s-take-on-tranching",text:"Anecdote: A Chef's Take on Tranching"},{type:"prose",html:'A mentor of mine once described tranching in securitization in a rather vivid way: "Imagine a chef who buys an entire cow. Instead of selling it as a whole, the chef carefully butchers it into different cuts—each tailored for different customers. Some prefer the premium filet mignon, others might go for the ribeye, and some are fine with ground beef. Each cut appeals to a different appetite and price point, just like tranches in a securitization deal cater to different risk tolerances and return expectations."'},{type:"heading",level:2,id:"what-is-tranching",text:"What is Tranching?"},{type:"prose",html:"<strong>Tranching</strong> in securitization refers to the process of issuing multiple tranches, or classes of debt, from a single pool of assets. Each tranche is designed with specific characteristics that appeal to different types of investors, based on factors such as risk, rating, timing of repayment, and lien seniority on the collateral."},{type:"prose",html:"Here's how it works:"},{type:"callout-cards",cards:[{icon:"🥩",title:"Senior Tranches (The Filet Mignon)",desc:"These tranches are the most premium cuts. They are prioritized in receiving payments from the collateral, have higher credit ratings, and offer lower yields, making them the safest choice. Just like filet mignon is prized for its tenderness and quality, senior tranches are sought after for their security and predictability, appealing to conservative investors."},{icon:"🥩",title:"Junior Tranches (The Ribeye)",desc:"These tranches are still high-quality, but they carry more risk. They are paid after the senior tranches and absorb losses first if the underlying assets underperform. Like a ribeye, which has more marbling and flavor but also more fat, junior tranches offer higher yields in exchange for taking on more risk, making them attractive to investors with a bigger appetite for risk."},{icon:"🥩",title:"Equity Tranche (The Beef with the Potential for a Surprise)",desc:"At the bottom of the stack, you have the equity tranche, which absorbs the most risk and is the last to re
528ceive any payments. However, much like a lesser-known cut of beef that can be incredibly rewarding when cooked the right way, the equity tranche has the potential for the highest upside. This tranche is for those who are willing to take on the highest risk for the possibility of the greatest returns."}]},{type:"prose",html:'The <strong>waterfall</strong> structure in securitization determines the order in which these "cuts" are served, ensuring that the premium slices (senior tranches) are paid first, followed by the ribeye (junior tranches), and lastly, the equity tranche, which might be riskier but could provide a surprising and significant reward for those willing to take the chance.'},{type:"heading",level:2,id:"example-artfi-2024-1-deal",text:"Example: ARTFI 2024-1 Deal"},{type:"prose",html:"To illustrate how tranching works in practice, let's look at the capital structure of the <strong>ARTFI 2024-1</strong> deal:"},{type:"table",headers:["Class","Currency","Size (M)","WAL (Years)","Rating","Type","Benchmark","Spread (bps)","Coupon","Yield","Price"],rows:[["A‑1","USD","453.300","1.91","AAA","Fixed","I‑Curve","150","6.43 %","6.480 %","99.98996"],["A‑2","USD","100.000","1.91","AAA","Floating","3mSOFR","150","3mSOFR + 150 bps","—","100.00000"],["B","USD","54.300","1.91","AA","Fixed","I‑Curve","165","6.58 %","6.63 %","99.99362"],["C","USD","32.200","1.91","A","Fixed","I‑Curve","190","6.83 %","6.88 %","99.99989"],["D","USD","60.200","1.91","BBB","Fixed","I‑Curve","300","7.91 %","7.98 %","99.99461"]]},{type:"prose",html:"<em>Capital structure of ARTFI 2024‑1 deal</em>"},{type:"prose",html:"In this deal:"},{type:"list",items:["The <strong>A-1</strong> and <strong>A-2</strong> tranches are the most senior, both rated AAA, offering lower yields (6.48% for A-1) but higher security.","The <strong>B</strong> tranche, rated AA, offers a slightly higher yield of 6.63%.","The <strong>C</strong> tranche, rated A, provides an even higher yield of 6.88%.","The <strong>D</strong> tranche, rated BBB, offers the highest yield of 7.98%, but with the highest risk."]},{type:"prose",html:"This structure demonstrates how tranching creates investment opportunities that cater to varying risk appetites and return expectations."},{type:"heading",level:2,id:"application-in-cdr-projects",text:"Application in CDR Projects"},{type:"prose",html:"In the context of Carbon Dioxide Removal (CDR) projects, tranching can be a powerful tool. By issuing debt in different tranches, the project can attract a diverse range of investors, each with their own risk preferences. Senior tranches, with their lower risk and priority in the payment structure, may appeal to conservative investors, while junior tranches, offering higher potential returns, can attract those willing to take on more risk. This structure allows for a blended cost of capital that can optimize financing for the project, making it more attractive and viable."},{type:"prose",html:"<strong>Tranching</strong> is more than just a division of risk; it's a strategy that optimizes financing by tailoring investment opportunities to meet the needs of diverse investors. Whether applied to traditional assets or innovative CDR projects, tranching plays a vital role in making securitization a versatile and powerful financial tool."},{type:"prose",html:"💡 <strong>Next week</strong>, we'll explore the <strong>waterfall</strong> (Priority of Payment) structure in more detail, looking at how it determines the order of payments and influences the risk and return profiles of different tranches."},{type:"heading",level:3,id:"sources-4",text:"Sources"},{type:"list",items:['<a href="https://www.apsa-asia.com/files/pdf/publications/The_Report_English.pdf" target="_blank" rel="noopener noreferrer">APSA Asia — The Report (Ch. 3)</a>',`<a href="https://finsight.com/issuer-27974-sothebys-artfi-master-trust?products=ABS,HYC,IGC&regions=APAC,EMEA,LATM,USOA" target="_blank" rel="noopener noreferrer">Finsight — Sotheby's ARTFI Master Trust</a>`,'<a href="https://www.guggenheiminvestments.com/perspectives/portfolio-strategy/the-abcs-of-asset-backed-securities" target="_blank" rel="noopener noreferrer"><em>The ABCs of Asset-Backed Securities</em> — Guggenheim</a>']}]},{number:5,slug:"waterfall-structures",title:"Let the Cash Flow! Understanding Waterfall Structures",summary:"How cash moves through a securitization structure — the waterfall that dictates who gets paid first.",author:"Lydia Chen",date:"August 17, 2024",linkedinUrl:"https://www.linkedin.com/pulse/securitization-saturday-let-cash-flow-understanding-waterfall-pau9e/",sections:[{type:"prose",html:"<strong>Welcome back to Securitization Saturday!</strong> Last week, we sliced through the concept of tranching, comparing it to a master chef carving different cuts of meat to cater to various appetites. This week, we're diving into the <strong>waterfall</strong>—a key mechanism in securitization that dictates how payments flow through the different tranches, ultimately affecting both risk and return profiles."},{type:"heading",level:2,id:"what-is-the-waterfall-structure",text:"What is the Waterfall Structure?"},{type:"prose",html:`In securitization, the <strong>waterfall structure</strong> is a predetermined sequence that governs how cash flows from the underlying asset pool are distributed to the various tranches. It's also called, as simple as "Priority of Payment."`},{type:"prose",html:"Imagine a cascading waterfall where each tier (or tranche) catches some of the water (cash flows) before letting the remainder flow down to the next level. The sequence is crucial because it determines who gets paid first and who bears the risk of non-payment."},{type:"image",src:"/images/waterfall-astrea-vi.webp",alt:"Astrea VI waterfall structure showing the priority of payments from senior tranches down to equity, including expense coverage, bondholder interest, principal reserves, and equity distributions",caption:"Astrea VI waterfall structure — priority of payments"},{type:"prose",html:"Here's how it works:"},{type:"list",ordered:!0,items:["<strong>Senior Tranches (Top of the Waterfall):</strong> Sitting at the top, these tranches are first in line to receive payments. Their priority in the payment queue makes them the safest, earning them the highest credit ratings but be
528cause of its low risk feature also have the lowest yields.","<strong>Junior Tranches (Middle of the Waterfall):</strong> Once the senior tranches have been paid, the remaining cash flows move down to the mezzanine tranches. These tranches take on more risk but offer higher yields in return.",'<strong>Equity Tranches (Bottom of the Waterfall):</strong> These tranches are last in line and are only paid after the senior and junior tranches have received their dues. They carry the highest risk—often referred to as the "first loss" position—but also offer the potential for the highest returns.']},{type:"prose",html:"However, before any of these tranches get paid, the first step usually involves covering essential <strong>expenses and fees</strong> such as management fees, legal costs, and other necessary expenses. This ensures that the operational and administrative aspects of the securitization process are maintained, safeguarding the interests of all parties involved."},{type:"prose",html:"The waterfall structure is more than just an order of payments; it's a strategic tool for <strong>risk allocation</strong>. By carefully structuring payments, securitization can appeal to a wide range of investors—from those seeking safe, steady returns to those with a taste for higher risks and rewards."},{type:"prose",html:"For example, a cautious investor might prefer the security of the senior tranches, knowing they'll be first in line for payment. Meanwhile, a more adventurous investor might be drawn to the junior tranches, tempted by the potential for higher returns despite the increased risk."},{type:"heading",level:2,id:"real-world-example-astrea-8",text:"Real-World Example: Astrea 8"},{type:"prose",html:"Now, let's consider a real-world example that has been making waves in Singapore's financial market. The <strong>Astrea 8 bonds</strong> are the latest in a series of private equity (PE) bonds offered under the Astrea platform, backed by cash flows from a diversified portfolio of PE funds. These bonds have successfully opened up the traditionally exclusive private equity asset class to retail investors, providing a unique opportunity to participate in a market typically dominated by institutional players. Astrea 8 bonds are also traded on the Singapore Exchange (SGX), making them accessible to a broader audience."},{type:"prose",html:"In Astrea 8, the cash flow from the PE funds is distributed according to the waterfall structure, ensuring that each level of investors receives their due payment in a prioritized manner. The illustration below represents this sequence as a stream of fresh produce (cash flows) being delivered to a multi-level building."},{type:"list",ordered:!0,items:["<strong>Pay Key Expenses:</strong> Imagine the farm's produce arriving at the building, where the first group in line picks out the essential items to cover expenses and fees—like management costs and taxes. They might take a carrot or two out of the basket to ensure the farm's operations continue smoothly.","<strong>Pay Bondholders' Interest:</strong> The remaining basket of fruits and vegetables is passed down to the bondholders. Senior bondholders are served first, perhaps receiving a few heads of broccoli, representing their interest payments. Because they are at the top of the waterfall, they have priority, ensuring their returns are more secure.","<strong>Reserve for Principal Repayment:</strong> After the senior bondholders have received their interest, some of the best fruits are set aside to ensure that when the time comes, there will be enough to repay the principal for Class A-1 and A-2 bonds.","<strong>Pay Other Expenses:</strong> As the basket continues down the line, any remaining produce is used to cover additional expenses, ensuring the entire operation is well-maintained.","<strong>Equity Investor Payments:</strong> Finally, whatever produce is left over at the bottom is passed to equity investors. They might receive a mix of what's left—sometimes a lot, sometimes just a few items—reflecting the higher risk they take on."]},{type:"prose",html:"This waterfall structure ensures that retail investors who hold senior tranches are well-protected, receiving payments before the more junior tranches and equity holders. It's this orderly distribution of cash flows that makes senior bonds more attractive to risk-averse investors, while still allowing for potential upside for those willing to take on more risk."},{type:"heading",level:2,id:"implications-for-cdr-projects",text:"Implications for CDR Projects"},{type:"prose",html:"Just as Astrea 8 has made private equity accessible to retail investors through investment-grade bonds, a well-structured CDR securitization could similarly broaden its investor base. This approach would help scale 
528CDR projects by attracting diverse investors, each with different risk appetites."},{type:"prose",html:"A carefully crafted waterfall structure could ensure that senior debt in CDR projects appeals to risk-averse investors, while more junior tranches attract those seeking higher returns. By aligning payments with the risk profiles of different investor tranches, CDR projects can optimize financing, making them more viable and attractive to a diverse group of investors."},{type:"prose",html:"💡 <strong>Next week</strong>, we'll dive into <strong>credit enhancement</strong>—another key component in securitization that helps improve the creditworthiness of tranches and makes them more appealing to investors."},{type:"heading",level:3,id:"sources-5",text:"Sources"},{type:"list",items:['<a href="https://www.azalea.com.sg/storage/app/media/Astrea%208%20Product%20Factsheet.pdf" target="_blank" rel="noopener noreferrer">Astrea 8 Product Factsheet (PDF)</a>','<a href="https://www.sgx.com/fixed-income/products/Z1AB" target="_blank" rel="noopener noreferrer">SGX — Astrea 8 Bond Information</a>']}]},{number:6,slug:"credit-enhancement",title:"Credit Enhancement: Build a Rock-Solid Financing Structure",summary:"How credit enhancement turns risky assets into investment-grade securities through subordination, reserves, and guarantees.",author:"Lydia Chen",date:"August 24, 2024",linkedinUrl:"https://www.linkedin.com/pulse/credit-enhancement-build-rock-solid-financing-structure-securitization-lxewe/",sections:[{type:"prose",html:"<strong>Welcome back to Securitization Saturday!</strong> Last week, we discussed the waterfall structure and its role in determining how cash flows are distributed across various tranches. This week, we'll dive into <strong>credit enhancement</strong>—a crucial mechanism that further secures investors' positions by adding layers of protection."},{type:"heading",level:2,id:"what-is-credit-enhancement",text:"What is Credit Enhancement?"}
528,{type:"prose",html:"Credit enhancement is like reinforcing a foundation to ensure that the structure above remains stable, even in uncertain conditions. In securitization, it involves various strategies designed to improve the creditworthiness of the issued securities, ensuring that even if unexpected events occur, investors remain protected."},{type:"prose",html:"These enhancements come in different forms, such as:"},{type:"callout-cards",cards:[{icon:"🏗️",title:"Subordination",desc:"Structuring the deal with different tranches (senior, mezzanine, and junior) so that losses are absorbed by the junior tranches first, thus protecting the senior tranches."},{icon:"🛡️",title:"Overcollateralization",desc:"Issuing securities for less than the total value of the underlying asset pool, creating an extra cushion of collateral that can absorb losses."},{icon:"🏦",title:"Reserve Accounts",desc:"Setting aside a reserve fund that can be tapped into if the cash flows from the underlying assets fall short."},{icon:"📋",title:"Third-Party Guarantees",desc:"This is akin to having an insurance policy on your baskets, where a third party steps in to cover any potential losses up to a certain amount."}]},{type:"heading",level:2,id:"real-world-example-astrea-vi-and-its-safety-net",text:"Real-World Example: Astrea VI and Its Safety Net"},{type:"prose",html:"Let's revisit Astrea VI, the PE-backed bond series that has opened private equity investments to retail investors. These bonds come with multiple credit enhancement features designed to protect bondholders from potential risks, much like how a farmer might add extra safeguards to ensure the best quality produce reaches the market."},{type:"prose",html:"Imagine the <strong>building</strong> as the securitization structure, where fresh <strong>produce</strong> (cash flows) is delivered from the surrounding <strong>farmland</strong> (which represents the underlying asset value)."},{type:"prose",html:"Let's look at some of the key credit enhancements:"},{type:"list",items:["<strong>Reserve Accounts:</strong> These are like storing extra baskets of fruit on the top floors of the building, ensuring there's enough produce set aside to repay the principal of Class A-1 and A-2 bonds by March 2026. This reserve acts as a buffer, protecting bondholders from potential cash flow disruptions.","<strong>Sponsor Sharing:</strong> Imagine that the sponsor of the Astrea VI building agrees to share some of their leftover produce <strong>after</strong> a certain threshold is met, ensuring that there's enough to meet the building's future needs. Specifically, after the Performance Threshold is achieved, 50% of the remaining cash flow—after paying expenses and other prioritized payments—is allocated to the reserve accounts to build up reserves for redeeming the Class A Bonds on their scheduled call date. This sponsor sharing continues until the reserve accounts reach their cap, providing an additional layer of security for the bondholders.","<strong>Maximum Loan-to-Value (LTV) Ratio:</strong> The building's size is carefully measured to ensure that it never becomes too large for the land to support. In financial terms, this means that the total debt should never exceed a certain percentage of the asset value. If it does, steps are taken to bring it back in line, much like trimming back a plant that's grown too large for its pot.","<strong>Credit Facility:</strong> This is like having an emergency stockpile of produce that can be accessed if needed, ensuring that the building can continue to meet its obligations even in tough times."]},{type:"prose",html:"These mechanisms significantly enhance the credit quality of the Astrea VI bonds. This makes them not only a viable option for retail investors but also a safer bet in the complex world of private equity-backed securities."},{type:"heading",level:2,id:"implications-for-cdr-projects",text:"Implications for CDR Projects"},{type:"prose",html:"Just as these credit enhancements make Astrea VI bonds more secure, similar features could be incorporated into Carbon Dioxide Removal (CDR
528) securitizations to strengthen investor confidence. By adding safety nets like reserve accounts and credit facilities, CDR projects can attract a broader range of investors, ensuring that even in a new and evolving market, the path remains secure."},{type:"prose",html:"💡 <strong>Next week</strong>, we'll explore <strong>performance triggers</strong>—another essential aspect of securitization that ensures cash flows are redirected to protect bondholders in times of need."},{type:"heading",level:3,id:"sources-6",text:"Sources"},{type:"list",items:['<a href="https://www.azalea.com.sg/storage/app/media/products/Product%20Factsheets%2015%20Jul%202022/Astrea%20VI%20Product%20Factsheet.pdf" target="_blank" rel="noopener noreferrer">Astrea VI Product Factsheet (PDF)</a>']}]},{number:7,slug:"performance-triggers",title:"Performance Triggers: The High-Tech Sensors in Securitization",summary:"When data and deal triggers collide — how performance triggers act as early warning systems to protect investors.",author:"Lydia Chen",date:"August 31, 2024",linkedinUrl:"https://www.linkedin.com/pulse/performance-triggers-high-tech-sensors-securitization-saturday-nsuoe/",sections:[{type:"prose",html:"<strong>Welcome back to Securitization Saturday!</strong> Last week, we explored how credit enhancement acts as a protective shield for investors, ensuring that their investments are secure even when the unexpected occurs. This week, we're diving into a critical component of securitization: <strong>performance triggers</strong>. These mechanisms are the early warning systems that help safeguard the stability of a deal by activating specific measures when things start to go off course."},{type:"heading",level:2,id:"what-are-performance-triggers",text:"What Are Performance Triggers?"},{type:"prose",html:"At their core, <strong>performance triggers</strong> are financial safeguards designed to protect investors from potential risks when the performance of the underlying assets in a securitization begins to deteriorate. Think of them as the sensors in a high-tech security system—they detect when something isn't right and immediately take action to minimize damage. These triggers ensure that corrective actions are taken when specific financial metrics fall below a predefined threshold."},{type:"prose",html:"Here's a breakdown of some common types of performance triggers:"},{type:"callout-cards",cards:[{icon:"📊",title:"Debt Service Coverage Ratio (DSCR) Trigger",desc:"This trigger activates when the DSCR, which measures the cash flow available to pay current debt obligations, falls below a specified level. If the DSCR drops, cash flows might be redirected to ensure that debt service obligations are met before any equity distributions are made."},{icon:"🏠",title:"Loan-to-Value (LTV) Trigger",desc:"These ensure that the amount of debt doesn't exceed a certain percentage of the asset value. If the value of the assets decreases, hitting the LTV trigger might result in cash flows being redirected or additional collateral being required. Often applied in mortgage-backed securities and other asset-backed securities where collateral value fluctuations are a concern."},{icon:"📉",title:"Cumulative Loss Triggers",desc:"This trigger is set based on the cumulative losses in the portfolio. If losses reach a certain threshold, cash flows may be redirected from lower tranches to senior tranches, or early amortization may be initiated to protect investors. Frequently seen in consumer loan securitizations, such as credit cards and auto loans, where loss levels can be a significant risk factor."},{icon:"💹",title:"Excess Spread Triggers",desc:"Excess spread refers to the difference between the income generated by the underlying assets and the payments made to bondholders. A drop in excess spread below a predefined level can trigger actions to preserve liquidity, such as trapping cash flows in reserve accounts. Often used in structured finance deals to ensure that even if income decreases, there is enough buffer to meet debt obligations."}]},{type:"heading",level:2,id:"real-world-example-astrea-vi-and-its-performance-triggers",text:"Real-World Example: Astrea VI and Its Performance Triggers"},{type:"prose",html:"Let's take a closer look at the <strong>Astrea VI</strong> deal, where these performance triggers are hard at work ensuring the safety of the investment."},{type:"prose",html:"Imagine the Astrea VI securitization as a high-rise building constructed on a plot of land. The value of this land represents the underlying assets, while the building itself represents the amount of debt taken on. The stability of this building depends heavily on the land beneath it."},{type:"prose",html:"The <strong>LTV Trigger</strong> in this scenario acts as a vigilant building inspector. If the value of the land begins to decrease—perhaps due to changes in the environment or other factors—this inspector steps in to assess the situation. The inspector may require the building to be reinfor
528ced (pay down the debt) to ensure it remains stable and safe."},{type:"heading",level:2,id:"artfi-deal-a-parallel-in-the-world-of-fine-art",text:"ArtFi Deal: A Parallel in the World of Fine Art"},{type:"prose",html:"Similarly, in the recent <strong>ArtFi deal</strong>, where bonds are backed by high-value artworks, performance triggers play a crucial role. The <strong>LTV ratio</strong> ensures that the debt doesn't exceed a safe percentage of the art's appraised value. Should the value of the art drop significantly, these triggers would ensure that corrective actions are taken, such as increasing the reserves or requiring more collateral, thereby protecting investors from potential losses. The deal also incorporates performance-related triggers based on hammer-to-value auction realizations and excess spread, ensuring the bonds remain secure even if the value of the underlying art declines or sales falter."},{type:"heading",level:2,id:"why-are-performance-triggers-important",text:"Why Are Performance Triggers Important?"},{type:"prose",html:"Performance triggers are like the early warning systems in securitization, ensuring that corrective actions are taken before things get out of hand. They help maintain the stability of the investment and protect bondholders from unexpected losses. By understanding how these triggers work, investors can better assess the risk profile of a securitized deal and make more informed investment decisions."},{type:"heading",level:2,id:"implications-for-cdr-projects-7",text:"Implications for CDR Projects"},{type:"prose",html:"Performance triggers are like the safety nets. Given that CDR projects operate in a rapidly evolving market, these triggers help keep everything on track. By ensuring that any hiccups or underperformance in the asset pool are quickly addressed, we can maintain investor confidence and keep the project moving forward. So, just as these triggers are crucial in deals like Astrea VI and ArtFi, they'll be equally important as we push the boundaries in CDR securitizations."},{type:"prose",html:"Stay tuned for next week, where we'll shift gears to explore how securitization benefits borrowers."},{type:"heading",level:3,id:"sources-7",text:"Sources"},{type:"list",items:['<a href="https://dbrs.morningstar.com/research/431000/morningstar-dbrs-assigns-provisional-credit-ratings-to-sothebys-artfi-master-trust-series-2024-1" target="_blank" rel="noopener noreferrer">DBRS Morningstar — ArtFi Deal Report</a>','<a href="https://www.azalea.com.sg/products/astrea-vi" target="_blank" rel="noopener noreferrer">Azalea — Astrea VI Deal Information</a>','<a href="https://www.azalea.com.sg/storage/app/media/reports/Rating%20Agency%20Reports/Astrea%20VI/fitch-astrea-vi-final-ratings-report-18-mar-2021.pdf" target="_blank" rel="noopener noreferrer">Fitch Ratings — Astrea VI Final Report (PDF)</a>','<a href="https://www.azalea.com.sg/storage/app/media/reports/Rating%20Agency%20Reports/Astrea%20VI/sp-astrea-vi-pre-sale-25-feb-2021.pdf" target="_blank" rel="noopener noreferrer">S&P Global — Astrea VI Pre‑Sale Report (PDF)</a>']}]},{number:8,slug:"benefits-for-borrowers",title:"What's in It for Borrowers? The Untold Benefits of Securitization",summary:"The untold benefits for companies raising capital through securitization — from lower costs to customized debt structures.",author:"Lydia Chen",date:"September 7, 2024",linkedinUrl:"https://www.linkedin.com/pulse/whats-borrowers-untold-benefits-securitization-saturday-seoicurecdr-lm4pe/",sections:[{type:"prose",html:"<strong>Welcome back to Securitization Saturday!</strong> Last week, we dove into performance triggers—the high-tech sensors that protect investors when the market shows signs of stress. This week, let's flip the script and talk about <strong>borrowers</strong>—what exactly do they stand to gain from securitization?"},{type:"prose",html:"When I talk to people who are new to securitization, I often hear the same question: <em>Why would a borrower need this structure?</em> Well, let's dive into that today."},{type:"heading",level:2,id:"what-s-in-it-for-borrowers",text:"What's in it for Borrowers?"},{type:"prose",html:"At its core, securitization allows businesses to transform predictable, stable cash flows into upfront capital. Instead of waiting months or years to receive payments, companies can access liquidity quickly by pooling these cash flows into securities sold to investors. Here are some key benefits for borrowers:"},{type:"prose",html:"Borrowers in securitizations fall into two broad categories: <strong>those seeking to fund loans or leases</strong> and those looking for a way <strong>to finance contracts or assets that are of higher financial qual
528ity</strong> than their overall credit rating."},{type:"callout-cards",cards:[{icon:"⏱️",title:"Matching Debt to Asset Life",desc:"One of the standout advantages of securitization is that the term of the borrowing can be aligned with the life of the underlying assets. This reduces refinancing risks, which would otherwise require the borrower to sell off assets prematurely or refinance under less favorable terms."},{icon:"💲",title:"Lower Borrowing Costs",desc:"Compared to other financing options, such as unsecured bonds, securitizations often come with lower borrowing costs. This is particularly beneficial for corporate borrowers with assets of high quality but without a high credit rating to match."},{icon:"📊",title:"Off-Balance Sheet Treatment",desc:"For some borrowers, securitization offers the ability to obtain non-recourse financing. This can lead to off-balance sheet treatment, allowing the borrower to improve their balance sheet without carrying the debt burden directly."},{icon:"🌐",title:"Diversity of Funding Sources",desc:"Securitization also opens up access to a wider pool of funding sources. By engaging with different types of investors—both institutional and retail—borrowers can diversify their financing base, which could improve their overall enterprise valuation."}]},{type:"prose",html:"Let's breakdown the benefits by looking into a case study provided by the Guggenheim Investment, Domino's Pizza!"},{type:"heading",level:2,id:"lower-cost-of-funds",text:"Lower Cost of Funds"},{type:"prose",html:"When companies like <strong>Domino's Pizza</strong> use securitization, they aren't just relying on their balance sheet to secure funding—they're leveraging the stable cash flow from royalties, franchise fees, or intellectual property rights to back the deal. Because these assets are considered relatively low-risk compared to other aspects of the business, Domino's was able to secure <strong>investment-grade debt</strong>, which comes with a lower cost of borrowing."},{type:"prose",html:"Imagine running a franchise empire, and instead of relying solely on expensive loans or equity financing, you can tap into the value of future franchise royalties to fuel your growth. That's what securitization offers—a cheaper and more efficient way to borrow."},{type:"heading",level:2,id:"customization-flexibility",text:"Customization & Flexibility"},{type:"prose",html:"Securitization also offers borrowers the ability to customize their debt structure to meet their specific needs."},{type:"prose",html:"In the case of <strong>Domino's Pizza</strong>, the company didn't just settle for one-size-fits-all financing. Instead, they structured their debt with <strong>a mix of note tenors and coupon types</strong> that fit their business goals. This gave them the flexibility to pay back their debt over time while balancing short-term and long-term business objectives. Essentially, they designed a financing solution tailored to their needs."},{type:"heading",level:2,id:"leveraging-predictable-income",text:"Leveraging Predictable Income"},{type:"prose",html:"Let's take Domino's model a step further. The company doesn't just rely on store sales alone—it earns <strong>royalty payments</strong> from its franchisees, based on a fixed percentage of sales. This stable income stream made their securitization deal incredibly appealing to investors. The <strong>predictability</strong> of these payments reduced risk, making the debt easier to sell to investors, and gave Domino's the financial firepower they needed to keep growing."},{type:"prose",html:"Domino's Pizza serves as a perfect example of how a well-structured securitization deal can benefit a borrower. By pledging the royalty payments it receives from franchisees as collateral, Domino's could reduce its cost of funds and secure <strong>investment-grade debt</strong>. The company didn't just stop there—they also included a battery of <strong>performance triggers</strong> to give investors confidence that they'd get their money back in case of a downturn."},{type:"prose",html:"The result? A tailor-made financing solution that provided Domino's with the capital it needed to grow, while also ensuring investors were protected with safeguards like DSCR and LTV triggers."},{type:"prose",html:"By using securitization, Domino's took advantage of its predictable revenue stream and intellectual property, lowering its risk and accessing cheaper capital."},{type:"heading",level:2,id:"why-is-this-relevant-for-carbon-dioxide-removal-cdr",text:"Why Is This Relevant for Carbon Dioxide Removal (CDR
528)?"},{type:"prose",html:"The same principles that helped Domino's access cheaper funding through securitization can apply to <strong>CDR projects</strong>. Imagine a world where the future carbon removal credits generated by a CDR project are pooled into a securitization deal, allowing project developers to access funding upfront. Investors, in turn, would benefit from performance triggers and safeguards, ensuring their investment is protected."},{type:"prose",html:"Next week, we'll shift our focus to look at some examples of how securitization can benefit <strong>a wide range of green assets</strong>—from heatpump to solar panel. It's been done before!"}]},{number:9,slug:"green-securitization",title:"Green Securitization: Financing the Future, One Asset at a Time",summary:"How green securitization channels capital into climate assets — from heat pumps to carbon credits.",author:"Lydia Chen",date:"September 14, 2024",linkedinUrl:"https://www.linkedin.com/pulse/green-securitization-financing-future-one-asset-time-seoicurecdr-8pbpe/",sections:[{type:"prose",html:"<strong>Welcome back to Securitization Saturday!</strong> Last week, we talked about the benefits of securitization for borrowers. This week, we're zooming in on the world of <strong>green securitization</strong>—exploring its current market size, recent trends, and why it's becoming a vital part of the sustainable finance landscape."},{type:"heading",level:2,id:"what-is-green-securitization",text:"What Is Green Securitization?"},{type:"prose",html:"In simple terms, green securitization refers to the process of pooling loans, leases, or other cash-flow-generating assets tied to environmentally beneficial projects or assets. The proceeds from these pools are then used to support green initiatives, such as renewable energy projects, electric vehicles, and energy-efficient infrastru
528cture."},{type:"prose",html:"Green securitization aligns the goals of sustainability with financial growth, offering a win-win solution for both investors and borrowers. It has become a critical tool for companies and governments as they strive to meet sustainability goals while attracting capital."},{type:"heading",level:2,id:"the-growth-of-the-green-bond-and-green-securitization-market",text:"The Growth of the Green Bond and Green Securitization Market"},{type:"stat-panel",stats:[{value:"$2.8T",label:"Cumulative green bond issuance by 2023",source:"Climate Bonds Initiative"},{value:"$860B",label:"Record green bond issuance in 2023",source:"Bloomberg"},{value:"1.4%",label:"ESG securitizations share in Europe (2019-2022)",source:"Clifford Chance"}]},{type:"prose",html:"The green bond market has experienced exponential growth, with the <strong>Climate Bonds Initiative</strong> reporting that the cumulative global green bond issuance surpassed <strong>$2.8 trillion</strong> by 2023. According to <strong>Bloomberg</strong>, green bonds alone saw a record issuance of over <strong>$860 billion</strong> in 2023."},{type:"prose",html:"However, green securitization remains a relatively small but growing slice of this market. Clifford Chance reports that ESG securitizations accounted for <strong>1.4% of total ESG issuances</strong> in Europe between 2019-2022, showcasing potential for growth in this sector."},{type:"heading",level:2,id:"what-counts-as-esg-securitization",text:"What Counts as ESG Securitization?"},{type:"prose",html:"A report from Clifford Chance, citing the European Banking Authority's framework for sustainable securitization, defines three key types of ESG securitizations:"},{type:"callout-cards",cards:[{icon:"🌱",title:"Backed by ESG Assets",desc:"These are backed by assets such as green loans or renewable energy projects."},{icon:"🎯",title:"Proceeds Used for ESG Purposes",desc:"Here, the proceeds from the sale of the assets are directed towards funding ESG initiatives by the originator."},{icon:"📋",title:"Sustainability-Related KPIs",desc:"This involves commitments by counterparties to meet specific sustainability goals, aligning the deal with ESG standards."}]},{type:"heading",level:2,id:"a-case-in-point-the-aira-heat-pump-deal",text:"A Case in Point: The Aira Heat Pump Deal"},{type:"prose",html:"A great example of green securitization in action is the €200 million deal completed by <strong>Aira</strong>, a Swedish provider of energy-efficient heat pumps. This financing enabled Aira to scale its heat pump installations across Europe, supporting the shift to cleaner energy."},{type:"prose",html:"Aira partnered with <strong>Lisa&</strong> to launch an innovative financing solution, allowing consumers to pay for their heat pumps in monthly installments instead of the full price upfront. This approach makes green energy more accessible and affordable, breaking down barriers to adoption for consumers."},{type:"prose",html:"To facilitate this, a <strong>warehouse facility</strong> with <strong>BNP Paribas</strong> was set up to collect customer installment contracts. As these contracts accumulate, they are eventually securitized into tradable bonds, giving Aira flexibility in managing customer demand and raising capital."},{type:"prose",html:"For Aira, this model means they get upfront capital to grow their business while maintaining a steady cash flow from customer payments. It's a win-win—allowing them to expand green energy solutions and make them more accessible to a broader market."},{type:"heading",level:2,id:"why-does-this-matter",text:"Why Does This Matter?"},{type:"prose",html:"Deals like Aira's heat pump financing are shaping the future of finance. By leveraging securitization, companies can access the funds needed to grow sustainable solutions while providing investors with opportunities to support projects that have a real environmental impact."},{type:"heading",level:2,id:"is-carbon-credit-securitization-next",text:"Is Carbon Credit Securitization Next?"},{type:"prose",html:"Looking ahead, <strong>carbon credits</strong> could be the next big thing in green securitization. Much like the pooling of renewable energy assets or heat pump contracts, carbon credits can be aggregated into securitizations. This would allow developers of carbon removal projects to access upfront capital based on future credit generation. As the market for carbon credits matures, securitization could unlock new funding opportunities in this space."},{type:"heading",level:3,id:"sources-9",text:"Sources"},{type:"list",ordered:!0,items:['<a href="https://www.climatebonds.net/" target="_blank" rel="noopener noreferrer">Climate Bonds Initiative — Market report 2023</a>','<a href="https://www.bloomberg.com/" target="_blank" rel="noopener noreferrer">Bloomberg — Green Bonds 2023</a>
528','<a href="https://www.cliffordchance.com/" target="_blank" rel="noopener noreferrer">Clifford Chance — ESG Securitisation</a>','<a href="https://www.vargasholding.com/news/aira-secures-eu200m-in-debt-commitments-from-bnp-paribas-for-first-heat-pump-securitisation" target="_blank" rel="noopener noreferrer">Aira €200m debt commitment (Vargas Holding)</a>','<a href="https://lisaand.com/lisa-partner-spotlight-aira/" target="_blank" rel="noopener noreferrer">Lisa& Partner Spotlight: Aira</a>']}]}],hq=[{href:"#global-abs-talk",label:"Climate-to-capital proof"},{href:"#cdr-finance-research",label:"CDR finance research"},{href:"#field-intelligence",label:"Field intelligence"},{href:"#explain-learn",label:"Explain & learn"}],fq=()=>a.jsx("nav",{"aria-label":"Research sections",className:"sticky top-14 z-30 border-b border-border bg-background/85 backdrop-blur-md",children:a.jsx("div",{className:"container max-w-6xl",children:a.jsx("ul",{className:"flex gap-1 overflow-x-auto py-2 scrollbar-hide",children:hq.map(e=>a.jsx("li",{className:"shrink-0",children:a.jsx("a",{href:e.href,className:"inline-block rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-secondary/60 hover:text-foreground md:text-sm",children:e.label})},e.href))})})}),He=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e}),mq=[{title:"What's Biochar?",summary:"How pyrolysis transforms waste into a stable carbon sink.",desc:"Locking away CO₂ for centuries while enriching soil — the fundamentals of biochar carbon removal.",audio:"/audio/biochar-101-part-1.mp3"},{title:"Challenges & MRV",summary:"Measuring biochar's carbon removal accurately.",desc:"Why MRV matters, what makes it tricky, and how the field is evolving.",audio:"/audio/biochar-101-mrv-challenges.mp3"}],pq=[{title:"What's ERW?",summary:"Crushed rocks on farmland accelerate CO₂ drawdown.",desc:"How enhanced rock weathering works and why it's one of the most promising CDR pathways.",audio:"/audio/erw-101-part-1.mp3"},{title:"Risks & Mitigations",summary:"Key risks for ERW projects and how to manage them.",desc:"What developers and financiers need to know about risk in enhanced rock weathering.",audio:"/audio/erw-101-part-2-risks.mp3"},{title:"Co-benefits",summary:"Beyond carbon: soil health, crop yields, and more.",desc:"ERW delivers agricultural co-benefits that strengthen the business case.",audio:"/audio/erw-101-cobenefits.mp3"},{title:"Measurement & MRV",summary:"Tracking and verifying ERW at scale.",desc:"The MRV challenge — how do you measure rocks weathering in the field?",audio:"/audio/erw-101-mrv.mp3"},{title:"Durability & Future",summary:"Long-term permanence and the pathway ahead.",desc:"How durable is ERW carbon storage, and where is the science heading?",audio:"/audio/erw-101-durability.mp3"}],gq=[{title:"What does financing look like for CDR developers?",summary:"An overview of capital access for carbon removal companies.",audio:"/audio/financing-101-part-1.mp3"},{title:"5 Stages of the funding journey",summary:"From grants to securitization — the full arc of how climate ventures access capital.",audio:"/audio/financing-101-part-2-stages.mp3"},{title:"Challenges & investor outlook",summary:"What makes CDR financing hard and where investor sentiment is heading.",audio:"/audio/financing-101-part-3-challenges.mp3"}],yq=[{title:"What's securitization?",summary:"The basics of turning illiquid assets into tradeable securities.",audio:"/audio/securitization-101-basic.mp3"},{title:"Structure a securitization like finding the right cut",summary:"How deal structure shapes risk and return for every participant.",audio:"/audio/sc-saturday-part-2-structure.mp3"},{title:"Let the cash flow! Understanding the waterfall",summary:"How cash moves through a securitization structure — the waterfall explained simply.",audio:"/audio/securitization-101-process.mp3"}],xq=[{title:"Securitization Saturday – what's Seoi.Cure?",summary:"An introduction to Seoi.Cure CDR and why structured finance matters for carbon removal.",audio:"/audio/sc-saturday-part-1.mp3"},{title:"From filet to ground beef: how tranching works",summary:"Risk slicing explained — why tranching is the magic that makes securitization work.",audio:"/audio/sc-saturday-part-3-protection.mp3"},{title:"Green securitization – financing the future, one asset at a time",summary:"How green securitization channels capital into climate assets.",audio:"/audio/sc-saturday-part-4-green.mp3"},{title:"Why bother as a borrower to go through securitization?",summary:"The untold benefits of securitization for the companies raising capital.",audio:"/audio/sc-saturday-recap.mp3"}],vq=[{title:"This Carbon‑Capture Device Recharges Itself",desc:"NORMA's supercapacitor DAC — a breakthrough device that captures CO₂ and regenerates itself.",youtube:"https://www.youtube.com/watch?v=FiSzGPSmsko",thumb:"https://img.youtube.com/vi/FiSzGPSmsko/hqdefault.jpg"}
528,{title:"How Paper Survives Fire: The Art of Biochar",desc:"How pyrolysis locks carbon into stable biochar — and even creates art.",youtube:"https://www.youtube.com/watch?v=c3pB1Z0Emrw",thumb:"https://img.youtube.com/vi/c3pB1Z0Emrw/hqdefault.jpg"},{title:"Ocean Soup: How Alkalinity Draws Down CO₂",desc:"How enhancing ocean alkalinity can draw down atmospheric carbon dioxide at scale.",youtube:"https://www.youtube.com/watch?v=lWk-fagdkKk",thumb:"https://img.youtube.com/vi/lWk-fagdkKk/hqdefault.jpg"},{title:"Can Scientists Track Carbon Like Detectives?",desc:"The treasure hunt of a rock weathering measurement detective.",youtube:"https://www.youtube.com/watch?v=nkIxyyOU0a4",thumb:"https://img.youtube.com/vi/nkIxyyOU0a4/hqdefault.jpg"}],Kj=({title:e,summary:t,desc:r,audio:n})=>a.jsxs("div",{className:"glass-card p-6 h-full flex flex-col",children:[a.jsx("div",{className:"inline-flex rounded-lg bg-accent/10 p-2 w-fit",children:a.jsx(P3,{className:"h-5 w-5 text-accent"})}),a.jsx("h3",{className:"mt-3 font-display text-base font-semibold text-foreground",children:e}),a.jsx("p",{className:"mt-1 text-sm font-medium text-muted-foreground",children:t}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground leading-relaxed flex-1",children:r}),a.jsx("audio",{controls:!0,preload:"none",className:"mt-4 w-full h-10 rounded-lg",style:{colorScheme:"dark light"},children:a.jsx("source",{src:n,type:"audio/mpeg"})})]}),fg=({title:e,summary:t,audio:r})=>a.jsxs("div",{className:"glass-card p-6 h-full flex flex-col",children:[a.jsx("div",{className:"inline-flex rounded-lg bg-accent/10 p-2 w-fit",children:a.jsx(N3,{className:"h-5 w-5 text-accent"})}),a.jsx("h3",{className:"mt-3 font-display text-base font-semibold text-foreground",children:e}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground leading-relaxed flex-1",children:t}),a.jsx("audio",{controls:!0,preload:"none",className:"mt-4 w-full h-10 rounded-lg",style:{colorScheme:"dark light"},children:a.jsx("source",{src:r,type:r.endsWith(".wav")?"audio/wav":"audio/mpeg"})})]}),bq=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Research & Insights",subtitle:"Deep dives into structured finance, climate technology, carbon removal, and the mechanics of climate capital."}),a.jsx(fq,{}),a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[15%] right-[10%] w-[500px] h-[500px] rounded-full opacity-[0.08] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 65%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[55%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(176 44% 55%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[15%] right-[10%] w-[500px] h-[500px] rounded-full opacity-0 dark:opacity-[0.08] animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 30%), transparent 70%)"}})]}),a.jsxs("section",{id:"global-abs-talk",className:"relative overflow-hidden py-16 md:py-24 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-6xl",children:[a.jsxs("div",{id:"global-abs-2026",className:"grid gap-10 md:gap-14 md:grid-cols-2 md:items-center",children:[a.jsx(He,{children:a.jsxs("div",{children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Global ABS 2026 · Spotlight Stage · Latest"}),a.jsx("h2",{className:"mt-3 font-display text-3xl md:text-4xl lg:text-5xl font-bold text-foreground leading-tight",children:"From Climate Story to Credit Story"}),a.jsx("p",{className:"mt-5 leading-relaxed text-muted-foreground md:text-lg",children:"On the Global ABS 2026 Spotlight Stage in Barcelona, Lydia Chen was joined by Jim Mann, founder and CEO of UNDO, for a live case study in translating enhanced rock weathering from a climate story into a credit story."}),a.jsx("p",{className:"mt-4 leading-relaxed text-muted-foreground",children:"The conversation walks through the diagnostic layers that turn an emerging climate asset into something structured capital can underwrite."}),a.jsx("blockquote",{className:"mt-6 border-l-2 border-accent pl-5 font-display italic text-foreground md:text-lg",children:'"A buyer asks whether the tonne is real. A lender asks who takes the loss if it is not."'}),a.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-4",children:[a.jsx(G,{asChild:!0,size:"lg",variant:"accent",className:"shadow-md shadow-accent/20",children:a.jsxs("a",{href:"https://youtu.be/58LfmBp74Ao",target:"_blank",rel:"noopener noreferrer",children:["Watch the full session ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})}),a.jsx(G,{asChild:!0,size:"lg",variant:"outline",children:a.jsx(se,{to:"/contact?subject=Climate-to-capital%20project",children:"Discuss a climate-to-capital project"})})]})]})}),a.jsx(He,{delay:.1,children:a.jsxs("div",{children:[a.jsx(pd,{videoId:"58LfmBp74Ao",title:"Global ABS 202
5286 From Climate Story to Credit Story"}),a.jsx("div",{className:"mt-6 flex flex-wrap gap-2",children:["Asset definition","Delivery evidence","MRV","Contract stack","Offtake quality","Risk allocation","Repeatability"].map(e=>a.jsx("span",{className:"rounded-full border border-accent/30 bg-accent/5 px-3 py-1 text-xs font-medium text-foreground",children:e},e))})]})})]}),a.jsx(He,{delay:.15,children:a.jsxs("div",{className:"mt-16 md:mt-20 max-w-3xl mx-auto text-center border-t border-border pt-10",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"From thesis to translation"}),a.jsx("p",{className:"mt-3 leading-relaxed text-muted-foreground",children:"In 2025, Seoi.Cure introduced the financing thesis. In 2026, the work moved into a live case study: what structured capital needs to understand before an emerging climate asset can become financeable."})]})})]})]}),a.jsxs("section",{id:"global-abs-2025",className:"relative overflow-hidden py-16 md:py-20 bg-background border-t border-border",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-4xl",children:[a.jsx(He,{children:a.jsxs("div",{className:"text-center",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Global ABS 2025 · Origin of the thesis"}),a.jsx("h2",{className:"mt-2 font-display text-2xl md:text-3xl font-bold text-foreground",children:"Global ABS: Securitizing Carbon Removal"}),a.jsx("p",{className:"mx-auto mt-4 max-w-2xl leading-relaxed text-muted-foreground",children:"The 2025 conversation set out the original Seoi.Cure thesis: how structured finance could help transform high-integrity carbon removal credits into capital-market assets. In 2026, that thesis moved from financing concept to live climate-to-capital translation."})]})}),a.jsxs(He,{delay:.1,children:[a.jsx("div",{className:"mt-10 max-w-[440px] mx-auto",children:a.jsx(pd,{videoId:"vRGOxgWfVrM",title:"Global ABS 2025 — From Greenwashing to Green Cashflow"})}),a.jsx("div",{className:"mt-8 text-center",children:a.jsx(G,{asChild:!0,variant:"outline",size:"lg",children:a.jsxs("a",{href:"https://youtu.be/vRGOxgWfVrM",target:"_blank",rel:"noopener noreferrer",children:["Watch the 2025 talk ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})})})]})]})]}),a.jsx(Oe,{}),a.jsxs("section",{id:"field-intelligence",className:"max-w-5xl mx-auto px-6 py-16 md:py-20",children:[a.jsxs(He,{children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"CDR field intelligence"}),a.jsx("h2",{className:"mt-1 font-display text-2xl md:text-3xl font-bold text-foreground",children:"Field notes from Bite-Size Climate Tech"}),a.jsx("p",{className:"mt-3 max-w-2xl text-muted-foreground",children:"A curated CDR view of Bite-Size Climate Tech — a Day Zero Production series exploring the people and technologies building the carbon-removal economy."})]}),a.jsx(He,{delay:.05,children:a.jsx("div",{className:"mt-8",children:a.jsx(iA,{variant:"compact"})})}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-14 mb-6 font-display text-xl font-semibold text-foreground",children:"Season 5 field notes"})}),a.jsx("div",{className:"mt-8 grid gap-6 md:grid-cols-2",children:[{id:"q6R7ADGTAT4",title:"PhycoBloom: algae, CO₂, and the future of low-carbon fuels",desc:"A Season 5 conversation on turning biology into fuel pathways, and what has to become credible before climate value can scale.",href:"https://youtu.be/q6R7ADGTAT4?si=7xhF9KgAigzOurEd"},{id:"cLymNfq22EE",title:"Arborea: photosynthesis, carbon, and scalable climate biology",desc:"A Season 5 conversation on using biology and engineered systems to rethink how we capture carbon and create useful climate products.",href:"https://youtu.be/cLymNfq22EE?si=BmrA6SbmHvGwdLLr"}].map((e,t)=>a.jsx(He,{delay:t*.1,children:a.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"group glass-card overflow-hidden flex flex-col h-full transition-all hover:shadow-xl hover:shadow-accent/10",children:[a.jsxs("div",{className:"relative aspect-video overflow-hidden bg-secondary/40",children:[a.jsx("img",{src:`https://img.youtube.com/vi/${e.id}/hqdefault.jpg`,alt:`${e.title} — Bite-Size Climate Tech thumbnail`,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 opacity-0 transition-opacity group-hover:opacity-100",children:a.jsx("div",{className:"rounded-full bg-accent p-3",children:a.jsx(Aa,{className:"h-5 w-5 fill-accent-foreground text-accent-foreground"})})})]}),a.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[a.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-accent",children:"Bite-Size Climate Tech · Season 5"}),a.jsx("h3",{className:"mt-2 font-display text-base font-semibold text-foreground leading-snug",children:e.title}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed flex-1",children:e.desc}),a.jsxs("span",{className:"mt-4 inline-flex items-center text-sm font-medium text-accent group-hover:underline",children:["Watch on YouTube ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})]})]})},e.id))}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-14 mb-6 font-display text-xl font-semibold text-foreground",children:"Featured episodes"})}),a.jsx("div",{className:"grid gap-6 sm:grid-cols-2",children:vq.map((e,t)=>a.jsx(He,{delay:t*.08,children:a.jsxs("div",{className:"glass-card overflow-hidden h-full grid grid-rows-[auto_1fr]",children:[a.jsx("div",{className:"aspect-[16/9] overflow-hidden",children:a.jsx("img",{src:e.thumb,alt:e.title,className:"h-full w-full object-cover",loading:"lazy"})}),a.jsxs("div",{className:"p-6 flex flex-col bg-gradient-to-b from-secondary/20 to-secondary/5",children:[a.jsx("div",{className:"inline-flex rounded-lg bg-accent/10 p-2 w-fit mb-3",children:a.jsx(Aa,{className:"h-4 w-4 text-accent"})}),a.jsx("h3",{className:"font-display text-base font-semibold text-foreground leading-snug",children:e.title}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed flex-1",children:e.desc}),a.jsx(G,{asChild:!0,variant:"secondary",size:"sm",className:"mt-4 w-fit roun
528ded-full",children:a.jsxs("a",{href:e.youtube,target:"_blank",rel:"noopener noreferrer",children:[a.jsx(Aa,{className:"h-3.5 w-3.5 mr-1"})," Watch on YouTube"]})})]})]})},e.title))}),a.jsx(He,{delay:.2,children:a.jsxs("div",{className:"mt-10 flex flex-wrap gap-3",children:[a.jsx(G,{asChild:!0,variant:"accent",children:a.jsxs(se,{to:"/bite-size-climate-tech",children:["See all CDR field notes ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})}),a.jsx(G,{asChild:!0,variant:"outline",children:a.jsxs("a",{href:"https://www.youtube.com/@BiteSizeClimateTech",target:"_blank",rel:"noopener noreferrer",children:["Full archive on Day Zero Production ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})})]})})]}),a.jsx(Oe,{}),a.jsxs("section",{id:"cdr-finance-research",className:"relative overflow-hidden py-16 md:py-20 bg-background",children:[a.jsx("div",{id:"carbon-financing-fist-bump",className:"sr-only","aria-hidden":"true"}),a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-5xl",children:[a.jsx(He,{children:a.jsxs("div",{className:"text-center mb-10",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Our Process"}),a.jsx("h2",{className:"mt-1 font-display text-2xl md:text-3xl font-bold text-foreground",children:"The Carbon Financing Fist Bump"}),a.jsx("p",{className:"mx-auto mt-3 max-w-xl text-muted-foreground",children:"Four steps to transform fragmented carbon removal credits into institutional-grade securities."})]})}),a.jsx(He,{delay:.1,children:a.jsx(iq,{})})]})]}),a.jsx(Oe,{}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-24 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsx("div",{className:"container relative z-10 max-w-4xl",children:a.jsx(He,{children:a.jsx(se,{to:"/research/cdr-securitization",className:"group block glass-card p-8 md:p-10 border-accent/20 transition-all hover:shadow-xl hover:shadow-accent/10",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"inline-flex rounded-xl bg-accent/10 p-3 shrink-0",children:a.jsx(Jc,{className:"h-6 w-6 text-accent"})}),a.jsxs("div",{children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Featured Paper"}),a.jsx("h2",{className:"mt-1 font-display text-xl font-bold text-foreground md:text-2xl",children:"CDR Securitization Discussion Paper"}),a.jsx("p",{className:"mt-2 leading-relaxed text-muted-foreground",children:"Securitization — the same tool that unlocked mortgage and auto markets — can transform illiquid CDR credits into rated, tradeable securities that institutional investors already understand."}),a.jsxs("span",{className:"mt-4 inline-flex items-center text-sm font-medium text-accent group-hover:underline",children:["Read the full paper ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})]})]})})})})]}),a.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(He,{children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"How It Works"}),a.jsx("h2",{className:"mt-1 font-display text-2xl md:text-3xl font-bold text-foreground",children:"The Securitization Pipeline"}),a.jsx("p",{className:"mt-2 mb-8 text-muted-foreground max-w-2xl",children:"Diverse carbon removal credits are pooled, structured into risk-stratified tranches, and distributed to institutional investors."})]}),a.jsx(He,{delay:.1,children:a.jsx(sq,{})})]}),a.jsx(Oe,{}),a.jsxs("section",{id:"securitization-saturday",className:"max-w-5xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(He,{children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Article Series"}),a.jsx("h2",{className:"mt-1 font-display text-2xl md:text-3xl font-bold text-foreground",children:"Securitization Saturday"}),a.jsx("p",{className:"mt-2 text-muted-foreground max-w-2xl",children:"A nine-part series breaking down the building blocks of securitization — from pooling and tranching to green finance — and how they apply to carbon removal."})]}),a.jsx("div",{className:"mt-10 grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:Ec.map((e,t)=>a.jsx(He,{delay:t*.06,children:a.jsxs(se,{to:`/research/securitization-saturday/${e.slug}`,className:"group glass-card p-6 h-full flex flex-col transition-all hover:shadow-lg hover:shadow-accent/10",children:[a.jsx("div",{className:"inline-flex rounded-lg bg-accent/10 p-2 w-fit",children:a.jsx(t2,{className:"h-5 w-5 text-accent"})}),a.jsxs("span",{className:"mt-3 text-xs font-semibold text-accent",children:["#",e.number]}),a.jsx("h3",{className:"mt-1 font-display text-base font-semibold text-foreground leading-snug",children:e.title}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed flex-1",children:e.summary}),a.jsxs("span",{className:"mt-4 inline-flex items-center text-sm font-medium text-accent group-hover:underline",children:["Read full article ",a.jsx(qe,{className:"ml-1 h-4 w-4"})]})]})},e.slug))})]}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{id:"explain-learn",className:"max-w-5xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(He,{children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground text-center",children:"Climate Tech in 5 min."}),a.jsx("p",{className:"mt-2 text-center text-muted-foreground max-w-lg mx-auto",children:"Qu
528ick voice-memo deep dives into the core carbon removal pathways."})]}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-12 mb-6 font-display text-xl font-semibold text-foreground",children:"Biochar 101"})}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2",children:mq.map((e,t)=>a.jsx(He,{delay:t*.08,children:a.jsx(Kj,{...e})},e.title))}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-14 mb-6 font-display text-xl font-semibold text-foreground",children:"ERW 101"})}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:pq.map((e,t)=>a.jsx(He,{delay:t*.08,children:a.jsx(Kj,{...e})},e.title))})]}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(He,{children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground text-center",children:"Not Boring Finance"}),a.jsx("p",{className:"mt-2 text-center text-muted-foreground max-w-lg mx-auto",children:"Lydia's LinkedIn series breaking down securitization for climate finance — listen or read."})]}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-12 mb-6 font-display text-xl font-semibold text-foreground",children:"Introduction to Financing"})}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:gq.map((e,t)=>a.jsx(He,{delay:t*.08,children:a.jsx(fg,{...e})},e.title))}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-14 mb-6 font-display text-xl font-semibold text-foreground",children:"ABCs of Asset‑Backed Securitization"})}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:yq.map((e,t)=>a.jsx(He,{delay:t*.08,children:a.jsx(fg,{...e})},e.title))}),a.jsx(He,{delay:.1,children:a.jsx("h3",{className:"mt-14 mb-6 font-display text-xl font-semibold text-foreground",children:"Securitization Saturdays Newsletter"})}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2",children:xq.map((e,t)=>a.jsx(He,{delay:t*.08,children:a.jsx(fg,{...e})},e.title))})]}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 pb-12",children:a.jsxs("p",{className:"text-center text-xs text-muted-foreground",children:["For informational purposes only — not financial advice."," ",a.jsx(se,{to:"/disclaimer",className:"underline-offset-4 hover:underline",children:"Read full disclaimer"}),"."]})})]});var wq=p.createContext(void 0);function Hd(e){const t=p.useContext(wq);return e||t||"ltr"}var mg="rovingFocusGroup.onEntryFocus",kq={bubbles:!1,cancelable:!0},qd="RovingFocusGroup",[bx,oA,jq]=Qf(qd),[Nq,Rm]=Xt(qd,[jq]),[Sq,Cq]=Nq(qd),lA=p.forwardRef((e,t)=>a.jsx(bx.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(bx.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(_q,{...e,ref:t})})}));lA.displayName=qd;var _q=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=e,f=p.useRef(null),m=_e(t,f),x=Hd(i),[y,v]=Fr({prop:o,defaultProp:l??null,onChange:c,caller:qd}),[b,g]=p.useState(!1),w=rn(d),k=oA(r),j=p.useRef(!1),[S,T]=p.useState(0);return p.useEffect(()=>{const P=f.current;if(P)return P.addEventListener(mg,w),()=>P.removeEventListener(mg,w)},[w]),a.jsx(Sq,{scope:r,orientation:n,dir:x,loop:s,currentTabStopId:y,onItemFocus:p.useCallback(P=>v(P),[v]),onItemShiftTab:p.useCallback(()=>g(!0),[]),onFocusableItemAdd:p.useCallback(()=>T(P=>P+1),[]),onFocusableItemRemove:p.useCallback(()=>T(P=>P-1),[]),children:a.jsx(me.div,{tabIndex:b||S===0?-1:0,"data-orientation":n,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:ce(e.onMouseDown,()=>{j.current=!0}),onFocus:ce(e.onFocus,P=>{const C=!j.current;if(P.target===P.currentTarget&&C&&!b){const A=new CustomEvent(mg,kq);if(P.currentTarget.dispatchEvent(A),!A.defaultPrevented){const V=k().filter(q=>q.focusable),I=V.find(q=>q.active),H=V.find(q=>q.id===y),J=[I,H,...V].filter(Boolean).map(q=>q.ref.current);uA(J,u)}}j.current=!1}),onBlur:ce(e.onBlur,()=>g(!1))})})}),cA="RovingFocusGroupItem",dA=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,children:o,...l}=e,c=Rn(),d=i||c,u=Cq(cA,r),h=u.currentTabStopId===d,f=oA(r),{onFocusableItemAdd:m,onFocusableItemRemove:x,currentTabStopId:y}=u;return p.useEffect(()=>{if(n)return m(),()=>x()},[n,m,x]),a.jsx(bx.ItemSlot,{scope:r,id:d,focusable:n,active:s,children:a.jsx(me.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:ce(e.onMouseDown,v=>{n?u.onItemFocus(d):v.preventDefault()}),onFocus:ce(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:ce(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=Rq(v,u.orientation,u.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=f().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const k=w.indexOf(v.currentTarget);w=u.loop?Aq(w,k+1):w.slice(k+1)}setTimeout(()=>uA(w))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:y!=null}):o})})});dA.displayName=cA;var Tq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Eq(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Rq(e,t,r){const n=Eq(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Tq[n]}function uA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Aq(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hA=lA,fA=dA,Am="Tabs",[Pq,kse]=Xt(Am,[Rm]),mA=Rm(),[Oq,Kb]=Pq(Am),pA=p.forwardRef((e,t)=>
vendor: 5,920 bytes, line 528
528{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=Hd(l),[h,f]=Fr({prop:n,onChange:s,defaultProp:i??"",caller:Am});return a.jsx(Oq,{scope:r,baseId:Rn(),value:h,onValueChange:f,orientation:o,dir:u,activationMode:c,children:a.jsx(me.div,{dir:u,"data-orientation":o,...d,ref:t})})});pA.displayName=Am;var gA="TabsList",yA=p.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...s}=e,i=Kb(gA,r),o=mA(r);return a.jsx(hA,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:a.jsx(me.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:t})})});yA.displayName=gA;var xA="TabsTrigger",vA=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=e,o=Kb(xA,r),l=mA(r),c=kA(o.baseId,n),d=jA(o.baseId,n),u=n===o.value;return a.jsx(fA,{asChild:!0,...l,focusable:!s,active:u,children:a.jsx(me.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:t,onMouseDown:ce(e.onMouseDown,h=>{!s&&h.button===0&&h.ctrlKey===!1?o.onValueChange(n):h.preventDefault()}),onKeyDown:ce(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(n)}),onFocus:ce(e.onFocus,()=>{const h=o.activationMode!=="manual";!u&&!s&&h&&o.onValueChange(n)})})})});vA.displayName=xA;var bA="TabsContent",wA=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=e,l=Kb(bA,r),c=kA(l.baseId,n),d=jA(l.baseId,n),u=n===l.value,h=p.useRef(u);return p.useEffect(()=>{const f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),a.jsx(nn,{present:s||u,children:({present:f})=>a.jsx(me.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:f&&i})})});wA.displayName=bA;function kA(e,t){return`${e}-trigger-${t}`}function jA(e,t){return`${e}-content-${t}`}var Dq=pA,NA=yA,SA=vA,CA=wA;const Yb=Dq,Pm=p.forwardRef(({className:e,...t},r)=>a.jsx(NA,{ref:r,className:Z("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Pm.displayName=NA.displayName;const ul=p.forwardRef(({className:e,...t},r)=>a.jsx(SA,{ref:r,className:Z("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",e),...t}));ul.displayName=SA.displayName;const hl=p.forwardRef(({className:e,...t},r)=>a.jsx(CA,{ref:r,className:Z("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));hl.displayName=CA.displayName;const Iq=Ed("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ot({className:e,variant:t,...r}){return a.jsx("div",{className:Z(Iq({variant:t}),e),...r})}const zu=[{title:'"This is the only planet we have" — Tito, AirMiners',videoId:"GZ7lC9EN-kg",category:"DAC",duration:"7:41",desc:"AirMiners CEO Tito on why direct air capture matters for our future."},{title:"Why renewables are important for DAC — Jasper, Airhive",videoId:"vIrLMPGr7-k",category:"DAC",duration:"2:12",desc:"Airhive CTO Jasper on integrating renewable energy with DAC systems."},{title:"Fluidization demystified — Jasper, Airhive",videoId:"GUZxO5TgsUw",category:"DAC",duration:"5:28",desc:"Breaking down the fluidization process used in next-gen DAC technology."},{title:"Carbon Management in DAC — Rory Brown, Airhive",videoId:"rud8RWCaKH4",category:"DAC",duration:"8:17",desc:"Airhive CEO Rory Brown on carbon management workflows in DAC operations."},{title:"Nanomaterial Making DAC Affordable & Scalable",videoId:"Fr36M9jdR-8",category:"DAC",duration:"10:52",desc:"How nanomaterials could dramatically reduce the cost of direct air capture."},{title:"Octavia Carbon's DAC Processes — Linet",videoId:"RwZkCvS3VcI",category:"DAC",duration:"7:34",desc:"Inside Octavia Carbon's approach to DAC from Kenya."},{title:"Mission Zero's Love Story with CO₂ — Dr. Nicholas",videoId:"nZ8szrjprRk",category:"DAC",duration:"3:53",desc:"Mission Zero's novel low-temperature DAC approach explained."},{title:"Do we have enough rocks to remove CO₂? — UNDO Carbon",videoId:"A4ojq4hn3X4",category:"ERW",duration:"5:32",desc:"UNDO Carbon's Xinran explores whether there are sufficient silicate minerals for ERW at scale."},{title:"Co-benefits of ERW — UNDO Carbon, Xinran",videoId:"Wzgb5R8uZlU",category:"ERW",duration:"9:42",desc:"Beyond carbon removal: the agricultural and ecological co-benefits of enhanced rock weathering."},{title:"Rock Weathering Measurement Detective",videoId:"nkIxyyOU0a4",category:"ERW",duration:"8:53",desc:"The treasure hunt of MRV — measuring and verifying carbon removal from crushed rocks."},{title:"Scale of Carbon Removal — Blue Skies Minerals",videoId:"wkYmSN6i-9Y",category:"ERW",duration:"9:49",desc:"Blue Skies Minerals CEO André on scaling enhanced rock weathering globally."},{title:"How Ocean Helps Remove CO₂ — [C] Worthy",videoId:"bOOh98bdn8o",category:"Ocean",duration:"14:50",de
528sc:"Dr. Alicia Karspeck on ocean-based carbon dioxide removal science."},{title:"Brineworks: CO₂ from Seawater & Green Hydrogen",videoId:"23cERI1Zk5I",category:"Ocean",duration:"7:17",desc:"How Brineworks extracts CO₂ from seawater while producing green hydrogen."},{title:"Ocean Alkalinity Enhancement — Vycarb",videoId:"fgRmkiw68rk",category:"Ocean",duration:"5:18",desc:"Vycarb's approach to OAE and accelerating ocean CO₂ uptake."},{title:"pH Swing: Clean Hydrogen & CO₂ — Parallel Carbon",videoId:"YjoUsq8gZlA",category:"Ocean",duration:"6:31",desc:"Parallel Carbon on using pH swing electrochemistry for CDR."},{title:"pH Swing Science — Aeon Blue",videoId:"j0z1zGHEdiU",category:"Ocean",duration:"12:35",desc:"Deep dive into the electrochemical science behind Aeon Blue's pH swing process."},{title:"dMRV with IoT — Planboo's CTO",videoId:"B3-BLX76jJE",category:"Biochar",duration:"9:11",desc:"How Planboo uses IoT sensors for digital MRV of biochar carbon removal."},{title:"Ocean Soup Explained — Grace Andrews, Hourglass Climate",videoId:"lWk-fagdkKk",category:"Ocean",duration:"13:16",desc:"Dr. Grace Andrews on ocean alkalinity, marine ERW, and ecotoxicological risk frameworks for ocean CDR."},{title:"Carbon-Based Energy Storage: Mars to Earth — Noon Energy",videoId:"dQSaYPg_Gho",category:"Other",duration:"4:14",desc:"Chris Graves, CEO of Noon Energy, on long-duration carbon-based energy storage inspired by NASA Mars missions."},{title:"Replacing Fossil Products with Green Molecules",videoId:"6k45fX5ZYu8",category:"Other",duration:"—",desc:"Exploring how green molecules can replace fossil-derived products."},{title:"Arborea: photosynthesis, carbon, and scalable climate biology",videoId:"cLymNfq22EE",category:"Other",duration:"—",desc:"A Season 5 conversation on using biology and engineered systems to rethink how we capture carbon and create useful climate products."},{title:"PhycoBloom: algae, CO₂, and the future of low-carbon fuels",videoId:"q6R7ADGTAT4",category:"Other",duration:"—",desc:"A Season 5 conversation on turning biology into fuel pathways, and what has to become credible before climate value can scale."}],Mq={DAC:"bg-accent/15 text-accent border-accent/30",ERW:"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 border-emerald-500/30",Ocean:"bg-sky-500/15 text-sky-600 dark:text-sky-400 border-sky-500/30",Biochar:"bg-amber-500/15 text-amber-600 dark:text-amber-400 border-amber-500/30",Other:"bg-muted text-muted-foreground border-border"},Lq={"core-cdr":"bg-accent text-accent-foreground border-accent","cdr-enabling":"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 border-emerald-500/40",adjacent:"bg-muted text-muted-foreground border-border"},wx=e=>uq[e]??"adjacent",Fq=({ep:e,index:t})=>{const r=wx(e.videoId);return a.jsxs(ne.a,{href:`https://www.youtube.com/watch?v=${e.videoId}`,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.05},className:"glass-card group overflow-hidden transition-all hover:shadow-xl hover:shadow-accent/10","aria-label":`${e.title} — ${vx[r]}`,children:[a.jsxs("div",{className:"relative aspect-video overflow-hidden",children:[a.jsx("img",{src:`https://img.youtube.com/vi/${e.videoId}/mqdefault.jpg`,alt:e.title,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105",loading:"lazy"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 opacity-0 transition-opacity group-hover:opacity-100",children:a.jsx("div",{className:"rounded-full bg-accent p-3",children:a.jsx(Aa,{className:"h-5 w-5 fill-accent-foreground text-accent-foreground"})})}),e.duration!=="—"&&a.jsxs("span",{className:"absolute bottom-2 right-2 flex items-center gap-1 rounded bg-black/70 px-1.5 py-0.5 text-xs font-medium text-white",children:[a.jsx(b3,{className:"h-3 w-3"})," ",e.duration]})]}),a.jsxs("div",{className:"p-4",children:[a.jsxs("div",{className:"mb-2 flex flex-wrap gap-1.5",children:[a.jsx(Ot,{variant:"outline",className:Lq[r],children:vx[r]}),a.jsx(Ot,{variant:"outline",className:Mq[e.category],children:e.category})]}),a.jsx("h3",{className:"font-display text-sm font-semibold leading-snug text-foreground line-clamp-2",children:e.title}),a.jsx("p",{className:"mt-1.5 text-xs leading-relaxed text-muted-foreground line-clamp-2",children:e.desc}),a.jsxs("span",{className:"mt-3 inline-flex items-center text-xs font-medium text-accent group-hover:underline",children:["Watch on YouTube ",a.jsx(Ss,{className:"ml-1 h-3 w-3"})]})]})]})},$q=["All","core-cdr","cdr-enabling","adjacent"],Bq=()=>{const[e,t]=p.useState("core-cdr"),r=p.useMemo(()=>{const s={All:zu.length,"core-cdr":0,"cdr-enabling":0,adjacent:0};return zu.forEach(i=>
528{s[wx(i.videoId)]++}),s},[]),n=p.useMemo(()=>e==="All"?zu:zu.filter(s=>wx(s.videoId)===e),[e]);return a.jsxs(a.Fragment,{children:[a.jsxs("section",{className:"relative overflow-hidden ocean-gradient py-20",children:[a.jsx(pt,{variant:"dark"}),a.jsxs("div",{className:"container relative z-10 text-center",children:[a.jsx(ne.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"text-xs font-semibold uppercase tracking-[0.3em] text-primary-foreground/80",children:"CDR field intelligence"}),a.jsx(ne.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.05},className:"mt-3 font-display text-4xl font-bold text-primary-foreground md:text-5xl",children:"CDR Field Notes from Bite-Size Climate Tech"}),a.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-primary-foreground/90",children:"A Day Zero Production series exploring the people and technologies building the carbon-removal economy."}),a.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:[a.jsx("a",{href:"#cdr-collection",className:"inline-flex items-center gap-2 rounded-lg bg-accent px-5 py-2.5 text-sm font-medium text-accent-foreground shadow-md shadow-accent/20 transition-colors hover:bg-accent/90",children:"Explore the CDR collection"}),a.jsxs("a",{href:Gj,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-lg border border-primary-foreground/30 bg-transparent px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-foreground/10",children:["Open the full BSCT archive on Day Zero Production"," ",a.jsx(Ss,{className:"h-4 w-4"})]})]})]})]}),a.jsx(Oe,{className:"-mt-1"}),a.jsxs("section",{className:"relative overflow-hidden py-14 md:py-16",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-6xl",children:[a.jsxs("div",{className:"mb-6 max-w-2xl",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Credibility · publicly announced funding"}),a.jsx("h2",{className:"mt-1 font-display text-2xl md:text-3xl font-bold text-foreground",children:"What the CDR guest list has raised"}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:"Three clearly separated scopes so the CDR-specific evidence is never conflated with the wider archive."})]}),a.jsx(iA,{variant:"hero"})]})]}),a.jsxs("section",{id:"cdr-collection",className:"relative overflow-hidden py-14 md:py-16",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-6xl",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"Episode collection"}),a.jsx("h2",{className:"mt-1 font-display text-2xl md:text-3xl font-bold text-foreground",children:"Browse by pathway"}),a.jsx("p",{className:"mt-2 max-w-2xl text-sm text-muted-foreground",children:cq[e==="All"?"core-cdr":e]})]}),a.jsxs(Yb,{value:e,onValueChange:s=>t(s),children:[a.jsx(Pm,{className:"mb-8 flex flex-wrap gap-1",children:$q.map(s=>a.jsx(ul,{value:s,className:"text-xs sm:text-sm",children:s==="All"?`All (${r.All})`:`${vx[s]} (${r[s]})`},s))}),a.jsx(hl,{value:e,children:a.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.map((s,i)=>a.jsx(Fq,{ep:s,index:i},s.videoId))})})]}),a.jsxs("div",{className:"mt-12 rounded-2xl border border-border bg-secondary/30 p-6 md:p-8 text-center",children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-semibold text-foreground",children:"This is a curated CDR view of a larger show"}),a.jsx("p",{className:"mx-auto mt-2 max-w-2xl text-sm text-muted-foreground",children:"Bite-Size Climate Tech is produced by Day Zero Production. The complete archive covers many more climate technologies beyond carbon removal."}),a.jsxs("a",{href:Gj,target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-flex items-center gap-2 rounded-lg bg-accent px-5 py-2.5 text-sm font-medium text-accent-foreground shadow-md shadow-accent/20 transition-colors hover:bg-accent/90",children:["Open the full archive on Day Zero Production"," ",a.jsx(Ss,{className:"h-4 w-4"})]})]})]})]})]})},Ki=$b,zq=Bb,_A=p.forwardRef(({className:e,...t},r)=>a.jsx(Bd,{ref:r,className:Z("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));_A.displayName=Bd.displayName;const Ka=p.forwardRef(({className:e,children:t,...r},n)=>
528a.jsxs(zq,{children:[a.jsx(_A,{}),a.jsxs(zd,{ref:n,className:Z("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,a.jsxs(Sm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(nm,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ka.displayName=zd.displayName;const Yi=({className:e,...t})=>a.jsx("div",{className:Z("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yi.displayName="DialogHeader";const TA=({className:e,...t})=>a.jsx("div",{className:Z("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});TA.displayName="DialogFooter";const Ya=p.forwardRef(({className:e,...t},r)=>a.jsx(Vd,{ref:r,className:Z("text-lg font-semibold leading-none tracking-tight",e),...t}));Ya.displayName=Vd.displayName;const Ja=p.forwardRef(({className:e,...t},r)=>a.jsx(Ud,{ref:r,className:Z("text-sm text-muted-foreground",e),...t}));Ja.displayName=Ud.displayName;const Yj=({images:e,className:t="",ariaLabel:r="Photo gallery"})=>{const[n,s]=p.useState(null);return e.length===0?null:a.jsxs(a.Fragment,{children:[a.jsx("div",{role:"region","aria-label":r,className:`columns-1 sm:columns-2 lg:columns-3 gap-4 ${t}`,children:e.map((i,o)=>a.jsx("figure",{className:"break-inside-avoid mb-4 overflow-hidden rounded-2xl shadow-md bg-background transition-all duration-300 hover:shadow-lg",children:a.jsx("button",{type:"button",onClick:()=>s(i),"aria-label":`Open photo: ${i.alt}`,className:"block w-full focus:outline-none focus-visible:ring-2 focus-visible:ring-accent rounded-2xl",children:a.jsx("img",{src:i.src,alt:i.alt,loading:o<2?"eager":"lazy",decoding:"async",className:"w-full h-auto block transition-transform duration-300 hover:scale-[1.01]"})})},i.src))}),a.jsx(Ki,{open:!!n,onOpenChange:i=>!i&&s(null),children:a.jsx(Ka,{className:"max-w-4xl p-2 sm:p-4 bg-background",children:n&&a.jsxs(a.Fragment,{children:[a.jsx(Ya,{className:"sr-only",children:n.alt}),a.jsxs(Ja,{className:"sr-only",children:["Enlarged view of ",n.alt]}),a.jsx("img",{src:n.src,alt:n.alt,className:"w-full h-auto rounded-lg"}),a.jsx("figcaption",{className:"text-center text-sm text-muted-foreground mt-2 px-2",children:n.alt})]})})})]})},pg=({logos:e,ariaLabel:t,columnsClass:r="grid-cols-2 sm:grid-cols-3 md:grid-cols-4"})=>a.jsx("div",{role:"list","aria-label":t,className:`grid gap-3 sm:gap-4 md:gap-5 ${r}`,children:e.map(({name:n,logo:s,description:i,sizeClass:o})=>a.jsx("div",{role:"listitem",className:"flex min-h-[120px] md:min-h-[140px] items-center justify-center rounded-2xl bg-background/70 px-4 sm:px-6 py-5 ring-1 ring-border/40 transition-shadow hover:shadow-md hover:ring-border/70 dark:shadow-[0_1px_6px_rgba(255,255,255,0.04)]",children:s?a.jsx("img",{src:s,alt:i??`${n} logo`,className:`${o??"h-10 sm:h-12 md:h-14"} w-auto max-w-[180px] md:max-w-[200px] object-contain`,loading:"lazy"}):a.jsx("span",{"aria-label":i??n,className:"font-display text-base md:text-lg text-foreground/85 tracking-tight text-center",children:n})},n))}),Vq=1,Uq="b3ceed7c-f37f-4258-a2d3-5c7a826726ef",Wq="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",Hq="/__l5e/assets-v1/b3ceed7c-f37f-4258-a2d3-5c7a826726ef/nilay-shah.png",qq="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/b3ceed7c-f37f-4258-a2d3-5c7a826726ef/nilay-shah.png",Gq="nilay-shah.png",Kq=2282144,Yq="image/png",Jq="2026-06-15T22:36:37Z",Zq={version:Vq,asset_id:Uq,project_id:Wq,url:Hq,r2_key:qq,original_filename:Gq,size:Kq,content_type:Yq,created_at:Jq},Xq=1,Qq="b138046c-e249-4707-8dc6-946c217022d5",eG="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",tG="/__l5e/assets-v1/b138046c-e249-4707-8dc6-946c217022d5/john-waite.png",rG="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/b138046c-e249-4707-8dc6-946c217022d5/john-waite.png",nG="john-waite.png",sG=2269203,aG="image/png",iG="2026-06-15T22:36:48Z",oG={version:Xq,asset_id:Qq,project_id:eG,url:tG,r2_key:rG,original_filename:nG,size:sG,content_type:aG,created_at:iG},lG=1,cG="277f23e7-7a1d-40e6-a42c-a74d49a418f0",dG="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",uG="/__l5e/assets-v1/277f23e7-7a1d-40e6-a42c-a74d49a418f0/olia-filippova.png",hG="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/277f23e7-7a1d-40e6-a42c-a74d49a418f0/olia-filippova.png",fG="olia-filippova.png",mG=2221337,pG="image/png",gG="2026-06-15T22:36:51Z",yG={version:lG,asset_id:cG,project_id:dG,url:uG,r2_key:hG,original_filename:fG,size:mG,content_type:pG,created_at:gG},xG=1,vG="f9a28182-d43a-4ea5-8890-d00af7733ab6",bG="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",wG="/__l5e/assets-v1/f9a28182-d43a-4ea5-8890-d00af7733ab6/room-vibe.jpg",kG="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/f9a28182-d43a-4ea5-8890-d00af7733ab6/room-vibe.jpg",jG="room-vibe.jpg",NG=592046,SG="image/jpeg",CG="2026-06-26T22:18:17Z",_G={version:xG,asset_id:vG,project_id:bG,url:wG,r2_key:kG,original_filename:jG,size:NG,content_type:SG,created_at:CG},TG=1,EG="28a09b56-9ee6-422e-a1f0-5bc5ddf142eb",RG="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",AG="/__l5e/assets-v1/28a09b56-9ee6-422e-a1f0-5bc5ddf142eb/cold-science-hot-market.png",PG="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/28a09b56-9ee6-422e-a1f0-5bc5ddf142eb/cold-science-hot-market.png",OG="cold-science-hot-market.png",DG=1835045,IG="image/png",MG="2026-06-26T22:18:17Z",LG={version:TG,asset_id:EG,project_id:RG,url:AG,r2_key:PG,original_filename:OG,size:DG,content_type:IG,created_at:MG},FG=1,$G="7aaeaf2a-8a58-4a00-a082-55932d50860f",BG="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",zG="/__l5e/assets-v1/7aaeaf2a-8a58-4a00-a082-55932d50860f/make-it-real.jpg",VG="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/7aaeaf2a-8a58-4a00-a082-55932d50860f/make-it-real.jpg",UG="make-it-real.jpg",WG=628327,HG="image/jpeg",qG="2026-06-26T22:18:16Z",GG={version:FG,asset_id:$G,project_id:BG,url:zG,r2_key:VG,original_filename:UG,size:WG,content_type:HG,created_at:qG},KG="/assets/alcom-CawV9Bnq.png",YG="/assets/kita-VStmi9Rt.png",JG="/assets/aeon-blue-DRGubM-4.svg",ZG="/assets/planet-mark-C3iTOqLQ.svg",XG="/assets/undo-D33t79YU.svg",QG="/assets/isometric-U9bDXS0S.svg",eK="/assets/standard-chartered-B3iO8rre.svg",tK="/assets/mati-carbon-CvJslHoS.svg",EA="/assets/tencent-carbonx-Pr4U4bdh.svg",rK="/assets/women-in-carbon-DWUsZvam.svg",nK="/assets/cworthy-ClOWO-qd.svg",sK="/assets/puro-Dx2nszSp.svg",aK="/assets/siemens-9iVpOBga.svg",iK="/assets/deep-sky-CPSOsfz
528-.svg",oK="/assets/crbc-impact-table-BlaSwas2.jpg",lK=e=>{let t=e.match(/[?&]v=([^&]+)/);return t?t[1]:(t=e.match(/youtu\.be\/([^?&]+)/),t?t[1]:"")},gg=[{src:"/images/crbc/seoicure-launch-1.jpg",alt:"Seoi.Cure inaugural Carbon Finance Dinner — Lydia Chen in conversation with guests in a garden lounge"},{src:"/images/crbc/seoicure-launch-2.jpg",alt:"Seoi.Cure launch Carbon Finance Dinner — small-group salon conversation around a curated table"},{src:"/images/crbc/seoicure-launch-3.jpg",alt:"Seoi.Cure inaugural Carbon Finance Dinner — Lydia Chen hosting the long table at the launch dinner"},{src:"/images/crbc/cop-dinner-nov-2024.jpg",alt:"CRBC COP Dinner, Lisbon — November 2024 group portrait around a tiled-wall dining room"},{src:"/images/crbc/canada.jpg",alt:"CRBC Toronto edition — climate builders gathered around a breakfast table"},{src:"/images/crbc/lcaw-erw.jpg",alt:"CRBC LCAW 2025 — Enhanced Rock Weathering edition in London"},{src:"/images/crbc/lcaw-erw-2.jpg",alt:"Small group conversation at CRBC LCAW 2025 ERW edition"},{src:"/images/crbc/lcaw-erw-panel.png",alt:"Panelists in conversation at CRBC LCAW 2025 ERW edition"},{src:"/images/crbc/mcdr-fruitful.png",alt:"Fruitful moments at the CRBC marine CDR fireside"},{src:"/images/crbc/mcdr-room.png",alt:"CRBC marine CDR April 2025 — room of founders, financiers and scientists"},{src:"/images/crbc/mcdr-panel.png",alt:"Panelists at CRBC marine CDR April 2025"},{src:"/images/crbc/biochar-cool.png",alt:"CRBC London Biochar edition — October 2025"},{src:"/images/crbc/biochar-panel.png",alt:"Biochar edition panel discussion, October 2025"},{src:"/images/crbc/canada-table.jpg",alt:"CRBC Toronto edition — founders gathered around a café table"},{src:"/images/crbc/climate-cool-group.jpg",alt:"Group portrait — Let's make climate cool again"}],cK=[{title:"CO₂ → Materials Edition, LCAW 2026",event:"LCAW-listed · London · 25 June 2026",youtubeUrl:"https://youtu.be/YT6ix13EqDg",format:"Full Replay",summary:"How do you make CO₂ useful? And how do you make the process reliable enough to buy, insure and finance?"},{title:"CarbonX Special Edition: Non-Dilutive Grant Funding for CDR",event:"CRBC @ Tencent CarbonX · Online · 20 May 2025",youtubeUrl:"https://www.youtube.com/watch?v=UMagHI7K3GI",format:"Full Replay"},{title:"Grounded Solutions: Biochar's Role in Carbon Removal",event:"Full CRBC Conversation · London · 23 Oct 2025",youtubeUrl:"https://www.youtube.com/watch?v=t94GfVQ2uZQ",format:"Full Replay"},{title:"Rock Solid Removal: Inside the ERW Playbook",event:"CRBC @ LCAW 2025 · London",youtubeUrl:"https://www.youtube.com/watch?v=NWpEH4wqPJc",format:"Full Replay"},{title:"Marine Carbon Removal Fireside Chat",event:"Full Recording · London · 29 April 2025",youtubeUrl:"https://www.youtube.com/watch?v=6KyS-I-5DgM",format:"Full Replay"}],dK=[{date:"25 June 2026",city:"London · LCAW-listed · Caravan Fitzrovia, Record Room",format:"In-Person",theme:"CO₂ → Materials Edition",summary:"Twenty guests around one table, exploring what needs to be true before carbon-to-value pathways become credible, financeable and scalable.",ctas:[{label:"Watch full film",href:"https://youtu.be/YT6ix13EqDg",primary:!0}]},{date:"23 Oct 2025",city:"London, UK",format:"In-Person",theme:"Grounded Solutions — Biochar's role in CDR",summary:"A full CRBC conversation on the science, supply, and market structure of biochar removals.",ctas:[{label:"Watch full replay",href:"https://www.youtube.com/watch?v=t94GfVQ2uZQ",primary:!0},{label:"View photos",href:"#room"}]},{date:"22 July 2025",city:"Toronto, Canada · Maman, First Canadian Place",format:"In-Person",theme:"What's Up, Canada?",summary:"An in-person breakfast bringing together 10–20 founders, investors and policymakers to explore Canada's carbon-removal scene, co-hosted with Canadian climate leaders.",ctas:[{label:"View photos",href:"#room"}]},{date:"25 June 2025",city:"London · LCAW",format:"In-Person",theme:"Rock Solid Removal — the ERW Playbook",summary:"An LCAW 2025 deep-dive on enhanced rock weathering: what scales, what stalls, and what buyers actually want.",ctas:[{label:"Watch full replay",href:"https://www.youtube.com/watch?v=NWpEH4wqPJc",primary:!0},{label:"View photos",href:"#room"}]},{date:"20 May 2025",city:"Online",format:"Virtual",theme:"CarbonX Special Edition",summary:"A small-group interactive webinar, co-hosted with Tencent's CarbonX Program, discussing non-dilutive grant funding for CDR, CCUS/CCU and LDES projects.",partnerLogo:EA,partnerName:"Tencent CarbonX — ecosystem partner",ctas:[{label:"Watch full replay",href:"https://www.youtube.com/watch?v=UMagHI7K3GI",primary:!0}]},{date:"29 April 2025",city:"London, UK",format:"In-Person",theme:"Marine CDR Fireside",summary:"A fireside conversation on ocean-based removals — measurement, durability, and the path to bankable contracts.",ctas:[{label:"Watch full replay",href:"https://www.youtube.com/watch?v=6KyS-I-5DgM",primary:!0},{label:"View photos",href:"#room"}]},{date:"14 Nov 2024",city:"Lisbon, Portugal",format:"In-Person",theme:"COP Dinner — Lisbon",summary:"A pre-COP dinner gathering founders, funders, and policy leads ahead of the year's climate negotiations.",ctas:[{label:"View photos",href:"#room"}]}],uK=[{title:"Small by design",body:"Twenty guests plus one host created enough range for challenge and enough intimacy for everyone to contribute."},{title:"One question worth working on",body:"The room stayed with one market tension: usefulness is not enough unless the process can be repeated, evidenced and financed."},{title:"Deliberately mixed perspectives",body:"Scientists, founders, industrial adopters, buyers, financiers and market-infrastru
528cture voices tested the same problem from different angles."},{title:"Designed participation",body:"Seating, prompts and table roles were planned in advance. Nobody had to fight for airtime or stand alone at the edge."},{title:"Hospitality as trust infrastructure",body:"Proper food, real coffee and unhurried time made it easier to listen, disagree and speak honestly. Hospitality was part of the operating design, not lifestyle decoration."},{title:"The work continued afterwards",body:"Notes, reflections and thoughtful follow-up carried useful conversations beyond breakfast."}],hK=[{name:"Kita Earth",logo:YG,sizeClass:"h-8 sm:h-9 md:h-11",description:"Kita Earth — carbon insurance provider and CRBC sponsor"},{name:"Planet Mark",logo:ZG,sizeClass:"h-20 sm:h-24 md:h-28",description:"Planet Mark — sustainability certification and CRBC sponsor"},{name:"Aeon Blue",logo:JG,sizeClass:"h-20 sm:h-24 md:h-28",description:"Aeon Blue — marine CDR developer and CRBC funding partner"},{name:"Alcom",logo:KG,sizeClass:"h-16 sm:h-18 md:h-22",description:"Alcom — CRBC sponsor"}],fK=[{name:"Women in Carbon",logo:rK,sizeClass:"h-24 sm:h-28 md:h-32",description:"Women in Carbon — global community and CRBC ecosystem partner"},{name:"Tencent CarbonX",logo:EA,sizeClass:"h-28 sm:h-32 md:h-40",description:"Tencent CarbonX — APAC carbon innovation programme and CRBC ecosystem partner"}],mK=[{name:"Isometric",logo:QG,sizeClass:"h-20 sm:h-24 md:h-28",description:"Isometric — carbon removal registry, past CRBC participant"},{name:"Standard Chartered",logo:eK,sizeClass:"h-20 sm:h-24 md:h-28",description:"Standard Chartered — carbon finance team, past CRBC participant"},{name:"UNDO",logo:XG,sizeClass:"h-20 sm:h-24 md:h-28",description:"UNDO — enhanced rock weathering company, past CRBC speaker"},{name:"Mati Carbon",logo:tK,sizeClass:"h-20 sm:h-24 md:h-28",description:"Mati Carbon — enhanced rock weathering developer, past CRBC participant"},{name:"Siemens",logo:aK,sizeClass:"h-20 sm:h-24 md:h-28",description:"Siemens — negative emissions team, past CRBC participant"},{name:"Puro.earth",logo:sK,sizeClass:"h-20 sm:h-24 md:h-28",description:"Puro.earth — durable carbon removal standard, past C
528RBC participant"},{name:"[C]Worthy",logo:nK,sizeClass:"h-20 sm:h-24 md:h-28",description:"[C]Worthy — marine CDR measurement nonprofit, past CRBC speaker"},{name:"Deep Sky",logo:iK,sizeClass:"h-20 sm:h-24 md:h-28",description:"Deep Sky — direct air capture project developer, past CRBC participant"}],pK=({youtubeUrl:e,title:t,className:r=""})=>{const n=lK(e);return a.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer","aria-label":`Watch on YouTube: ${t}`,className:`group relative block overflow-hidden ${r}`,children:[a.jsx("img",{src:`https://img.youtube.com/vi/${n}/hqdefault.jpg`,alt:`Thumbnail for ${t}`,loading:"lazy",className:"w-full aspect-video object-cover transition-transform duration-300 group-hover:scale-105"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/20 transition-colors group-hover:bg-foreground/30",children:a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent text-accent-foreground shadow-lg shadow-accent/30",children:a.jsx(Aa,{className:"h-5 w-5 ml-0.5"})})})]})},yg=e=>t=>{var r;t.preventDefault(),(r=document.getElementById(e))==null||r.scrollIntoView({behavior:"smooth",block:"start"})},Jj=6,gK=()=>{const[e,t]=p.useState(!1),r=eR(),n=e?gg:gg.slice(0,Jj);return a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Carbon Removal Breakfast Club",subtitle:"Small room. Better questions. Proper breakfast."}),a.jsxs("section",{className:"relative overflow-hidden bg-background py-16",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl text-center",children:[a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:"A curated breakfast room for people building, funding, buying and making sense of carbon removal and carbon-to-value markets."}),a.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:[a.jsx(G,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90",children:a.jsxs("a",{href:"#watch-the-room",onClick:yg("watch-the-room"),children:["Watch the room ",a.jsx(qe,{className:"ml-2 h-4 w-4"})]})}),a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx("a",{href:"#partner",onClick:yg("partner"),children:"Partner with a future room"})})]})]})]}),a.jsx("section",{id:"watch-the-room",className:"bg-background py-16 scroll-mt-24",children:a.jsxs("div",{className:"container max-w-3xl",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold",children:"Watch the room"}),a.jsx("h2",{className:"mt-3 font-display text-3xl md:text-4xl font-bold text-foreground",children:"See the room in 65 seconds"}),a.jsx("p",{className:"mt-4 font-display text-lg md:text-xl italic text-foreground leading-snug",children:"How do you make CO₂ useful? And how do you make the process reliable enough to buy, insure and finance?"}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"This is CRBC in practice: one live climate-market question, a carefully chosen mix of people and a room designed for honest working conversation."}),a.jsx("div",{className:"mt-8",children:a.jsx(pd,{videoId:"f3ZL3TkcSEM",title:"Carbon Removal Breakfast Club — 65-second film"})}),a.jsxs("div",{className:"mt-4 flex flex-wrap gap-x-6 gap-y-2 text-sm",children:[a.jsxs("a",{href:"https://youtu.be/YT6ix13EqDg",target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-1",children:["Watch the full film ",a.jsx(qe,{className:"h-3.5 w-3.5"})]}),a.jsxs("a",{href:"https://www.linkedin.com/posts/lichenlydia_climatefinance-saf-lcaw2026-ugcPost-7488253170771668992-ljYP/",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-accent hover:underline inline-flex items-center gap-1",children:["Read Lydia's reflection on LinkedIn ",a.jsx(Ss,{className:"h-3.5 w-3.5"})]})]})]})}),a.jsx("section",{className:"overflow-hidden border-y border-border/40 bg-secondary/20 py-16 md:py-24",children:a.jsx("div",{className:"container max-w-6xl",children:a.jsxs("div",{className:"grid items-center gap-16 lg:grid-cols-[0.72fr_1.28fr] lg:gap-8",children:[a.jsxs(ne.div,{initial:r?!1:{opacity:0,y:12},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.7,ease:"easeOut"},children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-accent",children:"CRBC impact"}),a.jsx("h2",{className:"mt-3 font-display text-3xl font-bold text-foreground md:text-4xl",children:"The room works twice."}),a.jsx("p",{className:"mt-5 max-w-xl font-display text-xl leading-snug text-foreground md:text-2xl",children:"A good Carbon Removal Breakfast Club room bears fruit beyond the breakfast itself."}),a.jsx("div",{className:"mt-8 h-px w-14 bg-accent/50"}),a.jsx("p",{className:"mt-6 max-w-lg text-sm leading-relaxed text-muted-foreground md:text-base",children:"Follow-up conversations, short films, photography, reflections and new next steps can continue working long after the room ends."})]}
528),a.jsxs("div",{className:"relative mx-auto aspect-[6/5] w-full max-w-[44rem] lg:-mr-8","aria-label":"One live question brings people together around a breakfast table, creating follow-up, film, photography and reflection.",children:[a.jsx(ne.div,{className:"absolute inset-[2%_8%] mix-blend-multiply [mask-image:radial-gradient(ellipse_65%_60%_at_center,black_48%,transparent_100%)]",initial:r?!1:{opacity:0,scale:.97,clipPath:"inset(8% 10% 8% 10%)"},whileInView:r?void 0:{opacity:1,scale:1,clipPath:"inset(0% 0% 0% 0%)"},viewport:{once:!0,amount:.35},transition:{duration:1.25,ease:"easeOut"},"aria-hidden":"true",children:a.jsx("img",{src:oK,alt:"",loading:"lazy",width:1200,height:1200,className:"h-full w-full object-contain"})}),a.jsx(ne.div,{className:"absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 rotate-[-3deg] items-center justify-center px-3 py-2 text-center",initial:r?!1:{opacity:0,scale:.9},whileInView:r?void 0:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.65,delay:.55,ease:"easeOut"},children:a.jsxs("span",{className:"font-display text-[8px] font-semibold uppercase leading-snug text-foreground sm:text-[10px]",children:["One live",a.jsx("br",{}),"question"]})}),[{label:"Follow-up",position:"left-[2%] top-[14%]",delay:.9,align:"text-left"},{label:"Film",position:"right-[3%] top-[18%]",delay:1.02,align:"text-right"},{label:"Photography / clips",position:"bottom-[12%] left-[1%]",delay:1.14,align:"text-left"},{label:"Reflection",position:"bottom-[13%] right-[2%]",delay:1.26,align:"text-right"}].map(({label:s,position:i,delay:o,align:l})=>a.jsxs(ne.div,{className:`absolute ${i} ${l}`,initial:r?!1:{opacity:0,y:8},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:o,ease:"easeOut"},children:[a.jsx("span",{className:`mb-2 block h-px w-10 bg-accent/45 ${l==="text-right"?"ml-auto":""}`}),a.jsx("p",{className:"font-display text-sm text-foreground sm:text-base",children:s})]},s)),a.jsx("div",{"aria-hidden":"true",className:"absolute left-[8%] top-[7%] h-7 w-12 rotate-[-12deg] rounded-[60%_40%_55%_45%] bg-accent/10 blur-[1px]"}),a.jsx("div",{"aria-hidden":"true",className:"absolute bottom-[8%] right-[9%] h-8 w-14 rotate-[16deg] rounded-[45%_55%_40%_60%] bg-primary/10 blur-[1px]"})]})]})})}),a.jsx("section",{id:"latest-room",className:"bg-background py-16",children:a.jsx("div",{className:"container max-w-4xl",children:a.jsxs(ne.div,{initial:r?!1:{opacity:0,y:12},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0},className:"glass-card relative overflow-hidden p-8 md:p-10",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold",children:"LCAW-listed · 25 June 2026"}),a.jsx("h2",{className:"mt-3 font-display text-3xl md:text-4xl font-bold text-foreground",children:"CO₂ → Materials Edition"}),a.jsxs("div",{className:"mt-4 flex flex-wrap gap-x-6 gap-y-2 text-sm text-muted-foreground",children:[a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx(e1,{className:"h-4 w-4 text-accent"})," Caravan Fitzrovia, Record Room · London"]}),a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx(Od,{className:"h-4 w-4 text-accent"})," 20 guests + host"]})]}),a.jsx("p",{className:"mt-6 text-foreground leading-relaxed",children:"During London Climate Action Week 2026, 20 guests gathered over breakfast at Caravan Fitzrovia to ask what needs to be true before carbon-to-value pathways become credible, financeable and scalable."}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"The room brought together scientific framing, founder reality, industrial adoption, financeability, buyers, public funding and market infrastructure, all around one proper breakfast table."}),a.jsxs("div",{className:"mt-10",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-muted-foreground font-semibold",children:"After the room"}),a.jsx("p",{className:"mt-3 text-foreground leading-relaxed",children:"The room did not end at breakfast. The conversation became a 65-second film, a full edited conversation and a written reflection, then went back to contributors, participants and selected institutional relationships."}),a.jsxs("div",{className:"mt-4 flex flex-wrap gap-x-6 gap-y-2 text-sm",children:[a.jsxs("a",{href:"https://youtu.be/YT6ix13EqDg",target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-1",children:["Watch the full conversation ",a.jsx(Ss,{className:"h-3.5 w-3.5"})]}),a.jsxs("a",{href:"https://www.linkedin.com/posts/lichenlydia_climatefinance-saf-lcaw2026-ugcPost-7488253170771668992-ljYP/",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-accent hover:underline inline-flex items-center gap-1",children:["Read the reflection ",a.jsx(Ss,{className:"h-3.5 w-3.5"})]})]})]}),a.jsxs("figure",{className:"mt-10 border-l-4 border-accent pl-6",children:[a.jsx("blockquote",{className:"font-display text-xl md:text-2xl italic text-foreground leading-snug",children:"“We are not underwriting the molecule. We are underwriting the process.”"}),a.jsx("figcaption",{className:"mt-3 text-sm text-muted-foreground",children:"— Olia Filippova, during the Make It Real discussion"})]}),a.jsx("div",{className:"mt-10",children:a.jsx(Yj,{ariaLabel:"CO₂ → Materials Edition, LCAW 2026 — moments from the room",images:[{src:_G.url,alt:"Wide view of the Caravan Fitzrovia Record Room: guests at breakfast tables under rattan pendant lights, in conversation around the CRBC LCAW 2026 edition."},{src:LG.url,alt:"Lydia hosting the Cold Science, Hot Market discussion, with Prof. Myles Allen seated nearby holding the microphone."},{src:GG.url,alt:"Lydia, John Waite and Olia Filippova on stools during the Make it Real panel on financeability and carbon-to-value."}]})})]})})}),a.jsx("section",{id:"what-worked",className:"bg-secondary/40 border-y border-border/40 py-16",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold",children:"What made the room work"}),a.jsx("p",{className:"mt-4 max-w-3xl text-foreground leading-relaxed",children:"CRBC is not designed around scale. It is designed around contribution. Every part of the room helps people work on one live market question together."}),a.jsx("div",{className:"mt-10 grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:uK.map((s,i)=>a.jsxs(ne.div,{initial:r?!1:{opacity:0,y:12},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.05},className:"glass-card p-6",children:[a.jsx("h3",{className:"font-display text-lg font-semibold text-foreground",children:s.title}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:s.body})]},s.title))})]})}),a.jsx("section",{id:"quotes",className:"bg-background py-16",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold text-center",children:"What people said"}),a.jsx("div",{className:"mt-8 grid gap-6 md:grid-cols-3",children:["It's the best breakfast I've had in a while.","The whole setup is so natural, the flow and the interaction, thank you.","I was looking for something genuinely relevant to carbon removal."].map(s=>a.jsxs("figure",{className:"glass-card p-6",children:[a.jsxs("blockquote",{className:"font-display text-lg italic text-foreground leading-snug",children:["“",s,"”"]}
528),a.jsx("figcaption",{className:"mt-3 text-xs uppercase tracking-wide text-muted-foreground",children:"CRBC LCAW 2026 participant"})]},s))})]})}),a.jsx("section",{id:"voices",className:"bg-background pb-16",children:a.jsxs("div",{className:"container max-w-3xl",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold",children:"Voices in the room"}),a.jsx("div",{className:"mt-5 flex items-center -space-x-3",children:[{src:Zq.url,alt:"Portrait of Prof. Nilay Shah"},{src:oG.url,alt:"Portrait of John Waite"},{src:yG.url,alt:"Portrait of Olia Filippova"}].map(s=>a.jsx("img",{src:s.src,alt:s.alt,loading:"lazy",className:"h-14 w-14 rounded-full object-cover ring-2 ring-background shadow-sm"},s.src))}),a.jsxs("p",{className:"mt-5 text-foreground leading-relaxed",children:["The table brought together ",a.jsx("strong",{className:"font-medium",children:"Prof. Nilay Shah"}),","," ",a.jsx("strong",{className:"font-medium",children:"Prof. Myles Allen"}),","," ",a.jsx("strong",{className:"font-medium",children:"John Waite"}),","," ",a.jsx("strong",{className:"font-medium",children:"Olia Filippova"}),","," ",a.jsx("strong",{className:"font-medium",children:"Alex Ip"})," and"," ",a.jsx("strong",{className:"font-medium",children:"Ariana from Brineworks"}),", with"," ",a.jsx("strong",{className:"font-medium",children:"Kanchan Yadav"})," on capture and support."]}
528),a.jsx("p",{className:"mt-3 text-foreground leading-relaxed",children:"The mix was deliberate across science, founders, industrial adoption, finance, buyers, public funding and market infrastructure."})]})}),a.jsx("section",{id:"why",className:"bg-secondary/40 border-y border-border/40 py-16",children:a.jsxs("div",{className:"container max-w-3xl",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold",children:"Why CRBC exists"}),a.jsx("h2",{className:"mt-3 font-display text-3xl md:text-4xl font-bold text-foreground",children:"Better rooms, not more events"}),a.jsx("p",{className:"mt-6 font-display text-xl italic text-foreground leading-snug",children:"Carbon removal does not only need more events. It needs better rooms."}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"CRBC creates small, high-trust working rooms where scientists, founders, financiers, buyers, operators and market-infrastructure practitioners can test assumptions before market language runs ahead of the evidence."}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"Smallness is the design advantage: enough perspectives to challenge the question, few enough people for everyone to contribute."}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"The test is not audience size. It is whether the right people leave with a clearer view of what can be built, bought, insured or financed."})]})}),a.jsx("section",{id:"historical-proof",className:"bg-background mt-12",children:a.jsxs("div",{className:"container max-w-6xl",children:[a.jsxs("div",{className:"py-10",children:[a.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-accent font-semibold",children:"Across past CRBC editions"}),a.jsx("h2",{className:"mt-3 font-display text-3xl md:text-4xl font-bold text-foreground",children:"Past sponsors, partners, participants and speakers"}),a.jsx("p",{className:"mt-4 max-w-3xl text-foreground leading-relaxed",children:"Organizations have supported, contributed to or taken part in different CRBC editions in different roles. Those roles are kept separate below."})]}),a.jsxs("div",{className:"py-10 border-t border-border/40",children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-semibold text-foreground",children:"Past CRBC sponsors & funding partners"}),a.jsx("div",{className:"mt-6",children:a.jsx(pg,{logos:hK,ariaLabel:"Past CRBC sponsors and funding partners"})})]}),a.jsxs("div",{className:"py-10 border-t border-border/40",children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-semibold text-foreground",children:"Past CRBC ecosystem partners"}),a.jsx("div",{className:"mt-6",children:a.jsx(pg,{logos:fK,ariaLabel:"Past CRBC ecosystem partners",columnsClass:"grid-cols-2 md:grid-cols-3"})})]}),a.jsxs("div",{id:"participants",className:"py-10 border-t border-border/40",children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-semibold text-foreground",children:"Past participants & speakers"}),a.jsx("div",{className:"mt-6",children:a.jsx(pg,{logos:mK,ariaLabel:"Past CRBC participants and speakers"})}),a.jsx("p",{className:"mt-6 text-xs text-muted-foreground",children:"And many more — full list available on request."})]}),a.jsx("p",{className:"pb-10 text-sm text-muted-foreground italic",children:"Participant and speaker affiliations do not imply sponsorship, funding or institutional endorsement."})]})}),a.jsx("section",{id:"partner",className:"bg-background py-20 scroll-mt-24",children:a.jsx("div",{className:"container max-w-4xl",children:a.jsxs(ne.div,{initial:r?!1:{opacity:0,y:12},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0},className:"glass-card p-8 md:p-10 border-l-4 border-l-accent",children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground",children:"Partner with a future CRBC room"}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"CRBC works best with partners who care about trust, deployment, financeability and better market conversations."}),a.jsx("p",{className:"mt-5 font-display text-xl italic text-foreground leading-snug",children:"The strongest partnerships start with a question, not a campaign."}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"A partner may underwrite, host or contribute knowledge or market infrastru
528cture to a CRBC-led room. Seoi.Cure shapes the question, guest mix and room design so the conversation stays useful, independent and small enough for people to contribute."}),a.jsx("p",{className:"mt-6 text-sm font-semibold uppercase tracking-wide text-muted-foreground",children:"Depending on scope, a partnership may include:"}),a.jsx("ul",{className:"mt-3 grid gap-2 sm:grid-cols-2 text-sm text-foreground",children:["Room and conversation design","Guest curation","Venue and hospitality","Filming and photography","A post-room reflection","Thoughtful follow-up","Clear, accurate acknowledgement of each partner's role"].map(s=>a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 rounded-full bg-accent shrink-0"}),a.jsx("span",{children:s})]},s))}),a.jsx("p",{className:"mt-6 text-sm font-semibold uppercase tracking-wide text-muted-foreground",children:"Partnership structures"}),a.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:["Venue / breakfast partner","Knowledge partner","Market-infrastructure partner","Sponsor / room-underwriting partner","City partner"].map(s=>a.jsx("span",{className:"inline-flex items-center rounded-full border border-accent/40 bg-accent/10 px-3 py-1 text-xs text-foreground",children:s},s))}),a.jsx("p",{className:"mt-6 text-foreground leading-relaxed",children:"Future rooms are considered when the question, contributors and local partner are right."}),a.jsx("p",{className:"mt-6 text-sm text-muted-foreground leading-relaxed border-t border-border/60 pt-5",children:"Commercial CRBC partnerships are scoped around a CRBC-led room. Lydia speaking, moderating, recording a podcast or contributing to another organizer's event or campfire is a separate engagement."}),a.jsx("div",{className:"mt-8 flex flex-wrap gap-3",children:a.jsx(G,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90",children:a.jsxs("a",{href:"/contact?subject=CRBC%20partner",children:[a.jsx(Ra,{className:"mr-2 h-4 w-4"})," Start a partnership conversation"]})})})]})})}),a.jsx("section",{id:"past-editions",className:"bg-background py-20",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground",children:"Past editions & films"}),a.jsx("p",{className:"mt-3 max-w-3xl text-muted-foreground leading-relaxed",children:"A growing record of small rooms working through live questions across carbon removal, deployment and finance."}),a.jsx("ol",{className:"relative mt-12 space-y-8 md:space-y-10 md:before:absolute md:before:left-[11rem] md:before:top-2 md:before:bottom-2 md:before:w-px md:before:bg-border",children:dK.map((s,i)=>a.jsxs(ne.li,{initial:r?!1:{opacity:0,y:10},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{delay:i*.04},className:"relative md:grid md:grid-cols-[11rem_1fr] md:gap-8",children:[a.jsxs("div",{className:"md:pt-1 md:text-right md:pr-4",children:[a.jsxs("p",{className:"font-display text-base font-semibold text-foreground inline-flex md:flex md:justify-end items-center gap-1.5",children:[a.jsx(sc,{className:"h-3.5 w-3.5 text-accent md:hidden"}),s.date]}),a.jsxs("p",{className:"mt-1 text-xs uppercase tracking-wide text-muted-foreground inline-flex md:flex md:justify-end items-center gap-1.5",children:[a.jsx(e1,{className:"h-3 w-3 text-accent md:hidden"}),s.city]})]}),a.jsx("span",{"aria-hidden":!0,className:"hidden md:block absolute left-[11rem] top-2 -translate-x-1/2 h-3 w-3 rounded-full bg-accent ring-4 ring-background"}),a.jsxs("div",{className:"glass-card mt-3 md:mt-0 p-6",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.format&&a.jsx(Ot,{variant:s.format==="Virtual"?"secondary":"outline",className:`text-[10px] uppercase tracking-wide ${s.format==="In-Person"?"border-accent/40 text-accent":""}`,children:s.format}),a.jsx("h3",{className:"font-display text-lg md:text-xl font-semibold text-foreground",children:s.theme}),s.upcoming&&a.jsx(Ot,{className:"bg-accent text-accent-foreground hover:bg-accent/90",children:"Upcoming"})]}),a.jsx("p",{className:"mt-2 text-sm md:text-base text-muted-foreground leading-relaxed",children:s.summary}),s.partnerLogo&&a.jsxs("div",{className:"mt-4 flex items-center gap-3",children:[a.jsx("img",{src:s.partnerLogo,alt:s.partnerName??"Partner logo",className:"h-6 w-auto opacity-80",loading:"lazy"}),s.partnerName&&a.jsx("span",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:s.partnerName})]}),s.ctas.length>0&&a.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:s.ctas.map(o=>{const l=/^https?:\/\//.test(o.href);return a.jsx(G,{asChild:!0,size:"sm",variant:o.primary?"default":"outline",className:o.primary?"bg-accent text-accent-foreground hover:bg-accent/90":"",children:a.jsxs("a",{href:o.href,...l?{target:"_blank",rel:"noopener noreferrer"}:{onClick:o.href.startsWith("#")?yg(o.href.slice(1)):void 0},children:[o.label,l&&a.jsx(Ss,{className:"ml-1.5 h-3 w-3"})]})},o.label)})})]})]},`${s.date}-${s.theme}`))})]})}),a.jsx("section",{id:"room",className:"bg-background pb-4",children:a.jsxs("div",{className:"container max-w-6xl my-8 md:my-12",children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground text-center",children:"What the room feels like"}),a.jsx("p",{className:"mt-2 text-center text-sm text-muted-foreground",children:"Moments from past CRBC editions — London, Toronto, and beyond."}),a.jsx("div",{className:"mt-8",children:a.jsx(Yj,{images:n,ariaLabel:"CRBC event photos"})}),gg.length>Jj&&a.jsx("div",{className:"mt-6 flex justify-center",children:a.jsxs(G,{variant:"outline",onClick:()=>t(s=>!s),children:[a.jsx(C3,{className:"mr-2 h-4 w-4"}),e?"Show fewer moments":"View more moments"]})})]})}),a.jsx("section",{id:"watch",className:"bg-background py-20",children:a.jsxs("div",{className:"container max-w-5xl",children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground",children:"Recording library"}),a.jsx("p",{className:"mt-3 text-muted-foreground",children:"Full-length recordings from recent CRBC editions."}),a.jsx("div",{className:"mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:cK.map(s=>a.jsxs(ne.article,{initial:r?!1:{opacity:0,y:10},whileInView:r?void 0:{opacity:1,y:0},viewport:{once:!0},className:"glass-card overflow-hidden flex flex-col",children:[a.jsx(pK,{youtubeUrl:s.youtubeUrl,title:s.title}),a.jsxs("div",{className:"p-4 flex flex-col flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ot,{variant:"secondary",className:"text-[10px] uppercase tracking-wide",children:s.format}),s.duration&&a.jsx("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:s.duration})]}),a.jsx("h3",{className:"mt-2 font-display text-base font-semibold text-foreground leading-snug",children:s.title}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:s.event}),s.summary&&a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:s.summary}),a.jsx(G,{asChild:!0,size:"sm",variant:"outline",className:"mt-4 self
528-start text-xs",children:a.jsxs("a",{href:s.youtubeUrl,target:"_blank",rel:"noopener noreferrer",children:["Watch full film ",a.jsx(Ss,{className:"ml-1 h-3 w-3"})]})})]})]},s.youtubeUrl))}),a.jsx("div",{className:"mt-8",children:a.jsxs("a",{href:"https://www.youtube.com/@CarbonRemovalBreakfastClub",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-accent hover:underline inline-flex items-center gap-2",children:[a.jsx(z3,{className:"h-4 w-4"})," View all CRBC films on YouTube",a.jsx(Ss,{className:"h-3 w-3"})]})})]})}),a.jsx("section",{className:"bg-background py-20",children:a.jsxs("div",{className:"container max-w-3xl",children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground leading-snug",children:"Have a question worth putting around one table?"}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"If there is a live climate-market question that needs the right people in one room, start with the question."}),a.jsxs("div",{className:"mt-8 glass-card p-8",children:[a.jsx("p",{className:"font-display text-lg font-semibold text-foreground",children:"Lydia Chen"}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Founder, Seoi.Cure and Carbon Removal Breakfast Club"}),a.jsxs("div",{className:"mt-5 flex flex-wrap items-center gap-4",children:[a.jsx(G,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90",children:a.jsxs("a",{href:"/contact?subject=CRBC%20partner",children:[a.jsx(Ra,{className:"mr-2 h-4 w-4"})," Start a conversation"]})}),a.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-sm text-accent hover:underline",children:[a.jsx(Ra,{className:"h-4 w-4"})," [email protected]"]})]})]})]})})]})},yK=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Climate Cupid",subtitle:"A Seoi.Cure pilot exploring better matching between decarbonization founders and aligned funders."}),a.jsxs("section",{className:"relative overflow-hidden py-16 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl space-y-10",children:[a.jsxs("div",{className:"rounded-xl border border-accent/30 bg-accent/10 p-5 flex items-start gap-3",children:[a.jsx(u3,{className:"h-5 w-5 text-accent shrink-0 mt-0.5","aria-hidden":"true"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-display text-base font-semibold text-foreground",children:"Pilot currently closed"}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground leading-relaxed",children:"Climate Cupid is an archived Seoi.Cure pilot. It is not currently an active matching service. The concept and lessons continue to inform how we design curated rooms and conversations across the wider Seoi.Cure work."})]})]}),a.jsxs(ne.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"space-y-4",children:[a.jsx(S3,{className:"h-10 w-10 text-accent"}),a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground",children:"What Climate Cupid explored"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Climate Cupid was an experiment in using structured criteria to help decarbonization founders and investors find more relevant conversations. The pilot tested how narrative clarity, technology framing and stage-fit could make founder-funder introductions more informed."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"The pilot does not currently offer live matching, guaranteed introductions or a transactional platform. If narrative and financeability clarity is what you are looking for, that work now lives inside the main Seoi.Cure engagements."})]}),a.jsx("div",{className:"rounded-xl border border-border/60 bg-secondary/30 p-6",children:a.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["Interested in the current active work? See"," ",a.jsx("a",{href:"/services",className:"text-accent hover:underline underline-offset-4",children:"Work With Us"})," ","or the"," ",a.jsx("a",{href:"/carbon-removal-breakfast-club",className:"text-accent hover:underline underline-offset-4",children:"Carbon Removal Breakfast Club"}),"."]})})]})]})]}),ot=p.forwardRef(({className:e,type:t,...r},n)=>
528a.jsx("input",{type:t,className:Z("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",e),ref:n,...r}));ot.displayName="Input";const As=p.forwardRef(({className:e,...t},r)=>a.jsx("textarea",{className:Z("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background 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",e),ref:r,...t}));As.displayName="Textarea";var xK="Label",RA=p.forwardRef((e,t)=>a.jsx(me.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));RA.displayName=xK;var AA=RA;const vK=Ed("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ne=p.forwardRef(({className:e,...t},r)=>a.jsx(AA,{ref:r,className:Z(vK(),e),...t}));Ne.displayName=AA.displayName;const bK=[{value:"Market-Ready Narrative",label:"Market-Ready Narrative"},{value:"Climate-to-Credit / Financeability",label:"Climate-to-Credit / Financeability"},{value:"CRBC Partnership / Sponsorship",label:"CRBC Partnership / Sponsorship"},{value:"East-West Delegation",label:"East-West Delegation"},{value:"Other",label:"Other"}],wK={"market-ready narrative":"Market-Ready Narrative",financeability:"Climate-to-Credit / Financeability","climate-to-credit / financeability":"Climate-to-Credit / Financeability","crbc partner":"CRBC Partnership / Sponsorship","crbc partnership / sponsorship":"CRBC Partnership / Sponsorship","east-west delegation":"East-West Delegation",other:"Other"},kK=e=>e?wK[e.trim().toLowerCase()]??"":"",jK=({title:e="Get in touch"})=>{const{toast:t}=Xf(),[r]=sb(),n=kK(r.get("subject")),[s,i]=p.useState(n),[o,l]=p.useState(!1),[c,d]=p.useState(""),[u,h]=p.useState(!1),f=async m=>{m.preventDefault();const x=new FormData(m.currentTarget),y=x.get("name"),v=x.get("email"),b=x.get("company"),g=x.get("message"),w=x.get("website_url"),k=x.get("inquiry_type")||"";if(w){h(!0);return}if(!k){t({title:"Please select an inquiry type",variant:"destructive"});return}l(!0),d("Sending your message…");const j=`[${k}]
529
530${g.trim()}`,{error:S}=await Mt.from("contact_messages").insert({name:y.trim(),email:v.trim(),company:(b==null?void 0:b.trim())||null,message:j,source_page:window.location.pathname+window.location.search});if(l(!1),S){d("Error sending message."),t({title:"Something went wrong",description:"Please try again in a moment.",variant:"destructive"});return}d("Message sent. We'll be in touch shortly."),h(!0)};return u?a.jsxs("div",{className:"rounded-xl bg-accent/10 border border-accent/20 p-8 text-center animate-in fade-in zoom-in duration-300",children:[a.jsx(Ad,{className:"mx-auto h-10 w-10 text-primary mb-4"}),a.jsx("h3",{className:"font-display text-xl font-semibold text-foreground mb-2",children:"Message received"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Thank you for reaching out. We've received your message and will be in touch shortly."})]}):a.jsxs("form",{onSubmit:f,className:"space-y-5",noValidate:!0,children:[a.jsx("h2",{className:"font-display text-xl font-semibold text-foreground",children:e}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"inquiry_type",children:["What is this about? ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsxs("select",{id:"inquiry_type",name:"inquiry_type",required:!0,"aria-required":"true",value:s,onChange:m=>i(m.target.value),className:"glass-input flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",children:[a.jsx("option",{value:"",disabled:!0,children:"Select an inquiry type…"}),bK.map(m=>a.jsx("option",{value:m.value,children:m.label},m.value))]})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"name",children:["Name ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"name",name:"name",required:!0,"aria-required":"true",placeholder:"Your name",className:"glass-input"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"email",children:["Email ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"email",name:"email",type:"email",required:!0,"aria-required":"true",placeholder:"[email protected]",className:"glass-input"})]})]}),a.jsxs("div",{className:"absolute left-[-9999px] top-[-9999px]","aria-hidden":"true",children:[a.jsx(Ne,{htmlFor:"website_url",children:"Website"}),a.jsx(ot,{id:"website_url",name:"website_url",tabIndex:-1,autoComplete:"off"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{htmlFor:"company",children:"Company / Project"}),a.jsx(ot,{id:"company",name:"company",placeholder:"Company or project name",className:"glass-input"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"message",children:["Message ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(As,{id:"message",name:"message",required:!0,"aria-required":"true",placeholder:"How can we help?",rows:4,className:"glass-input"})]}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})," Required fields. We'll only use your details to respond to your message — see our"," ",a.jsx("a",{href:"/privacy",className:"underline hover:text-foreground",children:"privacy policy"}),"."]}),a.jsx(G,{type:"submit",disabled:o,className:"w-full bg-accent text-accent-foreground hover:bg-accent/90 shadow-md shadow-accent/20",children:o?"Sending…":"Send Message"}),a.jsx("div",{role:"status","aria-live":"polite",className:"sr-only",children:c})]})},NK=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e}),SK={"Market-Ready Narrative":"Discuss narrative work",Financeability:"Discuss a climate-to-credit project","CRBC partner":"Partner with a future CRBC room","East-West Delegation":"Register interest in the East-West delegation"},CK=()=>{const[e]=sb(),t=e.get("subject"),r=t?SK[t]??"Get in touch":"Get in touch";return a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Contact",subt
vendor: 3,117 bytes, line 530
530itle:"Choose the most relevant starting point: a Market-Ready Narrative, a Climate-to-Credit Review, or a CRBC partnership."}),a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[12%] right-[8%] w-[500px] h-[500px] rounded-full opacity-[0.08] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 65%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[55%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(176 44% 55%), transparent 70%)"}})]}),a.jsx(Oe,{}),a.jsx("section",{className:"max-w-lg mx-auto px-6 py-16 md:py-24",children:a.jsx(NK,{children:a.jsx("div",{className:"glass-card p-8 md:p-10",children:a.jsx(jK,{title:r})})})})]})},_K=()=>{const e=hs();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),a.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),a.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),a.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})};var We;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(l=>typeof s[s[l]]!="number"),o={};for(const l of i)o[l]=s[l];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(We||(We={}));var Zj;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Zj||(Zj={}));const he=We.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),sa=e=>{switch(typeof e){case"undefined":return he.undefined;case"string":return he.string;case"number":return Number.isNaN(e)?he.nan:he.number;case"boolean":return he.boolean;case"function":return he.function;case"bigint":return he.bigint;case"symbol":return he.symbol;case"object":return Array.isArray(e)?he.array:e===null?he.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?he.promise:typeof Map<"u"&&e instanceof Map?he.map:typeof Set<"u"&&e instanceof Set?he.set:typeof Date<"u"&&e instanceof Date?he.date:he.object;default:return he.unknown}}
vendor: 4,365 bytes, line 530
530,Y=We.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 zs extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(i){return i.message},n={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let l=n,c=0;for(;c<o.path.length;){const d=o.path[c];c===o.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(r(o))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return s(this),n}static assert(t){if(!(t instanceof zs))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,We.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];r[i]=r[i]||[],r[i].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}zs.create=e=>new zs(e);const kx=(e,t)=>{let r;switch(e.code){case Y.invalid_type:e.received===he.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,We.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:r=`Unrecognized key(s) in object: ${We.joinValues(e.keys,", ")}`;break;case Y.invalid_union:r="Invalid input";break;case Y.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${We.joinValues(e.options)}`;break;case Y.invalid_enum_value:r=`Invalid enum value. Expected ${We.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:r="Invalid function arguments";break;case Y.invalid_return_type:r="Invalid function return type";break;case Y.invalid_date:r="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:We.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Y.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Y.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Y.custom:r="Invalid input";break;
vendor: 7,530 bytes, line 530
530case Y.invalid_intersection_types:r="Intersection results could not be merged";break;case Y.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:r="Number must be finite";break;default:r=t.defaultError,We.assertNever(e)}return{message:r}};let TK=kx;function EK(){return TK}const RK=e=>{const{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let l="";const c=n.filter(d=>!!d).slice().reverse();for(const d of c)l=d(o,{data:t,defaultError:l}).message;return{...s,path:i,message:l}};function re(e,t){const r=EK(),n=RK({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===kx?void 0:kx].filter(s=>!!s)});e.common.issues.push(n)}class $r{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const s of r){if(s.status==="aborted")return ve;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const s of r){const i=await s.key,o=await s.value;n.push({key:i,value:o})}return $r.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const s of r){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return ve;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}}const ve=Object.freeze({status:"aborted"}),cc=e=>({status:"dirty",value:e}),sn=e=>({status:"valid",value:e}),Xj=e=>e.status==="aborted",Qj=e=>e.status==="dirty",fl=e=>e.status==="valid",bf=e=>typeof Promise<"u"&&e instanceof Promise;var fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(fe||(fe={}));class za{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,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 eN=(e,t)=>{if(fl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new zs(e.common.issues);return this._error=r,this._error}}};function Re(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,l)=>{const{message:c}=e;return o.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??n??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:c??r??l.defaultError}},description:s}}class Fe{get description(){return this._def.description}_getType(t){return sa(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:sa(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new $r,ctx:{common:t.parent.common,data:t.data,parsedType:sa(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(bf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sa(t)},s=this._parseSync({data:t,path:n.path,parent:n});return eN(n,s)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sa(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return fl(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(s=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>fl(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sa(t)},s=this._parse({data:t,path:n.path,parent:n}),i=await(bf(s)?s:Promise.resolve(s));return eN(n,i)}refine(t,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{const o=t(s),l=()=>i.addIssue({code:Y.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new pl({schema:this,typeName:be.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Oa.create(this,this._def)}nullable(){return gl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return is.create(this)}promise(){return Nf.create(this,this._def)}or(t){return kf.create([this,t],this._def)}and(t){return jf.create(this,t,this._def)}transform(t){return new pl({...Re(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Nx({...Re(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new QK({typeName:be.ZodBranded,type:this,...Re(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Sx({...Re(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Jb.create(this,t)}readonly(){return Cx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const AK=/^c[^\s-]{8,}
vendor: 3,475 bytes, line 530
530$/i,PK=/^[0-9a-z]+$/,OK=/^[0-9A-HJKMNP-TV-Z]{26}$/i,DK=/^[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,IK=/^[a-z0-9_-]{21}$/i,MK=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LK=/^[-+]?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)?)??$/,FK=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$K="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xg;const BK=/^(?:(?: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])$/,zK=/^(?:(?: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])$/,VK=/^(([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]))$/,UK=/^(([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])$/,WK=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,HK=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,PA="((\\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])))",qK=new RegExp(`^${PA}$`);function OA(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function GK(e){return new RegExp(`^${OA(e)}$`)}function KK(e){let t=`${PA}T${OA(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function YK(e,t){return!!((t==="v4"||!t)&&BK.test(e)||(t==="v6"||!t)&&VK.test(e))}function JK(e,t){if(!MK.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}
vendor: 7,144 bytes, line 530
530function ZK(e,t){return!!((t==="v4"||!t)&&zK.test(e)||(t==="v6"||!t)&&UK.test(e))}class wa extends Fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==he.string){const i=this._getOrReturnCtx(t);return re(i,{code:Y.invalid_type,expected:he.string,received:i.parsedType}),ve}const n=new $r;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:Y.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:Y.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(s=this._getOrReturnCtx(t,s),o?re(s,{code:Y.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&re(s,{code:Y.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")FK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"email",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")xg||(xg=new RegExp($K,"u")),xg.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"emoji",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")DK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"uuid",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")IK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"nanoid",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")AK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"cuid",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")PK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"cuid2",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")OK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"ulid",code:Y.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),re(s,{validation:"url",code:Y.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"regex",code:Y.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),re(s,{code:Y.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),re(s,{code:Y.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),re(s,{code:Y.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?KK(i).test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{code:Y.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?qK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{code:Y.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?GK(i).test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{code:Y.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?LK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"duration",code:Y.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?YK(t.data,i.version)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"ip",code:Y.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?JK(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"jwt",code:Y.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?ZK(t.data,i.version)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"cidr",code:Y.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?WK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"base64",code:Y.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?HK.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"base64url",code:Y.invalid_string,message:i.message}),n.dirty()):We.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:Y.invalid_string,...fe.errToObj(n)})}_addCheck(t){return new wa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...fe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...fe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...fe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...fe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...fe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...fe.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...fe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...fe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...fe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...fe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...fe.errToObj(r)})}nonempty(t){return this.min(1,fe.errToObj(t))}trim(){return new wa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,664 bytes, line 530
530get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}wa.create=e=>new wa({checks:[],typeName:be.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Re(e)});function XK(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}class gd extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==he.number){const i=this._getOrReturnCtx(t);return re(i,{code:Y.invalid_type,expected:he.number,received:i.parsedType}),ve}let n;const s=new $r;for(const i of this._def.checks)i.kind==="int"?We.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),re(n,{code:Y.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:Y.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:Y.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?XK(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),re(n,{code:Y.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),re(n,{code:Y.not_finite,message:i.message}),s.dirty()):We.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,fe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,fe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,fe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,fe.toString(r))}setLimit(t,r,n,s){return new gd({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:fe.toString(s)}]})}_addCheck(t){return new gd({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fe.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&We.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 4,387 bytes, line 530
530}gd.create=e=>new gd({checks:[],typeName:be.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Re(e)});class yd extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==he.bigint)return this._getInvalidInput(t);let n;const s=new $r;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:Y.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:Y.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),re(n,{code:Y.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):We.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return re(r,{code:Y.invalid_type,expected:he.bigint,received:r.parsedType}),ve}gte(t,r){return this.setLimit("min",t,!0,fe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,fe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,fe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,fe.toString(r))}setLimit(t,r,n,s){return new yd({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:fe.toString(s)}]})}_addCheck(t){return new yd({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}yd.create=e=>new yd({checks:[],typeName:be.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Re(e)});class tN extends Fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==he.boolean){const n=this._getOrReturnCtx(t);return re(n,{code:Y.invalid_type,expected:he.boolean,received:n.parsedType}),ve}return sn(t.data)}}tN.create=e=>new tN({typeName:be.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Re(e)});class wf extends Fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==he.date){const i=this._getOrReturnCtx(t);return re(i,{code:Y.invalid_type,expected:he.date,received:i.parsedType}),ve}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return re(i,{code:Y.invalid_date}),ve}const n=new $r;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:Y.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:Y.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):We.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new wf({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:fe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:fe.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}wf.create=e=>new wf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:be.ZodDate,...Re(e)});class rN extends Fe{_parse(t){if(this._getType(t)!==he.symbol){const n=this._getOrReturnCtx(t);return re(n,{code:Y.invalid_type,expected:he.symbol,received:n.parsedType}),ve}return sn(t.data)}}rN.create=e=>new rN({typeName:be.ZodSymbol,...Re(e)});
vendor: 8,267 bytes, line 530
530class nN extends Fe{_parse(t){if(this._getType(t)!==he.undefined){const n=this._getOrReturnCtx(t);return re(n,{code:Y.invalid_type,expected:he.undefined,received:n.parsedType}),ve}return sn(t.data)}}nN.create=e=>new nN({typeName:be.ZodUndefined,...Re(e)});class sN extends Fe{_parse(t){if(this._getType(t)!==he.null){const n=this._getOrReturnCtx(t);return re(n,{code:Y.invalid_type,expected:he.null,received:n.parsedType}),ve}return sn(t.data)}}sN.create=e=>new sN({typeName:be.ZodNull,...Re(e)});class aN extends Fe{constructor(){super(...arguments),this._any=!0}_parse(t){return sn(t.data)}}aN.create=e=>new aN({typeName:be.ZodAny,...Re(e)});class iN extends Fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return sn(t.data)}}iN.create=e=>new iN({typeName:be.ZodUnknown,...Re(e)});class Va extends Fe{_parse(t){const r=this._getOrReturnCtx(t);return re(r,{code:Y.invalid_type,expected:he.never,received:r.parsedType}),ve}}Va.create=e=>new Va({typeName:be.ZodNever,...Re(e)});class oN extends Fe{_parse(t){if(this._getType(t)!==he.undefined){const n=this._getOrReturnCtx(t);return re(n,{code:Y.invalid_type,expected:he.void,received:n.parsedType}),ve}return sn(t.data)}}oN.create=e=>new oN({typeName:be.ZodVoid,...Re(e)});class is extends Fe{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==he.array)return re(r,{code:Y.invalid_type,expected:he.array,received:r.parsedType}),ve;if(s.exactLength!==null){const o=r.data.length>s.exactLength.value,l=r.data.length<s.exactLength.value;(o||l)&&(re(r,{code:o?Y.too_big:Y.too_small,minimum:l?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(re(r,{code:Y.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(re(r,{code:Y.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,l)=>s.type._parseAsync(new za(r,o,r.path,l)))).then(o=>$r.mergeArray(n,o));const i=[...r.data].map((o,l)=>s.type._parseSync(new za(r,o,r.path,l)));return $r.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new is({...this._def,minLength:{value:t,message:fe.toString(r)}})}max(t,r){return new is({...this._def,maxLength:{value:t,message:fe.toString(r)}})}length(t,r){return new is({...this._def,exactLength:{value:t,message:fe.toString(r)}})}nonempty(t){return this.min(1,t)}}is.create=(e,t)=>new is({type:e,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...Re(t)});function ho(e){if(e instanceof wt){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Oa.create(ho(n))}return new wt({...e._def,shape:()=>t})}else return e instanceof is?new is({...e._def,type:ho(e.element)}):e instanceof Oa?Oa.create(ho(e.unwrap())):e instanceof gl?gl.create(ho(e.unwrap())):e instanceof Bi?Bi.create(e.items.map(t=>ho(t))):e}class wt extends Fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=We.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==he.object){const d=this._getOrReturnCtx(t);return re(d,{code:Y.invalid_type,expected:he.object,received:d.parsedType}),ve}const{status:n,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Va&&this._def.unknownKeys==="strip"))for(const d in s.data)o.includes(d)||l.push(d);const c=[];for(const d of o){const u=i[d],h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new za(s,h,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof Va){const d=this._def.unknownKeys;if(d==="passthrough")for(const u of l)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(d==="strict")l.length>0&&(re(s,{code:Y.unrecognized_keys,keys:l}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const u of l){const h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new za(s,h,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const d=[];for(const u of c){const h=await u.key,f=await u.value;d.push({key:h,value:f,alwaysSet:u.alwaysSet})}return d}).then(d=>$r.mergeObjectSync(n,d)):$r.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return fe.errToObj,new wt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:fe.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new wt({...this._def,unknownKeys:"strip"})}passthrough(){return new wt({...this._def,unknownKeys:"passthrough"})}extend(t){return new wt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new wt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:be.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new wt({...this._def,catchall:t})}pick(t){const r={};for(const n of We.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new wt({...this._def,shape:()=>r})}omit(t){const r={};for(const n of We.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new wt({...this._def,shape:()=>r})}deepPartial(){return ho(this)}partial(t){const r={};for(const n of We.objectKeys(this.shape)){const s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new wt({...this._def,shape:()=>r})}required(t){const r={};for(const n of We.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Oa;)i=i._def.innerType;r[n]=i}return new wt({...this._def,shape:()=>r})}keyof(){return DA(We.objectKeys(this.shape))}}wt.create=(e,t)=>new wt({shape:()=>e,unknownKeys:"strip",catchall:Va.create(),typeName:be.ZodObject,...Re(t)});wt.strictCreate=(e,t)=>new wt({shape:()=>e,unknownKeys:"strict",catchall:Va.create(),typeName:be.ZodObject,...Re(t)});wt.lazycreate=(e,t)=>new wt({shape:e,unknownKeys:"strip",catchall:Va.create(),typeName:be.ZodObject,...Re(t)});class kf extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t),n=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 r.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new zs(l.ctx.common.issues));return re(r,{code:Y.invalid_union,unionErrors:o}),ve}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of n){const d={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:d});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new zs(c));return re(r,{code:Y.invalid_union,unionErrors:l}),ve}}get options(){return this._def.options}}kf.create=(e,t)=>new kf({options:e,typeName:be.ZodUnion,...Re(t)});function jx(e,t){const r=sa(e),n=sa(t);if(e===t)return{valid:!0,data:e};if(r===he.object&&n===he.object){const s=We.objectKeys(t),i=We.objectKeys(e).filter(l=>s.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=jx(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(r===he.array&&n===he.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=jx(o,l);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===he.date&&n===he.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class jf extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=(i,o)=>
vendor: 4,172 bytes, line 530
530{if(Xj(i)||Xj(o))return ve;const l=jx(i.value,o.value);return l.valid?((Qj(i)||Qj(o))&&r.dirty(),{status:r.value,value:l.data}):(re(n,{code:Y.invalid_intersection_types}),ve)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}jf.create=(e,t,r)=>new jf({left:e,right:t,typeName:be.ZodIntersection,...Re(r)});class Bi extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==he.array)return re(n,{code:Y.invalid_type,expected:he.array,received:n.parsedType}),ve;if(n.data.length<this._def.items.length)return re(n,{code:Y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ve;!this._def.rest&&n.data.length>this._def.items.length&&(re(n,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new za(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>$r.mergeArray(r,o)):$r.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new Bi({...this._def,rest:t})}}Bi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bi({items:e,typeName:be.ZodTuple,rest:null,...Re(t)})};class lN extends Fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==he.map)return re(n,{code:Y.invalid_type,expected:he.map,received:n.parsedType}),ve;const s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([l,c],d)=>({key:s._parse(new za(n,l,n.path,[d,"key"])),value:i._parse(new za(n,c,n.path,[d,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const d=await c.key,u=await c.value;if(d.status==="aborted"||u.status==="aborted")return ve;(d.status==="dirty"||u.status==="dirty")&&r.dirty(),l.set(d.value,u.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const c of o){const d=c.key,u=c.value;if(d.status==="aborted"||u.status==="aborted")return ve;(d.status==="dirty"||u.status==="dirty")&&r.dirty(),l.set(d.value,u.value)}return{status:r.value,value:l}}}}lN.create=(e,t,r)=>new lN({valueType:t,keyType:e,typeName:be.ZodMap,...Re(r)});class xd extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==he.set)return re(n,{code:Y.invalid_type,expected:he.set,received:n.parsedType}),ve;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(re(n,{code:Y.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(re(n,{code:Y.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const i=this._def.valueType;function o(c){const d=new Set;for(const u of c){if(u.status==="aborted")return ve;u.status==="dirty"&&r.dirty(),d.add(u.value)}return{status:r.value,value:d}}const l=[...n.data.values()].map((c,d)=>i._parse(new za(n,c,n.path,d)));return n.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,r){return new xd({...this._def,minSize:{value:t,message:fe.toString(r)}})}max(t,r){return new xd({...this._def,maxSize:{value:t,message:fe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}xd.create=(e,t)=>new xd({valueType:e,minSize:null,maxSize:null,typeName:be.ZodSet,...Re(t)});class cN extends Fe{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}cN.create=(e,t)=>new cN({getter:e,typeName:be.ZodLazy,...Re(t)});class dN extends Fe{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return re(r,{received:r.data,code:Y.invalid_literal,expected:this._def.value}),ve}
vendor: 4,521 bytes, line 530
530return{status:"valid",value:t.data}}get value(){return this._def.value}}dN.create=(e,t)=>new dN({value:e,typeName:be.ZodLiteral,...Re(t)});function DA(e,t){return new ml({values:e,typeName:be.ZodEnum,...Re(t)})}class ml extends Fe{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return re(r,{expected:We.joinValues(n),received:r.parsedType,code:Y.invalid_type}),ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return re(r,{received:r.data,code:Y.invalid_enum_value,options:n}),ve}return sn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return ml.create(t,{...this._def,...r})}exclude(t,r=this._def){return ml.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}ml.create=DA;class uN extends Fe{_parse(t){const r=We.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==he.string&&n.parsedType!==he.number){const s=We.objectValues(r);return re(n,{expected:We.joinValues(s),received:n.parsedType,code:Y.invalid_type}),ve}if(this._cache||(this._cache=new Set(We.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=We.objectValues(r);return re(n,{received:n.data,code:Y.invalid_enum_value,options:s}),ve}return sn(t.data)}get enum(){return this._def.values}}uN.create=(e,t)=>new uN({values:e,typeName:be.ZodNativeEnum,...Re(t)});class Nf extends Fe{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==he.promise&&r.common.async===!1)return re(r,{code:Y.invalid_type,expected:he.promise,received:r.parsedType}),ve;const n=r.parsedType===he.promise?r.data:Promise.resolve(r.data);return sn(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Nf.create=(e,t)=>new Nf({type:e,typeName:be.ZodPromise,...Re(t)});class pl extends Fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{re(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async l=>{if(r.value==="aborted")return ve;const c=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return c.status==="aborted"?ve:c.status==="dirty"||r.value==="dirty"?cc(c.value):c});{if(r.value==="aborted")return ve;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?ve:l.status==="dirty"||r.value==="dirty"?cc(l.value):l}}if(s.type==="refinement"){const o=l=>{const c=s.refinement(l,i);if(n.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(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?ve:(l.status==="dirty"&&r.dirty(),o(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?ve:(l.status==="dirty"&&r.dirty(),o(l.value).then(()=>({status:r.value,value:l.value}))))}if(s.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!fl(o))return ve;const l=s.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>fl(o)?Promise.resolve(s.transform(o.value,i)).then(l=>({status:r.value,value:l})):ve);We.assertNever(s)}}pl.create=(e,t,r)=>new pl({schema:e,typeName:be.ZodEffects,effect:t,...Re(r)});pl.createWithPreprocess=(e,t,r)=>new pl({schema:t,effect:{type:"preprocess",transform:e},typeName:be.ZodEffects,...Re(r)});class Oa extends Fe{_parse(t){return this._getType(t)===he.undefined?sn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Oa.create=(e,t)=>
vendor: 4,877 bytes, line 530
530new Oa({innerType:e,typeName:be.ZodOptional,...Re(t)});class gl extends Fe{_parse(t){return this._getType(t)===he.null?sn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gl.create=(e,t)=>new gl({innerType:e,typeName:be.ZodNullable,...Re(t)});class Nx extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===he.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Nx.create=(e,t)=>new Nx({innerType:e,typeName:be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Re(t)});class Sx extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return bf(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new zs(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new zs(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Sx.create=(e,t)=>new Sx({innerType:e,typeName:be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Re(t)});class hN extends Fe{_parse(t){if(this._getType(t)!==he.nan){const n=this._getOrReturnCtx(t);return re(n,{code:Y.invalid_type,expected:he.nan,received:n.parsedType}),ve}return{status:"valid",value:t.data}}}hN.create=e=>new hN({typeName:be.ZodNaN,...Re(e)});class QK extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Jb extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ve:i.status==="dirty"?(r.dirty(),cc(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ve:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new Jb({in:t,out:r,typeName:be.ZodPipeline})}}class Cx extends Fe{_parse(t){const r=this._def.innerType._parse(t),n=s=>(fl(s)&&(s.value=Object.freeze(s.value)),s);return bf(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}Cx.create=(e,t)=>new Cx({innerType:e,typeName:be.ZodReadonly,...Re(t)});wt.lazycreate;var be;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(be||(be={}));const Bt=wa.create;Va.create;is.create;const Zb=wt.create;wt.strictCreate;kf.create;jf.create;Bi.create;ml.create;Nf.create;Oa.create;gl.create;const eY=ve;var Gd=e=>e.type==="checkbox",wi=e=>e instanceof Date,dr=e=>e==null;const IA=e=>typeof e=="object";var Tt=e=>!dr(e)&&!Array.isArray(e)&&IA(e)&&!wi(e),MA=e=>Tt(e)&&e.target?Gd(e.target)?e.target.checked:e.target.value:e,tY=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,LA=(e,t)=>e.has(tY(t)),rY=e=>{const t=e.constructor&&e.constructor.prototype;return Tt(t)&&t.hasOwnProperty("isPrototypeOf")},Xb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ft(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Xb&&(e instanceof Blob||n))&&(r||Tt(e)))if(t=r?[]:{},!r&&!rY(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ft(e[s]));else return e;return t}var Om=e=>/^\w*$/.test(e),Nt=e=>e===void 0,Qb=e=>Array.isArray(e)?e.filter(Boolean):[],ew=e=>Qb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ee=(e,t,r)=>{if(!t||!Tt(e))return r;const n=(Om(t)?[t]:ew(t)).reduce((s,i)=>dr(s)?s:s[i],e);return Nt(n)||n===e?Nt(e[t])?r:e[t]:n},Ar=e=>typeof e=="boolean",Ge=(e,t,r)=>{let n=-1;const s=Om(t)?[t]:ew(t),i=s.length,o=i-1;for(;++n<i;){const l=s[n];let c=r;if(n!==o){const d=e[l];
530c=Tt(d)||Array.isArray(d)?d:isNaN(+s[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Sf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Cn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ys={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},tw=M.createContext(null);tw.displayName="HookFormContext";const Dm=()=>M.useContext(tw),nY=e=>{const{children:t,...r}=e;return M.createElement(tw.Provider,{value:r},t)};var FA=(e,t,r,n=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Cn.all&&(t._proxyFormState[o]=!n||Cn.all),r&&(r[o]=!0),e[o]}});return s};const rw=typeof window<"u"?M.useLayoutEffect:M.useEffect;function sY(e){const t=Dm(),{control:r=t.control,disabled:n,name:s,exact:i}=e||{},[o,l]=M.useState(r._formState),c=M.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return rw(()=>r._subscribe({name:s,formState:c.current,exact:i,callback:d=>{!n&&l({...r._formState,...d})}}),[s,n,i]),M.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),M.useMemo(()=>FA(o,r,c.current,!1),[o,r])}var ts=e=>typeof e=="string",$A=(e,t,r,n,s)=>ts(e)?(n&&t.watch.add(e),ee(r,e,s)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),ee(r,i))):(n&&(t.watchAll=!0),r),_x=e=>dr(e)||!IA(e);function _s(e,t,r=new WeakSet){if(_x(e)||_x(t))return e===t;if(wi(e)&&wi(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const i of n){const o=e[i];if(!s.includes(i))return!1;if(i!=="ref"){const l=t[i];if(wi(o)&&wi(l)||Tt(o)&&Tt(l)||Array.isArray(o)&&Array.isArray(l)?!_s(o,l,r):o!==l)return!1}}return!0}function aY(e){const t=Dm(),{control:r=t.control,name:n,defaultValue:s,disabled:i,exact:o,compute:l}=e||{},c=M.useRef(s),d=M.useRef(l),u=M.useRef(void 0);d.current=l;const h=M.useMemo(()=>r._getWatch(n,c.current),[r,n]),[f,m]=M.useState(d.current?d.current(h):h);return rw(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:x=>{if(!i){const y=$A(n,r._names,x.values||r._formValues,!1,c.current);if(d.current){const v=d.current(y);_s(v,u.current)||(m(v),u.current=v)}else m(y)}}}),[r,i,n,o]),M.useEffect(()=>r._removeUnmounted()),f}function iY(e){const t=Dm(),{name:r,disabled:n,control:s=t.control,shouldUnregister:i,defaultValue:o}=e,l=LA(s._names.array,r),c=M.useMemo(()=>ee(s._formValues,r,ee(s._defaultValues,r,o)),[s,r,o]),d=aY({control:s,name:r,defaultValue:c,exact:!0}),u=sY({control:s,name:r,exact:!0}),h=M.useRef(e),f=M.useRef(s.register(r,{...e.rules,value:d,...Ar(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const m=M.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ee(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ee(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ee(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ee(u.validatingFields,r)},error:{enumerable:!0,get:()=>ee(u.errors,r)}}),[u,r]),x=M.useCallback(g=>f.current.onChange({target:{value:MA(g),name:r},type:Sf.CHANGE}),[r]),y=M.useCallback(()=>f.current.onBlur({target:{value:ee(s._formValues,r),name:r},type:Sf.BLUR}),[r,s._formValues]),v=M.useCallback(g=>{const w=ee(s._fields,r);w&&g&&(w._f.ref={focus:()=>g.focus&&g.focus(),select:()=>g.select&&g.select(),setCustomValidity:k=>g.setCustomValidity(k),reportValidity:()=>g.reportValidity()})},[s._fields,r]),b=M.useMemo(()=>({name:r,value:d,...Ar(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:x,onBlur:y,ref:v}),[r,n,u.disabled,x,y,v,d]);return M.useEffect(()=>{const g=s._options.shouldUnregister||i;s.register(r,{...h.current.rules,...Ar(h.current.disabled)?{disabled:h.current.disabled}:{}});const w=(k,j)=>{const S=ee(s._fields,k);S&&S._f&&(S._f.mount=j)};if(w(r,!0),g){const k=Ft(ee(s._options.defaultValues,r));Ge(s._defaultValues,r,k),Nt(ee(s._formValues,r))&&Ge(s._formValues,r,k)}return!l&&s.register(r),()=>{(l?g&&!s._state.action:g)?s.unregister(r):w(r,!1)}},[r,s,l,i]),M.useEffect(()=>{s._setDisabledField({disabled:n,name:r})},[n,r,s]),M.useMemo(()=>({field:b,formState:u,fieldState:m}),[b,u,m])}const oY=e=>e.render(iY(e));var BA=(e,t,r,n,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:s||!0}}:{},Rc=e=>Array.isArray(e)?e:[e],fN=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},vr=e=>Tt(e)&&!Object.keys(e).length,nw=e=>e.type==="file",_n=e=>typeof e=="function",Cf=e=>{if(!Xb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},zA=e=>e.type==="select-multiple",sw=e=>e.type==="radio",lY=e=>sw(e)||Gd(e),vg=e=>Cf(e)&&e.isConnected;function cY(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Nt(e)?n++:e[t[n++]];return e}function dY(e){for(const t in e)if(e.hasOwnProperty(t)&&!Nt(e[t]))return!1;return!0}function At(e,t){const r=Array.isArray(t)?t:Om(t)?[t]:ew(t),n=r.length===1?e:cY(e,r),s=r.length-1,i=r[s];return n&&delete n[i],s!==0&&(Tt(n)&&vr(n)||Array.isArray(n)&&dY(n))&&At(e,r.slice(0,-1)),e}var VA=e=>{for(const t in e)if(_n(e[t]))return!0;return!1};function _f(e,t={}){const r=Array.isArray(e);if(Tt(e)||r)for(const n in e)Array.isArray(e[n])||Tt(e[n])&&!VA(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_f(e[n],t[n])):dr(e[n])||(t[n]=!0);return t}function UA(e,t,r){const n=Array.isArray(e);if(Tt(e)||n)for(const s in e)Array.isArray(e[s])||Tt(e[s])&&!VA(e[s])?Nt(t)||_x(r[s])?r[s]=Array.isArray(e[s])?_f(e[s],[]):{..._f(e[s])}:UA(e[s],dr(t)?{}:t[s],r[s]):r[s]=!_s(e[s],t[s]);return r}var Jl=(e,t)=>
vendor: 8,836 bytes, line 530
530UA(e,t,_f(t));const mN={value:!1,isValid:!1},pN={value:!0,isValid:!0};var WA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Nt(e[0].attributes.value)?Nt(e[0].value)||e[0].value===""?pN:{value:e[0].value,isValid:!0}:pN:mN}return mN},HA=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Nt(e)?e:t?e===""?NaN:e&&+e:r&&ts(e)?new Date(e):n?n(e):e;const gN={isValid:!1,value:null};var qA=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,gN):gN;function yN(e){const t=e.ref;return nw(t)?t.files:sw(t)?qA(e.refs).value:zA(t)?[...t.selectedOptions].map(({value:r})=>r):Gd(t)?WA(e.refs).value:HA(Nt(t.value)?e.ref.value:t.value,e)}var uY=(e,t,r,n)=>{const s={};for(const i of e){const o=ee(t,i);o&&Ge(s,i,o._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:n}},Tf=e=>e instanceof RegExp,Zl=e=>Nt(e)?e:Tf(e)?e.source:Tt(e)?Tf(e.value)?e.value.source:e.value:e,xN=e=>({isOnSubmit:!e||e===Cn.onSubmit,isOnBlur:e===Cn.onBlur,isOnChange:e===Cn.onChange,isOnAll:e===Cn.all,isOnTouch:e===Cn.onTouched});const vN="AsyncFunction";var hY=e=>!!e&&!!e.validate&&!!(_n(e.validate)&&e.validate.constructor.name===vN||Tt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===vN)),fY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),bN=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ac=(e,t,r,n)=>{for(const s of r||Object.keys(e)){const i=ee(e,s);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Ac(l,t))break}else if(Tt(l)&&Ac(l,t))break}}};function wN(e,t,r){const n=ee(e,r);if(n||Om(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const i=s.join("."),o=ee(t,i),l=ee(e,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};s.pop()}return{name:r}}var mY=(e,t,r,n)=>{r(e);const{name:s,...i}=e;return vr(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!n||Cn.all))},pY=(e,t,r)=>!e||!t||e===t||Rc(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),gY=(e,t,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?n.isOnBlur:s.isOnBlur)?!e:(r?n.isOnChange:s.isOnChange)?e:!0,yY=(e,t)=>!Qb(ee(e,t)).length&&At(e,t),xY=(e,t,r)=>{const n=Rc(ee(e,r));return Ge(n,"root",t[r]),Ge(e,r,n),e},yh=e=>ts(e);function kN(e,t,r="validate"){if(yh(e)||Array.isArray(e)&&e.every(yh)||Ar(e)&&!e)return{type:r,message:yh(e)?e:"",ref:t}}var ao=e=>Tt(e)&&!Tf(e)?e:{value:e,message:""},jN=async(e,t,r,n,s,i)=>{const{ref:o,refs:l,required:c,maxLength:d,minLength:u,min:h,max:f,pattern:m,validate:x,name:y,valueAsNumber:v,mount:b}=e._f,g=ee(r,y);if(!b||t.has(y))return{};const w=l?l[0]:o,k=I=>{s&&w.reportValidity&&(w.setCustomValidity(Ar(I)?"":I||""),w.reportValidity())},j={},S=sw(o),T=Gd(o),P=S||T,C=(v||nw(o))&&Nt(o.value)&&Nt(g)||Cf(o)&&o.value===""||g===""||Array.isArray(g)&&!g.length,A=BA.bind(null,y,n,j),V=(I,H,F,J=ys.maxLength,q=ys.minLength)=>{const $=I?H:F;j[y]={type:I?J:q,message:$,ref:o,...A(I?J:q,$)}};if(i?!Array.isArray(g)||!g.length:c&&(!P&&(C||dr(g))||Ar(g)&&!g||T&&!WA(l).isValid||S&&!qA(l).isValid)){const{value:I,message:H}=yh(c)?{value:!!c,message:c}:ao(c);if(I&&(j[y]={type:ys.required,message:H,ref:w,...A(ys.required,H)},!n))return k(H),j}if(!C&&(!dr(h)||!dr(f))){let I,H;const F=ao(f),J=ao(h);if(!dr(g)&&!isNaN(g)){const q=o.valueAsNumber||g&&+g;dr(F.value)||(I=q>F.value),dr(J.value)||(H=q<J.value)}else{const q=o.valueAsDate||new Date(g),$=U=>new Date(new Date().toDateString()+" "+U),R=o.type=="time",D=o.type=="week";ts(F.value)&&g&&(I=R?$(g)>$(F.value):D?g>F.value:q>new Date(F.value)),ts(J.value)&&g&&(H=R?$(g)<$(J.value):D?g<J.value:q<new Date(J.value))}if((I||H)&&(V(!!I,F.message,J.message,ys.max,ys.min),!n))return k(j[y].message),j}if((d||u)&&!C&&(ts(g)||i&&Array.isArray(g))){const I=ao(d),H=ao(u),F=!dr(I.value)&&g.length>+I.value,J=!dr(H.value)&&g.length<+H.value;if((F||J)&&(V(F,I.message,H.message),!n))return k(j[y].message),j}if(m&&!C&&ts(g)){const{value:I,message:H}=ao(m);if(Tf(I)&&!g.match(I)&&(j[y]={type:ys.pattern,message:H,ref:o,...A(ys.pattern,H)},!n))return k(H),j}if(x){if(_n(x)){const I=await x(g,r),H=kN(I,w);if(H&&(j[y]={...H,...A(ys.validate,H.message)},!n))return k(H.message),j}else if(Tt(x)){let I={};for(const H in x){if(!vr(I)&&!n)break;const F=kN(await x[H](g,r),w,H);F&&(I={...F,...A(H,F.message)},k(F.message),n&&(j[y]=I))}if(!vr(I)&&(j[y]={ref:w,...I},!n))return j}}return k(!0),j};const vY={mode:Cn.onSubmit,reValidateMode:Cn.onChange,shouldFocusError:!0};function bY(e={}){let t={...vY,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:_n(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},s=Tt(t.defaultValues)||Tt(t.values)?Ft(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ft(s),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...u};const f={array:fN(),state:fN()},m=t.criteriaMode===Cn.all,x=N=>_=>{clearTimeout(d),d=setTimeout(N,_)},y=async N=>{if(!t.disabled&&(u.isValid||h.isValid||N)){const _=t.resolver?vr((await T()).errors):await C(n,!0);_!==r.isValid&&f.state.next({isValid:_})}},v=(N,_)=>{!t.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((N||Array.from(l.mount)).forEach(O=>{O&&(_?Ge(r.validatingFields,O,_):At(r.validatingFields,O))}),f.state.next({validatingFields:r.validatingFields,isValidating:!vr(r.validatingFields)}))},b=(N,_=[],O,z,W=!0,L=!0)=>{if(z&&O&&!t.disabled){if(o.action=!0,L&&Array.isArray(ee(n,N))){const X=O(ee(n,N),z.argA,z.argB);W&&Ge(n,N,X)}if(L&&Array.isArray(ee(r.errors,N))){const X=O(ee(r.errors,N),z.argA,z.argB);W&&Ge(r.errors,N,X),yY(r.errors,N)}if((u.touchedFields||h.touchedFields)&&L&&Array.isArray(ee(r.touchedFields,N))){const X=O(ee(r.touchedFields,N),z.argA,z.argB);W&&Ge(r.touchedFields,N,X)}(u.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Jl(s,i)),f.state.next({name:N,isDirty:V(N,_),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ge(i,N,_)},g=(N,_)=>{Ge(r.errors,N,_),f.state.next({errors:r.errors})},w=N=>{r.errors=N,f.state.next({errors:r.errors,isValid:!1})},k=(N,_,O,z)=>{const W=ee(n,N);if(W){const L=ee(i,N,Nt(O)?ee(s,N):O);Nt(L)||z&&z.defaultChecked||_?Ge(i,N,_?L:yN(W._f)):F(N,L),o.mount&&y()}},j=(N,_,O,z,W)=>{let L=!1,X=!1;const we={name:N};if(!t.disabled){if(!O||z){(u.isDirty||h.isDirty)&&(X=r.isDirty,r.isDirty=we.isDirty=V(),L=X!==we.isDirty);const Be=_s(ee(s,N),_);X=!!ee(r.dirtyFields,N),Be?At(r.dirtyFields,N):Ge(r.dirtyFields,N,!0),we.dirtyFields=r.dirtyFields,L=L||(u.dirtyFields||h.dirtyFields)&&X!==!Be}if(O){const Be=ee(r.touchedFields,N);Be||(Ge(r.touchedFields,N,O),we.touchedFields=r.touchedFields,L=L||(u.touchedFields||h.touchedFields)&&Be!==O)}L&&W&&f.state.next(we)}return L?we:{}},S=(N,_,O,z)=>{const W=ee(r.errors,N),L=(u.isValid||h.isValid)&&Ar(_)&&r.isValid!==_;if(t.delayError&&O?(c=x(()=>g(N,O)),c(t.delayError)):(clearTimeout(d),c=null,O?Ge(r.errors,N,O):At(r.errors,N)),(O?!_s(W,O):W)||!vr(z)||L){const X={...z,...L&&Ar(_)?{isValid:_}:{},errors:r.errors,name:N};r={...r,...X},f.state.next(X)}},T=async N=>{v(N,!0);const _=await t.resolver(i,t.context,uY(N||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return v(N),_},P=async N=>{const{errors:_}=await T(N);if(N)for(const O of N){const z=ee(_,O);z?Ge(r.errors,O,z):At(r.errors,O)}else r.errors=_;return _},C=async(N,_,O={valid:!0})=>{for(const z in N){const W=N[z];if(W){const{_f:L,...X}=W;if(L){const we=l.array.has(L.name),Be=W._f&&hY(W._f);Be&&u.validatingFields&&v([z],!0);const Ce=await jN(W,l.disabled,i,m,t.shouldUseNativeValidation&&!_,we);if(Be&&u.validatingFields&&v([z]),Ce[L.name]&&(O.valid=!1,_))break;!_&&(ee(Ce,L.name)?we?xY(r.errors,Ce,L.name):Ge(r.errors,L.name,Ce[L.name]):At(r.errors,L.name))}!vr(X)&&await C(X,_,O)}}return O.valid},A=()=>{for(const N of l.unMount){const _=ee(n,N);_&&(_._f.refs?_._f.refs.every(O=>!vg(O)):!vg(_._f.ref))&&Q(N)}l.unMount=new Set},V=(N,_)=>!t.disabled&&(N&&_&&Ge(i,N,_),!_s(U(),s)),I=(N,_,O)=>$A(N,l,{...o.mount?i:Nt(_)?s:ts(N)?{[N]:_}:_},O,_),H=N=>Qb(ee(o.mount?i:s,N,t.shouldUnregister?ee(s,N,[]):[])),F=(N,_,O={})=>{const z=ee(n,N);let W=_;if(z){const L=z._f;L&&(!L.disabled&&Ge(i,N,HA(_,L)),W=Cf(L.ref)&&dr(_)?"":_,zA(L.ref)?[...L.ref.options].forEac
vendor: 10,313 bytes, line 530
530h(X=>X.selected=W.includes(X.value)):L.refs?Gd(L.ref)?L.refs.forEach(X=>{(!X.defaultChecked||!X.disabled)&&(Array.isArray(W)?X.checked=!!W.find(we=>we===X.value):X.checked=W===X.value||!!W)}):L.refs.forEach(X=>X.checked=X.value===W):nw(L.ref)?L.ref.value="":(L.ref.value=W,L.ref.type||f.state.next({name:N,values:Ft(i)})))}(O.shouldDirty||O.shouldTouch)&&j(N,W,O.shouldTouch,O.shouldDirty,!0),O.shouldValidate&&D(N)},J=(N,_,O)=>{for(const z in _){if(!_.hasOwnProperty(z))return;const W=_[z],L=N+"."+z,X=ee(n,L);(l.array.has(N)||Tt(W)||X&&!X._f)&&!wi(W)?J(L,W,O):F(L,W,O)}},q=(N,_,O={})=>{const z=ee(n,N),W=l.array.has(N),L=Ft(_);Ge(i,N,L),W?(f.array.next({name:N,values:Ft(i)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&O.shouldDirty&&f.state.next({name:N,dirtyFields:Jl(s,i),isDirty:V(N,L)})):z&&!z._f&&!dr(L)?J(N,L,O):F(N,L,O),bN(N,l)&&f.state.next({...r,name:N}),f.state.next({name:o.mount?N:void 0,values:Ft(i)})},$=async N=>{o.mount=!0;const _=N.target;let O=_.name,z=!0;const W=ee(n,O),L=Be=>{z=Number.isNaN(Be)||wi(Be)&&isNaN(Be.getTime())||_s(Be,ee(i,O,Be))},X=xN(t.mode),we=xN(t.reValidateMode);if(W){let Be,Ce;const Ie=_.type?yN(W._f):MA(N),yr=N.type===Sf.BLUR||N.type===Sf.FOCUS_OUT,Ji=!fY(W._f)&&!t.resolver&&!ee(r.errors,O)&&!W._f.deps||gY(yr,ee(r.touchedFields,O),r.isSubmitted,we,X),ei=bN(O,l,yr);Ge(i,O,Ie),yr?(W._f.onBlur&&W._f.onBlur(N),c&&c(0)):W._f.onChange&&W._f.onChange(N);const $n=j(O,Ie,yr),Qd=!vr($n)||ei;if(!yr&&f.state.next({name:O,type:N.type,values:Ft(i)}),Ji)return(u.isValid||h.isValid)&&(t.mode==="onBlur"?yr&&y():yr||y()),Qd&&f.state.next({name:O,...ei?{}:$n});if(!yr&&ei&&f.state.next({...r}),t.resolver){const{errors:ms}=await T([O]);if(L(Ie),z){const Xm=wN(r.errors,n,O),eu=wN(ms,n,Xm.name||O);Be=eu.error,O=eu.name,Ce=vr(ms)}}else v([O],!0),Be=(await jN(W,l.disabled,i,m,t.shouldUseNativeValidation))[O],v([O]),L(Ie),z&&(Be?Ce=!1:(u.isValid||h.isValid)&&(Ce=await C(n,!0)));z&&(W._f.deps&&D(W._f.deps),S(O,Ce,Be,$n))}},R=(N,_)=>{if(ee(r.errors,_)&&N.focus)return N.focus(),1},D=async(N,_={})=>{let O,z;const W=Rc(N);if(t.resolver){const L=await P(Nt(N)?N:W);O=vr(L),z=N?!W.some(X=>ee(L,X)):O}else N?(z=(await Promise.all(W.map(async L=>{const X=ee(n,L);return await C(X&&X._f?{[L]:X}:X)}))).every(Boolean),!(!z&&!r.isValid)&&y()):z=O=await C(n);return f.state.next({...!ts(N)||(u.isValid||h.isValid)&&O!==r.isValid?{}:{name:N},...t.resolver||!N?{isValid:O}:{},errors:r.errors}),_.shouldFocus&&!z&&Ac(n,R,N?W:l.mount),z},U=N=>{const _={...o.mount?i:s};return Nt(N)?_:ts(N)?ee(_,N):N.map(O=>ee(_,O))},de=(N,_)=>({invalid:!!ee((_||r).errors,N),isDirty:!!ee((_||r).dirtyFields,N),error:ee((_||r).errors,N),isValidating:!!ee(r.validatingFields,N),isTouched:!!ee((_||r).touchedFields,N)}),ue=N=>{N&&Rc(N).forEach(_=>At(r.errors,_)),f.state.next({errors:N?r.errors:{}})},ge=(N,_,O)=>{const z=(ee(n,N,{_f:{}})._f||{}).ref,W=ee(r.errors,N)||{},{ref:L,message:X,type:we,...Be}=W;Ge(r.errors,N,{...Be,..._,ref:z}),f.state.next({name:N,errors:r.errors,isValid:!1}),O&&O.shouldFocus&&z&&z.focus&&z.focus()},xe=(N,_)=>_n(N)?f.state.subscribe({next:O=>"values"in O&&N(I(void 0,_),O)}):I(N,_,!0),$e=N=>f.state.subscribe({next:_=>{pY(N.name,_.name,N.exact)&&mY(_,N.formState||u,an,N.reRenderRoot)&&N.callback({values:{...i},...r,..._,defaultValues:s})}}).unsubscribe,et=N=>(o.mount=!0,h={...h,...N.formState},$e({...N,formState:h})),Q=(N,_={})=>{for(const O of N?Rc(N):l.mount)l.mount.delete(O),l.array.delete(O),_.keepValue||(At(n,O),At(i,O)),!_.keepError&&At(r.errors,O),!_.keepDirty&&At(r.dirtyFields,O),!_.keepTouched&&At(r.touchedFields,O),!_.keepIsValidating&&At(r.validatingFields,O),!t.shouldUnregister&&!_.keepDefaultValue&&At(s,O);f.state.next({values:Ft(i)}),f.state.next({...r,..._.keepDirty?{isDirty:V()}:{}}),!_.keepIsValid&&y()},De=({disabled:N,name:_})=>{(Ar(N)&&o.mount||N||l.disabled.has(_))&&(N?l.disabled.add(_):l.disabled.delete(_))},Je=(N,_={})=>{let O=ee(n,N);const z=Ar(_.disabled)||Ar(t.disabled);return Ge(n,N,{...O||{},_f:{...O&&O._f?O._f:{ref:{name:N}},name:N,mount:!0,..._}}),l.mount.add(N),O?De({disabled:Ar(_.disabled)?_.disabled:t.disabled,name:N}):k(N,!0,_.value),{...z?{disabled:_.disabled||t.disabled}:{},...t.progressive?{required:!!_.required,min:Zl(_.min),max:Zl(_.max),minLength:Zl(_.minLength),maxLength:Zl(_.maxLength),pattern:Zl(_.pattern)}:{},name:N,onChange:$,onBlur:$,ref:W=>{if(W){Je(N,_),O=ee(n,N);const L=Nt(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,X=lY(L),we=O._f.refs||[];if(X?we.find(Be=>Be===L):L===O._f.ref)return;Ge(n,N,{_f:{...O._f,...X?{refs:[...we.filter(vg),L,...Array.isArray(ee(s,N))?[{}]:[]],ref:{type:L.type,name:N}}:{ref:L}}}),k(N,!1,void 0,L)}else O=ee(n,N,{}),O._f&&(O._f.mount=!1),(t.shouldUnregister||_.shouldUnregister)&&!(LA(l.array,N)&&o.action)&&l.unMount.add(N)}}},Te=()=>t.shouldFocusError&&Ac(n,R,l.mount),Ee=N=>{Ar(N)&&(f.state.next({disabled:N}),Ac(n,(_,O)=>{const z=ee(n,O);z&&(_.disabled=z._f.disabled||N,Array.isArray(z._f.refs)&&z._f.refs.forEach(W=>{W.disabled=z._f.disabled||N}))},0,!1))},Ae=(N,_)=>async O=>{let z;O&&(O.preventDefault&&O.preventDefault(),O.persist&&O.persist());let W=Ft(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:L,values:X}=await T();r.errors=L,W=Ft(X)}else await C(n);if(l.disabled.size)for(const L of l.disabled)At(W,L);if(At(r.errors,"root"),vr(r.errors)){f.state.next({errors:{}});try{await N(W,O)}catch(L){z=L}}else _&&await _({...r.errors},O),Te(),setTimeout(Te);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:vr(r.errors)&&!z,submitCount:r.submitCount+1,errors:r.errors}),z)throw z},Et=(N,_={})=>{ee(n,N)&&(Nt(_.defaultValue)?q(N,Ft(ee(s,N))):(q(N,_.defaultValue),Ge(s,N,Ft(_.defaultValue))),_.keepTouched||At(r.touchedFields,N),_.keepDirty||(At(r.dirtyFields,N),r.isDirty=_.defaultValue?V(N,Ft(ee(s,N))):V()),_.keepError||(At(r.errors,N),u.isValid&&y()),f.state.next({...r}))},Rt=(N,_={})=>{const O=N?Ft(N):s,z=Ft(O),W=vr(N),L=W?s:z;if(_.keepDefaultValues||(s=O),!_.keepValues){if(_.keepDirtyValues){const X=new Set([...l.mount,...Object.keys(Jl(s,i))]);for(const we of Array.from(X))ee(r.dirtyFields,we)?Ge(L,we,ee(i,we)):q(we,ee(L,we))}else{if(Xb&&Nt(N))for(const X of l.mount){const we=ee(n,X);if(we&&we._f){const Be=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(Cf(Be)){const Ce=Be.closest("form");if(Ce){Ce.reset();break}}}}if(_.keepFieldsRef)for(const X of l.mount)q(X,ee(L,X));else n={}}i=t.shouldUnregister?_.keepDefaultValues?Ft(s):{}:Ft(L),f.array.next({values:{...L}}),f.state.next({values:{...L}})}l={mount:_.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!_.keepIsValid||!!_.keepDirtyValues,o.watch=!!t.shouldUnregister,f.state.next({submitCount:_.keepSubmitCount?r.submitCount:0,isDirty:W?!1:_.keepDirty?r.isDirty:!!(_.keepDefaultValues&&!_s(N,s)),isSubmitted:_.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:W?{}:_.keepDirtyValues?_.keepDefaultValues&&i?Jl(s,i):r.dirtyFields:_.keepDefaultValues&&N?Jl(s,N):_.keepDirty?r.dirtyFields:{},touchedFields:_.keepTouched?r.touchedFields:{},errors:_.keepErrors?r.errors:{},isSubmitSuccessful:_.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Er=(N,_)=>Rt(_n(N)?N(i):N,_),Ur=(N,_={})=>{const O=ee(n,N),z=O&&O._f;if(z){const W=z.refs?z.refs[0]:z.ref;W.focus&&(W.focus(),_.shouldSelect&&_n(W.select)&&W.select())}},an=N=>{r={...r,...N}},E={control:{register:Je,unregister:Q,getFieldState:de,handleSubmit:Ae,setError:ge,_subscribe:$e,_runSchema:T,_focusError:Te,_getWatch:I,_getDirty:V,_setValid:y,_setFieldArray:b,_setDisabledField:De,_setErrors:w,_getFieldArray:H,_reset:Rt,_resetDefaultValues:()=>_n(t.defaultValues)&&t.defaultValues().then(N=>{Er(N,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:A,_disableForm:Ee,_subjects:f,_proxyFormState:u,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(N){o=N},get _defaultValues(){return s},get _names(){return l},set _names(N){l=N},get _formState(){return r},get _options(){return t},set _options(N){t={...t,...N}}},subscribe:et,trigger:D,register:Je,handleSubmit:Ae,watch:xe,setValue:q,getValues:U,reset:Er,resetField:Et,clearErrors:ue,unregister:Q,setError:ge,setFocus:Ur,getFieldState:de};return{...E,formControl:E}}function GA(e={}){const t=M.useRef(void 0),r=M.useRef(void 0),[n,s]=M.useState({isDirty:!1,isValidating:!1,isLoading:_n(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:_n(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!_n(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...l}=bY(e);t.current={...l,formState:n}}const i=t.current.control;return i._options=e,rw(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),i._formState.isReady=!0,o},[i]),M.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),M.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),M.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),M.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),M.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),M.useEffect(()=>{e.values&&!_s(e.values,r.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),r.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[i,e.values]),M.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=FA(n,i),t.current}const NN=(e,t,r)=>{if(e&&"reportValidity"in e){const n=ee(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},KA=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?NN(n.ref,r,e):n.refs&&n.refs.forEac
530h(s=>NN(s,r,e))}},wY=(e,t)=>{t.shouldUseNativeValidation&&KA(e,t);const r={};for(const n in e){const s=ee(t.fields,n),i=Object.assign(e[n]||{},{ref:s&&s.ref});if(kY(t.names||Object.keys(e),n)){const o=Object.assign({},ee(r,n));Ge(o,"root",i),Ge(r,n,o)}else Ge(r,n,i)}return r},kY=(e,t)=>e.some(r=>r.startsWith(t+"."));var jY=function(e,t){for(var r={};e.length;){var n=e[0],s=n.code,i=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:i,type:s};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(h){return e.push(h)})}),t){var c=r[o].types,d=c&&c[n.code];r[o]=BA(o,t,r,s,d?[].concat(d,n.message):n.message)}e.shift()}return r},YA=function(e,t,r){return r===void 0&&(r={}),function(n,s,i){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(d){return i.shouldUseNativeValidation&&KA({},i),{errors:{},values:r.raw?n:d}})}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:wY(jY(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}};function SN(e,[t,r]){return Math.min(r,Math.max(t,e))}function Im(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var NY=[" ","Enter","ArrowUp","ArrowDown"],SY=[" ","Enter"],zi="Select",[Mm,Lm,CY]=Qf(zi),[Dl,jse]=Xt(zi,[CY,_l]),Fm=_l(),[_Y,Za]=Dl(zi),[TY,EY]=Dl(zi),JA=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:h,disabled:f,required:m,form:x}=e,y=Fm(t),[v,b]=p.useState(null),[g,w]=p.useState(null),[k,j]=p.useState(!1),S=Hd(d),[T,P]=Fr({prop:n,defaultProp:s??!1,onChange:i,caller:zi}),[C,A]=Fr({prop:o,defaultProp:l,onChange:c,caller:zi}),V=p.useRef(null),I=v?x||!!v.closest("form"):!0,[H,F]=p.useState(new Set),J=Array.from(H).map(q=>q.props.value).join(";");return a.jsx(U2,{...y,children:a.jsxs(_Y,{required:m,scope:t,trigger:v,onTriggerChange:b,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:j,contentId:Rn(),value:C,onValueChange:A,open:T,onOpenChange:P,dir:S,triggerPointerDownPosRef:V,disabled:f,children:[a.jsx(Mm.Provider,{scope:t,children:a.jsx(TY,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(q=>{F($=>new Set($).add(q))},[]),onNativeOptionRemove:p.useCallback(q=>{F($=>{const R=new Set($);return R.delete(q),R})},[]),children:r})}),I?a.jsxs(bP,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:h,value:C,onChange:q=>A(q.target.value),disabled:f,form:x,children:[C===void 0?a.jsx("option",{value:""}):null,Array.from(H)]},J):null]})})};JA.displayName=zi;var ZA="SelectTrigger",XA=p.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...s}=e,i=Fm(r),o=Za(ZA,r),l=o.disabled||n,c=_e(t,o.onTriggerChange),d=Lm(r),u=p.useRef("touch"),[h,f,m]=kP(y=>{const v=d().filter(w=>!w.disabled),b=v.find(w=>w.value===o.value),g=jP(v,y,b);g!==void 0&&o.onValueChange(g.value)}),x=y=>{l||(o.onOpenChange(!0),m()),y&&(o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return a.jsx(lm,{asChild:!0,...i,children:a.jsx(me.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":wP(o.value)?"":void 0,...s,ref:c,onClick:ce(s.onClick,y=>{y.currentTarget.focus(),u.current!=="mouse"&&x(y)}),onPointerDown:ce(s.onPointerDown,y=>{u.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(x(y),y.preventDefault())}),onKeyDown:ce(s.onKeyDown,y=>{const v=h.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(v&&y.key===" ")&&NY.includes(y.key)&&(x(),y.preventDefault())})})})});
vendor: 15,618 bytes, line 530
530XA.displayName=ZA;var QA="SelectValue",eP=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...l}=e,c=Za(QA,r),{onValueNodeHasChildrenChange:d}=c,u=i!==void 0,h=_e(t,c.onValueNodeChange);return qt(()=>{d(u)},[d,u]),a.jsx(me.span,{...l,ref:h,style:{pointerEvents:"none"},children:wP(c.value)?a.jsx(a.Fragment,{children:o}):i})});eP.displayName=QA;var RY="SelectIcon",tP=p.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...s}=e;return a.jsx(me.span,{"aria-hidden":!0,...s,ref:t,children:n||"▼"})});tP.displayName=RY;var AY="SelectPortal",rP=e=>a.jsx(_d,{asChild:!0,...e});rP.displayName=AY;var Vi="SelectContent",nP=p.forwardRef((e,t)=>{const r=Za(Vi,e.__scopeSelect),[n,s]=p.useState();if(qt(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?Gi.createPortal(a.jsx(sP,{scope:e.__scopeSelect,children:a.jsx(Mm.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),i):null}return a.jsx(aP,{...e,ref:t})});nP.displayName=Vi;var gn=10,[sP,Xa]=Dl(Vi),PY="SelectContentImpl",OY=Li("SelectContent.RemoveScroll"),aP=p.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:x,hideWhenDetached:y,avoidCollisions:v,...b}=e,g=Za(Vi,r),[w,k]=p.useState(null),[j,S]=p.useState(null),T=_e(t,Q=>k(Q)),[P,C]=p.useState(null),[A,V]=p.useState(null),I=Lm(r),[H,F]=p.useState(!1),J=p.useRef(!1);p.useEffect(()=>{if(w)return Ib(w)},[w]),Db();const q=p.useCallback(Q=>{const[De,...Je]=I().map(Ae=>Ae.ref.current),[Te]=Je.slice(-1),Ee=document.activeElement;for(const Ae of Q)if(Ae===Ee||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===De&&j&&(j.scrollTop=0),Ae===Te&&j&&(j.scrollTop=j.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==Ee))return},[I,j]),$=p.useCallback(()=>q([P,w]),[q,P,w]);p.useEffect(()=>{H&&$()},[H,$]);const{onOpenChange:R,triggerPointerDownPosRef:D}=g;p.useEffect(()=>{if(w){let Q={x:0,y:0};const De=Te=>{var Ee,Ae;Q={x:Math.abs(Math.round(Te.pageX)-(((Ee=D.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((Ae=D.current)==null?void 0:Ae.y)??0))}},Je=Te=>{Q.x<=10&&Q.y<=10?Te.preventDefault():w.contains(Te.target)||R(!1),document.removeEventListener("pointermove",De),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",De),document.addEventListener("pointerup",Je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",De),document.removeEventListener("pointerup",Je,{capture:!0})}}},[w,R,D]),p.useEffect(()=>{const Q=()=>R(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[R]);const[U,de]=kP(Q=>{const De=I().filter(Ee=>!Ee.disabled),Je=De.find(Ee=>Ee.ref.current===document.activeElement),Te=jP(De,Q,Je);Te&&setTimeout(()=>Te.ref.current.focus())}),ue=p.useCallback((Q,De,Je)=>{const Te=!J.current&&!Je;(g.value!==void 0&&g.value===De||Te)&&(C(Q),Te&&(J.current=!0))},[g.value]),ge=p.useCallback(()=>w==null?void 0:w.focus(),[w]),xe=p.useCallback((Q,De,Je)=>{const Te=!J.current&&!Je;(g.value!==void 0&&g.value===De||Te)&&V(Q)},[g.value]),$e=n==="popper"?Tx:iP,et=$e===Tx?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:x,hideWhenDetached:y,avoidCollisions:v}:{};return a.jsx(sP,{scope:r,content:w,viewport:j,onViewportChange:S,itemRefCallback:ue,selectedItem:P,onItemLeave:ge,itemTextRefCallback:xe,focusSelectedItem:$,selectedItemText:A,position:n,isPositioned:H,searchRef:U,children:a.jsx(jm,{as:OY,allowPinchZoom:!0,children:a.jsx(wm,{asChild:!0,trapped:g.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:ce(s,Q=>{var De;(De=g.trigger)==null||De.focus({preventScroll:!0}),Q.preventDefault()}),children:a.jsx(kl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:a.jsx($e,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:Q=>Q.preventDefault(),...b,...et,onPlaced:()=>F(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ce(b.onKeyDown,Q=>{const De=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!De&&Q.key.length===1&&de(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Te=I().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Ee=Q.target,Ae=Te.indexOf(Ee);Te=Te.slice(Ae+1)}setTimeout(()=>q(Te)),Q.preventDefault()}})})})})})})});aP.displayName=PY;var DY="SelectItemAlignedPosition",iP=p.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...s}=e,i=Za(Vi,r),o=Xa(Vi,r),[l,c]=p.useState(null),[d,u]=p.useState(null),h=_e(t,T=>u(T)),f=Lm(r),m=p.useRef(!1),x=p.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:b,focusSelectedItem:g}=o,w=p.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&y&&v&&b){const T=i.trigger.getBoundingClientRect(),P=d.getBoundingClientRect(),C=i.valueNode.getBoundingClientRect(),A=b.getBoundingClientRect();if(i.dir!=="rtl"){const Ee=A.left-P.left,Ae=C.left-Ee,Et=T.left-Ae,Rt=T.width+Et,Er=Math.max(Rt,P.width),Ur=window.innerWidth-gn,an=SN(Ae,[gn,Math.max(gn,Ur-Er)]);l.style.minWidth=Rt+"px",l.style.left=an+"px"}else{const Ee=P.right-A.right,Ae=window.innerWidth-C.right-Ee,Et=window.innerWidth-T.right-Ae,Rt=T.width+Et,Er=Math.max(Rt,P.width),Ur=window.innerWidth-gn,an=SN(Ae,[gn,Math.max(gn,Ur-Er)]);l.style.minWidth=Rt+"px",l.style.right=an+"px"}const V=f(),I=window.innerHeight-gn*2,H=y.scrollHeight,F=window.getComputedStyle(d),J=parseInt(F.borderTopWidth,10),q=parseInt(F.paddingTop,10),$=parseInt(F.borderBottomWidth,10),R=parseInt(F.paddingBottom,10),D=J+q+H+R+$,U=Math.min(v.offsetHeight*5,D),de=window.getComputedStyle(y),ue=parseInt(de.paddingTop,10),ge=parseInt(de.paddingBottom,10),xe=T.top+T.height/2-gn,$e=I-xe,et=v.offsetHeight/2,Q=v.offsetTop+et,De=J+q+Q,Je=D-De;if(De<=xe){const Ee=V.length>0&&v===V[V.length-1].ref.current;l.style.bottom="0px";const Ae=d.clientHeight-y.offsetTop-y.offsetHeight,Et=Math.max($e,et+(Ee?ge:0)+Ae+$),Rt=De+Et;l.style.height=Rt+"px"}else{const Ee=V.length>0&&v===V[0].ref.current;l.style.top="0px";const Et=Math.max(xe,J+y.offsetTop+(Ee?ue:0)+et)+Je;l.style.height=Et+"px",y.scrollTop=De-xe+y.offsetTop}l.style.margin=`${gn}px 0`,l.style.minHeight=U+"px",l.style.maxHeight=I+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[f,i.trigger,i.valueNode,l,d,y,v,b,i.dir,n]);qt(()=>w(),[w]);const[k,j]=p.useState();qt(()=>{d&&j(window.getComputedStyle(d).zIndex)},[d]);const S=p.useCallback(T=>{T&&x.current===!0&&(w(),g==null||g(),x.current=!1)},[w,g]);return a.jsx(MY,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:S,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:a.jsx(me.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});iP.displayName=DY;var IY="SelectPopperPosition",Tx=p.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=gn,...i}=e,o=Fm(r);return a.jsx(Kv,{...o,...i,ref:t,align:n,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)"}})});Tx.displayName=IY;var[MY,aw]=Dl(Vi,{}),Ex="SelectViewport",oP=p.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...s}=e,i=Xa(Ex,r),o=aw(Ex,r),l=_e(t,i.onViewportChange),c=p.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),a.jsx(Mm.Slot,{scope:r,children:a.jsx(me.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ce(s.onScroll,d=>{const u=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const m=Math.abs(c.current-u.scrollTop);if(m>0){const x=window.innerHeight-gn*2,y=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),b=Math.max(y,v);if(b<x){const g=b+m,w=Math.min(x,g),k=g-w;h.style.height=w+"px",h.style.bottom==="0px"&&(u.scrollTop=k>0?k:0,h.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});oP.displayName=Ex;var lP="SelectGroup",[LY,FY]=Dl(lP),$Y=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=Rn();return a.jsx(LY,{scope:r,id:s,children:a.jsx(me.div,{role:"group","aria-labelledby":s,...n,ref:t})})});$Y.displayName=lP;var cP="SelectLabel",dP=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=FY(cP,r);return a.jsx(me.div,{id:s.id,...n,ref:t})});dP.displayName=cP;var Ef="SelectItem",[BY,uP]=Dl(Ef),hP=p.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=e,l=Za(Ef,r),c=Xa(Ef,r),d=l.value===n,[u,h]=p.useState(i??""),[f,m]=p.useState(!1),x=_e(t,g=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,g,n,s)}),y=Rn(),v=p.useRef("touch"),b=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(BY,{scope:r,value:n,disabled:s,textId:y,isSelected:d,onItemTextChange:p.useCallback(g=>{h(w=>w||((g==null?void 0:g.textContent)??"").trim())},[]),children:a.jsx(Mm.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:a.jsx(me.div,{role:"option","aria-labelledby":y,"data-highlighted":f?"":void 0,"aria-selected":d&&f,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:x,onFocus:ce(o.onFocus,()=>m(!0)),onBlur:ce(o.onBlur,()=>m(!1)),onClick:ce(o.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:ce(o.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:ce(o.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:ce(o.onPointerMove,g=>{var w;v.current=g.pointerType,s?(w=c.onItemLeave)==null||w.call(c):v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(o.onPointerLeave,g=>{var w;g.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:ce(o.onKeyDown,g=>{var k;((k=c.searchRef)==null?void 0:k.current)!==""&&g.key===" "||(SY.includes(g.key)&&b(),g.key===" "&&g.preventDefault())})})})})});hP.displayName=Ef;var dc="SelectItemText",fP=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,...i}=e,o=Za(dc,r),l=Xa(dc,r),c=uP(dc,r),d=EY(dc,r),[u,h]=p.useState(null),f=_e(t,b=>h(b),c.onItemTextChange,b=>{var g;return(g=l.itemTextRefCallback)==null?void 0:g.call(l,b,c.value,c.disabled)}),m=u==null?void 0:u.textContent,x=p.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=d;return qt(()=>(y(x),()=>v(x)),[y,v,x]),a.jsxs(a.Fragment,{children:[a.jsx(me.span,{id:c.textId,...i,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Gi.createPortal(i.children,o.valueNode):null]})});fP.displayName=dc;var mP="SelectItemIndicator",pP=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return uP(mP,r).isSelected?a.jsx(me.span,{"aria-hidden":!0,...n,ref:t}):null});pP.displayName=mP;var Rx="SelectScrollUpButton",gP=p.forwardRef((e,t)=>{const r=Xa(Rx,e.__scopeSelect),n=aw(Rx,e.__scopeSelect),[s,i]=p.useState(!1),o=_e(t,n.onScrollButtonChange);return qt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollTop>0;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?a.jsx(xP,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});gP.displayName=Rx;var Ax="SelectScrollDownButton",yP=p.forwardRef((e,t)=>{const r=Xa(Ax,e.__scopeSelect),n=aw(Ax,e.__scopeSelect),[s,i]=p.useState(!1),o=_e(t,n.onScrollButtonChange);return qt(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;i(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?a.jsx(xP,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});yP.displayName=Ax;var xP=p.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=e,i=Xa("SelectScrollButton",r),o=p.useRef(null),l=Lm(r),c=p.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),qt(()=>{var u;const d=l().find(h=>h.ref.current===document.activeElement);(u=d==null?void 0:d.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),a.jsx(me.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{var d;(d=i.onItemLeave)==null||d.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{c()})})}),zY="SelectSeparator",vP=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return a.jsx(me.div,{"aria-hidden":!0,...n,ref:t})});vP.displayName=zY;var Px="SelectArrow",VY=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=Fm(r),i=Za(Px,r),o=Xa(Px,r);return i.open&&o.position==="popper"?a.jsx(Yv,{...s,...n,ref:t}):null});VY.displayName=Px;var UY="SelectBubbleInput",bP=p.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const s=p.useRef(null),i=_e(n,s),o=Im(t);return p.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&u){const h=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(h)}},[o,t]),a.jsx(me.select,{...r,style:{...P_,...r.style},ref:i,defaultValue:t})});bP.displayName=UY;function wP(e){return e===""||e===void 0}function kP(e){const t=rn(e),r=p.useRef(""),n=p.useRef(0),s=p.useCallback(o=>{const l=r.current+o;t(l),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function jP(e,t,r){const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=WY(e,Math.max(i,0));s.length===1&&(o=o.filter(d=>d!==r));const c=o.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function WY(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var HY=JA,NP=XA,qY=eP,GY=tP,KY=rP,SP=nP,YY=oP,CP=dP,_P=hP,JY=fP,ZY=pP,TP=gP,EP=yP,RP=vP;const fo=HY,mo=qY,ui=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(NP,{ref:n,className:Z("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
530ing-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",e),...r,children:[t,a.jsx(GY,{asChild:!0,children:a.jsx(jl,{className:"h-4 w-4 opacity-50"})})]}));ui.displayName=NP.displayName;const AP=p.forwardRef(({className:e,...t},r)=>a.jsx(TP,{ref:r,className:Z("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(m3,{className:"h-4 w-4"})}));AP.displayName=TP.displayName;const PP=p.forwardRef(({className:e,...t},r)=>a.jsx(EP,{ref:r,className:Z("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(jl,{className:"h-4 w-4"})}));PP.displayName=EP.displayName;const hi=p.forwardRef(({className:e,children:t,position:r="popper",...n},s)=>a.jsx(KY,{children:a.jsxs(SP,{ref:s,className:Z("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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[a.jsx(AP,{}),a.jsx(YY,{className:Z("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(PP,{})]})}));hi.displayName=SP.displayName;const XY=p.forwardRef(({className:e,...t},r)=>a.jsx(CP,{ref:r,className:Z("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));XY.displayName=CP.displayName;const Qn=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(_P,{ref:n,className:Z("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",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(ZY,{children:a.jsx(Rd,{className:"h-4 w-4"})})}),a.jsx(JY,{children:t})]}));Qn.displayName=_P.displayName;const QY=p.forwardRef(({className:e,...t},r)=>a.jsx(RP,{ref:r,className:Z("-mx-1 my-1 h-px bg-muted",e),...t}));QY.displayName=RP.displayName;const OP=nY,DP=p.createContext({}),fi=({...e})=>a.jsx(DP.Provider,{value:{name:e.name},children:a.jsx(oY,{...e})}),$m=()=>{const e=p.useContext(DP),t=p.useContext(IP),{getFieldState:r,formState:n}=Dm(),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},IP=p.createContext({}),ca=p.forwardRef(({className:e,...t},r)=>{const n=p.useId();return a.jsx(IP.Provider,{value:{id:n},children:a.jsx("div",{ref:r,className:Z("space-y-2",e),...t})})});ca.displayName="FormItem";const da=p.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:s}=$m();return a.jsx(Ne,{ref:r,className:Z(n&&"text-destructive",e),htmlFor:s,...t})});da.displayName="FormLabel";const ua=p.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:s,formMessageId:i}=$m();return a.jsx(S_,{ref:t,id:n,"aria-describedby":r?`${s} ${i}`:`${s}`,"aria-invalid":!!r,...e})});ua.displayName="FormControl";const eJ=p.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=$m();return a.jsx("p",{ref:r,id:n,className:Z("text-sm text-muted-foreground",e),...t})});eJ.displayName="FormDescription";const mi=p.forwardRef(({className:e,children:t,...r},n)=>{const{error:s,formMessageId:i}=$m(),o=s?String(s==null?void 0:s.message):t;return o?a.jsx("p",{ref:n,id:i,className:Z("text-sm font-medium text-destructive",e),...r,children:o}):null});mi.displayName="FormMessage";const xt=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e}),tJ=Zb({name:Bt().trim().min(1,"Name is required").max(100),email:Bt().trim().email("Please enter a valid email").max(255),organisation:Bt().max(200).optional(),role:Bt().min(1,"Please select a role"),message:Bt().max(1e3).optional()}),rJ=[{num:"一",icon:"🏦",title:"Capital & Developers",desc:"How do we structure deals that work for both Eastern and Western balance sheets? What do blended-finance vehicles look like when they bridge CDR projects in APAC with compliance buyers in 
530Europe?"},{num:"二",icon:"🌉",title:"The Hong Kong Rails",desc:"With cross-boundary settlement pilots and Core Climate's growing ecosystem, how can global capital flow into Chinese carbon removal — and what's still missing?"},{num:"三",icon:"🔬",title:"MRV & Market Integrity",desc:"From biochar and super-pollutants to satellite monitoring — what needs to be true for credits to be trusted across jurisdictions?"}],nJ=[{value:"6+",label:"Cities"},{value:"200+",label:"Guests hosted"},{value:"30",label:"Max per table"},{value:"0",label:"Slides. Ever."}],sJ=["Carbon removal founders navigating APAC compliance and voluntary markets","Climate finance professionals structuring deals across East and West","MRV and data infrastructure builders making credits trustworthy at scale","Investors and allocators seeking high-integrity project flow from APAC","Decarbonization operators — hydrogen, SAF, super-pollutants, hard-to-abate sectors","Policy and ecosystem connectors who understand both sides of the bridge"],aJ=[{label:"When",value:"Thu 25 June 2026 · 8:30–10:30 am"},{label:"Where",value:"LCAW, London"},{label:"Format",value:"Invitation-only · 30 guests · 3 curated tables"},{label:"Host",value:"Lydia Chen · Seoi.Cure CDR"}];function iJ(){const e=p.useRef(null),[t,r]=p.useState(!1),n=GA({resolver:YA(tJ),defaultValues:{name:"",email:"",organisation:"",role:"",message:""}}),s=()=>{var o;return(o=e.current)==null?void 0:o.scrollIntoView({behavior:"smooth",block:"center"})},i=async o=>{const{error:l}=await Mt.from("crbc_applications").insert({name:o.name,email:o.email,organisation:o.organisation||null,role:o.role,message:o.message||null});if(l){by({title:"Something went wrong",description:"Please try again.",variant:"destructive"});return}Mt.functions.invoke("notify-crbc-application",{body:{name:o.name,email:o.email,organisation:o.organisation||null,role:o.role,message:o.message||null}}).catch(c=>console.error("Notification email failed:",c)),r(!0),by({title:"Thanks — we'll be in touch if there's a fit."})};return a.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[10%] right-[5%] w-[500px] h-[500px] rounded-full opacity-[0.12] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(10 70% 75%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[50%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.08] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(350 60% 80%), transparent 70%)"}}),a.jsx("div",{className:"absolute bottom-[10%] right-[20%] w-[400px] h-[400px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-3",style:{background:"radial-gradient(circle, hsl(176 44% 45%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[10%] right-[5%] w-[500px] h-[500px] rounded-full opacity-0 dark:opacity-[0.1] animate-float-1",style:{background:"radial-gradient(circle, hsl(5 60% 40%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[50%] left-[0%] w-[600px] h-[600px] rounded-full opacity-0 dark:opacity-[0.07] animate-float-2",style:{background:"radial-gradient(circle, hsl(15 50% 35%), transparent 70%)"}})]}),a.jsx("section",{className:"relative max-w-6xl mx-auto px-6 pt-24 pb-16 md:pt-32 md:pb-24",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[a.jsxs(xt,{children:[a.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-muted-foreground mb-4",children:"Seoi.Cure CDR · CRBC · LCAW 2026"}),a.jsxs("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl leading-[1.1] text-foreground mb-6",children:["Carbon Removal",a.jsx("br",{}),"Breakfast Club"]}),a.jsx("p",{className:"font-display text-lg md:text-xl text-muted-foreground italic mb-2",children:"The Fire Horse Table"}),a.jsx("p",{className:"text-sm text-muted-foreground mb-8 max-w-md",children:"An East-West Salon on Climate Finance Infrastructure"}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(G,{onClick:s,size:"lg",className:"rounded-full px-8",children:"Register Interest"}),a.jsx(G,{asChild:!0,variant:"secondary",size:"lg",className:"rounded-full px-8",children:a.jsx("a",{href:"/carbon-removal-breakfast-club",children:"Join our Community"})})]})]}),a.jsx(xt,{delay:.2,className:"relative flex justify-center",children:a.jsx(ne.video,{src:"/video/fire-horse.mp4",autoPlay:!0,loop:!0,muted:!0,playsInl
530ine:!0,className:"w-full max-w-md md:max-w-lg rounded-2xl shadow-2xl",animate:{filter:["drop-shadow(0 0 30px hsl(10 70% 60% / 0.15))","drop-shadow(0 0 50px hsl(10 70% 60% / 0.25))","drop-shadow(0 0 30px hsl(10 70% 60% / 0.15))"]},transition:{duration:6,repeat:1/0,ease:"easeInOut"}})})]})}),a.jsx(Oe,{}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(xt,{children:a.jsxs("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:["Why Now · ",a.jsx("span",{className:"font-chinese",children:"天时"})]})}),a.jsx(xt,{delay:.1,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6",children:"London, 25 June 2026. LCAW is a city of 45,000 voices. The most important ones are often the hardest to hear. This year, we're clearing the noise."})}),a.jsx(xt,{delay:.2,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6",children:"2026 is the Year of the Fire Horse — a rare, 60-year cycle. In Beijing, it marks the 15th Five-Year Plan: the architecture for a new climate economy, from ETS expansion to the first dual-control implementation of both carbon intensity and total volume. In Hong Kong, the financial rails are being built. In London, the capital is waiting."})}),a.jsx(xt,{delay:.3,children:a.jsxs("p",{className:"text-foreground leading-relaxed",children:["The question is no longer ",a.jsx("em",{children:"if"})," these worlds will connect — but ",a.jsx("em",{children:"how"}),", and who will be in the room when they do."]})})]}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24 text-center",children:a.jsx(xt,{children:a.jsx("p",{className:"font-display text-3xl md:text-5xl text-foreground italic leading-tight",children:'"This is that room."'})})}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(xt,{children:a.jsxs("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:["The Other Horse · ",a.jsx("span",{className:"font-chinese",children:"哭哭马"})]})}),a.jsx(xt,{delay:.1,children:a.jsxs("p",{className:"text-foreground leading-relaxed mb-6",children:["We carry both horses into 2026. The ",a.jsx("span",{className:"font-chinese",children:"哭哭马"})," — the crying horse — became China's accidental mascot for this year. A factory worker's stitching mistake turned a smile upside down. Instead of scrapping the batch, the factory sold out in three days."]})}),a.jsx(xt,{delay:.2,children:a.jsxs("p",{className:"text-foreground leading-relaxed mb-6",children:["The internet coined a new idiom: ",a.jsx("strong",{className:"font-chinese",children:"马倒成功"})," — turning an upside-down smile into success. A riff on the ancient ",a.jsx("span",{className:"font-chinese",children:"马到成功"}),', "when the horse arrives, success follows."']})}),a.jsx(xt,{delay:.3,children:a.jsxs("p",{className:"text-foreground leading-relaxed",children:["We are building a correction. The climate economy we need isn't a clean slate — it's decades of inherited mistakes being reframed. ",a.jsx("span",{className:"font-chinese",children:"马不停蹄"}),". The horse doesn't stop its hooves."]})})]}),a.jsx(Oe,{}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(xt,{children:[a.jsxs("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-3 text-center",children:["The Agenda · ",a.jsx("span",{className:"font-chinese",children:"地利"})]}),a.jsx("p",{className:"text-center text-muted-foreground mb-12 max-w-lg mx-auto",children:"Three tables. One conversation. No slides. No opening remarks. Just a well-hosted breakfast designed with the care of Chinese hospitality and the precision of a structured ritual."})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:rJ.map((o,l)=>a.jsx(xt,{delay:l*.12,children:a.jsxs("div",{className:"glass-card p-8 h-full flex flex-col",children:[a.jsx("span",{className:"text-2xl mb-2",children:o.icon}),a.jsx("p",{className:"font-display font-chinese text-sm text-muted-foreground mb-1",children:o.num}),a.jsx("h3",{className:"font-display text-xl text-foreground mb-3",children:o.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:o.desc})]})},o.num))})]}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(xt,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:"Who sits at the table"}),a.jsx("p",{className:"text-foreground leading-relaxed mb-8",children:"The Fire Horse Table is for 30 people building, financing, or operating the new climate finance infrastru
530cture."})]}),a.jsx("ul",{className:"space-y-4",children:sJ.map((o,l)=>a.jsx(xt,{delay:l*.06,children:a.jsxs("li",{className:"flex items-start gap-3 text-foreground",children:[a.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-full bg-accent shrink-0"}),a.jsx("span",{className:"leading-relaxed",children:o})]})},l))})]}),a.jsx(Oe,{flip:!0}),a.jsx("section",{className:"max-w-4xl mx-auto px-6 py-16 md:py-24",children:a.jsx("div",{className:"grid sm:grid-cols-2 md:grid-cols-4 gap-6",children:aJ.map((o,l)=>a.jsx(xt,{delay:l*.08,children:a.jsxs("div",{className:"glass-card p-6 text-center",children:[a.jsx("p",{className:"text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2",children:o.label}),a.jsx("p",{className:"font-display text-lg text-foreground",children:o.value})]})},o.label))})}),a.jsx(Oe,{}),a.jsxs("section",{ref:e,className:"max-w-xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(xt,{children:[a.jsxs("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-2 text-center",children:["Request a Seat · ",a.jsx("span",{className:"font-chinese",children:"申请席位"})]}),a.jsx("p",{className:"text-center text-muted-foreground mb-10 text-sm",children:"The room fills fast. Seats are by invitation. Tell us briefly who you are and why this table matters to you."})]}),t?a.jsx(xt,{children:a.jsxs("div",{className:"glass-card p-10 text-center",children:[a.jsx("p",{className:"font-display text-2xl text-foreground mb-2",children:"Thanks."}),a.jsx("p",{className:"text-muted-foreground",children:"We'll be in touch if there's a fit."})]})}):a.jsx(xt,{delay:.1,children:a.jsx(OP,{...n,children:a.jsxs("form",{onSubmit:n.handleSubmit(i),className:"glass-card p-8 space-y-6",children:[a.jsx(fi,{control:n.control,name:"name",render:({field:o})=>a.jsxs(ca,{children:[a.jsx(da,{children:"Your name"}),a.jsx(ua,{children:a.jsx(ot,{placeholder:"Full name",...o})}),a.jsx(mi,{})]})}),a.jsx(fi,{control:n.control,name:"email",render:({field:o})=>a.jsxs(ca,{children:[a.jsx(da,{children:"Email"}),a.jsx(ua,{children:a.jsx(ot,{type:"email",placeholder:"[email protected]",...o})}),a.jsx(mi,{})]})}),a.jsx(fi,{control:n.control,name:"organisation",render:({field:o})=>a.jsxs(ca,{children:[a.jsx(da,{children:"Organisation"}),a.jsx(ua,{children:a.jsx(ot,{placeholder:"Company or org (optional)",...o})}),a.jsx(mi,{})]})}),a.jsx(fi,{control:n.control,name:"role",render:({field:o})=>a.jsxs(ca,{children:[a.jsx(da,{children:"I'm a…"}),a.jsxs(fo,{onValueChange:o.onChange,defaultValue:o.value,children:[a.jsx(ua,{children:a.jsx(ui,{children:a.jsx(mo,{placeholder:"Select role"})})}),a.jsxs(hi,{children:[a.jsx(Qn,{value:"founder",children:"Founder"}),a.jsx(Qn,{value:"investor",children:"Investor"}),a.jsx(Qn,{value:"climate-professional",children:"Climate Professional"}),a.jsx(Qn,{value:"other",children:"Other"})]})]}),a.jsx(mi,{})]})}),a.jsx(fi,{control:n.control,name:"message",render:({field:o})=>a.jsxs(ca,{children:[a.jsx(da,{children:"Why does this table matter to you?"}),a.jsx(ua,{children:a.jsx(As,{placeholder:"A few lines is perfect…",rows:4,...o})}),a.jsx(mi,{})]})}),a.jsx(G,{type:"submit",size:"lg",className:"w-full rounded-full",disabled:n.formState.isSubmitting,children:n.formState.isSubmitting?"Sending…":"Request My Seat"})]})})})]}),a.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(xt,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8 text-center",children:"Where climate finance becomes human again"}),a.jsx("p",{className:"text-center text-foreground leading-relaxed max-w-2xl mx-auto mb-12",children:"The Carbon Removal Breakfast Club began as an experiment: what if the most important conversations in CDR happened around a breakfast table, not a conference stage? Since 2023, CRBC has convened builders, funders, and operators across London, Lisbon, Hong Kong, and Vancouver — always intimate, always honest, always 0 slides."})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-12",children:nJ.map((o,l)=>a.jsx(xt,{delay:l*.08,children:a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"font-display text-3xl md:text-4xl text-foreground",children:o.value}),a.jsx("p",{className:"text-xs tracking-[0.15em] uppercase text-muted-foreground mt-1",children:o.label})]})},o.label))})]}),a.jsx(Oe,{flip:!0}),a.jsx("section",{className:"max-w-xl mx-auto px-6 py-16 md:py-24 text-center",children:a.jsxs(xt,{children:[a.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mb-4",children:[a.jsx(G,{onClick:s,size:"lg",className:"rounded-full px-10",children:"Request My Seat →"}),a.jsx(G,{asChild:!0,variant:"secondary",size:"lg",className:"rounded-full px-10",children:a.jsx("a",{href:"/carbon-removal-breakfast-club",children:"Join our Community"})})]}),a.jsx("p",{className:"text-sm text-muted-foreground",children:`Or reply "Table" to any Fresh Air Finance email and we'll reach out directly.`})]})})]})}const oJ=Zb({email:Bt().trim().email("Please enter a valid email.").max(255),website_url:Bt().max(255).optional()}),lJ=()=>{const{toast:e}=Xf(),[t,r]=p.useState(!1),n=GA({resolver:YA(oJ),defaultValues:{email:"",website_url:""}}),s=async i=>{const{data:o,error:l}=await Mt.functions.invoke("newsletter-signup",{body:{email:i.email.trim(),website_url:i.website_url||void 0,source_page:"/subscribe",source:QR()}});if(l||!(o!=null&&o.success)){e({title:"Something went wrong",description:"Please try again in a moment.",variant:"destructive"});return}r(!0)};return a.jsx("div",{className:"flex min-h-[70vh] flex-col items-center justify-center bg-background px-4 py-20",children:a.jsx("div",{className:"w-full max-w-md",children:t?a.jsxs("div",{className:"rounded-2xl border bg-card p-8 text-center shadow-sm md:p-12",children:[a.jsx(Ad,{className:"mx-auto h-10 w-10 text-primary"}),a.jsx("h2",{className:"mt-4 font-display text-2xl font-semibold text-foreground",children:"You're on the list."}),a.jsx("p",{className:"mx-auto mt-4 text-muted-foreground",children:"Thank y
530ou for subscribing. We'll be in touch with updates."}),a.jsx("div",{className:"mt-8",children:a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx(se,{to:"/",children:"Return home"})})})]}):a.jsxs("div",{className:"rounded-2xl border bg-card p-8 shadow-sm md:p-12",children:[a.jsx("h1",{className:"font-display text-2xl font-semibold text-foreground md:text-3xl",children:"Get future updates."}),a.jsx("p",{className:"mt-3 text-muted-foreground",children:"Sign up to receive the latest field notes and updates from Seoi.Cure."}),a.jsx(OP,{...n,children:a.jsxs("form",{onSubmit:n.handleSubmit(s),className:"mt-8 space-y-6",children:[a.jsx("div",{className:"absolute left-[-9999px] top-[-9999px]","aria-hidden":"true",children:a.jsx(fi,{control:n.control,name:"website_url",render:({field:i})=>a.jsxs(ca,{children:[a.jsx(da,{children:"Website URL"}),a.jsx(ua,{children:a.jsx(ot,{tabIndex:-1,autoComplete:"off",...i})})]})})}),a.jsx(fi,{control:n.control,name:"email",render:({field:i})=>a.jsxs(ca,{children:[a.jsxs(da,{children:["Email ",a.jsx("span",{className:"text-destructive",children:"*"})]}),a.jsx(ua,{children:a.jsx(ot,{type:"email",placeholder:"[email protected]",...i})}),a.jsx(mi,{})]})}),a.jsxs(G,{type:"submit",size:"lg",disabled:n.formState.isSubmitting,className:"w-full",children:[n.formState.isSubmitting?"Subscribing…":"Subscribe",!n.formState.isSubmitting&&a.jsx(qe,{className:"ml-2 h-4 w-4"})]}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:["We'll only use your email to send Seoi.Cure updates. Unsubscribe any time. See our"," ",a.jsx(se,{to:"/privacy",className:"underline hover:text-foreground",children:"privacy policy"}),"."]})]})})]})})})},CN=[{Icon:_3,label:"Biochar",caption:"Carbon-rich solid"},{Icon:O3,label:"ERW",caption:"Enhanced rock weathering"},{Icon:B3,label:"DAC",caption:"Direct air capture"}],cJ=[{label:"Senior A",share:"~70%",note:"Lowest risk · first paid",bg:"hsl(var(--primary) / 0.10)",border:"hsl(var(--primary) / 0.35)"},{label:"Mezzanine B",share:"~20%",note:"Mid risk · mid return",bg:"hsl(var(--accent) / 0.12)",border:"hsl(var(--accent) / 0.40)"},{label:"Junior C",share:"~10%",note:"First-loss · highest return",bg:"hsl(176 44% 75% / 0.25)",border:"hsl(176 44% 55% / 0.45)"}],_N=({Icon:e,label:t,caption:r})=>a.jsxs("div",{className:"flex flex-col items-center text-center gap-2 w-28",children:[a.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center",style:{background:"hsl(var(--accent) / 0.08)",border:"1.5px solid hsl(var(--accent) / 0.35)"},children:a.jsx(e,{className:"w-6 h-6 text-accent",strokeWidth:1.5})}),a.jsxs("div",{children:[a.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),a.jsx("div",{className:"text-xs text-muted-foreground leading-tight",children:r})]})]}),TN=()=>a.jsxs("div",{className:"rounded-2xl px-6 py-5 text-center min-w-[160px]",style:{background:"hsl(var(--accent) / 0.08)",border:"1px solid hsl(var(--accent) / 0.40)"},children:[a.jsx("div",{className:"font-display text-lg text-foreground",children:"Pool (SPV)"}),a.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Diversified cash flows"})]}),EN=()=>a.jsx("div",{className:"w-full max-w-sm space-y-2",children:cJ.map(e=>a.jsxs("div",{className:"rounded-xl px-4 py-3 flex items-center justify-between",style:{background:e.bg,border:`1px solid ${e.border}`},children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-sm font-medium text-foreground",children:e.label}),a.jsx("div",{className:"text-xs text-muted-foreground",children:e.note})]}),a.jsx("div",{className:"text-sm font-mono text-muted-foreground",children:e.share})]},e.label))});function dJ(){return a.jsxs(ne.figure,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"my-10 rounded-3xl border border-border/50 bg-background/40 p-6 md:p-12",role:"img","aria-label":"Diagram: CDR credits from biochar, ERW and DAC flow into a pooled SPV, then into Senior A, Mezzanine B and Junior C tranches",children:[a.jsxs("div",{className:"hidden md:grid grid-cols-[auto_1fr_auto_1fr_auto] items-center gap-6",children:[a.jsx("div",{className:"flex flex-col gap-6",children:CN.map(e=>a.jsx(_N,{...e},e.label))}),a.jsxs("svg",{viewBox:"0 0 120 220",className:"w-full h-48",preserveAspectRatio:"none","aria-hidden":"true",children:[a.jsx("defs",{children:a.jsx("marker",{id:"arrow-jade",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:a.jsx("path",{d:"M0,0 L10,5 L0,10 z",fill:"hsl(var(--accent) / 0.55)"})})}),[30,110,190].map((e,t)=>a.jsx(ne.path,{d:`M0,${e} C50,${e} 60,110 120,110`,fill:"none",stroke:"hsl(var(--accent) / 0.45)",strokeWidth:"1.25",markerEnd:"url(#arrow-jade)",initial:{pathLength:0},whileInView:{pathLength:1},viewport:{once:!0},transition:{duration:1,delay:.2+t*.1,ease:"easeOut"}},t))]}),a.jsx(TN,{}),a.jsxs("svg",{viewBox:"0 0 120 60",className:"w-full h-10",preserveAspectRatio:"none","aria-hidden":"true",children:[a.jsx("defs",{children:a.jsx("marker",{id:"arrow-jade-2",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:a.jsx("path",{d:"M0,0 L10,5 L0,10 z",fill:"hsl(var(--accent) / 0.55)"})})}),a.jsx(ne.path,{d:"M0,30 C50,30 60,30 120,30",fill:"none",stroke:"hsl(var(--accent) / 0.45)",strokeWidth:"1.25",markerEnd:"url(#arrow-jade-2)",initial:{pathLength:0},whileInView:{pathLength:1},viewport:{once:!0},transition:{duration:.8,delay:.6,ease:"easeOut"}})]}),a.jsx(EN,{})]}),a.jsxs("div",{className:"hidden md:grid grid-cols-[auto_1fr_auto_1fr_auto] gap-6 mt-6 text-xs uppercase tracking-wider text-muted-foreground",children:[a.jsx("div",{className:"text-center w-28",children:"Sources"}),a.jsx("div",{}),a.jsx("div",{className:"text-center min-w-[160px]",children:"Aggregation"}),a.jsx("div",{}),a.jsx("div",{className:"text-center max-w-sm",children:"Tranches"})]}),a.jsxs("div",{className:"md:hidden flex flex-col items-center gap-5",children:[a.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Sources"}),a.jsx("div",{className:"flex justify-center gap-4 flex-wrap",children:CN.map(e=>a.jsx(_N,{...e},e.label))}),a.jsx(Z0,{className:"w-5 h-5 text-accent/60",strokeWidth:1.5}),a.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Aggregation"}),a.jsx(TN,{}),a.jsx(Z0,{className:"w-5 h-5 text-accent/60",strokeWidth:1.5}),a.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Tranches"}),a.jsx(EN,{})]}),a.jsx("figcaption",{className:"mt-8 text-center text-xs text-muted-foreground max-w-xl mx-auto leading-relaxed",children:"How CDR credits flow from developers into a pooled vehicle and out to investors as risk-stratified tranches."})]})}const Bm=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:Z("w-full caption-bottom text-sm",e),...t})}));Bm.displayName="Table";const zm=p.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:Z("[&_tr]:border-b",e),...t}));zm.displayName="TableHeader";const Vm=p.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:Z("[&_tr:last-child]:border-0",e),...t}));Vm.displayName="TableBody";const uJ=p.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:Z("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));uJ.displayName="TableFooter";const Ui=p.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:Z("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ui.displayName="TableRow";const Ps=p.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:Z("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ps.displayName="TableHead";const Os=p.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:Z("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Os.displayName="TableCell";const hJ=p.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:Z("mt-4 text-sm text-muted-foreground",e),...t}));hJ.displayName="TableCaption";const Ve=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e}),fJ=[{value:"$40–80B",label:"CDR market by 2030",source:"McKinsey, 2024"},{value:"$100B+",label:"Annual investment needed",source:"IPCC AR6"},{value:"~90%",label:"Funding gap today",source:"State of CDR, 2024"}],mJ=[{icon:"📊",title:"Data Scarcity",desc:"CDR is a nascent market. Historical performance data — default rates, recovery rates, vintage analysis — doesn't exist yet. Without this, traditional credit modelling is a guessing game."},{icon:"📦",title:"Insufficient Volume",desc:"Securitization needs a critical mass of assets. Most CDR projects are small, bespoke, and early-stage. We don't yet have the pipeline to fill a vehicle."}
530,{icon:"⚠️",title:"Technology & Reversal Risk",desc:"Biochar might wash away. DAC machines might break. ERW measurement is still evolving. These aren't abstract risks — they determine whether a credit is worth the paper it's printed on."},{icon:"💱",title:"Price Volatility",desc:"Carbon credit prices swing wildly. Voluntary markets lack the liquidity and standardisation that give ABS investors confidence in predictable cash flows."},{icon:"🏛️",title:"Regulatory Uncertainty",desc:"Compliance frameworks are fragmented. Article 6 is still unfolding. Jurisdictional differences create legal complexity for cross-border pooling."},{icon:"🔍",title:"Rating Agency Readiness",desc:"No rating agency has published a methodology for CDR-backed securities. Without ratings, institutional mandates can't participate."}],pJ=[{type:"Forward Purchase Agreements",desc:"Contracts to buy future CDR credits at a fixed price — the most promising near-term collateral."},{type:"Carbon Credit Receivables",desc:"Revenue streams from verified credits already sold or contracted with buyers."},{type:"Equipment & Project Finance Loans",desc:"Loans to CDR developers (biochar kilns, DAC units, ERW logistics) — familiar territory for ABS investors."}],gJ=[{name:"Puro.earth",focus:"Biochar, ERW, BECCS",role:"Leading registry for engineered CDR credits"},{name:"Isometric",focus:"Multi-pathway CDR",role:"Science-first verification for permanent removal"},{name:"Charm Industrial",focus:"Bio-oil injection",role:"Vertically integrated CDR developer"},{name:"CarbonPlan",focus:"Research & analysis",role:"Open-source CDR science and data"},{name:"Frontier (Stripe)",focus:"Advance market commitments",role:"Demand aggregation for CDR at scale"},{name:"Core Climate (HKEX)",focus:"Carbon trading",role:"Hong Kong's voluntary carbon marketplace"},{name:"Bayfront Infrastructure",focus:"Project finance CLO",role:"Precedent for infrastru
530cture securitization in APAC"},{name:"MicroConnect",focus:"Revenue-based finance",role:"Micro-business securitization platform (HK)"}],yJ=[{term:"ABS",definition:"Asset-Backed Security — a bond collateralised by a pool of assets."},{term:"CDR",definition:"Carbon Dioxide Removal — actively drawing CO₂ out of the atmosphere."},{term:"CLO",definition:"Collateralised Loan Obligation — a securitization of loans."},{term:"DAC",definition:"Direct Air Capture — using machines to filter CO₂ from ambient air."},{term:"ERW",definition:"Enhanced Rock Weathering — spreading crushed silicate rocks to accelerate natural CO₂ absorption."},{term:"FPA",definition:"Forward Purchase Agreement — a contract to buy credits at a future date."},{term:"MRV",definition:"Measurement, Reporting & Verification — the process of quantifying carbon removal."},{term:"SBTi",definition:"Science Based Targets initiative — a framework for corporate emission reduction targets."},{term:"SPV",definition:"Special Purpose Vehicle — a ring-fenced legal entity used in structured finance."},{term:"Tranche",definition:"A 'slice' of risk/return in a securitization — senior, mezzanine, or equity."}];function xJ(){return a.jsxs("div",{className:"min-h-screen relative overflow-hidden",children:[a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[10%] right-[5%] w-[500px] h-[500px] rounded-full opacity-[0.10] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 65%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[50%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(200 50% 70%), transparent 70%)"}}),a.jsx("div",{className:"absolute bottom-[10%] right-[20%] w-[400px] h-[400px] rounded-full opacity-[0.05] dark:opacity-0 animate-float-3",style:{background:"radial-gradient(circle, hsl(176 44% 45%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[10%] right-[5%] w-[500px] h-[500px] rounded-full opacity-0 dark:opacity-[0.08] animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 30%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[50%] left-[0%] w-[600px] h-[600px] rounded-full opacity-0 dark:opacity-[0.06] animate-float-2",style:{background:"radial-gradient(circle, hsl(200 40% 25%), transparent 70%)"}})]}),a.jsx(Qt,{title:"CDR Securitization Discussion Paper",subtitle:"How structured finance can unlock institutional capital for carbon dioxide removal.",children:a.jsx("p",{className:"text-sm text-muted-foreground",children:"By Lydia Chen · Seoi.Cure CDR · April 2024"})}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(Ve,{children:a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:"Introduction"})}),a.jsx(Ve,{delay:.1,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6",children:"Carbon dioxide removal (CDR) financing is entering uncharted territory. The science is clear: limiting warming to 1.5°C requires not just reducing emissions but actively pulling carbon out of the atmosphere. Yet the capital markets infrastructure to finance CDR at scale simply doesn't exist."})}),a.jsx(Ve,{delay:.2,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6",children:"This paper explores whether securitization — the same financial technology that unlocked trillions in mortgage, auto, and consumer lending markets — can be adapted to channel institutional capital into high-integrity carbon removal."})}),a.jsx(Ve,{delay:.3,children:a.jsx("p",{className:"text-foreground leading-relaxed",children:'It is not a blueprint. It is a discu
530ssion paper — a provocation designed to move the conversation from "should we?" to "how might we?" It maps the landscape, names the obstacles honestly, and proposes structural mechanisms that could make CDR investable for the first time.'})})]}),a.jsx(Oe,{}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-24 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-5xl",children:[a.jsxs(Ve,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-4 text-center",children:"The CDR Market"}),a.jsx("p",{className:"text-center text-muted-foreground max-w-2xl mx-auto mb-12",children:"The gap between what's needed and what's financed is staggering."})]}),a.jsx("div",{className:"grid sm:grid-cols-3 gap-6 mb-12",children:fJ.map((e,t)=>a.jsx(Ve,{delay:t*.1,children:a.jsxs("div",{className:"glass-card p-8 text-center",children:[a.jsx("p",{className:"font-display text-3xl md:text-4xl font-bold text-accent",children:e.value}),a.jsx("p",{className:"mt-2 text-sm font-medium text-foreground",children:e.label}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:e.source})]})},e.label))}),a.jsx(Ve,{delay:.3,children:a.jsxs("blockquote",{className:"border-l-4 border-accent/40 pl-6 py-2 italic text-foreground max-w-2xl mx-auto",children:[`"To meet net-zero targets, the world needs to remove 6–10 gigatonnes of CO₂ per year by 2050. Current removal capacity is less than 0.01 Gt. The financing gap isn't incremental — it's orders of magnitude."`,a.jsx("cite",{className:"block mt-2 text-xs text-muted-foreground not-italic",children:"— McKinsey & Company, 2024"})]})})]})]}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(Ve,{children:a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:'What Makes CDR "High Integrity"?'})}),a.jsx(Ve,{delay:.1,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6",children:"Not all carbon removal is created equal. For securitization to work, the underlying credits must meet rigorous quality criteria. The market is converging on five pillars:"})}),a.jsx("div",{className:"space-y-4",children:[{title:"Durability",desc:"How long is the carbon stored? High-integrity CDR means centuries to millennia — not decades."},{title:"Additionality",desc:"Would this removal have happened anyway? Credits must represent genuinely new carbon drawdown."},{title:"Measurability",desc:"Can the removal be quantified with scientific rigor? MRV must be robust and independently verified."},{title:"Permanence Risk Management",desc:"What happens if the carbon is released? Credible buffer pools and insurance mechanisms matter."},{title:"Net Negativity",desc:"After accounting for lifecycle emissions (energy, transport, materials), is the net removal genuinely negative?"}].map((e,t)=>a.jsx(Ve,{delay:.15+t*.06,children:a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-display text-base font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},e.title))})]}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(Ve,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-4",children:"What's Securitization?"}),a.jsx("p",{className:"text-foreground leading-relaxed mb-8 max-w-3xl",children:"At its core, securitization transforms illiquid assets into tradeable securities. A bank doesn't hold every mortgage it writes — it pools them, structures the cash flows into tranches of varying risk and return, and sells them to investors. The same mechanic can apply to any asset class with predictable (or modelable) cash flows."})]}),a.jsx(Ve,{delay:.05,children:a.jsx(dJ,{})}),a.jsx(Ve,{delay:.1,children:a.jsx("h3",{className:"font-display text-xl font-semibold text-foreground mb-6",children:"Three Asset Types for CDR"})}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:pJ.map((e,t)=>a.jsx(Ve,{delay:.15+t*.1,children:a.jsxs("div",{className:"glass-card p-6 h-full",children:[a.jsx("h4",{className:"font-display text-base font-semibold text-foreground mb-2",children:e.type}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},e.type))})]}),a.jsx(Oe,{}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-24 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl",children:[a.jsx(Ve,{children:a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:"Why Securitization for CDR?"})}),[{title:"Pooling & Diversification",text:"A single biochar project is risky. A pool of 50 projects across geographies and methodologies is modelable. Securitization turns idiosyncratic risk into portfolio risk."},{title:"Liquidity Creation",text:"CDR credits today are bilateral, illiquid, and opaque. Wrapping them in a security creates s
530omething tradeable — with a price, a rating, and a market."},{title:"Risk Redistribution",text:"Tranching lets different investors take different bets. A development bank takes the equity tranche (highest risk, catalytic). A pension fund takes the senior tranche (lower yield, investment-grade)."},{title:"Compliance Demand Signal",text:"SBTi's 2024 update now allows companies to count high-quality CDR credits toward net-zero targets. This creates a structural demand floor that securitization can plug into."}].map((e,t)=>a.jsx(Ve,{delay:t*.1,children:a.jsxs("div",{className:"mb-8",children:[a.jsx("h3",{className:"font-display text-xl font-semibold text-foreground mb-2",children:e.title}),a.jsx("p",{className:"text-foreground leading-relaxed",children:e.text})]})},e.title))]})]}),a.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(Ve,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-4 text-center",children:"The Honest Challenges"}),a.jsx("p",{className:"text-center text-muted-foreground max-w-2xl mx-auto mb-12",children:"We don't pretend this is easy. Here's what stands between CDR and capital markets."})]}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:mJ.map((e,t)=>a.jsx(Ve,{delay:t*.08,children:a.jsxs("div",{className:"glass-card p-6 h-full flex flex-col",children:[a.jsx("span",{className:"text-2xl mb-2",children:e.icon}),a.jsx("h3",{className:"font-display text-base font-semibold text-foreground mb-2",children:e.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},e.title))})]}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(Ve,{children:a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-8",children:"Structuring a Deal"})}),a.jsx(Ve,{delay:.1,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-8",children:"Despite the challenges, a CDR securitization is structurally possible — if you borrow from adjacent markets and build in the right protections. Here's how a hypothetical deal might work:"})}),[{title:"Credit Enhancement",text:"Over-collateralisation, reserve accounts, and subordination. The equity tranche absorbs first losses. A 20–30% subordination level gives senior investors meaningful protection — comparable to early solar ABS deals."},{title:"Dual Recourse",text:"Investors have recourse to both the underlying credits AND the project developer's revenue streams. If a credit fails verification, the developer's other assets provide a backstop."},{title:"Eligibility Criteria",text:"Only credits meeting defined quality thresholds enter the pool: minimum durability (100+ years), third-party verification, specified methodologies (Puro, Isometric, Gold Standard)."},{title:"Price Match Mechanism",text:"A built-in price floor/ceiling mechanism that adjusts payouts if carbon credit prices move beyond defined bands — protecting both investors and developers from extreme volatility."},{title:"True-Up Mechanism",text:"Periodic reconciliation of actual vs. projected removals. If a project under-delivers, the shortfall is allocated to subordinated tranches first. If it over-delivers, excess value flows to equity holders."}].map((e,t)=>a.jsx(Ve,{delay:.15+t*.08,children:a.jsxs("div",{className:"mb-8",children:[a.jsx("h3",{className:"font-display text-xl font-semibold text-foreground mb-2",children:e.title}),a.jsx("p",{className:"text-foreground leading-relaxed",children:e.text})]})},e.title))]}),a.jsx(Oe,{}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-24 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl text-center",children:[a.jsx(Ve,{children:a.jsx("h2",{className:"font-display text-3xl md:text-5xl text-foreground mb-8 italic",children:"So Now What?"})}),a.jsx(Ve,{delay:.1,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6 text-left",children:"This paper isn't the end of the conversation — it's the beginning. Securitization won't happen in a lab. It will happen when developers, investors, rating agencies, registries, and policymakers sit in the same room and build the rails together."})}),a.jsx(Ve,{delay:.2,children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6 text-left",children:"Seoi.Cure exists to be that room. We're building the structured finance infrastru
530cture for carbon removal — one conversation, one deal structure, one proof of concept at a time."})}),a.jsx(Ve,{delay:.3,children:a.jsxs("blockquote",{className:"border-l-4 border-accent/40 pl-6 py-2 italic text-foreground text-left",children:[`"The mortgage market wasn't built in a day. The first MBS was imperfect. But it worked — and it changed how capital flowed forever. CDR deserves the same ambition."`,a.jsx("cite",{className:"block mt-2 text-xs text-muted-foreground not-italic",children:"— Lydia Chen, Seoi.Cure CDR"})]})})]})]}),a.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 md:py-24",children:[a.jsxs(Ve,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-4",children:"Appendix: Relevant Platforms & Precedents"}),a.jsx("p",{className:"text-muted-foreground mb-8",children:"The ecosystem of registries, marketplaces, and structured finance precedents that inform this work."})]}),a.jsx(Ve,{delay:.1,children:a.jsx("div",{className:"glass-card overflow-hidden",children:a.jsxs(Bm,{children:[a.jsx(zm,{children:a.jsxs(Ui,{children:[a.jsx(Ps,{children:"Platform"}),a.jsx(Ps,{children:"Focus"}),a.jsx(Ps,{className:"hidden md:table-cell",children:"Role"})]})}),a.jsx(Vm,{children:gJ.map(e=>a.jsxs(Ui,{children:[a.jsx(Os,{className:"font-medium text-foreground",children:e.name}),a.jsx(Os,{className:"text-muted-foreground",children:e.focus}),a.jsx(Os,{className:"hidden md:table-cell text-muted-foreground",children:e.role})]},e.name))})]})})})]}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:[a.jsx(Ve,{children:a.jsx("h2",{className:"font-display text-2xl md:text-3xl text-foreground mb-8",children:"Glossary"})}),a.jsx("div",{className:"space-y-3",children:yJ.map((e,t)=>a.jsx(Ve,{delay:t*.04,children:a.jsxs("div",{className:"flex gap-4 items-baseline",children:[a.jsx("span",{className:"font-display font-bold text-accent shrink-0 w-12",children:e.term}),a.jsx("span",{className:"text-sm text-muted-foreground leading-relaxed",children:e.definition})]})},e.term))})]}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 pb-8",children:a.jsx(Ve,{children:a.jsxs("div",{className:"glass-card p-6 text-xs text-muted-foreground space-y-3",children:[a.jsxs("p",{children:[a.jsx("strong",{className:"text-muted-foreground",children:"Disclaimer:"})," This discussion paper is for informational purposes only and does not constitute financial, legal, or investment advice. The structures described are hypothetical and illustrative. Seoi.Cure CDR does not offer securities or investment products."]}),a.jsxs("p",{children:[a.jsx("strong",{className:"text-muted-foreground",children:"Version:"})," v2024-04-10 · First published April 2024."]})]})})}),a.jsx(Oe,{}),a.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 md:py-24 text-center",children:[a.jsxs(Ve,{children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl text-foreground mb-4",children:"Continue the Conversation"}),a.jsx("p",{className:"text-muted-foreground max-w-lg mx-auto mb-10",children:"Whether you're building, investing, or advising — we'd like to hear from you."})]}),a.jsx(Ve,{delay:.1,children:a.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[a.jsx(G,{asChild:!0,size:"lg",className:"rounded-full px-8",children:a.jsxs(se,{to:"/contact",children:[a.jsx(Ra,{className:"h-4 w-4 mr-2"})," Get in Touch"]})}),a.jsx(G,{asChild:!0,variant:"secondary",size:"lg",className:"rounded-full px-8",children:a.jsxs(se,{to:"/carbon-removal-breakfast-club",children:[a.jsx(Od,{className:"h-4 w-4 mr-2"})," Join the Community"]})}),a.jsx(G,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full px-8",children:a.jsxs(se,{to:"/research",children:[a.jsx(Yc,{className:"h-4 w-4 mr-2"})," Back to Research"]})})]})})]})]})}var Um="Collapsible",[vJ,MP]=Xt(Um),[bJ,iw]=vJ(Um),LP=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...l}=e,[c,d]=Fr({prop:n,defaultProp:s??!1,onChange:o,caller:Um});return a.jsx(bJ,{scope:r,disabled:i,contentId:Rn(),open:c,onOpenToggle:p.useCallback(()=>d(u=>!u),[d]),children:a.jsx(me.div,{"data-state":dw(c),"data-disabled":i?"":void 0,...l,ref:t})})});LP.displayName=Um;var FP="CollapsibleTrigger",ow=p.forwardRef((e,t)=>
530{const{__scopeCollapsible:r,...n}=e,s=iw(FP,r);return a.jsx(me.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":dw(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:t,onClick:ce(e.onClick,s.onOpenToggle)})});ow.displayName=FP;var lw="CollapsibleContent",cw=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=iw(lw,e.__scopeCollapsible);return a.jsx(nn,{present:r||s.open,children:({present:i})=>a.jsx(wJ,{...n,ref:t,present:i})})});cw.displayName=lw;var wJ=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=e,o=iw(lw,r),[l,c]=p.useState(n),d=p.useRef(null),u=_e(t,d),h=p.useRef(0),f=h.current,m=p.useRef(0),x=m.current,y=o.open||l,v=p.useRef(y),b=p.useRef(void 0);return p.useEffect(()=>{const g=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(g)},[]),qt(()=>{const g=d.current;if(g){b.current=b.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const w=g.getBoundingClientRect();h.current=w.height,m.current=w.width,v.current||(g.style.transitionDuration=b.current.transitionDuration,g.style.animationName=b.current.animationName),c(n)}},[o.open,n]),a.jsx(me.div,{"data-state":dw(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:y&&s})});function dw(e){return e?"open":"closed"}var $P=LP,kJ=ow,jJ=cw;const NJ=$P,SJ=ow,CJ=cw,ar=({children:e,className:t="",delay:r=0})=>a.jsx(ne.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:r,ease:[.22,1,.36,1]},className:t,children:e});function _J(e){return e.filter(t=>t.type==="heading"&&t.level===2).map(t=>({id:t.id,text:t.text}))}function TJ(e,t){const r=`section-${t}`;switch(e.type){case"heading":return e.level===2?a.jsx(ar,{children:a.jsx("h2",{id:e.id,className:"font-display text-3xl md:text-4xl text-foreground mb-8 mt-16 first:mt-0 scroll-mt-24",children:e.text})},r):a.jsx(ar,{children:a.jsx("h3",{id:e.id,className:"font-display text-xl font-semibold text-foreground mb-6 mt-12",children:e.text})},r);case"prose":return a.jsx(ar,{children:a.jsx("p",{className:"text-foreground leading-relaxed mb-6",dangerouslySetInnerHTML:{__html:e.html}})},r);case"blockquote":return a.jsx(ar,{children:a.jsxs("blockquote",{className:"border-l-4 border-accent/40 pl-6 py-4 my-10 bg-secondary/20 rounded-r-xl",children:[a.jsxs("p",{className:"italic text-foreground text-lg leading-relaxed",children:['"',e.text,'"']}),e.cite&&a.jsxs("cite",{className:"block mt-2 text-xs text-muted-foreground not-italic",children:["— ",e.cite]})]})},r);case"list":const n=e.ordered?"ol":"ul";return a.jsx(ar,{children:a.jsx(n,{className:`mb-10 space-y-3 ${e.ordered?"list-decimal":"list-disc"} pl-6`,children:e.items.map((s,i)=>a.jsx("li",{className:"text-foreground leading-relaxed",dangerouslySetInnerHTML:{__html:s}},i))})},r);case"callout-cards":return a.jsx("div",{className:`grid gap-6 my-10 ${e.cards.length<=2?"sm:grid-cols-2":e.cards.length===3?"sm:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-2"}`,children:e.cards.map((s,i)=>a.jsx(ar,{delay:i*.08,children:a.jsxs("div",{className:"glass-card p-6 h-full flex flex-col",children:[s.icon&&a.jsx("span",{className:"text-2xl mb-2",children:s.icon}),a.jsx("h4",{className:"font-display text-base font-semibold text-foreground mb-2",children:s.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s.desc})]})},i))},r);case"stat-panel":return a.jsx("div",{className:`grid gap-6 my-12 sm:grid-cols-${Math.min(e.stats.length,4)}`,children:e.stats.map((s,i)=>a.jsx(ar,{delay:i*.1,children:a.jsxs("div",{className:"glass-card p-8 text-center",children:[a.jsx("p",{className:"font-display text-3xl md:text-4xl font-bold text-accent",children:s.value}),a.jsx("p",{className:"mt-2 text-sm font-medium text-foreground",children:s.label}),s.source&&a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:s.source})]})},i))},r);case"image":return a.jsx(ar,{children:a.jsxs("figure",{className:"my-12",children:[a.jsx("img",{src:e.src,alt:e.alt,className:"rounded-2xl shadow-xl mx-auto max-w-full",loading:"lazy"}),a.jsx("figcaption",{className:"text-center text-sm text-muted-foreground mt-4 italic",children:e.caption})]})},r);case"table":return a.jsx(ar,{children:a.jsx("div",{className:"glass-card overflow-hidden my-10",children:a.jsxs(Bm,{children:[a.jsx(zm,{children:a.jsx(Ui,{children:e.headers.map(s=>a.jsx(Ps,{children:s},s))})}),a.jsx(Vm,{children:e.rows.map((s,i)=>a.jsx(Ui,{children:s.map((o,l)=>a.jsx(Os,{className:l===0?"font-medium text-foreground":"text-muted-foreground",children:o},l))},i))})]})})},r);default:return null}}const EJ=()=>{const{slug:e}=WF(),t=Ec.find(l=>l.slug===e),[r,n]=p.useState(!1),s=p.useMemo(()=>t?_J(t.sections):[],[t]);if(!t)return a.jsx(wc,{to:"/research",replace:!0});const i=Ec.find(l=>l.number===t.number-1),o=Ec.find(l=>l.number===t.number+1);return a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:t.title,subtitle:`Securitization Saturday #${t.number}`}),a.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10",children:[a.jsx("div",{className:"absolute top-[15%] right-[10%] w-[500px] h-[500px] rounded-full opacity-[0.08] dark:opacity-0 animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 65%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[55%] left-[0%] w-[600px] h-[600px] rounded-full opacity-[0.06] dark:opacity-0 animate-float-2",style:{background:"radial-gradient(circle, hsl(176 44% 55%), transparent 70%)"}}),a.jsx("div",{className:"absolute top-[15%] right-[10%] w-[500px] h-[500px] rounded-full opacity-0 dark:opacity-[0.08] animate-float-1",style:{background:"radial-gradient(circle, hsl(176 44% 30%), transparent 70%)"}})]}),a.jsxs("section",{className:"relative overflow-hidden py-8 md:py-10 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl space-y-6",children:[a.jsx(ar,{children:a.jsxs("nav",{"aria-label":"breadcrumb",className:"flex items-center gap-1.5 text-sm text-muted-foreground",children:[a.jsx(se,{to:"/research",className:"hover:text-foreground transition-colors",children:"Research"}),a.jsx(Uh,{className:"h-3.5 w-3.5"}),a.jsx(se,{to:"/research#securitization-saturday",className:"hover:text-foreground transition-colors",children:"Securitization Saturday"}),a.jsx(Uh,{className:"h-3.5 w-3.5"}),a.jsxs("span",{className:"text-foreground font-medium",children:["#",t.number]})]})}),a.jsx(ar,{delay:.05,children:a.jsxs("p",{className:"text-sm text-muted-foreground",children:["By ",a.jsx("span",{className:"font-semibold text-foreground",children:t.author})," · ",t.date]})}),a.jsx(ar,{delay:.1,children:a.jsx("div",{className:"rounded-2xl bg-secondary/40 backdrop-blur-sm border border-border/40 px-8 py-6",children:a.jsx("p",{className:"text-lg md:text-xl leading-relaxed text-foreground font-display font-medium",children:t.summary})})}),s.length>2&&a.jsx(ar,{delay:.15,children:a.jsxs(NJ,{open:r,onOpenChange:n,children:[a.jsxs(SJ,{className:"flex items-center gap-2 text-sm font-semibold text-foreground hover:text-accent transition-colors group w-full",children:[a.jsx(T3,{className:"h-4 w-4 text-accent"}),"Table of Contents",a.jsx(jl,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${r?"rotate-180":""}`})]}),a.jsx(CJ,{children:a.jsx("nav",{className:"mt-3 rounded-xl bg-muted/40 border border-border/30 px-6 py-4 space-y-2",children:s.map(l=>a.jsx("a",{href:`#${l.id}`,className:"block text-sm text-muted-foreground hover:text-accent transition-colors",children:l.text},l.id))})})]})})]})]}),a.jsx(Oe,{}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-24",children:t.sections.map((l,c)=>TJ(l,c))}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"relative overflow-hidden py-16 md:py-24 bg-background",children:[a.jsx(pt,{variant:"light"}),a.jsxs("div",{className:"container relative z-10 max-w-3xl space-y-8",children:[a.jsx(ar,{children:a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-between",children:[i?a.jsx(G,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full",children:a.jsxs(se,{to:`/research/securitization-saturday/${i.slug}`,children:[a.jsx(Yc,{className:"h-4 w-4 mr-2"})," #",i.number,": ",i.title.length>30?i.title.slice(0,30)+"…":i.title]})}):a.jsx("div",{}),o?a.jsx(G,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full",children:a.jsxs(se,{to:`/research/securitization-saturday/${o.slug}`,children:["#",o.number,": ",o.title.length>30?o.title.slice(0,30)+"…":o.title," ",a.jsx(qe,{className:"h-4 w-4 ml-2"})]})}):a.jsx("div",{})]})}),a.jsx(ar,{delay:.1,children:a.jsxs("div",{className:"flex flex-wrap gap-4 justify-center pt-4",children:[a.jsx(G,{asChild:!0,size:"lg",className:"rounded-full px-8",children:a.jsxs(se,{to:"/contact",children:[a.jsx(Ra,{className:"h-4 w-4 mr-2"})," Get in Touch"]})}),a.jsx(G,{asChild:!0,variant:"secondary",size:"lg",className:"rounded-full px-8",children:a.jsxs(se,{to:"/carbon-removal-breakfast-club",children:[a.jsx(Od,{className:"h-4 w-4 mr-2"})," Join the Community"]})}),a.jsx(G,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full px-8",children:a.jsxs(se,{to:"/research",children:[a.jsx(Yc,{className:"h-4 w-4 mr-2"})," Back to Research"]})})]})}),a.jsx(ar,{delay:.15,children:a.jsx("p",{className:"text-xs text-muted-foreground text-center max-w-xl mx-auto pt-4",children:"Disclaimer: This article is for informational purposes only and does not constitute financial advice. The intellectual property of this article belongs to Seoi.Cure CDR."})})]})]})]})},RJ=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Privacy Policy",subtitle:"How Seoi.Cure collects, uses, and protects your information."}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-20",children:a.jsxs("article",{className:"glass-card p-8 md:p-10 prose prose-sm max-w-none text-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last updated: 16 August 2026"}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"1. Introduction"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'Seoi.Cure ("we", "us", "our") is committed to protecting your privacy. This Policy explains how we handle personal data when you visit seoicure.com or interact with our services.'}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"2. Information we collect"}),a.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-1",children:[a.jsx("li",{children:"Contact details you submit via forms (name, email, organisation, message)."}),a.jsx("li",{children:"Booking metadata when you schedule a call via Cal.com."}),a.jsx("li",{children:"Newsletter signups via Kit.com (formerly ConvertKit)."}),a.jsx("li",{children:"Anonymous usage analytics (only with your consent)."})]}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"3. How we use it"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"To respond to enquiries, deliver requested services, send newsletter content you opted into, and improve the site. We do not sell personal data."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"4. Legal basis"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We process data based on your consent, our legitimate interest in o
530perating the site, and to perform contracts you initiate (e.g. booked calls, due-diligence engagements)."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"5. Sharing"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We use trusted processors: Supabase (database/auth), Cal.com (bookings), Kit.com (newsletter), Lovable (hosting). Each processes data on our behalf under their own policies."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"6. Your rights"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"You can request access, correction, or deletion of your data at any time by emailing [email protected]."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"7. Retention"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Form submissions are retained for up to 24 months unless we have an active engagement with you. Newsletter subscriptions persist until you unsubscribe."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"8. East Meets West expressions of interest"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"If you submit the East Meets West expression-of-interest form, we may collect: your name and email; your organisation or investment vehicle and your role; a public professional profile URL; your professional or operating context; the live China question you are working on; your January 2027 availability; your likely funding route and your conditional deposit-readiness response; how you heard about the programme and any source detail you add; your contact consent and any separate newsletter consent; and ordinary technical and referral information such as the landing page, referrer and UTM parameters."}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We use this only to assess fit, respond to your expression of interest, design and administer a potential cohort, maintain security and prevent abuse, and — only where you separately opt in — send you Fresh Air Finance."}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Submitting an expression of interest does not give us blanket consent to share your identity, contact details or profile with other participants or with China-side counterparties. Any such sharing requires your specific approval in advance for the named recipient and purpose, and a materially different recipient requires fresh approval."}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We keep these submissions only as long as reasonably necessary for those purposes and for applicable legal and accounting obligations. Service providers acting on our instructions process this data only as needed for hosting, database and email delivery."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"9. Capital Conversation Tracker"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Guests use the tracker entirely in-browser — entries are stored in ",a.jsx("code",{children:"localStorage"}),' on your device and never reach our servers. When you sign in, entries sync to your private account and sensitive fields (investor name, contact, notes, memorable insight, "need / waiting / next action", and feedback) are encrypted at rest with AES-256-GCM using a server-side key. Row-level security ensures only you can read or modify your own conversations. AI summarisation and follow-up drafts run locally in your browser — they are never sent to a third-party AI provider.']}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"10. Contact"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Questions? Reach us at ",a.jsx("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"}),"."]})]})})]}),AJ=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Terms of Service",subtitle:"The terms governing your use of seoicure.com and Seoi.Cure services."}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-20",children:a.jsxs("article",{className:"glass-card p-8 md:p-10 max-w-none text-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last updated: April 2026"}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"1. Acceptance"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"By using this site you agree to these Terms. If you don't agree, please don't use the site."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"2. Services"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Seoi.Cure provides advisory, research, and structured-finance readiness services for carbon removal and decarbonization projects. Specific service deliverables are governed by separate engagement letters."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"3. No financial advice"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Content on this site is for informational and educational purposes only and does not constitute investment, legal, or tax advice. See our"," ",a.jsx("a",{href:"/disclaimer",className:"text-accent hover:underline",children:"Financial Disclaimer"}),"."]}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"4. Intellectual property"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"All content, branding, and trademarks belong to Seoi.Cure unless otherwise credited. You may share with attribution but may 
530not reproduce or sell without permission."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"5. Limitation of liability"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"To the fullest extent permitted by law, Seoi.Cure is not liable for indirect, incidental, or consequential damages arising from your use of the site or reliance on its content."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"6. Governing law"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"These Terms are governed by the laws of Singapore. Disputes shall be resolved in the courts of Singapore."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"7. Changes"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We may update these Terms. Material changes will be posted with an updated date."})]})})]}),PJ=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Cookie Policy",subtitle:"How we use cookies and similar technologies on seoicure.com."}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-20",children:a.jsxs("article",{className:"glass-card p-8 md:p-10 text-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last updated: April 2026"}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"What are cookies?"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Cookies are small text files stored on your device when you visit a website. They help sites function and remember preferences."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"How we use cookies"}),a.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-1",children:[a.jsxs("li",{children:[a.jsx("strong",{className:"text-foreground",children:"Essential:"})," theme preference, cookie consent state. These are always on."]}),a.jsxs("li",{children:[a.jsx("strong",{className:"text-foreground",children:"Analytics (with consent):"}),' anonymous usage measurement to help us improve the site. Disabled until you click "Accept all" in our consent banner.']})]}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Third-party services"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Embedded YouTube videos and Cal.com booking widgets may set their own cookies when activated. See their respective privacy policies for details."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Managing cookies"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["You can clear or block cookies via your browser settings. To revoke our analytics consent, clear the ",a.jsx("code",{className:"rounded bg-secondary/50 px-1.5 py-0.5 text-sm",children:"seoicure-cookie-consent"})," entry from your browser's local storage."]})]})})]}),OJ=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Accessibility Statement",subtitle:"Our commitment to making seoicure.com usable for everyone."}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-20",children:a.jsxs("article",{className:"glass-card p-8 md:p-10 text-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last updated: April 2026"}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Our commitment"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Seoi.Cure aims to conform to WCAG 2.1 Level AA. We continuously test and improve to ensure our content is perceivable, operable, understandable, and robust."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"What we've done"}),a.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-1",children:[a.jsx("li",{children:"Skip-to-content link for keyboard users."}),a.jsx("li",{children:"Descriptive alt text on informative images."}),a.jsx("li",{children:"Clear heading hierarchy with single H1 per page."}),a.jsx("li",{children:"Visible focus indicators and labelled form controls."}),a.jsx("li",{children:"Colour contrast meeting WCAG AA (4.5:1) for body text."}),a.jsx("li",{children:"Light and dark themes; respects system preference."})]}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Known limitations"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Audio and video episodes do not yet have full transcripts. We're working on this — in the meantime, please contact us for a transcript of any episode."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Feedback"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Found an accessibility barrier? Email"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})," ","— we aim to respond within 5 business days."]})]})})]}),DJ=()=>a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Financial Disclaimer",subtitle:"Important context for the research, articles, and tools published on this site."}),a.jsx("section",{className:"max-w-3xl mx-auto px-6 py-16 md:py-20",children:a.jsxs("article",{className:"glass-card p-8 md:p-10 text-foreground",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Last updated: April 2026"}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Informational only"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"All content on seoicure.com — including research papers, newsletter posts, audio/video explainers, the Securitization Saturday series, and the Readiness Tool — is provided for general informational and educational purposes only."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Not financial advice"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Nothing on this site constitutes investment, legal, tax, or financial advice. Carbon removal investments and structured finance instruments involve significant risks, including loss of capital. Past performance is not indicative of future results."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"No solicitation"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Content on this site is not an offer or solicitation to buy or sell any security, investment product, or carbon credit. Seoi.Cure is not a registered broker-dealer, investment adviser, or rating agency."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Do your own diligence"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Always consult qual
530ified independent advisers before making investment, financing, or procurement decisions related to carbon removal or any structured finance instrument."}),a.jsx("h2",{className:"font-display text-xl font-bold text-foreground mt-6",children:"Forward-looking statements"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Some content references projections or estimates. These are inherently uncertain. Actual results may differ materially."})]})})]});function IJ(){const[e]=sb(),t=e.get("session_id");return a.jsxs(a.Fragment,{children:[a.jsxs("section",{className:"relative overflow-hidden ocean-gradient py-20 min-h-[60vh] flex flex-col justify-center",children:[a.jsx(pt,{variant:"dark"}),a.jsx("div",{className:"container relative z-10 max-w-2xl text-center",children:t?a.jsxs(ne.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"glass-card p-10 space-y-6",children:[a.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-accent/20 flex items-center justify-center",children:a.jsx(Ad,{className:"w-8 h-8 text-accent"})}),a.jsx("h1",{className:"font-display text-4xl font-bold text-foreground",children:"Payment Complete"}),a.jsx("p",{className:"text-foreground text-lg",children:"Thank you! Your payment has been received and your booking is confirmed."}),a.jsx("div",{className:"pt-6",children:a.jsx(G,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90",children:a.jsx(se,{to:"/",children:"Return to Home"})})})]}):a.jsxs(ne.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"glass-card p-10 space-y-6",children:[a.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:a.jsx(p3,{className:"w-8 h-8 text-destructive"})}),a.jsx("h1",{className:"font-display text-3xl font-bold text-foreground",children:"No Session Found"}),a.jsx("p",{className:"text-foreground",children:"We couldn't find your payment session. If you believe this is an error, please contact support."}),a.jsx("div",{className:"pt-6",children:a.jsx(G,{asChild:!0,variant:"outline",children:a.jsx(se,{to:"/contact",children:"Contact Support"})})})]})})]}),a.jsx(Oe,{className:"-mt-1"})]})}function Le(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Br(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function mt(e,t){const r=Le(e);return isNaN(t)?Br(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function In(e,t){const r=Le(e);if(isNaN(t))return Br(e,NaN);if(!t)return r;const n=r.getDate(),s=Br(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const i=s.getDate();return n>=i?s:(r.setFullYear(s.getFullYear(),s.getMonth(),n),r)}const uw=6048e5,MJ=864e5;let LJ={};function Kd(){return LJ}function cs(e,t){var l,c,d,u;const r=Kd(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=Le(e),i=s.getDay(),o=(i<n?7:0)+i-n;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Wi(e){return cs(e,{weekStartsOn:1})}function BP(e){const t=Le(e),r=t.getFullYear(),n=Br(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=Wi(n),i=Br(e,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Wi(i);return t.getTime()>=s.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Kr(e){const t=Le(e);return t.setHours(0,0,0,0),t}function Rf(e){const t=Le(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Zr(e,t){const r=Kr(e),n=Kr(t),s=+r-Rf(r),i=+n-Rf(n);return Math.round((s-i)/MJ)}function FJ(e){const t=BP(e),r=Br(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Wi(r)}function Ox(e,t){const r=t*7;return mt(e,r)}function $J(e,t){return In(e,t*12)}function BJ(e){let t;return e.forEach(function(r){const n=Le(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function zJ(e){let t;return e.forEach(r=>{const n=Le(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function jr(e,t){const r=Kr(e),n=Kr(t);return+r==+n}function hw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function VJ(e){if(!hw(e)&&typeof e!="number")return!1;const t=Le(e);return!isNaN(Number(t))}function vd(e,t){const r=Le(e),n=Le(t),s=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return s*12+i}function UJ(e,t,r){const n=cs(e,r),s=cs(t,r),i=+n-Rf(n),o=+s-Rf(s);return Math.round((i-o)/uw)}function fw(e){const t=Le(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Tr(e){const t=Le(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zP(e){const t=Le(e),r=Br(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function mw(e,t){var l,c,d,u;const r=Kd(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=Le(e),i=s.getDay(),o=(i<n?-7:0)+6-(i-n);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function VP(e){return mw(e,{weekStartsOn:1}
vendor: 5,447 bytes, line 530
530)}const WJ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},HJ=(e,t,r)=>{let n;const s=WJ[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function bg(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const qJ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},GJ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},KJ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YJ={date:bg({formats:qJ,defaultWidth:"full"}),time:bg({formats:GJ,defaultWidth:"full"}),dateTime:bg({formats:KJ,defaultWidth:"full"})},JJ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZJ=(e,t,r,n)=>JJ[e];function Xl(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):o;s=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[l]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const XJ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},QJ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sZ=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},aZ={ordinalNumber:sZ,era:Xl({values:XJ,defaultWidth:"wide"}),quarter:Xl({values:QJ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xl({values:eZ,defaultWidth:"wide"}),day:Xl({values:tZ,defaultWidth:"wide"}),dayPeriod:Xl({values:rZ,defaultWidth:"wide",formattingValues:nZ,defaultFormattingWidth:"wide"})};function Ql(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?oZ(l,h=>h.test(o)):iZ(l,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(c):c,d=r.valueCallback?r.valueCallback(d):d;const u=t.slice(o.length);return{value:d,rest:u}}}function iZ(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function oZ(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function lZ(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const l=t.slice(s.length);return{value:o,rest:l}}}const cZ=/^(\d+)(th|st|nd|rd)?/i,dZ=/\d+/i,uZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},hZ={any:[/^b/i,/^(a|c)/i]},fZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mZ={any:[/1/i,/2/i,/3/i,/4/i]}
vendor: 8,275 bytes, line 530
530,pZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gZ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},wZ={ordinalNumber:lZ({matchPattern:cZ,parsePattern:dZ,valueCallback:e=>parseInt(e,10)}),era:Ql({matchPatterns:uZ,defaultMatchWidth:"wide",parsePatterns:hZ,defaultParseWidth:"any"}),quarter:Ql({matchPatterns:fZ,defaultMatchWidth:"wide",parsePatterns:mZ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ql({matchPatterns:pZ,defaultMatchWidth:"wide",parsePatterns:gZ,defaultParseWidth:"any"}),day:Ql({matchPatterns:yZ,defaultMatchWidth:"wide",parsePatterns:xZ,defaultParseWidth:"any"}),dayPeriod:Ql({matchPatterns:vZ,defaultMatchWidth:"any",parsePatterns:bZ,defaultParseWidth:"any"})},UP={code:"en-US",formatDistance:HJ,formatLong:YJ,formatRelative:ZJ,localize:aZ,match:wZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kZ(e){const t=Le(e);return Zr(t,zP(t))+1}function WP(e){const t=Le(e),r=+Wi(t)-+FJ(t);return Math.round(r/uw)+1}function HP(e,t){var u,h,f,m;const r=Le(e),n=r.getFullYear(),s=Kd(),i=(t==null?void 0:t.firstWeekContainsDate)??((h=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((m=(f=s.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=Br(e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const l=cs(o,t),c=Br(e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const d=cs(c,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=d.getTime()?n:n-1}function jZ(e,t){var l,c,d,u;const r=Kd(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,s=HP(e,t),i=Br(e,0);return i.setFullYear(s,0,n),i.setHours(0,0,0,0),cs(i,t)}function qP(e,t){const r=Le(e),n=+cs(r,t)-+jZ(r,t);return Math.round(n/uw)+1}function Ke(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Zs={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ke(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ke(r+1,2)},d(e,t){return Ke(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ke(e.getHours()%12||12,t.length)},H(e,t){return Ke(e.getHours(),t.length)},m(e,t){return Ke(e.getMinutes(),t.length)},s(e,t){return Ke(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return Ke(s,t.length)}},io={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},RN={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return Zs.y(e,t)},Y:function(e,t,r,n){const s=HP(e,n),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return Ke(o,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):Ke(i,t.length)},R:function(e,t){const r=BP(e);return Ke(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ke(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ke(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ke(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Zs.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ke(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=qP(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):Ke(s,t.length)},I:function(e,t,r){const n=WP(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ke(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Zs.d(e,t)},D:function(e,t,r){const n=kZ(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ke(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ke(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ke(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return Ke(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=io.noon:n===0?s=io.midnight:s=n/12>
vendor: 4,693 bytes, line 530
530=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=io.evening:n>=12?s=io.afternoon:n>=4?s=io.morning:s=io.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Zs.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Zs.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ke(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ke(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Zs.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Zs.s(e,t)},S:function(e,t){return Zs.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return PN(n);case"XXXX":case"XX":return di(n);case"XXXXX":case"XXX":default:return di(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return PN(n);case"xxxx":case"xx":return di(n);case"xxxxx":case"xxx":default:return di(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+AN(n,":");case"OOOO":default:return"GMT"+di(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+AN(n,":");case"zzzz":default:return"GMT"+di(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ke(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ke(n,t.length)}};function AN(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),i=n%60;return i===0?r+String(s):r+String(s)+t+Ke(i,2)}function PN(e,t){return e%60===0?(e>0?"-":"+")+Ke(Math.abs(e)/60,2):di(e,t)}function di(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Ke(Math.trunc(n/60),2),i=Ke(n%60,2);return r+s+t+i}const ON=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},GP=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},NZ=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return ON(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ON(n,t)).replace("{{time}}",GP(s,t))},SZ={p:GP,P:NZ},CZ=/^D+$/,_Z=/^Y+$/,TZ=["D","DD","YY","YYYY"];function EZ(e){return CZ.test(e)}function RZ(e){return _Z.test(e)}function AZ(e,t,r){const n=PZ(e,t,r);if(console.warn(n),TZ.includes(e))throw new RangeError(n)}function PZ(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const OZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IZ=/^'([^]*?)'?$/,MZ=/''/g,LZ=/[a-zA-Z]/;function St(e,t,r){var u,h,f,m,x,y,v,b;const n=Kd(),s=(r==null?void 0:r.locale)??n.locale??UP,i=(r==null?void 0:r.firstWeekContainsDate)??((h=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((y=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:y.weekStartsOn)??n.weekStartsOn??((b=(v=n.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,l=Le(e);if(!VJ(l))throw new RangeError("Invalid time value");let c=t.match(DZ).map(g=>{const w=g[0];if(w==="p"||w==="P"){const k=SZ[w];return k(g,s.formatLong)}return g}).join("").match(OZ).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const w=g[0];if(w==="'")return{isToken:!1,value:FZ(g)};if(RN[w])return{isToken:!0,value:g};
530if(w.match(LZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:g}});s.localize.preprocessor&&(c=s.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return c.map(g=>{if(!g.isToken)return g.value;const w=g.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&RZ(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&EZ(w))&&AZ(w,t,String(e));const k=RN[w[0]];return k(l,w,s.localize,d)}).join("")}function FZ(e){const t=e.match(IZ);return t?t[1].replace(MZ,"'"):e}function $Z(e){const t=Le(e),r=t.getFullYear(),n=t.getMonth(),s=Br(e,0);return s.setFullYear(r,n+1,0),s.setHours(0,0,0,0),s.getDate()}function BZ(e){return Math.trunc(+Le(e)/1e3)}function zZ(e){const t=Le(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function VZ(e,t){return UJ(zZ(e),Tr(e),t)+1}function Af(e,t){const r=Le(e),n=Le(t);return r.getTime()>n.getTime()}function pw(e,t){const r=Le(e),n=Le(t);return+r<+n}function gw(e,t){const r=Le(e),n=Le(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function UZ(e,t){const r=Le(e),n=Le(t);return r.getFullYear()===n.getFullYear()}function wg(e,t){return mt(e,-t)}function kg(e,t){const r=Le(e),n=r.getFullYear(),s=r.getDate(),i=Br(e,0);i.setFullYear(n,t,15),i.setHours(0,0,0,0);const o=$Z(i);return r.setMonth(t,Math.min(s,o)),r}function DN(e,t){const r=Le(e);return isNaN(+r)?Br(e,NaN):(r.setFullYear(t),r)}var KP="AlertDialog",[WZ,Nse]=Xt(KP,[uR]),Us=uR(),YP=e=>{const{__scopeAlertDialog:t,...r}=e,n=Us(t);return a.jsx($b,{...n,...r,modal:!0})};YP.displayName=KP;var HZ="AlertDialogTrigger",JP=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=Us(r);return a.jsx(_R,{...s,...n,ref:t})});JP.displayName=HZ;var qZ="AlertDialogPortal",ZP=e=>{const{__scopeAlertDialog:t,...r}=e,n=Us(t);return a.jsx(Bb,{...n,...r})};ZP.displayName=qZ;var GZ="AlertDialogOverlay",XP=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=Us(r);return a.jsx(Bd,{...s,...n,ref:t})});XP.displayName=GZ;var Wo="AlertDialogContent",[KZ,YZ]=WZ(Wo),JZ=__("AlertDialogContent"),QP=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...s}=e,i=Us(r),o=p.useRef(null),l=_e(t,o),c=p.useRef(null);return a.jsx(fW,{contentName:Wo,titleName:eO,docsSlug:"alert-dialog",children:a.jsx(KZ,{scope:r,cancelRef:c,children:a.jsxs(zd,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:ce(s.onOpenAutoFocus,d=>{var u;d.preventDefault(),(u=c.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[a.jsx(JZ,{children:n}),a.jsx(XZ,{contentRef:o})]})})})});QP.displayName=Wo;var eO="AlertDialogTitle",tO=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=Us(r);return a.jsx(Vd,{...s,...n,ref:t})});tO.displayName=eO;var rO="AlertDialogDescription",nO=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=Us(r);return a.jsx(Ud,{...s,...n,ref:t})});nO.displayName=rO;var ZZ="AlertDialogAction",sO=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=Us(r);return a.jsx(Sm,{...s,...n,ref:t})});sO.displayName=ZZ;var aO="AlertDialogCancel",iO=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:s}=YZ(aO,r),i=Us(r),o=_e(t,s);return a.jsx(Sm,{...i,...n,ref:o})});iO.displayName=aO;var XZ=({contentRef:e})=>{const t=`\`${Wo}\` requires a description for the component to be accessible for screen reader users.
531
532You can add a description to the \`${Wo}\` by passing a \`${rO}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
533
534Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Wo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
535
536For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},QZ=YP,eX=JP,tX=ZP,oO=XP,lO=QP,cO=sO,dO=iO,uO=tO,hO=nO;const rX=QZ,nX=eX,sX=tX,fO=p.forwardRef(({className:e,...t},r)=>a.jsx(oO,{className:Z("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));
vendor: 4,716 bytes, line 536
536fO.displayName=oO.displayName;const mO=p.forwardRef(({className:e,...t},r)=>a.jsxs(sX,{children:[a.jsx(fO,{}),a.jsx(lO,{ref:r,className:Z("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));mO.displayName=lO.displayName;const pO=({className:e,...t})=>a.jsx("div",{className:Z("flex flex-col space-y-2 text-center sm:text-left",e),...t});pO.displayName="AlertDialogHeader";const gO=({className:e,...t})=>a.jsx("div",{className:Z("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gO.displayName="AlertDialogFooter";const yO=p.forwardRef(({className:e,...t},r)=>a.jsx(uO,{ref:r,className:Z("text-lg font-semibold",e),...t}));yO.displayName=uO.displayName;const xO=p.forwardRef(({className:e,...t},r)=>a.jsx(hO,{ref:r,className:Z("text-sm text-muted-foreground",e),...t}));xO.displayName=hO.displayName;const vO=p.forwardRef(({className:e,...t},r)=>a.jsx(cO,{ref:r,className:Z(od(),e),...t}));vO.displayName=cO.displayName;const bO=p.forwardRef(({className:e,...t},r)=>a.jsx(dO,{ref:r,className:Z(od({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));bO.displayName=dO.displayName;var Wm="Popover",[wO,Sse]=Xt(Wm,[_l]),Yd=_l(),[aX,Qa]=wO(Wm),kO=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,l=Yd(t),c=p.useRef(null),[d,u]=p.useState(!1),[h,f]=Fr({prop:n,defaultProp:s??!1,onChange:i,caller:Wm});return a.jsx(U2,{...l,children:a.jsx(aX,{scope:t,contentId:Rn(),triggerRef:c,open:h,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:o,children:r})})};kO.displayName=Wm;var jO="PopoverAnchor",iX=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Qa(jO,r),i=Yd(r),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=s;return p.useEffect(()=>(o(),()=>l()),[o,l]),a.jsx(lm,{...i,...n,ref:t})});iX.displayName=jO;var NO="PopoverTrigger",SO=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Qa(NO,r),i=Yd(r),o=_e(t,s.triggerRef),l=a.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":RO(s.open),...n,ref:o,onClick:ce(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:a.jsx(lm,{asChild:!0,...i,children:l})});SO.displayName=NO;var yw="PopoverPortal",[oX,lX]=wO(yw,{forceMount:void 0}),CO=e=>{const{__scopePopover:t,forceMount:r,children:n,container:s}=e,i=Qa(yw,t);return a.jsx(oX,{scope:t,forceMount:r,children:a.jsx(nn,{present:r||i.open,children:a.jsx(_d,{asChild:!0,container:s,children:n})})})};CO.displayName=yw;var yl="PopoverContent",_O=p.forwardRef((e,t)=>{const r=lX(yl,e.__scopePopover),{forceMount:n=r.forceMount,...s}=e,i=Qa(yl,e.__scopePopover);return a.jsx(nn,{present:n||i.open,children:i.modal?a.jsx(dX,{...s,ref:t}):a.jsx(uX,{...s,ref:t})})});_O.displayName=yl;var cX=Li("PopoverContent.RemoveScroll"),dX=p.forwardRef((e,t)=>{const r=Qa(yl,e.__scopePopover),n=p.useRef(null),s=_e(t,n),i=p.useRef(!1);return p.useEffect(()=>{const o=n.current;if(o)return Ib(o)},[]),a.jsx(jm,{as:cX,allowPinchZoom:!0,children:a.jsx(TO,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),i.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),uX=p.forwardRef((e,t)=>{const r=Qa(yl,e.__scopePopover),n=p.useRef(!1),s=p.useRef(!1);return a.jsx(TO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((d=r.triggerRef.current)==null?void 0:d.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),TO=p.forwardRef((e,t)=>
536{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...h}=e,f=Qa(yl,r),m=Yd(r);return Db(),a.jsx(wm,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:a.jsx(kl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:a.jsx(Kv,{"data-state":RO(f.open),role:"dialog",id:f.contentId,...m,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),EO="PopoverClose",hX=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Qa(EO,r);return a.jsx(me.button,{type:"button",...n,ref:t,onClick:ce(e.onClick,()=>s.onOpenChange(!1))})});hX.displayName=EO;var fX="PopoverArrow",mX=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Yd(r);return a.jsx(Yv,{...s,...n,ref:t})});mX.displayName=fX;function RO(e){return e?"open":"closed"}var pX=kO,gX=SO,yX=CO,AO=_O;const xX=pX,vX=gX,PO=p.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},s)=>a.jsx(yX,{children:a.jsx(AO,{ref:s,align:t,sideOffset:r,className:Z("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n})}));PO.displayName=AO.displayName;var ye=function(){return ye=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ye.apply(this,arguments)};function bX(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function OO(e,t,r){for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Jd(e){return e.mode==="multiple"}function Zd(e){return e.mode==="range"}function Hm(e){return e.mode==="single"}var wX={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function kX(e,t){return St(e,"LLLL y",t)}function jX(e,t){return St(e,"d",t)}function NX(e,t){return St(e,"LLLL",t)}function SX(e){return"".concat(e)}function CX(e,t){return St(e,"cccccc",t)}function _X(e,t){return St(e,"yyyy",t)}var TX=Object.freeze({__proto__:null,formatCaption:kX,formatDay:jX,formatMonthCaption:NX,formatWeekNumber:SX,formatWeekdayName:CX,formatYearC
536aption:_X}),EX=function(e,t,r){return St(e,"do MMMM (EEEE)",r)},RX=function(){return"Month: "},AX=function(){return"Go to next month"},PX=function(){return"Go to previous month"},OX=function(e,t){return St(e,"cccc",t)},DX=function(e){return"Week n. ".concat(e)},IX=function(){return"Year: "},MX=Object.freeze({__proto__:null,labelDay:EX,labelMonthDropdown:RX,labelNext:AX,labelPrevious:PX,labelWeekNumber:DX,labelWeekday:OX,labelYearDropdown:IX});function LX(){var e="buttons",t=wX,r=UP,n={},s={},i=1,o={},l=new Date;return{captionLayout:e,classNames:t,formatters:TX,labels:MX,locale:r,modifiersClassNames:n,modifiers:s,numberOfMonths:i,styles:o,today:l,mode:"default"}}function FX(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,s=e.toMonth,i=e.fromDate,o=e.toDate;return n?i=Tr(n):t&&(i=new Date(t,0,1)),s?o=fw(s):r&&(o=new Date(r,11,31)),{fromDate:i?Kr(i):void 0,toDate:o?Kr(o):void 0}}var DO=p.createContext(void 0);function $X(e){var t,r=e.initialProps,n=LX(),s=FX(r),i=s.fromDate,o=s.toDate,l=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;l!=="buttons"&&(!i||!o)&&(l="buttons");var c;(Hm(r)||Jd(r)||Zd(r))&&(c=r.onSelect);var d=ye(ye(ye({},n),r),{captionLayout:l,classNames:ye(ye({},n.classNames),r.classNames),components:ye({},r.components),formatters:ye(ye({},n.formatters),r.formatters),fromDate:i,labels:ye(ye({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:ye(ye({},n.modifiers),r.modifiers),modifiersClassNames:ye(ye({},n.modifiersClassNames),r.modifiersClassNames),onSelect:c,styles:ye(ye({},n.styles),r.styles),toDate:o});return a.jsx(DO.Provider,{value:d,children:e.children})}function st(){var e=p.useContext(DO);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function IO(e){var t=st(),r=t.locale,n=t.classNames,s=t.styles,i=t.formatters.formatCaption;return a.jsx("div",{className:n.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:r})})}function BX(e){return a.jsx("svg",ye({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:a.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function MO(e){var t,r,n=e.onChange,s=e.value,i=e.children,o=e.caption,l=e.className,c=e.style,d=st(),u=(r=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:BX;return a.jsxs("div",{className:l,style:c,children:[a.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),a.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:s,onChange:n,children:i}),a.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[o,a.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function zX(e){var t,r=st(),n=r.fromDate,s=r.toDate,i=r.styles,o=r.locale,l=r.formatters.formatMonthCaption,c=r.classNames,d=r.components,u=r.labels.labelMonthDropdown;if(!n)return a.jsx(a.Fragment,{});if(!s)return a.jsx(a.Fragment,{});var h=[];if(UZ(n,s))for(var f=Tr(n),m=n.getMonth();m<=s.getMonth();m++)h.push(kg(f,m));else for(var f=Tr(new Date),m=0;m<=11;m++)h.push(kg(f,m));var x=function(v){var b=Number(v.target.value),g=kg(Tr(e.displayMonth),b);e.onChange(g)},y=(t=d==null?void 0:d.Dropdown)!==null&&t!==void 0?t:MO;return a.jsx(y,{name:"months","aria-label":u(),className:c.dropdown_month,style:i.dropdown_month,onChange:x,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:o}),children:h.map(function(v){return a.jsx("option",{value:v.getMonth(),children:l(v,{locale:o})},v.getMonth())})})}
536function VX(e){var t,r=e.displayMonth,n=st(),s=n.fromDate,i=n.toDate,o=n.locale,l=n.styles,c=n.classNames,d=n.components,u=n.formatters.formatYearCaption,h=n.labels.labelYearDropdown,f=[];if(!s)return a.jsx(a.Fragment,{});if(!i)return a.jsx(a.Fragment,{});for(var m=s.getFullYear(),x=i.getFullYear(),y=m;y<=x;y++)f.push(DN(zP(new Date),y));var v=function(g){var w=DN(Tr(r),Number(g.target.value));e.onChange(w)},b=(t=d==null?void 0:d.Dropdown)!==null&&t!==void 0?t:MO;return a.jsx(b,{name:"years","aria-label":h(),className:c.dropdown_year,style:l.dropdown_year,onChange:v,value:r.getFullYear(),caption:u(r,{locale:o}),children:f.map(function(g){return a.jsx("option",{value:g.getFullYear(),children:u(g,{locale:o})},g.getFullYear())})})}function UX(e,t){var r=p.useState(e),n=r[0],s=r[1],i=t===void 0?n:t;return[i,s]}function WX(e){var t=e.month,r=e.defaultMonth,n=e.today,s=t||r||n||new Date,i=e.toDate,o=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(i&&vd(i,s)<0){var d=-1*(c-1);s=In(i,d)}return o&&vd(s,o)<0&&(s=o),Tr(s)}function HX(){var e=st(),t=WX(e),r=UX(t,e.month),n=r[0],s=r[1],i=function(o){var l;if(!e.disableNavigation){var c=Tr(o);s(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[n,i]}function qX(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,s=Tr(e),i=Tr(In(s,n)),o=vd(i,s),l=[],c=0;c<o;c++){var d=In(s,c);l.push(d)}return r&&(l=l.reverse()),l}function GX(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=n?i:1,l=Tr(e);if(!r)return In(l,o);var c=vd(r,e);if(!(c<i))return In(l,o)}}function KX(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=n?i:1,l=Tr(e);if(!r)return In(l,-o);var c=vd(l,r);if(!(c<=0))return In(l,-o)}}var LO=p.createContext(void 0);function YX(e){var t=st(),r=HX(),n=r[0],s=r[1],i=qX(n,t),o=GX(n,t),l=KX(n,t),c=function(h){return i.some(function(f){return gw(h,f)})},d=function(h,f){c(h)||(f&&pw(h,f)?s(In(h,1+t.numberOfMonths*-1)):s(h))},u={currentMonth:n,displayMonths:i,goToMonth:s,goToDate:d,previousMonth:l,nextMonth:o,isDateDisplayed:c};return a.jsx(LO.Provider,{value:u,children:e.children})}function Xd(){var e=p.useContext(LO);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function IN(e){var t,r=st(),n=r.classNames,s=r.styles,i=r.components,o=Xd().goToMonth,l=function(u){o(In(u,e.displayIndex?-e.dis
536playIndex:0))},c=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:IO,d=a.jsx(c,{id:e.id,displayMonth:e.displayMonth});return a.jsxs("div",{className:n.caption_dropdowns,style:s.caption_dropdowns,children:[a.jsx("div",{className:n.vhidden,children:d}),a.jsx(zX,{onChange:l,displayMonth:e.displayMonth}),a.jsx(VX,{onChange:l,displayMonth:e.displayMonth})]})}function JX(e){return a.jsx("svg",ye({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ZX(e){return a.jsx("svg",ye({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Pf=p.forwardRef(function(e,t){var r=st(),n=r.classNames,s=r.styles,i=[n.button_reset,n.button];e.className&&i.push(e.className);var o=i.join(" "),l=ye(ye({},s.button_reset),s.button);return e.style&&Object.assign(l,e.style),a.jsx("button",ye({},e,{ref:t,type:"button",className:o,style:l}))});function XX(e){var t,r,n=st(),s=n.dir,i=n.locale,o=n.classNames,l=n.styles,c=n.labels,d=c.labelPrevious,u=c.labelNext,h=n.components;if(!e.nextMonth&&!e.previousMonth)return a.jsx(a.Fragment,{});var f=d(e.previousMonth,{locale:i}),m=[o.nav_button,o.nav_button_previous].join(" "),x=u(e.nextMonth,{locale:i}),y=[o.nav_button,o.nav_button_next].join(" "),v=(t=h==null?void 0:h.IconRight)!==null&&t!==void 0?t:ZX,b=(r=h==null?void 0:h.IconLeft)!==null&&r!==void 0?r:JX;return a.jsxs("div",{className:o.nav,style:l.nav,children:[!e.hidePrevious&&a.jsx(Pf,{name:"previous-month","aria-label":f,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?a.jsx(v,{className:o.nav_icon,style:l.nav_icon}):a.jsx(b,{className:o.nav_icon,style:l.nav_icon})}),!e.hideNext&&a.jsx(Pf,{name:"next-month","aria-label":x,className:y,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?a.jsx(b,{className:o.nav_icon,style:l.nav_icon}):a.jsx(v,{className:o.nav_icon,style:l.nav_icon})})]})}function MN(e){var t=st().numberOfMonths,r=Xd(),n=r.previousMonth,s=r.nextMonth,i=r.goToMonth,o=r.displayMonths,l=o.findIndex(function(x){return gw(e.displayMonth,x)}),c=l===0,d=l===o.length-1,u=t>1&&(c||!d),h=t>1&&(d||!c),f=function(){n&&i(n)},m=function(){s&&i(s)};return a.jsx(XX,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:h,nextMonth:s,previousMonth:n,onPreviousClick:f,onNextClick:m})}function QX(e){var t,r=st(),n=r.classNames,s=r.disableNavigation,i=r.styles,o=r.captionLayout,l=r.components,c=(t=l==null?void 0:l.CaptionLabel)!==null&&t!==void 0?t:IO,d;return s?d=a.jsx(c,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?d=a.jsx(IN,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?d=a.jsxs(a.Fragment,{children:[a.jsx(IN,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),a.jsx(MN,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=a.jsxs(a.Fragment,{children:[a.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(MN,{displayMonth:e.displayMonth,id:e.id})]}),a.jsx("div",{className:n.caption,style:i.caption,children:d})}function eQ(e){var t=st(),r=t.footer,n=t.styles,s=t.classNames.tfoot;return r?a.jsx("tfoot",{className:s,style:n.tfoot,children:a.jsx("tr",{children:a.jsx("td",{colSpan:8,children:r})})}):a.jsx(a.Fragment,{})}function tQ(e,t,r){for(var n=r?Wi(new Date):cs(new Date,{locale:e,weekStartsOn:t}),s=[],i=0;i<7;i++){var o=mt(n,i);s.push(o)}return s}function rQ(){var e=st(),t=e.classNames,r=e.styles,n=e.showWeekNumber,s=e.locale,i=e.weekStartsOn,o=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=tQ(s,i,o);return a.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&a.jsx("td",{style:r.head_cell,className:t.head_cell}),d.map(function(u,h){return a.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":c(u,{locale:s}),children:l(u,{locale:s})},h)})]})}function nQ(){var e,t=st(),r=t.classNames,n=t.styles,s=t.components,i=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:rQ;return a.jsx("thead",{style:n.head,className:r.head,children:a.jsx(i,{})})}function sQ(e){var t=st(),r=t.locale,n=t.formatters.formatDay;return a.jsx(a.Fragment,{children:n(e.date,{locale:r})})}var xw=p.createContext(void 0);function aQ(e){if(!Jd(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return a.jsx(xw.Provider,{value:t,children:e.children})}return a.jsx(iQ,{initialProps:e.initialProps,children:e.children})}function iQ(e){var t=e.initialProps,r=e.children,n=t.selected,s=t.min,i=t.max,o=function(d,u,h){var f,m;(f=t.onDayClick)===null||f===void 0||f.call(t,d,u,h);var x=!!(u.selected&&s&&(n==null?void 0:n.length)===s);if(!x){var y=!!(!u.selected&&i&&(n==null?void 0:n.length)===i);if(!y){var v=n?OO([],n):[];if(u.selected){var b=v.findIndex(function(g){return jr(d,g)});v.splice(b,1)}else v.push(d);(m=t.onSelect)===null||m===void 0||m.call(t,v,d,u,h)}}},l={disabled:[]};n&&l.disabled.push(function(d){var u=i&&n.length>i-1,h=n.some(function(f){return jr(f,d)});return!!(u&&!h)});
536var c={selected:n,onDayClick:o,modifiers:l};return a.jsx(xw.Provider,{value:c,children:r})}function vw(){var e=p.useContext(xw);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function oQ(e,t){var r=t||{},n=r.from,s=r.to;return n&&s?jr(s,e)&&jr(n,e)?void 0:jr(s,e)?{from:s,to:void 0}:jr(n,e)?void 0:Af(n,e)?{from:e,to:s}:{from:n,to:e}:s?Af(e,s)?{from:s,to:e}:{from:e,to:s}:n?pw(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var bw=p.createContext(void 0);function lQ(e){if(!Zd(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return a.jsx(bw.Provider,{value:t,children:e.children})}return a.jsx(cQ,{initialProps:e.initialProps,children:e.children})}function cQ(e){var t=e.initialProps,r=e.children,n=t.selected,s=n||{},i=s.from,o=s.to,l=t.min,c=t.max,d=function(m,x,y){var v,b;(v=t.onDayClick)===null||v===void 0||v.call(t,m,x,y);var g=oQ(m,n);(b=t.onSelect)===null||b===void 0||b.call(t,g,m,x,y)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(u.range_start=[i],o?(u.range_end=[o],jr(i,o)||(u.range_middle=[{after:i,before:o}])):u.range_end=[i]):o&&(u.range_start=[o],u.range_end=[o]),l&&(i&&!o&&u.disabled.push({after:wg(i,l-1),before:mt(i,l-1)}),i&&o&&u.disabled.push({after:i,before:mt(i,l-1)}),!i&&o&&u.disabled.push({after:wg(o,l-1),before:mt(o,l-1)})),c){if(i&&!o&&(u.disabled.push({before:mt(i,-c+1)}),u.disabled.push({after:mt(i,c-1)})),i&&o){var h=Zr(o,i)+1,f=c-h;u.disabled.push({before:wg(i,f)}),u.disabled.push({after:mt(o,f)})}!i&&o&&(u.disabled.push({before:mt(o,-c+1)}),u.disabled.push({after:mt(o,c-1)}))}return a.jsx(bw.Provider,{value:{selected:n,onDayClick:d,modifiers:u},children:r})}function ww(){var e=p.useContext(bw);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function xh(e){return Array.isArray(e)?OO([],e):e!==void 0?[e]:[]}function dQ(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],s=r[1];t[n]=xh(s)}),t}var Mn;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Mn||(Mn={}));var uQ=Mn.Selected,xs=Mn.Disabled,hQ=Mn.Hidden,fQ=Mn.Today,jg=Mn.RangeEnd,Ng=Mn.RangeMiddle,Sg=Mn.RangeStart,mQ=Mn.Outside;function pQ(e,t,r){var n,s=(n={},n[uQ]=xh(e.selected),n[xs]=xh(e.disabled),n[hQ]=xh(e.hidden),n[fQ]=[e.today],n[jg]=[],n[Ng]=[],n[Sg]=[],n[mQ]=[],n);return e.fromDate&&s[xs].push({before:e.fromDate}),e.toDate&&s[xs].push({after:e.toDate}),Jd(e)?s[xs]=s[xs].concat(t.modifiers[xs]):Zd(e)&&(s[xs]=s[xs].concat(r.modifiers[xs]),s[Sg]=r.modifiers[Sg],s[Ng]=r.modifiers[Ng],s[jg]=r.modifiers[jg]),s}var FO=p.createContext(void 0);function gQ(e){var t=st(),r=vw(),n=ww(),s=pQ(t,r,n),i=dQ(t.modifiers),o=ye(ye({},s),i);return a.jsx(FO.Provider,{value:o,children:e.children})}function $O(){var e=p.useContext(FO);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function yQ(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function xQ(e){return!!(e&&typeof e=="object"&&"from"in e)}function vQ(e){return!!(e&&typeof e=="object"&&"after"in e)}function bQ(e){return!!(e&&typeof e=="object"&&"before"in e)}function wQ(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function kQ(e,t){var r,n=t.from,s=t.to;if(n&&s){var i=Zr(s,n)<0;i&&(r=[s,n],n=r[0],s=r[1]);var o=Zr(e,n)>=0&&Zr(s,e)>=0;return o}return s?jr(s,e):n?jr(n,e):!1}function jQ(e){return hw(e)}function NQ(e){return Array.isArray(e)&&e.every(hw)}function SQ(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(jQ(r))return jr(e,r);if(NQ(r))return r.includes(e);if(xQ(r))return kQ(e,r);if(wQ(r))return r.dayOfWeek.includes(e.getDay());if(yQ(r)){var n=Zr(r.before,e),s=Zr(r.after,e),i=n>0,o=s<0,l=Af(r.before,r.after);return l?o&&i:i||o}return vQ(r)?Zr(e,r.after)>0:bQ(r)?Zr(r.before,e)>0:typeof r=="function"?r(e):!1})}function kw(e,t,r){var n=Object.keys(t).reduce(function(i,o){var l=t[o];return SQ(e,l)&&i.push(o),i},[]),s={};
536return n.forEach(function(i){return s[i]=!0}),r&&!gw(e,r)&&(s.outside=!0),s}function CQ(e,t){for(var r=Tr(e[0]),n=fw(e[e.length-1]),s,i,o=r;o<=n;){var l=kw(o,t),c=!l.disabled&&!l.hidden;if(!c){o=mt(o,1);continue}if(l.selected)return o;l.today&&!i&&(i=o),s||(s=o),o=mt(o,1)}return i||s}var _Q=365;function BO(e,t){var r=t.moveBy,n=t.direction,s=t.context,i=t.modifiers,o=t.retry,l=o===void 0?{count:0,lastFocused:e}:o,c=s.weekStartsOn,d=s.fromDate,u=s.toDate,h=s.locale,f={day:mt,week:Ox,month:In,year:$J,startOfWeek:function(v){return s.ISOWeek?Wi(v):cs(v,{locale:h,weekStartsOn:c})},endOfWeek:function(v){return s.ISOWeek?VP(v):mw(v,{locale:h,weekStartsOn:c})}},m=f[r](e,n==="after"?1:-1);n==="before"&&d?m=BJ([d,m]):n==="after"&&u&&(m=zJ([u,m]));var x=!0;if(i){var y=kw(m,i);x=!y.disabled&&!y.hidden}return x?m:l.count>_Q?l.lastFocused:BO(m,{moveBy:r,direction:n,context:s,modifiers:i,retry:ye(ye({},l),{count:l.count+1})})}var zO=p.createContext(void 0);function TQ(e){var t=Xd(),r=$O(),n=p.useState(),s=n[0],i=n[1],o=p.useState(),l=o[0],c=o[1],d=CQ(t.displayMonths,r),u=s??(l&&t.isDateDisplayed(l))?l:d,h=function(){c(s),i(void 0)},f=function(v){i(v)},m=st(),x=function(v,b){if(s){var g=BO(s,{moveBy:v,direction:b,context:m,modifiers:r});jr(s,g)||(t.goToDate(g,s),f(g))}},y={focusedDay:s,focusTarget:u,blur:h,focus:f,focusDayAfter:function(){return x("day","after")},focusDayBefore:function(){return x("day","before")},focusWeekAfter:function(){return x("week","after")},focusWeekBefore:function(){return x("week","before")},focusMonthBefore:function(){return x("month","before")},focusMonthAfter:function(){return x("month","after")},focusYearBefore:function(){return x("year","before")},focusYearAfter:function(){return x("year","after")},focusStartOfWeek:function(){return x("startOfWeek","before")},focusEndOfWeek:function(){return x("endOfWeek","after")}};return a.jsx(zO.Provider,{value:y,children:e.children})}function jw(){var e=p.useContext(zO);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function EQ(e,t){var r=$O(),n=kw(e,r,t);return n}var Nw=p.createContext(void 0);function RQ(e){if(!Hm(e.initialProps)){var t={selected:void 0};return a.jsx(Nw.Provider,{value:t,children:e.children})}return a.jsx(AQ,{initialProps:e.initialProps,children:e.children})}function AQ(e){var t=e.initialProps,r=e.children,n=function(i,o,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,i,o,l),o.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,i,o,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,i,i,o,l)},s={selected:t.selected,onDayClick:n};return a.jsx(Nw.Provider,{value:s,children:r})}function VO(){var e=p.useContext(Nw);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function PQ(e,t){var r=st(),n=VO(),s=vw(),i=ww(),o=jw(),l=o.focusDayAfter,c=o.focusDayBefore,d=o.focusWeekAfter,u=o.focusWeekBefore,h=o.blur,f=o.focus,m=o.focusMonthBefore,x=o.focusMonthAfter,y=o.focusYearBefore,v=o.focusYearAfter,b=o.focusStartOfWeek,g=o.focusEndOfWeek,w=function($){var R,D,U,de;Hm(r)?(R=n.onDayClick)===null||R===void 0||R.call(n,e,t,$):Jd(r)?(D=s.onDayClick)===null||D===void 0||D.call(s,e,t,$):Zd(r)?(U=i.onDayClick)===null||U===void 0||U.call(i,e,t,$):(de=r.onDayClick)===null||de===void 0||de.call(r,e,t,$)},k=function($){var R;f(e),(R=r.onDayFocus)===null||R===void 0||R.call(r,e,t,$)},j=function($){var R;h(),(R=r.onDayBlur)===null||R===void 0||R.call(r,e,t,$)},S=function($){var R;(R=r.onDayMouseEnter)===null||R===void 0||R.call(r,e,t,$)},T=function($){var R;(R=r.onDayMouseLeave)===null||R===void 0||R.call(r,e,t,$)},P=function($){var R;(R=r.onDayPointerEnter)===null||R===void 0||R.call(r,e,t,$)},C=function($){var R;(R=r.onDayPointerLeave)===null||R===void 0||R.call(r,e,t,$)},A=function($){var R;(R=r.onDayTouchCancel)===null||R===void 0||R.call(r,e,t,$)},V=function($){var R;(R=r.onDayTouchEnd)===null||R===void 0||R.call(r,e,t,$)},I=function($){var R;(R=r.onDayTouchMove)===null||R===void 0||R.call(r,e,t,$)},H=function($){var R;(R=r.onDayTouchStart)===null||R===void 0||R.call(r,e,t,$)},F=function($){var R;(R=r.onDayKeyUp)===null||R===void 0||R.call(r,e,t,$)},J=function($){var R;switch($.key){case"ArrowLeft":$.preventDefault(),$.stopPropagation(),r.dir==="rtl"?l(
536):c();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),r.dir==="rtl"?c():l();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),d();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),u();break;case"PageUp":$.preventDefault(),$.stopPropagation(),$.shiftKey?y():m();break;case"PageDown":$.preventDefault(),$.stopPropagation(),$.shiftKey?v():x();break;case"Home":$.preventDefault(),$.stopPropagation(),b();break;case"End":$.preventDefault(),$.stopPropagation(),g();break}(R=r.onDayKeyDown)===null||R===void 0||R.call(r,e,t,$)},q={onClick:w,onFocus:k,onBlur:j,onKeyDown:J,onKeyUp:F,onMouseEnter:S,onMouseLeave:T,onPointerEnter:P,onPointerLeave:C,onTouchCancel:A,onTouchEnd:V,onTouchMove:I,onTouchStart:H};return q}function OQ(){var e=st(),t=VO(),r=vw(),n=ww(),s=Hm(e)?t.selected:Jd(e)?r.selected:Zd(e)?n.selected:void 0;return s}function DQ(e){return Object.values(Mn).includes(e)}function IQ(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var s=e.modifiersClassNames[n];if(s)r.push(s);else if(DQ(n)){var i=e.classNames["day_".concat(n)];i&&r.push(i)}}),r}function MQ(e,t){var r=ye({},e.styles.day);return Object.keys(t).forEach(function(n){var s;r=ye(ye({},r),(s=e.modifiersStyles)===null||s===void 0?void 0:s[n])}),r}function LQ(e,t,r){var n,s,i,o=st(),l=jw(),c=EQ(e,t),d=PQ(e,c),u=OQ(),h=!!(o.onDayCl
536ick||o.mode!=="default");p.useEffect(function(){var S;c.outside||l.focusedDay&&h&&jr(l.focusedDay,e)&&((S=r.current)===null||S===void 0||S.focus())},[l.focusedDay,e,r,h,c.outside]);var f=IQ(o,c).join(" "),m=MQ(o,c),x=!!(c.outside&&!o.showOutsideDays||c.hidden),y=(i=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&i!==void 0?i:sQ,v=a.jsx(y,{date:e,displayMonth:t,activeModifiers:c}),b={style:m,className:f,children:v,role:"gridcell"},g=l.focusTarget&&jr(l.focusTarget,e)&&!c.outside,w=l.focusedDay&&jr(l.focusedDay,e),k=ye(ye(ye({},b),(n={disabled:c.disabled,role:"gridcell"},n["aria-selected"]=c.selected,n.tabIndex=w||g?0:-1,n)),d),j={isButton:h,isHidden:x,activeModifiers:c,selectedDays:u,buttonProps:k,divProps:b};return j}function FQ(e){var t=p.useRef(null),r=LQ(e.date,e.displayMonth,t);return r.isHidden?a.jsx("div",{role:"gridcell"}):r.isButton?a.jsx(Pf,ye({name:"day",ref:t},r.buttonProps)):a.jsx("div",ye({},r.divProps))}function $Q(e){var t=e.number,r=e.dates,n=st(),s=n.onWeekNumberClick,i=n.styles,o=n.classNames,l=n.locale,c=n.labels.labelWeekNumber,d=n.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!s)return a.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:u});var h=c(Number(t),{locale:l}),f=function(m){s(t,r,m)};return a.jsx(Pf,{name:"week-number","aria-label":h,className:o.weeknumber,style:i.weeknumber,onClick:f,children:u})}function BQ(e){var t,r,n=st(),s=n.styles,i=n.classNames,o=n.showWeekNumber,l=n.components,c=(t=l==null?void 0:l.Day)!==null&&t!==void 0?t:FQ,d=(r=l==null?void 0:l.WeekNumber)!==null&&r!==void 0?r:$Q,u;return o&&(u=a.jsx("td",{className:i.cell,style:s.cell,children:a.jsx(d,{number:e.weekNumber,dates:e.dates})})),a.jsxs("tr",{className:i.row,style:s.row,children:[u,e.dates.map(function(h){return a.jsx("td",{className:i.cell,style:s.cell,role:"presentation",children:a.jsx(c,{displayMonth:e.displayMonth,date:h})},BZ(h))})]})}function LN(e,t,r){for(var n=r!=null&&r.ISOWeek?VP(t):mw(t,r),s=r!=null&&r.ISOWeek?Wi(e):cs(e,r),i=Zr(n,s),o=[],l=0;l<=i;l++)o.push(mt(s,l));var c=o.reduce(function(d,u){var h=r!=null&&r.ISOWeek?WP(u):qP(u,r),f=d.find(function(m){return m.weekNumber===h});return f?(f.dates.push(u),d):(d.push({weekNumber:h,dates:[u]}),d)},[]);return c}function zQ(e,t){var r=LN(Tr(e),fw(e),t);if(t!=null&&t.useFixedWeeks){var n=VZ(e,t);if(n<6){var s=r[r.length-1],i=s.dates[s.dates.length-1],o=Ox(i,6-n),l=LN(Ox(i,1),o,t);r.push.apply(r,l)}}return r}function VQ(e){var t,r,n,s=st(),i=s.locale,o=s.classNames,l=s.styles,c=s.hideHead,d=s.fixedWeeks,u=s.components,h=s.weekStartsOn,f=s.firstWeekContainsDate,m=s.ISOWeek,x=zQ(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:i,weekStartsOn:h,firstWeekContainsDate:f}),y=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:nQ,v=(r=u==null?void 0:u.Row)!==null&&r!==void 0?r:BQ,b=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:eQ;return a.jsxs("table",{id:e.id,className:o.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&a.jsx(y,{}),a.jsx("tbody",{className:o.tbody,style:l.tbody,children:x.map(function(g){return a.jsx(v,{displayMonth:e.displayMonth,dates:g.dates,weekNumber:g.weekNumber},g.weekNumber)})}),a.jsx(b,{displayMonth:e.displayMonth})]})}function UQ(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var WQ=UQ()?p.useLayoutEffect:p.useEffect,Cg=!1,HQ=0;function FN(){return"react-day-picker-".concat(++HQ)}function qQ(e){var t,r=e??(Cg?FN():null),n=p.useState(r),s=n[0],i=n[1];return WQ(function(){s===null&&i(FN())},[]),p.useEffect(function(){Cg===!1&&(Cg=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function GQ(e){var t,r,n=st(),s=n.dir,i=n.classNames,o=n.styles,l=n.components,c=Xd().displayMonths,d=qQ(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,h=[i.month],f=o.month,m=e.displayIndex===0,x=e.displayIndex===c.length-1,y=!m&&!x;s==="rtl"&&(t=[m,x],x=t[0],m=t[1]),m&&(h.push(i.caption_start),f=ye(ye({},f),o.caption_start)),x&&(h.push(i.caption_end),f=ye(ye({},f),o.caption_end)),y&&(h.push(i.caption_between),f=ye(ye({},f),o.caption_between));var v=(r=l==null?void 0:l.Caption)!==null&&r!==void 0?r:QX;return a.jsxs("div",{className:h.join(" "),style:f,children:[a.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(VQ,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function KQ(e){var t=st(),r=t.classNames,n=t.styles;return a.jsx("div",{className:r.months,style:n.months,children:e.children})}function YQ(e){var t,r,n=e.initialProps,s=st(),i=jw(),o=Xd(),l=p.useState(!1),c=l[0],d=l[1];p.useEffect(function(){s.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),d(!0)))},[s.initialFocus,c,i.focus,i.focusTarget,i]);var u=[s.classNames.root,s.className];s.numberOfMonths>1&&u.push(s.classNames.multiple_months),s.showWeekNumber&&u.push(s.classNames.with_weeknumber);var h=ye(ye({},s.styles.root),s.style),f=Object.keys(n).filter(function(x){return x.startsWith("data-")}).reduce(function(x,y){var v;return ye(ye({},x),(v={},v[y]=n[y],v))},{}),m=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:KQ;return a.jsx("div",ye({className:u.join(" "),style:h,dir:s.dir,id:s.id,nonce:n.nonce,title:n.title,lang:n.lang},f,{children:a.jsx(m,{children:o.displayMonths.map(function(x,y){return a.jsx(GQ,{displayIndex:y,displayMonth:x},y)})})}))}function JQ(e){var t=e.children,r=bX(e,["children"]);return a.jsx($X,{initialProps:r,children:a.jsx(YX,{children:a.jsx(RQ,{initialProps:r,children:a.jsx(aQ,{initialProps:r,children:a.jsx(lQ,{initialProps:r,children:a.jsx(gQ,{children:a.jsx(TQ,{children:t})})})})})})})}function ZQ(e){return a.jsx(JQ,ye({},e,{children:a.jsx(YQ,{initialProps:e})}))}function UO({className:e,classNames:t,showOutsideDays:r=!0,...n}){return a.jsx(ZQ,{showOutsideDays:r,className:Z("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
536ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Z(od({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Z(od({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>a.jsx(r2,{className:"h-4 w-4"}),IconRight:({...s})=>a.jsx(Uh,{className:"h-4 w-4"})},...n})}UO.displayName="Calendar";var qm="Checkbox",[XQ,Cse]=Xt(qm),[QQ,Sw]=XQ(qm);function eee(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:i,form:o,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:h}=e,[f,m]=Fr({prop:r,defaultProp:s??!1,onChange:c,caller:qm}),[x,y]=p.useState(null),[v,b]=p.useState(null),g=p.useRef(!1),w=x?!!o||!!x.closest("form"):!0,k={checked:f,disabled:i,setChecked:m,control:x,setControl:y,name:l,form:o,value:u,hasConsumerStoppedPropagationRef:g,required:d,defaultChecked:Da(s)?!1:s,isFormControl:w,bubbleInput:v,setBubbleInput:b};return a.jsx(QQ,{scope:t,...k,children:tee(h)?h(k):n})}var WO="CheckboxTrigger",HO=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:i,value:o,disabled:l,checked:c,required:d,setControl:u,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:m,bubbleInput:x}=Sw(WO,e),y=_e(s,u),v=p.useRef(c);return p.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const g=()=>h(v.current);return b.addEventListener("reset",g),()=>b.removeEventListener("reset",g)}},[i,h]),a.jsx(me.button,{type:"button",role:"checkbox","aria-checked":Da(c)?"mixed":c,"aria-required":d,"data-state":JO(c),"data-disabled":l?"":void 0,disabled:l,value:o,...n,ref:y,onKeyDown:ce(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:ce(r,b=>{h(g=>Da(g)?!0:!g),x&&m&&(f.current=b.isPropagationStopped(),f.current||b.stopPropagation())})})});HO.displayName=WO;var Cw=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:d,form:u,...h}=e;return a.jsx(eee,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:d,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:f})=>a.jsxs(a.Fragment,{children:[a.jsx(HO,{...h,ref:t,__scopeCheckbox:r}),f&&a.jsx(YO,{__scopeCheckbox:r})]})})});Cw.displayName=qm;var qO="CheckboxIndicator",GO=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,i=Sw(qO,r);return a.jsx(nn,{present:n||Da(i.checked)||i.checked===!0,children:a.jsx(me.span,{"data-state":JO(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});GO.displayName=qO;var KO="CheckboxBubbleInput",YO=p.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:l,disabled:c,name:d,value:u,form:h,bubbleInput:f,setBubbleInput:m}=Sw(KO,e),x=_e(r,m),y=Im(i),v=om(n);p.useEffect(()=>{const g=f;if(!g)return;const w=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(w,"checked").set,S=!s.current;if(y!==i&&j){const T=new Event("click",{bubbles:S});g.indeterminate=Da(i),j.call(g,Da(i)?!1:i),g.dispatchEvent(T)}},[f,y,i,s]);const b=p.useRef(Da(i)?!1:i);return a.jsx(me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??b.current,required:l,disabled:c,name:d,value:u,form:h,...t,tabIndex:-1,ref:x,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});YO.displayName=KO;function tee(e){return typeof e=="function"}function Da(e){return e==="indeterminate"}function JO(e){return Da(e)?"indeterminate":e?"checked":"unchecked"}const ZO=p.forwardRef(({className:e,...t},r)=>a.jsx(Cw,{ref:r,className:Z("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-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",e),...t,children:a.jsx(GO,{className:Z("flex items-center justify-center text-current"),children:a.jsx(Rd,{className:"h-4 w-4"})})}));ZO.displayName=Cw.displayName;var Gm="Switch",[ree,_se]=Xt(Gm),[nee,see]=ree(Gm),XO=p.forwardRef((e,t)=>
vendor: 4,642 bytes, line 536
536{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:d,form:u,...h}=e,[f,m]=p.useState(null),x=_e(t,w=>m(w)),y=p.useRef(!1),v=f?u||!!f.closest("form"):!0,[b,g]=Fr({prop:s,defaultProp:i??!1,onChange:d,caller:Gm});return a.jsxs(nee,{scope:r,checked:b,disabled:l,children:[a.jsx(me.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":rD(b),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:x,onClick:ce(e.onClick,w=>{g(k=>!k),v&&(y.current=w.isPropagationStopped(),y.current||w.stopPropagation())})}),v&&a.jsx(tD,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});XO.displayName=Gm;var QO="SwitchThumb",eD=p.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,s=see(QO,r);return a.jsx(me.span,{"data-state":rD(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:t})});eD.displayName=QO;var aee="SwitchBubbleInput",tD=p.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...s},i)=>{const o=p.useRef(null),l=_e(o,i),c=Im(r),d=om(t);return p.useEffect(()=>{const u=o.current;if(!u)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==r&&m){const x=new Event("click",{bubbles:n});m.call(u,r),u.dispatchEvent(x)}},[c,r,n]),a.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:l,style:{...s.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});tD.displayName=aee;function rD(e){return e?"checked":"unchecked"}var nD=XO,iee=eD;const sD=p.forwardRef(({className:e,...t},r)=>a.jsx(nD,{className:Z("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:a.jsx(iee,{className:Z("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));sD.displayName=nD.displayName;var _w="Radio",[oee,aD]=Xt(_w),[lee,cee]=oee(_w),iD=p.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:l="on",onCheck:c,form:d,...u}=e,[h,f]=p.useState(null),m=_e(t,v=>f(v)),x=p.useRef(!1),y=h?d||!!h.closest("form"):!0;return a.jsxs(lee,{scope:r,checked:s,disabled:o,children:[a.jsx(me.button,{type:"button",role:"radio","aria-checked":s,"data-state":dD(s),"data-disabled":o?"":void 0,disabled:o,value:l,...u,ref:m,onClick:ce(e.onClick,v=>{s||c==null||c(),y&&(x.current=v.isPropagationStopped(),x.current||v.stopPropagation())})}),y&&a.jsx(cD,{control:h,bubbles:!x.current,name:n,value:l,checked:s,required:i,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});iD.displayName=_w;var oD="RadioIndicator",lD=p.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...s}=e,i=cee(oD,r);return a.jsx(nn,{present:n||i.checked,children:a.jsx(me.span,{"data-state":dD(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})})});lD.displayName=oD;var dee="RadioBubbleInput",cD=p.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...s},i)=>{const o=p.useRef(null),l=_e(o,i),c=Im(r),d=om(t);return p.useEffect(()=>{const u=o.current;if(!u)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==r&&m){const x=new Event("click",{bubbles:n});m.call(u,r),u.dispatchEvent(x)}},[c,r,n]),a.jsx(me.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:l,style:{...s.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});cD.displayName=dee;function dD(e){return e?"checked":"unchecked"}var uee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Km="RadioGroup",[hee,Tse]=Xt(Km,[Rm,aD]),uD=Rm(),hD=aD(),[fee,mee]=hee(Km),fD=p.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:l=!1,orientation:c,dir:d,loop:u=!0,onValueChange:h,...f}=e,m=uD(r),x=Hd(d),[y,v]=Fr({prop:i,defaultProp:s??null,onChange:h,caller:Km});return a.jsx(fee,{scope:r,name:n,required:o,disabled:l,value:y,onValueChange:v,children:a.jsx(hA,{asChild:!0,...m,orientation:c,dir:x,loop:u,children:a.jsx(me.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:x,...f,ref:t})})})});fD.displayName=Km;var mD="RadioGroupItem",pD=p.forwardRef((e,t)=>
536{const{__scopeRadioGroup:r,disabled:n,...s}=e,i=mee(mD,r),o=i.disabled||n,l=uD(r),c=hD(r),d=p.useRef(null),u=_e(t,d),h=i.value===s.value,f=p.useRef(!1);return p.useEffect(()=>{const m=y=>{uee.includes(y.key)&&(f.current=!0)},x=()=>f.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",x)}},[]),a.jsx(fA,{asChild:!0,...l,focusable:!o,active:h,children:a.jsx(iD,{disabled:o,required:i.required,checked:h,...c,...s,name:i.name,ref:u,onCheck:()=>i.onValueChange(s.value),onKeyDown:ce(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:ce(s.onFocus,()=>{var m;f.current&&((m=d.current)==null||m.click())})})})});pD.displayName=mD;var pee="RadioGroupIndicator",gD=p.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,s=hD(r);return a.jsx(lD,{...s,...n,ref:t})});gD.displayName=pee;var yD=fD,xD=pD,gee=gD;const vD=p.forwardRef(({className:e,...t},r)=>a.jsx(yD,{className:Z("grid gap-2",e),...t,ref:r}));vD.displayName=yD.displayName;const bD=p.forwardRef(({className:e,...t},r)=>a.jsx(xD,{ref:r,className:Z("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(gee,{className:"flex items-center justify-center",children:a.jsx(x3,{className:"h-2.5 w-2.5 fill-current text-current"})})}));bD.displayName=xD.displayName;const wD=p.createContext({user:null,session:null,loading:!0,signOut:async()=>{}}),yee=({children:e})=>{const[t,r]=p.useState(null),[n,s]=p.useState(!0);return p.useEffect(()=>{const{data:i}=Mt.auth.onAuthStateChange((o,l)=>{r(l),s(!1)});return Mt.auth.getSession().then(({data:o})=>{r(o.session),s(!1)}),()=>i.subscription.unsubscribe()},[]),a.jsx(wD.Provider,{value:{user:(t==null?void 0:t.user)??null,session:t,loading:n,signOut:async()=>{await Mt.auth.signOut()}},children:e})},Ym=()=>p.useContext(wD);function kD(){const{user:e}=Ym(),[t,r]=p.useState([]),[n,s]=p.useState(!1),[i,o]=p.useState(null),l=p.useCallback(async()=>{if(!e){r([]);return}s(!0),o(null);const{data:u,error:h}=await Mt.functions.invoke("cct-load",{method:"POST"});if(s(!1),h){o(h.message);return}r((u==null?void 0:u.rows)??[])},[e]),c=p.useCallback(async u=>{if(!e)throw new Error("Not signed in");const{id:h,stage:f,investorType:m,priority:x,blocker:y,tags:v,conversationDate:b,reminderDate:g,...w}=u,{data:k,error:j}=await Mt.functions.invoke("cct-save",{body:{meta:{id:h,stage:f,investorType:m,priority:x,blocker:y,tags:v,conversationDate:b,reminderDate:g},sensitive:w}});if(j)throw new Error(j.message);return await l(),k},[e,l]),d=p.useCallback(async u=>{if(!e)return;const{error:h}=await Mt.functions.invoke("cct-delete",{body:{id:u}});if(h)throw new Error(h.message);await l()},[e,l]);return p.useEffect(()=>{l()},[l]),{rows:t,loading:n,error:i,list:l,save:c,remove:d}}var Fn="Accordion",xee=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Tw,vee,bee]=Qf(Fn),[Jm,Ese]=Xt(Fn,[bee,MP]),Ew=MP(),jD=M.forwardRef((e,t)=>{const{type:r,...n}=e,s=n,i=n;
536return a.jsx(Tw.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?a.jsx(Nee,{...i,ref:t}):a.jsx(jee,{...s,ref:t})})});jD.displayName=Fn;var[ND,wee]=Jm(Fn),[SD,kee]=Jm(Fn,{collapsible:!1}),jee=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:i=!1,...o}=e,[l,c]=Fr({prop:r,defaultProp:n??"",onChange:s,caller:Fn});return a.jsx(ND,{scope:e.__scopeAccordion,value:M.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:M.useCallback(()=>i&&c(""),[i,c]),children:a.jsx(SD,{scope:e.__scopeAccordion,collapsible:i,children:a.jsx(CD,{...o,ref:t})})})}),Nee=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=e,[o,l]=Fr({prop:r,defaultProp:n??[],onChange:s,caller:Fn}),c=M.useCallback(u=>l((h=[])=>[...h,u]),[l]),d=M.useCallback(u=>l((h=[])=>h.filter(f=>f!==u)),[l]);return a.jsx(ND,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:d,children:a.jsx(SD,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(CD,{...i,ref:t})})})}),[See,Zm]=Jm(Fn),CD=M.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:s,orientation:i="vertical",...o}=e,l=M.useRef(null),c=_e(l,t),d=vee(r),h=Hd(s)==="ltr",f=ce(e.onKeyDown,m=>{var P;if(!xee.includes(m.key))return;const x=m.target,y=d().filter(C=>{var A;return!((A=C.ref.current)!=null&&A.disabled)}),v=y.findIndex(C=>C.ref.current===x),b=y.length;if(v===-1)return;m.preventDefault();let g=v;const w=0,k=b-1,j=()=>{g=v+1,g>k&&(g=w)},S=()=>{g=v-1,g<w&&(g=k)};switch(m.key){case"Home":g=w;break;case"End":g=k;break;case"ArrowRight":i==="horizontal"&&(h?j():S());break;case"ArrowDown":i==="vertical"&&j();break;case"ArrowLeft":i==="horizontal"&&(h?S():j());break;case"ArrowUp":i==="vertical"&&S();break}const T=g%b;(P=y[T].ref.current)==null||P.focus()});return a.jsx(See,{scope:r,disabled:n,direction:s,orientation:i,children:a.jsx(Tw.Slot,{scope:r,children:a.jsx(me.div,{...o,"data-orientation":i,ref:c,onKeyDown:n?void 0:f})})})}),Of="AccordionItem",[Cee,Rw]=Jm(Of),_D=M.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...s}=e,i=Zm(Of,r),o=wee(Of,r),l=Ew(r),c=Rn(),d=n&&o.value.includes(n)||!1,u=i.disabled||e.disabled;return a.jsx(Cee,{scope:r,open:d,disabled:u,triggerId:c,children:a.jsx($P,{"data-orientation":i.orientation,"data-state":OD(d),...l,...s,ref:t,disabled:u,open:d,onOpenChange:h=>{h?o.onItemOpen(n):o.onItemClose(n)}})})});_D.displayName=Of;var TD="AccordionHeader",ED=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=Zm(Fn,r),i=Rw(TD,r);return a.jsx(me.h3,{"data-orientation":s.orientation,"data-state":OD(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});ED.displayName=TD;var Dx="AccordionTrigger",RD=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=Zm(Fn,r),i=Rw(Dx,r),o=kee(Dx,r),l=Ew(r);
536return a.jsx(Tw.ItemSlot,{scope:r,children:a.jsx(kJ,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...n,ref:t})})});RD.displayName=Dx;var AD="AccordionContent",PD=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=Zm(Fn,r),i=Rw(AD,r),o=Ew(r);return a.jsx(jJ,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});PD.displayName=AD;function OD(e){return e?"open":"closed"}var _ee=jD,Tee=_D,Eee=ED,DD=RD,ID=PD;const Ree=_ee,po=p.forwardRef(({className:e,...t},r)=>a.jsx(Tee,{ref:r,className:Z("border-b",e),...t}));po.displayName="AccordionItem";const go=p.forwardRef(({className:e,children:t,...r},n)=>a.jsx(Eee,{className:"flex",children:a.jsxs(DD,{ref:n,className:Z("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(jl,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));go.displayName=DD.displayName;const yo=p.forwardRef(({className:e,children:t,...r},n)=>a.jsx(ID,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:Z("pb-4 pt-0",e),children:t})}));yo.displayName=ID.displayName;function Aee({open:e,onOpenChange:t,variant:r="help"}){const n=r==="onboarding";return a.jsx(Ki,{open:e,onOpenChange:t,children:a.jsxs(Ka,{className:"max-w-2xl max-h-[90dvh] overflow-y-auto",children:[a.jsxs(Yi,{children:[a.jsx(Ya,{className:"font-display text-2xl",children:n?"Welcome to your Capital Conversation Tracker":"Help & tips"}),a.jsx(Ja,{children:n?"A two-minute tour so every investor conversation compounds into momentum.":"Quick answers to the most common questions founders ask us."})]}),a.jsx("div",{className:"mt-3 grid gap-3 sm:grid-cols-3",children:[{icon:Sy,title:"Investor details",body:"Who you spoke to, what kind of capital they bring, and when you last met."},{icon:Pd,title:"Conversation details",body:"Their real concern, the one insight you'll remember, and any objection tags."},{icon:o2,title:"Next steps",body:"What unlocks them, what you owe them, and when to re-engage with proof."}].map(({icon:s,title:i,body:o})=>a.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/70 p-4",children:[a.jsx("div",{className:"inline-flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10 text-primary",children:a.jsx(s,{className:"h-4 w-4"})}),a.jsx("h4",{className:"mt-3 font-display text-base font-bold",children:i}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground leading-relaxed",children:o})]},i))}),a.jsx("div",{className:"mt-5 rounded-2xl border border-primary/20 bg-primary/5 p-4",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx(Hh,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),a.jsxs("div",{className:"text-sm",children:[a.jsx("p",{className:"font-medium",children:'Why "memorable insight" matters'}),a.jsx("p",{className:"mt-1 text-muted-foreground leading-relaxed",children:"One sentence the investor said that you'll still remember in six months. Reminding them of it on follow-up is the single fastest way to feel like a real relationship instead of a CRM ping."})]})]})}),a.jsxs(Ree,{type:"single",collapsible:!0,className:"mt-5",children:[a.jsxs(po,{value:"draft",children:[a.jsx(go,{className:"text-sm",children:"How is the follow-up draft generated?"}),a.jsx(yo,{className:"text-sm text-muted-foreground leading-relaxed",children:"We paraphrase your notes, translate the blocker you picked into plain language, and propose a time-bound next touchpoint. You stay in control — edit the draft before sending, or copy it into your own tool."})]}),a.jsxs(po,{value:"fields",children:[a.jsx(go,{className:"text-sm",children:"What goes in each field?"}),a.jsxs(yo,{className:"text-sm text-muted-foreground leading-relaxed space-y-2",children:[a.jsxs("p",{children:[a.jsx("strong",{children:"What was said on the call:"})," a few sentences in your own words. Capture the texture, not bullet points."]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Memorable insight:"})," one personal takeaway that will jog your memory in six months — something they s
536aid, or a detail about their background."]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Key feedback tags:"})," the real objection. This shapes the suggested timing and follow-up question."]}),a.jsxs("p",{children:[a.jsx("strong",{children:"What would unlock them:"})," the proof or condition they need before they can lean in. The follow-up speaks directly to this."]}),a.jsxs("p",{children:[a.jsx("strong",{children:"What they're waiting on:"})," the trigger event. Becomes the time horizon in the email."]}),a.jsxs("p",{children:[a.jsx("strong",{children:"What you committed to:"})," your forward promise. We turn this into a natural next step."]})]})]}),a.jsxs(po,{value:"privacy",children:[a.jsx(go,{className:"text-sm",children:"Where is my data stored?"}),a.jsxs(yo,{className:"text-sm text-muted-foreground leading-relaxed",children:[a.jsx("strong",{children:"Guests:"})," entries stay in this browser only. Clearing site data deletes them.",a.jsx("br",{}),a.jsx("strong",{children:"Signed in:"})," entries sync to Lovable Cloud. Sensitive fields (investor name, contact, notes, memorable insight, need / waiting / next action, feedback) are encrypted at rest with a server-side key. Row-level security ensures only you can read or modify your rows."]})]}),a.jsxs(po,{value:"reminders",children:[a.jsx(go,{className:"text-sm",children:"When should I set a reminder date?"}),a.jsx(yo,{className:"text-sm text-muted-foreground leading-relaxed",children:"Set it for when you'll have new information to share — pilot data, an offtake LOI, a milestone — not just a calendar nudge. The follow-up suggests a time-bound nudge based on the blocker you picked."})]}),a.jsxs(po,{value:"export",children:[a.jsx(go,{className:"text-sm",children:"Can I export everything?"}),a.jsx(yo,{className:"text-sm text-muted-foreground leading-relaxed",children:'Yes — the "Export" button in the saved-entries header writes a CSV of everything visible to you, including memorable insights and suggested next steps.'})]})]}),a.jsxs("div",{className:"mt-5 flex items-center gap-2 text-xs text-muted-foreground",children:[a.jsx(rm,{className:"h-3.5 w-3.5"}),"Designed for founders who want to keep raising on their terms."]}),a.jsx("div",{className:"mt-4 flex justify-end",children:a.jsx(G,{onClick:()=>t(!1),children:n?"Let's go":"Close"})})]})})}const Pee=`# Capital Conversation Tracker — Founder template
537
538## 1. Investor details
539- Investor name:
540- Type (Climate VC / Strategic / Infra / Project finance / Catalytic / Family office):
541- Contact (email / Slack):
542- Conversation date:
543- Stage of conversation (Intro sent / First call / Follow-up / Diligence / Soft no / Hard no / Come back later / Active):
544
545## 2. Conversation details
546- Real concern in their words:
547- Memorable insight (one sentence you'll remember):
548- Key feedback / objection tags:
549- Blocker type (Message / Process / Asset / Sequencing):
550- Notes:
551
552## 3. Next steps
553- What will unlock them:
554- Waiting on:
555- What you committed to:
556- Reminder date:
557- Priority (High / Medium / Low):
558`;function Oee({open:e,onOpenChange:t}){const[r,n]=p.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(Pee),n(!0),Xe.success("Template copied — paste into Notion or Google Docs"),setTimeout(()=>n(!1),2e3)}catch{Xe.error("Couldn't copy. Use the download button instead.")}};return a.jsx(Ki,{open:e,onOpenChange:t,children:a.jsxs(Ka,{className:"max-w-2xl max-h-[90dvh] overflow-y-auto",children:[a.jsxs(Yi,{children:[a.jsx(Ya,{className:"font-display text-2xl",children:"Templates & examples"}),a.jsx(Ja,{children:"Three ways to use this tracker outside the app — pick whichever fits your existing workflow."})]}),a.jsxs("div",{className:"mt-3 grid gap-3",children:[a.jsx("div",{className:"rounded-2xl border border-border/60 bg-card/70 p-4",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:a.jsx(Wh,{className:"h-4 w-4"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h4",{className:"font-display text-base font-bold",children:"Copy-ready template"}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Mirror of the form sections, ready to paste into Notion, Google Docs, or any markdown editor."}),a.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[a.jsxs(G,{size:"sm",onClick:s,children:[r?a.jsx(Rd,{className:"h-4 w-4"}):a.jsx(Wh,{className:"h-4 w-4"}),r?"Copied":"Copy markdown"]}),a.jsx(G,{size:"sm",variant:"outline",asChild:!0,children:a.jsxs("a",{href:"/resources/investor-tracker-template.md",target:"_blank",rel:"noopener noreferrer",children:[a.jsx(Jc,{className:"h-4 w-4"})," View template"]})}),a.jsx(G,{size:"sm",variant:"outline",asChild:!0,children:a.jsxs("a",{href:"/resources/investor-tracker-template.md",download:!0,children:[a.jsx(n2,{className:"h-4 w-4"})," Download .md"]})})]})]})]})}),a.jsx("div",{className:"rounded-2xl border border-border/60 bg-card/70 p-4",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:a.jsx(Jc,{className:"h-4 w-4"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h4",{className:"font-display text-base font-bold",children:"Worked example"}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:'See what a fully-completed entry looks like, so you know 
558what "good" feels like before you start typing.'}),a.jsx(G,{size:"sm",variant:"outline",className:"mt-3",asChild:!0,children:a.jsx("a",{href:"/resources/investor-tracker-template.md",target:"_blank",rel:"noopener noreferrer",children:"Open example"})})]})]})})]})]})})}const Aw="cct.signoff.v1",jn=()=>{try{return localStorage.getItem(Aw)||""}catch{return""}},Dee=async e=>{const t=e.trim();try{localStorage.setItem(Aw,t)}catch{}if(t)try{const{data:r}=await Mt.auth.getSession();r.session&&await Mt.auth.updateUser({data:{cct_signoff:t}})}catch{}},Iee=async()=>{var e,t;try{if(jn())return;const{data:n}=await Mt.auth.getUser(),s=(t=(e=n.user)==null?void 0:e.user_metadata)==null?void 0:t.cct_signoff;s&&typeof s=="string"&&localStorage.setItem(Aw,s.trim())}catch{}};function Mee({open:e,onOpenChange:t,onSaved:r}){const[n,s]=p.useState("");p.useEffect(()=>{e&&s(jn())},[e]);const i=async()=>{const o=n.trim();await Dee(o),r==null||r(o),t(!1)};return a.jsx(Ki,{open:e,onOpenChange:t,children:a.jsxs(Ka,{className:"max-w-md",children:[a.jsxs(Yi,{children:[a.jsx(Ya,{className:"font-display text-xl",children:"Your sign-off"}),a.jsx(Ja,{children:"We'll use this at the bottom of your follow-up drafts so they go out under your name."})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{htmlFor:"signoff",children:"Preferred sign-off"}),a.jsx(ot,{id:"signoff",autoFocus:!0,placeholder:"e.g. Maya",value:n,onChange:o=>s(o.target.value),onKeyDown:o=>{o.key==="Enter"&&n.trim()&&i()}})]}),a.jsxs(TA,{children:[a.jsx(G,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),a.jsx(G,{onClick:i,disabled:!n.trim(),children:"Save"})]})]})})}const Ix=(e,t)=>{if(!t)return e;let r=e.replace(/\[Your name\]/gi,t).replace(/\[Founder\]/gi,t);return/(?:Best regards|Thanks again|Looking forward to your thoughts|Speak soon[^,]*|Thanks for your guidance)\s*,?\s*$/i.test(r.trim())&&(r=r.replace(/\s*$/,"")+`
559`+t),r},$N=(e,t={})=>{if(!e)return e;let r=e;const n=(t.signoff||"").trim(),s=(t.firstName||"").trim();return r=r.replace(/\[\s*(Your\s+name|Founder|Founder\s+name|Your\s+full\s+name)\s*\]/gi,n||""),r=r.replace(/\[\s*(Investor(?:'s)?\s+(?:first\s+)?name|First\s+name|Name)\s*\]/gi,s||""),r=r.replace(/\[\s*[A-Za-z][A-Za-z\s'/-]{0,40}\s*\]/g,""),r=r.replace(/[ \t]+,/g,",").replace(/[ \t]{2,}/g," ").replace(/\n{3,}/g,`
560
561`),r.trim()},Lee=[{title:"Formal investor update",blurb:"Concise, professional, no contractions.",subject:"Following up — [Company] capital sequencing",body:`Dear [Name],
562
563Thank you for the conversation last week. As discussed, your team is looking for [specific need] before being able to move forward, with a particular emphasis on [waiting-on item].
564
565We've identified this as a [blocker type] in our current capital stack and are addressing it through [next action]. I'll share a structured update by [date].
566
567Best regards,`},{title:"Friendly check-in",blurb:"Conversational, warm, low-pressure.",subject:"Quick check-in — anything I can unblock?",body:`Hi [Name],
568
569Hope the week is going well. Wanted to circle back on our conversation — you mentioned needing [need]. We've made progress on [recent milestone] and I'd love to grab 20 minutes to walk through it.
570
571Let me know what works.
572
573Thanks again,`},{title:"Data request",blurb:"Polite, specific, evidence-led.",subject:"Data you mentioned — [Company]",body:`Hi [Name],
574
575Following up on your request for [data: pilot results / unit economics / offtake LOI]. Attaching [doc] and a one-pager covering [key metric]. Happy to dig deeper into any line item.
576
577Two quick asks:
5781. Does this address [specific concern raised]?
5792. Who else on your team should I loop in?
580
581Thanks for your guidance,`}],Fee=[{title:`"It's too early"`,meaning:"Usually: no conviction in team or tech yet, and no commercial signal forcing them to act.",proof:"Signed pilot, paying customer, or binding LOI from a credible offtaker — even a small one."},{title:'"Not our mandate"',meaning:"Sometimes true (sector / stage / geography); often means they don't see how it fits the portfolio.",proof:"Position at the intersection of two themes they already back. If truly mandate — ask for two intros and move on."},{title:'"We need to see pilot data"',meaning:"They don't trust your unit economics yet.",proof:"A 1-pager interpreting the data: redacted pilot P&L, cost curve, assumptions behind the next milestone. Never send raw data alone."},{title:'"Already made bets here" (e.g. SAF)',meaning:"Genuine portfolio overlap — or an excuse for low conviction.",proof:"A sharp differentiation slide. If overlap is real, ask for LPs or co-investors without that exposure."},{title:'"No current fund capacity"',meaning:"Follower, not leader. Wants someone else to lead.",proof:"A named lead or credible anchor. Until then, keep them warm — don't burn follow-ups chasing the check."}];function $ee({open:e,onOpenChange:t,initialTab:r="templates"}){const[n,s]=p.useState(null),i=async(o,l)=>{try{await navigator.clipboard.writeText(l),s(o),Xe.success("Copied — paste into your email client"),setTimeout(()=>s(null),1800)}catch{Xe.error("Couldn't copy")}};return a.jsx(Ki,{open:e,onOpenChange:t,children:a.jsxs(Ka,{className:"max-w-3xl max-h-[90dvh] overflow-y-auto",children:[a.jsxs(Yi,{children:[a.jsx(Ya,{className:"font-display text-2xl",children:"Founder field guides"}),a.jsx(Ja,{children:"Adapt these to your raise — keep them short, specific, and grounded in what was actually said."})]}),a.jsxs(Yb,{defaultValue:r,className:"mt-3",children:[a.jsxs(Pm,{className:"grid w-full grid-cols-2",children:[a.jsx(ul,{value:"templates",children:"Follow-up templates"}),a.jsx(ul,{value:"objections",children:"Reading objections"})]}),a.jsx(hl,{value:"templates",className:"mt-4 space-y-4",children:Lee.map((o,l)=>a.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/70 p-5",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-display text-base font-bold",children:o.title}),a.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:o.blurb})]}),a.jsxs(G,{size:"sm",variant:"outline",onClick:()=>i(l,`Subject: ${o.subject}
582
583${Ix(o.body,jn())}`),children:[n===l?a.jsx(Rd,{className:"h-4 w-4"}):a.jsx(Wh,{className:"h-4 w-4"}),n===l?"Copied":"Copy"]})]}),a.jsxs("div",{className:"mt-3 rounded-lg bg-secondary/30 p-3",children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Subject"}),a.jsx("p",{className:"mt-0.5 text-sm font-medium text-foreground",children:o.subject})]}),a.jsx("pre",{className:"mt-2 whitespace-pre-wrap rounded-lg bg-background/60 p-3 font-sans text-sm text-foreground leading-relaxed",children:Ix(o.body,jn())})]},o.title))}),a.jsxs(hl,{value:"objections",className:"mt-4 space-y-3",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Most investor objections are not the real objection. Decode what was actually said."}),Fee.map(o=>a.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/70 p-5",children:[a.jsx("h4",{className:"font-display text-base font-bold",children:o.title}),a.jsxs("div",{className:"mt-2 grid gap-2 sm:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"What they often mean"}),a.jsx("p",{className:"mt-1 text-sm text-foreground",children:o.meaning})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-primary",children:"Prove it with"}),a.jsx("p",{className:"mt-1 text-sm text-foreground",children:o.proof})]})]})]},o.title)),a.jsxs("div",{className:"rounded-2xl border border-primary/20 bg-primary/5 p-5",children:[a.jsx("h4",{className:"font-display text-base font-bold",children:"Three signals investors actually weight"}),a.jsxs("ul",{className:"mt-2 space-y-1 text-sm text-foreground",children:[a.jsxs("li",{children:[a.jsx("strong",{children:"Revenue (even small)"})," — one paying customer beats ten LOIs."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"A bound counterparty"})," — signed offtake, MRV partner, insurance term sheet."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Time-to-deployment"})," — a credible 12-month plan an investor can underwrite."]})]})]})]})]})]})})}const ai=[{icon:Pd,title:"Capture what was said",body:"Jot down the texture of the call in your own words — no formatting required.",demo:a.jsxs("div",{className:"rounded-lg border border-border bg-background p-3",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"What was said on the call"}),a.jsx(ne.p,{initial:{opacity:0}
583,animate:{opacity:1},transition:{duration:.6},className:"mt-2 text-sm text-foreground",children:"Partner is enthusiastic, but IC pushed back on the financing path. Asked to see the debt term sheet alongside the equity round."},"s1")]})},{icon:i2,title:"Add a memorable insight",body:"One sentence that reminds future-you what made this conversation real.",demo:a.jsxs("div",{className:"rounded-lg border border-primary/30 bg-primary/5 p-3",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-primary",children:"Memorable insight"}),a.jsx(ne.p,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.5},className:"mt-2 text-sm italic text-foreground",children:`"She used to underwrite project finance — that's why she pushed so hard on offtake quality, not the tech."`},"s2")]})},{icon:l2,title:"Pick the blocker",body:"Tag the real obstacle. This shapes the suggested next step.",demo:a.jsx("div",{className:"flex flex-wrap gap-2",children:["Message","Process","Audience","Sequencing"].map(e=>a.jsxs(ne.span,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{delay:.05*["Message","Process","Audience","Sequencing"].indexOf(e)},className:e==="Sequencing"?"rounded-full border border-primary bg-primary/10 px-3 py-1 text-xs text-primary":"rounded-full border border-border bg-background px-3 py-1 text-xs text-muted-foreground",children:[e," Blocker ",e==="Sequencing"&&a.jsx(Rd,{className:"ml-1 inline h-3 w-3"})]},e))})},{icon:Ra,title:"Draft your follow-up",body:"We turn the notes into a clean draft you can edit and send.",demo:a.jsxs(ne.div,{initial:{opacity:0}
583,animate:{opacity:1},transition:{duration:.5},className:"rounded-lg border border-border bg-background p-3 text-sm leading-relaxed text-foreground",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-primary mb-2",children:"Draft email"}),"Hi Lena,",a.jsx("br",{}),a.jsx("br",{}),"Thanks again for the time earlier this week. The IC's read on the financing path makes sense — equity alone is a single-leg bet without visibility on the debt.",a.jsx("br",{}),a.jsx("br",{}),"I'll share a short capital sequencing note and an indicative debt term sheet by Friday. In the meantime, would it help to loop in our lender?"]},"s4")}];function Bee({open:e,onOpenChange:t}){const[r,n]=p.useState(0),[s,i]=p.useState(!0);p.useEffect(()=>{if(!e){n(0),i(!0);return}},[e]),p.useEffect(()=>{if(!e||!s)return;const c=window.setTimeout(()=>n(d=>(d+1)%ai.length),3200);return()=>window.clearTimeout(c)},[r,s,e]);const o=ai[r],l=o.icon;return a.jsx(Ki,{open:e,onOpenChange:t,children:a.jsxs(Ka,{className:"max-w-xl",children:[a.jsxs(Yi,{children:[a.jsx(Ya,{className:"font-display text-2xl",children:"How it works"}),a.jsx(Ja,{children:"Four quick beats — from raw note to a follow-up you'd actually send."})]}),a.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/70 p-5",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"inline-flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10 text-primary",children:a.jsx(l,{className:"h-4 w-4"})}),a.jsxs("div",{children:[a.jsxs("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:["Step ",r+1," of ",ai.length]}),a.jsx("h4",{className:"font-display text-base font-bold",children:o.title})]})]}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:o.body}),a.jsx("div",{className:"mt-4 min-h-[160px]",children:a.jsx(Fd,{mode:"wait",children:a.jsx(ne.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.35},children:o.demo},r)})})]}),a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("div",{className:"flex items-center gap-1",children:ai.map((c,d)=>a.jsx("button",{onClick:()=>n(d),"aria-label":`Go to step ${d+1}`,className:d===r?"h-1.5 w-6 rounded-full bg-primary":"h-1.5 w-1.5 rounded-full bg-muted-foreground/30"},d))}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(G,{size:"sm",variant:"ghost",onClick:()=>i(c=>!c),children:[s?a.jsx(D3,{className:"h-3.5 w-3.5"}):a.jsx(Aa,{className:"h-3.5 w-3.5"}),s?"Pause":"Play"]}),a.jsxs(G,{size:"sm",variant:"outline",onClick:()=>n(c=>(c-1+ai.length)%ai.length),children:[a.jsx(r2,{className:"h-3.5 w-3.5"})," Back"]}),a.jsxs(G,{size:"sm",onClick:()=>n(c=>(c+1)%ai.length),children:["Next ",a.jsx(Uh,{className:"h-3.5 w-3.5"})]})]})]})]})})}const zee={"Formal investor update":"formal","Friendly check-in":"friendly","Data request":"dataRequest"},Vee=["Equity Investor","Debt Provider","Insurer","Offtaker / Carbon Buyer","Strategic Partner"],Uee=["Climate VC","Strategic / CVC","Infrastructure","Project finance","Government / catalytic","Family office","Corporate partner"],Wee=["Intro sent","First call","Follow-up","Diligence","Soft no","Hard no","Come back later","Active"],Hee=["too early","need pilot data","need customer / offtake","not our mandate","wrong stage","already made SAF / biofuel bets","interesting but no current fund capacity"],qee=["Message Blocker","Process Blocker","Audience Blocker","Sequencing Blocker"],Gee=["High","Medium","Low"],BN=new Set(["Active","Diligence"]),Kee=["Formal investor update","Friendly check-in","Data request"],Vu="cct-entries-v3",Yee="cct-entries-v2",Jee="cct-entries-v1",zN="cct-seeded-v3",VN="cct-reminders-shown",UN=[{id:"seed-1",name:"Aurora Climate Ventures",type:"Equity Investor",investorType:"Climate VC",stage:"Diligence",need:"Confidence the debt facility can close",waitingOn:"Debt provider and insurer clarity",blocker:"Sequencing Blocker",action:"Send capital sequencing note",priority:"High",notes:"Partner is enthusiastic, but IC pushed back on financing path. Asked to see the debt term sheet alongside the equity round.",keyFeedback:["need pilot data"],followUpDate:St(mt(new Date,4),"yyyy-MM-dd")},{id:"seed-2",name:"Northwind Project Finance",type:"Debt Provider",investorType:"Project finance",stage:"First call",need:"Equity cushion, offtake quality, and risk allocation",waitingOn:"Equity commitment and insurer comfort",blocker:"Sequencing Blocker",action:"Clarify conditions precedent",priority:"High",notes:"Open to project, but need 60% equity stack and an investment-grade offtaker before they can size a facility.",keyFeedback:["need customer / offtake"],followUpDate:St(mt(new Date,12),"yyyy-MM-dd")},{id:"seed-3",name:"Helio Re",type:"Insurer",investorType:"Infrastru
583cture",stage:"Follow-up",need:"Delivery risk, counterparty strength, and project evidence",waitingOn:"Clearer structure and risk package",blocker:"Process Blocker",action:"Capture open questions in one place",priority:"Medium",notes:"Underwriter wants third-party MRV review and a single risk register. Said they could move quickly once package is consolidated.",keyFeedback:["need pilot data"],followUpDate:St(mt(new Date,2),"yyyy-MM-dd")},{id:"seed-4",name:"Meridian Carbon Buyers",type:"Offtaker / Carbon Buyer",investorType:"Corporate partner",stage:"Active",need:"Delivery certainty and project execution confidence",waitingOn:"Financing pathway clarity",blocker:"Sequencing Blocker",action:"Confirm offtake LOI ahead of debt close",priority:"High",notes:"Sustainability lead wants to sign LOI but procurement is blocking until financing is visible. Strong intent.",keyFeedback:[],followUpDate:St(mt(new Date,6),"yyyy-MM-dd")},{id:"seed-5",name:"BlueRiver Family Office",type:"Equity Investor",investorType:"Family office",stage:"Soft no",need:"Smaller ticket entry point and clearer revenue path",waitingOn:"Updated commercial milestones",blocker:"Audience Blocker",action:"Re-engage post-pilot",priority:"Low",notes:"Principal liked the team but said pre-revenue is outside this year's mandate. Open to revisiting after first paying customer.",keyFeedback:["too early","need pilot data"],followUpDate:St(mt(new Date,30),"yyyy-MM-dd")}],Vn=({children:e,delay:t=0})=>a.jsx(ne.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t,ease:"easeOut"},children:e}),WN={name:"",investorPreferredName:"",type:"Equity Investor",investorType:"Climate VC",stage:"First call",need:"",waitingOn:"",blocker:"Message Blocker",action:"",priority:"Medium",notes:"",memorableInsight:"",keyFeedback:[],followUpDate:void 0,reminder:!1},HN=e=>{const t=(e.investorPreferredName||"").trim();return t?t.split(/\s+/)[0]:(e.name||"").trim().split(/\s+/)[0]||"there"},Zee={"Intro sent":1,"First call":2,"Follow-up":2,Diligence:2,Active:1,"Soft no":8,"Hard no":16,"Come back later":6},qN=e=>{const t=e.keyFeedback||[],r=e.blocker;let n=Zee[e.stage]??2,s=`they're at the ${e.stage.toLowerCase()} stage, so a check-in within ${n} week${n===1?"":"s"} keeps momentum without crowding them.`,i="What would be most useful from us before our next conversation?";return t.includes("need pilot data")?(n=Math.max(n,6),s=`they want to see the pilot working, which realistically lands in about ${n} weeks — re-engaging then with verified results carries more weight than a generic nudge.`,i="If we came back with verified pilot results in roughly six weeks, would that be enough to take this back to your IC?"):t.includes("need customer / offtake")?(n=Math.max(n,4),s=`they want commercial proof before underwriting, so a touchpoint in ${n} weeks — once the next offtake conversations have moved — is more credible than a calendar nudge.`,i="Would a signed LOI from a strategic buyer be enough to move this forward on your side?"):t.includes("too early")?(n=Math.max(n,8),s=`they flagged that it's early for them, so giving the story time to mature (around ${n} weeks) before the next touchpoint protects the relationship.`,i="What would 'further along' look like in a way that fits your stage criteria?"):t.includes("interesting but no current fund capacity")?(n=Math.max(n,12),s=`their fund capacity is the constraint, so a longer gap (~${n} weeks) lets us re-engage closer to their next cycle.`,i="When does your next deployment window typically open, so we can time this sensibly?"):r==="Sequencing Blocker"?(n=Math.max(n,3),s=`the issue is sequencing across the stack, so re-engaging in ${n} weeks — once another piece of the stack moves — is what will actually unblock them.`,i="Which other party landing first (debt, insurer, or offtake) would give you the most comfort to move?"):r==="Process Blocker"?(n=Math.max(n,2),i="Who internally needs to see what, in what order, before this can progress?"):r==="Audience Blocker"&&(n=Math.max(n,8),s=`the mandate fit is the live question, so it's worth waiting (~${n} weeks) until we can show something that genuinely shifts that read.`,i="Is there a ver
583sion of this that does fit your current mandate — or would an introduction to a colleague who covers it be more useful?"),{weeks:n,rationale:s,question:i}},GN=e=>{const t={};for(const n of e)n&&(t[n]=(t[n]||0)+1);const r=Object.entries(t).sort((n,s)=>s[1]-n[1]);return r.length?{val:r[0][0],count:r[0][1]}:null},Xee=e=>{if(e.length===0)return"No saved conversations yet.";const t=GN(e.map(s=>s.stage)),r=GN(e.map(s=>s.investorType)),n=[`${e.length} conversation${e.length===1?"":"s"} saved`];return t&&n.push(`most are at ${t.val} stage`),r&&n.push(`${r.val} is the most engaged investor type`),n.join(" · ")+"."},Qee=[{label:"Pilot / commercial deployment data",patterns:[/pilot/i,/demonstrat/i,/commercial deployment/i]},{label:"Signed offtake or LOI",patterns:[/offtake/i,/\bloi\b/i,/letter of intent/i,/customer/i,/buyer/i]},{label:"MRV / third-party verification",patterns:[/\bmrv\b/i,/verifi/i,/third[- ]party/i]},{label:"Unit economics / cost curve",patterns:[/unit econ/i,/cost curve/i,/margin/i,/pricing/i]},{label:"Debt term sheet / financing path",patterns:[/debt/i,/financing/i,/term sheet/i,/facility/i]},{label:"Insurance / risk package",patterns:[/insur/i,/risk/i,/underwrit/i]}],ete=()=>{const[e,t]=p.useState([]),[r,n]=p.useState(WN),[s,i]=p.useState(new Set),[o,l]=p.useState(null),[c,d]=p.useState(null),[u,h]=p.useState("Formal investor update"),[f,m]=p.useState({});p.useState(new Set),p.useState({});const[x,y]=p.useState({}),[v,b]=p.useState(new Set),[g,w]=p.useState({}),[k,j]=p.useState(!1),[S,T]=p.useState("help"),[P,C]=p.useState(!1),[A,V]=p.useState(!1),[I,H]=p.useState("templates"),[F,J]=p.useState(!1),[q,$]=p.useState(!1),[R,D]=p.useState(null),{user:U,signOut:de}=Ym(),{save:ue}=kD();p.useEffect(()=>{o&&!x[o.id]&&!v.has(o.id)&&Rt(o)},[o==null?void 0:o.id]),p.useEffect(()=>{try{localStorage.getItem("cct.onboarded.v1")||(T("onboarding"),j(!0),localStorage.setItem("cct.onboarded.v1","1"))}catch{}},[]),p.useEffect(()=>{try{const E=localStorage.getItem(Vu),N=localStorage.getItem(zN);if(E){t(JSON.parse(E));return}const O=localStorage.getItem(Yee)||localStorage.getItem(Jee);if(O){const W=JSON.parse(O).map(L=>({id:L.id||crypto.randomUUID(),name:L.name||"",type:L.type||"Equity Investor",investorType:L.investorType||"Climate VC",stage:L.stage||"First call",need:L.need||"",waitingOn:L.waitingOn||"",blocker:L.blocker||"Message Blocker",action:L.action||"",priority:L.priority||"Medium",notes:L.notes||"",memorableInsight:L.memorableInsight||"",keyFeedback:L.keyFeedback||[],followUpDate:L.followUpDate,reminder:L.reminder??!1}));t(W),localStorage.setItem(Vu,JSON.stringify(W));return}N||(t(UN),localStorage.setItem(Vu,JSON.stringify(UN)),localStorage.setItem(zN,"1"))}catch{}},[]);const ge=p.useRef({});p.useEffect(()=>{try{const E=localStorage.getItem(VN);E&&(ge.current=JSON.parse(E))}catch{}},[]),p.useEffect(()=>{const E=()=>{const _=Kr(new Date),O=St(_,"yyyy-MM-dd");let z=!1;for(const W of e){if(!W.reminder||!W.followUpDate)continue;const L=Kr(new Date(W.followUpDate)),X=Zr(L,_);X<0||X>2||ge.current[W.id]===O||(Xe(`Reminder · Follow up with ${W.name}`,{description:X===0?"Due today.":X===1?"Due tomorrow.":`Due in ${X} days (${St(L,"MMM d")}).`}),ge.current[W.id]=O,z=!0)}if(z)try{localStorage.setItem(VN,JSON.stringify(ge.current))}catch{}};E();const N=window.setInterval(E,6e4);return()=>window.clearInterval(N)},[e]);const xe=p.useMemo(()=>{const E=Kr(new Date),N=new Set;for(const _ of e){if(!_.reminder||!_.followUpDate)continue;const O=Zr(Kr(new Date(_.followUpDate)),E);O>=0&&O<=2&&N.add(_.id)}return N},[e]),$e=E=>{t(E);try{localStorage.setItem(Vu,JSON.stringify(E))}catch{}},et=async()=>{var N;const E={id:crypto.randomUUID(),...r};if($e([...e,E]),n(WN),U)try{await ue({stage:E.stage,investorType:E.investorType,priority:E.priority,blocker:E.blocker,tags:E.keyFeedback,conversationDate:null,reminderDate:E.followUpDate??null,investorName:E.name,investorPreferredName:E.investorPreferredName??null,contact:null,notes:E.notes,memorableInsight:E.memorableInsight??null,need:E.need,waitingOn:E.waitingOn,nextAction:E.action,feedback:((N=E.keyFeedback)==null?void 0:N.join(", "))??null}),Xe.success("Saved & synced to your account (encrypted at rest).")}catch{Xe.warning("Saved locally — cloud sync failed. Try again from My conversations.")}else Xe.success("Conversation saved locally.")},Q=async()=>
583{if(!r.name||!r.type||!r.need||!r.blocker||!r.priority){Xe.error("Please fill in investor name, stakeholder type, need, blocker, and priority.");return}if(!U&&e.length>=5){Xe.error("Guest mode is limited to 5 saved entries. Sign in to sync unlimited entries, or delete one.");return}await et()};p.useEffect(()=>{U&&Iee()},[U]);const De=E=>$e(e.filter(N=>N.id!==E)),Je=()=>{$e([]),Xe.success("Cleared all saved conversations.")},Te=E=>{i(N=>{const _=new Set(N);return _.has(E)?_.delete(E):_.add(E),_})},Ee=E=>{n(N=>({...N,keyFeedback:N.keyFeedback.includes(E)?N.keyFeedback.filter(_=>_!==E):[...N.keyFeedback,E]}))},Ae=()=>{if(e.length===0)return;const E=["ID","Investor / Fund","Stakeholder Type","Investor Type","Stage","Need","Waiting On","Blocker","Priority","Next Action","Key Feedback","Follow-up Date","Conversation Notes","Memorable Insight"],N=e.map(L=>[L.id,L.name,L.type,L.investorType,L.stage,L.need,L.waitingOn,L.blocker,L.priority,L.action,(L.keyFeedback||[]).join("; "),L.followUpDate||"",L.notes||"",L.memorableInsight||""]),_=[E,...N].map(L=>L.map(X=>`"${String(X).replace(/"/g,'""')}"`).join(",")).join(`
584`),O=new Blob([_],{type:"text/csv;charset=utf-8;"}),z=URL.createObjectURL(O),W=document.createElement("a");W.href=z,W.download="capital-conversations.csv",W.click(),URL.revokeObjectURL(z),Xe.success("Saved conversations exported.")},Et=E=>{if(!jn()){D(()=>E),$(!0);return}E()},Rt=async(E,N={})=>{if(!N.force&&x[E.id])return x[E.id];b(_=>{const O=new Set(_);return O.add(E.id),O}),w(_=>{const O={..._};return delete O[E.id],O});try{const{data:_,error:O}=await Mt.functions.invoke("cct-ai-summary",{body:{entry:E,signoff:jn()}});if(O)throw O;if(_!=null&&_.error)throw new Error(_.error);const z={brief:(_==null?void 0:_.brief)??null,emails:(_==null?void 0:_.emails)??{formal:"",friendly:"",dataRequest:""},summary:(_==null?void 0:_.summary)??""};y(L=>({...L,[E.id]:z}));const W=HN(E);return z.summary&&m(L=>({...L,[E.id]:$N(z.summary,{signoff:jn(),firstName:W})})),z}catch(_){return w(O=>({...O,[E.id]:(_==null?void 0:_.message)||"We couldn't generate a draft right now."})),null}finally{b(_=>{const O=new Set(_);return O.delete(E.id),O})}},Er=(E,N,_)=>{if(!N)return"";const O=N.emails[zee[_]]||"";if(!O)return"";const z=HN(E);return $N(Ix(O,jn()),{signoff:jn(),firstName:z})},Ur=async()=>{o&&Et(async()=>{const E=o;let N=x[E.id];if(N||(N=await Rt(E)||void 0),!N){Xe.error("We couldn't generate a draft right now.");return}const _=Er(E,N,u);if(!_){Xe.error("Draft is empty — try Regenerate.");return}try{await navigator.clipboard.writeText(_),Xe.success("Draft copied to clipboard.")}catch{Xe.error("Could not copy to clipboard.")}})},an=E=>E==="High"?"bg-primary/10 text-primary hover:bg-primary/20":E==="Medium"?"bg-secondary text-secondary-foreground hover:bg-secondary/80":"bg-muted text-muted-foreground hover:bg-muted/80",Lt=p.useMemo(()=>{const E=Kr(new Date),N=mt(E,7),_=e.filter(Ce=>BN.has(Ce.stage)),O=e.filter(Ce=>{if(!Ce.followUpDate)return!1;const Ie=Kr(new Date(Ce.followUpDate));return!pw(Ie,E)&&!Af(Ie,N)}).sort((Ce,Ie)=>Ce.followUpDate<Ie.followUpDate?-1:1),z={};for(const Ce of e)for(const Ie of Ce.keyFeedback||[])z[Ie]=(z[Ie]||0)+1;const W=Object.entries(z).sort((Ce,Ie)=>Ie[1]-Ce[1]).slice(0,3),L={};for(const Ce of e){const Ie=`${Ce.need} ${Ce.waitingOn} ${Ce.notes}`;for(const yr of Qee)yr.patterns.some(Ji=>Ji.test(Ie))&&(L[yr.label]=(L[yr.label]||0)+1)}const X=Object.entries(L).sort((Ce,Ie)=>Ie[1]-Ce[1]).slice(0,3),we={};for(const Ce of _)Ce.investorType&&(we[Ce.investorType]=(we[Ce.investorType]||0)+1);const Be=Object.entries(we).sort((Ce,Ie)=>Ie[1]-Ce[1]);return{warm:_,upcoming:O,topObjections:W,proofPoints:X,pull:Be}},[e]);return a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Capital Conversation Tracker",subtitle:"A lightweight co-pilot for climate founders — capture investor conversations, surface the real objections, and see who is actually moving.",children:a.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[a.jsx(Ot,{className:"bg-primary/10 text-primary border-primary/20 hover:bg-primary/20 uppercase tracking-wider text-[10px]",children:"Prototype · Beta"}),a.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-primary/20 bg-primary/5 px-4 py-2 text-sm text-foreground backdrop-blur-sm",children:[a.jsx(Q0,{className:"h-4 w-4 text-primary"}),a.jsx("span",{children:"Guest mode — up to 5 entries saved locally on this device."})]})]})}),a.jsx(Aee,{open:k,onOpenChange:j,variant:S}),a.jsx(Oee,{open:P,onOpenChange:C}),a.jsx("div",{className:"border-b border-border/40 bg-background/60 backdrop-blur",children:a.jsxs("div",{className:"container mx-auto flex max-w-5xl flex-wrap items-center justify-between gap-3 px-6 py-3 text-sm",children:[a.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[a.jsx(rm,{className:"h-4 w-4 text-primary"}),U?a.jsxs("span",{children:["Signed in as ",a.jsx("span",{className:"font-medium text-foreground",children:U.email})," · synced & encrypted"]}):a.jsx("span",{children:"Guest mode — entries stay in this browser only"})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[a.jsxs(G,{size:"sm",variant:"ghost",onClick:()=>J(!0),children:[a.jsx(X0,{className:"h-4 w-4"}
584)," How it works"]}),a.jsxs(G,{size:"sm",variant:"ghost",onClick:()=>C(!0),children:[a.jsx(Jc,{className:"h-4 w-4"})," Templates"]}),a.jsxs(G,{size:"sm",variant:"ghost",onClick:()=>$(!0),children:[a.jsx(I3,{className:"h-4 w-4"})," ",jn()?`Sign-off: ${jn()}`:"Set sign-off"]}),a.jsxs(G,{size:"sm",variant:"ghost",onClick:()=>{T("help"),j(!0)},children:[a.jsx(y3,{className:"h-4 w-4"})," Help & tips"]}),U?a.jsxs(a.Fragment,{children:[a.jsx(G,{size:"sm",variant:"outline",asChild:!0,children:a.jsxs(se,{to:"/capital-conversation-tracker/mine",children:[a.jsx(k3,{className:"h-4 w-4"})," My conversations"]})}),a.jsxs(G,{size:"sm",variant:"ghost",onClick:()=>de(),children:[a.jsx(R3,{className:"h-4 w-4"})," Sign out"]})]}):a.jsx(G,{size:"sm",variant:"outline",asChild:!0,children:a.jsxs(se,{to:"/auth",children:[a.jsx(E3,{className:"h-4 w-4"})," Sign in to sync"]})})]})]})}),a.jsx("section",{className:"container mx-auto px-6 py-16 md:py-20 max-w-5xl",children:a.jsxs(Vn,{children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"Log a capital conversation"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"Capture one investor at a time. Entries stay on your device."})]}),a.jsxs("div",{className:"mb-6 flex items-start gap-3 rounded-lg border-l-4 border-primary bg-primary/5 p-4 text-sm text-foreground",children:[a.jsx(Q0,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),a.jsx("p",{children:U?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"font-medium",children:"Signed in."})," Saved entries sync to your account. Sensitive fields (investor name, contact, notes, memorable insight, need / waiting / next action, feedback) are encrypted at rest with a server-side key. Row-level security limits access to you alone."," ",a.jsx(se,{to:"/capital-conversation-tracker/mine",className:"underline",children:"View My conversations"}),"."]}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"font-medium",children:"Guest mode — local only."})," Entries stay on this device and never leave your browser. ",a.jsx(se,{to:"/auth",className:"underline",children:"Sign in"})," to sync across devices with encryption at rest. Please avoid highly confidential information (named LPs, internal valuations, term-sheet specifics) until you've signed in."]})})]}),a.jsx("div",{className:"mb-6 rounded-2xl border border-primary/15 bg-gradient-to-br from-primary/5 via-background to-secondary/30 p-5",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:a.jsx(i2,{className:"h-4 w-4"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Before you start — what good notes look like"}),a.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["Write the way you'd brief a co-founder over coffee. Capture the ",a.jsx("em",{children:"texture"})," of the conversation, not bullet points."]}),a.jsx("div",{className:"mt-2",children:a.jsxs(G,{size:"sm",variant:"ghost",className:"h-auto p-0 text-primary hover:bg-transparent",onClick:()=>J(!0),children:[a.jsx(X0,{className:"h-3.5 w-3.5"})," Watch how it works"]})}),a.jsxs("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[a.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-3",children:[a.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-primary",children:[a.jsx(r1,{className:"h-3 w-3"})," Good conversation note"]}),a.jsx("p",{className:"mt-1 text-xs italic text-foreground",children:`"Partner liked the team but said the IC won't move without a debt term sheet alongside the equity round. Drilled into our offtake quality."`})]}),a.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-3",children:[a.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-primary",children:[a.jsx(r1,{className:"h-3 w-3"})," Good memorable insight"]}),a.jsx("p",{className:"mt-1 text-xs italic text-foreground",children:`"She used to underwrite project finance — that's why she pushed so hard on offtake quality, not the tech."`})]})]})]})]})}),a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{className:"rounded-2xl border border-border/50 bg-card/60 p-6 md:p-8 shadow-sm backdrop-blur-sm",children:[a.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[a.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:"1"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Sy,{className:"h-4 w-4 text-primary"}),a.jsx("h3",{className:"font-display text-base font-semibold text-foreground",children:"Investor details"})]})]}),a.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{htmlFor:"name",children:"Investor / Fund name"}),a.jsx(ot,{id:"name",placeholder:"e.g. Aurora Climate Ventures",value:r.name,onChange:E=>n({...r,name:E.target.value})})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{htmlFor:"preferredName",children:"Investor first name (for emails)"}
584),a.jsx(ot,{id:"preferredName",placeholder:"e.g. Maya",value:r.investorPreferredName||"",onChange:E=>n({...r,investorPreferredName:E.target.value})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Optional. Used in the greeting of follow-up drafts. We'll fall back to the first word of the fund name if blank."})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{children:"Stakeholder type"}),a.jsxs(fo,{value:r.type,onValueChange:E=>n({...r,type:E}),children:[a.jsx(ui,{children:a.jsx(mo,{placeholder:"Select type"})}),a.jsx(hi,{children:Vee.map(E=>a.jsx(Qn,{value:E,children:E},E))})]})]}),a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(Ne,{children:"Investor type"}),a.jsxs(fo,{value:r.investorType,onValueChange:E=>n({...r,investorType:E}),children:[a.jsx(ui,{children:a.jsx(mo,{placeholder:"Select investor type"})}),a.jsx(hi,{children:Uee.map(E=>a.jsx(Qn,{value:E,children:E},E))})]})]})]})]}),a.jsxs("div",{className:"rounded-2xl border border-border/50 bg-card/60 p-6 md:p-8 shadow-sm backdrop-blur-sm",children:[a.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[a.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:"2"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Pd,{className:"h-4 w-4 text-primary"}),a.jsx("h3",{className:"font-display text-base font-semibold text-foreground",children:"Conversation details"})]})]}),a.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{children:"Stage"}),a.jsxs(fo,{value:r.stage,onValueChange:E=>n({...r,stage:E}),children:[a.jsx(ui,{children:a.jsx(mo,{placeholder:"Select stage"})}),a.jsx(hi,{children:Wee.map(E=>a.jsx(Qn,{value:E,children:E},E))})]})]}),a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(Ne,{htmlFor:"notes",children:"What was said on the call"}),a.jsx(As,{id:"notes",rows:4,placeholder:"e.g. Partner is enthusiastic, but IC pushed back on the financing path. Wants to see debt term sheet alongside equity round.",value:r.notes,onChange:E=>n({...r,notes:E.target.value})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Raw notes are fine — jot down what stood out in your own words. We'll help turn it into a clear follow-up."})]}),a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(Ne,{htmlFor:"insight",children:"Memorable insight"}),a.jsx(As,{id:"insight",rows:2,placeholder:"e.g. The IC partner used to underwrite project finance and immediately drilled into our offtake quality.",value:r.memorableInsight||"",onChange:E=>n({...r,memorableInsight:E.target.value})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"One personal takeaway from the meeting. Helps the follow-up feel like it actually came from you, not a template."})]}),a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(Ne,{children:"What stood out as their key feedback?"}),a.jsx("div",{className:"flex flex-wrap gap-2",children:Hee.map(E=>{const N=r.keyFeedback.includes(E);return a.jsx("button",{type:"button",onClick:()=>Ee(E),className:Z("rounded-full border px-3 py-1.5 text-xs transition-colors",N?"border-primary bg-primary/10 text-primary":"border-border bg-background text-muted-foreground hover:border-primary/40 hover:text-foreground"),children:E},E)})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Tag the real objection. This shapes the suggested follow-up timing and the next-step question."})]})]})]}),a.jsxs("div",{className:"rounded-2xl border border-border/50 bg-card/60 p-6 md:p-8 shadow-sm backdrop-blur-sm",children:[a.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[a.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:"3"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(o2,{className:"h-4 w-4 text-primary"}),a.jsx("h3",{className:"font-display text-base font-semibold text-foreground",children:"Next steps"})]})]}),a.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(Ne,{htmlFor:"need",children:"What would unlock them?"}),a.jsx(As,{id:"need",rows:3,placeholder:"e.g. Confidence the debt facility can actually close",value:r.need,onChange:E=>n({...r,need:E.target.value})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"The proof or condition they need before they can lean in. The follow-up speaks directly to this."})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{htmlFor:"waiting",children:"What are they waiting on?"}),a.jsx(ot,{id:"waiting",placeholder:"e.g. Insurer comfort or another lead",value:r.waitingOn,onChange:E=>n({...r,waitingOn:E.target.value})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"The trigger event. Becomes the time horizon in the follow-up email."})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{htmlFor:"action",children:"What did you commit to do next?"}),a.jsx(ot,{id:"action",placeholder:"e.g. Send pilot data once verified",value:r.action,onChange:E=>n({...r,action:E.target.value})}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Your forward commitment. We'll turn this into a natural next step."})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{children:"Blocker type"}),a.jsxs(fo,{value:r.blocker,onValueChange:E=>n({...r,blocker:E}),children:[a.jsx(ui,{children:a.jsx(mo,{placeholder:"Select blocker"})}),a.jsx(hi,{children:qee.map(E=>a.jsx(Qn,{value:E,children:E},E))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{children:"Priority"}),a.jsxs(fo,{value:r.priority,onValueChange:E=>n({...r,priority:E}),children:[a.jsx(ui,{children:a.jsx(mo,{placeholder:"Select priority"})}),a.jsx(hi,{children:Gee.map(E=>a.jsx(Qn,{value:E,children:E},E))})]})]}),a.jsxs("div",{className:"space-y-2 md:col-span-2",children:[a.jsx(Ne,{children:"Follow-up date"}),a.jsxs(xX,{children:[a.jsx(vX,{asChild:!0,children:a.jsxs(G,{variant:"outline",className:Z("w-full justify-start text-left font-normal",!r.followUpDate&&"text-muted-foreground"),children:[a.jsx(sc,{className:"mr-2 h-4 w-4"}),r.followUpDate?St(new Date(r.followUpDate),"PPP"):a.jsx("span",{children:"Pick a date"})]})}),a.jsx(PO,{className:"w-auto p-0",align:"start",children:a.jsx(UO,{mode:"single",selected:r.followUpDate?new Date(r.followUpDate):void 0,onSelect:E=>n({...r,followUpDate:E?St(E,"yyyy-MM-dd"):void 0}),initialFocus:!0,className:Z("p-3 pointer-events-auto")})})]}),a.jsxs("div",{className:"mt-2 flex items-start justify-between gap-4 roun
584ded-md border border-border bg-secondary/20 p-3",children:[a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(h3,{className:"mt-0.5 h-4 w-4 text-primary"}),a.jsxs("div",{children:[a.jsx(Ne,{htmlFor:"reminder",className:"cursor-pointer text-sm",children:"Set a reminder"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll flag this on this device when the date is close. Stays local — no email."})]})]}),a.jsx(sD,{id:"reminder",checked:!!r.reminder,onCheckedChange:E=>n({...r,reminder:E})})]})]})]})]}),a.jsxs("div",{className:"rounded-2xl border border-border/40 bg-secondary/15 p-5 md:p-6 space-y-4",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"mb-2 flex items-center justify-between text-xs",children:[a.jsxs("span",{className:"font-medium text-foreground",children:["Local storage — ",e.length," of 5 slots used"]}),a.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:5}).map((E,N)=>a.jsx("span",{className:Z("h-2 w-4 rounded-full transition-colors",N<e.length?e.length>=5?"bg-destructive":"bg-primary":"border border-border bg-transparent")},N))})]}),a.jsx(Gb,{value:e.length/5*100,className:Z("h-2",e.length>=5&&"[&>div]:bg-destructive")}
584),a.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"This MVP keeps your data on this device only and caps at 5 entries. Export to CSV before clearing."})]}),a.jsx("div",{className:"flex justify-end",children:a.jsx(G,{onClick:Q,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"Save conversation"})})]})]})]})}),a.jsx("section",{className:"container mx-auto px-6 pb-10 md:pb-12 max-w-5xl",children:a.jsxs(Vn,{children:[a.jsxs("div",{className:"mb-6 flex flex-wrap items-end justify-between gap-3",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"See it in action"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"A sample conversation paired with the summary and follow-up draft you'll get for your own entries."})]}),a.jsx(Ot,{variant:"outline",className:"border-primary/30 bg-primary/5 text-primary",children:"Example — not your data"})]}),a.jsxs("div",{className:"glass-card grid gap-0 md:grid-cols-2",children:[a.jsxs("div",{className:"border-b border-border p-6 md:border-b-0 md:border-r",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:[a.jsx(Sy,{className:"h-3.5 w-3.5"})," Sample entry"]}),a.jsx("h3",{className:"font-display text-lg font-bold text-foreground",children:"Aurora Climate Ventures"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Equity Investor · Climate VC"}),a.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[a.jsx(Ot,{variant:"outline",className:"border-primary/40 bg-primary/10 text-primary",children:"Diligence"}),a.jsx(Ot,{variant:"outline",className:"text-muted-foreground",children:"Sequencing Blocker"}),a.jsx(Ot,{variant:"outline",className:"text-muted-foreground",children:"High priority"})]}),a.jsxs("div",{className:"mt-4 space-y-3 text-sm",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Notes"}),a.jsx("p",{className:"mt-1 text-foreground",children:'"Partner is enthusiastic, but IC pushed back on financing path. Asked to see the debt term sheet alongside the equity round."'})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Key feedback"}),a.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:a.jsx("span",{className:"rounded-full bg-secondary/60 px-2 py-0.5 text-[10px] text-secondary-foreground",children:"need pilot data"})})]})]})]}),a.jsxs("div",{className:"p-6",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-primary",children:[a.jsx(Hh,{className:"h-3.5 w-3.5"})," Conversation summary & next step"]}),a.jsxs("div",{className:"space-y-4 text-sm leading-relaxed",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-foreground",children:"What they actually said"}),a.jsx("p",{className:"mt-1 text-muted-foreground",children:"Partner-level enthusiasm exists, but the IC won't underwrite execution risk on financing. They want to see the equity and debt move as one package, not in sequence."})]}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-foreground",children:"True objection"}),a.jsx("p",{className:"mt-1 text-muted-foreground",children:"It's not the team or the technology — it's confidence that the rest of the capital stack closes. Without a debt term sheet, equity feels like a single-leg bet."})]}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-foreground",children:"Recommended follow-up"}),a.jsx("p",{className:"mt-1 text-muted-foreground",children:"Send a one-page capital sequencing note alongside an indicative debt term sheet. Re-engage in 2 weeks once the lender's CPs are confirmed."})]})]})]})]})]})}),a.jsx("section",{className:"container mx-auto px-6 pb-10 md:pb-16 max-w-6xl",children:a.jsxs(Vn,{children:[a.jsxs("div",{className:"mb-4 flex flex-wrap items-end justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"Saved conversations"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"A live view of where each investor sits and what they are waiting on."})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(G,{variant:"outline",size:"sm",onClick:Ae,disabled:e.length===0,children:[a.jsx(n2,{className:"h-4 w-4"}),"Export CSV"]}),e.length>0&&a.jsxs(rX,{children:[a.jsx(nX,{asChild:!0,children:a.jsx(G,{variant:"ghost",size:"sm",className:"text-muted-foreground",children:"Clear all"})}),a.jsxs(mO,{children:[a.jsxs(pO,{children:[a.jsx(yO,{children:"Clear all saved conversations?"}),a.jsxs(xO,{children:["This permanently removes all ",e.length," entries from this device. This cannot be undone."]})]}),a.jsxs(gO,{children:[a.jsx(bO,{children:"Cancel"}),a.jsx(vO,{onClick:Je,children:"Clear all"})]})]})]})]})]}),a.jsx("p",{className:"mb-4 text-sm italic text-muted-foreground",children:Xee(e)}),e.length===0?a.jsx("div",{className:"rounded-2xl border border-border/50 bg-card/60 p-10 text-center text-muted-foreground shadow-sm",children:"No conversations saved yet. Log your first one above."}):a.jsx("div",{className:"space-y-4",children:e.map(E=>
584{var Ce;const N=c===E.id,_=qN(E),O=x[E.id],z=O==null?void 0:O.brief,W=v.has(E.id),L=g[E.id],X=W?"Drafting…":'Tap "Generate brief" below to fill this in.',we=z!=null&&z.nextStep?[z.nextStep,z.timing].filter(Boolean).join(" — "):X,Be=E.followUpDate?St(new Date(E.followUpDate),"MMM d, yyyy"):`Suggested ~${_.weeks}w (${St(mt(new Date,_.weeks*7),"MMM d")})`;return a.jsxs("div",{className:Z("rounded-2xl border bg-card/70 shadow-sm backdrop-blur-sm transition-all",N?"border-primary/40 shadow-md":"border-border/50 hover:border-primary/30",xe.has(E.id)&&"ring-1 ring-primary/30"),children:[a.jsxs("button",{type:"button",onClick:()=>d(N?null:E.id),className:"flex w-full items-start gap-4 p-5 text-left md:p-6","aria-expanded":N,children:[a.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-primary/10 font-display text-base font-semibold text-primary",children:(E.name||"?").trim().charAt(0).toUpperCase()}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[a.jsx("h3",{className:"font-display text-lg font-semibold text-foreground",children:E.name}),a.jsx("span",{className:"text-xs text-muted-foreground",children:E.investorType||E.type})]}),a.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[a.jsx(Ot,{variant:"outline",className:Z("text-[11px]",BN.has(E.stage)?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground"),children:E.stage||"—"}),a.jsx(Ot,{variant:"outline",className:"text-[11px] text-muted-foreground",children:E.blocker}),a.jsx(Ot,{variant:"secondary",className:Z("text-[11px]",an(E.priority)),children:E.priority}),(Ce=E.keyFeedback)==null?void 0:Ce.slice(0,3).map(Ie=>a.jsx("span",{className:"rounded-full bg-secondary/60 px-2 py-0.5 text-[10px] text-secondary-foreground",children:Ie},Ie))]}),E.memorableInsight&&!N&&a.jsxs("p",{className:"mt-3 line-clamp-2 text-sm italic text-muted-foreground",children:['"',E.memorableInsight,'"']})]}),a.jsxs("div",{className:"hidden shrink-0 flex-col items-end gap-1 text-right text-xs text-muted-foreground sm:flex",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(sc,{className:"h-3 w-3"}),Be]}),a.jsx(jl,{className:Z("h-4 w-4 text-muted-foreground transition-transform",N&&"rotate-180 text-primary")})]})]}),N&&a.jsxs("div",{className:"border-t border-border/50 px-5 pb-5 pt-4 md:px-6 md:pb-6",children:[a.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[E.memorableInsight&&a.jsxs("div",{className:"rounded-xl border border-primary/15 bg-primary/5 p-4 md:col-span-2",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-primary",children:"Memorable insight"}),a.jsxs("p",{className:"mt-1 text-sm italic text-foreground",children:['"',E.memorableInsight,'"']})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"What they need to believe"}),a.jsx("p",{className:"mt-1 text-sm text-foreground",children:(z==null?void 0:z.unlock)||X})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"Real concern"}),a.jsx("p",{className:"mt-1 text-sm text-foreground",children:(z==null?void 0:z.concern)||X})]}),a.jsxs("div",{className:"md:col-span-2",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"Follow-up angle"}),a.jsx("p",{className:"mt-1 text-sm text-foreground",children:(z==null?void 0:z.said)||X})]}),E.notes&&a.jsxs("div",{className:"md:col-span-2",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"Conversation note"}),a.jsx("p",{className:"mt-1 text-sm leading-relaxed text-foreground",children:E.notes})]}),a.jsxs("div",{className:"md:col-span-2 rounded-xl bg-secondary/30 p-4",children:[a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-primary",children:"Suggested next step"}),a.jsx("p",{className:"mt-1 text-sm text-foreground",children:we}),a.jsxs("p",{className:"mt-2 text-sm italic text-muted-foreground",children:['"',_.question,'"']})]}),(W||L)&&a.jsx("div",{className:"md:col-span-2 rounded-xl border border-primary/20 bg-primary/5 p-4",children:W?a.jsxs("div",{className:"flex items-center gap-2 py-1 text-sm text-muted-foreground",children:[a.jsx(Rs,{className:"h-3.5 w-3.5 animate-spin"})," Reading the conversation…"]}):a.jsx("p",{className:"text-sm text-destructive",children:L})})]}),a.jsxs("div",{className:"mt-5 flex flex-wrap items-center justify-end gap-2",children:[a.jsxs(G,{variant:"ghost",size:"sm",onClick:Ie=>{Ie.stopPropagation(),Rt(E,{force:!!O})},disabled:W,className:"text-primary hover:bg-primary/10",children:[W?a.jsx(Rs,{className:"h-3.5 w-3.5 animate-spin"}):a.jsx(Hh,{className:"h-3.5 w-3.5"}),O?"Refresh brief":"Generate brief"]}),a.jsxs(G,{variant:"outline",size:"sm",onClick:Ie=>{Ie.stopPropagation(),l(E)},className:"border-primary/30 text-primary hover:bg-primary/10",children:[a.jsx(Ra,{className:"h-3.5 w-3.5"}),"Draft email"]}),a.jsx(G,{variant:"ghost",size:"icon",onClick:Ie=>{Ie.stopPropagation(),De(E.id)},"aria-label":"Delete entry",className:"text-muted-foreground hover:text-destructive",children:a.jsx(c2,{className:"h-4 w-4"})})]})]})]},E.id)})})]})}),a.jsx("section",{className:"container mx-auto px-6 pb-16 md:pb-24 max-w-6xl",children:a.jsxs(Vn,{children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"Capital pipeline at a glance"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"Patterns from your saved conversations — refreshed automatically as you log entries."})]}),a.jsxs("div",{className:"grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-primary",children:[a.jsx(w3,{className:"h-4 w-4"}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Warm investors"})]}),a.jsx("p",{className:"font-display text-2xl font-bold text-foreground",children:Lt.warm.length}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"in Active or Diligence"}),Lt.warm.length>0?a.jsx("ul",{className:"mt-3 space-y-1 text-sm text-foreground",children:Lt.warm.map(E=>a.jsxs("li",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"truncate",children:E.name}),a.jsx("span",{className:"text-xs text-muted-foreground",children:E.stage})]},E.id))}):a.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"No warm investors yet — push a strong-fit c
584onversation into Diligence."})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-primary",children:[a.jsx(sc,{className:"h-4 w-4"}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Follow up this week"})]}),a.jsx("p",{className:"font-display text-2xl font-bold text-foreground",children:Lt.upcoming.length}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"due within 7 days"}),Lt.upcoming.length>0?a.jsx("ul",{className:"mt-3 space-y-1 text-sm text-foreground",children:Lt.upcoming.map(E=>a.jsxs("li",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"truncate",children:E.name}),a.jsx("span",{className:"text-xs text-muted-foreground",children:St(new Date(E.followUpDate),"MMM d")})]},E.id))}):a.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Nothing scheduled in the next 7 days."})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-primary",children:[a.jsx(F3,{className:"h-4 w-4"}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Most common objections"})]}),Lt.topObjections.length>0?a.jsx("ul",{className:"mt-2 space-y-2",children:Lt.topObjections.map(([E,N])=>a.jsxs("li",{className:"flex items-center justify-between gap-3 text-sm",children:[a.jsx("span",{className:"text-foreground",children:E}),a.jsx(Ot,{variant:"outline",className:"bg-secondary/40",children:N})]},E))}):a.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Tag key feedback on each entry to see patterns."})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-primary",children:[a.jsx(l2,{className:"h-4 w-4"}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Proof points needed"})]}),Lt.proofPoints.length>0?a.jsx("ul",{className:"mt-2 space-y-2 text-sm",children:Lt.proofPoints.map(([E,N])=>a.jsxs("li",{className:"flex items-start justify-between gap-3",children:[a.jsx("span",{className:"text-foreground",children:E}),a.jsx(Ot,{variant:"outline",className:"bg-secondary/40 shrink-0",children:N})]},E))}):a.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Add more entries to surface recurring proof points."})]}),a.jsxs("div",{className:"glass-card p-6 md:col-span-2 lg:col-span-2",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 text-primary",children:[a.jsx(d2,{className:"h-4 w-4"}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Investor types showing strongest pull"})]}),Lt.pull.length>0?a.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Lt.pull.map(([E,N])=>a.jsxs(Ot,{variant:"outline",className:"border-primary/30 bg-primary/5 text-foreground",children:[a.jsx(Od,{className:"mr-1 h-3 w-3 text-primary"})," ",E," · ",N]},E))}):a.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"No warm conversations yet — once you mark investors as Active or in Diligence, the strongest categories will show up here."})]})]})]})}),a.jsx(Oe,{flip:!0}),a.jsxs("section",{className:"container mx-auto px-6 py-16 md:py-24 max-w-6xl",children:[a.jsx(Vn,{children:a.jsxs("div",{className:"mb-10 text-center",children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"Blocker Diagnosis"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"Identify where and why capital conversations stall."})]})}),a.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:[{title:"Message Blocker",question:"Is the capital story landing clearly?",signs:"Investors ask basic questions about raise size, use of proceeds, offtake, revenue model, or why this round matters."},{title:"Process Blocker",question:"Are decision points and follow-ups being tracked?",signs:"Conversations happen, but next steps are vague, follow-ups are ad hoc, or no one owns the next action."},{title:"Audience Blocker",question:"Are the right capital providers being approached?",signs:"Investors are interested but structurally unable to lead because of stage, ticket size, mandate, geography, or capital type."},{title:"Sequencing Blocker",question:"Are equity, debt, insurer, and offtake parties waiting on each other?",signs:"Each party needs comfort from another party before moving.",tag:"Often the central blocker in project-based climate finance."}].map((E,N)=>a.jsx(Vn,{delay:N*.1,children:a.jsxs("div",{className:"glass-card flex h-full flex-col p-8 transition-all hover:border-primary/30",children:[a.jsx("h3",{className:"mb-4 font-display text-xl font-bold text-foreground",children:E.title}),a.jsx("div",{className:"mb-4 rounded-lg bg-secondary/30 p-4",children:a.jsx("p",{className:"text-sm font-medium text-foreground",children:E.question})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Signs"}),a.jsx("p",{className:"mt-1 text-sm leading-relaxed text-foreground",children:E.signs})]}),E.tag&&a.jsx("div",{className:"mt-6 border-t border-border pt-4",children:a.jsx(Ot,{variant:"outline",className:"bg-primary/5 text-primary border-primary/20",children:E.tag})})]})},N))})]}),a.jsx(Oe,{}),a.jsx("section",{className:"container mx-auto px-6 py-16 md:py-24 max-w-6xl",children:a.jsxs(Vn,{children:[a.jsxs("div",{className:"mb-10",children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"Example follow-up actions"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"Generic suggestions to unblock capital movement this week — not generated from your saved entries."})]}),a.jsx("div",{className:"glass-card overflow-hidden",children:a.jsxs(Bm,{children:[a.jsx(zm,{className:"bg-secondary/30",children:a.jsxs(Ui,{className:"hover:bg-transparent",children:[a.jsx(Ps,{className:"w-12 text-center",children:"Done"}),a.jsx(Ps,{className:"font-semibold w-1/2",children:"Action"}),a.jsx(Ps,{className:"font-semibold",children:"Why it matters"}),a.jsx(Ps,{className:"font-semibold w-[140px]",children:"Timing"})]})}),a.jsx(Vm,{children:[{action:"Send a capital sequencing note to warm equity investors",why:"Shows how this round unlocks debt",timing:"Next 48 hours"},{action:"Clarify debt conditions precedent with lenders",why:"Identifies what must be true for lender movement",timing:"This week"},{action:"Capture insurers' open questions",why:"Prevents insurer feedback from becoming a vague blocker",timing:"This week"},{action:"Segment investors by lead vs follow likelihood",why:"Avoids chasing investors who cannot lead",timing:"This week"},{action:"Pause weak-fit investors until after a key milestone",why:"Protects founder time and signal",timing:"Ongoing"},{action:"Prepare post-call recaps and schedule follow-ups",why:"Converts conversations into next steps",timing:"Immediately"}].map((E,N)=>{const _=s.has(N);return a.jsxs(Ui,{className:`group cursor-pointer transition-colors ${_?"bg-muted/30 opacity-75":""}`,onClick:()=>Te(N),children:[a.jsx(Os,{className:"text-center align-middle",children:a.jsx(ZO,{checked:_,onCheckedChange:()=>Te(N),className:"data-[state=checked]:bg-primary data-[state=checked]:border-primary"})}),a.jsx(Os,{className:`font-medium ${_?"line-through text-muted-foreground":""}`,children:E.action}),a.jsx(Os,{className:"text-muted-foreground text-sm",children:E.why}
584),a.jsx(Os,{className:"text-sm font-medium text-foreground",children:E.timing})]},N)})})]})})]})}),a.jsx(Oe,{flip:!0}),a.jsx("section",{className:"container mx-auto px-6 py-16 md:py-24 max-w-6xl",children:a.jsxs(Vn,{children:[a.jsxs("div",{className:"mb-10",children:[a.jsx("h2",{className:"font-display text-2xl font-bold text-foreground md:text-3xl",children:"Resources for founders"}),a.jsx("p",{className:"mt-2 text-muted-foreground",children:"Lightweight starting points you can adapt to your raise."})]}),a.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:[{icon:Jc,title:"Founder template (Notion / Docs)",desc:"Copy a pre-formatted template that mirrors the form's three sections, with a worked example entry.",cta:"Open template",onClick:()=>C(!0)},{icon:Ra,title:"Follow-up templates",desc:"Three tones of follow-up email — formal, friendly, and a data request — ready to copy and adapt.",cta:"Open guide",onClick:()=>{H("templates"),V(!0)}},{icon:t2,title:"Reading investor objections",desc:"Decode the five most common objections and what proof points actually move them.",cta:"Open guide",onClick:()=>{H("objections"),V(!0)}}].map((E,N)=>a.jsx(Vn,{delay:N*.08,children:a.jsxs("div",{className:"glass-card flex h-full flex-col p-6 transition-all hover:border-primary/30",children:[a.jsx("div",{className:"mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary",children:a.jsx(E.icon,{className:"h-5 w-5"})}),a.jsx("h3",{className:"font-display text-lg font-bold text-foreground",children:E.title}),a.jsx("p",{className:"mt-2 flex-1 text-sm text-muted-foreground",children:E.desc}),E.href?a.jsx(G,{asChild:!0,variant:"outline",className:"mt-4 w-fit",children:a.jsx("a",{href:E.href,target:"_blank",rel:"noopener noreferrer",children:E.cta})}):a.jsx(G,{variant:"outline",className:"mt-4 w-fit",onClick:E.onClick,children:E.cta})]})},N))})]})}),a.jsx("section",{className:"border-t border-border bg-gradient-to-b from-background to-secondary/20 py-20 md:py-32",children:a.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:a.jsxs(Vn,{children:[a.jsx("h2",{className:"font-display text-3xl font-bold text-foreground md:text-4xl",children:"From tracker to sprint"}),a.jsx("p",{className:"mt-6 text-lg leading-relaxed text-muted-foreground",children:"This tracker is the first layer of the Investor Conversion Sprint: mapping where capital conversations are stalling."}),a.jsx("p",{className:"mt-4 text-lg leading-relaxed text-muted-foreground",children:"The full two-week sprint turns this into a structured diagnostic, investor-fit review, blocker analysis, objection bank, follow-up system, and 30-day action plan."}),a.jsxs("div",{className:"mt-10 flex flex-wrap justify-center gap-3",children:[a.jsx(G,{asChild:!0,size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/20 text-base h-12 px-8",children:a.jsxs(se,{to:"/services/founder-funder-fit-sprint",children:["Discuss the Sprint ",a.jsx(qe,{className:"ml-2 h-5 w-5"})]})}),a.jsx(G,{asChild:!0,size:"lg",variant:"outline",className:"text-base h-12 px-8",children:a.jsx(se,{to:"/contact",children:"Contact us"})})]}),a.jsxs("div",{className:"mt-20 pt-8 border-t border-border/50 text-sm text-muted-foreground flex items-center justify-center gap-2",children:[a.jsx("span",{className:"font-display font-bold text-foreground tracking-tight text-base",children:"Seoi.Cure"}),a.jsx("span",{className:"h-1 w-1 rounded-full bg-primary/40"}),a.jsx("span",{children:"Climate finance, capital readiness, and founder-funder fit."})]})]})})}),a.jsx(Ki,{open:!!o,onOpenChange:E=>{E||(l(null),h("Formal investor update"))},children:a.jsxs(Ka,{className:"max-w-2xl",children:[a.jsxs(Yi,{children:[a.jsxs(Ya,{children:["Suggested follow-up note · ",u]}),a.jsx(Ja,{children:"A starting point based on this entry. Pick a tone and edit before sending — nothing is sent or stored beyond this session."})]}),o&&(()=>{const E=qN(o),N=St(mt(new Date,E.weeks*7),"PPP");return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ne,{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Tone"}),a.jsx(vD,{value:u,onValueChange:_=>h(_),className:"grid grid-cols-1 gap-2 sm:grid-cols-3",children:Kee.map(_=>a.jsxs(Ne,{htmlFor:`tone-${_}`,className:Z("flex cursor-pointer items-center gap-2 rounded-md border px-3 py-2 text-xs transition-colors",u===_?"border-primary bg-primary/5 text-foreground":"border-border text-muted-foreground hover:border-primary/40"),children:[a.jsx(bD,{id:`tone-${_}`,value:_,className:"h-3.5 w-3.5"}),_]},_))})]}),a.jsxs("div",{className:"rounded-lg border border-primary/20 bg-primary/5 p-4 space-y-2",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-primary",children:[a.jsx(sc,{className:"h-3.5 w-3.5"}),"Suggested next touchpoint"]}),a.jsxs("p",{className:"text-sm text-foreground",children:["Re-engage in ",a.jsxs("span",{className:"font-semibold",children:["~",E.weeks," week",E.weeks===1?"":"s"]})," (around ",N,") — ",E.rationale]}),a.jsxs("div",{className:"pt-1",children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Follow-up question to ask"}),a.jsxs("p",{className:"mt-1 text-sm italic text-foreground",children:['"',E.question,'"']})]})]}),(()=>{const _=x[o.id],O=v.has(o.id),z=g[o.id],W=Er(o,_,u);return a.jsxs(a.Fragment,{children:[O&&!_&&a.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border/60 bg-secondary/30 p-4 text-sm text-muted-foreground",children:[a.jsx(Rs,{className:"h-4 w-4 animate-spin"})," Drafting your follow-up…"]}),!O&&!_&&z&&a.jsx("div",{className:"rounded-md border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:z}),_&&a.jsx(As,{readOnly:!0,value:W||"We couldn't generate a draft for this tone — try Regenerate.",rows:14,className:"font-mono text-xs leading-relaxed"})]})})()]})})(),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsxs(G,{variant:"outline",onClick:()=>o&&Rt(o,{force:!0}),disabled:!o||v.has((o==null?void 0:o.id)||""),children:[o&&v.has(o.id)?a.jsx(Rs,{className:"h-4 w-4 animate-spin"}):a.jsx(M3,{className:"h-4 w-4"}),"Regenerate"]}),a.jsx(G,{variant:"outline",onClick:()=>{l(null),h("Formal investor update")},children:"Close"}),a.jsxs(G,{onClick:Ur,className:"bg-primary text-primary-foreground hover:bg-primary/90",disabled:!o||v.has((o==null?void 0:o.id)||""),children:[a.jsx(Wh,{className:"h-4 w-4"}),"Copy to clipboard"]})]})]})}),a.jsx($ee,{open:A,onOpenChange:V,initialTab:I}),a.jsx(Bee,{open:F,onOpenChange:J}),a.jsx(Mee,{open:q,onOpenChange:E=>{$(E),E||D(null)},onSaved:()=>{const E=R;D(null),E==null||E()}})]})};var tte={name:"@lovable.dev/cloud-auth-js",version:"1.1.2",description:"Lovable Cloud Auth JS",main:"./dist/index.cjs",module:"./dist/index.js",types:"./dist/index.d.ts",type:"module",files:["dist"],scripts:{build:"tsup src/index.ts --format cjs,esm --dts --outDir dist",dev:"tsup src/index.ts --format cjs,esm --dts --watch",test:"vitest run",typecheck:"tsgo --noEmit",prepublishOnly:"npm run clean && npm run build",clean:"rimraf dist"},keywords:["lovable","oauth","authentication"],license:"MIT",devDependencies:{"@types/node":"^22",jsdom:"^26",rimraf:"^5.0.0",tsup:"^7.2.0",typescript:"^5",vitest:"^4.1.0"}},rte="authorization_response",nte="/~oauth/initiate",ste=["https://oauth.lovable.app","https://lovable.dev"],ate="lovable://oauth-callback",ite="http://127.0.0.1/iframe-oauth/callback",ote=500,lte=12e4;function cte(e){let t;const r=new Promise(i=>{t=i}),n=i=>{if(!e.some(c=>
584i.origin===c))return;const l=i.data;!l||typeof l!="object"||l.type===rte&&t(l.response)},s=()=>{window.removeEventListener("message",n)};return window.addEventListener("message",n),{cleanup:s,messagePromise:r}}function dte(e){const t=window.screenX!==0||window.screenY!==0||!e,r=t?window.outerWidth*.5:window.screen.width*.5,n=t?window.outerHeight*.5:window.screen.height*.5,s=t?window.screenX+(window.outerWidth-r)/2:(window.screen.width-r)/2,i=t?window.screenY+(window.outerHeight-n)/2:(window.screen.height-n)/2;return{width:r,height:n,left:s,top:i}}function KN(e,t){return e.state!==t?{error:new Error("State is invalid")}:e.error?e.error==="legacy_flow"?{error:new Error("This flow is not supported in Preview mode. Please open the app in a new tab to sign in.")}:{error:new Error(e.error_description??"Sign in failed")}:!e.access_token||!e.refresh_token?{error:new Error("No tokens received")}:{tokens:{access_token:e.access_token,refresh_token:e.refresh_token},error:null}}function ute(){const e=navigator.userAgent;return!!(/iPhone|iPad|iPod|Android/i.test(e)||/Macintosh/i.test(e)&&navigator.maxTouchPoints>1)}function hte(){return typeof crypto<"u"&&crypto.getRandomValues?[...crypto.getRandomValues(new Uint8Array(16))].map(e=>e.toString(16).padStart(2,"0")).join(""):Math.random().toString(36).substring(2)+Date.now().toString(36)}function fte(e={}){const t=e.oauthBrokerUrl??nte,r=e.supportedOAuthOrigins??ste;async function n(s,i={}){let o=!1;try{o=window.self!==window.top}catch{o=!0}const l=navigator.userAgent,c=/LovableApp\//.test(l),d=!c&&/lovable/i.test(l),u=hte();let h=i.redirect_uri??window.location.origin;c&&o?h=ate:d&&o&&(h=ite);const f=new URLSearchParams({...i.extraParams,provider:s,redirect_uri:h,state:u});if(!o)return window.location.href=`${t}?${f.toString()}`,{error:null,redirected:!0};!c&&!d&&f.set("response_mode","web_message");const m=`${t}?${f.toString()}`,x=d?[...r,window.location.origin]:r,{messagePromise:y,cleanup:v}=cte(x);let b;if(ute())b=window.open(m,"_blank");else{const{width:k,height:j,left:S,top:T}=dte(o);b=window.open(m,"oauth",`width=${k},height=${j},left=${S},top=${T}`)}if(!b&&(c||d)){let k;const j=new Promise((S,T)=>{k=setTimeout(()=>{T(new Error("OAuth timed out waiting for response"))},lte)});try{const S=await Promise.race([y,j]);return KN(S,u)}catch(S){return{error:S instanceof Error?S:new Error(String(S))}}finally{k&&clearTimeout(k),v()}}if(!b)return v(),{error:new Error("Popup was blocked")};let g;const w=new Promise((k,j)=>{g=setInterval(()=>{b.closed&&(clearInterval(g),j(new Error("Sign in was cancelled")))},ote)});try{const k=await Promise.race([y,w]);return KN(k,u)}catch(k){return{error:k instanceof Error?k:new Error(String(k))}}finally{clearInterval(g),v(),b==null||b.close()}}return{signInWithOAuth:n}}typeof window<"u"&&(window.__lovable_cloud_auth_js_version=tte.version);function mte(e={}){return fte(e)}const pte=mte(),gte={auth:{signInWithOAuth:async(e,t)=>{const r=await pte.signInWithOAuth(e,{redirect_uri:t==null?void 0:t.redirect_uri,extraParams:{...t==null?void 0:t.extraParams}});if(r.redirected||r.error)return r;try{await Mt.auth.setSession(r.tokens)}catch(n){return{error:n instanceof Error?n:new Error(String(n))}}return r}}},yte=()=>{const e=mm(),{user:t,loading:r}=Ym(),[n,s]=p.useState(""),[i,o]=p.useState(""),[l,c]=p.useState(!1);p.useEffect(()=>{!r&&t&&e("/capital-conversation-tracker",{replace:!0})},[t,r,e]);const d=async()=>{c(!0);const{error:f}=await Mt.auth.signInWithPassword({email:n,password:i});if(c(!1),f)return Xe.error(f.message);Xe.success("Signed in"),e("/capital-conversation-tracker")},u=async()=>{c(!0);const{error:f}=await Mt.auth.signUp({email:n,password:i,options:{emailRedirectTo:window.location.origin+"/capital-conversation-tracker"}});if(c(!1),f)return Xe.error(f.message);Xe.success("Check your email to confirm your account.")},h=async()=>{c(!0);const f=await gte.auth.signInWithOAuth("google",{redirect_uri:window.location.origin+"/capital-conversation-tracker"});if(f.error)return c(!1),Xe.error(f.error.message??"Google sign-in failed");f.redirected||e("/capital-conversation-tracker")};return a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"Sign in",subtitle:"Save your investor conversations across devices, end-to-e
584nd private."}),a.jsx("section",{className:"mx-auto max-w-md px-6 py-12 md:py-16",children:a.jsxs(ne.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},className:"glass-card p-6 md:p-8",children:[a.jsxs(Yb,{defaultValue:"signin",className:"w-full",children:[a.jsxs(Pm,{className:"grid grid-cols-2 w-full",children:[a.jsx(ul,{value:"signin",children:"Sign in"}),a.jsx(ul,{value:"signup",children:"Create account"})]}),a.jsxs(hl,{value:"signin",className:"mt-5 space-y-4",children:[a.jsxs("div",{children:[a.jsx(Ne,{htmlFor:"email",children:"Email"}),a.jsx(ot,{id:"email",type:"email",autoComplete:"email",value:n,onChange:f=>s(f.target.value),className:"mt-1.5 h-11"})]}),a.jsxs("div",{children:[a.jsx(Ne,{htmlFor:"pw",children:"Password"}),a.jsx(ot,{id:"pw",type:"password",autoComplete:"current-password",value:i,onChange:f=>o(f.target.value),className:"mt-1.5 h-11"})]}),a.jsx(G,{onClick:d,disabled:l||!n||!i,className:"w-full h-11",children:l?a.jsx(Rs,{className:"h-4 w-4 animate-spin"}):"Sign in"})]}),a.jsxs(hl,{value:"signup",className:"mt-5 space-y-4",children:[a.jsxs("div",{children:[a.jsx(Ne,{htmlFor:"email2",children:"Email"}),a.jsx(ot,{id:"email2",type:"email",autoComplete:"email",value:n,onChange:f=>s(f.target.value),className:"mt-1.5 h-11"})]}),a.jsxs("div",{children:[a.jsx(Ne,{htmlFor:"pw2",children:"Password"}),a.jsx(ot,{id:"pw2",type:"password",autoComplete:"new-password",value:i,onChange:f=>o(f.target.value),className:"mt-1.5 h-11"}),a.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"At least 8 characters."})]}),a.jsx(G,{onClick:u,disabled:l||!n||i.length<8,className:"w-full h-11",children:l?a.jsx(Rs,{className:"h-4 w-4 animate-spin"}):"Create account"})]})]}),a.jsxs("div",{className:"my-5 flex items-center gap-3 text-xs text-muted-foreground",children:[a.jsx("div",{className:"h-px flex-1 bg-border"}),"or",a.jsx("div",{className:"h-px flex-1 bg-border"})]}),a.jsx(G,{variant:"outline",onClick:h,disabled:l,className:"w-full h-11",children:"Continue with Google"}),a.jsxs("p",{className:"mt-5 text-xs text-muted-foreground text-center",children:["By continuing you agree to our ",a.jsx(se,{to:"/terms",className:"underline",children:"Terms"})," and"," ",a.jsx(se,{to:"/privacy",className:"underline",children:"Privacy Policy"}),". Your investor data is encrypted at rest."]})]})})]})},MD=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:Z("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));MD.displayName="Card";const xte=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:Z("flex flex-col space-y-1.5 p-6",e),...t}));xte.displayName="CardHeader";const vte=p.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:Z("text-2xl font-semibold leading-none tracking-tight",e),...t}));vte.displayName="CardTitle";const bte=p.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:Z("text-sm text-muted-foreground",e),...t}));bte.displayName="CardDescription";const wte=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:Z("p-6 pt-0",e),...t}));wte.displayName="CardContent";const kte=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:Z("flex items-center p-6 pt-0",e),...t}));kte.displayName="CardFooter";const jte=1,Nte="96d74bfa-445a-4e1a-bedf-192c46f614e1",Ste="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",Cte="/__l5e/assets-v1/96d74bfa-445a-4e1a-bedf-192c46f614e1/ew-cta-wash-1600.webp",_te="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/96d74bfa-445a-4e1a-bedf-192c46f614e1/ew-cta-wash-1600.webp",Tte="ew-cta-wash-1600.webp",Ete=33552,Rte="image/webp",Ate="2026-07-23T12:57:40Z",Pte={version:jte,asset_id:Nte,project_id:Ste,url:Cte,r2_key:_te,original_filename:Tte,size:Ete,content_type:Rte,created_at:Ate},Ote=1,Dte="df3e0eca-3a53-4352-822f-0f16e2e0b728",Ite="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",Mte="/__l5e/assets-v1/df3e0eca-3a53-4352-822f-0f16e2e0b728/lydia-chen.jpg",Lte="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/df3e0eca-3a53-4352-822f-0f16e2e0b728/lydia-chen.jpg",Fte="lydia-chen.jpg",$te=475223,Bte="image/jpeg",zte="2026-07-28T11:22:39Z",Vte={version:Ote,asset_id:Dte,project_id:Ite,url:Mte,r2_key:Lte,original_filename:Fte,size:$te,content_type:Bte,created_at:zte},Ute=1,Wte="396dc710-0b70-494e-b3cf-f4a89711c10c",Hte="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",qte="/__l5e/assets-v1/396dc710-0b70-494e-b3cf-f4a89711c10c/ew-3d-1.webp",Gte="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/396dc710-0b70-494e-b3cf-f4a89711c10c/ew-3d-1.webp",Kte="ew-3d-1.webp",Yte=76772,Jte="image/webp",Zte="2026-08-13T08:58:05Z",Xte={version:Ute,asset_id:Wte,project_id:Hte,url:qte,r2_key:Gte,original_filename:Kte,size:Yte,content_type:Jte,created_at:Zte},Qte=1,ere="8f3f8b53-75ea-4e1a-bef8-90ffb9d84e0a",tre="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",rre="/__l5e/assets-v1/8f3f8b53-75ea-4e1a-bef8-90ffb9d84e0a/ew-3d-2.webp",nre="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/8f3f8b53-75ea-4e1a-bef8-90ffb9d84e0a/ew-3d-2.webp",sre="ew-3d-2.webp",are=89084,ire="image/webp",ore="2026-08-13T08:58:12Z",lre={version:Qte,asset_id:ere,project_id:tre,url:rre,r2_key:nre,original_filename:sre,size:are,content_type:ire,created_at:ore},cre=1,dre="eb397bdc-6ad6-48b2-92d7-5944c0146817",ure="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",hre="/__l5e/assets-v1/eb397bdc-6ad6-48b2-92d7-5944c0146817/ew-3d-3.webp",fre="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/eb397bdc-6ad6-48b2-92d7-5944c0146817/ew-3d-3.webp",mre="ew-3d-3.webp",pre=81194,gre="image/webp",yre="2026-08-13T08:58:22Z",xre={version:cre,asset_id:dre,project_id:ure,url:hre,r2_key:fre,original_filename:mre,size:pre,content_type:gre,created_at:yre},vre=1,bre="d58c653a-a270-4d10-81a2-254db51bd679",wre="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",kre="/__l5e/assets-v1/d58c653a-a270-4d10-81a2-254db51bd679/ew-3d-4.webp",jre="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/d58c653a-a270-4d10-81a2-254db51bd679/ew-3d-4.webp",Nre="ew-3d-4.webp",Sre=72246,Cre="image/webp",_re="2026-08-13T08:58:29Z",Tre={version:vre,asset_id:bre,project_id:wre,url:kre,r2_key:jre,original_filename:Nre,size:Sre,content_type:Cre,created_at:_re},Ere=1,Rre="54c9ec99-22b7-4a77-a7d0-378c36f86a43",Are="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",Pre="/__l5e/assets-v1/54c9ec99-22b7-4a77-a7d0-378c36f86a43/ew-3d-5.webp",Ore="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/54c9ec99-22b7-4a77-a7d0-378c36f86a43/ew-3d-5.webp",Dre="ew-3d-5.webp",Ire=80322,Mre="image/webp",Lre="2026-08-13T08:58:39Z",Fre={version:Ere,asset_id:Rre,project_id:Are,url:Pre,r2_key:Ore,original_filename:Dre,size:Ire,content_type:Mre,created_at:Lre},$re=1,Bre="f7a4ae13-4aba-4f2e-8269-22abe2e032c7",zre="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",Vre="/__l5e/assets-v1/f7a4ae13-4aba-4f2e-8269-22abe2e032c7/greater-bay-area-corridor-map-final.webp",Ure="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/f7a4ae13-4aba-4f2e-8269-22abe2e032c7/greater-bay-area-corridor-map-final.webp",Wre="greater-bay-area-corridor-map-final.webp",Hre=107594,qre="image/webp",Gre="2026-08-24T08:13:57Z",Kre={ver
584sion:$re,asset_id:Bre,project_id:zre,url:Vre,r2_key:Ure,original_filename:Wre,size:Hre,content_type:qre,created_at:Gre},Yre=1,Jre="482c9e40-2a38-45a1-97a9-ac2fac57c0aa",Zre="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",Xre="/__l5e/assets-v1/482c9e40-2a38-45a1-97a9-ac2fac57c0aa/east-meets-west-hero-1920.webp",Qre="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/482c9e40-2a38-45a1-97a9-ac2fac57c0aa/east-meets-west-hero-1920.webp",ene="east-meets-west-hero-1920.webp",tne=247764,rne="image/webp",nne="2026-07-23T11:02:34Z",sne={version:Yre,asset_id:Jre,project_id:Zre,url:Xre,r2_key:Qre,original_filename:ene,size:tne,content_type:rne,created_at:nne},ane=1,ine="9096460e-e56f-4f25-8d74-192bddb154d0",one="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",lne="/__l5e/assets-v1/9096460e-e56f-4f25-8d74-192bddb154d0/east-meets-west-hero-1440.webp",cne="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/9096460e-e56f-4f25-8d74-192bddb154d0/east-meets-west-hero-1440.webp",dne="east-meets-west-hero-1440.webp",une=169566,hne="image/webp",fne="2026-07-23T11:02:38Z",YN={version:ane,asset_id:ine,project_id:one,url:lne,r2_key:cne,original_filename:dne,size:une,content_type:hne,created_at:fne},mne=1,pne="ebb7859f-0a4f-433a-a276-1c65b4dbf82a",gne="1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6",yne="/__l5e/assets-v1/ebb7859f-0a4f-433a-a276-1c65b4dbf82a/east-meets-west-hero-960.webp",xne="a/v1/1dab9e73-89cf-4854-9ccb-0d8a0fcd6ba6/ebb7859f-0a4f-433a-a276-1c65b4dbf82a/east-meets-west-hero-960.webp",vne="east-meets-west-hero-960.webp",bne=86426,wne="image/webp",kne="2026-07-23T11:02:40Z",jne={version:mne,asset_id:pne,project_id:gne,url:yne,r2_key:xne,original_filename:vne,size:bne,content_type:wne,created_at:kne},Nne=["17–23 Jan 2027","5 working days","5–10 people"],JN=[{title:"Humanoid robotics & embodied AI",url:Xte.url,alt:"Ink-wash illustration of a humanoid robot standing beside a robotic arm on a workshop bench."},{title:"EV & automotive manufacturing",url:lre.url,alt:"Ink-wash illustration of an electric vehicle body-in-white on an automotive assembly line."},{title:"Highly automated production",url:xre.url,alt:"Ink-wash illustration of multiple robotic arms working over an automated production line."},{title:"Components & equipment",url:Tre.url,alt:"Ink-wash illustration of a precision machining head working on a metal component fixture."},{title:"AI across physical industry",url:Fre.url,alt:"Ink-wash illustration of machine-vision cameras and screens monitoring electronics production."}],Sne=[{label:"Before",body:"A 1:1 conversation to shape your question, followed by a short briefing on the people, places and context."},{label:"On the ground",body:"Visits and practitioner conversations, with facilitation, appropriate language support and time to compare observations."},{label:"After",body:"A concise record of what changed, useful next steps and a 30-day check-in."}],Cne=[{label:"Build",body:"Components, suppliers and rapid iteration that turn ideas into working hardware."},{label:"Scale",body:"Automation, quality, cost and the people behind repeatable production."},{label:"Deploy",body:"How technology works in use, beyond demonstrations, and what may translate to other markets."}],_ne=[{zh:"天时",en:"Timing",body:"Five working days between lighter arrival and departure days."},{zh:"地利",en:"Place",body:"Hong Kong → Shenzhen → selected GBA fieldwork → Guangzhou."},{zh:"人和",en:"People",body:"Founders, engineers, operators, researchers and local industry practitioners around product, production, partnerships and deployment."}],Tne=[{date:"Sun 17 Jan",displayLocation:"Hong Kong",title:"Arrival and welcome",summary:"Welcome dinner · GBA context · Live question",detail:"An opening map-and-photo conversation introduces Shenzhen and the wider Greater Bay Area. You do not need a fully formed question; the welcome is a chance to start sharpening it with the group."},{date:"Mon 18 Jan",displayLocation:"Hong Kong → Shenzhen",title:"Meet Shenzhen",summary:"High-speed rail · Local lunch · City + technology",detail:"A gentle introduction to Shenzhen through technology, city life and local food, rather than a promised first company visit. The evening leaves room for optional exploration or rest."},{date:"Tue 19 Jan",displayLocation:"Shenzhen",title:"Robotics and product building",summary:"Robotics · Automation · Product development",detail:"Planned encounters focus on robotics, automation and how products move towards real use. A plant-based tasting dinner is proposed, with dietary requirements discussed in advance."},{date:"Wed 20 Jan",displayLocation:"Shenzhen",title:"Batteries, suppliers and scale",summary:"Batteries · Suppliers · Manufacturing + scale",detail:"Explore batteries, supplier qual
584ification, components and what makes production repeatable. We are shaping a small evening gathering with local practitioners; the guest line-up is being developed."},{date:"Thu 21 Jan",displayLocation:"Shenzhen / GBA → Guangzhou",title:"Manufacturing and research-to-company",summary:"Manufacturing / research-to-company · Onward to Guangzhou",detail:"The selected encounter will determine the route and timing of the onward journey to Guangzhou. A Cantonese evening is planned after arrival."},{date:"Fri 22 Jan",displayLocation:"Guangzhou / Nansha",title:"Mobility and deployment",summary:"Mobility · Deployment · Guangzhou gathering",detail:"Proposed mobility experiences and practitioner conversations examine technology in use, with a complementary industry-focused visit where relevant. Factory-floor or customer-operating-site access is not guaranteed."},{date:"Sat 23 Jan",displayLocation:"Guangzhou",title:"Dim sum and next steps",summary:"Dim sum · Wrap-up · Optional cultural time",detail:"The wrap-up brings together observations and useful next steps. Cultural time is optional, and departure arrangements are agreed in advance rather than tied to a fixed published transfer window."}],Ene=[{title:"Apply",body:"Share your professional context and what you hope to understand. Applying is not a booking or payment."},{title:"Review",body:"Each application is considered for fit with the first cohort."},{title:"Fit conversation",body:"If there’s a strong fit, we’ll discuss your context and start sharpening a useful question."},{title:"Priority place",body:"If invited, a refundable US$1,000 deposit may be requested to hold a priority place, subject to the final written scope and booking terms."}],Rne=["Yes, subject to the final written scope and terms","Possibly; I would need to review the final scope and terms","No"],Ane=["Yes","Possibly, subject to approval or final arrangements","Not these dates, but interested in a later cohort","No"],Pne=["Personal funds","Employer, fund or institution — budget available in principle","Employer, fund or institution — internal approval still needed","I would need sponsorship","Unsure"],One=["LinkedIn","WeChat","Email or newsletter","Friend or colleague","Event or community","Search","Other"],LD=["Friend or colleague","Event or community","Other"],Mx=40,Df=800,Lx=40,If=1200;function Dne(e){const t=(e??"").trim();if(!t)return{ok:!1,value:""};const r=/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)?t:`https://${t}`;let n;try{n=new URL(r)}catch{return{ok:!1,value:""}}if(n.protocol!=="http:"&&n.protocol!=="https:")return{ok:!1,value:""};if(n.username||n.password)return{ok:!1,value:""};const s=n.hostname.toLowerCase().replace(/\.$/,"");return!s||!s.includes(".")?{ok:!1,value:""}:(n.hostname=s,n.hash="",{ok:!0,value:n.toString()})}const ZN="Enter a valid public profile URL starting with http:// or https://",Ine=Zb({name:Bt().trim().min(1,"Name is required").max(200),email:Bt().trim().email("Valid work email required").max(320),organization:Bt().trim().min(1,"Organisation is required").max(200),role:Bt().trim().min(1,"Role is required").max(200),linkedin_url:Bt().trim().min(1,ZN).max(500,"Profile URL is too long").transform((e,t)=>{const r=Dne(e);return r.ok?r.value:(t.addIssue({code:Y.custom,message:ZN}),eY)}),professional_context:Bt().trim().min(Mx,`Please write at least ${Mx} characters`).max(Df,`Please keep this under ${Df} characters`),why_asia:Bt().trim().min(Lx,`Please write at least ${Lx} characters`).max(If,`Please keep this under ${If} characters`),january_2027:Bt().trim().min(1,"Please select one").max(120),funding:Bt().trim().min(1,"Please select one").max(120),deposit_intent:Bt().trim().min(1,"Please select one").max(120),how_heard:Bt().trim().min(1,"Please select one").max(120),how_heard_detail:Bt().trim().max(500,"Please keep this under 500 characters").optional()}).superRefine((e,t)=>{LD.includes(e.how_heard)&&!(e.how_heard_detail??"").trim()&&t.addIssue({code:Y.custom,path:["how_heard_detail"],message:"Please add a short detail"})}),Mne=()=>{const{toast:e}
584=Xf(),t=!!eR(),[r,n]=p.useState(!1),[s,i]=p.useState(!1),[o,l]=p.useState({}),[c,d]=p.useState(""),[u,h]=p.useState(0),[f,m]=p.useState(0),[x,y]=p.useState(0),v=p.useRef(null),b=p.useRef(null),g=p.useRef(null),w=LD.includes(c),k=(C,A)=>[o[C]?`err-${C}`:null,A].filter(Boolean).join(" ")||void 0;p.useEffect(()=>{var A;if(!u)return;const C=(A=g.current)==null?void 0:A.querySelector('[aria-invalid="true"]');C==null||C.focus()},[u]);const j=(C=0,A=12)=>t?{}:{initial:{opacity:0,y:A},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.45,ease:"easeOut",delay:C}},S=()=>()=>{const C=document.getElementById("interest");C&&C.scrollIntoView({behavior:t?"auto":"smooth",block:"start"}),window.setTimeout(()=>{var A;return(A=b.current)==null?void 0:A.focus({preventScroll:!0})},t?0:700)},T=()=>{const C=document.getElementById("participation");C&&C.scrollIntoView({behavior:t?"auto":"smooth",block:"start"}),window.setTimeout(()=>{var A;return(A=v.current)==null?void 0:A.focus({preventScroll:!0})},t?0:700)},P=async C=>{C.preventDefault(),l({});const A=new FormData(C.currentTarget);if(A.get("website_url")){i(!0);return}const V=Object.fromEntries(A.entries()),I=Ine.safeParse(V),H=A.get("consent_contact")==="on";if(!I.success||!H){const D={};I.success||I.error.issues.forEach(U=>{U.path[0]&&(D[String(U.path[0])]=U.message)}),H||(D.consent_contact="Please confirm we may contact you about East Meets West."),l(D),h(U=>U+1),e({title:"Please check the form",description:"A few fields need attention.",variant:"destructive"});return}const F=I.data;n(!0);const J=new URLSearchParams(window.location.search),q={landing_url:window.location.href,referrer:document.referrer||null,utm_source:J.get("utm_source"),utm_medium:J.get("utm_medium"),utm_campaign:J.get("utm_campaign"),utm_content:J.get("utm_content")},{data:$,error:R}=await Mt.functions.invoke("east-west-interest",{body:{...F,linkedin_url:F.linkedin_url,professional_context:F.professional_context,how_heard:F.how_heard,how_heard_detail:F.how_heard_detail||"",consent_contact:!0,newsletter_consent:!1,source:q}});if(n(!1),R||!($!=null&&$.success)){e({title:"We couldn't send that",description:"Nothing was lost — please try again in a moment, or email [email protected].",variant:"destructive"});return}i(!0)};return a.jsxs("div",{className:"bg-background text-foreground",children:[a.jsx("section",{className:"relative overflow-hidden border-b border-border/60",children:a.jsxs("div",{className:"container max-w-7xl grid lg:grid-cols-[minmax(0,1fr)_1.15fr] gap-8 lg:gap-4 items-center py-14 md:py-20 lg:py-24",children:[a.jsxs("div",{className:"relative z-10 max-w-xl",children:[a.jsx("p",{className:"mb-5 text-xs uppercase tracking-[0.3em] text-primary",children:"East Meets West"}),a.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-light leading-[1.05] text-foreground mb-4",children:"China in 3D"}),a.jsx("div",{className:"h-px w-16 bg-primary/40 mb-5","aria-hidden":"true"}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed mb-4 max-w-md",children:"A small-group industrial immersion through Hong Kong, Shenzhen and Guangzhou, designed for investors and operators who want to understand how physical technology gets built, scaled and deployed."}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed mb-8 max-w-md",children:"Hong Kong → Shenzhen → Guangzhou · investor-led, operator-rich"}),a.jsxs(G,{size:"lg",onClick:T,className:"group shadow-md shadow-primary/20 transition-colors",children:["Express interest ",a.jsx(qe,{className:"ml-1 h-4 w-4 transition-transform group-hover:translate-x-0.5"})]}),a.jsx("p",{className:"mt-4 text-xs text-muted-foreground",children:"Applications are reviewed personally. Applying does not require payment."})]}),a.jsx(ne.div,{initial:t?!1:{opacity:.92,scale:1.015},animate:t?void 0:{opacity:1,scale:1},transition:{duration:1.4,ease:"easeOut"},className:"relative lg:-mr-8",children:a.jsxs("picture",{children:[a.jsx("source",{type:"image/webp",srcSet:`${jne.url} 960w, ${YN.url} 1440w, ${sne.url} 1920w`,sizes:"(min-width: 1536px) 730px, (min-width: 1024px) 54vw, 100vw"}),a.jsx("img",{src:YN.url,alt:"Ink-wash illustration of a Chinese skyline, high-speed rail and advanced manufacturing line.",loading:"eager",fetchPriority:"high",width:1440,height:810,className:"w-full h-auto object-cover aspect-[16/9] lg:aspect-auto select-none"})]})})]})}),a.jsx("section",{className:"bg-background",children:a.jsx("div",{className:"container max-w-6xl -mt-2 md:-mt-8 pb-10 md:pb-14",children:a.jsxs(ne.div,{className:"rounded-2xl border border-border/60 bg-secondary/30 px-6 py-6 md:px-10 md:py-8",initial:t?!1:{opacity:.85,y:8},whileInView:t?void 0:{opacity:1,y:0},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.4,ease:"easeOut"},children:[a.jsx("ul",{className:"flex flex-wrap items-center gap-y-2 text-[13px] md:text-sm uppercase tracking-[0.16em] text-foreground",children:Nne.map((C,A)=>a.jsxs("li",{className:"flex items-center",children:[A>0&&a.jsx("span",{className:"text-border px-3 md:px-4 select-none","aria-hidden":"true",children:"|"}),a.jsx("span",{children:C})]},C))}),a.jsx("p",{className:"mt-3 text-xs text-muted-foreground leading-relaxed max-w-3xl",children:"International flights excluded. Final inclusions and booking arrangements will be confirmed in writing before commitment."})]})})}),a.jsx("section",{className:"border-b border-border/60 bg-background",children:a.jsx("div",{className:"container max-w-6xl py-8 md:py-10",children:a.jsxs("div",{className:"grid gap-6 md:grid-cols-[minmax(0,0.35fr)_minmax(0,0.65fr)] md:items-center",children:[a.jsxs(ne.div,{...j(),children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-light leading-tight text-foreground mb-2",children:"Why I’m building China in 3D"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"A two-minute note from Lydia."})]}),a.jsx(ne.div,{...j(.1),children:a.jsx(pd,{videoId:"hn4hHPqWWKY",title:"Why Lydia Chen is building China in 3D"})})]})})}),a.jsx("section",{className:"border-b border-border/60 bg-secondary/15",children:a.jsxs("div",{className:"container max-w-6xl py-14 md:py-20",children:[a.jsxs(ne.div,{...j(),children:[a.jsx("p",{className:"text-[11px] uppercase tracking-[0.28em] text-primary mb-3",children:"Build → Scale → Deploy"}),a.jsx("h2",{className:"font-display text-3xl md:text-4xl font-light leading-tight text-foreground mb-4",children:"What China in 3D means"}),a.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-3xl mb-10",children:"Follow how physical technology moves from components and prototypes into production and everyday use."})]}),a.jsx("div",{className:"grid gap-6 md:grid-cols-3 md:gap-x-8 mb-12",children:Cne.map((C,A)=>a.jsxs(ne.div,{...j(.1+A*.1,10),children:[a.jsx("h3",{className:"font-display text-2xl md:text-[24px] font-medium text-foreground mb-2 leading-tight",children:C.label}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:C.body}
584)]},C.label))}),a.jsx("div",{className:"mx-auto max-w-[896px]",children:a.jsx("ul",{className:"grid grid-cols-2 gap-3 md:grid-cols-5 md:gap-4",children:JN.map((C,A)=>a.jsx(ne.li,{initial:t?!1:{opacity:0,y:10},whileInView:t?void 0:{opacity:1,y:0},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.4,ease:"easeOut",delay:t?0:A*.08},className:`${A===JN.length-1?"col-span-2 md:col-span-1":""} flex justify-center`,children:a.jsxs("figure",{className:"w-full max-w-[160px] md:max-w-none",children:[a.jsx("div",{className:"h-[220px] md:h-auto md:w-full",children:a.jsx("img",{src:C.url,alt:C.alt,loading:"lazy",decoding:"async",width:347,height:879,className:"h-full w-full object-contain select-none mix-blend-multiply dark:mix-blend-normal brightness-[0.98] contrast-[1.12] saturate-[1.06] hue-rotate-[3deg]"})}),a.jsx("figcaption",{className:"mt-2 text-sm text-muted-foreground leading-snug text-center font-sans normal-case tracking-normal",children:C.title})]})},C.title))})}),a.jsx(ne.p,{className:"max-w-3xl text-sm md:text-base text-muted-foreground leading-relaxed mt-10",...j(.1),children:"Connected industrial themes, not confirmed visits. Exact companies may vary; the industrial themes do not."})]})}),a.jsx("section",{className:"border-b border-border/60 bg-background",children:a.jsxs("div",{className:"container max-w-5xl py-10 md:py-14",children:[a.jsxs(ne.div,{...j(),children:[a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-light leading-tight text-foreground mb-4",children:"One shared industrial journey. One live question each."}),a.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-3xl",children:"You might be assessing an investment, developing a product or exploring a partnership. Bring the question behind that work. We help you prepare for the conversations, make sense of what you see and identify what is worth following up afterwards."})]}),a.jsx("ol",{className:"mt-8 grid gap-y-5 md:grid-cols-3 md:gap-x-8",children:Sne.map((C,A)=>a.jsxs(ne.li,{initial:t?!1:{opacity:0,y:10},whileInView:t?void 0:{opacity:1,y:0},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.35,ease:"easeOut",delay:.1+A*.1},className:"flex items-start gap-3",children:[a.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 rounded-full bg-primary/60 flex-shrink-0","aria-hidden":"true"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] uppercase tracking-[0.24em] text-primary mb-1",children:C.label}),a.jsx("p",{className:"text-base text-foreground leading-snug",children:C.body})]})]},C.label))})]})}),a.jsx("section",{className:"border-b border-border/60 bg-secondary/20",children:a.jsx("div",{className:"container max-w-5xl py-8 md:py-10",children:a.jsx("div",{className:"grid gap-6 sm:grid-cols-3",children:_ne.map((C,A)=>a.jsxs(ne.div,{...j(.1+A*.08,8),children:[a.jsxs("p",{className:"font-display text-base md:text-lg text-foreground mb-1",children:[a.jsx("span",{lang:"zh",className:"tracking-[0.1em]",children:C.zh}),a.jsxs("span",{className:"text-muted-foreground",children:[" · ",C.en]})]}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:C.body})]},C.zh))})})}),a.jsx("section",{className:"border-b border-border/60 bg-gradient-to-b from-background via-secondary/10 to-secondary/25",children:a.jsxs("div",{className:"container max-w-6xl py-20 md:py-24",children:[a.jsxs(ne.div,{...j(),children:[a.jsx("p",{className:"text-[11px] uppercase tracking-[0.28em] text-primary mb-4",children:"An indicative week"}),a.jsx("h2",{className:"font-display text-3xl md:text-4xl font-light leading-tight mb-5 text-foreground",children:"Hong Kong → Shenzhen → Guangzhou"}),a.jsx("p",{className:"text-muted-foreground text-sm uppercase tracking-[0.2em] mb-4",children:"Seven days. Five working days. Room to explore."}),a.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-3xl",children:"A proposed sequence combining industrial visits and product experiences with practitioner conversations, local food and enough space to eat, travel, reflect and enjoy where you are. We are also shaping two small hosted gatherings in Shenzhen and Guangzhou, with local guest line-ups being developed."}),a.jsxs("div",{className:"mt-8 md:mt-10 w-full max-w-4xl mx-auto",children:[a.jsx("img",{src:Kre.url,alt:"Schematic map of the Greater Bay Area corridor around the Pearl River Estuary: Guangzhou at the head of the river, Shenzhen to the east and Hong Kong at the mouth, linked by a single route line, with Macao marked quietly for orientation and a shaded, dashed-outline band across the inner bay marking the flexible zone for selected industrial fieldwork.",width:1672,height:941,loading:"lazy",decoding:"async",className:"w-full h-auto object-contain brightness-[0.99] contrast-[1.06] saturate-[1.04] hue-rotate-[2deg]"}),a.jsx("p",{className:"mt-4 text-center font-display italic text-muted-foreground text-base md:text-lg leading-snug",children:"Connected industries. A more complete picture."})]})]}),a.jsx("ol",{className:"mt-12 grid items-start gap-4 md:grid-cols-12 md:gap-5 xl:gap-6",children:T
584ne.map((C,A)=>a.jsxs(ne.li,{initial:t?!1:{opacity:0,y:10},whileInView:t?void 0:{opacity:1,y:0},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.4,ease:"easeOut",delay:t?0:A*.06},className:`self-start rounded-lg border border-border/70 p-5 md:col-span-6 ${A<4?"xl:col-span-3":"xl:col-span-4"} ${A===0||A===6?"bg-secondary/20":"bg-background/70"}`,children:[a.jsxs("div",{className:"mb-4 flex items-start gap-3",children:[a.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold tabular-nums text-primary",children:A+1}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-primary leading-snug",children:C.date}),a.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground leading-snug mt-0.5",children:C.displayLocation})]})]}),a.jsx("h3",{className:"font-display text-xl font-medium text-foreground leading-snug",children:C.title}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:C.summary}),a.jsxs("details",{className:"group mt-4 border-t border-border/50 pt-2",children:[a.jsxs("summary",{className:"min-h-11 cursor-pointer py-3 text-sm font-medium text-primary outline-none marker:text-primary focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:["More about this day",a.jsxs("span",{className:"sr-only",children:[", Day ",A+1]})]}),a.jsx("p",{className:"pb-2 text-base text-muted-foreground leading-relaxed",children:C.detail})]})]},C.title))}),a.jsx("p",{className:"mt-12 md:mt-14 max-w-3xl text-sm md:text-base italic text-muted-foreground leading-relaxed border-t border-border/50 pt-6",children:"The programme is indicative; individual encounters remain subject to confirmation and mutual fit. Seoi.Cure does not sell access to any company, institution or individual."}),a.jsx("p",{className:"mt-6",children:a.jsxs("a",{href:"/contact?subject=East-West%20Delegation",className:"group inline-flex items-center gap-1 text-sm font-medium text-primary hover:text-accent transition-colors",children:["Ask for the latest private working agenda"," ",a.jsx(qe,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})})]})}),a.jsx("section",{className:"border-b border-border/60",children:a.jsxs("div",{className:"container max-w-6xl py-14 md:py-16",children:[a.jsxs(ne.div,{className:"grid gap-10 md:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)] items-center",initial:t?!1:{opacity:0,scale:1.01},whileInView:t?void 0:{opacity:1,scale:1},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.6,ease:"easeOut"},children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsx("figure",{className:"rounded-xl overflow-hidden border border-border/60 bg-secondary/30",children:a.jsx("img",{src:"/images/crbc/lcaw-erw.jpg",alt:"Carbon Removal Breakfast Club gathering in London during London Climate Action Week.",loading:"lazy",className:"w-full h-56 md:h-72 object-cover"})}),a.jsx("figure",{className:"rounded-xl overflow-hidden border border-border/60 bg-secondary/30",children:a.jsx("img",{src:"/images/crbc/canada-table.jpg",alt:"Carbon Removal Breakfast Club table gathering in Toronto, Canada.",loading:"lazy",className:"w-full h-56 md:h-72 object-cover"})})]}),a.jsxs("div",{children:[a.jsxs("h2",{className:"font-display text-2xl md:text-3xl font-light leading-snug mb-4",children:["Small rooms.",a.jsx("br",{}),"Candid conversation.",a.jsx("br",{}),"Careful curation."]}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-5",children:"These are CRBC rooms I’ve convened in London and Toronto. Different subject, same instinct: keep the group small, choose people carefully and make space for conversations that actually go somewhere."}),a.jsxs("a",{href:"/carbon-removal-breakfast-club",className:"group inline-flex items-center gap-1 text-sm font-medium text-primary hover:text-accent transition-colors",children:["Carbon Removal Breakfast Club"," ",a.jsx(qe,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]}),a.jsxs(ne.div,{className:"mt-10 md:mt-12 flex flex-col md:flex-row gap-5 md:gap-6 md:items-start border-t border-border/50 pt-8",...j(),children:[a.jsx("div",{className:"flex-shrink-0 w-16 h-16 md:w-20 md:h-20 rounded-full overflow-hidden border border-primary/30 bg-secondary/40",children:a.jsx("img",{src:Vte.url,alt:"Lydia Chen, founder of Seoi.Cure CDR.",loading:"lazy",width:224,height:224,className:"w-full h-full object-cover object-[50%_20%] select-none"})}),a.jsxs("div",{className:"max-w-2xl",children:[a.jsx("p",{className:"text-[11px] uppercase tracking-[0.24em] text-primary mb-1",children:"Convened by Lydia Chen"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:"Guangzhou-raised, later Hong Kong-based and now in London; ten years in structured finance before founding Seoi.Cure. I bring local relationships and Chinese-language context together with an overseas professional lens."}),a.jsx("p",{className:"text-xs italic text-muted-foreground",children:"East Meets West is a new programme. Encounters are selected for relevance, not sponsorship."})]})]})]})}),a.jsx("section",{id:"participation",className:"scroll-mt-20 border-b border-border/60 bg-secondary/20",children:a.jsxs("div",{className:"container max-w-5xl py-14 md:py-16",children:[a.jsx("h2",{ref:v,tabIndex:-1,
584className:"font-display text-3xl md:text-4xl font-light leading-tight mb-8 text-foreground focus:outline-none",children:"How taking part works"}),a.jsxs("div",{className:"mb-10 border-y border-border/60 py-6 md:py-8",children:[a.jsx("p",{className:"text-[11px] uppercase tracking-[0.24em] text-primary mb-3",children:"Programme scope and fee"}),a.jsx("p",{className:"text-base text-muted-foreground leading-relaxed max-w-3xl",children:"The programme brings together preparation, curated visits and practitioner conversations, facilitation, appropriate language support and follow-through. Programme transport, scheduled group meals and shared activities are coordinated around the group."}),a.jsx("p",{className:"mt-5 font-display text-xl md:text-2xl text-foreground leading-snug",children:"Indicative programme fee: US$12,000 per participant"}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed max-w-3xl",children:"International flights excluded. Final inclusions and booking arrangements will be confirmed in writing before commitment."}),a.jsxs("a",{href:"/contact?subject=East-West%20Delegation",className:"group mt-5 inline-flex items-center gap-1 text-sm font-medium text-primary hover:text-accent transition-colors",children:["Ask for the private agenda"," ",a.jsx(qe,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]}),a.jsx("ol",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-8",children:Ene.map((C,A)=>a.jsxs("li",{className:"border-t border-border/60 pt-3",children:[a.jsxs("p",{className:"text-[11px] uppercase tracking-[0.24em] text-primary mb-2",children:["Step ",A+1]}),a.jsx("p",{className:"font-display text-lg text-foreground mb-2",children:C.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:C.body})]},C.title))}),a.jsxs(G,{size:"lg",onClick:S(),className:"group shadow-md shadow-primary/20 transition-colors",children:["Apply for the first cohort"," ",a.jsx(qe,{className:"ml-1 h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})}),a.jsxs("section",{id:"interest",className:"relative scroll-mt-20 overflow-hidden",children:[a.jsx(ne.div,{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-no-repeat bg-bottom bg-cover",style:{backgroundImage:`url(${Pte.url})`},initial:t?!1:{opacity:.2},whileInView:t?void 0:{opacity:.4},viewport:{once:!0,margin:"-10% 0px"},transition:{duration:.9,ease:"easeOut"}}),a.jsxs("div",{className:"relative container max-w-2xl py-20 md:py-24",children:[a.jsxs(ne.div,{...j(),children:[a.jsx("h2",{ref:b,tabIndex:-1,className:"font-display text-3xl md:text-4xl font-light mb-4 leading-tight text-center focus:outline-none",children:"What do you want to see for yourself?"}),a.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed mb-10 text-center",children:"Share your professional context and the part of the journey you’d like to explore. An initial direction is enough."})]}),s?a.jsxs(MD,{className:"p-8 bg-background border-accent/30 rounded-2xl",children:[a.jsx(Ad,{className:"h-10 w-10 text-primary mb-4","aria-hidden":"true"}),a.jsx("h3",{className:"font-display text-2xl font-medium mb-3",children:"Thank you"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Your expression of interest has been received. Lydia reviews each submission personally and will follow up where a conversation appears useful."})]}):a.jsxs("form",{ref:g,onSubmit:P,noValidate:!0,className:"space-y-6",children:[a.jsx("div",{className:"absolute left-[-9999px] top-[-9999px] h-px w-px overflow-hidden","aria-hidden":"true",children:a.jsx("input",{id:"website_url",name:"website_url",type:"text",tabIndex:-1,autoComplete:"off","aria-hidden":"true"})}),a.jsxs("fieldset",{className:"space-y-5",children:[a.jsx("legend",{className:"sr-only",children:"About you"}),a.jsxs("div",{className:"flex items-center gap-3","aria-hidden":"true",children:[a.jsx("span",{className:"text-xs uppercase tracking-[0.2em] text-primary font-medium",children:"About you"}),a.jsx("div",{className:"h-px flex-1 bg-border/60","aria-hidden":"true"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"name",children:["Full name"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"name",name:"name",required:!0,placeholder:"Full name","aria-required":"true",autoComplete:"name","aria-invalid":!!o.name,"aria-describedby":k("name"),className:"glass-input"}),o.name&&a.jsx("p",{id:"err-name",className:"text-xs text-destructive",children:o.name})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"email",children:["Best email"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"email",name:"email",type:"email",required:!0,"aria-required":"true",autoComplete:"email","aria-invalid":!!o.email,"aria-describedby":k("email"),className:"glass-input"}),o.email&&a.jsx("p",{id:"err-email",className:"text-xs text-destructive",children:o.email})]}),a.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"organization",children:["Organisation or investment vehicle"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"organization",name:"organization",required:!0,"aria-required":"true",autoComplete:"organization","aria-invalid":!!o.organization,"aria-describedby":k("organization","hint-organization"),className:"glass-input"}),a.jsx("p",{id:"hint-organization",className:"text-xs text-muted-foreground",children:"If you invest independently, write “Personal investor”."}),o.organization&&a.jsx("p",{id:"err-organization",className:"text-xs text-destructive",children:o.organization})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"role",children:["Role"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"role",name:"role",required:!0,"aria-required":"true",autoComplete:"organization-title","aria-invalid":!!o.role,"aria-describedby":k("role"),className:"glass-input"}),o.role&&a.jsx("p",{id:"err-role",className:"text-xs text-destructive",children:o.role})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"linkedin_url",children:["LinkedIn or other public professional profile"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(ot,{id:"linkedin_url",name:"linkedin_url",type:"url",required:!0,"aria-required":"true",inputMode:"url",autoComplete:"url","aria-invalid":!!o.linkedin_url,"aria-describedby":k("linkedin_url","hint-linkedin_url"),className:"glass-input",placeholder:"https://www.linkedin.com/in/…"}),a.jsx("p",{id:"hint-linkedin_url",className:"text-xs text-muted-foreground",children:"Any public profile page starting with http:// or https://. This helps verify who is a
584pplying before a private conversation."}),o.linkedin_url&&a.jsx("p",{id:"err-linkedin_url",className:"text-xs text-destructive",children:o.linkedin_url})]})]}),a.jsxs("fieldset",{className:"space-y-5",children:[a.jsx("legend",{className:"sr-only",children:"What you want to understand"}),a.jsxs("div",{className:"flex items-center gap-3","aria-hidden":"true",children:[a.jsx("span",{className:"text-xs uppercase tracking-[0.2em] text-primary font-medium",children:"What you want to understand"}),a.jsx("div",{className:"h-px flex-1 bg-border/60","aria-hidden":"true"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"professional_context",children:["What do you invest in, build or operate?"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(As,{id:"professional_context",name:"professional_context",required:!0,"aria-required":"true","aria-invalid":!!o.professional_context,"aria-describedby":k("professional_context","hint-professional_context"),rows:4,maxLength:Df,onChange:C=>m(C.target.value.trim().length),className:"glass-input"}),a.jsxs("p",{id:"hint-professional_context",className:"text-xs text-muted-foreground",children:["Briefly describe your sector, stage, geography or operating context. You do not need to disclose confidential figures. ",Mx,"–",Df," characters (",f," so far)."]}),o.professional_context&&a.jsx("p",{id:"err-professional_context",className:"text-xs text-destructive",children:o.professional_context})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"why_asia",children:["Which part of the China in 3D journey matters most to your work?"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsx(As,{id:"why_asia",name:"why_asia",required:!0,"aria-required":"true","aria-invalid":!!o.why_asia,"aria-describedby":k("why_asia","hint-why_asia"),rows:5,maxLength:If,onChange:C=>y(C.target.value.trim().length),className:"glass-input"}),a.jsxs("p",{id:"hint-why_asia",className:"text-xs text-muted-foreground",children:["Start with a relevant interest or uncertainty and explain why it matters to your work. We’ll help sharpen the question together. ",Lx,"–",If," characters (",x," so far)."]}),o.why_asia&&a.jsx("p",{id:"err-why_asia",className:"text-xs text-destructive",children:o.why_asia})]})]}),a.jsxs("fieldset",{className:"space-y-5",children:[a.jsx("legend",{className:"sr-only",children:"Practical fit"}),a.jsxs("div",{className:"flex items-center gap-3","aria-hidden":"true",children:[a.jsx("span",{className:"text-xs uppercase tracking-[0.2em] text-primary font-medium",children:"Practical fit"}),a.jsx("div",{className:"h-px flex-1 bg-border/60","aria-hidden":"true"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"january_2027",children:["Could you realistically attend 17–23 January 2027?"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsxs("select",{id:"january_2027",name:"january_2027",required:!0,"aria-required":"true","aria-invalid":!!o.january_2027,"aria-describedby":k("january_2027"),defaultValue:"",className:"glass-input flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",children:[a.jsx("option",{value:"",disabled:!0,children:"Select one…"}),Ane.map(C=>a.jsx("option",{value:C,children:C},C))]}),o.january_2027&&a.jsx("p",{id:"err-january_2027",className:"text-xs text-destructive",children:o.january_2027})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"funding",children:["How would your participation be funded?"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsxs("select",{id:"funding",name:"funding",required:!0,"aria-required":"true","aria-invalid":!!o.funding,"aria-describedby":k("funding"),defaultValue:"",className:"glass-input flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",children:[a.jsx("option",{value:"",disabled:!0,children:"Select one…"}),Pne.map(C=>a.jsx("option",{value:C,children:C},C))]}),o.funding&&a.jsx("p",{id:"err-funding",className:"text-xs text-destructive",children:o.funding})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"deposit_intent",children:["If invited, a refundable US$1,000 deposit may be requested to hold a priority place, subject to the final written scope and booking terms. Would that work for you?"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsxs("select",{id:"deposit_intent",name:"deposit_intent",required:!0,"aria-required":"true","aria-invalid":!!o.deposit_intent,"aria-describedby":k("deposit_intent"),defaultValue:"",className:"glass-input flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",children:[a.jsx("option",{value:"",disabled:!0,children:"Select one…"}),Rne.map(C=>a.jsx("option",{value:C,children:C},C))]}),o.deposit_intent&&a.jsx("p",{id:"err-deposit_intent",className:"text-xs text-destructive",children:o.deposit_intent})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Ne,{htmlFor:"how_heard",children:["How did you hear about East Meets West?"," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),a.jsxs("select",{id:"how_heard",name:"how_heard",required:!0,"aria-required":"true","aria-invalid":!!o.how_heard,"aria-describedby":k("how_heard"),value:c,onChange:C=>d(C.target.value),className:"glass-input flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",children:[a.jsx("option",{value:"",disabled:!0,children:"Select one…"}),One.map(C=>a.jsx("option",{value:C,children:C},C))]}),o.how_heard&&a.jsx("p",{id:"err-how_heard",className:"text-xs text-destructive",children:o.how_heard}),a.jsx(ot,{id:"how_heard_detail",name:"how_heard_detail",className:"glass-input mt-2",required:w,"aria-required":w,"aria-invalid":!!o.how_heard_detail,"aria-describedby":k("how_heard_detail"),placeholder:w?"Please add a short detail":"Optional detail","aria-label":"How did you hear about East Meets West — detail"}),o.how_heard_detail&&a.jsx("p",{id:"err-how_heard_detail",className:"text-xs text-destructive",children:o.how_heard_detail})]}),a.jsxs("div",{className:"space-y-3 rounded-xl border border-border/60 bg-background/60 p-4",children:[a.jsxs("div",{className:"flex gap-3",children:[a.jsx("input",{id:"consent_contact",name:"consent_contact",type:"checkbox",required:!0,"aria-required":"true",className:"mt-1 h-4 w-4 accent-primary","aria-invalid":!!o.consent_contact,"aria-describedby":k("consent_contact")}),a.jsxs(Ne,{htmlFor:"consent_contact",className:"text-sm font-normal leading-relaxed",children:["I agree that Seoi.Cure may contact me about East Meets West."," ",a.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]})]}),o.consent_contact&&a.jsx("p",{id:"err-consent_contact",className:"text-xs text-destructive",children:o.consent_contact})]}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:["Seoi.Cure will use your information to assess fit and plan the first cohort. We will ask for your specific approval before sharing any part of your profile or question with a prospective programme counterpart, including a de-identified summary. We will not name you or your organisation publicly without separate permission. See our"," ",a.jsx("a",{href:"/privacy",className:"underline hover:text-foreground",children:"privacy policy"}),"."]})]}),a.jsx("div",{role:"status","aria-live":"polite",children:Object.keys(o).length>0&&a.jsx("p",{className:"text-xs text-destructive",children:"A few fields need attention — please check the highlighted questions above."})}),a.jsxs(G,{type:"submit",size:"lg",disabled:r,className:"group shadow-md shadow-primary/20 transition-colors",children:[r?"Sending…":"Apply for the first cohort"," ",!r&&a.jsx(qe,{className:"ml-1 h-4 w-4 transition-transform group-hover:translate-x-0.5"})]}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Applying is not a booking or commitment. No payment is requested at this stage."})]}),a.jsxs("div",{className:"relative mt-12 border-t border-border/50 pt-6",children:[a.jsx("p",{className:"text-sm text-foreground mb-1",children:"Considering a private team or institutional cohort?"}),a.jsxs("a",{href:"/contact",className:"group inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-primary transition-colors",children:["Discuss a private team or institutional cohort"," ",a.jsx(qe,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]})]})]})},Lne="https://buy.stripe.com/eVq6oAcuh1AX3HJgnO1ZS04",Fne=()=>{var t;const e=window.location.hash.replace(/^#/,"");return((t=new URLSearchParams(e).get("invite"))==null?void 0:t.trim())??""},$ne=["1 night Hong Kong → 3 nights Shenzhen → 2 nights Guangzhou","One border crossing · two hotel moves 
584· no backtracking","Depart or extend independently from Guangzhou"],Bne=[{place:"Hong Kong",role:"International interface — a trading gateway that evolved from port and manufacturing base into finance, logistics, legal and professional services."},{place:"Shenzhen / Qianhai–Nanshan",role:"Product speed — China’s first Special Economic Zone, established in 1980, grew from a border town into a technology and hardware metropolis."},{place:"Dongguan / manufacturing corridor",role:"Make at scale — dense electronics, electrical-machinery, equipment and supplier networks between Shenzhen and Guangzhou."},{place:"Guangzhou",role:"Commercial and institutional depth — Guangdong’s provincial capital, with more than 2,200 years of trading history and present-day strength in advanced manufacturing, automotive and electronics."}],zne=[{leg:"Hong Kong West Kowloon → Shenzhen Futian / North",rail:"14–19 min",road:"2–3 hr private coach, including the border"},{leg:"Shenzhen North → Dongguan / Humen",rail:"About 17 min",road:"45–90 min, depending on site"},{leg:"Dongguan / Humen → Guangzhou South",rail:"About 17 min",road:"1–2 hr, depending on site"},{leg:"Shenzhen North → Guangzhou South direct",rail:"29–36 min",road:"1.5–2.5 hr"}],Uu=[{name:"Hong Kong",when:"Day 1",stay:"1 night",zone:!1},{name:"Qianhai–Nanshan / Shenzhen hub",when:"Days 2–4",stay:"3 nights",zone:!1},{name:"Selected on-corridor manufacturing fieldwork",when:"Day 5",stay:"No hotel move until continuing onward",zone:!0},{name:"Guangzhou",when:"Arrive Day 5 · Days 6–7",stay:"2 nights",zone:!1}],Vne="Schematic corridor, not to scale. Hong Kong on Day 1 for one night, then Qianhai–Nanshan and the Shenzhen hub on Days 2 to 4 for three nights, then selected on-corridor manufacturing fieldwork on Day 5 with no hotel move until continuing onward, then Guangzhou arriving Day 5 and staying Days 6 and 7 for two nights. Lodging: Hong Kong 1 night, Shenzhen 3 nights, Guangzhou 2 nights.",Une=[{day:"Day 1",place:"Hong Kong",title:"Set the decision.",programme:"Arrival orientation, GBA system briefing and working dinner.",question:"What must China prove or disprove for me this week?",output:"Decision charter."},{day:"Day 2",place:"Qianhai–Nanshan",title:"Enter the system.",programme:"Early crossing and a full working day in Shenzhen’s policy, industrial and operator context.",question:"What role should Hong Kong play, and what must be tested in mainland operating reality?",output:"Actor map and assumptions."},{day:"Day 3",place:"Shenzhen",title:"Test capability.",programme:"Deep capability encounter around hardware, robotics, AI or advanced manufacturing.",question:"Which capabilities are real, relevant and scalable?",output:"Capability thesis."},{day:"Day 4",place:"Shenzhen",title:"Test partnerability.",programme:"Cohort-selected partner, supplier, buyer or technical-diligence module.",question:"Which counterpart or engagement model deserves further diligence?",output:"Qualification scorecard."},{day:"Day 5",place:"Shenzhen → selected manufacturing corridor → Guangzhou",title:"Test industrialisation while moving forward.",programme:"Manufacturing or R&D fieldwork while luggage moves onward; continue to Guangzhou rather than backtracking.",question:"Can this be built or deployed at the required quality, cost, speed and risk?",output:"Manufacturability and scale assessment."},{day:"Day 6",place:"Guangzhou",title:"Turn evidence into a route.",programme:"Market-entry, deployment or industrial-location context, followed by protected synthesis.",question:"Where and how should I enter, pilot, partner, invest or buy?",output:"Go, deepen, change or park decision."},{day:"Day 7",place:"Guangzhou",title:"Carry it forward.",programme:"Individual decision session, culturally lighter close and departures.",question:"What will I do in the next 30 days?",output:"Owned action plan and follow-up date."}],Wne=["Define the participant’s live China question.","Agree what profile may be shared.","Test relevance with potential counterparties.","Confirm encounters only where mutual value exists."],Hne=["Dates, corridor and seven-day method","Shenzhen as the principal working hub","Guangzhou as the final base","Participant-led decision framework","Indicative US$12,000 fee"],qne=["Exact industrial encounters","Cohort composition","Operating partner, accommodation and transport structure","Final reservation and cancellation terms"],_g=({children:e})=>a.jsx("p",{className:"text-xs md:text-sm tracking-[0.22em] uppercase text-muted-foreground",children:e}),Gne=()=>a.jsxs("figure",{className:"mt-10",children:[a.jsxs("div",{role:"img","aria-label":Vne,className:"rounded-sm border border-border bg-muted/20 p-5 md:p-8",children:[a.jsx("ol",{className:"hidden md:grid grid-cols-[1fr_auto_1fr_auto_1fr_auto_1fr] items-stretch gap-y-3",children:Uu.map((e,t)=>a.jsxs("li",{className:"contents",children:[a.jsxs("div",{className:`flex flex-col justify-start rounded-sm border p-4 ${e.zone?"border-dashed border-primary/40 bg-[repeating-linear-gradient(135deg,hsl(var(--primary)/0.07)_0px,hsl(var(--primary)/0.07)_6px,transparent_6px,transparent_12px)]":"border-border bg-background"}`,children:[a.jsx("span",{className:"text-[11px] tracking-[0.18em] uppercase text-muted-foreground",children:e.when}),a.jsx("span",{className:"mt-2 font-serif text-base leading-snug text-foreground",children:e.name}),a.jsx("span",{className:"mt-2 text-xs text-muted-foreground",children:e.stay})]}),t<Uu.length-1&&a.jsxs("div",{className:"flex items-center px-3 text-primary","aria-hidden":"true",children:[a.jsx("span",{className:"h-px w-8 bg-primary/40"}),a.jsx("span",{className:"-ml-1 text-sm",children:"→"})]})]},e.name))}),a.jsx("ol",{className:"md:hidden space-y-0",children:Uu.map((e,t)=>a.jsxs("li",{className:"relative pl-6 pb-6 last:pb-0",children:[t<Uu.length-1&&a.jsx("span",{className:"absolute left-[5px] top-3 bottom-0 w-px bg-primary/30","aria-hidden":"true"}),a.jsx("span",{className:`absolute left-0 top-2 h-[11px] w-[11px] rounded-full ${e.zone?"border border-dashed border-primary bg-primary/20":"bg-primary"}`,"aria-hidden":"true"}),a.jsx("span",{className:"text-[11px] tracking-[0.18em] uppercase text-muted-foreground",children:e.when}),a.jsx("span",{className:"mt-1 block font-serif text-base text-foreground",children:e.name}),a.jsx("span",{className:"mt-1 block text-xs text-muted-foreground",children:e.stay})]},e.name))}),a.jsx("p",{className:"mt-6 border-t border-border pt-4 text-xs tracking-[0.14em] uppercase text-muted-foreground",children:"Lodging · HK 1 → Shenzhen 3 → Guangzhou 2"})]}),a.jsx("figcaption",{className:"mt-3 text-xs text-muted-foreground",children:"Schematic route · not to scale. The hatched stop indicates on-corridor manufacturing fieldwork, not a confirmed site."})]}),Kne=()=>a.jsxs("div",{className:"mt-10",children:[a.jsx("h3",{className:"font-serif text-xl md:text-2xl text-foreground",children:"Travel orientation"}),a.jsx("div",{className:"mt-4 overflow-x-auto",children:a.jsxs("table",{className:"w-full min-w-[680px] border-t border-border",children:[a.jsx("caption",{className:"sr-only",children:"Indicative high-speed rail and road travel times through the Greater Bay Area"}),a.jsx("thead",{children:a.jsxs("tr",{className:"border-b border-border",children:[a.jsx("th",{className:"py-3 pr-5 text-left text-[11px] font-normal tracking-[0.16em] uppercase text-muted-foreground",children:"Leg"}),a.jsx("th",{className:"py-3 pr-5 text-left text-[11px] font-normal tracking-[0.16em] uppercase text-muted-foreground",children:"High-speed rail · on train"}),a.jsx("th",{className:"py-3 text-left text-[11px] font-normal tracking-[0.16em] uppercase text-muted-foreground",children:"Road orientation"})]})}),a.jsx("tbody",{children:zne.map(e=>a.jsxs("tr",{className:"border-b border-border",children:[a.jsx("td",{className:"py-4 pr-5 align-top text-sm text-foreground",children:e.leg}),a.jsx("td",{className:"py-4 pr-5 align-top text-sm text-muted-foreground",children:e.rail}),a.jsx("td",{className:"py-4 align-top text-sm text-muted-foreground",children:e.road})]},e.leg))})]})}),a.jsx("p",{className:"mt-4 text-xs leading-relaxed text-muted-foreground",children:"On-train figures are not door-to-door. Group blocks add stations, security, immigration where relevant, and the last mile. These are current orientation ranges, not January 2027 timetable promises."}),a.jsx("p",{className:"mt-2 text-xs leading-relaxed text-muted-foreground",children:"Day 5 is expected to use private road transport, with roughly 2.5–4 hours cumulative driving excluding visits and lunch, so fieldwork happens while moving forward rather than returning to Shenzhen."})]}),Yne=()=>{const[e,t]=p.useState("loading"),[r,n]=p.useState(null),s=p.useRef(0),i=p.useCallback(async()=>{const o=++s.current,l=Fne();if(n(null),!/^[A-Za-z0-9_-]{32,256}$/.test(l)){s.current===o&&t("missing");return}t("loading");const{data:c,error:d}=await Mt.functions.invoke("east-west-reservation",{body:{token:l}});if(s.current!==o)return;const u=c;if(d||!(u!=null&&u.ok)||!u.reservation){t("unavailable");return}n(u.reservation),t("ok")},[]);return p.useEffect(()=>{i();const o=()=>{i()};return window.addEventListener("hashchange",o),()=>{s.current++,window.removeEventListener("hashchange",o)}},[i]),a.jsx("main",{className:"min-h-screen bg-background px-6 py-16 md:py-24",children:a.jsxs("div",{className:"mx-auto w-full max-w-3xl",children:[a.jsx("p",{className:"mb-12 font-serif text-lg text-foreground",children:"Seoi.Cure"}),e==="loading"&&a.jsx("p",{className:"text-sm tracking-[0.18em] uppercase text-muted-foreground",role:"status",children:"Validating invitation…"}),e==="missing"&&a.jsxs("div",{children:[a.jsx(_g,{children:"Private invitation"}),a.jsx("h1",{className:"mt-4 font-serif text-3xl md:text-4xl text-foreground",children:"Open your personal invitation link"}),a.jsx("p",{className:"mt-4 text-muted-foreground leading-relaxed",children:"This page only opens from the complete private link Lydia sent you. Make sure the address includes everything after #invite=."}),a.jsxs("p",{className:"mt-8 text-sm text-muted-foreground",children:["Questions?"," ",a.jsx("a",{className:"underline underline-offset-4",href:"mailto:[email protected]",children:"Contact Lydia directly."})]})]}),e==="unavailable"&&a.jsxs("div",{children:[a.jsx(_g,{children:"Private invitation"}),a.jsx("h1",{className:"mt-4 font-serif text-3xl md:text-4xl text-foreground",children:"This invitation is not available"}),a.jsx("p",{className:"mt-4 text-muted-foreground leading-relaxed",children:"This link is no longer valid. If you believe this is a mistake, please get in touch."}),a.jsxs("p",{className:"mt-8 text-sm text-muted-foreground",children:["Questions?"," ",a.jsx("a",{className:"underline underline-offset-4",href:"mailto:[email protected]",children:"Contact Lydia directly."})]})]}),e==="ok"&&r&&a.jsxs("article",{children:[a.jsx(_g,{children:"Private invitation"}),a.jsx("h1",{className:"mt-4 font-serif text-3xl md:text-5xl leading-tight text-foreground",children:"Take one live China decision through the Greater Bay Area"}),a.jsxs("p",{className:"mt-6 text-lg text-foreground",children:["Prepared for ",r.participant_name,r.organization?a.jsx("span",{className:"block text-base text-muted-foreground",children:r.organization}):null]}),a.jsxs("ul",{className:"mt-10 border-t border-border",children:[a.jsx("li",{className:"border-b border-border py-3 text-sm md:text-base text-muted-foreground",children:"17–23 January 2027 — indicative"}),a.jsx("li",{className:"border-b border-border py-3 text-sm md:text-base text-muted-foreground",children:"US$12,000 indicative programme fee"})]}),a.jsx("p",{className:"mt-8 text-base md:text-lg text-foreground leading-relaxed",children:"A seven-day decision immer
584sion with five intensive fieldwork days."}),a.jsx("ul",{className:"mt-6 space-y-2",children:$ne.map(o=>a.jsx("li",{className:"text-sm md:text-base text-muted-foreground",children:o},o))}),a.jsxs("section",{className:"mt-16",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground",children:"What is the Greater Bay Area?"}),a.jsx("p",{className:"mt-4 text-muted-foreground leading-relaxed",children:"The Greater Bay Area is an 11-city economic region around the Pearl River estuary: Hong Kong and Macao plus nine Guangdong cities. In 2025, it covered roughly 56,000 km², with more than 88 million people and GDP above RMB15 trillion. We treat it as one operating system, not a collection of disconnected city stops."}),a.jsx("p",{className:"mt-4 text-foreground leading-relaxed",children:"This is not four versions of the same Chinese megacity. Each stop reveals a different part of the system: how opportunities become internationally legible in Hong Kong; how ideas become products in Shenzhen; how products become manufacturable in the corridor; and how companies operate at industrial and institutional scale in Guangzhou."}),a.jsx("div",{className:"mt-8 grid gap-4 sm:grid-cols-2",children:Bne.map(o=>a.jsxs("div",{className:"rounded-sm border border-border p-5",children:[a.jsx("h3",{className:"font-serif text-lg text-foreground",children:o.place}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:o.role})]},o.place))}),a.jsx(Gne,{}),a.jsx(Kne,{})]}),a.jsxs("section",{className:"mt-16",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground",children:"The seven-day decision track"}),a.jsx("p",{className:"mt-4 text-sm tracking-[0.14em] uppercase text-muted-foreground",children:"Daily rhythm · Hypothesis → encounter → private debrief → belief update"}),a.jsx("ol",{className:"mt-8 border-t border-border",children:Une.map(o=>a.jsxs("li",{className:"border-b border-border py-6",children:[a.jsxs("p",{className:"text-[11px] tracking-[0.18em] uppercase text-muted-foreground",children:[o.day," · ",o.place]}),a.jsx("h3",{className:"mt-2 font-serif text-xl text-foreground",children:o.title}),a.jsxs("dl",{className:"mt-4 grid gap-3 md:grid-cols-3",children:[a.jsxs("div",{children:[a.jsx("dt",{className:"text-[11px] tracking-[0.16em] uppercase text-muted-foreground",children:"Programme"}),a.jsx("dd",{className:"mt-1 text-sm text-foreground leading-relaxed",children:o.programme})]}),a.jsxs("div",{children:[a.jsx("dt",{className:"text-[11px] tracking-[0.16em] uppercase text-muted-foreground",children:"Question answered"}),a.jsx("dd",{className:"mt-1 text-sm text-foreground leading-relaxed",children:o.question})]}),a.jsxs("div",{children:[a.jsx("dt",{className:"text-[11px] tracking-[0.16em] uppercase text-muted-foreground",children:"Output"}),a.jsx("dd",{className:"mt-1 text-sm text-foreground leading-relaxed",children:o.output})]})]})]},o.day))})]}),a.jsxs("section",{className:"mt-16 rounded-sm border border-border bg-muted/30 p-6 md:p-8",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground",children:"The route is concrete. The encounters are matched."}),a.jsx("p",{className:"mt-4 text-muted-foreground leading-relaxed",children:"Access is not the product. Seoi.Cure provides participant selection, preparation, programme design, context, interpretation and follow-through. Specific encounters are pursued only where the participant’s live question and the local counterparty’s interests create a credible reason to meet."}),a.jsx("ol",{className:"mt-6 space-y-3",children:Wne.map((o,l)=>a.jsxs("li",{className:"flex gap-4 text-foreground",children:[a.jsx("span",{className:"font-serif text-muted-foreground",children:l+1}),a.jsx("span",{children:o})]},o))})]}),a.jsxs("section",{className:"mt-16 grid gap-8 md:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-sm tracking-[0.18em] uppercase text-muted-foreground",children:"Already defined"}),a.jsx("ul",{className:"mt-4 border-t border-border",children:Hne.map(o=>a.jsx("li",{className:"border-b border-border py-3 text-sm text-foreground",children:o},o))})]}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-sm tracking-[0.18em] uppercase text-muted-foreground",children:"Now being matched"}),a.jsx("ul",{className:"mt-4 border-t border-border",children:qne.map(o=>a.jsx("li",{className:"border-b border-border py-3 text-sm text-muted-foreground",children:o},o))})]})]}),a.jsxs("section",{className:"mt-16 rounded-sm border border-border p-6 md:p-8",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground",children:"Refundable priority deposit"}),a.jsx("p",{className:"mt-3 text-base text-foreground",children:"US$1,000 · fully refund
584able until final participation terms are accepted"}),a.jsx("p",{className:"mt-4 text-muted-foreground leading-relaxed",children:"The deposit records priority interest. It does not yet confirm a place, any specific encounter or the final programme scope. If the participant proceeds, it will be credited in full toward the final programme fee."}),a.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row sm:items-center",children:[a.jsx("a",{href:Lne,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center rounded-sm bg-primary px-6 py-3 text-sm tracking-[0.12em] uppercase text-primary-foreground",children:"Place the refundable deposit"}),a.jsx("a",{className:"text-sm underline underline-offset-4 text-foreground",href:"mailto:[email protected]",children:"Ask Lydia a question."})]}),a.jsx("p",{className:"mt-6 text-sm text-muted-foreground leading-relaxed",children:"Lydia will ask separately before sharing a named or anonymized participant profile."})]}),a.jsxs("p",{className:"mt-14 text-sm text-muted-foreground",children:["Questions?"," ",a.jsx("a",{className:"underline underline-offset-4",href:"mailto:[email protected]",children:"Contact Lydia directly."})]})]})]})})},XN="cct-entries-v3",Jne=()=>{const{user:e,loading:t}=Ym(),{rows:r,loading:n,list:s,save:i,remove:o}=kD(),[l,c]=p.useState(null),[d,u]=p.useState(!1),h=p.useMemo(()=>{if(typeof window>"u")return 0;try{return JSON.parse(localStorage.getItem(XN)||"[]").length}catch{return 0}},[]);if(p.useEffect(()=>{e&&s()},[e,s]),t)return a.jsx("div",{className:"flex min-h-[40vh] items-center justify-center",children:a.jsx(Rs,{className:"h-6 w-6 animate-spin text-primary"})});if(!e)return a.jsx(wc,{to:"/auth",replace:!0});const f=async()=>{try{const m=localStorage.getItem(XN);if(!m)return Xe.info("Nothing to import.");const x=JSON.parse(m);if(!x.length)return Xe.info("Nothing to import.");u(!0);let y=0;for(const v of x)try{const b={stage:v.stage??null,investorType:v.investorType??null,priority:v.priority??null,blocker:v.blocker??null,tags:v.feedback??null,conversationDate:v.date??null,reminderDate:v.reminderDate??null,investorName:v.investor??v.investorName??null,contact:v.contact??null,notes:v.notes??null,memorableInsight:v.memorableInsight??null,need:v.need??null,waitingOn:v.waitingOn??null,nextAction:v.action??v.nextAction??null,feedback:Array.isArray(v.feedback)?v.feedback.join(", "):v.feedback??null};await i(b),y++}catch(b){console.error(b)}u(!1),Xe.success(`Imported ${y} of ${x.length} conversations to your account.`)}catch{u(!1),Xe.error("Import failed.")}};return a.jsxs(a.Fragment,{children:[a.jsx(Qt,{title:"My investor conversations",subtitle:"Encrypted at rest. Synced across your devices. Visible only to you."}),a.jsxs("section",{className:"mx-auto max-w-5xl px-6 py-12 md:py-16",children:[a.jsxs("div",{className:"mb-6 flex flex-wrap items-center justify-between gap-3",children:[a.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a.jsx(rm,{className:"h-4 w-4 text-primary"}),"Signed in as ",a.jsx("span",{className:"font-medium text-foreground",children:e.email})]}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[h>0&&a.jsxs(G,{size:"sm",variant:"outline",onClick:f,disabled:d,children:[d?a.jsx(Rs,{className:"h-4 w-4 animate-spin"}):a.jsx($3,{className:"h-4 w-4"}),"Import ",h," local"]}),a.jsx(G,{size:"sm",asChild:!0,children:a.jsxs(se,{to:"/capital-conversation-tracker",children:["Add new conversation ",a.jsx(qe,{className:"h-4 w-4"})]})})]})]}),n?a.jsx("div",{className:"flex items-center justify-center py-16",children:a.jsx(Rs,{className:"h-6 w-6 animate-spin text-primary"})}):r.length===0?a.jsxs("div",{className:"glass-card p-8 text-center",children:[a.jsx("h3",{className:"font-display text-xl font-bold",children:"No saved conversations yet"}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Capture your first investor conversation in the tracker — it'll show up here automatically."}),a.jsx(G,{className:"mt-4",asChild:!0,children:a.jsx(se,{to:"/capital-conversation-tracker",children:"Open the tracker"})})]}):a.jsx("div",{className:"space-y-3",children:a.jsx(Fd,{initial:!1,children:r.map(m=>{const x=l===m.id,y=(m.investorName||"?").split(" ").map(v=>v[0]).join("").slice(0,2).toUpperCase();return a.jsxs(ne.div,{initial:{opacity:0,y:6}
584,animate:{opacity:1,y:0},exit:{opacity:0},className:Z("rounded-2xl border bg-card/70 transition-all",x?"border-primary/40 shadow-md":"border-border/60"),children:[a.jsxs("button",{onClick:()=>c(x?null:m.id),className:"flex w-full items-center gap-3 p-4 text-left",children:[a.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 font-display text-sm font-bold text-primary",children:y}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium truncate",children:m.investorName||"Untitled"}),a.jsxs("div",{className:"mt-1 flex flex-wrap gap-1.5 text-xs",children:[m.stage&&a.jsx(Ot,{variant:"secondary",children:m.stage}),m.priority&&a.jsx(Ot,{variant:"outline",children:m.priority}),m.blocker&&a.jsx(Ot,{variant:"outline",children:m.blocker}),m.updatedAt&&a.jsx("span",{className:"text-muted-foreground self-center",children:St(new Date(m.updatedAt),"PP")})]})]}),a.jsx(jl,{className:Z("h-4 w-4 shrink-0 text-muted-foreground transition-transform",x&&"rotate-180")})]}),x&&a.jsxs("div",{className:"border-t border-border/50 p-5 space-y-4 text-sm",children:[m._decryptError?a.jsx("p",{className:"text-destructive",children:"This row could not be decrypted. The encryption key may have changed."}):a.jsxs(a.Fragment,{children:[m.memorableInsight&&a.jsxs("div",{className:"rounded-xl bg-primary/5 p-3",children:[a.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-primary/80",children:"Memorable insight"}),a.jsxs("p",{className:"mt-1 italic",children:['"',m.memorableInsight,'"']})]}),m.need&&a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"What unlocks them"}),a.jsx("p",{className:"mt-1",children:m.need})]}),m.nextAction&&a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"You committed to"}),a.jsx("p",{className:"mt-1",children:m.nextAction})]}),m.notes&&a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Notes"}),a.jsx("p",{className:"mt-1 whitespace-pre-wrap",children:m.notes})]})]}),a.jsx("div",{className:"flex justify-end pt-2",children:a.jsxs(G,{size:"sm",variant:"ghost",className:"text-destructive hover:text-destructive",onClick:async()=>{if(confirm("Delete this conversation?"))try{await o(m.id),Xe.success("Deleted")}catch(v){Xe.error(v instanceof Error?v.message:"Delete failed")}},children:[a.jsx(c2,{className:"h-4 w-4"})," Delete"]})})]})]},m.id)})})})]})]})},xl="https://seoicure.com",FD=`${xl}/og/seoicure-social-card.png`,$D="Seoi.Cure — making climate opportunities easier to understand, finance and back.",Zne=`${xl}/og/east-meets-west-social-card.png`,Xne=`${xl}/og/carbon-removal-breakfast-club-social-card.png`,QN=`${xl}/og/research-and-insights-social-card.png`,Qne=1731,ese=909,tt=(e,t,r,n={})=>({path:e,canonicalPath:e,indexable:!0,robots:"index,follow",ogType:"website",image:FD,imageAlt:$D,title:t,description:r,...n}),tse=Ec.map(e=>tt(`/research/securitization-saturday/${e.slug}`,`${e.title} — Securitization Saturday | Seoi.Cure`,e.summary.slice(0,158),{ogType:"article"})),rse=[tt("/","Seoi.Cure — Market-ready narratives & financeability for climate tech","Seoi.Cure helps technical climate companies become easier to understand, finance and back — through market-ready narratives, financeability reviews and curated rooms."),tt("/about","About Seoi.Cure — Climate-market translation for technical teams","Seoi.Cure combines structured-finance experience with climate storytelling: market-ready narratives, climate-to-credit reviews and carefully designed CRBC rooms."),tt("/founders-letter","Founder's Letter (April 2024) — Lydia on Climate Capital | Seoi.Cure","Seoi.Cure's original April 2024 carbon-removal and securitization thesis, preserved as historical context.",{ogType:"article"}),tt("/services","Work With Us — Narrative, Financeability & CRBC Partnerships | Seoi.Cure","Three ways to make a climate opportunity easier to understand, finance and support: market-ready narrative, financeability review, and CRBC partnerships."),tt("/services/readiness-tool","Carbon Removal Readiness Tool | Seoi.Cure","A short self-assessment for carbon removal projects preparing to approach institutional capital."),tt("/services/due-diligence","Climate-to-Credit / Financeability Review | Seoi.Cure","A structured diagnostic of how a technical climate project is likely to be understood by capital providers, and what to address next."),tt("/research","Insights & Research on Climate Finance | Seoi.Cure","Featured talks, the Carbon Financing Fist Bump, and a growing library on CDR securitization and climate capital.",{image:QN,imageAlt:"Seoi.Cure Research & Insights — climate finance, technical translation and market-ready narratives."}),tt("/research/cdr-securitization","Securitizing Carbon Removal — Discussion Paper | Seoi.Cure","A long-form blueprint for structuring institutional capital into durable carbon removal at scale.",{ogType:"article",image:QN,imageAlt:"Seoi.Cure Research & Insights — climate finance, technical translation and market-ready narratives."}),...tse,tt("/bite-size-climate-tech","CDR Field Notes — Short Climate-Tech Explainers | Seoi.Cure","Short, sharp field notes and video explainers on carbon removal pathways, climate tech and how each one gets financed."),tt("/carbon-removal-breakfast-club","Carbon Removal Breakfast Club — Founders & Funders | Seoi.Cure","Candid morning conversations among CDR founders, funders, and policy makers around major climate weeks.",{image:Xne,imageAlt:"Carbon Removal Breakfast Club — small, high-trust working rooms around live climate-market questions."}),tt("/crbc-lcaw-firehorse","CRBC × LCAW Fire Horse Edition | Seoi.Cure","Carbon Removal Breakfast Club special edition for London Climate Action Week."),tt("/climate-cupid","Climate Cupid (Archived Pilot) | Seoi.Cure","Climate Cupid is an archived Seoi.Cure pilot exploring better founder-funder matching. Not currently an active service."),tt("/contact","Contact Seoi.Cure — Narrative, Financeability & CRBC","Enquire about a Market-Ready Narrative, Climate-to-Credit Review or CRBC partnership for a technical climate opportunity."),tt("/subscribe","Subscribe to Fresh Air Finance | Seoi.Cure","Monthly briefings on climate finance, carbon removal, and capital sequencing."),tt("/privacy","Privacy Policy | Seoi.Cure","How Seoi.Cure handles your data and respects your privacy."),tt("/terms","Terms of Service | Seoi.Cure","Terms governing your use of the Seoi.Cure website and services."),tt("/cookies","Cookie Policy | Seoi.Cure","How Seoi.Cure uses co
584okies and similar technologies."),tt("/accessibility","Accessibility Statement | Seoi.Cure","Our commitment to making seoicure.com accessible to everyone."),tt("/disclaimer","Disclaimer | Seoi.Cure","Important disclaimers about information published on seoicure.com."),tt("/east-west-climate-capital-delegation","China in 3D — Industrial Immersion | Seoi.Cure","A small-group Hong Kong, Shenzhen and Guangzhou industrial immersion for investors and operators exploring how physical technology gets built, scaled and deployed.",{image:Zne,imageAlt:"China in 3D — a small-group industrial immersion through Hong Kong, Shenzhen and Guangzhou by Seoi.Cure."}),tt("/auth","Sign In | Seoi.Cure","Sign in to your Seoi.Cure account.",{indexable:!1,robots:"noindex,nofollow"}),tt("/checkout/return","Checkout — Return | Seoi.Cure","Checkout return page.",{indexable:!1,robots:"noindex,nofollow"}),tt("/capital-conversation-tracker","Capital Conversation Tracker — Prototype | Seoi.Cure","A lightweight prototype helping climate founders map who's waiting on whom across their capital stack.",{indexable:!1,robots:"noindex,nofollow"}),tt("/capital-conversation-tracker/mine","My Conversations — Capital Conversation Tracker | Seoi.Cure","Your saved capital conversation trackers.",{indexable:!1,robots:"noindex,nofollow"}),tt("/404","Page Not Found | Seoi.Cure","This page could not be found. Explore Seoi.Cure's work on climate narrative, financeability and curated rooms.",{indexable:!1,robots:"noindex,nofollow"})],nse="/404",sse=["/east-west/reserve"],ase=e=>({path:e,canonicalPath:e,indexable:!1,robots:"noindex,nofollow,noarchive",ogType:"website",image:FD,imageAlt:$D,title:"Private invitation | Seoi.Cure",description:"Private invitation page."});function ise(e){return!e||e==="/"?"/":e.replace(/\/+$/,"")||"/"}const eS=new Map(rse.map(e=>[e.path,e]));function ose(e){const t=ise(e);return sse.some(r=>t===r||t.startsWith(`${r}/`))?ase(t):eS.get(t)??eS.get(nse)}function lse(e){return e==="/"?`${xl}/`:`${xl}${e}`}function cse(e){const t=lse(e.canonicalPath);return{title:e.title,description:e.description,canonical:t,robots:e.robots,"og-title":e.title,"og-description":e.description,"og-url":t,"og-type":e.ogType,"og-image":e.image,"og-image-width":String(Qne),"og-image-height":String(ese),"og-image-alt":e.imageAlt,"twitter-card":"summary_large_image","twitter-title":e.title,"twitter-description":e.description,"twitter-image":e.image,"twitter-image-alt":e.imageAlt}}const Wu="data-seoicure-meta",BD={title:{tag:"title",value:"text"},description:{tag:"meta",attrs:{name:"description"},value:"content"},canonical:{tag:"link",attrs:{rel:"canonical"},value:"href"},robots:{tag:"meta",attrs:{name:"robots"},value:"content"},"og-title":{tag:"meta",attrs:{property:"og:title"},value:"content"},"og-description":{tag:"meta",attrs:{property:"og:description"},value:"content"},"og-url":{tag:"meta",attrs:{property:"og:url"},value:"content"},"og-type":{tag:"meta",attrs:{property:"og:type"},value:"content"},"og-image":{tag:"meta",attrs:{property:"og:image"},value:"content"},"og-image-width":{tag:"meta",attrs:{property:"og:image:width"},value:"content"},"og-image-height":{tag:"meta",attrs:{property:"og:image:height"},value:"content"},"og-image-alt":{tag:"meta",attrs:{property:"og:image:alt"},value:"content"},"twitter-card":{tag:"meta",attrs:{name:"twitter:card"},value:"content"},"twitter-title":{tag:"meta",attrs:{name:"twitter:title"},value:"content"},"twitter-description":{tag:"meta",attrs:{name:"twitter:description"},value:"content"},"twitter-image":{tag:"meta",attrs:{name:"twitter:image"},value:"content"},"twitter-image-alt":{tag:"meta",attrs:{name:"twitter:image:alt"},value:"content"}};function dse(e){const t=document.head.querySelector(`[${Wu}="${e}"]`);if(t)return t;const r=BD[e];if(r.attrs){const[s,i]=Object.entries(r.attrs)[0],o=document.head.querySelector(`${r.tag}[${s}="${i}"]`);if(o)return o.setAttribute(Wu,e),o}else if(r.tag==="title"){const s=document.head.querySelector("title");if(s)return s.setAttribute(Wu,e),s}const n=document.createElement(r.tag);return Object.entries(r.attrs??{}
584).forEach(([s,i])=>n.setAttribute(s,i)),n.setAttribute(Wu,e),document.head.appendChild(n),n}const use=()=>{const{pathname:e}=hs();return p.useEffect(()=>{const t=ose(e),r=cse(t);Object.keys(r).forEach(n=>{const s=dse(n),i=BD[n],o=r[n];i.value==="text"?s.textContent=o:s.setAttribute(i.value,o)})},[e]),null},hse=new dF,fse=()=>a.jsx(hF,{client:hse,children:a.jsx(rL,{children:a.jsxs(B6,{children:[a.jsx(j5,{}),a.jsx(tL,{}),a.jsx(m$,{children:a.jsxs(yee,{children:[a.jsx(use,{}),a.jsxs(i$,{children:[a.jsxs(Ue,{element:a.jsx(OH,{}),children:[a.jsx(Ue,{path:"/",element:a.jsx($H,{})}),a.jsx(Ue,{path:"/about",element:a.jsx(BH,{})}),a.jsx(Ue,{path:"/founders-letter",element:a.jsx(zH,{})}),a.jsx(Ue,{path:"/services",element:a.jsx(HH,{})}),a.jsx(Ue,{path:"/services/clarity-call",element:a.jsx(wc,{to:"/services#market-ready-narrative",replace:!0})}),a.jsx(Ue,{path:"/services/readiness-tool",element:a.jsx(eq,{})}),a.jsx(Ue,{path:"/services/due-diligence",element:a.jsx(rq,{})}),a.jsx(Ue,{path:"/services/founder-funder-fit-sprint",element:a.jsx(wc,{to:"/services#market-ready-narrative",replace:!0})}),a.jsx(Ue,{path:"/founder-funder-fit-sprint",element:a.jsx(wc,{to:"/services#market-ready-narrative",replace:!0})}),a.jsx(Ue,{path:"/research",element:a.jsx(bq,{})}),a.jsx(Ue,{path:"/research/cdr-securitization",element:a.jsx(xJ,{})}),a.jsx(Ue,{path:"/research/securitization-saturday/:slug",element:a.jsx(EJ,{})}),a.jsx(Ue,{path:"/bite-size-climate-tech",element:a.jsx(Bq,{})}),a.jsx(Ue,{path:"/carbon-removal-breakfast-club",element:a.jsx(gK,{})}),a.jsx(Ue,{path:"/climate-cupid",element:a.jsx(yK,{})}),a.jsx(Ue,{path:"/contact",element:a.jsx(CK,{})}),a.jsx(Ue,{path:"/crbc-lcaw-firehorse",element:a.jsx(iJ,{})}),a.jsx(Ue,{path:"/subscribe",element:a.jsx(lJ,{})}),a.jsx(Ue,{path:"/privacy",element:a.jsx(RJ,{})}),a.jsx(Ue,{path:"/terms",element:a.jsx(AJ,{})}),a.jsx(Ue,{path:"/cookies",element:a.jsx(PJ,{})}),a.jsx(Ue,{path:"/accessibility",element:a.jsx(OJ,{})}),a.jsx(Ue,{path:"/disclaimer",element:a.jsx(DJ,{})}),a.jsx(Ue,{path:"/checkout/return",element:a.jsx(IJ,{})}),a.jsx(Ue,{path:"/capital-conversation-tracker",element:a.jsx(ete,{})}),a.jsx(Ue,{path:"/capital-conversation-tracker/mine",element:a.jsx(Jne,{})}),a.jsx(Ue,{path:"/auth",element:a.jsx(yte,{})}),a.jsx(Ue,{path:"/east-west-climate-capital-delegation",element:a.jsx(Mne,{})})]}),a.jsx(Ue,{path:"/east-west/reserve",element:a.jsx(Yne,{})}),a.jsx(Ue,{path:"*",element:a.jsx(_K,{})})]})]})})]})})});j_(document.getElementById("root")).render(a.jsx(fse,{}));

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.