vendor: 5,557 bytes, line 1
1function UT(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Vx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yd={exports:{}},Uo={},Jd={exports:{}},Le={};var fy;function $T(){if(fy)return Le;fy=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,b={};function T(R,U,Ce){this.props=R,this.context=U,this.refs=b,this.updater=Ce||P}T.prototype.isReactComponent={},T.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,U,"setState")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function j(){}j.prototype=T.prototype;function k(R,U,Ce){this.props=R,this.context=U,this.refs=b,this.updater=Ce||P}var D=k.prototype=new j;D.constructor=k,C(D,T.prototype),D.isPureReactComponent=!0;var F=Array.isArray,V=Object.prototype.hasOwnProperty,q={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function ne(R,U,Ce){var Re,Ve={},Fe=null,Be=null;if(U!=null)for(Re in U.ref!==void 0&&(Be=U.ref),U.key!==void 0&&(Fe=""+U.key),U)V.call(U,Re)&&!Q.hasOwnProperty(Re)&&(Ve[Re]=U[Re]);var Ue=arguments.length-2;if(Ue===1)Ve.children=Ce;else if(1<Ue){for(var Ke=Array(Ue),jt=0;jt<Ue;jt++)Ke[jt]=arguments[jt+2];Ve.children=Ke}if(R&&R.defaultProps)for(Re in Ue=R.defaultProps,Ue)Ve[Re]===void 0&&(Ve[Re]=Ue[Re]);return{$$typeof:t,type:R,key:Fe,ref:Be,props:Ve,_owner:q.current}}function me(R,U){return{$$typeof:t,type:R.type,key:U,ref:R.ref,props:R.props,_owner:R._owner}}function ve(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function be(R){var U={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Ce){return U[Ce]})}var X=/\/+/g;function ie(R,U){return typeof R=="object"&&R!==null&&R.key!=null?be(""+R.key):U.toString(36)}function K(R,U,Ce,Re,Ve){var Fe=typeof R;(Fe==="undefined"||Fe==="boolean")&&(R=null);var Be=!1;if(R===null)Be=!0;else switch(Fe){case"string":case"number":Be=!0;break;case"object":switch(R.$$typeof){case t:case e:Be=!0}}if(Be)return Be=R,Ve=Ve(Be),R=Re===""?"."+ie(Be,0):Re,F(Ve)?(Ce="",R!=null&&(Ce=R.replace(X,"$&/")+"/"),K(Ve,U,Ce,"",function(jt){return jt})):Ve!=null&&(ve(Ve)&&(Ve=me(Ve,Ce+(!Ve.key||Be&&Be.key===Ve.key?"":(""+Ve.key).replace(X,"$&/")+"/")+R)),U.push(Ve)),1;if(Be=0,Re=Re===""?".":Re+":",F(R))for(var Ue=0;Ue<R.length;Ue++){Fe=R[Ue];var Ke=Re+ie(Fe,Ue);Be+=K(Fe,U,Ce,Ke,Ve)}else if(Ke=x(R),typeof Ke=="function")for(R=Ke.call(R),Ue=0;!(Fe=R.next()).done;)Fe=Fe.value,Ke=Re+ie(Fe,Ue++),Be+=K(Fe,U,Ce,Ke,Ve);else if(Fe==="object")throw U=String(R),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Be}function Se(R,U,Ce){if(R==null)return R;var Re=[],Ve=0;return K(R,Re,"","",function(Fe){return U.call(Ce,Fe,Ve++)}),Re}function ge(R){if(R._status===-1){var U=R._result;U=U(),U.then(function(Ce){(R._status===0||R._status===-1)&&(R._status=1,R._result=Ce)},function(Ce){(R._status===0||R._status===-1)&&(R._status=2,R._result=Ce)}),R._status===-1&&(R._status=0,R._result=U)}if(R._status===1)return R._result.default;throw R._result}var se={current:null},B={transition:null},te={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:B,ReactCurrentOwner:q};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Le.Children={map:Se,forEach:function(R,U,Ce){Se(R,function(){U.apply(this,arguments)},Ce)},count:function(R){var U=0;return Se(R,function(){U++}),U},toArray:function(R){return Se(R,function(U){return U})||[]},only:function(R){if(!ve(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Le.Component=T,Le.Fragment=n,Le.Profiler=o,Le.PureComponent=k,Le.StrictMode=i,Le.Suspense=p,Le.__SECRET_INT
vendor: 4,651 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Le.act=Y,Le.cloneElement=function(R,U,Ce){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var Re=C({},R.props),Ve=R.key,Fe=R.ref,Be=R._owner;if(U!=null){if(U.ref!==void 0&&(Fe=U.ref,Be=q.current),U.key!==void 0&&(Ve=""+U.key),R.type&&R.type.defaultProps)var Ue=R.type.defaultProps;for(Ke in U)V.call(U,Ke)&&!Q.hasOwnProperty(Ke)&&(Re[Ke]=U[Ke]===void 0&&Ue!==void 0?Ue[Ke]:U[Ke])}var Ke=arguments.length-2;if(Ke===1)Re.children=Ce;else if(1<Ke){Ue=Array(Ke);for(var jt=0;jt<Ke;jt++)Ue[jt]=arguments[jt+2];Re.children=Ue}return{$$typeof:t,type:R.type,key:Ve,ref:Fe,props:Re,_owner:Be}},Le.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:l,_context:R},R.Consumer=R},Le.createElement=ne,Le.createFactory=function(R){var U=ne.bind(null,R);return U.type=R,U},Le.createRef=function(){return{current:null}},Le.forwardRef=function(R){return{$$typeof:f,render:R}},Le.isValidElement=ve,Le.lazy=function(R){return{$$typeof:g,_payload:{_status:-1,_result:R},_init:ge}},Le.memo=function(R,U){return{$$typeof:m,type:R,compare:U===void 0?null:U}},Le.startTransition=function(R){var U=B.transition;B.transition={};try{R()}finally{B.transition=U}},Le.unstable_act=Y,Le.useCallback=function(R,U){return se.current.useCallback(R,U)},Le.useContext=function(R){return se.current.useContext(R)},Le.useDebugValue=function(){},Le.useDeferredValue=function(R){return se.current.useDeferredValue(R)},Le.useEffect=function(R,U){return se.current.useEffect(R,U)},Le.useId=function(){return se.current.useId()},Le.useImperativeHandle=function(R,U,Ce){return se.current.useImperativeHandle(R,U,Ce)},Le.useInsertionEffect=function(R,U){return se.current.useInsertionEffect(R,U)},Le.useLayoutEffect=function(R,U){return se.current.useLayoutEffect(R,U)},Le.useMemo=function(R,U){return se.current.useMemo(R,U)},Le.useReducer=function(R,U,Ce){return se.current.useReducer(R,U,Ce)},Le.useRef=function(R){return se.current.useRef(R)},Le.useState=function(R){return se.current.useState(R)},Le.useSyncExternalStore=function(R,U,Ce){return se.current.useSyncExternalStore(R,U,Ce)},Le.useTransition=function(){return se.current.useTransition()},Le.version="18.3.1",Le}var hy;function Lu(){return hy||(hy=1,Jd.exports=$T()),Jd.exports}var py;function WT(){if(py)return Uo;py=1;var t=Lu(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,p,m){var g,v={},x=null,P=null;m!==void 0&&(x=""+m),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(P=p.ref);for(g in p)i.call(p,g)&&!l.hasOwnProperty(g)&&(v[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:e,type:f,key:x,ref:P,props:v,_owner:o.current}}return Uo.Fragment=n,Uo.jsx=u,Uo.jsxs=u,Uo}var my;function HT(){return my||(my=1,Yd.exports=WT()),Yd.exports}var d=HT(),ql={},ef={exports:{}},an={},tf={exports:{}},nf={};var gy;function qT(){return gy||(gy=1,(function(t){function e(B,te){var Y=B.length;B.push(te);e:for(;0<Y;){var R=Y-1>>>1,U=B[R];if(0<o(U,te))B[R]=te,B[Y]=U,Y=R;else break e}}function n(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var te=B[0],Y=B.pop();if(Y!==te){B[0]=Y;e:for(var R=0,U=B.length,Ce=U>>>1;R<Ce;){var Re=2*(R+1)-1,Ve=B[Re],Fe=Re+1,Be=B[Fe];if(0>o(Ve,Y))Fe<U&&0>o(Be,Ve)?(B[R]=Be,B[Fe]=Y,R=Fe):(B[R]=Ve,B[Re]=Y,R=Re);else if(Fe<U&&0>o(Be,Y))B[R]=Be,B[Fe]=Y,R=Fe;else break e}}return te}function o(B,te){var Y=B.sortIndex-te.sortIndex;return Y!==0?Y:B.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var p=[],m=[],g=1,v=null,x=3,P=!1,C=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(B){for(var te=n(m);te!==null;){if(te.callback===null)i(m);else if(te.startTime<=B)i(m),te.sortIndex=te.expirationTime,e(p,te);else break;te=n(m)}}function F(B){if(b=!1,D(B),!C)if(n(p)!==null)C=!0,ge(V);else{var te=n(m);te!==null&&se(F,te.startTime-B)}}function V(B,te){C=!1,b&&(b=!1,j(ne),ne=-1),P=!0;var Y=x;
vendor: 39,903 bytes, lines 1-5
1try{for(D(te),v=n(p);v!==null&&(!(v.expirationTime>te)||B&&!be());){var R=v.callback;if(typeof R=="function"){v.callback=null,x=v.priorityLevel;var U=R(v.expirationTime<=te);te=t.unstable_now(),typeof U=="function"?v.callback=U:v===n(p)&&i(p),D(te)}else i(p);v=n(p)}if(v!==null)var Ce=!0;else{var Re=n(m);Re!==null&&se(F,Re.startTime-te),Ce=!1}return Ce}finally{v=null,x=Y,P=!1}}var q=!1,Q=null,ne=-1,me=5,ve=-1;function be(){return!(t.unstable_now()-ve<me)}function X(){if(Q!==null){var B=t.unstable_now();ve=B;var te=!0;try{te=Q(!0,B)}finally{te?ie():(q=!1,Q=null)}}else q=!1}var ie;if(typeof k=="function")ie=function(){k(X)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,Se=K.port2;K.port1.onmessage=X,ie=function(){Se.postMessage(null)}}else ie=function(){T(X,0)};function ge(B){Q=B,q||(q=!0,ie())}function se(B,te){ne=T(function(){B(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_continueExecution=function(){C||P||(C=!0,ge(V))},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return n(p)},t.unstable_next=function(B){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var Y=x;x=te;try{return B()}finally{x=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(B,te){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Y=x;x=B;try{return te()}finally{x=Y}},t.unstable_scheduleCallback=function(B,te,Y){var R=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?R+Y:R):Y=R,B){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=Y+U,B={id:g++,callback:te,priorityLevel:B,startTime:Y,expirationTime:U,sortIndex:-1},Y>R?(B.sortIndex=Y,e(m,B),n(p)===null&&B===n(m)&&(b?(j(ne),ne=-1):b=!0,se(F,Y-R))):(B.sortIndex=U,e(p,B),C||P||(C=!0,ge(V))),B},t.unstable_shouldYield=be,t.unstable_wrapCallback=function(B){var te=x;return function(){var Y=x;x=te;try{return B.apply(this,arguments)}finally{x=Y}}}})(nf)),nf}var yy;function KT(){return yy||(yy=1,tf.exports=qT()),tf.exports}var vy;function QT(){if(vy)return an;vy=1;var t=Lu(),e=KT();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(o[r]=s,r=0;r<s.length;r++)i.add(s[r])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function x(r){return p.call(v,r)?!0:p.call(g,r)?!1:m.test(r)?v[r]=!0:(g[r]=!0,!1)}function P(r,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function C(r,s,a,c){if(s===null||typeof s>"u"||P(r,s,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function b(r,s,a,c,h,y,w){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=r,this.type=s,this.sanitizeURL=y,this.removeEmptyString=w}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){T[r]=new b(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];T[s]=new b(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){T[r]=new b(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){T[r]=new b(r,2,!1,r,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(r){T[r]=new b(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){T[r]=new b(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){T[r]=new b(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){T[r]=new b(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){T[r]=new b(r,5,!1,r.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function k(r){return r[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(r){var s=r.replace(j,k);T[s]=new b(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(j,k);T[s]=new b(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(j,k);T[s]=new b(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){T[r]=new b(r,1,!1,r.toLowerCase(),null,!1,!1)}),T.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){T[r]=new b(r,1,!1,r.toLowerCase(),null,!0,!0)});function D(r,s,a,c){var h=T.hasOwnProperty(s)?T[s]:null;(h!==null?h.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(C(s,a,h,c)&&(a=null),c||h===null?x(s)&&(a===null?r.removeAttribute(s):r.setAttribute(s,""+a)):h.mustUseProperty?r[h.propertyName]=a===null?h.type===3?!1:"":a:(s=h.attributeName,c=h.attributeNamespace,a===null?r.removeAttribute(s):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,c?r.setAttributeNS(c,s,a):r.setAttribute(s,a))))}var F=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),q=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),be=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),B=Symbol.iterator;function te(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var Y=Object.assign,R;function U(r){if(R===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);R=s&&s[1]||""}return` 2`+R+r}var Ce=!1;function Re(r,s){if(!r||Ce)return"";Ce=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(L){var c=L}Reflect.construct(r,[],s)}else{try{s.call()}catch(L){c=L}r.call(s.prototype)}else{try{throw Error()}catch(L){c=L}r()}}catch(L){if(L&&c&&typeof L.stack=="string"){for(var h=L.stack.split(` 3`),y=c.stack.split(` 4`),w=h.length-1,N=y.length-1;1<=w&&0<=N&&h[w]!==y[N];)N--;for(;1<=w&&0<=N;w--,N--)if(h[w]!==y[N]){if(w!==1||N!==1)do if(w--,N--,0>N||h[w]!==y[N]){var E=` 5`+h[w].replace(" at new "," at ");return r.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",r.displayName)),E}while(1<=w&&0<=N);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?U(r):""}function Ve(r){switch(r.tag){case 5:return U(r.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return r=Re(r.type,!1),r;case 11:return r=Re(r.type.render,!1),r;case 1:return r=Re(r.type,!0),r;default:return""}}function Fe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Q:return"Fragment";case q:return"Portal";case me:return"Profiler";case ne:return"StrictMode";case ie:return"Suspense";case K:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case be:return(r.displayName||"Context")+".Consumer";case ve:return(r._context.displayName||"Context")+".Provider";case X:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Se:return s=r.displayName||null,s!==null?s:Fe(r.type)||"Memo";case ge:s=r._payload,r=r._init;try{return Fe(r(s))}catch{}}return null}function Be(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fe(s);case 8:return s===ne?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ue(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ke(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function jt(r){var s=Ke(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,y=a.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return h.call(this)},set:function(w){c=""+w,y.call(this,w)}}),Object.defineProperty(r,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Zn(r){r._valueTracker||(r._valueTracker=jt(r))}function Ps(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return r&&(c=Ke(r)?r.checked?"true":"false":r.value),r=c,r!==a?(s.setValue(r),!0):!1}function _n(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Ys(r,s){var a=s.checked;return Y({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function La(r,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=Ue(s.value!=null?s.value:a),r._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function no(r,s){s=s.checked,s!=null&&D(r,"checked",s,!1)}function Js(r,s){no(r,s);var a=Ue(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?ro(r,s.type,a):s.hasOwnProperty("defaultValue")&&ro(r,s.type,Ue(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function Va(r,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,a||s===r.value||(r.value=s),r.defaultValue=s}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function ro(r,s,a){(s!=="number"||_n(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var ei=Array.isArray;function mr(r,s,a,c){if(r=r.options,s){s={};for(var h=0;h<a.length;h++)s["$"+a[h]]=!0;for(a=0;a<r.length;a++)h=s.hasOwnProperty("$"+r[a].value),r[a].selected!==h&&(r[a].selected=h),h&&c&&(r[a].defaultSelected=!0)}else{for(a=""+Ue(a),s=null,h=0;h<r.length;h++){if(r[h].value===a){r[h].selected=!0,c&&(r[h].defaultSelected=!0);return}s!==null||r[h].disabled||(s=r[h])}s!==null&&(s.selected=!0)}}function _(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function I(r,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if(ei(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}r._wrapperState={initialValue:Ue(a)}}function z(r,s){var a=Ue(s.value),c=Ue(s.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),s.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),c!=null&&(r.defaultValue=""+c)}function ue(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function re(r){switch(r){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 J(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?re(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var fe,ze=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,c,h){MSApp.execUnsafeLocalFunction(function(){return r(s,a,c,h)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(fe=fe||document.createElement("div"),fe.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=fe.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Ye(r,s){if(s){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=s;return}}r.textContent=s}var dt={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},dc=["Webkit","ms","Moz","O"];Object.keys(dt).forEach(function(r){dc.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),dt[s]=dt[r]})});function ti(r,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||dt.hasOwnProperty(r)&&dt[r]?(""+s).trim():s+"px"}function ni(r,s){r=r.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,h=ti(a,s[a],c);a==="float"&&(a="cssFloat"),c?r.setProperty(a,h):r[a]=h}}var fc=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ri(r,s){if(s){if(fc[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function so(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 si=null;function hc(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var pc=null,ii=null,oi=null;function _p(r){if(r=jo(r)){if(typeof pc!="function")throw Error(n(280));var s=r.stateNode;s&&(s=al(s),pc(r.stateNode,r.type,s))}}function Ep(r){ii?oi?oi.push(r):oi=[r]:ii=r}function Ap(){if(ii){var r=ii,s=oi;if(oi=ii=null,_p(r),s)for(r=0;r<s.length;r++)_p(s[r])}}function Rp(r,s){return r(s)}function Dp(){}var mc=!1;function Mp(r,s,a){if(mc)return r(s,a);mc=!0;try{return Rp(r,s,a)}finally{mc=!1,(ii!==null||oi!==null)&&(Dp(),Ap())}}function io(r,s){var a=r.stateNode;if(a===null)return null;var c=al(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var gc=!1;if(f)try{var oo={};Object.defineProperty(oo,"passive",{get:function(){gc=!0}}),window.addEventListener("test",oo,oo),window.removeEventListener("test",oo,oo)}catch{gc=!1}function Q1(r,s,a,c,h,y,w,N,E){var L=Array.prototype.slice.call(arguments,3);try{s.apply(a,L)}catch(H){this.onError(H)}}var ao=!1,Fa=null,Ba=!1,yc=null,Z1={onError:function(r){ao=!0,Fa=r}};function G1(r,s,a,c,h,y,w,N,E){ao=!1,Fa=null,Q1.apply(Z1,arguments)}function X1(r,s,a,c,h,y,w,N,E){if(G1.apply(this,arguments),ao){if(ao){var L=Fa;ao=!1,Fa=null}else throw Error(n(198));Ba||(Ba=!0,yc=L)}}function Ns(r){var s=r,a=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(a=s.return),r=s.return;while(r)}return s.tag===3?a:null}function Op(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function Ip(r){if(Ns(r)!==r)throw Error(n(188))}function Y1(r){var s=r.alternate;if(!s){if(s=Ns(r),s===null)throw Error(n(188));return s!==r?null:r}for(var a=r,c=s;;){var h=a.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===a)return Ip(h),r;if(y===c)return Ip(h),s;y=y.sibling}throw Error(n(188))}if(a.return!==c.return)a=h,c=y;else{for(var w=!1,N=h.child;N;){if(N===a){w=!0,a=h,c=y;break}if(N===c){w=!0,c=h,a=y;break}N=N.sibling}if(!w){for(N=y.child;N;){if(N===a){w=!0,a=y,c=h;break}if(N===c){w=!0,c=y,a=h;break}N=N.sibling}if(!w)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:s}function Lp(r){return r=Y1(r),r!==null?Vp(r):null}function Vp(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=Vp(r);if(s!==null)return s;r=r.sibling}return null}var Fp=e.unstable_scheduleCallback,Bp=e.unstable_cancelCallback,J1=e.unstable_shouldYield,eS=e.unstable_requestPaint,gt=e.unstable_now,tS=e.unstable_getCurrentPriorityLevel,vc=e.unstable_ImmediatePriority,zp=e.unstable_UserBlockingPriority,za=e.unstable_NormalPriority,nS=e.unstable_LowPriority,Up=e.unstable_IdlePriority,Ua=null,Gn=null;function rS(r){if(Gn&&typeof Gn.onCommitFiberRoot=="function")try{Gn.onCommitFiberRoot(Ua,r,void 0,(r.current.flags&128)===128)}catch{}}var En=Math.clz32?Math.clz32:oS,sS=Math.log,iS=Math.LN2;function oS(r){return r>>>=0,r===0?32:31-(sS(r)/iS|0)|0}var $a=64,Wa=4194304;function lo(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ha(r,s){var a=r.pendingLanes;if(a===0)return 0;var c=0,h=r.suspendedLanes,y=r.pingedLanes,w=a&268435455;if(w!==0){var N=w&~h;N!==0?c=lo(N):(y&=w,y!==0&&(c=lo(y)))}else w=a&~h,w!==0?c=lo(w):y!==0&&(c=lo(y));if(c===0)return 0;if(s!==0&&s!==c&&(s&h)===0&&(h=c&-c,y=s&-s,h>=y||h===16&&(y&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=c;0<s;)a=31-En(s),h=1<<a,c|=r[a],s&=~h;return c}function aS(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 lS(r,s){for(var a=r.suspendedLanes,c=r.pingedLanes,h=r.expirationTimes,y=r.pendingLanes;0<y;){var w=31-En(y),N=1<<w,E=h[w];E===-1?((N&a)===0||(N&c)!==0)&&(h[w]=aS(N,s)):E<=s&&(r.expiredLanes|=N),y&=~N}}function xc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function $p(){var r=$a;return $a<<=1,($a&4194240)===0&&($a=64),r}function wc(r){for(var s=[],a=0;31>a;a++)s.push(r);return s}function uo(r,s,a){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-En(s),r[s]=a}function uS(r,s){var a=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<a;){var h=31-En(a),y=1<<h;s[h]=0,c[h]=-1,r[h]=-1,a&=~y}}function bc(r,s){var a=r.entangledLanes|=s;for(r=r.entanglements;a;){var c=31-En(a),h=1<<c;h&s|r[c]&s&&(r[c]|=s),a&=~h}}var Ze=0;function Wp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Hp,Sc,qp,Kp,Qp,Tc=!1,qa=[],Br=null,zr=null,Ur=null,co=new Map,fo=new Map,$r=[],cS="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 Zp(r,s){switch(r){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":co.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":fo.delete(s.pointerId)}}function ho(r,s,a,c,h,y){return r===null||r.nativeEvent!==y?(r={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},s!==null&&(s=jo(s),s!==null&&Sc(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),r)}function dS(r,s,a,c,h){switch(s){case"focusin":return Br=ho(Br,r,s,a,c,h),!0;case"dragenter":return zr=ho(zr,r,s,a,c,h),!0;case"mouseover":return Ur=ho(Ur,r,s,a,c,h),!0;case"pointerover":var y=h.pointerId;return co.set(y,ho(co.get(y)||null,r,s,a,c,h)),!0;case"gotpointercapture":return y=h.pointerId,fo.set(y,ho(fo.get(y)||null,r,s,a,c,h)),!0}return!1}function Gp(r){var s=Cs(r.target);if(s!==null){var a=Ns(s);if(a!==null){if(s=a.tag,s===13){if(s=Op(a),s!==null){r.blockedOn=s,Qp(r.priority,function(){qp(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ka(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var a=Nc(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var c=new a.constructor(a.type,a);si=c,a.target.dispatchEvent(c),si=null}else return s=jo(a),s!==null&&Sc(s),r.blockedOn=a,!1;s.shift()}return!0}function Xp(r,s,a){Ka(r)&&a.delete(s)}function fS(){Tc=!1,Br!==null&&Ka(Br)&&(Br=null),zr!==null&&Ka(zr)&&(zr=null),Ur!==null&&Ka(Ur)&&(Ur=null),co.forEach(Xp),fo.forEach(Xp)}function po(r,s){r.blockedOn===s&&(r.blockedOn=null,Tc||(Tc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fS)))}function mo(r){function s(h){return po(h,r)}if(0<qa.length){po(qa[0],r);for(var a=1;a<qa.length;a++){var c=qa[a];c.blockedOn===r&&(c.blockedOn=null)}}for(Br!==null&&po(Br,r),zr!==null&&po(zr,r),Ur!==null&&po(Ur,r),co.forEach(s),fo.forEach(s),a=0;a<$r.length;a++)c=$r[a],c.blockedOn===r&&(c.blockedOn=null);for(;0<$r.length&&(a=$r[0],a.blockedOn===null);)Gp(a),a.blockedOn===null&&$r.shift()}var ai=F.ReactCurrentBatchConfig,Qa=!0;function hS(r,s,a,c){var h=Ze,y=ai.transition;ai.transition=null;try{Ze=1,Pc(r,s,a,c)}finally{Ze=h,ai.transition=y}}function pS(r,s,a,c){var h=Ze,y=ai.transition;ai.transition=null;try{Ze=4,Pc(r,s,a,c)}finally{Ze=h,ai.transition=y}}function Pc(r,s,a,c){if(Qa){var h=Nc(r,s,a,c);if(h===null)Uc(r,s,c,Za,a),Zp(r,c);else if(dS(h,r,s,a,c))c.stopPropagation();else if(Zp(r,c),s&4&&-1<cS.indexOf(r)){for(;h!==null;){var y=jo(h);if(y!==null&&Hp(y),y=Nc(r,s,a,c),y===null&&Uc(r,s,c,Za,a),y===h)break;h=y}h!==null&&c.stopPropagation()}else Uc(r,s,c,null,a)}}var Za=null;function Nc(r,s,a,c){if(Za=null,r=hc(c),r=Cs(r),r!==null)if(s=Ns(r),s===null)r=null;else if(a=s.tag,a===13){if(r=Op(s),r!==null)return r;r=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return Za=r,null}function Yp(r){switch(r){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(tS()){case vc:return 1;case zp:return 4;case za:case nS:return 16;case Up:return 536870912;default:return 16}default:return 16}}var Wr=null,Cc=null,Ga=null;function Jp(){if(Ga)return Ga;var r,s=Cc,a=s.length,c,h="value"in Wr?Wr.value:Wr.textContent,y=h.length;for(r=0;r<a&&s[r]===h[r];r++);var w=a-r;for(c=1;c<=w&&s[a-c]===h[y-c];c++);return Ga=h.slice(r,1<c?1-c:void 0)}function Xa(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Ya(){return!0}function em(){return!1}function dn(r){function s(a,c,h,y,w){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var N in r)r.hasOwnProperty(N)&&(a=r[N],this[N]=a?a(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Ya:em,this.isPropagationStopped=em,this}return Y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ya)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ya)},persist:function(){},isPersistent:Ya}),s}var li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jc=dn(li),go=Y({},li,{view:0,detail:0}),mS=dn(go),kc,_c,yo,Ja=Y({},go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==yo&&(yo&&r.type==="mousemove"?(kc=r.screenX-yo.screenX,_c=r.screenY-yo.screenY):_c=kc=0,yo=r),kc)},movementY:function(r){return"movementY"in r?r.movementY:_c}}),tm=dn(Ja),gS=Y({},Ja,{dataTransfer:0}),yS=dn(gS),vS=Y({},go,{relatedTarget:0}),Ec=dn(vS),xS=Y({},li,{animationName:0,elapsedTime:0,pseudoElement:0}),wS=dn(xS),bS=Y({},li,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),SS=dn(bS),TS=Y({},li,{data:0}),nm=dn(TS),PS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NS={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"},CS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jS(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=CS[r])?!!s[r]:!1}function Ac(){return jS}var kS=Y({},go,{key:function(r){if(r.key){var s=PS[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Xa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?NS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(r){return r.type==="keypress"?Xa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Xa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),_S=dn(kS),ES=Y({},Ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rm=dn(ES),AS=Y({},go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),RS=dn(AS),DS=Y({},li,{propertyName:0,elapsedTime:0,pseudoElement:0}),MS=dn(DS),OS=Y({},Ja,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),IS=dn(OS),LS=[9,13,27,32],Rc=f&&"CompositionEvent"in window,vo=null;f&&"documentMode"in document&&(vo=document.documentMode);var VS=f&&"TextEvent"in window&&!vo,sm=f&&(!Rc||vo&&8<vo&&11>=vo),im=" ",om=!1;function am(r,s){switch(r){case"keyup":return LS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lm(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ui=!1;function FS(r,s){switch(r){case"compositionend":return lm(s);case"keypress":return s.which!==32?null:(om=!0,im);case"textInput":return r=s.data,r===im&&om?null:r;default:return null}}function BS(r,s){if(ui)return r==="compositionend"||!Rc&&am(r,s)?(r=Jp(),Ga=Cc=Wr=null,ui=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return sm&&s.locale!=="ko"?null:s.data;default:return null}}var zS={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 um(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!zS[r.type]:s==="textarea"}function cm(r,s,a,c){Ep(c),s=sl(s,"onChange"),0<s.length&&(a=new jc("onChange","change",null,a,c),r.push({event:a,listeners:s}))}var xo=null,wo=null;function US(r){km(r,0)}function el(r){var s=pi(r);if(Ps(s))return r}function $S(r,s){if(r==="change")return s}var dm=!1;if(f){var Dc;if(f){var Mc="oninput"in document;if(!Mc){var fm=document.createElement("div");fm.setAttribute("oninput","return;"),Mc=typeof fm.oninput=="function"}Dc=Mc}else Dc=!1;dm=Dc&&(!document.documentMode||9<document.documentMode)}function hm(){xo&&(xo.detachEvent("onpropertychange",pm),wo=xo=null)}function pm(r){if(r.propertyName==="value"&&el(wo)){var s=[];cm(s,wo,r,hc(r)),Mp(US,s)}}function WS(r,s,a){r==="focusin"?(hm(),xo=s,wo=a,xo.attachEvent("onpropertychange",pm)):r==="focusout"&&hm()}function HS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return el(wo)}function qS(r,s){if(r==="click")return el(s)}function KS(r,s){if(r==="input"||r==="change")return el(s)}function QS(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var An=typeof Object.is=="function"?Object.is:QS;function bo(r,s){if(An(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var a=Object.keys(r),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!p.call(s,h)||!An(r[h],s[h]))return!1}return!0}function mm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function gm(r,s){var a=mm(r);r=0;for(var c;a;){if(a.nodeType===3){if(c=r+a.textContent.length,r<=s&&c>=s)return{node:a,offset:s-r};r=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mm(a)}}function ym(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?ym(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function vm(){for(var r=window,s=_n();s instanceof r.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)r=s.contentWindow;else break;s=_n(r.document)}return s}function Oc(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function ZS(r){var s=vm(),a=r.focusedElem,c=r.selectionRange;if(s!==a&&a&&a.ownerDocument&&ym(a.ownerDocument.documentElement,a)){if(c!==null&&Oc(a)){if(s=c.start,r=c.end,r===void 0&&(r=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(r,a.value.length);else if(r=(s=a.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var h=a.textContent.length,y=Math.min(c.start,h);c=c.end===void 0?y:Math.min(c.end,h),!r.extend&&y>c&&(h=c,c=y,y=h),h=gm(a,y);var w=gm(a,c);h&&w&&(r.rangeCount!==1||r.anchorNode!==h.node||r.anchorOffset!==h.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(s=s.createRange(),s.setStart(h.node,h.offset),r.removeAllRanges(),y>c?(r.addRange(s),r.extend(w.node,w.offset)):(s.setEnd(w.node,w.offset),r.addRange(s)))}}for(s=[],r=a;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)r=s[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var GS=f&&"documentMode"in document&&11>=document.documentMode,ci=null,Ic=null,So=null,Lc=!1;function xm(r,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Lc||ci==null||ci!==_n(c)||(c=ci,"selectionStart"in c&&Oc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),So&&bo(So,c)||(So=c,c=sl(Ic,"onSelect"),0<c.length&&(s=new jc("onSelect","select",null,s,a),r.push({event:s,listeners:c}),s.target=ci)))}function tl(r,s){var a={};return a[r.toLowerCase()]=s.toLowerCase(),a["Webkit"+r]="webkit"+s,a["Moz"+r]="moz"+s,a}var di={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionend:tl("Transition","TransitionEnd")},Vc={},wm={};f&&(wm=document.createElement("div").style,"AnimationEvent"in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),"TransitionEvent"in window||delete di.transitionend.transition);function nl(r){if(Vc[r])return Vc[r];if(!di[r])return r;var s=di[r],a;for(a in s)if(s.hasOwnProperty(a)&&a in wm)return Vc[r]=s[a];return r}var bm=nl("animationend"),Sm=nl("animationiteration"),Tm=nl("animationstart"),Pm=nl("transitionend"),Nm=new Map,Cm="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 Hr(r,s){Nm.set(r,s),l(s,[r])}for(var Fc=0;Fc<Cm.length;Fc++){var Bc=Cm[Fc],XS=Bc.toLowerCase(),YS=Bc[0].toUpperCase()+Bc.slice(1);Hr(XS,"on"+YS)}Hr(bm,"onAnimationEnd"),Hr(Sm,"onAnimationIteration"),Hr(Tm,"onAnimationStart"),Hr("dblclick","onDoubleClick"),Hr("focusin","onFocus"),Hr("focusout","onBlur"),Hr(Pm,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
5sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),JS=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function jm(r,s,a){var c=r.type||"unknown-event";r.currentTarget=a,X1(c,s,void 0,r),r.currentTarget=null}function km(r,s){s=(s&4)!==0;for(var a=0;a<r.length;a++){var c=r[a],h=c.event;c=c.listeners;e:{var y=void 0;if(s)for(var w=c.length-1;0<=w;w--){var N=c[w],E=N.instance,L=N.currentTarget;if(N=N.listener,E!==y&&h.isPropagationStopped())break e;jm(h,N,L),y=E}else for(w=0;w<c.length;w++){if(N=c[w],E=N.instance,L=N.currentTarget,N=N.listener,E!==y&&h.isPropagationStopped())break e;jm(h,N,L),y=E}}}if(Ba)throw r=yc,Ba=!1,yc=null,r}function tt(r,s){var a=s[Qc];a===void 0&&(a=s[Qc]=new Set);var c=r+"__bubble";a.has(c)||(_m(s,r,2,!1),a.add(c))}function zc(r,s,a){var c=0;s&&(c|=4),_m(a,r,c,s)}var rl="_reactListening"+Math.random().toString(36).slice(2);function Po(r){if(!r[rl]){r[rl]=!0,i.forEach(function(a){a!=="selectionchange"&&(JS.has(a)||zc(a,!1,r),zc(a,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[rl]||(s[rl]=!0,zc("selectionchange",!1,s))}}function _m(r,s,a,c){switch(Yp(s)){case 1:var h=hS;break;case 4:h=pS;break;default:h=Pc}a=h.bind(null,s,a,r),h=void 0,!gc||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),c?h!==void 0?r.addEventListener(s,a,{capture:!0,passive:h}):r.addEventListener(s,a,!0):h!==void 0?r.addEventListener(s,a,{passive:h}):r.addEventListener(s,a,!1)}function Uc(r,s,a,c,h){var y=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var N=c.stateNode.containerInfo;if(N===h||N.nodeType===8&&N.parentNode===h)break;if(w===4)for(w=c.return;w!==null;){var E=w.tag;if((E===3||E===4)&&(E=w.stateNode.containerInfo,E===h||E.nodeType===8&&E.parentNode===h))return;w=w.return}for(;N!==null;){if(w=Cs(N),w===null)return;if(E=w.tag,E===5||E===6){c=y=w;continue e}N=N.parentNode}}c=c.return}Mp(function(){var L=y,H=hc(a),Z=[];e:{var $=Nm.get(r);if($!==void 0){var ce=jc,pe=r;switch(r){case"keypress":if(Xa(a)===0)break e;case"keydown":case"keyup":ce=_S;break;case"focusin":pe="focus",ce=Ec;break;case"focusout":pe="blur",ce=Ec;break;case"beforeblur":case"afterblur":ce=Ec;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=tm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=yS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=RS;break;case bm:case Sm:case Tm:ce=wS;break;case Pm:ce=MS;break;case"scroll":ce=mS;break;case"wheel":ce=IS;break;case"copy":case"cut":case"paste":ce=SS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=rm}var ye=(s&4)!==0,yt=!ye&&r==="scroll",M=ye?$!==null?$+"Capture":null:$;ye=[];for(var A=L,O;A!==null;){O=A;var ee=O.stateNode;if(O.tag===5&&ee!==null&&(O=ee,M!==null&&(ee=io(A,M),ee!=null&&ye.push(No(A,ee,O)))),yt)break;A=A.return}0<ye.length&&($=new ce($,pe,null,a,H),Z.push({event:$,listeners:ye}))}}if((s&7)===0){e:{if($=r==="mouseover"||r==="pointerover",ce=r==="mouseout"||r==="pointerout",$&&a!==si&&(pe=a.relatedTarget||a.fromElement)&&(Cs(pe)||pe[gr]))break e;if((ce||$)&&($=H.window===H?H:($=H.ownerDocument)?$.defaultView||$.parentWindow:window,ce?(pe=a.relatedTarget||a.toElement,ce=L,pe=pe?Cs(pe):null,pe!==null&&(yt=Ns(pe),pe!==yt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(ce=null,pe=L),ce!==pe)){if(ye=tm,ee="onMouseLeave",M="onMouseEnter",A="mou
5se",(r==="pointerout"||r==="pointerover")&&(ye=rm,ee="onPointerLeave",M="onPointerEnter",A="pointer"),yt=ce==null?$:pi(ce),O=pe==null?$:pi(pe),$=new ye(ee,A+"leave",ce,a,H),$.target=yt,$.relatedTarget=O,ee=null,Cs(H)===L&&(ye=new ye(M,A+"enter",pe,a,H),ye.target=O,ye.relatedTarget=yt,ee=ye),yt=ee,ce&&pe)t:{for(ye=ce,M=pe,A=0,O=ye;O;O=fi(O))A++;for(O=0,ee=M;ee;ee=fi(ee))O++;for(;0<A-O;)ye=fi(ye),A--;for(;0<O-A;)M=fi(M),O--;for(;A--;){if(ye===M||M!==null&&ye===M.alternate)break t;ye=fi(ye),M=fi(M)}ye=null}else ye=null;ce!==null&&Em(Z,$,ce,ye,!1),pe!==null&&yt!==null&&Em(Z,yt,pe,ye,!0)}}e:{if($=L?pi(L):window,ce=$.nodeName&&$.nodeName.toLowerCase(),ce==="select"||ce==="input"&&$.type==="file")var xe=$S;else if(um($))if(dm)xe=KS;else{xe=HS;var Te=WS}else(ce=$.nodeName)&&ce.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(xe=qS);if(xe&&(xe=xe(r,L))){cm(Z,xe,a,H);break e}Te&&Te(r,$,L),r==="focusout"&&(Te=$._wrapperState)&&Te.controlled&&$.type==="number"&&ro($,"number",$.value)}switch(Te=L?pi(L):window,r){case"focusin":(um(Te)||Te.contentEditable==="true")&&(ci=Te,Ic=L,So=null);break;case"focusout":So=Ic=ci=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,xm(Z,a,H);break;case"selectionchange":if(GS)break;case"keydown":case"keyup":xm(Z,a,H)}var Pe;if(Rc)e:{switch(r){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ui?am(r,a)&&(Ee="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Ee="onCompositionStart");Ee&&(sm&&a.locale!=="ko"&&(ui||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ui&&(Pe=Jp()):(Wr=H,Cc="value"in Wr?Wr.value:Wr.textContent,ui=!0)),Te=sl(L,Ee),0<Te.length&&(Ee=new nm(Ee,r,null,a,H),Z.push({event:Ee,listeners:Te}),Pe?Ee.data=Pe:(Pe=lm(a),Pe!==null&&(Ee.data=Pe)))),(Pe=VS?FS(r,a):BS(r,a))&&(L=sl(L,"onBeforeInput"),0<L.length&&(H=new nm("onBeforeInput","beforeinput",null,a,H),Z.push({event:H,listeners:L}),H.data=Pe))}km(Z,s)})}function No(r,s,a){return{instance:r,listener:s,currentTarget:a}}function sl(r,s){for(var a=s+"Capture",c=[];r!==null;){var h=r,y=h.stateNode;h.tag===5&&y!==null&&(h=y,y=io(r,a),y!=null&&c.unshift(No(r,y,h)),y=io(r,s),y!=null&&c.push(No(r,y,h))),r=r.return}return c}function fi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Em(r,s,a,c,h){for(var y=s._reactName,w=[];a!==null&&a!==c;){var N=a,E=N.alternate,L=N.stateNode;if(E!==null&&E===c)break;N.tag===5&&L!==null&&(N=L,h?(E=io(a,y),E!=null&&w.unshift(No(a,E,N))):h||(E=io(a,y),E!=null&&w.push(No(a,E,N)))),a=a.return}w.length!==0&&r.push({event:s,listeners:w})}var eT=/\r\n?/g,tT=/\u0000|\uFFFD/g;function Am(r){return(typeof r=="string"?r:""+r).replace(eT,` 6`).replace(tT,"")}function il(r,s,a){if(s=Am(s),Am(r)!==s&&a)throw Error(n(425))}function ol(){}var $c=null,Wc=null;function Hc(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var qc=typeof setTimeout=="function"?setTimeout:void 0,nT=typeof clearTimeout=="function"?clearTimeout:void 0,Rm=typeof Promise=="function"?Promise:void 0,rT=typeof queueMicrotask=="function"?queueMicrotask:typeof Rm<"u"?function(r){return Rm.resolve(null).then(r).catch(sT)}:qc;function sT(r){setTimeout(function(){throw r})}function Kc(r,s){var a=s,c=0;do{var h=a.nextSibling;if(r.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(c===0){r.removeChild(h),mo(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=h}while(a);mo(s)}function qr(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function Dm(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return r;s--}else a==="/$"&&s++}r=r.previousSibling}return null}var hi=Math.random().toString(36).slice(2),Xn="__reactFiber$"+hi,Co="__reactProps$"+hi,gr="__reactContainer$"+hi,Qc="__reactEvents$"+hi,iT="__reactListeners$"+hi,oT="__reactHandles$"+hi;function Cs(r){var s=r[Xn];if(s)return s;for(var a=r.parentNode;a;){if(s=a[gr]||a[Xn]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(r=Dm(r);r!==null;){if(a=r[Xn])return a;r=Dm(r)}return s}r=a,a=r.parentNode}return null}function jo(r){return r=r[Xn]||r[gr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function pi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function al(r){return r[Co]||null}var Zc=[],mi=-1;function Kr(r){return{current:r}}function nt(r){0>mi||(r.current=Zc[mi],Zc[mi]=null,mi--)}function Je(r,s){mi++,Zc[mi]=r.current,r.current=s}var Qr={},Ft=Kr(Qr),tn=Kr(!1),js=Qr;function gi(r,s){var a=r.type.contextTypes;if(!a)return Qr;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var h={},y;for(y in a)h[y]=s[y];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=h),h}function nn(r){return r=r.childContextTypes,r!=null}function ll(){nt(tn),nt(Ft)}function Mm(r,s,a){if(Ft.current!==Qr)throw Error(n(168));Je(Ft,s),Je(tn,a)}
vendor: 4,113 bytes, line 6
6function Om(r,s,a){var c=r.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var h in c)if(!(h in s))throw Error(n(108,Be(r)||"Unknown",h));return Y({},a,c)}function ul(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Qr,js=Ft.current,Je(Ft,r),Je(tn,tn.current),!0}function Im(r,s,a){var c=r.stateNode;if(!c)throw Error(n(169));a?(r=Om(r,s,js),c.__reactInternalMemoizedMergedChildContext=r,nt(tn),nt(Ft),Je(Ft,r)):nt(tn),Je(tn,a)}var yr=null,cl=!1,Gc=!1;function Lm(r){yr===null?yr=[r]:yr.push(r)}function aT(r){cl=!0,Lm(r)}function Zr(){if(!Gc&&yr!==null){Gc=!0;var r=0,s=Ze;try{var a=yr;for(Ze=1;r<a.length;r++){var c=a[r];do c=c(!0);while(c!==null)}yr=null,cl=!1}catch(h){throw yr!==null&&(yr=yr.slice(r+1)),Fp(vc,Zr),h}finally{Ze=s,Gc=!1}}return null}var yi=[],vi=0,dl=null,fl=0,bn=[],Sn=0,ks=null,vr=1,xr="";function _s(r,s){yi[vi++]=fl,yi[vi++]=dl,dl=r,fl=s}function Vm(r,s,a){bn[Sn++]=vr,bn[Sn++]=xr,bn[Sn++]=ks,ks=r;var c=vr;r=xr;var h=32-En(c)-1;c&=~(1<<h),a+=1;var y=32-En(s)+h;if(30<y){var w=h-h%5;y=(c&(1<<w)-1).toString(32),c>>=w,h-=w,vr=1<<32-En(s)+h|a<<h|c,xr=y+r}else vr=1<<y|a<<h|c,xr=r}function Xc(r){r.return!==null&&(_s(r,1),Vm(r,1,0))}function Yc(r){for(;r===dl;)dl=yi[--vi],yi[vi]=null,fl=yi[--vi],yi[vi]=null;for(;r===ks;)ks=bn[--Sn],bn[Sn]=null,xr=bn[--Sn],bn[Sn]=null,vr=bn[--Sn],bn[Sn]=null}var fn=null,hn=null,st=!1,Rn=null;function Fm(r,s){var a=Cn(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=r,s=r.deletions,s===null?(r.deletions=[a],r.flags|=16):s.push(a)}function Bm(r,s){switch(r.tag){case 5:var a=r.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,fn=r,hn=qr(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,fn=r,hn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=ks!==null?{id:vr,overflow:xr}:null,r.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=Cn(18,null,null,0),a.stateNode=s,a.return=r,r.child=a,fn=r,hn=null,!0):!1;default:return!1}}function Jc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function ed(r){if(st){var s=hn;if(s){var a=s;if(!Bm(r,s)){if(Jc(r))throw Error(n(418));s=qr(a.nextSibling);var c=fn;s&&Bm(r,s)?Fm(c,a):(r.flags=r.flags&-4097|2,st=!1,fn=r)}}else{if(Jc(r))throw Error(n(418));r.flags=r.flags&-4097|2,st=!1,fn=r}}}function zm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;fn=r}function hl(r){if(r!==fn)return!1;if(!st)return zm(r),st=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Hc(r.type,r.memoizedProps)),s&&(s=hn)){if(Jc(r))throw Um(),Error(n(418));for(;s;)Fm(r,s),s=qr(s.nextSibling)}if(zm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(s===0){hn=qr(r.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}r=r.nextSibling}hn=null}}else hn=fn?qr(r.stateNode.nextSibling):null;return!0}function Um(){for(var r=hn;r;)r=qr(r.nextSibling)}function xi(){hn=fn=null,st=!1}function td(r){Rn===null?Rn=[r]:Rn.push(r)}var lT=F.ReactCurrentBatchConfig;function ko(r,s,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var c=a.stateNode}if(!c)throw Error(n(147,r));var h=c,y=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===y?s.ref:(s=function(w){var N=h.refs;w===null?delete N[y]:N[y]=w},s._stringRef=y,s)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function pl(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function $m(r){var s=r._init;return s(r._payload)}function Wm(r){function s(M,A){if(r){var O=M.deletions;O===null?(M.deletions=[A],M.flags|=16):O.push(A)}}function a(M,A){if(!r)return null;for(;A!==null;)s(M,A),A=A.sibling;return null}function c(M,A){for(M=new Map;A!==null;
vendor: 5,914 bytes, line 6
6)A.key!==null?M.set(A.key,A):M.set(A.index,A),A=A.sibling;return M}function h(M,A){return M=rs(M,A),M.index=0,M.sibling=null,M}function y(M,A,O){return M.index=O,r?(O=M.alternate,O!==null?(O=O.index,O<A?(M.flags|=2,A):O):(M.flags|=2,A)):(M.flags|=1048576,A)}function w(M){return r&&M.alternate===null&&(M.flags|=2),M}function N(M,A,O,ee){return A===null||A.tag!==6?(A=qd(O,M.mode,ee),A.return=M,A):(A=h(A,O),A.return=M,A)}function E(M,A,O,ee){var xe=O.type;return xe===Q?H(M,A,O.props.children,ee,O.key):A!==null&&(A.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===ge&&$m(xe)===A.type)?(ee=h(A,O.props),ee.ref=ko(M,A,O),ee.return=M,ee):(ee=Vl(O.type,O.key,O.props,null,M.mode,ee),ee.ref=ko(M,A,O),ee.return=M,ee)}function L(M,A,O,ee){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=Kd(O,M.mode,ee),A.return=M,A):(A=h(A,O.children||[]),A.return=M,A)}function H(M,A,O,ee,xe){return A===null||A.tag!==7?(A=Ls(O,M.mode,ee,xe),A.return=M,A):(A=h(A,O),A.return=M,A)}function Z(M,A,O){if(typeof A=="string"&&A!==""||typeof A=="number")return A=qd(""+A,M.mode,O),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case V:return O=Vl(A.type,A.key,A.props,null,M.mode,O),O.ref=ko(M,null,A),O.return=M,O;case q:return A=Kd(A,M.mode,O),A.return=M,A;case ge:var ee=A._init;return Z(M,ee(A._payload),O)}if(ei(A)||te(A))return A=Ls(A,M.mode,O,null),A.return=M,A;pl(M,A)}return null}function $(M,A,O,ee){var xe=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number")return xe!==null?null:N(M,A,""+O,ee);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case V:return O.key===xe?E(M,A,O,ee):null;case q:return O.key===xe?L(M,A,O,ee):null;case ge:return xe=O._init,$(M,A,xe(O._payload),ee)}if(ei(O)||te(O))return xe!==null?null:H(M,A,O,ee,null);pl(M,O)}return null}function ce(M,A,O,ee,xe){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return M=M.get(O)||null,N(A,M,""+ee,xe);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case V:return M=M.get(ee.key===null?O:ee.key)||null,E(A,M,ee,xe);case q:return M=M.get(ee.key===null?O:ee.key)||null,L(A,M,ee,xe);case ge:var Te=ee._init;return ce(M,A,O,Te(ee._payload),xe)}if(ei(ee)||te(ee))return M=M.get(O)||null,H(A,M,ee,xe,null);pl(A,ee)}return null}function pe(M,A,O,ee){for(var xe=null,Te=null,Pe=A,Ee=A=0,Et=null;Pe!==null&&Ee<O.length;Ee++){Pe.index>Ee?(Et=Pe,Pe=null):Et=Pe.sibling;var qe=$(M,Pe,O[Ee],ee);if(qe===null){Pe===null&&(Pe=Et);break}r&&Pe&&qe.alternate===null&&s(M,Pe),A=y(qe,A,Ee),Te===null?xe=qe:Te.sibling=qe,Te=qe,Pe=Et}if(Ee===O.length)return a(M,Pe),st&&_s(M,Ee),xe;if(Pe===null){for(;Ee<O.length;Ee++)Pe=Z(M,O[Ee],ee),Pe!==null&&(A=y(Pe,A,Ee),Te===null?xe=Pe:Te.sibling=Pe,Te=Pe);return st&&_s(M,Ee),xe}for(Pe=c(M,Pe);Ee<O.length;Ee++)Et=ce(Pe,M,Ee,O[Ee],ee),Et!==null&&(r&&Et.alternate!==null&&Pe.delete(Et.key===null?Ee:Et.key),A=y(Et,A,Ee),Te===null?xe=Et:Te.sibling=Et,Te=Et);return r&&Pe.forEach(function(ss){return s(M,ss)}),st&&_s(M,Ee),xe}function ye(M,A,O,ee){var xe=te(O);if(typeof xe!="function")throw Error(n(150));if(O=xe.call(O),O==null)throw Error(n(151));for(var Te=xe=null,Pe=A,Ee=A=0,Et=null,qe=O.next();Pe!==null&&!qe.done;Ee++,qe=O.next()){Pe.index>Ee?(Et=Pe,Pe=null):Et=Pe.sibling;var ss=$(M,Pe,qe.value,ee);if(ss===null){Pe===null&&(Pe=Et);break}r&&Pe&&ss.alternate===null&&s(M,Pe),A=y(ss,A,Ee),Te===null?xe=ss:Te.sibling=ss,Te=ss,Pe=Et}if(qe.done)return a(M,Pe),st&&_s(M,Ee),xe;if(Pe===null){for(;!qe.done;Ee++,qe=O.next())qe=Z(M,qe.value,ee),qe!==null&&(A=y(qe,A,Ee),Te===null?xe=qe:Te.sibling=qe,Te=qe);return st&&_s(M,Ee),xe}for(Pe=c(M,Pe);!qe.done;Ee++,qe=O.next())qe=ce(Pe,M,Ee,qe.value,ee),qe!==null&&(r&&qe.alternate!==null&&Pe.delete(qe.key===null?Ee:qe.key),A=y(qe,A,Ee),Te===null?xe=qe:Te.sibling=qe,Te=qe);return r&&Pe.forEach(function(zT){return s(M,zT)}),st&&_s(M,Ee),xe}function yt(M,A,O,ee){if(typeof O=="object"&&O!==null&&O.type===Q&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case V:e:{for(var xe=O.key,Te=A;Te!==null;){if(Te.key===xe){if(xe=O.type,xe===Q){if(Te.tag===7){a(M,Te.sibling),A=h(Te,O.props.children),A.return=M,M=A;break e}}else if(Te.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===ge&&$m(xe)===Te.type){a(M,Te.sibling),A=h(Te,O.props),A.ref=ko(M,Te,O),A.return=M,M=A;break e}a(M,Te);break}else s(M,Te);Te=Te.sibling}O.type===Q?(A=Ls(O.props.children,M.mode,ee,O.key),A.return=M,M=A):(ee=Vl(O.type,O.key,O.props,null,M.mode,ee),ee.ref=ko(M,A,O),ee.return=M,M=ee)}return w(M);case q:e:{for(Te=O.key;A!==null;){if(A.key===Te)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){a(M,A.sibling),A=h(A,O.children||[]),A.return=M,M=A;break e}else{a(M,A);break}else s(M,A);A=A.sibling}A=Kd(O,M.mode,ee),A.return=M,M=A}return w(M);case ge:return Te=O._init,yt(M,A,Te(O._payload),ee)}if(ei(O))return pe(M,A,O,ee);if(te(O))return ye(M,A,O,ee);pl(M,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,A!==null&&A.tag===6?(a(M,A.sibling),A=h(A,O),A.return=M,M=A):(a(M,A),A=qd(O,M.mode,ee),A.return=M,M=A),w(M)):a(M,A)}return yt}var wi=Wm(!0),Hm=Wm(!1),ml=Kr(null),gl=null,bi=null,nd=null;function rd(){nd=bi=gl=null}function sd(r){var s=ml.current;nt(ml),r._currentValue=s}function id(r,s,a){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===a)break;r=r.return}}function Si(r,s){gl=r,nd=bi=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(rn=!0),r.firstContext=null)}function Tn(r){var s=r._currentValue;if(nd!==r)if(r={context:r,memoizedValue:s,next:null},bi===null){if(gl===null)throw Error(n(308));bi=r,gl.dependencies={lanes:0,firstContext:r}}else bi=bi.next=r;return s}var Es=null;function od(r){Es===null?Es=[r]:Es.push(r)}
vendor: 1,631 bytes, line 6
6function qm(r,s,a,c){var h=s.interleaved;return h===null?(a.next=a,od(s)):(a.next=h.next,h.next=a),s.interleaved=a,wr(r,c)}function wr(r,s){r.lanes|=s;var a=r.alternate;for(a!==null&&(a.lanes|=s),a=r,r=r.return;r!==null;)r.childLanes|=s,a=r.alternate,a!==null&&(a.childLanes|=s),a=r,r=r.return;return a.tag===3?a.stateNode:null}var Gr=!1;function ad(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Km(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function br(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function Xr(r,s,a){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(We&2)!==0){var h=c.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s,wr(r,a)}return h=c.interleaved,h===null?(s.next=s,od(c)):(s.next=h.next,h.next=s),c.interleaved=s,wr(r,a)}function yl(r,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=r.pendingLanes,a|=c,s.lanes=a,bc(r,a)}}function Qm(r,s){var a=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var w={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};y===null?h=y=w:y=y.next=w,a=a.next}while(a!==null);y===null?h=y=s:y=y.next=s}else h=y=s;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,effects:c.effects},r.updateQueue=a;return}
vendor: 15,273 bytes, lines 6-8
6r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=s:r.next=s,a.lastBaseUpdate=s}function vl(r,s,a,c){var h=r.updateQueue;Gr=!1;var y=h.firstBaseUpdate,w=h.lastBaseUpdate,N=h.shared.pending;if(N!==null){h.shared.pending=null;var E=N,L=E.next;E.next=null,w===null?y=L:w.next=L,w=E;var H=r.alternate;H!==null&&(H=H.updateQueue,N=H.lastBaseUpdate,N!==w&&(N===null?H.firstBaseUpdate=L:N.next=L,H.lastBaseUpdate=E))}if(y!==null){var Z=h.baseState;w=0,H=L=E=null,N=y;do{var $=N.lane,ce=N.eventTime;if((c&$)===$){H!==null&&(H=H.next={eventTime:ce,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var pe=r,ye=N;switch($=s,ce=a,ye.tag){case 1:if(pe=ye.payload,typeof pe=="function"){Z=pe.call(ce,Z,$);break e}Z=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ye.payload,$=typeof pe=="function"?pe.call(ce,Z,$):pe,$==null)break e;Z=Y({},Z,$);break e;case 2:Gr=!0}}N.callback!==null&&N.lane!==0&&(r.flags|=64,$=h.effects,$===null?h.effects=[N]:$.push(N))}else ce={eventTime:ce,lane:$,tag:N.tag,payload:N.payload,callback:N.callback,next:null},H===null?(L=H=ce,E=Z):H=H.next=ce,w|=$;if(N=N.next,N===null){if(N=h.shared.pending,N===null)break;$=N,N=$.next,$.next=null,h.lastBaseUpdate=$,h.shared.pending=null}}while(!0);if(H===null&&(E=Z),h.baseState=E,h.firstBaseUpdate=L,h.lastBaseUpdate=H,s=h.shared.interleaved,s!==null){h=s;do w|=h.lane,h=h.next;while(h!==s)}else y===null&&(h.shared.lanes=0);Ds|=w,r.lanes=w,r.memoizedState=Z}}function Zm(r,s,a){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var c=r[s],h=c.callback;if(h!==null){if(c.callback=null,c=a,typeof h!="function")throw Error(n(191,h));h.call(c)}}}var _o={},Yn=Kr(_o),Eo=Kr(_o),Ao=Kr(_o);function As(r){if(r===_o)throw Error(n(174));return r}function ld(r,s){switch(Je(Ao,s),Je(Eo,r),Je(Yn,_o),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:J(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=J(s,r)}nt(Yn),Je(Yn,s)}function Ti(){nt(Yn),nt(Eo),nt(Ao)}function Gm(r){As(Ao.current);var s=As(Yn.current),a=J(s,r.type);s!==a&&(Je(Eo,r),Je(Yn,a))}function ud(r){Eo.current===r&&(nt(Yn),nt(Eo))}var ot=Kr(0);function xl(r){for(var s=r;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var cd=[];function dd(){for(var r=0;r<cd.length;r++)cd[r]._workInProgressVersionPrimary=null;cd.length=0}var wl=F.ReactCurrentDispatcher,fd=F.ReactCurrentBatchConfig,Rs=0,at=null,Tt=null,kt=null,bl=!1,Ro=!1,Do=0,uT=0;function Bt(){throw Error(n(321))}function hd(r,s){if(s===null)return!1;for(var a=0;a<s.length&&a<r.length;a++)if(!An(r[a],s[a]))return!1;return!0}function pd(r,s,a,c,h,y){if(Rs=y,at=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,wl.current=r===null||r.memoizedState===null?hT:pT,r=a(c,h),Ro){y=0;do{if(Ro=!1,Do=0,25<=y)throw Error(n(301));y+=1,kt=Tt=null,s.updateQueue=null,wl.current=mT,r=a(c,h)}while(Ro)}if(wl.current=Pl,s=Tt!==null&&Tt.next!==null,Rs=0,kt=Tt=at=null,bl=!1,s)throw Error(n(300));return r}function md(){var r=Do!==0;return Do=0,r}function Jn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?at.memoizedState=kt=r:kt=kt.next=r,kt}function Pn(){if(Tt===null){var r=at.alternate;r=r!==null?r.memoizedState:null}else r=Tt.next;var s=kt===null?at.memoizedState:kt.next;if(s!==null)kt=s,Tt=r;else{if(r===null)throw Error(n(310));Tt=r,r={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},kt===null?at.memoizedState=kt=r:kt=kt.next=r}return kt}function Mo(r,s){return typeof s=="function"?s(r):s}function gd(r){var s=Pn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=Tt,h=c.baseQueue,y=a.pending;if(y!==null){if(h!==null){var w=h.next;h.next=y.next,y.next=w}c.baseQueue=h=y,a.pending=null}if(h!==null){y=h.next,c=c.baseState;var N=w=null,E=null,L=y;do{var H=L.lane;if((Rs&H)===H)E!==null&&(E=E.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),c=L.hasEagerState?L.eagerState:r(c,L.action);else{var Z={lane:H,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};E===null?(N=E=Z,w=c):E=E.next=Z,at.lanes|=H,Ds|=H}L=L.next}while(L!==null&&L!==y);E===null?w=c:E.next=N,An(c,s.memoizedState)||(rn=!0),s.memoizedState=c,s.baseState=w,s.baseQueue=E,a.lastRenderedState=c}if(r=a.interleaved,r!==null){h=r;do y=h.lane,at.lanes|=y,Ds|=y,h=h.next;while(h!==r)}else h===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function yd(r){var s=Pn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=a.dispatch,h=a.pending,y=s.memoizedState;if(h!==null){a.pending=null;var w=h=h.next;do y=r(y,w.action),w=w.next;while(w!==h);An(y,s.memoizedState)||(rn=!0),s.memoizedState=y,s.baseQueue===null&&(s.baseState=y),a.lastRenderedState=y}return[y,c]}function Xm(){}function Ym(r,s){var a=at,c=Pn(),h=s(),y=!An(c.memoizedState,h);if(y&&(c.memoizedState=h,rn=!0),c=c.queue,vd(tg.bind(null,a,c,r),[r]),c.getSnapshot!==s||y||kt!==null&&kt.memoizedState.tag&1){if(a.flags|=2048,Oo(9,eg.bind(null,a,c,h,s),void 0,null),_t===null)throw Error(n(349));(Rs&30)!==0||Jm(a,s,h)}return h}function Jm(r,s,a){r.flags|=16384,r={getSnapshot:s,value:a},s=at.updateQueue,s===null?(s={lastEffect:null,stores:null},at.updateQueue=s,s.stores=[r]):(a=s.stores,a===null?s.stores=[r]:a.push(r))}function eg(r,s,a,c){s.value=a,s.getSnapshot=c,ng(s)&&rg(r)}function tg(r,s,a){return a(function(){ng(s)&&rg(r)})}function ng(r){var s=r.getSnapshot;r=r.value;try{var a=s();return!An(r,a)}catch{return!0}}function rg(r){var s=wr(r,1);s!==null&&In(s,r,1,-1)}function sg(r){var s=Jn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:r},s.queue=r,r=r.dispatch=fT.bind(null,at,r),[s.memoizedState,r]}function Oo(r,s,a,c){return r={tag:r,create:s,destroy:a,deps:c,next:null},s=at.updateQueue,s===null?(s={lastEffect:null,stores:null},at.updateQueue=s,s.lastEffect=r.next=r):(a=s.lastEffect,a===null?s.lastEffect=r.next=r:(c=a.next,a.next=r,r.next=c,s.lastEffect=r)),r}function ig(){return Pn().memoizedState}function Sl(r,s,a,c){var h=Jn();at.flags|=r,h.memoizedState=Oo(1|s,a,void 0,c===void 0?null:c)}function Tl(r,s,a,c){var h=Pn();c=c===void 0?null:c;var y=void 0;if(Tt!==null){var w=Tt.memoizedState;if(y=w.destroy,c!==null&&hd(c,w.deps)){h.memoizedState=Oo(s,a,y,c);return}}at.flags|=r,h.memoizedState=Oo(1|s,a,y,c)}function og(r,s){return Sl(8390656,8,r,s)}function vd(r,s){return Tl(2048,8,r,s)}function ag(r,s){return Tl(4,2,r,s)}function lg(r,s){return Tl(4,4,r,s)}function ug(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function cg(r,s,a){return a=a!=null?a.concat([r]):null,Tl(4,4,ug.bind(null,s,r),a)}function xd(){}function dg(r,s){var a=Pn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&hd(s,c[1])?c[0]:(a.memoizedState=[r,s],r)}function fg(r,s){var a=Pn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&hd(s,c[1])?c[0]:(r=r(),a.memoizedState=[r,s],r)}function hg(r,s,a){return(Rs&21)===0?(r.baseState&&(r.baseState=!1,rn=!0),r.memoizedState=a):(An(a,s)||(a=$p(),at.lanes|=a,Ds|=a,r.baseState=!0),s)}function cT(r,s){var a=Ze;Ze=a!==0&&4>a?a:4,r(!0);var c=fd.transition;fd.transition={};try{r(!1),s()}finally{Ze=a,fd.transition=c}}function pg(){return Pn().memoizedState}function dT(r,s,a){var c=ts(r);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},mg(r))gg(s,a);else if(a=qm(r,s,a,c),a!==null){var h=Zt();In(a,r,c,h),yg(a,s,c)}}function fT(r,s,a){var c=ts(r),h={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(mg(r))gg(s,h);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=s.lastRenderedReducer,y!==null))try{var w=s.lastRenderedState,N=y(w,a);if(h.hasEagerState=!0,h.eagerState=N,An(N,w)){var E=s.interleaved;E===null?(h.next=h,od(s)):(h.next=E.next,E.next=h),s.interleaved=h;return}}catch{}a=qm(r,s,h,c),a!==null&&(h=Zt(),In(a,r,c,h),yg(a,s,c))}}function mg(r){var s=r.alternate;return r===at||s!==null&&s===at}function gg(r,s){Ro=bl=!0;var a=r.pending;a===null?s.next=s:(s.next=a.next,a.next=s),r.pending=s}function yg(r,s,a){if((a&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,a|=c,s.lanes=a,bc(r,a)}}var Pl={readContext:Tn,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},hT={readContext:Tn,useCallback:function(r,s){return Jn().memoizedState=[r,s===void 0?null:s],r},useContext:Tn,useEffect:og,useImperativeHandle:function(r,s,a){return a=a!=null?a.concat([r]):null,Sl(4194308,4,ug.bind(null,s,r),a)},useLayoutEffect:function(r,s){return Sl(4194308,4,r,s)},useInsertionEffect:function(r,s){return Sl(4,2,r,s)},useMemo:function(r,s){var a=Jn();return s=s===void 0?null:s,r=r(),a.memoizedState=[r,s],r},useReducer:function(r,s,a){var c=Jn();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},c.queue=r,r=r.dispatch=dT.bind(null,at,r),[c.memoizedState,r]},useRef:function(r){var s=Jn();return r={current:r},s.memoizedState=r},useState:sg,useDebugValue:xd,useDeferredValue:function(r){return Jn().memoizedState=r},useTransition:function(){var r=sg(!1),s=r[0];return r=cT.bind(null,r[1]),Jn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,a){var c=at,h=Jn();if(st){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),_t===null)throw Error(n(349));(Rs&30)!==0||Jm(c,s,a)}h.memoizedState=a;var y={value:a,getSnapshot:s};return h.queue=y,og(tg.bind(null,c,y,r),[r]),c.flags|=2048,Oo(9,eg.bind(null,c,y,a,s),void 0,null),a},useId:function(){var r=Jn(),s=_t.identifierPrefix;if(st){var a=xr,c=vr;a=(c&~(1<<32-En(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=Do++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=uT++,s=":"+s+"r"+a.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},pT={readContext:Tn,useCallback:dg,useContext:Tn,useEffect:vd,useImperativeHandle:cg,useInsertionEffect:ag,useLayoutEffect:lg,useMemo:fg,useReducer:gd,useRef:ig,useState:function(){return gd(Mo)},useDebugValue:xd,useDeferredValue:function(r){var s=Pn();return hg(s,Tt.memoizedState,r)},useTransition:function(){var r=gd(Mo)[0],s=Pn().memoizedState;return[r,s]},useMutableSource:Xm,useSyncExternalStore:Ym,useId:pg,unstable_isNewReconciler:!1},mT={readContext:Tn,useCallback:dg,useContext:Tn,useEffect:vd,useImperativeHandle:cg,useInsertionEffect:ag,useLayoutEffect:lg,useMemo:fg,useReducer:yd,useRef:ig,useState:function(){return yd(Mo)},useDebugValue:xd,useDeferredValue:function(r){var s=Pn();return Tt===null?s.memoizedState=r:hg(s,Tt.memoizedState,r)},useTransition:function(){var r=yd(Mo)[0],s=Pn().memoizedState;return[r,s]},useMutableSource:Xm,useSyncExternalStore:Ym,useId:pg,unstable_isNewReconciler:!1};function Dn(r,s){if(r&&r.defaultProps){s=Y({},s),r=r.defaultProps;for(var a in r)s[a]===void 0&&(s[a]=r[a]);return s}return s}function wd(r,s,a,c){s=r.memoizedState,a=a(c,s),a=a==null?s:Y({},s,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var Nl={isMounted:function(r){return(r=r._reactInternals)?Ns(r)===r:!1},enqueueSetState:function(r,s,a){r=r._reactInternals;var c=Zt(),h=ts(r),y=br(c,h);y.payload=s,a!=null&&(y.callback=a),s=Xr(r,y,h),s!==null&&(In(s,r,h,c),yl(s,r,h))},enqueueReplaceState:function(r,s,a){r=r._reactInternals;var c=Zt(),h=ts(r),y=br(c,h);y.tag=1,y.payload=s,a!=null&&(y.callback=a),s=Xr(r,y,h),s!==null&&(In(s,r,h,c),yl(s,r,h))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var a=Zt(),c=ts(r),h=br(a,c);h.tag=2,s!=null&&(h.callback=s),s=Xr(r,h,c),s!==null&&(In(s,r,c,a),yl(s,r,c))}};function vg(r,s,a,c,h,y,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,w):s.prototype&&s.prototype.isPureReactComponent?!bo(a,c)||!bo(h,y):!0}function xg(r,s,a){var c=!1,h=Qr,y=s.contextType;return typeof y=="object"&&y!==null?y=Tn(y):(h=nn(s)?js:Ft.current,c=s.contextTypes,y=(c=c!=null)?gi(r,h):Qr),s=new s(a,y),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Nl,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=h,r.__reactInternalMemoizedMaskedChildContext=y),s}function wg(r,s,a,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==r&&Nl.enqueueReplaceState(s,s.state,null)}function bd(r,s,a,c){var h=r.stateNode;h.props=a,h.state=r.memoizedState,h.refs={},ad(r);var y=s.contextType;typeof y=="object"&&y!==null?h.context=Tn(y):(y=nn(s)?js:Ft.current,h.context=gi(r,y)),h.state=r.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(wd(r,s,y,a),h.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(s=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),s!==h.state&&Nl.enqueueReplaceState(h,h.state,null),vl(r,a,h,c),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308)}function Pi(r,s){try{var a="",c=s;do a+=Ve(c),c=c.return;while(c);var h=a}catch(y){h=` 7Error generating stack: `+y.message+` 8`+y.stack}return{value:r,source:s,stack:h,digest:null}}function Sd(r,s,a){return{value:r,source:null,stack:a??null,digest:s??null}}function Td(r,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var gT=typeof WeakMap=="function"?WeakMap:Map;function bg(r,s,a){a=br(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){Rl||(Rl=!0,Vd=c),Td(r,s)},a}function Sg(r,s,a){a=br(-1,a),a.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var h=s.value;a.payload=function(){return c(h)},a.callback=function(){Td(r,s)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(a.callback=function(){Td(r,s),typeof c!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var w=s.stack;this.componentDidCatch(s.value,{componentStack:w!==null?w:""})}),a}function Tg(r,s,a){var c=r.pingCache;if(c===null){c=r.pingCache=new gT;var h=new Set;c.set(s,h)}else h=c.get(s),h===void 0&&(h=new Set,c.set(s,h));h.has(a)||(h.add(a),r=ET.bind(null,r,s,a),s.then(r,r))}function Pg(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}
vendor: 9,983 bytes, line 8
8function Ng(r,s,a,c,h){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=br(-1,1),s.tag=2,Xr(a,s,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=h,r)}var yT=F.ReactCurrentOwner,rn=!1;function Qt(r,s,a,c){s.child=r===null?Hm(s,null,a,c):wi(s,r.child,a,c)}function Cg(r,s,a,c,h){a=a.render;var y=s.ref;return Si(s,h),c=pd(r,s,a,c,y,h),a=md(),r!==null&&!rn?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,Sr(r,s,h)):(st&&a&&Xc(s),s.flags|=1,Qt(r,s,c,h),s.child)}function jg(r,s,a,c,h){if(r===null){var y=a.type;return typeof y=="function"&&!Hd(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=y,kg(r,s,y,c,h)):(r=Vl(a.type,null,c,s,s.mode,h),r.ref=s.ref,r.return=s,s.child=r)}if(y=r.child,(r.lanes&h)===0){var w=y.memoizedProps;if(a=a.compare,a=a!==null?a:bo,a(w,c)&&r.ref===s.ref)return Sr(r,s,h)}return s.flags|=1,r=rs(y,c),r.ref=s.ref,r.return=s,s.child=r}function kg(r,s,a,c,h){if(r!==null){var y=r.memoizedProps;if(bo(y,c)&&r.ref===s.ref)if(rn=!1,s.pendingProps=c=y,(r.lanes&h)!==0)(r.flags&131072)!==0&&(rn=!0);else return s.lanes=r.lanes,Sr(r,s,h)}return Pd(r,s,a,c,h)}function _g(r,s,a){var c=s.pendingProps,h=c.children,y=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(Ci,pn),pn|=a;else{if((a&1073741824)===0)return r=y!==null?y.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Je(Ci,pn),pn|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:a,Je(Ci,pn),pn|=c}else y!==null?(c=y.baseLanes|a,s.memoizedState=null):c=a,Je(Ci,pn),pn|=c;return Qt(r,s,h,a),s.child}function Eg(r,s){var a=s.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function Pd(r,s,a,c,h){var y=nn(a)?js:Ft.current;return y=gi(s,y),Si(s,h),a=pd(r,s,a,c,y,h),c=md(),r!==null&&!rn?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,Sr(r,s,h)):(st&&c&&Xc(s),s.flags|=1,Qt(r,s,a,h),s.child)}function Ag(r,s,a,c,h){if(nn(a)){var y=!0;ul(s)}else y=!1;if(Si(s,h),s.stateNode===null)jl(r,s),xg(s,a,c),bd(s,a,c,h),c=!0;else if(r===null){var w=s.stateNode,N=s.memoizedProps;w.props=N;var E=w.context,L=a.contextType;typeof L=="object"&&L!==null?L=Tn(L):(L=nn(a)?js:Ft.current,L=gi(s,L));var H=a.getDerivedStateFromProps,Z=typeof H=="function"||typeof w.getSnapshotBeforeUpdate=="function";Z||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(N!==c||E!==L)&&wg(s,w,c,L),Gr=!1;var $=s.memoizedState;w.state=$,vl(s,c,w,h),E=s.memoizedState,N!==c||$!==E||tn.current||Gr?(typeof H=="function"&&(wd(s,a,H,c),E=s.memoizedState),(N=Gr||vg(s,a,N,c,$,E,L))?(Z||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(s.flags|=4194308)):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=E),w.props=c,w.state=E,w.context=L,c=N):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{w=s.stateNode,Km(r,s),N=s.memoizedProps,L=s.type===s.elementType?N:Dn(s.type,N),w.props=L,Z=s.pendingProps,$=w.context,E=a.contextType,typeof E=="object"&&E!==null?E=Tn(E):(E=nn(a)?js:Ft.current,E=gi(s,E));var ce=a.getDerivedStateFromProps;(H=typeof ce=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(N!==Z||$!==E)&&wg(s,w,c,E),Gr=!1,$=s.memoizedState,w.state=$,vl(s,c,w,h);var pe=s.memoizedState;N!==Z||$!==pe||tn.current||Gr?(typeof ce=="function"&&(wd(s,a,ce,c),pe=s.memoizedState),(L=Gr||vg(s,a,L,c,$,pe,E)||!1)?(H||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,pe,E),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,pe,E)),typeof w.componentDidUpdate=="function"&&(s.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof w.componentDidUpdate!="function"||N===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||N===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=pe),w.props=c,w.state=pe,w.context=E,c=L):(typeof w.componentDidUpdate!="function"||N===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||N===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),c=!1)}return Nd(r,s,a,c,y,h)}function Nd(r,s,a,c,h,y){Eg(r,s);var w=(s.flags&128)!==0;if(!c&&!w)return h&&Im(s,a,!1),Sr(r,s,y);c=s.stateNode,yT.current=s;var N=w&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&w?(s.child=wi(s,r.child,null,y),s.child=wi(s,null,N,y)):Qt(r,s,N,y),s.memoizedState=c.state,h&&Im(s,a,!0),s.child}function Rg(r){var s=r.stateNode;s.pendingContext?Mm(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Mm(r,s.context,!1),ld(r,s.containerInfo)}function Dg(r,s,a,c,h){return xi(),td(h),s.flags|=256,Qt(r,s,a,c),s.child}var Cd={dehydrated:null,treeContext:null,retryLane:0};function jd(r){return{baseLanes:r,cachePool:null,transitions:null}}function Mg(r,s,a){var c=s.pendingProps,h=ot.current,y=!1,w=(s.flags&128)!==0,N;if((N=w)||(N=r!==null&&r.memoizedState===null?!1:(h&2)!==0),N?(y=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(h|=1),Je(ot,h&1),r===null)return ed(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(w=c.children,r=c.fallback,y?(c=s.mode,y=s.child,w={mode:"hidden",children:w},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=w):y=Fl(w,c,0,null),r=Ls(r,c,a,null),y.return=s,r.return=s,y.sibling=r,s.child=y,s.child.memoizedState=jd(a),s.memoizedState=Cd,r):kd(s,w));if(h=r.memoizedState,h!==null&&(N=h.dehydrated,N!==null))return vT(r,s,w,c,N,h,a);if(y){y=c.fallback,w=s.mode,h=r.child,N=h.sibling;var E={mode:"hidden",children:c.children};return(w&1)===0&&s.child!==h?(c=s.child,c.childLanes=0,c.pendingProps=E,s.deletions=null):(c=rs(h,E),c.subtreeFlags=h.subtreeFlags&14680064),N!==null?y=rs(N,y):(y=Ls(y,w,a,null),y.flags|=2),y.return=s,c.return=s,c.sibling=y,s.child=c,c=y,y=s.child,w=r.child.memoizedState,w=w===null?jd(a):{baseLanes:w.baseLanes|a,cachePool:null,transitions:w.transitions},y.memoizedState=w,y.childLanes=r.childLanes&~a,s.memoizedState=Cd,c}return y=r.child,r=y.sibling,c=rs(y,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,r!==null&&(a=s.deletions,a===null?(s.deletions=[r],s.flags|=16):a.push(r)),s.child=c,s.memoizedState=null,c}function kd(r,s){return s=Fl({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function Cl(r,s,a,c){return c!==null&&td(c),wi(s,r.child,null,a),r=kd(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function vT(r,s,a,c,h,y,w){if(a)return s.flags&256?(s.flags&=-257,c=Sd(Error(n(422))),Cl(r,s,w,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(y=c.fallback,h=s.mode,c=Fl({mode:"visible",children:c.children},h,0,null),y=Ls(y,h,w,null),y.flags|=2,c.return=s,y.return=s,c.sibling=y,s.child=c,(s.mode&1)!==0&&wi(s,r.child,null,w),s.child.memoizedState=jd(w),s.memoizedState=Cd,y);if((s.mode&1)===0)return Cl(r,s,w,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var N=c.dgst;return c=N,y=Error(n(419)),c=Sd(y,c,void 0),Cl(r,s,w,c)}if(N=(w&r.childLanes)!==0,rn||N){if(c=_t,c!==null){switch(w&-w){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|w))!==0?0:h,h!==0&&h!==y.retryLane&&(y.retryLane=h,wr(r,h),In(c,r,h,-1))}return Wd(),c=Sd(Error(n(421))),Cl(r,s,w,c)}return h.data==="$?"?(s.flags|=128,s.child=r.child,s=AT.bind(null,r),h._reactRetry=s,null):(r=y.treeContext,hn=qr(h.nextSibling),fn=s,st=!0,Rn=null,r!==null&&(bn[Sn++]=vr,bn[Sn++]=xr,bn[Sn++]=ks,vr=r.id,xr=r.overflow,ks=s),s=kd(s,c.children),s.flags|=4096,s)}function Og(r,s,a){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),id(r.return,s,a)}function _d(r,s,a,c,h){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=a,y.tailMode=h)}function Ig(r,s,a){var c=s.pendingProps,h=c.revealOrder,y=c.tail;if(Qt(r,s,c.children,a),c=ot.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Og(r,a,s);else if(r.tag===19)Og(r,a,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Je(ot,c),(s.mode&1)===0)s.memoizedState=null;else switch(h){case"forwards":for(a=s.child,h=null;a!==null;)r=a.alternate,r!==null&&xl(r)===null&&(h=a),a=a.sibling;a=h,a===null?(h=s.child,s.child=null):(h=a.sibling,a.sibling=null),_d(s,!1,h,a,y);break;case"backwards":for(a=null,h=s.child,s.child=null;h!==null;){if(r=h.alternate,r!==null&&xl(r)===null){s.child=h;break}r=h.sibling,h.sibling=a,a=h,h=r}_d(s,!0,a,null,y);break;case"together":_d(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function jl(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}
vendor: 4,085 bytes, line 8
8function Sr(r,s,a){if(r!==null&&(s.dependencies=r.dependencies),Ds|=s.lanes,(a&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,a=rs(r,r.pendingProps),s.child=a,a.return=s;r.sibling!==null;)r=r.sibling,a=a.sibling=rs(r,r.pendingProps),a.return=s;a.sibling=null}return s.child}function xT(r,s,a){switch(s.tag){case 3:Rg(s),xi();break;case 5:Gm(s);break;case 1:nn(s.type)&&ul(s);break;case 4:ld(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,h=s.memoizedProps.value;Je(ml,c._currentValue),c._currentValue=h;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Je(ot,ot.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?Mg(r,s,a):(Je(ot,ot.current&1),r=Sr(r,s,a),r!==null?r.sibling:null);Je(ot,ot.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(r.flags&128)!==0){if(c)return Ig(r,s,a);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Je(ot,ot.current),c)break;return null;case 22:case 23:return s.lanes=0,_g(r,s,a)}return Sr(r,s,a)}var Lg,Ed,Vg,Fg;Lg=function(r,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Ed=function(){},Vg=function(r,s,a,c){var h=r.memoizedProps;if(h!==c){r=s.stateNode,As(Yn.current);var y=null;switch(a){case"input":h=Ys(r,h),c=Ys(r,c),y=[];break;case"select":h=Y({},h,{value:void 0}),c=Y({},c,{value:void 0}),y=[];break;case"textarea":h=_(r,h),c=_(r,c),y=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=ol)}ri(a,c);var w;a=null;for(L in h)if(!c.hasOwnProperty(L)&&h.hasOwnProperty(L)&&h[L]!=null)if(L==="style"){var N=h[L];for(w in N)N.hasOwnProperty(w)&&(a||(a={}),a[w]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(o.hasOwnProperty(L)?y||(y=[]):(y=y||[]).push(L,null));for(L in c){var E=c[L];if(N=h?.[L],c.hasOwnProperty(L)&&E!==N&&(E!=null||N!=null))if(L==="style")if(N){for(w in N)!N.hasOwnProperty(w)||E&&E.hasOwnProperty(w)||(a||(a={}),a[w]="");for(w in E)E.hasOwnProperty(w)&&N[w]!==E[w]&&(a||(a={}),a[w]=E[w])}else a||(y||(y=[]),y.push(L,a)),a=E;else L==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,N=N?N.__html:void 0,E!=null&&N!==E&&(y=y||[]).push(L,E)):L==="children"?typeof E!="string"&&typeof E!="number"||(y=y||[]).push(L,""+E):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(o.hasOwnProperty(L)?(E!=null&&L==="onScroll"&&tt("scroll",r),y||N===E||(y=[])):(y=y||[]).push(L,E))}a&&(y=y||[]).push("style",a);var L=y;(s.updateQueue=L)&&(s.flags|=4)}},Fg=function(r,s,a,c){a!==c&&(s.flags|=4)};function Io(r,s){if(!st)switch(r.tailMode){case"hidden":s=r.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function zt(r){var s=r.alternate!==null&&r.alternate.child===r.child,a=0,c=0;if(s)for(var h=r.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=c,r.childLanes=a,s}function wT(r,s,a){var c=s.pendingProps;switch(Yc(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(s),null;case 1:return nn(s.type)&&ll(),zt(s),null;case 3:return c=s.stateNode,Ti(),nt(tn),nt(Ft),dd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(hl(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Rn!==null&&(zd(Rn),Rn=null))),Ed(r,s),zt(s),null;case 5:ud(s);var h=As(Ao.current);
vendor: 9,260 bytes, line 8
8if(a=s.type,r!==null&&s.stateNode!=null)Vg(r,s,a,c,h),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return zt(s),null}if(r=As(Yn.current),hl(s)){c=s.stateNode,a=s.type;var y=s.memoizedProps;switch(c[Xn]=s,c[Co]=y,r=(s.mode&1)!==0,a){case"dialog":tt("cancel",c),tt("close",c);break;case"iframe":case"object":case"embed":tt("load",c);break;case"video":case"audio":for(h=0;h<To.length;h++)tt(To[h],c);break;case"source":tt("error",c);break;case"img":case"image":case"link":tt("error",c),tt("load",c);break;case"details":tt("toggle",c);break;case"input":La(c,y),tt("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},tt("invalid",c);break;case"textarea":I(c,y),tt("invalid",c)}ri(a,y),h=null;for(var w in y)if(y.hasOwnProperty(w)){var N=y[w];w==="children"?typeof N=="string"?c.textContent!==N&&(y.suppressHydrationWarning!==!0&&il(c.textContent,N,r),h=["children",N]):typeof N=="number"&&c.textContent!==""+N&&(y.suppressHydrationWarning!==!0&&il(c.textContent,N,r),h=["children",""+N]):o.hasOwnProperty(w)&&N!=null&&w==="onScroll"&&tt("scroll",c)}switch(a){case"input":Zn(c),Va(c,y,!0);break;case"textarea":Zn(c),ue(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=ol)}c=h,s.updateQueue=c,c!==null&&(s.flags|=4)}else{w=h.nodeType===9?h:h.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=re(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(a,{is:c.is}):(r=w.createElement(a),a==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,a),r[Xn]=s,r[Co]=c,Lg(r,s,!1,!1),s.stateNode=r;e:{switch(w=so(a,c),a){case"dialog":tt("cancel",r),tt("close",r),h=c;break;case"iframe":case"object":case"embed":tt("load",r),h=c;break;case"video":case"audio":for(h=0;h<To.length;h++)tt(To[h],r);h=c;break;case"source":tt("error",r),h=c;break;case"img":case"image":case"link":tt("error",r),tt("load",r),h=c;break;case"details":tt("toggle",r),h=c;break;case"input":La(r,c),h=Ys(r,c),tt("invalid",r);break;case"option":h=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},h=Y({},c,{value:void 0}),tt("invalid",r);break;case"textarea":I(r,c),h=_(r,c),tt("invalid",r);break;default:h=c}ri(a,h),N=h;for(y in N)if(N.hasOwnProperty(y)){var E=N[y];y==="style"?ni(r,E):y==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&ze(r,E)):y==="children"?typeof E=="string"?(a!=="textarea"||E!=="")&&Ye(r,E):typeof E=="number"&&Ye(r,""+E):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(o.hasOwnProperty(y)?E!=null&&y==="onScroll"&&tt("scroll",r):E!=null&&D(r,y,E,w))}switch(a){case"input":Zn(r),Va(r,c,!1);break;case"textarea":Zn(r),ue(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Ue(c.value));break;case"select":r.multiple=!!c.multiple,y=c.value,y!=null?mr(r,!!c.multiple,y,!1):c.defaultValue!=null&&mr(r,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(r.onclick=ol)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return zt(s),null;case 6:if(r&&s.stateNode!=null)Fg(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(a=As(Ao.current),As(Yn.current),hl(s)){if(c=s.stateNode,a=s.memoizedProps,c[Xn]=s,(y=c.nodeValue!==a)&&(r=fn,r!==null))switch(r.tag){case 3:il(c.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&il(c.nodeValue,a,(r.mode&1)!==0)}y&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[Xn]=s,s.stateNode=c}return zt(s),null;case 13:if(nt(ot),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(st&&hn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Um(),xi(),s.flags|=98560,y=!1;else if(y=hl(s),c!==null&&c.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Xn]=s}else xi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;zt(s),y=!1}else Rn!==null&&(zd(Rn),Rn=null),y=!0;if(!y)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(ot.current&1)!==0?Pt===0&&(Pt=3):Wd())),s.updateQueue!==null&&(s.flags|=4),zt(s),null);case 4:return Ti(),Ed(r,s),r===null&&Po(s.stateNode.containerInfo),zt(s),null;case 10:return sd(s.type._context),zt(s),null;case 17:return nn(s.type)&&ll(),zt(s),null;case 19:if(nt(ot),y=s.memoizedState,y===null)return zt(s),null;if(c=(s.flags&128)!==0,w=y.rendering,w===null)if(c)Io(y,!1);else{if(Pt!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(w=xl(r),w!==null){for(s.flags|=128,Io(y,!1),c=w.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)y=a,r=c,y.flags&=14680066,w=y.alternate,w===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=w.childLanes,y.lanes=w.lanes,y.child=w.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=w.memoizedProps,y.memoizedState=w.memoizedState,y.updateQueue=w.updateQueue,y.type=w.type,r=w.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Je(ot,ot.current&1|2),s.child}r=r.sibling}y.tail!==null&>()>ji&&(s.flags|=128,c=!0,Io(y,!1),s.lanes=4194304)}else{if(!c)if(r=xl(w),r!==null){if(s.flags|=128,c=!0,a=r.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),Io(y,!0),y.tail===null&&y.tailMode==="hidden"&&!w.alternate&&!st)return zt(s),null}else 2*gt()-y.renderingStartTime>ji&&a!==1073741824&&(s.flags|=128,c=!0,Io(y,!1),s.lanes=4194304);y.isBackwards?(w.sibling=s.child,s.child=w):(a=y.last,a!==null?a.sibling=w:s.child=w,y.last=w)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=gt(),s.sibling=null,a=ot.current,Je(ot,c?a&1|2:a&1),s):(zt(s),null);case 22:case 23:return $d(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(pn&1073741824)!==0&&(zt(s),s.subtreeFlags&6&&(s.flags|=8192)):zt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function bT(r,s){switch(Yc(s),s.tag){case 1:return nn(s.type)&&ll(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Ti(),nt(tn),nt(Ft),dd(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return ud(s),null;case 13:if(nt(ot),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));xi()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return nt(ot),null;case 4:return Ti(),null;case 10:return sd(s.type._context),null;case 22:case 23:return $d(),null;case 24:return null;default:return null}}var kl=!1,Ut=!1,ST=typeof WeakSet=="function"?WeakSet:Set,he=null;function Ni(r,s){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){ft(r,s,c)}else a.current=null}function Ad(r,s,a){try{a()}catch(c){ft(r,s,c)}}var Bg=!1;function TT(r,s){if($c=Qa,r=vm(),Oc(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var w=0,N=-1,E=-1,L=0,H=0,Z=r,$=null;t:for(;;){for(var ce;Z!==a||h!==0&&Z.nodeType!==3||(N=w+h),Z!==y||c!==0&&Z.nodeType!==3||(E=w+c),Z.nodeType===3&&(w+=Z.nodeValue.length),(ce=Z.firstChild)!==null;)$=Z,Z=ce;for(;;){if(Z===r)break t;if($===a&&++L===h&&(N=w),$===y&&++H===c&&(E=w),(ce=Z.nextSibling)!==null)break;Z=$,$=Z.parentNode}Z=ce}a=N===-1||E===-1?null:{start:N,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wc={focusedElem:r,selectionRange:a},Qa=!1,he=s;he!==null;)if(s=he,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,he=r;else for(;he!==null;){s=he;try{var pe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var ye=pe.memoizedProps,yt=pe.memoizedState,M=s.stateNode,A=M.getSnapshotBeforeUpdate(s.elementType===s.type?ye:Dn(s.type,ye),yt);M.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var O=s.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){ft(s,s.return,ee)}if(r=s.sibling,r!==null){r.return=s.return,he=r;break}he=s.return}return pe=Bg,Bg=!1,pe}function Lo(r,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&r)===r){var y=h.destroy;h.destroy=void 0,y!==void 0&&Ad(s,a,y)}h=h.next}while(h!==c)}}function _l(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&r)===r){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function Rd(r){var s=r.ref;if(s!==null){var a=r.stateNode;
vendor: 4,533 bytes, line 8
8r.tag,r=a,typeof s=="function"?s(r):s.current=r}}function zg(r){var s=r.alternate;s!==null&&(r.alternate=null,zg(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[Xn],delete s[Co],delete s[Qc],delete s[iT],delete s[oT])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Ug(r){return r.tag===5||r.tag===3||r.tag===4}function $g(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ug(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dd(r,s,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(r,s):a.insertBefore(r,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(r,a)):(s=a,s.appendChild(r)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=ol));else if(c!==4&&(r=r.child,r!==null))for(Dd(r,s,a),r=r.sibling;r!==null;)Dd(r,s,a),r=r.sibling}function Md(r,s,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?a.insertBefore(r,s):a.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Md(r,s,a),r=r.sibling;r!==null;)Md(r,s,a),r=r.sibling}var Rt=null,Mn=!1;function Yr(r,s,a){for(a=a.child;a!==null;)Wg(r,s,a),a=a.sibling}function Wg(r,s,a){if(Gn&&typeof Gn.onCommitFiberUnmount=="function")try{Gn.onCommitFiberUnmount(Ua,a)}catch{}switch(a.tag){case 5:Ut||Ni(a,s);case 6:var c=Rt,h=Mn;Rt=null,Yr(r,s,a),Rt=c,Mn=h,Rt!==null&&(Mn?(r=Rt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):Rt.removeChild(a.stateNode));break;case 18:Rt!==null&&(Mn?(r=Rt,a=a.stateNode,r.nodeType===8?Kc(r.parentNode,a):r.nodeType===1&&Kc(r,a),mo(r)):Kc(Rt,a.stateNode));break;case 4:c=Rt,h=Mn,Rt=a.stateNode.containerInfo,Mn=!0,Yr(r,s,a),Rt=c,Mn=h;break;case 0:case 11:case 14:case 15:if(!Ut&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var y=h,w=y.destroy;y=y.tag,w!==void 0&&((y&2)!==0||(y&4)!==0)&&Ad(a,s,w),h=h.next}while(h!==c)}Yr(r,s,a);break;case 1:if(!Ut&&(Ni(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(N){ft(a,s,N)}Yr(r,s,a);break;case 21:Yr(r,s,a);break;case 22:a.mode&1?(Ut=(c=Ut)||a.memoizedState!==null,Yr(r,s,a),Ut=c):Yr(r,s,a);break;default:Yr(r,s,a)}}function Hg(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new ST),s.forEach(function(c){var h=RT.bind(null,r,c);a.has(c)||(a.add(c),c.then(h,h))})}}function On(r,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];try{var y=r,w=s,N=w;e:for(;N!==null;){switch(N.tag){case 5:Rt=N.stateNode,Mn=!1;break e;case 3:Rt=N.stateNode.containerInfo,Mn=!0;break e;case 4:Rt=N.stateNode.containerInfo,Mn=!0;break e}N=N.return}if(Rt===null)throw Error(n(160));Wg(y,w,h),Rt=null,Mn=!1;var E=h.alternate;E!==null&&(E.return=null),h.return=null}catch(L){ft(h,s,L)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)qg(s,r),s=s.sibling}function qg(r,s){var a=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(On(s,r),er(r),c&4){try{Lo(3,r,r.return),_l(3,r)}catch(ye){ft(r,r.return,ye)}try{Lo(5,r,r.return)}catch(ye){ft(r,r.return,ye)}}break;case 1:On(s,r),er(r),c&512&&a!==null&&Ni(a,a.return);break;case 5:if(On(s,r),er(r),c&512&&a!==null&&Ni(a,a.return),r.flags&32){var h=r.stateNode;try{Ye(h,"")}catch(ye){ft(r,r.return,ye)}}if(c&4&&(h=r.stateNode,h!=null)){var y=r.memoizedProps,w=a!==null?a.memoizedProps:y,N=r.type,E=r.updateQueue;if(r.updateQueue=null,E!==null)try{N==="input"&&y.type==="radio"&&y.name!=null&&no(h,y),so(N,w);var L=so(N,y);for(w=0;w<E.length;w+=2){var H=E[w],Z=E[w+1];H==="style"?ni(h,Z):H==="dangerouslySetInnerHTML"?ze(h,Z):H==="children"?Ye(h,Z):D(h,H,Z,L)}switch(N){case"input":Js(h,y);break;case"textarea":z(h,y);break;case"select":var $=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!y.multiple;var ce=y.value;ce!=null?mr(h,!!y.multiple,ce,!1):$!==!!y.multiple&&(y.defaultValue!=null?mr(h,!!y.multiple,y.defaultValue,!0):mr(h,!!y.multiple,y.multiple?[]:"",!1))}h[Co]=y}catch(ye){ft(r,r.return,ye)}}break;case 6:if(On(s,r),er(r),c&4){if(r.stateNode===null)throw Error(n(162));h=r.stateNode,y=r.memoizedProps;try{h.nodeValue=y}catch(ye){ft(r,r.return,ye)}}break;case 3:if(On(s,r),er(r),c&4&&a!==null&&a.memoizedState.isDehydrated)try{mo(s.
vendor: 8,928 bytes, line 8
8containerInfo)}catch(ye){ft(r,r.return,ye)}break;case 4:On(s,r),er(r);break;case 13:On(s,r),er(r),h=r.child,h.flags&8192&&(y=h.memoizedState!==null,h.stateNode.isHidden=y,!y||h.alternate!==null&&h.alternate.memoizedState!==null||(Ld=gt())),c&4&&Hg(r);break;case 22:if(H=a!==null&&a.memoizedState!==null,r.mode&1?(Ut=(L=Ut)||H,On(s,r),Ut=L):On(s,r),er(r),c&8192){if(L=r.memoizedState!==null,(r.stateNode.isHidden=L)&&!H&&(r.mode&1)!==0)for(he=r,H=r.child;H!==null;){for(Z=he=H;he!==null;){switch($=he,ce=$.child,$.tag){case 0:case 11:case 14:case 15:Lo(4,$,$.return);break;case 1:Ni($,$.return);var pe=$.stateNode;if(typeof pe.componentWillUnmount=="function"){c=$,a=$.return;try{s=c,pe.props=s.memoizedProps,pe.state=s.memoizedState,pe.componentWillUnmount()}catch(ye){ft(c,a,ye)}}break;case 5:Ni($,$.return);break;case 22:if($.memoizedState!==null){Zg(Z);continue}}ce!==null?(ce.return=$,he=ce):Zg(Z)}H=H.sibling}e:for(H=null,Z=r;;){if(Z.tag===5){if(H===null){H=Z;try{h=Z.stateNode,L?(y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(N=Z.stateNode,E=Z.memoizedProps.style,w=E!=null&&E.hasOwnProperty("display")?E.display:null,N.style.display=ti("display",w))}catch(ye){ft(r,r.return,ye)}}}else if(Z.tag===6){if(H===null)try{Z.stateNode.nodeValue=L?"":Z.memoizedProps}catch(ye){ft(r,r.return,ye)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===r)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===r)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===r)break e;H===Z&&(H=null),Z=Z.return}H===Z&&(H=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:On(s,r),er(r),c&4&&Hg(r);break;case 21:break;default:On(s,r),er(r)}}function er(r){var s=r.flags;if(s&2){try{e:{for(var a=r.return;a!==null;){if(Ug(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Ye(h,""),c.flags&=-33);var y=$g(r);Md(r,y,h);break;case 3:case 4:var w=c.stateNode.containerInfo,N=$g(r);Dd(r,N,w);break;default:throw Error(n(161))}}catch(E){ft(r,r.return,E)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function PT(r,s,a){he=r,Kg(r)}function Kg(r,s,a){for(var c=(r.mode&1)!==0;he!==null;){var h=he,y=h.child;if(h.tag===22&&c){var w=h.memoizedState!==null||kl;if(!w){var N=h.alternate,E=N!==null&&N.memoizedState!==null||Ut;N=kl;var L=Ut;if(kl=w,(Ut=E)&&!L)for(he=h;he!==null;)w=he,E=w.child,w.tag===22&&w.memoizedState!==null?Gg(h):E!==null?(E.return=w,he=E):Gg(h);for(;y!==null;)he=y,Kg(y),y=y.sibling;he=h,kl=N,Ut=L}Qg(r)}else(h.subtreeFlags&8772)!==0&&y!==null?(y.return=h,he=y):Qg(r)}}function Qg(r){for(;he!==null;){var s=he;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Ut||_l(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Ut)if(a===null)c.componentDidMount();else{var h=s.elementType===s.type?a.memoizedProps:Dn(s.type,a.memoizedProps);c.componentDidUpdate(h,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=s.updateQueue;y!==null&&Zm(s,y,c);break;case 3:var w=s.updateQueue;if(w!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}Zm(s,w,a)}break;case 5:var N=s.stateNode;if(a===null&&s.flags&4){a=N;var E=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&a.focus();break;case"img":E.src&&(a.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var L=s.alternate;if(L!==null){var H=L.memoizedState;if(H!==null){var Z=H.dehydrated;Z!==null&&mo(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ut||s.flags&512&&Rd(s)}catch($){ft(s,s.return,$)}}if(s===r){he=null;break}if(a=s.sibling,a!==null){a.return=s.return,he=a;break}he=s.return}}function Zg(r){for(;he!==null;){var s=he;if(s===r){he=null;break}var a=s.sibling;if(a!==null){a.return=s.return,he=a;break}he=s.return}}function Gg(r){for(;he!==null;){var s=he;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{_l(4,s)}catch(E){ft(s,a,E)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var h=s.return;try{c.componentDidMount()}catch(E){ft(s,h,E)}}var y=s.return;try{Rd(s)}catch(E){ft(s,y,E)}break;case 5:var w=s.return;try{Rd(s)}catch(E){ft(s,w,E)}}}catch(E){ft(s,s.return,E)}if(s===r){he=null;break}var N=s.sibling;if(N!==null){N.return=s.return,he=N;break}he=s.return}}var NT=Math.ceil,El=F.ReactCurrentDispatcher,Od=F.ReactCurrentOwner,Nn=F.ReactCurrentBatchConfig,We=0,_t=null,St=null,Dt=0,pn=0,Ci=Kr(0),Pt=0,Vo=null,Ds=0,Al=0,Id=0,Fo=null,sn=null,Ld=0,ji=1/0,Tr=null,Rl=!1,Vd=null,Jr=null,Dl=!1,es=null,Ml=0,Bo=0,Fd=null,Ol=-1,Il=0;function Zt(){return(We&6)!==0?gt():Ol!==-1?Ol:Ol=gt()}function ts(r){return(r.mode&1)===0?1:(We&2)!==0&&Dt!==0?Dt&-Dt:lT.transition!==null?(Il===0&&(Il=$p()),Il):(r=Ze,r!==0||(r=window.event,r=r===void 0?16:Yp(r.type)),r)}function In(r,s,a,c){if(50<Bo)throw Bo=0,Fd=null,Error(n(185));uo(r,a,c),((We&2)===0||r!==_t)&&(r===_t&&((We&2)===0&&(Al|=a),Pt===4&&ns(r,Dt)),on(r,c),a===1&&We===0&&(s.mode&1)===0&&(ji=gt()+500,cl&&Zr()))}function on(r,s){var a=r.callbackNode;lS(r,s);var c=Ha(r,r===_t?Dt:0);if(c===0)a!==null&&Bp(a),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(a!=null&&Bp(a),s===1)r.tag===0?aT(Yg.bind(null,r)):Lm(Yg.bind(null,r)),rT(function(){(We&6)===0&&Zr()}),a=null;else{switch(Wp(c)){case 1:a=vc;break;case 4:a=zp;break;case 16:a=za;break;case 536870912:a=Up;break;default:a=za}a=oy(a,Xg.bind(null,r))}r.callbackPriority=s,r.callbackNode=a}}function Xg(r,s){if(Ol=-1,Il=0,(We&6)!==0)throw Error(n(327));var a=r.callbackNode;if(ki()&&r.callbackNode!==a)return null;var c=Ha(r,r===_t?Dt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=Ll(r,c);else{s=c;var h=We;We|=2;var y=ey();(_t!==r||Dt!==s)&&(Tr=null,ji=gt()+500,Os(r,s));do try{kT();break}catch(N){Jg(r,N)}while(!0);rd(),El.current=y,We=h,St!==null?s=0:(_t=null,Dt=0,s=Pt)}if(s!==0){if(s===2&&(h=xc(r),h!==0&&(c=h,s=Bd(r,h))),s===1)throw a=Vo,Os(r,0),ns(r,c),on(r,gt()),a;if(s===6)ns(r,c);else{if(h=r.current.alternate,(c&30)===0&&!CT(h)&&(s=Ll(r,c),s===2&&(y=xc(r),y!==0&&(c=y,s=Bd(r,y))),s===1))throw a=Vo,Os(r,0),ns(r,c),on(r,gt()),a;switch(r.finishedWork=h,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Is(r,sn,Tr);break;case 3:if(ns(r,c),(c&130023424)===c&&(s=Ld+500-gt(),10<s)){if(Ha(r,0)!==0)break;if(h=r.suspendedLanes,(h&c)!==c){Zt(),r.pingedLanes|=r.suspendedLanes&h;break}r.timeoutHandle=qc(Is.bind(null,r,sn,Tr),s);break}Is(r,sn,Tr);break;case 4:if(ns(r,c),(c&4194240)===c)break;for(s=r.eventTimes,h=-1;0<c;){var w=31-En(c);y=1<<w,w=s[w],w>h&&(h=w),c&=~y}if(c=h,c=gt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*NT(c/1960))-c,10<c){r.timeoutHandle=qc(Is.bind(null,r,sn,Tr),c);break}Is(r,sn,Tr);break;case 5:Is(r,sn,Tr);break;default:throw Error(n(329))}}}return on(r,gt()),r.callbackNode===a?Xg.bind(null,r):null}function Bd(r,s){var a=Fo;return r.current.memoizedState.isDehydrated&&(Os(r,s).flags|=256),r=Ll(r,s),r!==2&&(s=sn,sn=a,s!==null&&zd(s)),r}function zd(r){sn===null?sn=r:sn.push.apply(sn,r)}function CT(r){for(var s=r;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var h=a[c],y=h.getSnapshot;h=h.value;try{if(!An(y(),h))return!1}catch{return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ns(r,s){for(s&=~Id,s&=~Al,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var a=31-En(s),c=1<<a;r[a]=-1,s&=~c}}function Yg(r){if((We&6)!==0)throw Error(n(327));ki();var s=Ha(r,0);if((s&1)===0)return on(r,gt()),null;var a=Ll(r,s);if(r.tag!==0&&a===2){var c=xc(r);c!==0&&(s=c,a=Bd(r,c))}if(a===1)throw a=Vo,Os(r,0),ns(r,s),on(r,gt()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Is(r,sn,Tr),on(r,gt()),null}function Ud(r,s){var a=We;We|=1;try{return r(s)}finally{We=a,We===0&&(ji=gt()+500,cl&&Zr())}}function Ms(r){es!==null&&es.tag===0&&(We&6)===0&&ki();var s=We;We|=1;var a=Nn.transition,c=Ze;try{if(Nn.transition=null,Ze=1,r)return r()}finally{Ze=c,Nn.transition=a,We=s,(We&6)===0&&Zr()}}function $d(){pn=Ci.current,nt(Ci)}function Os(r,s){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,nT(a)),St!==null)for(a=St.return;a!==null;){var c=a;switch(Yc(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&ll();break;case 3:Ti(),nt(tn),nt(Ft),dd();break;case 5:ud(c);break;case 4:Ti();break;case 13:nt(ot);break;case 19:nt(ot);break;case 10:sd(c.type._context);break;case 22:case 23:$d()}a=a.return}if(_t=r,St=r=rs(r.current,null),Dt=pn=s,Pt=0,Vo=null,Id=Al=Ds=0,sn=Fo=null,Es!==null){for(s=0;s<Es.length;
vendor: 6,996 bytes, line 8
8s++)if(a=Es[s],c=a.interleaved,c!==null){a.interleaved=null;var h=c.next,y=a.pending;if(y!==null){var w=y.next;y.next=h,c.next=w}a.pending=c}Es=null}return r}function Jg(r,s){do{var a=St;try{if(rd(),wl.current=Pl,bl){for(var c=at.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}bl=!1}if(Rs=0,kt=Tt=at=null,Ro=!1,Do=0,Od.current=null,a===null||a.return===null){Pt=1,Vo=s,St=null;break}e:{var y=r,w=a.return,N=a,E=s;if(s=Dt,N.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var L=E,H=N,Z=H.tag;if((H.mode&1)===0&&(Z===0||Z===11||Z===15)){var $=H.alternate;$?(H.updateQueue=$.updateQueue,H.memoizedState=$.memoizedState,H.lanes=$.lanes):(H.updateQueue=null,H.memoizedState=null)}var ce=Pg(w);if(ce!==null){ce.flags&=-257,Ng(ce,w,N,y,s),ce.mode&1&&Tg(y,L,s),s=ce,E=L;var pe=s.updateQueue;if(pe===null){var ye=new Set;ye.add(E),s.updateQueue=ye}else pe.add(E);break e}else{if((s&1)===0){Tg(y,L,s),Wd();break e}E=Error(n(426))}}else if(st&&N.mode&1){var yt=Pg(w);if(yt!==null){(yt.flags&65536)===0&&(yt.flags|=256),Ng(yt,w,N,y,s),td(Pi(E,N));break e}}y=E=Pi(E,N),Pt!==4&&(Pt=2),Fo===null?Fo=[y]:Fo.push(y),y=w;do{switch(y.tag){case 3:y.flags|=65536,s&=-s,y.lanes|=s;var M=bg(y,E,s);Qm(y,M);break e;case 1:N=E;var A=y.type,O=y.stateNode;if((y.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Jr===null||!Jr.has(O)))){y.flags|=65536,s&=-s,y.lanes|=s;var ee=Sg(y,N,s);Qm(y,ee);break e}}y=y.return}while(y!==null)}ny(a)}catch(xe){s=xe,St===a&&a!==null&&(St=a=a.return);continue}break}while(!0)}function ey(){var r=El.current;return El.current=Pl,r===null?Pl:r}function Wd(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),_t===null||(Ds&268435455)===0&&(Al&268435455)===0||ns(_t,Dt)}function Ll(r,s){var a=We;We|=2;var c=ey();(_t!==r||Dt!==s)&&(Tr=null,Os(r,s));do try{jT();break}catch(h){Jg(r,h)}while(!0);if(rd(),We=a,El.current=c,St!==null)throw Error(n(261));return _t=null,Dt=0,Pt}function jT(){for(;St!==null;)ty(St)}function kT(){for(;St!==null&&!J1();)ty(St)}function ty(r){var s=iy(r.alternate,r,pn);r.memoizedProps=r.pendingProps,s===null?ny(r):St=s,Od.current=null}function ny(r){var s=r;do{var a=s.alternate;if(r=s.return,(s.flags&32768)===0){if(a=wT(a,s,pn),a!==null){St=a;return}}else{if(a=bT(a,s),a!==null){a.flags&=32767,St=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Pt=6,St=null;return}}if(s=s.sibling,s!==null){St=s;return}St=s=r}while(s!==null);Pt===0&&(Pt=5)}function Is(r,s,a){var c=Ze,h=Nn.transition;try{Nn.transition=null,Ze=1,_T(r,s,a,c)}finally{Nn.transition=h,Ze=c}return null}function _T(r,s,a,c){do ki();while(es!==null);if((We&6)!==0)throw Error(n(327));a=r.finishedWork;var h=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=a.lanes|a.childLanes;if(uS(r,y),r===_t&&(St=_t=null,Dt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Dl||(Dl=!0,oy(za,function(){return ki(),null})),y=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||y){y=Nn.transition,Nn.transition=null;var w=Ze;Ze=1;var N=We;We|=4,Od.current=null,TT(r,a),qg(a,r),ZS(Wc),Qa=!!$c,Wc=$c=null,r.current=a,PT(a),eS(),We=N,Ze=w,Nn.transition=y}else r.current=a;if(Dl&&(Dl=!1,es=r,Ml=h),y=r.pendingLanes,y===0&&(Jr=null),rS(a.stateNode),on(r,gt()),s!==null)for(c=r.onRecoverableError,a=0;a<s.length;a++)h=s[a],c(h.value,{componentStack:h.stack,digest:h.digest});if(Rl)throw Rl=!1,r=Vd,Vd=null,r;return(Ml&1)!==0&&r.tag!==0&&ki(),y=r.pendingLanes,(y&1)!==0?r===Fd?Bo++:(Bo=0,Fd=r):Bo=0,Zr(),null}function ki(){if(es!==null){var r=Wp(Ml),s=Nn.transition,a=Ze;try{if(Nn.transition=null,Ze=16>r?16:r,es===null)var c=!1;else{if(r=es,es=null,Ml=0,(We&6)!==0)throw Error(n(331));var h=We;for(We|=4,he=r.current;he!==null;){var y=he,w=y.child;if((he.flags&16)!==0){var N=y.deletions;if(N!==null){for(var E=0;E<N.length;E++){var L=N[E];for(he=L;he!==null;){var H=he;switch(H.tag){case 0:case 11:case 15:Lo(8,H,y)}var Z=H.child;if(Z!==null)Z.return=H,he=Z;else for(;he!==null;){H=he;var $=H.sibling,ce=H.return;if(zg(H),H===L){he=null;break}if($!==null){$.return=ce,he=$;break}he=ce}}}var pe=y.alternate;if(pe!==null){var ye=pe.child;if(ye!==null){pe.child=null;do{var yt=ye.sibling;ye.sibling=null,ye=yt}while(ye!==null)}}he=y}}if((y.subtreeFlags&2064)!==0&&w!==null)w.return=y,he=w;else e:for(;he!==null;){if(y=he,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Lo(9,y,y.return)}var M=y.sibling;if(M!==null){M.return=y.return,he=M;break e}he=y.return}}var A=r.current;for(he=A;he!==null;){w=he;var O=w.child;if((w.subtreeFlags&2064)!==0&&O!==null)O.return=w,he=O;else e:for(w=A;he!==null;){if(N=he,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:_l(9,N)}}catch(xe){ft(N,N.return,xe)}if(N===w){he=null;break e}var ee=N.sibling;if(ee!==null){ee.return=N.return,he=ee;break e}he=N.return}}if(We=h,Zr(),Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(Ua,r)}catch{}c=!0}return c}finally{Ze=a,Nn.transition=s}}return!1}function ry(r,s,a){s=Pi(a,s),s=bg(r,s,1),r=Xr(r,s,1),s=Zt(),r!==null&&(uo(r,1,s),on(r,s))}function ft(r,s,a){if(r.tag===3)ry(r,r,a);else for(;s!==null;){if(s.tag===3){ry(s,r,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Jr===null||!Jr.has(c))){r=Pi(a,r),r=Sg(s,r,1),s=Xr(s,r,1),r=Zt(),s!==null&&(uo(s,1,r),on(s,r));break}}s=s.return}}function ET(r,s,a){var c=r.pingCache;c!==null&&c.delete(s),s=Zt(),r.pingedLanes|=r.suspendedLanes&a,_t===r&&(Dt&a)===a&&(Pt===4||Pt===3&&(Dt&130023424)===Dt&&500>gt()-Ld?Os(r,0):Id|=a),on(r,s)}function sy(r,s){s===0&&((r.mode&1)===0?s=1:(s=Wa,Wa<<=1,(Wa&130023424)===0&&(Wa=4194304)));var a=Zt();r=wr(r,s),r!==null&&(uo(r,s,a),on(r,a))}function AT(r){var s=r.memoizedState,a=0;s!==null&&(a=s.retryLane),sy(r,a)}function RT(r,s){var a=0;switch(r.tag){case 13:var c=r.stateNode,h=r.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),sy(r,a)}var iy;iy=function(r,s,a){if(r!==null)if(r.memoizedProps!==s.pendingProps||tn.current)rn=!0;else{if((r.lanes&a)===0&&(s.flags&128)===0)return rn=!1,xT(r,s,a);rn=(r.flags&131072)!==0}else rn=!1,st&&(s.flags&1048576)!==0&&Vm(s,fl,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;jl(r,s),r=s.pendingProps;var h=gi(s,Ft.current);Si(s,a),h=pd(null,s,c,r,h,a);var y=md();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,nn(c)?(y=!0,ul(s)):y=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ad(s),h.updater=Nl,s.stateNode=h,h._reactInternals=s,bd(s,c,r,a),s=Nd(null,s,c,!0,y,a)):(s.tag=0,st&&y&&Xc(s),Qt(null,s,h,a),s=s.child),s;case 16:c=s.elementType;e:{switch(jl(r,s),r=s.pendingProps,h=c._init,c=h(c._payload),s.type=c,h=s.tag=MT(c),r=Dn(c,r),h){case 0:s=Pd(null,
vendor: 5,289 bytes, line 8
8s,c,r,a);break e;case 1:s=Ag(null,s,c,r,a);break e;case 11:s=Cg(null,s,c,r,a);break e;case 14:s=jg(null,s,c,Dn(c.type,r),a);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:Dn(c,h),Pd(r,s,c,h,a);case 1:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:Dn(c,h),Ag(r,s,c,h,a);case 3:e:{if(Rg(s),r===null)throw Error(n(387));c=s.pendingProps,y=s.memoizedState,h=y.element,Km(r,s),vl(s,c,null,a);var w=s.memoizedState;if(c=w.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){h=Pi(Error(n(423)),s),s=Dg(r,s,c,a,h);break e}else if(c!==h){h=Pi(Error(n(424)),s),s=Dg(r,s,c,a,h);break e}else for(hn=qr(s.stateNode.containerInfo.firstChild),fn=s,st=!0,Rn=null,a=Hm(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(xi(),c===h){s=Sr(r,s,a);break e}Qt(r,s,c,a)}s=s.child}return s;case 5:return Gm(s),r===null&&ed(s),c=s.type,h=s.pendingProps,y=r!==null?r.memoizedProps:null,w=h.children,Hc(c,h)?w=null:y!==null&&Hc(c,y)&&(s.flags|=32),Eg(r,s),Qt(r,s,w,a),s.child;case 6:return r===null&&ed(s),null;case 13:return Mg(r,s,a);case 4:return ld(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=wi(s,null,c,a):Qt(r,s,c,a),s.child;case 11:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:Dn(c,h),Cg(r,s,c,h,a);case 7:return Qt(r,s,s.pendingProps,a),s.child;case 8:return Qt(r,s,s.pendingProps.children,a),s.child;case 12:return Qt(r,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,h=s.pendingProps,y=s.memoizedProps,w=h.value,Je(ml,c._currentValue),c._currentValue=w,y!==null)if(An(y.value,w)){if(y.children===h.children&&!tn.current){s=Sr(r,s,a);break e}}else for(y=s.child,y!==null&&(y.return=s);y!==null;){var N=y.dependencies;if(N!==null){w=y.child;for(var E=N.firstContext;E!==null;){if(E.context===c){if(y.tag===1){E=br(-1,a&-a),E.tag=2;var L=y.updateQueue;if(L!==null){L=L.shared;var H=L.pending;H===null?E.next=E:(E.next=H.next,H.next=E),L.pending=E}}y.lanes|=a,E=y.alternate,E!==null&&(E.lanes|=a),id(y.return,a,s),N.lanes|=a;break}E=E.next}}else if(y.tag===10)w=y.type===s.type?null:y.child;else if(y.tag===18){if(w=y.return,w===null)throw Error(n(341));w.lanes|=a,N=w.alternate,N!==null&&(N.lanes|=a),id(w,a,s),w=y.sibling}else w=y.child;if(w!==null)w.return=y;else for(w=y;w!==null;){if(w===s){w=null;break}if(y=w.sibling,y!==null){y.return=w.return,w=y;break}w=w.return}y=w}Qt(r,s,h.children,a),s=s.child}return s;case 9:return h=s.type,c=s.pendingProps.children,Si(s,a),h=Tn(h),c=c(h),s.flags|=1,Qt(r,s,c,a),s.child;case 14:return c=s.type,h=Dn(c,s.pendingProps),h=Dn(c.type,h),jg(r,s,c,h,a);case 15:return kg(r,s,s.type,s.pendingProps,a);case 17:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:Dn(c,h),jl(r,s),s.tag=1,nn(c)?(r=!0,ul(s)):r=!1,Si(s,a),xg(s,c,h),bd(s,c,h,a),Nd(null,s,c,!0,r,a);case 19:return Ig(r,s,a);case 22:return _g(r,s,a)}throw Error(n(156,s.tag))};function oy(r,s){return Fp(r,s)}function DT(r,s,a,c){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(r,s,a,c){return new DT(r,s,a,c)}function Hd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function MT(r){if(typeof r=="function")return Hd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===X)return 11;if(r===Se)return 14}return 2}function rs(r,s){var a=r.alternate;return a===null?(a=Cn(r.tag,s,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=s,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,s=r.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function Vl(r,s,a,c,h,y){var w=2;if(c=r,typeof r=="function")Hd(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case Q:return Ls(a.children,h,y,s);case ne:w=8,h|=8;break;case me:return r=Cn(12,a,s,h|2),r.elementType=me,r.lanes=y,r;case ie:return r=Cn(13,a,s,h),r.elementType=ie,r.lanes=y,r;case K:return r=Cn(19,a,s,h),r.elementType=K,r.lanes=y,r;case se:return Fl(a,h,y,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ve:w=10;break e;case be:w=9;break e;case X:w=11;break e;case Se:w=14;break e;case ge:w=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=Cn(w,a,s,h),s.elementType=r,s.type=c,s.lanes=y,s}function Ls(r,s,a,c){return r=Cn(7,r,c,s),r.lanes=a,r}function Fl(r,s,a,c){return r=Cn(22,r,c,s),r.elementType=se,r.lanes=a,r.stateNode={isHidden:!1},r}function qd(r,s,a){return r=Cn(6,r,null,s),r.lanes=a,r}function Kd(r,s,a){return s=Cn(4,r.children!==null?r.children:[],r.key,s),s.lanes=a,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}
vendor: 4,186 bytes, line 8
8function OT(r,s,a,c,h){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wc(0),this.expirationTimes=wc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wc(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Qd(r,s,a,c,h,y,w,N,E){return r=new OT(r,s,a,N,E),s===1?(s=1,y===!0&&(s|=8)):s=0,y=Cn(3,null,null,s),r.current=y,y.stateNode=r,y.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},ad(y),r}function IT(r,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:q,key:c==null?null:""+c,children:r,containerInfo:s,implementation:a}}function ay(r){if(!r)return Qr;r=r._reactInternals;e:{if(Ns(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(nn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(nn(a))return Om(r,a,s)}return s}function ly(r,s,a,c,h,y,w,N,E){return r=Qd(a,c,!0,r,h,y,w,N,E),r.context=ay(null),a=r.current,c=Zt(),h=ts(a),y=br(c,h),y.callback=s??null,Xr(a,y,h),r.current.lanes=h,uo(r,h,c),on(r,c),r}function Bl(r,s,a,c){var h=s.current,y=Zt(),w=ts(h);return a=ay(a),s.context===null?s.context=a:s.pendingContext=a,s=br(y,w),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=Xr(h,s,w),r!==null&&(In(r,h,w,y),yl(r,h,w)),w}function zl(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function uy(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<s?a:s}}function Zd(r,s){uy(r,s),(r=r.alternate)&&uy(r,s)}function LT(){return null}var cy=typeof reportError=="function"?reportError:function(r){console.error(r)};function Gd(r){this._internalRoot=r}Ul.prototype.render=Gd.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));Bl(r,s,null,null)},Ul.prototype.unmount=Gd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Ms(function(){Bl(null,r,null,null)}),s[gr]=null}};function Ul(r){this._internalRoot=r}Ul.prototype.unstable_scheduleHydration=function(r){if(r){var s=Kp();r={blockedOn:null,target:r,priority:s};for(var a=0;a<$r.length&&s!==0&&s<$r[a].priority;a++);$r.splice(a,0,r),a===0&&Gp(r)}};function Xd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function $l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function dy(){}function VT(r,s,a,c,h){if(h){if(typeof c=="function"){var y=c;c=function(){var L=zl(w);y.call(L)}}var w=ly(s,c,r,0,null,!1,!1,"",dy);return r._reactRootContainer=w,r[gr]=w.current,Po(r.nodeType===8?r.parentNode:r),Ms(),w}for(;h=r.lastChild;)r.removeChild(h);if(typeof c=="function"){var N=c;c=function(){var L=zl(E);N.call(L)}}var E=Qd(r,0,!1,null,null,!1,!1,"",dy);return r._reactRootContainer=E,r[gr]=E.current,Po(r.nodeType===8?r.parentNode:r),Ms(function(){Bl(s,E,a,c)}),E}function Wl(r,s,a,c,h){var y=a._reactRootContainer;if(y){var w=y;if(typeof h=="function"){var N=h;h=function(){var E=zl(w);N.call(E)}}Bl(s,w,r,h)}else w=VT(a,s,r,h,c);return zl(w)}Hp=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var a=lo(s.pendingLanes);a!==0&&(bc(s,a|1),on(s,gt()),(We&6)===0&&(ji=gt()+500,Zr()))}break;case 13:Ms(function(){var c=wr(r,1);if(c!==null){var h=Zt();In(c,r,1,h)}}),Zd(r,1)}},Sc=function(r){if(r.tag===13){var s=wr(r,134217728);if(s!==null){var a=Zt();In(s,r,134217728,a)}Zd(r,134217728)}},qp=function(r){if(r.tag===13){var s=ts(r),a=wr(r,s);if(a!==null){var c=Zt();In(a,r,s,c)}Zd(r,s)}},Kp=function(){return Ze},Qp=function(r,s){var a=Ze;try{return Ze=r,s()}finally{Ze=a}},pc=function(r,s,a){switch(s){case"input":if(Js(r,a),s=a.name,a.t
8ype==="radio"&&s!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==r&&c.form===r.form){var h=al(c);if(!h)throw Error(n(90));Ps(c),Js(c,h)}}}break;case"textarea":z(r,a);break;case"select":s=a.value,s!=null&&mr(r,!!a.multiple,s,!1)}},Rp=Ud,Dp=Ms;var FT={usingClientEntryPoint:!1,Events:[jo,pi,al,Ep,Ap,Ud]},zo={findFiberByHostInstance:Cs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},BT={bundleType:zo.bundleType,version:zo.version,rendererPackageName:zo.rendererPackageName,rendererConfig:zo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Lp(r),r===null?null:r.stateNode},findFiberByHostInstance:zo.findFiberByHostInstance||LT,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hl.isDisabled&&Hl.supportsFiber)try{Ua=Hl.inject(BT),Gn=Hl}catch{}}return an.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FT,an.createPortal=function(r,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xd(s))throw Error(n(200));return IT(r,s,null,a)},an.createRoot=function(r,s){if(!Xd(r))throw Error(n(299));var a=!1,c="",h=cy;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(h=s.onRecoverableError)),s=Qd(r,1,!1,null,null,a,!1,c,h),r[gr]=s.current,Po(r.nodeType===8?r.parentNode:r),new Gd(s)},an.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Lp(s),r=r===null?null:r.stateNode,r},an.flushSync=function(r){return Ms(r)},an.hydrate=function(r,s,a){if(!$l(s))throw Error(n(200));return Wl(null,r,s,!0,a)},an.hydrateRoot=function(r,s,a){if(!Xd(r))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,h=!1,y="",w=cy;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(w=a.onRecoverableError)),s=ly(s,null,r,1,a??null,h,!1,y,w),r[gr]=s.current,Po(r),c)for(r=0;r<c.length;r++)a=c[r],h=a._getVersion,h=h(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,h]:s.mutableSourceEagerHydrationData.push(a,h);return new Ul(s)},an.render=function(r,s,a){if(!$l(s))throw Error(n(200));return Wl(null,r,s,!1,a)},an.unmountComponentAtNode=function(r){if(!$l(r))throw Error(n(40));return r._reactRootContainer?(Ms(function(){Wl(null,null,r,!1,function(){r._reactRootContainer=null,r[gr]=null})}),!0):!1},an.unstable_batchedUpdates=Ud,an.unstable_renderSubtreeIntoContainer=function(r,s,a,c){if(!$l(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Wl(r,s,a,!1,c)},an.version="18.3.1-next-f1338f8080-20240426",an}var xy;function Fx(){if(xy)return ef.exports;xy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ef.exports=QT(),ef.exports}var wy;function ZT(){if(wy)return ql;wy=1;var t=Fx();return ql.createRoot=t.createRoot,ql.hydrateRoot=t.hydrateRoot,ql}var GT=ZT();function XT(t,e){if(t instanceof RegExp)return{keys:!1,pattern:t};var n,i,o,l,u=[],f="",p=t.split("/");for(p[0]||p.shift();o=p.shift();)n=o[0],n==="*"?(u.push(n),f+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(i=o.indexOf("?",1),l=o.indexOf(".",1),u.push(o.substring(1,~i?i:~l?l:o.length)),f+=~i&&!~l?"(?:/([^/]+?))?":"/([^/]+?)",~l&&(f+=(~i?"?":"")+"\\"+o.substring(l))):f+="/"+o;return{keys:u,pattern:new RegExp("^"+f+(e?"(?=$|/)":"/?$"),"i")}}var S=Lu();const je=Vx(S),YT=UT({__proto__:null,default:je},[S]);var rf={exports:{}},sf={};var by;function JT(){if(by)return sf;by=1;var t=Lu();function e(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var n=typeof Object.is=="function"?Object.is:e,i=t.useState,o=t.useEffect,l=t.useLayoutEffect,u=t.useDebugValue;function f(v,x){var P=x(),C=i({inst:{value:P,getSnapshot:x}}),b=C[0].inst,T=C[1];return l(function(){b.value=P,b.getSnapshot=x,p(b)&&T({inst:b})},[v,P,x]),o(function(){return p(b)&&T({inst:b}),v(function(){p(b)&&T({inst:b})})},[v]),u(P),P}function p(v){var x=v.getSnapshot;v=v.value;try{var P=x();return!n(v,P)}catch{return!0}}function m(v,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return sf.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,sf}var Sy;function eP(){return Sy||(Sy=1,rf.exports=JT()),rf.exports}var tP=eP();const nP=YT.useInsertionEffect,rP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sP=rP?S.useLayoutEffect:S.useEffect,iP=nP||sP,Bx=t=>{const e=S.useRef([t,(...n)=>e[0](...n)]).current;return iP(()=>{e[0]=t}),e[1]},oP="popstate",gh="pushState",yh="replaceState",aP="hashchange",Ty=[oP,gh,yh,aP],lP=t=>{for(const e of Ty)addEventListener(e,t);return()=>{for(const e of Ty)removeEventListener(e,t)}},zx=(t,e)=>tP.useSyncExternalStore(lP,t,e),uP=()=>location.search,cP=({ssrSearch:t=""}={})=>zx(uP,()=>t),Py=()=>location.pathname,dP=({ssrPath:t}={})=>zx(Py,t?()=>t:Py),fP=(t,{replace:e=!1,state:n=null}={})=>history[e?yh:gh](n,"",t),hP=(t={})=>[dP(t),fP],Ny=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ny]>"u"){for(const t of[gh,yh]){const e=history[t];history[t]=function(){const n=e.apply(this,arguments),i=new Event(t);return i.arguments=arguments,dispatchEvent(i),n}}Object.defineProperty(window,Ny,{value:!0})}const pP=(t,e)=>e.toLowerCase().indexOf(t.toLowerCase())?"~"+e:e.slice(t.length)||"/",Ux=(t="")=>t==="/"?"":t,mP=(t,e)=>t[0]==="~"?t.slice(1):Ux(e)+t,gP=(t="",e)=>pP(Of(Ux(t)),Of(e)),yP=t=>t[0]==="?"?t.slice(1):t,Of=t=>{try{return decodeURI(t)}catch{return t}},vP=t=>Of(yP(t)),$x={hook:hP,searchHook:cP,parser:XT,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:t=>t},Wx=S.createContext($x),Xi=()=>S.useContext(Wx),Hx={},qx=S.createContext(Hx),xP=()=>S.useContext(qx),Vu=t=>{const[e,n]=t.hook(t);return[gP(t.base,e),Bx((i,o)=>n(mP(i,t.base),o))]},wP=()=>Vu(Xi()),bP=()=>{const t=Xi();
8return vP(t.searchHook(t))},Kx=(t,e,n,i)=>{const{pattern:o,keys:l}=e instanceof RegExp?{keys:!1,pattern:e}:t(e||"*",i),u=o.exec(n)||[],[f,...p]=u;return f!==void 0?[!0,(()=>{const m=l!==!1?Object.fromEntries(l.map((v,x)=>[v,p[x]])):u.groups;let g={...p};return m&&Object.assign(g,m),g})(),...i?[f]:[]]:[!1,null]},SP=({children:t,...e})=>{const n=Xi(),i=e.hook?$x:n;let o=i;const[l,u]=e.ssrPath?.split("?")??[];u&&(e.ssrSearch=u,e.ssrPath=l),e.hrefs=e.hrefs??e.hook?.hrefs;let f=S.useRef({}),p=f.current,m=p;for(let g in i){const v=g==="base"?i[g]+(e[g]||""):e[g]||i[g];p===m&&v!==m[g]&&(f.current=m={...m}),m[g]=v,v!==i[g]&&(o=m)}return S.createElement(Wx.Provider,{value:o,children:t})},Cy=({children:t,component:e},n)=>e?S.createElement(e,{params:n}):typeof t=="function"?t(n):t,TP=t=>{let e=S.useRef(Hx),n=e.current;for(const i in t)t[i]!==n[i]&&(n=t);return Object.keys(t).length===0&&(n=t),e.current=n},is=({path:t,nest:e,match:n,...i})=>{const o=Xi(),[l]=Vu(o),[u,f,p]=n??Kx(o.parser,t,l,e),m=TP({...xP(),...f});if(!u)return null;const g=p?S.createElement(SP,{base:p},Cy(i,m)):Cy(i,m);return S.createElement(qx.Provider,{value:m,children:g})},Ae=S.forwardRef((t,e)=>{const n=Xi(),[i,o]=Vu(n),{to:l="",href:u=l,onClick:f,asChild:p,children:m,className:g,replace:v,state:x,...P}=t,C=Bx(T=>{T.ctrlKey||T.metaKey||T.altKey||T.shiftKey||T.button!==0||(f?.(T),T.defaultPrevented||(T.preventDefault(),o(u,t)))}),b=n.hrefs(u[0]==="~"?u.slice(1):n.base+u,n);return p&&S.isValidElement(m)?S.cloneElement(m,{onClick:C,href:b}):S.createElement("a",{...P,onClick:C,href:b,className:g?.call?g(i===u):g,children:m,ref:e})}),Qx=t=>Array.isArray(t)?t.flatMap(e=>Qx(e&&e.type===S.Fragment?e.props.children:e)):[t],PP=({children:t,location:e})=>{const n=Xi(),[i]=Vu(n);for(const o of Qx(t)){let l=0;if(S.isValidElement(o)&&(l=Kx(n.parser,o.props.path,e||i,o.props.nest))[0])return S.cloneElement(o,{match:l})}return null};var Ca=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fu=typeof window>"u"||"Deno"in globalThis;function Vn(){}function NP(t,e){return typeof t=="function"?t(e):t}function CP(t){return typeof t=="number"&&t>=0&&t!==1/0}function jP(t,e){return Math.max(t+(e||0)-Date.now(),0)}function jy(t,e){return typeof t=="function"?t(e):t}function kP(t,e){return typeof t=="function"?t(e):t}function ky(t,e){const{type:n="all",exact:i,fetchStatus:o,predicate:l,queryKey:u,stale:f}=t;if(u){if(i){if(e.queryHash!==vh(u,e.options))return!1}else if(!sa(e.queryKey,u))return!1}if(n!=="all"){const p=e.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||o&&o!==e.state.fetchStatus||l&&!l(e))}function _y(t,e){const{exact:n,status:i,predicate:o,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Hs(e.options.mutationKey)!==Hs(l))return!1}else if(!sa(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||o&&!o(e))}function vh(t,e){return(e?.queryKeyHashFn||Hs)(t)}function Hs(t){return JSON.stringify(t,(e,n)=>If(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function sa(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!sa(t[n],e[n])):!1}function Zx(t,e){if(t===e)return t;const n=Ey(t)&&Ey(e);if(n||If(t)&&If(e)){const i=n?t:Object.keys(t),o=i.length,l=n?e:Object.keys(e),u=l.length,f=n?[]:{};let p=0;for(let m=0;m<u;m++){const g=n?m:l[m];(!n&&i.includes(g)||n)&&t[g]===void 0&&e[g]===void 0?(f[g]=void 0,p++):(f[g]=Zx(t[g],e[g]),f[g]===t[g]&&t[g]!==void 0&&p++)}return o===u&&p===o?t:f}return e}function _P(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Ey(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function If(t){if(!Ay(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Ay(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ay(t){return Object.prototype.toString.call(t)==="[object Object]"}function EP(t){return new Promise(e=>{setTimeout(e,t)})}function AP(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Zx(t,e):e}function RP(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function DP(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var xh=Symbol();function Gx(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===xh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var MP=class extends Ca{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!Fu&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 17,869 bytes, line 8
8this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Xx=new MP,OP=class extends Ca{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!Fu&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},uu=new OP;function IP(){let t,e;const n=new Promise((o,l)=>{t=o,e=l});n.status="pending",n.catch(()=>{});function i(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},n.reject=o=>{i({status:"rejected",reason:o}),e(o)},n}function LP(t){return Math.min(1e3*2**t,3e4)}function Yx(t){return(t??"online")==="online"?uu.isOnline():!0}var Jx=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function of(t){return t instanceof Jx}function e0(t){let e=!1,n=0,i=!1,o;const l=IP(),u=b=>{i||(x(new Jx(b)),t.abort?.())},f=()=>{e=!0},p=()=>{e=!1},m=()=>Xx.isFocused()&&(t.networkMode==="always"||uu.isOnline())&&t.canRun(),g=()=>Yx(t.networkMode)&&t.canRun(),v=b=>{i||(i=!0,t.onSuccess?.(b),o?.(),l.resolve(b))},x=b=>{i||(i=!0,t.onError?.(b),o?.(),l.reject(b))},P=()=>new Promise(b=>{o=T=>{(i||m())&&b(T)},t.onPause?.()}).then(()=>{o=void 0,i||t.onContinue?.()}),C=()=>{if(i)return;let b;const T=n===0?t.initialPromise:void 0;try{b=T??t.fn()}catch(j){b=Promise.reject(j)}Promise.resolve(b).then(v).catch(j=>{if(i)return;const k=t.retry??(Fu?0:3),D=t.retryDelay??LP,F=typeof D=="function"?D(n,j):D,V=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,j);if(e||!V){x(j);return}n++,t.onFail?.(n,j),EP(F).then(()=>m()?void 0:P()).then(()=>{e?x(j):C()})})};return{promise:l,cancel:u,continue:()=>(o?.(),l),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?C():P().then(C),l)}}function VP(){let t=[],e=0,n=f=>{f()},i=f=>{f()},o=f=>setTimeout(f,0);const l=f=>{e?t.push(f):o(()=>{n(f)})},u=()=>{const f=t;t=[],f.length&&o(()=>{i(()=>{f.forEach(p=>{n(p)})})})};return{batch:f=>{let p;e++;try{p=f()}finally{e--,e||u()}return p},batchCalls:f=>(...p)=>{l(()=>{f(...p)})},schedule:l,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{o=f}}}var Lt=VP(),t0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),CP(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Fu?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},FP=class extends t0{#e;#t;#n;#r;#o;#s;constructor(t){super(),this.#s=!1,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#n=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=zP(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){this.options={...this.#o,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=AP(this.state.data,t,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#i({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(Vn).catch(Vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>kP(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!jP(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(t,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const f=Gx(this.options,e),p={queryKey:this.queryKey,meta:this.meta};return i(p),this.#s=!1,this.options.persister?this.options.persister(f,p,this):f(p)},l={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const u=f=>{of(f)&&f.silent||this.#i({type:"error",error:f}),of(f)||(this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this)),this.scheduleGc()};return this.#r=e0({initialPromise:e?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(p){u(p);return}this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),this.scheduleGc()},onError:u,onFail:(f,p)=>{this.#i({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#r.start()}#i(t){const e=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,...BP(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...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 i=t.error;return of(i)&&i.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Lt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function BP(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yx(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function zP(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var UP=class extends Ca{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const i=e.queryKey,o=e.queryHash??vh(i,e);let l=this.get(o);return l||(l=new FP({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>ky(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>ky(t,n)):e}notify(t){Lt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$P=class extends t0{#e;#t;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#e=[],this.state=t.state||n0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){this.#n=e0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#r({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const e=this.state.status==="pending",n=!this.#n.canStart();try{if(!e){this.#r({type:"pending",variables:t,isPaused:n}),await this.#t.config.onMutate?.(t,this);const o=await this.options.onMutate?.(t);o!==this.state.context&&this.#r({type:"pending",context:o,variables:t,isPaused:n})}const i=await this.#n.start();return await this.#t.config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#t.config.onError?.(i,t,this.state.context,this),await this.options.onError?.(i,t,this.state.context),await this.#t.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,t,this.state.context),i}finally{this.#r({type:"error",error:i})}}finally{this.#t.runNext(this)}}#r(t){const e=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=e(this.state),Lt.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function n0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var WP=class extends Ca{constructor(t={}){super(),this.config=t,this.#e=new Map,this.#t=Date.now()}#e;#t;build(t,e,n){const i=new $P({mutationCache:this,mutationId:++this.#t,options:t.defaultMutationOptions(e),state:n});return this.add(i),i}add(t){const e=Kl(t),n=this.#e.get(e)??[];n.push(t),this.#e.set(e,n),this.notify({type:"added",mutation:t})}remove(t){const e=Kl(t);if(this.#e.has(e)){const n=this.#e.get(e)?.filter(i=>i!==t);n&&(n.length===0?this.#e.delete(e):this.#e.set(e,n))}this.notify({type:"removed",mutation:t})}canRun(t){const e=this.#e.get(Kl(t))?.find(n=>n.state.status==="pending");return!e||e===t}runNext(t){return this.#e.get(Kl(t))?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve()}clear(){Lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...this.#e.values()].flat()}find(t){const e={exact:!0,...t};return this.getAll().find(n=>_y(e,n))}findAll(t={}){return this.getAll().filter(e=>_y(t,e))}notify(t){Lt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Lt.batch(()=>Promise.all(t.map(e=>e.continue().catch(Vn))))}};function Kl(t){return t.options.scope?.id??String(t.mutationId)}function Ry(t){return{onFetch:(e,n)=>{const i=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,l=e.state.data?.pages||[],u=e.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},x=Gx(e.options,e.fetchOptions),P=async(C,b,T)=>{if(g)return Promise.reject();if(b==null&&C.pages.length)return Promise.resolve(C);const j={queryKey:e.queryKey,pageParam:b,direction:T?"backward":"forward",meta:e.options.meta};v(j);const k=await x(j),{maxPages:D}=e.options,F=T?DP:RP;return{pages:F(C.pages,k,D),pageParams:F(C.pageParams,b,D)}};if(o&&l.length){const C=o==="backward",b=C?HP:Dy,T={pages:l,pageParams:u},j=b(i,T);f=await P(T,j,C)}else{const C=t??l.length;do{const b=p===0?u[0]??i.initialPageParam:Dy(i,f);if(p>0&&b==null)break;f=await P(f,b),p++}while(p<C)}return f};e.options.persister?e.fetchFn=()=>e.options.persister?.(m,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=m}}}function Dy(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function HP(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var qP=class{#e;#t;#n;#r;#o;#s;#i;#a;constructor(t={}){this.#e=t.queryCache||new UP,this.#t=t.mutationCache||new WP,this.#n=t.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=Xx.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=uu.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#a?.(),this.#a=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const n=this.defaultQueryOptions(t),i=this.#e.build(this,n);return t.revalidateIfStale&&i.isStaleByTime(jy(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),l=this.#e.get(i.queryHash)?.state.data,u=NP(e,l);if(u!==void 0)return this.#e.build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return Lt.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Lt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e,i={type:"active",...t};return Lt.batch(()=>(n.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=Lt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(n)));return Promise.all(i).then(Vn).catch(Vn)}invalidateQueries(t={},e={}){return Lt.batch(()=>{if(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:e?.cancelRefetch??!0},i=Lt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(Vn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Vn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(jy(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Vn).catch(Vn)}fetchInfiniteQuery(t){return t.behavior=Ry(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Vn).catch(Vn)}ensureInfiniteQueryData(t){return t.behavior=Ry(t.pages),this.ensureQueryData(t)}
8resumePausedMutations(){return uu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(Hs(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()];let n={};return e.forEach(i=>{sa(t,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(t,e){this.#o.set(Hs(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#o.values()];let n={};return e.forEach(i=>{sa(t,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=vh(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===xh&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},KP=class extends Ca{#e;#t=void 0;#n;#r;constructor(e,n){super(),this.#e=e,this.setOptions(n),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const n=this.options;this.options=this.#e.defaultMutationOptions(e),_P(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Hs(n.mutationKey)!==Hs(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(e,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){const e=this.#n?.state??n0();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Lt.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,i=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,n,i),this.#r.onSettled?.(e.data,null,n,i)):e?.type==="error"&&(this.#r.onError?.(e.error,n,i),this.#r.onSettled?.(void 0,e.error,n,i))}this.listeners.forEach(n=>{n(this.#t)})})}},r0=S.createContext(void 0),QP=t=>{const e=S.useContext(r0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},ZP=({client:t,children:e})=>(S.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(r0.Provider,{value:t,children:e}));function GP(t,e){return typeof t=="function"?t(...e):!!t}function XP(){}function wh(t,e){const n=QP(),[i]=S.useState(()=>new KP(n,t));S.useEffect(()=>{i.setOptions(t)},[i,t]);const o=S.useSyncExternalStore(S.useCallback(u=>i.subscribe(Lt.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=S.useCallback((u,f)=>{i.mutate(u,f).catch(XP)},[i]);if(o.error&&GP(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}async function s0(t){if(!t.ok){const e=await t.text()||t.statusText;throw new Error(`${t.status}: ${e}`)}}async function bh(t,e,n){const i=await fetch(e,{method:t,headers:n?{"Content-Type":"application/json"}:{},body:n?JSON.stringify(n):void 0,credentials:"include"});return await s0(i),i}const YP=({on401:t})=>async({queryKey:e})=>{const n=await fetch(e.join("/"),{credentials:"include"});return await s0(n),await n.json()},JP=new qP({defaultOptions:{queries:{queryFn:YP({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),eN=1,tN=1e6;let af=0;function nN(){return af=(af+1)%Number.MAX_SAFE_INTEGER,af.toString()}const lf=new Map,My=t=>{if(lf.has(t))return;const e=setTimeout(()=>{lf.delete(t),Yo({type:"REMOVE_TOAST",toastId:t})},tN);lf.set(t,e)},rN=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,eN)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;
8return n?My(n):t.toasts.forEach(i=>{My(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},nu=[];let ru={toasts:[]};function Yo(t){ru=rN(ru,t),nu.forEach(e=>{e(ru)})}function sN({...t}){const e=nN(),n=o=>Yo({type:"UPDATE_TOAST",toast:{...o,id:e}}),i=()=>Yo({type:"DISMISS_TOAST",toastId:e});return Yo({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:o=>{o||i()}}}),{id:e,dismiss:i,update:n}}function Sh(){const[t,e]=S.useState(ru);return S.useEffect(()=>(nu.push(e),()=>{const n=nu.indexOf(e);n>-1&&nu.splice(n,1)}),[t]),{...t,toast:sN,dismiss:n=>Yo({type:"DISMISS_TOAST",toastId:n})}}var Bu=Fx();const iN=Vx(Bu);function Ct(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t?.(o),n===!1||!o.defaultPrevented)return e?.(o)}}function Oy(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function i0(...t){return e=>{let n=!1;const i=t.map(o=>{const l=Oy(o,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():Oy(t[o],null)}}}}function Hn(...t){return S.useCallback(i0(...t),t)}function zu(t,e=[]){let n=[];function i(l,u){const f=S.createContext(u),p=n.length;n=[...n,u];const m=v=>{const{scope:x,children:P,...C}=v,b=x?.[t]?.[p]||f,T=S.useMemo(()=>C,Object.values(C));return d.jsx(b.Provider,{value:T,children:P})};m.displayName=l+"Provider";function g(v,x){const P=x?.[t]?.[p]||f,C=S.useContext(P);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[m,g]}const o=()=>{const l=n.map(u=>S.createContext(u));return function(f){const p=f?.[t]||l;return S.useMemo(()=>({[`__scope${t}`]:{...f,[t]:p}}),[f,p])}};return o.scopeName=t,[i,oN(o,...e)]}function oN(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const u=i.reduce((f,{useScope:p,scopeName:m})=>{const v=p(l)[`__scope${m}`];return{...f,...v}},{});return S.useMemo(()=>({[`__scope${e.scopeName}`]:u}),[u])}};return n.scopeName=e.scopeName,n}function cu(t){const e=aN(t),n=S.forwardRef((i,o)=>{const{children:l,...u}=i,f=S.Children.toArray(l),p=f.find(uN);if(p){const m=p.props.children,g=f.map(v=>v===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:v);return d.jsx(e,{...u,ref:o,children:S.isValidElement(m)?S.cloneElement(m,void 0,g):null})}return d.jsx(e,{...u,ref:o,children:l})});return n.displayName=`${t}.Slot`,n}var o0=cu("Slot");function aN(t){const e=S.forwardRef((n,i)=>{const{children:o,...l}=n;if(S.isValidElement(o)){const u=dN(o),f=cN(l,o.props);return o.type!==S.Fragment&&(f.ref=i?i0(i,u):u),S.cloneElement(o,f)}return S.Children.count(o)>1?S.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var a0=Symbol("radix.slottable");function lN(t){const e=({children:n})=>d.jsx(d.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=a0,e}function uN(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===a0}function cN(t,e){const n={...e};for(const i in e){const o=t[i],l=e[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...f)=>{l(...f),o(...f)}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...t,...n}}function dN(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function fN(t){const e=t+"CollectionProvider",[n,i]=zu(e),[o,l]=n(e,{collectionRef:{current:null},itemMap:new Map}),u=b=>{const{scope:T,children:j}=b,k=je.useRef(null),D=je.useRef(new Map).current;return d.jsx(o,{scope:T,itemMap:D,collectionRef:k,children:j})};u.displayName=e;const f=t+"CollectionSlot",p=cu(f),m=je.forwardRef((b,T)=>{const{scope:j,children:k}=b,D=l(f,j),F=Hn(T,D.collectionRef);return d.jsx(p,{ref:F,children:k})});m.displayName=f;const g=t+"CollectionItemSlot",v="data-radix-collection-item",x=cu(g),P=je.forwardRef((b,T)=>{const{scope:j,children:k,...D}=b,F=je.useRef(null),V=Hn(T,F),q=l(g,j);return je.useEffect(()=>(q.itemMap.set(F,{ref:F,...D}),()=>{q.itemMap.delete(F)})),d.jsx(x,{[v]:"",ref:V,children:k})});P.displayName=g;function C(b){const T=l(t+"CollectionConsumer",b);return je.useCallback(()=>{const k=T.collectionRef.current;if(!k)return[];const D=Array.from(k.querySelectorAll(`[${v}
8]`));return Array.from(T.itemMap.values()).sort((q,Q)=>D.indexOf(q.ref.current)-D.indexOf(Q.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:u,Slot:m,ItemSlot:P},C,i]}var hN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],en=hN.reduce((t,e)=>{const n=cu(`Primitive.${e}`),i=S.forwardRef((o,l)=>{const{asChild:u,...f}=o,p=u?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...f,ref:l})});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{});function l0(t,e){t&&Bu.flushSync(()=>t.dispatchEvent(e))}function cr(t){const e=S.useRef(t);return S.useEffect(()=>{e.current=t}),S.useMemo(()=>(...n)=>e.current?.(...n),[])}function pN(t,e=globalThis?.document){const n=cr(t);S.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[n,e])}var mN="DismissableLayer",Lf="dismissableLayer.update",gN="dismissableLayer.pointerDownOutside",yN="dismissableLayer.focusOutside",Iy,u0=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Th=S.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...p}=t,m=S.useContext(u0),[g,v]=S.useState(null),x=g?.ownerDocument??globalThis?.document,[,P]=S.useState({}),C=Hn(e,Q=>v(Q)),b=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=b.indexOf(T),k=g?b.indexOf(g):-1,D=m.layersWithOutsidePointerEventsDisabled.size>0,F=k>=j,V=xN(Q=>{const ne=Q.target,me=[...m.branches].some(ve=>ve.contains(ne));!F||me||(o?.(Q),u?.(Q),Q.defaultPrevented||f?.())},x),q=wN(Q=>{const ne=Q.target;[...m.branches].some(ve=>ve.contains(ne))||(l?.(Q),u?.(Q),Q.defaultPrevented||f?.())},x);return pN(Q=>{k===m.layers.size-1&&(i?.(Q),!Q.defaultPrevented&&f&&(Q.preventDefault(),f()))},x),S.useEffect(()=>{if(g)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Iy=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Ly(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Iy)}},[g,x,n,m]),S.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Ly())},[g,m]),S.useEffect(()=>{const Q=()=>P({});return document.addEventListener(Lf,Q),()=>document.removeEventListener(Lf,Q)},[]),d.jsx(en.div,{...p,ref:C,style:{pointerEvents:D?F?"auto":"none":void 0,...t.style},onFocusCapture:Ct(t.onFocusCapture,q.onFocusCapture),onBlurCapture:Ct(t.onBlurCapture,q.onBlurCapture),onPointerDownCapture:Ct(t.onPointerDownCapture,V.onPointerDownCapture)})});Th.displayName=mN;var vN="DismissableLayerBranch",c0=S.forwardRef((t,e)=>{const n=S.useContext(u0),i=S.useRef(null),o=Hn(e,i);return S.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),d.jsx(en.div,{...t,ref:o})});c0.displayName=vN;function xN(t,e=globalThis?.document){const n=cr(t),i=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const l=f=>{if(f.target&&!i.current){let p=function(){d0(gN,n,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=p,e.addEventListener("click",o.current,{once:!0})):p()}else e.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{e.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),e.removeEventListener("pointerdown",l),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}function wN(t,e=globalThis?.document){const n=cr(t),i=S.useRef(!1);return S.useEffect(()=>{const o=l=>{l.target&&!i.current&&d0(yN,n,{originalEvent:l},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Ly(){const t=new CustomEvent(Lf);document.dispatchEvent(t)}function d0(t,e,n,{discrete:i}){const o=n.originalEvent.target,l=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),i?l0(o,l):o.dispatchEvent(l)}var bN=Th,SN=c0,qs=globalThis?.document?S.useLayoutEffect:()=>{},TN="Portal",f0=S.forwardRef((t,e)=>{const{container:n,...i}=t,[o,l]=S.useState(!1);qs(()=>l(!0),[]);const u=n||o&&globalThis?.document?.body;return u?iN.createPortal(d.jsx(en.div,{...i,ref:e}),u):null});f0.displayName=TN;function PN(t,e){return S.useReducer((n,i)=>e[n][i]??n,t)}var Ph=t=>{const{present:e,children:n}=t,i=NN(e),o=typeof n=="function"?n({present:i.isPresent}):S.Children.only(n),l=Hn(i.ref,CN(o));return typeof n=="function"||i.isPresent?S.cloneElement(o,{ref:l}):null};Ph.displayName="Presence";function NN(t){const[e,n]=S.useState(),i=S.useRef({}),o=S.useRef(t),l=S.useRef("none"),u=t?"mounted":"unmounted",[f,p]=PN(u,{mou
8nted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=Ql(i.current);l.current=f==="mounted"?m:"none"},[f]),qs(()=>{const m=i.current,g=o.current;if(g!==t){const x=l.current,P=Ql(m);t?p("MOUNT"):P==="none"||m?.display==="none"?p("UNMOUNT"):p(g&&x!==P?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),qs(()=>{if(e){let m;const g=e.ownerDocument.defaultView??window,v=P=>{const b=Ql(i.current).includes(P.animationName);if(P.target===e&&b&&(p("ANIMATION_END"),!o.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",m=g.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},x=P=>{P.target===e&&(l.current=Ql(i.current))};return e.addEventListener("animationstart",x),e.addEventListener("animationcancel",v),e.addEventListener("animationend",v),()=>{g.clearTimeout(m),e.removeEventListener("animationstart",x),e.removeEventListener("animationcancel",v),e.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[e,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(m=>{m&&(i.current=getComputedStyle(m)),n(m)},[])}}function Ql(t){return t?.animationName||"none"}function CN(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function jN({prop:t,defaultProp:e,onChange:n=()=>{}}){const[i,o]=kN({defaultProp:e,onChange:n}),l=t!==void 0,u=l?t:i,f=cr(n),p=S.useCallback(m=>{if(l){const v=typeof m=="function"?m(t):m;v!==t&&f(v)}else o(m)},[l,t,o,f]);return[u,p]}function kN({defaultProp:t,onChange:e}){const n=S.useState(t),[i]=n,o=S.useRef(i),l=cr(e);return S.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}var _N="VisuallyHidden",Uu=S.forwardRef((t,e)=>d.jsx(en.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));Uu.displayName=_N;var EN=Uu,Nh="ToastProvider",[Ch,AN,RN]=fN("Toast"),[h0]=zu("Toast",[RN]),[DN,$u]=h0(Nh),p0=t=>{const{__scopeToast:e,label:n="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:l=50,children:u}=t,[f,p]=S.useState(null),[m,g]=S.useState(0),v=S.useRef(!1),x=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Nh}\`. Expected non-empty \`string\`.`),d.jsx(Ch.Provider,{scope:e,children:d.jsx(DN,{scope:e,label:n,duration:i,swipeDirection:o,swipeThreshold:l,toastCount:m,viewport:f,onViewportChange:p,onToastAdd:S.useCallback(()=>g(P=>P+1),[]),onToastRemove:S.useCallback(()=>g(P=>P-1),[]),isFocusedToastEscapeKeyDownRef:v,isClosePausedRef:x,children:u})})};p0.displayName=Nh;var m0="ToastViewport",MN=["F8"],Vf="toast.viewportPause",Ff="toast.viewportResume",g0=S.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:i=MN,label:o="Notifications ({hotkey})",...l}=t,u=$u(m0,n),f=AN(n),p=S.useRef(null),m=S.useRef(null),g=S.useRef(null),v=S.useRef(null),x=Hn(e,v,u.onViewportChange),P=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=u.toastCount>0;S.useEffect(()=>{const T=j=>{i.length!==0&&i.every(D=>j[D]||j.code===D)&&v.current?.focus()};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[i]),S.useEffect(()=>{const T=p.current,j=v.current;if(C&&T&&j){const k=()=>{if(!u.isClosePausedRef.current){const q=new CustomEvent(Vf);j.dispatchEvent(q),u.isClosePausedRef.current=!0}},D=()=>{if(u.isClosePausedRef.current){const q=new CustomEvent(Ff);j.dispatchEvent(q),u.isClosePausedRef.current=!1}},F=q=>{!T.contains(q.relatedTarget)&&D()},V=()=>{T.contains(document.activeElement)||D()};return T.addEventListener("focusin",k),T.addEventListener("focusout",F),T.addEventListener("pointermove",k),T.addEventListener("pointerleave",V),window.addEventListener("blur",k),window.addEventListener("focus",D),()=>{T.removeEventListener("focusin",k),T.removeEventListener("focusout",F),T.removeEventListener("pointermove",k),T.removeEventListener("pointerleave",V),window.removeEventListener("blur",k),window.removeEventListener("focus",D)}}},[C,u.isClosePausedRef]);const b=S.useCallback(({tabbingDirection:T})=>{const k=f().map(D=>{const F=D.ref.current,V=[F,...KN(F)];return T==="forwards"?V:V.reverse()});return(T==="forwards"?k.reverse():k).flat()},[f]);return S.useEffect(()=>{const T=v.current;if(T){const j=k=>{const D=k.altKey||k.ctrlKey||k.metaKey;if(k.key==="Tab"&&!D){const V=document.activeElement,q=k.shiftKey;if(k.target===T&&q){m.current?.focus();return}const me=b({tabbingDirection:q?"backwards":"forwards"}),ve=me.findIndex(be=>be===V);uf(me.slice(ve+1))?k.preventDefault():q?m.current?.focus():g.current?.focus()}};return T.addEventListener("keydown",j),()=>T.removeEventListener("keydown",j)}},[f,b]),d.jsxs(SN,{ref:p,role:"region","aria-label":o.replace("{hotkey}",P),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&d.jsx(Bf,{ref:m,onFocusFromOutsideViewport:()=>{const T=b({tabbingDirection:"forwards"});uf(T)}}),d.jsx(Ch.Slot,{scope:n,children:d.jsx(en.ol,{tabIndex:-1,...l,ref:x})}),C&&d.jsx(Bf,{ref:g,onFocusFromOutsideViewport:()=>{const T=b({tabbingDirection:"backwards"});uf(T)}})]})});g0.displayName=m0;var y0="ToastFocusProxy",Bf=S.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...o}=t,l=$u(y0,n);return d.jsx(Uu,{"aria-hidden":!0,tabIndex:0,...o,ref:e,style:{position:"fixed"},onFocus:u=>{const f=u.relatedTarget;!l.viewport?.contains(f)&&i()}})});Bf.displayName=y0;var Wu="Toast",ON="toast.swipeStart",IN="toast.swipeMove",LN="toast.swipeCancel",VN="toast.swipeEnd",v0=S.forwardRef((t,e)=>{const{forceMount:n,open:i,defaultOpen:o,onOpenChange:l,...u}=t,[f=!0,p]=jN({prop:i,defaultProp:o,onChange:l});return d.jsx(Ph,{present:n||f,children:d.jsx(zN,{open:f,...u,ref:e,onClose:()=>
8p(!1),onPause:cr(t.onPause),onResume:cr(t.onResume),onSwipeStart:Ct(t.onSwipeStart,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ct(t.onSwipeMove,m=>{const{x:g,y:v}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${v}px`)}),onSwipeCancel:Ct(t.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ct(t.onSwipeEnd,m=>{const{x:g,y:v}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${v}px`),p(!1)})})})});v0.displayName=Wu;var[FN,BN]=h0(Wu,{onClose(){}}),zN=S.forwardRef((t,e)=>{const{__scopeToast:n,type:i="foreground",duration:o,open:l,onClose:u,onEscapeKeyDown:f,onPause:p,onResume:m,onSwipeStart:g,onSwipeMove:v,onSwipeCancel:x,onSwipeEnd:P,...C}=t,b=$u(Wu,n),[T,j]=S.useState(null),k=Hn(e,K=>j(K)),D=S.useRef(null),F=S.useRef(null),V=o||b.duration,q=S.useRef(0),Q=S.useRef(V),ne=S.useRef(0),{onToastAdd:me,onToastRemove:ve}=b,be=cr(()=>{T?.contains(document.activeElement)&&b.viewport?.focus(),u()}),X=S.useCallback(K=>{!K||K===1/0||(window.clearTimeout(ne.current),q.current=new Date().getTime(),ne.current=window.setTimeout(be,K))},[be]);S.useEffect(()=>{const K=b.viewport;if(K){const Se=()=>{X(Q.current),m?.()},ge=()=>{const se=new Date().getTime()-q.current;Q.current=Q.current-se,window.clearTimeout(ne.current),p?.()};return K.addEventListener(Vf,ge),K.addEventListener(Ff,Se),()=>{K.removeEventListener(Vf,ge),K.removeEventListener(Ff,Se)}}},[b.viewport,V,p,m,X]),S.useEffect(()=>{l&&!b.isClosePausedRef.current&&X(V)},[l,V,b.isClosePausedRef,X]),S.useEffect(()=>(me(),()=>ve()),[me,ve]);const ie=S.useMemo(()=>T?N0(T):null,[T]);return b.viewport?d.jsxs(d.Fragment,{children:[ie&&d.jsx(UN,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0,children:ie}),d.jsx(FN,{scope:n,onClose:be,children:Bu.createPortal(d.jsx(Ch.ItemSlot,{scope:n,children:d.jsx(bN,{asChild:!0,onEscapeKeyDown:Ct(f,()=>{b.isFocusedToastEscapeKeyDownRef.current||be(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(en.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":b.swipeDirection,...C,ref:k,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ct(t.onKeyDown,K=>{K.key==="Escape"&&(f?.(K.nativeEvent),K.nativeEvent.defaultPrevented||(b.is
8FocusedToastEscapeKeyDownRef.current=!0,be()))}),onPointerDown:Ct(t.onPointerDown,K=>{K.button===0&&(D.current={x:K.clientX,y:K.clientY})}),onPointerMove:Ct(t.onPointerMove,K=>{if(!D.current)return;const Se=K.clientX-D.current.x,ge=K.clientY-D.current.y,se=!!F.current,B=["left","right"].includes(b.swipeDirection),te=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,Y=B?te(0,Se):0,R=B?0:te(0,ge),U=K.pointerType==="touch"?10:2,Ce={x:Y,y:R},Re={originalEvent:K,delta:Ce};se?(F.current=Ce,Zl(IN,v,Re,{discrete:!1})):Vy(Ce,b.swipeDirection,U)?(F.current=Ce,Zl(ON,g,Re,{discrete:!1}),K.target.setPointerCapture(K.pointerId)):(Math.abs(Se)>U||Math.abs(ge)>U)&&(D.current=null)}),onPointerUp:Ct(t.onPointerUp,K=>{const Se=F.current,ge=K.target;if(ge.hasPointerCapture(K.pointerId)&&ge.releasePointerCapture(K.pointerId),F.current=null,D.current=null,Se){const se=K.currentTarget,B={originalEvent:K,delta:Se};Vy(Se,b.swipeDirection,b.swipeThreshold)?Zl(VN,P,B,{discrete:!0}):Zl(LN,x,B,{discrete:!0}),se.addEventListener("click",te=>te.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),UN=t=>{const{__scopeToast:e,children:n,...i}=t,o=$u(Wu,e),[l,u]=S.useState(!1),[f,p]=S.useState(!1);return HN(()=>u(!0)),S.useEffect(()=>{const m=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(m)},[]),f?null:d.jsx(f0,{asChild:!0,children:d.jsx(Uu,{...i,children:l&&d.jsxs(d.Fragment,{children:[o.label," ",n]})})})},$N="ToastTitle",x0=S.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t;return d.jsx(en.div,{...i,ref:e})});x0.displayName=$N;var WN="ToastDescription",w0=S.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t;return d.jsx(en.div,{...i,ref:e})});w0.displayName=WN;var b0="ToastAction",S0=S.forwardRef((t,e)=>{const{altText:n,...i}=t;return n.trim()?d.jsx(P0,{altText:n,asChild:!0,children:d.jsx(jh,{...i,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${b0}\`. Expected non-empty \`string\`.`),null)});S0.displayName=b0;var T0="ToastClose",jh=S.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t,o=BN(T0,n);return d.jsx(P0,{asChild:!0,children:d.jsx(en.button,{type:"button",...i,ref:e,onClick:Ct(t.onClick,o.onClose)})})});jh.displayName=T0;var P0=S.forwardRef((t,e)=>{const{__scopeToast:n,altText:i,...o}=t;return d.jsx(en.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:e})});function N0(t){const e=[];return Array.from(t.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&e.push(i.textContent),qN(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",l=i.dataset.radixToastAnnounceExclude==="";if(!o)if(l){const u=i.dataset.radixToastAnnounceAlt;u&&e.push(u)}else e.push(...N0(i))}}),e}function Zl(t,e,n,{discrete:i}){const o=n.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),i?l0(o,l):o.dispatchEvent(l)}var Vy=(t,e,n=0)=>{const i=Math.abs(t.x),o=Math.abs(t.y),l=i>o;return e==="left"||e==="right"?l&&i>n:!l&&o>n};function HN(t=()=>{}){const e=cr(t);qs(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[e])}function qN(t){return t.nodeType===t.ELEMENT_NODE}function KN(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function uf(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var QN=p0,C0=g0,j0=v0,k0=x0,_0=w0,E0=S0,A0=jh;function R0(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=R0(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function D0(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=R0(t))&&(i&&(i+=" "),i+=e);return i}const Fy=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,By=D0,Hu=(t,e)=>n=>{var i;if(e?.variants==null)return By(t,n?.class,n?.className);const{variants:o,defaultVariants:l}=e,u=Object.keys(o).map(m=>{const g=n?.[m],v=l?.[m];if(g===null)return null;const x=Fy(g)||Fy(v);return o[m][x]}),f=n&&Object.entries(n).reduce((m,g)=>{let[v,x]=g;return x===void 0||(m[v]=x),m},{}),p=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((m,g)=>{let{class:v,className:x,...P}=g;return Object.entries(P).every(C=>{let[b,T]=C;return Array.isArray(T)?T.includes({...l,...f}[b]):{...l,...f}[b]===T})?[...m,v,x]:m},[]);return By(t,u,p,n?.class,n?.className)};const ZN=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M0=(...t)=>t.filter((e,n,i)=>!!e&&i.indexOf(e)===n).join(" ");var GN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const XN=S.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...f},p)=>S.createElement("svg",{ref:p,...GN,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:M0("lucide",o),...f},[...u.map(([m,g])=>S.createElement(m,g)),...Array.isArray(l)?l:[l]]));const Xe=(t,e)=>{const n=S.forwardRef(({className:i,...o},l)=>S.createElement(XN,{ref:l,iconNode:e,className:M0(`lucide-${ZN(t)}`,i),...o}));return n.displayName=`${t}`,n};const YN=Xe("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
8-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const ja=Xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const du=Xe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const O0=Xe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);const JN=Xe("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);const I0=Xe("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"}]]);const eC=Xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const tC=Xe("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"}]]);const kh=Xe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const nC=Xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const rC=Xe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const L0=Xe("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"}]]);const sC=Xe("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"}]]);const iC=Xe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const V0=Xe("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"}]]);const oC=Xe("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"}]]);const Pr=Xe("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"}]]);const F0=Xe("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const aC=Xe("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);const B0=Xe("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const lC=Xe("ShieldAlert",[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);const z0=Xe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);const zy=Xe("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"}]]);const uC=Xe("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"}]]);
vendor: 8,471 bytes, line 8
8const U0=Xe("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);const $0=Xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const cC=Xe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),_h="-",dC=t=>{const e=hC(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{const f=u.split(_h);return f[0]===""&&f.length!==1&&f.shift(),W0(f,e)||fC(u)},getConflictingClassGroupIds:(u,f)=>{const p=n[u]||[];return f&&i[u]?[...p,...i[u]]:p}}},W0=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),o=i?W0(t.slice(1),i):void 0;if(o)return o;if(e.validators.length===0)return;const l=t.join(_h);return e.validators.find(({validator:u})=>u(l))?.classGroupId},Uy=/^\[(.+)\]$/,fC=t=>{if(Uy.test(t)){const e=Uy.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},hC=t=>{const{theme:e,prefix:n}=t,i={nextPart:new Map,validators:[]};return mC(Object.entries(t.classGroups),n).forEach(([l,u])=>{zf(u,i,l,e)}),i},zf=(t,e,n,i)=>{t.forEach(o=>{if(typeof o=="string"){const l=o===""?e:$y(e,o);l.classGroupId=n;return}if(typeof o=="function"){if(pC(o)){zf(o(i),e,n,i);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,u])=>{zf(u,$y(e,l),n,i)})})},$y=(t,e)=>{let n=t;return e.split(_h).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},pC=t=>t.isThemeGetter,mC=(t,e)=>e?t.map(([n,i])=>{const o=i.map(l=>typeof l=="string"?e+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([u,f])=>[e+u,f])):l);return[n,o]}):t,gC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const o=(l,u)=>{n.set(l,u),e++,e>t&&(e=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return o(l,u),u},set(l,u){n.has(l)?n.set(l,u):o(l,u)}}},H0="!",yC=t=>{const{separator:e,experimentalParseClassName:n}=t,i=e.length===1,o=e[0],l=e.length,u=f=>{const p=[];let m=0,g=0,v;for(let T=0;T<f.length;T++){let j=f[T];if(m===0){if(j===o&&(i||f.slice(T,T+l)===e)){p.push(f.slice(g,T)),g=T+l;continue}if(j==="/"){v=T;continue}}j==="["?m++:j==="]"&&m--}const x=p.length===0?f:f.substring(g),P=x.startsWith(H0),C=P?x.substring(1):x,b=v&&v>g?v-g:void 0;return{modifiers:p,hasImportantModifier:P,baseClassName:C,maybePostfixModifierPosition:b}};return n?f=>n({className:f,parseClassName:u}):u},vC=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(i=>{i[0]==="["?(e.push(...n.sort(),i),n=[]):n.push(i)}),e.push(...n.sort()),e},xC=t=>({cache:gC(t.cacheSize),parseClassName:yC(t),...dC(t)}),wC=/\s+/,bC=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o}=e,l=[],u=t.trim().split(wC);let f="";for(let p=u.length-1;p>=0;p-=1){const m=u[p],{modifiers:g,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:P}=n(m);let C=!!P,b=i(C?x.substring(0,P):x);if(!b){if(!C){f=m+(f.length>0?" "+f:f);continue}if(b=i(x),!b){f=m+(f.length>0?" "+f:f);continue}C=!1}const T=vC(g).join(":"),j=v?T+H0:T,k=j+b;if(l.includes(k))continue;l.push(k);const D=o(b,C);for(let F=0;F<D.length;++F){const V=D[F];l.push(j+V)}f=m+(f.length>0?" "+f:f)}return f};function SC(){let t=0,e,n,i="";for(;t<arguments.length;)(e=arguments[t++])&&(n=q0(e))&&(i&&(i+=" "),i+=n);return i}const q0=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=q0(t[i]))&&(n&&(n+=" "),n+=e);return n};function TC(t,...e){let n,i,o,l=u;function u(p){const m=e.reduce((g,v)=>v(g),t());return n=xC(m),i=n.cache.get,o=n.cache.set,l=f,f(p)}function f(p){const m=i(p);if(m)return m;const g=bC(p,n);return o(p,g),g}return function(){return l(SC.apply(null,arguments))}}const rt=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},K0=/^\[(?:([a-z-]+):)?(.+)\]$/i,PC=/^\d+\/\d+$/,NC=new Set(["px","full","screen"]),CC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jC=/\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$/,kC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nr=t=>Li(t)||NC.has(t)||PC.test(t),os=t=>Yi(t,"length",VC),Li=t=>!!t&&!Number.isNaN(Number(t)),cf=t=>Yi(t,"number",Li),$o=t=>!!t&&Number.isInteger(Number(t)),AC=t=>t.endsWith("%")&&Li(t.slice(0,-1)),Me=t=>K0.test(t),as=t=>CC.test(t),RC=new Set(["length","size","percentage"]),DC=t=>Yi(t,RC,Q0),MC=t=>Yi(t,"position",Q0),OC=new Set(["image","url"]),IC=t=>Yi(t,OC,BC),LC=t=>Yi(t,"",FC),Wo=()=>!0,Yi=(t,e,n)=>{const i=K0.exec(t);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):n(i[2]):!1},VC=t=>jC.test(t)&&!kC.test(t),Q0=()=>!1,FC=t=>_C.test(t),BC=t=>EC.test(t),zC=()=>{const t=rt("colors"),e=rt("spacing"),n=rt("blur"),i=rt("brightness"),o=rt("borderColor"),l=rt("borderRadius"),u=rt("borderSpacing"),f=rt("borderWidth"),p=rt("contrast"),m=rt("grayscale"),g=rt("hueRotate"),v=rt("invert"),x=rt("gap"),P=rt("gradientColorStops"),C=rt("gradientColorStopPositions"),b=rt("inset"),T=rt("margin"),j=rt("opacity"),k=rt("padding"),D=rt("saturate"),F=rt("scale"),V=rt("sepia"),q=rt("skew"),Q=rt("space"),ne=rt("translate"),me=()=>["auto","contain","none"],ve=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",Me,e],X=()=>[Me,e],ie=()=>["",Nr,os],K=()=>["auto",Li,Me],Se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ge=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Me],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[Li,Me];return{cacheSize:500,separator:":",theme:{colors:[Wo],spacing:[Nr,os],blur:["none","",as,Me],brightness:R(),borderColor:[t],borderRadius:["none","","full",as,Me],borderSpacing:X(),borderWidth:ie(),contrast:R(),grayscale:te(),hueRotate:R(),invert:te(),gap:X(),gradientColorStops:[t],gradientColorStopPositions:[AC,os],inset:be(),margin:be(),opacity:R(),padding:X(),saturate:R(),scale:R(),sepia:te(),skew:R(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",Me]}],container:["container"],columns:[{columns:[as]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:[...Se(),Me]}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:me()}],"overscroll-x":[{"overscroll-x":me()}],"overscroll-y":[{"overscroll-y":me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$o,Me]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Me]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",$o,Me]}],"grid-cols":[{"grid-cols":[Wo]}],"col-start-end":[{col:["auto",{span:["full",$o,Me]},Me]}],"col-start":[{"col-start":K()}
vendor: 9,430 bytes, line 8
8],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Wo]}],"row-start-end":[{row:["auto",{span:[$o,Me]},Me]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Me]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Me,e]}],"min-w":[{"min-w":[Me,e,"min","max","fit"]}],"max-w":[{"max-w":[Me,e,"none","full","min","max","fit","prose",{screen:[as]},as]}],h:[{h:[Me,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Me,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Me,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Me,e,"auto","min","max","fit"]}],"font-size":[{text:["base",as,os]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cf]}],"font-family":[{font:[Wo]}],"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",Me]}],"line-clamp":[{"line-clamp":["none",Li,cf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Nr,Me]}],"list-image":[{"list-image":["none",Me]}],"list-style-type":[{list:["none","disc","decimal",Me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Nr,os]}],"underline-offset":[{"underline-offset":["auto",Nr,Me]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me]}],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",Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Se(),MC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",DC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},IC]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...ge(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:ge()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ge()]}],"outline-offset":[{"outline-offset":[Nr,Me]}],"outline-w":[{outline:[Nr,os]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[Nr,os]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",as,LC]}],"shadow-color":[{shadow:[Wo]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",as,Me]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[v]}],saturate:[{saturate:[D]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Me]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Me]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[$o,Me]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Me]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Me]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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"]}
8],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",Me]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Nr,os,cf]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},UC=TC(zC);function mt(...t){return UC(D0(t))}const $C=QN,Z0=S.forwardRef(({className:t,...e},n)=>d.jsx(C0,{ref:n,className:mt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));Z0.displayName=C0.displayName;const WC=Hu("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"}}),G0=S.forwardRef(({className:t,variant:e,...n},i)=>d.jsx(j0,{ref:i,className:mt(WC({variant:e}),t),...n}));G0.displayName=j0.displayName;const HC=S.forwardRef(({className:t,...e},n)=>d.jsx(E0,{ref:n,className:mt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));HC.displayName=E0.displayName;const X0=S.forwardRef(({className:t,...e},n)=>d.jsx(A0,{ref:n,className:mt("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 12,885 bytes, line 8
8/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:d.jsx($0,{className:"h-4 w-4"})}));X0.displayName=A0.displayName;const Y0=S.forwardRef(({className:t,...e},n)=>d.jsx(k0,{ref:n,className:mt("text-sm font-semibold",t),...e}));Y0.displayName=k0.displayName;const J0=S.forwardRef(({className:t,...e},n)=>d.jsx(_0,{ref:n,className:mt("text-sm opacity-90",t),...e}));J0.displayName=_0.displayName;function qC(){const{toasts:t}=Sh();return d.jsxs($C,{children:[t.map(function({id:e,title:n,description:i,action:o,...l}){return d.jsxs(G0,{...l,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(Y0,{children:n}),i&&d.jsx(J0,{children:i})]}),o,d.jsx(X0,{})]},e)}),d.jsx(Z0,{})]})}const KC=["top","right","bottom","left"],hs=Math.min,gn=Math.max,fu=Math.round,Gl=Math.floor,or=t=>({x:t,y:t}),QC={left:"right",right:"left",bottom:"top",top:"bottom"},ZC={start:"end",end:"start"};function Uf(t,e,n){return gn(t,hs(e,n))}function Mr(t,e){return typeof t=="function"?t(e):t}function Or(t){return t.split("-")[0]}function Ji(t){return t.split("-")[1]}function Eh(t){return t==="x"?"y":"x"}function Ah(t){return t==="y"?"height":"width"}function ps(t){return["top","bottom"].includes(Or(t))?"y":"x"}function Rh(t){return Eh(ps(t))}function GC(t,e,n){n===void 0&&(n=!1);const i=Ji(t),o=Rh(t),l=Ah(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(u=hu(u)),[u,hu(u)]}function XC(t){const e=hu(t);return[$f(t),e,$f(e)]}function $f(t){return t.replace(/start|end/g,e=>ZC[e])}function YC(t,e,n){const i=["left","right"],o=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?l:u;default:return[]}}function JC(t,e,n,i){const o=Ji(t);let l=YC(Or(t),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),e&&(l=l.concat(l.map($f)))),l}function hu(t){return t.replace(/left|right|bottom|top/g,e=>QC[e])}function ej(t){return{top:0,right:0,bottom:0,left:0,...t}}function ew(t){return typeof t!="number"?ej(t):{top:t,right:t,bottom:t,left:t}}function pu(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wy(t,e,n){let{reference:i,floating:o}=t;const l=ps(e),u=Rh(e),f=Ah(u),p=Or(e),m=l==="y",g=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,x=i[f]/2-o[f]/2;let P;switch(p){case"top":P={x:g,y:i.y-o.height};break;case"bottom":P={x:g,y:i.y+i.height};break;case"right":P={x:i.x+i.width,y:v};break;case"left":P={x:i.x-o.width,y:v};break;default:P={x:i.x,y:i.y}}switch(Ji(e)){case"start":P[u]-=x*(n&&m?-1:1);break;case"end":P[u]+=x*(n&&m?-1:1);break}return P}const tj=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(e));let m=await u.getElementRects({reference:t,floating:e,strategy:o}),{x:g,y:v}=Wy(m,i,p),x=i,P={},C=0;for(let b=0;b<f.length;b++){const{name:T,fn:j}=f[b],{x:k,y:D,data:F,reset:V}=await j({x:g,y:v,initialPlacement:i,placement:x,strategy:o,middlewareData:P,rects:m,platform:u,elements:{reference:t,floating:e}});g=k??g,v=D??v,P={...P,[T]:{...P[T],...F}},V&&C<=50&&(C++,typeof V=="object"&&(V.placement&&(x=V.placement),V.rects&&(m=V.rects===!0?await u.getElementRects({reference:t,floating:e,strategy:o}):V.rects),{x:g,y:v}=Wy(m,x,p)),b=-1)}return{x:g,y:v,placement:x,strategy:o,middlewareData:P}};async function ia(t,e){var n;e===void 0&&(e={});const{x:i,y:o,platform:l,rects:u,elements:f,strategy:p}=t,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:x=!1,padding:P=0}=Mr(e,t),C=ew(P),T=f[x?v==="floating"?"reference":"floating":v],j=pu(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(T)))==null||n?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:m,rootBoundary:g,strategy:p})),k=v==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),F=await(l.isElement==null?void 0:l.isElement(D))?await(l.getScale==null?void 0:l.getScale(D))||{x:1,y:1}:{x:1,y:1},V=pu(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:k,offsetParent:D,strategy:p}):k);return{top:(j.top-V.top+C.top)/F.y,bottom:(V.bottom-j.bottom+C.bottom)/F.y,left:(j.left-V.left+C.left)/F.x,right:(V.right-j.right+C.right)/F.x}}const nj=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:l,platform:u,elements:f,middlewareData:p}=e,{element:m,padding:g=0}=Mr(t,e)||{};if(m==null)return{};const v=ew(g),x={x:n,y:i},P=Rh(o),C=Ah(P),b=await u.getDimensions(m),T=P==="y",j=T?"top":"left",k=T?"bottom":"right",D=T?"clientHeight":"clientWidth",F=l.reference[C]+l.reference[P]-x[P]-l.floating[C],V=x[P]-l.reference[P],q=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let Q=q?q[D]:0;(!Q||!await(u.isElement==null?void 0:u.isElement(q)))&&(Q=f.floating[D]||l.floating[C]);const ne=F/2-V/2,me=Q/2-b[C]/2-1,ve=hs(v[j],me),be=hs(v[k],me),X=ve,ie=Q-b[C]-be,K=Q/2-b[C]/2+ne,Se=Uf(X,K,ie),ge=!p.arrow&&Ji(o)!=null&&K!==Se&&l.reference[C]/2-(K<X?ve:be)-b[C]/2<0,se=ge?K<X?K-X:K-ie:0;return{[P]:x[P]+se,data:{[P]:Se,centerOffset:K-Se-se,...ge&&{alignmentOffset:se}},reset:ge}}}),rj=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:f,platform:p,elements:m}=e,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:x,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:b=!0,...T}=Mr(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const j=Or(o),k=ps(f),D=Or(f)===f,F=await(p.isRTL==null?void 0:p.isRTL(m.floating)),V=x||(D||!b?[hu(f)]:XC(f)),q=C!=="none";!x&&q&&V.push(...JC(f,b,C,F));const Q=[f,...V],ne=await ia(e,T),me=[];let ve=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&me.push(ne[j]),v){const K=GC(o,u,F);me.push(ne[K[0]],ne[K[1]])}if(ve=[...ve,{placement:o,overflows:me}],!me.every(K=>K<=0)){var be,X;const K=(((be=l.flip)==null?void 0:be.index)||0)+1,Se=Q[K];if(Se)return{data:{index:K,overflows:ve},reset:{placement:Se}};let ge=(X=ve.filter(se=>se.overflows[0]<=0).sort((se,B)=>se.overflows[1]-B.overflows[1])[0])==null?void 0:X.placement;if(!ge)switch(P){case"bestFit":{var ie;const se=(ie=ve.filter(B=>{if(q){const te=ps(B.placement);return te===k||te==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(te=>te>0).reduce((te,Y)=>te+Y,0)]).sort((B,te)=>B[1]-te[1])[0])==null?void 0:ie[0];se&&(ge=se);break}case"initialPlacement":ge=f;break}if(o!==ge)return{reset:{placement:ge}}}return{}}}};function Hy(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function qy(t){return KC.some(e=>t[e]>=0)}const sj=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...o}=Mr(t,e);switch(i){case"referenceHidden":{const l=await ia(e,{...o,elementContext:"reference"}),u=Hy(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:qy(u)}}}case"escaped":{const l=await ia(e,{...o,altBoundary:!0}),u=Hy(l,n.floating);return{data:{escapedOffsets:u,escaped:qy(u)}}}default:return{}}}}};async function ij(t,e){const{placement:n,platform:i,elements:o}=t,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=Or(n),f=Ji(n),p=ps(n)==="y",m=["left","top"].includes(u)?-1:1,g=l&&p?-1:1,v=Mr(e,t);let{mainAxis:x,crossAxis:P,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof C=="number"&&(P=f==="end"?C*-1:C),p?{x:P*g,y:x*m}:{x:x*m,y:P*g}}const oj=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:l,placement:u,middlewareData:f}=e,p=await ij(e,t);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:l+p.y,data:{...p,placement:u}}}}},aj=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:T=>{let{x:j,y:k}=T;return{x:j,y:k}}},...p}=Mr(t,e),m={x:n,y:i},g=await ia(e,p),v=ps(Or(o)),x=Eh(v);let P=m[x],C=m[v];if(l){const T=x==="y"?"top":"left",j=x==="y"?"bottom":"right",k=P+g[T],D=P-g[j];P=Uf(k,P,D)}if(u){const T=v==="y"?"top":"left",j=v==="y"?"bottom":"right",k=C+g[T],D=C-g[j];C=Uf(k,C,D)}const b=f.fn({...e,[x]:P,[v]:C});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[x]:l,[v]:u}}}}}},lj=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:l,middlewareData:u}=e,{offset:f=0,mainAxis:p=!0,crossAxis:m=!0}=Mr(t,e),g={x:n,y:i},v=ps(o),x=Eh(v);let P=g[x],C=g[v];const b=Mr(f,e),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(p){const D=x==="y"?"height":"width",F=l.reference[x]-l.floating[D]+T.mainAxis,V=l.reference[x]+l.reference[D]-T.mainAxis;P<F?P=F:P>V&&(P=V)}if(m){var j,k;const D=x==="y"?"width":"height",F=["top","left"].includes(Or(o)),V=l.reference[v]-l.floating[D]+(F&&((j=u.offset)==null?void 0:j[v])||0)+(F?0:T.crossAxis),q=l.reference[v]+l.reference[D]+(F?0:((k=u.offset)==null?void 0:k[v])||0)-(F?T.crossAxis:0);C<V?C=V:C>q&&(C=q)}return{[x]:P,[v]:C}}}},uj=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:l,platform:u,elements:f}=e,{apply:p=()=>{},...m}=Mr(t,e),g=await ia(e,m),v=Or(o),x=Ji(o),P=ps(o)==="y",{width:C,height:b}=l.floating;let T,j;v==="top"||v==="bottom"?(T=v,j=x===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(j=v,T=x==="end"?"top":"bottom");const k=b-g.top-g.bottom,D=C-g.left-g.right,F=hs(b-g[T],k),V=hs(C-g[j],D),q=!e.middlewareData.shift;let Q=F,ne=V;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(ne=D),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(Q=k),q&&!x){const ve=gn(g.left,0),be=gn(g.right,0),X=gn(g.top,0),ie=gn(g.bottom,0);P?ne=C-2*(ve!==0||be!==0?ve+be:gn(g.left,g.right)):Q=b-2*(X!==0||ie!==0?X+ie:gn(g.top,g.bottom))}await p({...e,availableWidth:ne,availableHeight:Q});const me=await u.getDimensions(f.floating);return C!==me.width||b!==me.height?{reset:{rects:!0}}:{}}}};function qu(){return typeof window<"u"}function eo(t){return tw(t)?(t.nodeName||"").toLowerCase():"#document"}function vn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function pr(t){var e;return(e=(tw(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tw(t){return qu()?t instanceof Node||t instanceof vn(t).Node:!1}function qn(t){return qu()?t instanceof Element||t instanceof vn(t).Element:!1}function dr(t){return qu()?t instanceof HTMLElement||t instanceof vn(t).HTMLElement:!1}function Ky(t){return!qu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof vn(t).ShadowRoot}function ka(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=Kn(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function cj(t){return["table","td","th"].includes(eo(t))}function Ku(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Dh(t){const e=Mh(),n=qn(t)?Kn(t):t;return["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function dj(t){let e=ms(t);for(;dr(e)&&!Ui(e);){if(Dh(e))return e;if(Ku(e))return null;e=ms(e)}return null}function Mh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ui(t){return["html","body","#document"].includes(eo(t))}function Kn(t){return vn(t).getComputedStyle(t)}function Qu(t){return qn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ms(t){if(eo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ky(t)&&t.host||pr(t);return Ky(e)?e.host:e}function nw(t){const e=ms(t);return Ui(e)?t.ownerDocument?t.ownerDocument.body:t.body:dr(e)&&ka(e)?e:nw(e)}function oa(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=nw(t),l=o===((i=t.ownerDocument)==null?void 0:i.body),u=vn(o);if(l){const f=Wf(u);
vendor: 4,874 bytes, line 8
8return e.concat(u,u.visualViewport||[],ka(o)?o:[],f&&n?oa(f):[])}return e.concat(o,oa(o,[],n))}function Wf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rw(t){const e=Kn(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=dr(t),l=o?t.offsetWidth:n,u=o?t.offsetHeight:i,f=fu(n)!==l||fu(i)!==u;return f&&(n=l,i=u),{width:n,height:i,$:f}}function Oh(t){return qn(t)?t:t.contextElement}function Vi(t){const e=Oh(t);if(!dr(e))return or(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:l}=rw(e);let u=(l?fu(n.width):n.width)/i,f=(l?fu(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const fj=or(0);function sw(t){const e=vn(t);return!Mh()||!e.visualViewport?fj:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hj(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==vn(t)?!1:e}function Ks(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),l=Oh(t);let u=or(1);e&&(i?qn(i)&&(u=Vi(i)):u=Vi(t));const f=hj(l,n,i)?sw(l):or(0);let p=(o.left+f.x)/u.x,m=(o.top+f.y)/u.y,g=o.width/u.x,v=o.height/u.y;if(l){const x=vn(l),P=i&&qn(i)?vn(i):i;let C=x,b=Wf(C);for(;b&&i&&P!==C;){const T=Vi(b),j=b.getBoundingClientRect(),k=Kn(b),D=j.left+(b.clientLeft+parseFloat(k.paddingLeft))*T.x,F=j.top+(b.clientTop+parseFloat(k.paddingTop))*T.y;p*=T.x,m*=T.y,g*=T.x,v*=T.y,p+=D,m+=F,C=vn(b),b=Wf(C)}}return pu({width:g,height:v,x:p,y:m})}function Ih(t,e){const n=Qu(t).scrollLeft;return e?e.left+n:Ks(pr(t)).left+n}function iw(t,e,n){n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Ih(t,i)),l=i.top+e.scrollTop;return{x:o,y:l}}function pj(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const l=o==="fixed",u=pr(i),f=e?Ku(e.floating):!1;if(i===u||f&&l)return n;let p={scrollLeft:0,scrollTop:0},m=or(1);const g=or(0),v=dr(i);if((v||!v&&!l)&&((eo(i)!=="body"||ka(u))&&(p=Qu(i)),dr(i))){const P=Ks(i);m=Vi(i),g.x=P.x+i.clientLeft,g.y=P.y+i.clientTop}const x=u&&!v&&!l?iw(u,p,!0):or(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-p.scrollLeft*m.x+g.x+x.x,y:n.y*m.y-p.scrollTop*m.y+g.y+x.y}}function mj(t){return Array.from(t.getClientRects())}function gj(t){const e=pr(t),n=Qu(t),i=t.ownerDocument.body,o=gn(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=gn(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+Ih(t);const f=-n.scrollTop;return Kn(i).direction==="rtl"&&(u+=gn(e.clientWidth,i.clientWidth)-o),{width:o,height:l,x:u,y:f}}function yj(t,e){const n=vn(t),i=pr(t),o=n.visualViewport;let l=i.clientWidth,u=i.clientHeight,f=0,p=0;if(o){l=o.width,u=o.height;const m=Mh();(!m||m&&e==="fixed")&&(f=o.offsetLeft,p=o.offsetTop)}return{width:l,height:u,x:f,y:p}}function vj(t,e){const n=Ks(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,l=dr(t)?Vi(t):or(1),u=t.clientWidth*l.x,f=t.clientHeight*l.y,p=o*l.x,m=i*l.y;return{width:u,height:f,x:p,y:m}}function Qy(t,e,n){let i;if(e==="viewport")i=yj(t,n);else if(e==="document")i=gj(pr(t));else if(qn(e))i=vj(e,n);else{const o=sw(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return pu(i)}function ow(t,e){const n=ms(t);return n===e||!qn(n)||Ui(n)?!1:Kn(n).position==="fixed"||ow(n,e)}function xj(t,e){const n=e.get(t);if(n)return n;let i=oa(t,[],!1).filter(f=>qn(f)&&eo(f)!=="body"),o=null;const l=Kn(t).position==="fixed";let u=l?ms(t):t;for(;qn(u)&&!Ui(u);){const f=Kn(u),p=Dh(u);!p&&f.position==="fixed"&&(o=null),(l?!p&&!o:!p&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ka(u)&&!p&&ow(t,u))?i=i.filter(g=>g!==u):o=f,u=ms(u)}return e.set(t,i),i}function wj(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const u=[...n==="clippingAncestors"?Ku(e)?[]:xj(e,this._c):[].concat(n),i],f=u[0],p=u.reduce((m,g)=>{const v=Qy(e,g,o);return m.top=gn(v.top,m.top),m.right=hs(v.right,m.right),m.bottom=hs(v.bottom,m.bottom),m.left=gn(v.left,m.left),m},Qy(e,f,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function bj(t){const{width:e,height:n}=rw(t);return{width:e,height:n}}function Sj(t,e,n){const i=dr(e),o=pr(e),l=n==="fixed",u=Ks(t,!0,l,e);let f={scrollLeft:0,scrollTop:0};const p=or(0);if(i||!i&&!l)if((eo(e)!=="body"||ka(o))&&(f=Qu(e)),i){const x=Ks(e,!0,l,e);p.x=x.x+e.clientLeft,p.y=x.y+e.clientTop}else o&&(p.x=Ih(o));const m=o&&!i&&!l?iw(o,f):or(0),g=u.left+f.scrollLeft-p.x-m.x,v=u.top+f.scrollTop-p.y-m.y;return{x:g,y:v,width:u.width,height:u.height}}function df(t){return Kn(t).position==="static"}function Zy(t,e){if(!dr(t)||Kn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return pr(t)===n&&(n=n.ownerDocument.body),n}function aw(t,e){const n=vn(t);if(Ku(t))return n;if(!dr(t)){let o=ms(t);for(;o&&!Ui(o);){if(qn(o)&&!df(o))return o;o=ms(o)}return n}let i=Zy(t,e);for(;i&&cj(i)&&df(i);)i=Zy(i,e);
vendor: 13,206 bytes, line 8
8return i&&Ui(i)&&df(i)&&!Dh(i)?n:i||dj(t)||n}const Tj=async function(t){const e=this.getOffsetParent||aw,n=this.getDimensions,i=await n(t.floating);return{reference:Sj(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Pj(t){return Kn(t).direction==="rtl"}const Nj={convertOffsetParentRelativeRectToViewportRelativeRect:pj,getDocumentElement:pr,getClippingRect:wj,getOffsetParent:aw,getElementRects:Tj,getClientRects:mj,getDimensions:bj,getScale:Vi,isElement:qn,isRTL:Pj};function lw(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Cj(t,e){let n=null,i;const o=pr(t);function l(){var f;clearTimeout(i),(f=n)==null||f.disconnect(),n=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),l();const m=t.getBoundingClientRect(),{left:g,top:v,width:x,height:P}=m;if(f||e(),!x||!P)return;const C=Gl(v),b=Gl(o.clientWidth-(g+x)),T=Gl(o.clientHeight-(v+P)),j=Gl(g),D={rootMargin:-C+"px "+-b+"px "+-T+"px "+-j+"px",threshold:gn(0,hs(1,p))||1};let F=!0;function V(q){const Q=q[0].intersectionRatio;if(Q!==p){if(!F)return u();Q?u(!1,Q):i=setTimeout(()=>{u(!1,1e-7)},1e3)}Q===1&&!lw(m,t.getBoundingClientRect())&&u(),F=!1}try{n=new IntersectionObserver(V,{...D,root:o.ownerDocument})}catch{n=new IntersectionObserver(V,D)}n.observe(t)}return u(!0),l}function jj(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,m=Oh(t),g=o||l?[...m?oa(m):[],...oa(e)]:[];g.forEach(j=>{o&&j.addEventListener("scroll",n,{passive:!0}),l&&j.addEventListener("resize",n)});const v=m&&f?Cj(m,n):null;let x=-1,P=null;u&&(P=new ResizeObserver(j=>{let[k]=j;k&&k.target===m&&P&&(P.unobserve(e),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var D;(D=P)==null||D.observe(e)})),n()}),m&&!p&&P.observe(m),P.observe(e));let C,b=p?Ks(t):null;p&&T();function T(){const j=Ks(t);b&&!lw(b,j)&&n(),b=j,C=requestAnimationFrame(T)}return n(),()=>{var j;g.forEach(k=>{o&&k.removeEventListener("scroll",n),l&&k.removeEventListener("resize",n)}),v?.(),(j=P)==null||j.disconnect(),P=null,p&&cancelAnimationFrame(C)}}const kj=oj,_j=aj,Ej=rj,Aj=uj,Rj=sj,Gy=nj,Dj=lj,Mj=(t,e,n)=>{const i=new Map,o={platform:Nj,...n},l={...o.platform,_c:i};return tj(t,e,{...o,platform:l})};var su=typeof document<"u"?S.useLayoutEffect:S.useEffect;function mu(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,i,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;i--!==0;)if(!mu(t[i],e[i]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){const l=o[i];if(!(l==="_owner"&&t.$$typeof)&&!mu(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function uw(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Xy(t,e){const n=uw(t);return Math.round(e*n)/n}function ff(t){const e=S.useRef(t);return su(()=>{e.current=t}),e}function Oj(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:p,open:m}=t,[g,v]=S.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[x,P]=S.useState(i);mu(x,i)||P(i);const[C,b]=S.useState(null),[T,j]=S.useState(null),k=S.useCallback(B=>{B!==q.current&&(q.current=B,b(B))},[]),D=S.useCallback(B=>{B!==Q.current&&(Q.current=B,j(B))},[]),F=l||C,V=u||T,q=S.useRef(null),Q=S.useRef(null),ne=S.useRef(g),me=p!=null,ve=ff(p),be=ff(o),X=ff(m),ie=S.useCallback(()=>{if(!q.current||!Q.current)return;const B={placement:e,strategy:n,middleware:x};be.current&&(B.platform=be.current),Mj(q.current,Q.current,B).then(te=>{const Y={...te,isPositioned:X.current!==!1};K.current&&!mu(ne.current,Y)&&(ne.current=Y,Bu.flushSync(()=>{v(Y)}))})},[x,e,n,be,X]);su(()=>{m===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,v(B=>({...B,isPositioned:!1})))},[m]);const K=S.useRef(!1);su(()=>(K.current=!0,()=>{K.current=!1}),[]),su(()=>{if(F&&(q.current=F),V&&(Q.current=V),F&&V){if(ve.current)return ve.current(F,V,ie);ie()}},[F,V,ie,ve,me]);const Se=S.useMemo(()=>({reference:q,floating:Q,setReference:k,setFloating:D}),[k,D]),ge=S.useMemo(()=>({reference:F,floating:V}),[F,V]),se=S.useMemo(()=>{const B={position:n,left:0,top:0};if(!ge.floating)return B;const te=Xy(ge.floating,g.x),Y=Xy(ge.floating,g.y);return f?{...B,transform:"translate("+te+"px, "+Y+"px)",...uw(ge.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:Y}},[n,f,ge.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:ie,refs:Se,elements:ge,floatingStyles:se}),[g,ie,Se,ge,se])}const Ij=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:i,padding:o}=typeof t=="function"?t(n):t;return i&&e(i)?i.current!=null?Gy({element:i.current,padding:o}).fn(n):{}:i?Gy({element:i,padding:o}).fn(n):{}}}},Lj=(t,e)=>({...kj(t),options:[t,e]}),Vj=(t,e)=>({..._j(t),options:[t,e]}),Fj=(t,e)=>({...Dj(t),options:[t,e]}),Bj=(t,e)=>({...Ej(t),options:[t,e]}),zj=(t,e)=>({...Aj(t),options:[t,e]}),Uj=(t,e)=>({...Rj(t),options:[t,e]}),$j=(t,e)=>({...Ij(t),options:[t,e]});var Wj="Arrow",cw=S.forwardRef((t,e)=>{const{children:n,width:i=10,height:o=5,...l}=t;return d.jsx(en.svg,{...l,ref:e,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});cw.displayName=Wj;var Hj=cw;function qj(t){const[e,n]=S.useState(void 0);return qs(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let u,f;if("borderBoxSize"in l){const p=l.borderBoxSize,m=Array.isArray(p)?p[0]:p;u=m.inlineSize,f=m.blockSize}else u=t.offsetWidth,f=t.offsetHeight;n({width:u,height:f})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else n(void 0)},[t]),e}var dw="Popper",[fw,hw]=zu(dw),[eO,pw]=fw(dw),mw="PopperAnchor",gw=S.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:i,...o}=t,l=pw(mw,n),u=S.useRef(null),f=Hn(e,u);return S.useEffect(()=>{l.onAnchorChange(i?.current||u.current)}),i?null:d.jsx(en.div,{...o,ref:f})});gw.displayName=mw;var Lh="PopperContent",[Kj,Qj]=fw(Lh),yw=S.forwardRef((t,e)=>{const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:v="partial",hideWhenDetached:x=!1,updatePositionStrategy:P="optimized",onPlaced:C,...b}=t,T=pw(Lh,n),[j,k]=S.useState(null),D=Hn(e,Be=>k(Be)),[F,V]=S.useState(null),q=qj(F),Q=q?.width??0,ne=q?.height??0,me=i+(l!=="center"?"-"+l:""),ve=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},be=Array.isArray(m)?m:[m],X=be.length>0,ie={padding:ve,boundary:be.filter(Gj),altBoundary:X},{refs:K,floatingStyles:Se,placement:ge,isPositioned:se,middlewareData:B}=Oj({strategy:"fixed",placement:me,whileElementsMounted:(...Be)=>jj(...Be,{animationFrame:P==="always"}),elements:{reference:T.anchor},middleware:[Lj({mainAxis:o+ne,alignmentAxis:u}),p&&Vj({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Fj():void 0,...ie}),p&&Bj({...ie}),zj({...ie,apply:({elements:Be,rects:Ue,availableWidth:Ke,availableHeight:jt})=>{const{width:Zn,height:Ps}=Ue.reference,_n=Be.floating.style;_n.setProperty("--radix-popper-available-width",`${Ke}px`),_n.setProperty("--radix-popper-available-height",`${jt}px`),_n.setProperty("--radix-popper-anchor-width",`${Zn}px`),_n.setProperty("--radix-popper-anchor-height",`${Ps}px`)}}),F&&$j({element:F,padding:f}),Xj({arrowWidth:Q,arrowHeight:ne}),x&&Uj({strategy:"referenceHidden",...ie})]}),[te,Y]=ww(ge),R=cr(C);qs(()=>{se&&R?.()},[se,R]);const U=B.arrow?.x,Ce=B.arrow?.y,Re=B.arrow?.centerOffset!==0,[Ve,Fe]=S.useState();return qs(()=>{j&&Fe(window.getComputedStyle(j).zIndex)},[j]),d.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:se?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ve,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d.jsx(Kj,{scope:n,placedSide:te,onArrowChange:V,arrowX:U,arrowY:Ce,shouldHideArrow:Re,children:d.jsx(en.div,{"data-side":te,"data-align":Y,...b,ref:D,style:{...b.style,animation:se?void 0:"none"}})})})});yw.displayName=Lh;var vw="PopperArrow",Zj={top:"bottom",right:"left",bottom:"top",left:"right"},xw=S.forwardRef(function(e,n){const{__scopePopper:i,...o}=e,l=Qj(vw,i),u=Zj[l.placedSide];return d.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:d.jsx(Hj,{...o,ref:n,style:{...o.style,display:"block"}})})});xw.displayName=vw;function Gj(t){return t!==null}var Xj=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:i,middlewareData:o}=e,u=o.arrow?.centerOffset!==0,f=u?0:t.arrowWidth,p=u?0:t.arrowHeight,[m,g]=ww(n),v={start:"0%",center:"50%",end:"100%"}[g],x=(o.arrow?.x??0)+f/2,P=(o.arrow?.y??0)+p/2;let C="",b="";return m==="bottom"?(C=u?v:`${x}px`,b=`${-p}px`):m==="top"?(C=u?v:`${x}px`,b=`${i.floating.height+p}px`):m==="right"?(C=`${-p}px`,b=u?v:`${P}px`):m==="left"&&(C=`${i.floating.width+p}px`,b=u?v:`${P}px`),{data:{x:C,y:b}}}});function ww(t){const[e,n="center"]=t.split("-");return[e,n]}var Yj=gw,Jj=yw,ek=xw,[Zu]=zu("Tooltip",[hw]),Vh=hw(),bw="TooltipProvider",tk=700,Yy="tooltip.open",[nk,Sw]=Zu(bw),Tw=t=>{const{__scopeTooltip:e,delayDuration:n=tk,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=t,u=S.useRef(!0),f=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),d.jsx(nk,{scope:e,isOpenDelayedRef:u,delayDuration:n,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),u.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>u.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:S.useCallback(m=>{f.current=m},[]),disableHoverableContent:o,children:l})};Tw.displayName=bw;var Pw="Tooltip",[tO,Gu]=Zu(Pw),Hf="TooltipTrigger",rk=S.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,o=Gu(Hf,n),l=Sw(Hf,n),u=Vh(n),f=S.useRef(null),p=Hn(e,f,o.onTriggerChange),m=S.useRef(!1),g=S.useRef(!1),v=S.useCallback(()=>m.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),d.jsx(Yj,{asChild:!0,...u,children:d.jsx(en.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:p,onPointerMove:Ct(t.onPointerMove,x=>{x.pointerType!=="touch"&&!g.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ct(t.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Ct(t.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:Ct(t.onFocus,()=>{m.current||o.onOpen()}),onBlur:Ct(t.onBlur,o.onClose),onClick:Ct(t.onClick,o.onClose)})})});rk.displayName=Hf;var sk="TooltipPortal",[nO,ik]=Zu(sk,{forceMount:void 0}),$i="TooltipContent",Nw=S.forwardRef((t,e)=>{const n=ik($i,t.__scopeTooltip),{forceMount:i=n.forceMount,side:o="top",...l}=t,u=Gu($i,t.__scopeTooltip);return d.jsx(Ph,{present:i||u.open,children:u.disableHoverableContent?d.jsx(Cw,{side:o,...l,ref:e}):d.jsx(ok,{side:o,...l,ref:e})})}),ok=S.forwardRef((t,e)=>{const n=Gu($i,t.__scopeTooltip),i=Sw($i,t.__scopeTooltip),o=S.useRef(null),l=Hn(e,o),[u,f]=S.useState(null),{trigger:p,onClose:m}=n,g=o.current,{onPointerInTransitChange:v}=i,x=S.useCallback(()=>{f(null),v(!1)},[v]),P=S.useCallback((C,b)=>{const T=C.currentTarget,j={x:C.clientX,y:C.clientY},k=dk(j,T.getBoundingClientRect()),D=fk(j,k),F=hk(b.getBoundingClientRect()),V=mk([...D,...F]);f(V),v(!0)},[v]);return S.useEffect(()=>()=>x(),[x]),S.useEffect(()=>{if(p&&g){const C=T=>P(T,g),b=T=>P(T,p);return p.addEventListener("pointerleave",C),g.addEventListener("pointerleave",b),()=>{p.removeEventListener("pointerleave",C),g.removeEventListener("pointerleave",b)}}},[p,g,P,x]),S.useEffect(()=>{if(u){const C=b=>{const T=b.target,j={x:b.clientX,y:b.clientY},k=p?.contains(T)||g?.contains(T),D=!pk(j,u);k?x():D&&(x(),m())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[p,g,u,m,x]),d.jsx(Cw,{...t,ref:l})}),[ak,lk]=Zu(Pw,{isInside:!1}),uk=lN("TooltipContent"),Cw=S.forwardRef((t,e)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:u,...f}=t,p=Gu($i,n),m=Vh(n),{onClose:g}=p;return S.useEffect(()=>(document.addEventListener(Yy,g),()=>document.removeEventListener(Yy,g)),[g]),S.useEffect(()=>
vendor: 4,100 bytes, line 8
8{if(p.trigger){const v=x=>{x.target?.contains(p.trigger)&&g()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[p.trigger,g]),d.jsx(Th,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:v=>v.preventDefault(),onDismiss:g,children:d.jsxs(Jj,{"data-state":p.stateAttribute,...m,...f,ref:e,style:{...f.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:[d.jsx(uk,{children:i}),d.jsx(ak,{scope:n,isInside:!0,children:d.jsx(EN,{id:p.contentId,role:"tooltip",children:o||i})})]})})});Nw.displayName=$i;var jw="TooltipArrow",ck=S.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,o=Vh(n);return lk(jw,n).isInside?null:d.jsx(ek,{...o,...i,ref:e})});ck.displayName=jw;function dk(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),l=Math.abs(e.left-t.x);switch(Math.min(n,i,o,l)){case l:return"left";case o:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function fk(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function hk(t){const{top:e,right:n,bottom:i,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:i},{x:o,y:i}]}function pk(t,e){const{x:n,y:i}=t;let o=!1;for(let l=0,u=e.length-1;l<e.length;u=l++){const f=e[l].x,p=e[l].y,m=e[u].x,g=e[u].y;p>i!=g>i&&n<(m-f)*(i-p)/(g-p)+f&&(o=!o)}return o}function mk(t){const e=t.slice();return e.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),gk(e)}function gk(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const o=t[i];for(;e.length>=2;){const l=e[e.length-1],u=e[e.length-2];if((l.x-u.x)*(o.y-u.y)>=(l.y-u.y)*(o.x-u.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(o.y-u.y)>=(l.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var yk=Tw,kw=Nw;const vk=yk,xk=S.forwardRef(({className:t,sideOffset:e=4,...n},i)=>d.jsx(kw,{ref:i,sideOffset:e,className:mt("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 origin-[--radix-tooltip-content-transform-origin]",t),...n}));xk.displayName=kw.displayName;const un=S.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:mt("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",t),...e}));un.displayName="Card";const wk=S.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:mt("flex flex-col space-y-1.5 p-6",t),...e}));wk.displayName="CardHeader";const bk=S.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:mt("text-2xl font-semibold leading-none tracking-tight",t),...e}));bk.displayName="CardTitle";const Sk=S.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:mt("text-sm text-muted-foreground",t),...e}));Sk.displayName="CardDescription";const cn=S.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:mt("p-6 pt-0",t),...e}));cn.displayName="CardContent";const Tk=S.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:mt("flex items-center p-6 pt-0",t),...e}));
8Tk.displayName="CardFooter";function Pk(){return d.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:d.jsx(un,{className:"w-full max-w-md mx-4",children:d.jsxs(cn,{className:"pt-6",children:[d.jsxs("div",{className:"flex mb-4 gap-2",children:[d.jsx(tC,{className:"h-8 w-8 text-red-500"}),d.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),d.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}function Nk(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,o)=>o==="create"?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}function Xu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const qf=t=>Array.isArray(t);function _w(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function aa(t){return typeof t=="string"||Array.isArray(t)}function Jy(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Fh(t,e,n,i){if(typeof e=="function"){const[o,l]=Jy(i);e=e(n!==void 0?n:t.custom,o,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,l]=Jy(i);e=e(n!==void 0?n:t.custom,o,l)}return e}function Yu(t,e,n){const i=t.getProps();return Fh(i,e,n!==void 0?n:i.custom,t)}const Bh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zh=["initial",...Bh],_a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xs=new Set(_a),Rr=t=>t*1e3,Dr=t=>t/1e3,Ck={type:"spring",stiffness:500,damping:25,restSpeed:10},jk=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),kk={type:"keyframes",duration:.8},_k={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ek=(t,{keyframes:e})=>e.length>2?kk:Xs.has(t)?t.startsWith("scale")?jk(e[1]):Ck:_k;function Uh(t,e){return t?t[e]||t.default||t:void 0}const Ak={useManualTiming:!1},Rk=t=>t!==null;function Ju(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(Rk),l=e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||i===void 0?o[l]:i}const qt=t=>t;let Ew=qt;function Dk(t){let e=new Set,n=new Set,i=!1,o=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(m){l.has(m)&&(p.schedule(m),t()),m(u)}const p={schedule:(m,g=!1,v=!1)=>{const P=v&&i?e:n;return g&&l.add(m),P.has(m)||P.add(m),m},cancel:m=>{n.delete(m),l.delete(m)},process:m=>{if(u=m,i){o=!0;return}i=!0,[e,n]=[n,e],n.clear(),e.forEach(f),i=!1,o&&(o=!1,p.process(m))}};return p}const Xl=["read","resolveKeyframes","update","preRender","render","postRender"],Mk=40;function Aw(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Xl.reduce((j,k)=>(j[k]=Dk(l),j),{}),{read:f,resolveKeyframes:p,update:m,preRender:g,render:v,postRender:x}=u,P=()=>{const j=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(j-o.timestamp,Mk),1),o.timestamp=j,o.isProcessing=!0,f.process(o),p.process(o),m.process(o),g.process(o),v.process(o),x.process(o),o.isProcessing=!1,n&&e&&(i=!1,t(P))},C=()=>{n=!0,i=!0,o.isProcessing||t(P)};return{schedule:Xl.reduce((j,k)=>{const D=u[k];return j[k]=(F,V=!1,q=!1)=>(n||C(),D.schedule(F,V,q)),j},{}),cancel:j=>{for(let k=0;k<Xl.length;k++)u[Xl[k]].cancel(j)},state:o,steps:u}}const{schedule:Ge,cancel:gs,state:It,steps:hf}=Aw(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0),Rw=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ok=1e-7,Ik=12;function Lk(t,e,n,i,o){let l,u,f=0;do u=e+(n-e)/2,l=Rw(u,i,o)-t,l>0?n=u:e=u;while(Math.abs(l)>Ok&&++f<Ik);return u}function Ea(t,e,n,i){if(t===e&&n===i)return qt;const o=l=>Lk(l,0,1,t,n);return l=>l===0||l===1?l:Rw(o(l),e,i)}const Dw=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Mw=t=>e=>1-t(1-e),Ow=Ea(.33,1.53,.69,.99),$h=Mw(Ow),Iw=Dw($h),Lw=t=>(t*=2)<1?.5*$h(t):.5*(2-Math.pow(2,-10*(t-1))),Wh=t=>1-Math.sin(Math.acos(t)),Vw=Mw(Wh),Fw=Dw(Wh),Bw=t=>/^0[^.\s]+$/u.test(t);function Vk(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bw(t):!0}const zw=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Uw=t=>e=>typeof e=="string"&&e.startsWith(t),$w=Uw("--"),Fk=Uw("var(--"),Hh=t=>Fk(t)?Bk.test(t.split("/*")[0].trim()):!1,Bk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Uk(t){const e=zk.exec(t);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}function Ww(t,e,n=1){const[i,o]=Uk(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return zw(u)?parseFloat(u):u}return Hh(o)?Ww(o,e,n+1):o}const Ir=(t,e,n)=>n>e?e:n<t?t:n,to={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},la={...to,transform:t=>Ir(0,1,t)},Yl={...to,default:1},Aa=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ls=Aa("deg"),ar=Aa("%"),Ne=Aa("px"),$k=Aa("vh"),Wk=Aa("vw"),ev={...ar,parse:t=>ar.parse(t)/100,transform:t=>ar.transform(t*100)},Hk=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tv=t=>t===to||t===Ne,nv=(t,e)=>parseFloat(t.split(", ")[e]),rv=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/u);if(o)return nv(o[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?nv(l[1],t):0}},qk=new Set(["x","y","z"]),Kk=_a.filter(t=>!qk.has(t));function Qk(t){const e=[];return Kk.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const Wi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:rv(4,13),y:rv(5,14)};Wi.translateX=Wi.x;Wi.translateY=Wi.y;const Hw=t=>e=>e.test(t),Zk={test:t=>t==="auto",parse:t=>t},qw=[to,Ne,ar,ls,Wk,$k,Zk],sv=t=>qw.find(Hw(t)),$s=new Set;let Kf=!1,Qf=!1;function Kw(){if(Qf){const t=Array.from($s).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>
vendor: 4,865 bytes, line 8
8{const o=Qk(i);o.length&&(n.set(i,o),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const o=n.get(i);o&&o.forEach(([l,u])=>{var f;(f=i.getValue(l))===null||f===void 0||f.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Qf=!1,Kf=!1,$s.forEach(t=>t.complete()),$s.clear()}function Qw(){$s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qf=!0)})}function Gk(){Qw(),Kw()}class qh{constructor(e,n,i,o,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?($s.add(this),Kf||(Kf=!0,Ge.read(Qw),Ge.resolveKeyframes(Kw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const u=o?.get(),f=e[e.length-1];if(u!==void 0)e[0]=u;else if(i&&n){const p=i.readValue(n,f);p!=null&&(e[0]=p)}e[0]===void 0&&(e[0]=f),o&&u===void 0&&o.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),$s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,$s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Jo=t=>Math.round(t*1e5)/1e5,Kh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xk(t){return t==null}const Yk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qh=(t,e)=>n=>!!(typeof n=="string"&&Yk.test(n)&&n.startsWith(t)||e&&!Xk(n)&&Object.prototype.hasOwnProperty.call(n,e)),Zw=(t,e,n)=>i=>{if(typeof i!="string")return i;const[o,l,u,f]=i.match(Kh);return{[t]:parseFloat(o),[e]:parseFloat(l),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},Jk=t=>Ir(0,255,t),pf={...to,transform:t=>Math.round(Jk(t))},zs={test:Qh("rgb","red"),parse:Zw("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+pf.transform(t)+", "+pf.transform(e)+", "+pf.transform(n)+", "+Jo(la.transform(i))+")"};function e_(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const Zf={test:Qh("#"),parse:e_,transform:zs.transform},Ai={test:Qh("hsl","hue"),parse:Zw("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+ar.transform(Jo(e))+", "+ar.transform(Jo(n))+", "+Jo(la.transform(i))+")"},$t={test:t=>zs.test(t)||Zf.test(t)||Ai.test(t),parse:t=>zs.test(t)?zs.parse(t):Ai.test(t)?Ai.parse(t):Zf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?zs.transform(t):Ai.transform(t)},t_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function n_(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Kh))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(t_))===null||n===void 0?void 0:n.length)||0)>0}const Gw="number",Xw="color",r_="var",s_="var(",iv="${}",i_=/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 ua(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[];let l=0;const f=e.replace(i_,p=>($t.test(p)?(i.color.push(l),o.push(Xw),n.push($t.parse(p))):p.startsWith(s_)?(i.var.push(l),o.push(r_),n.push(p)):(i.number.push(l),o.push(Gw),n.push(parseFloat(p))),++l,iv)).split(iv);return{values:n,split:f,indexes:i,types:o}}function Yw(t){return ua(t).values}function Jw(t){const{split:e,types:n}=ua(t),i=e.length;return o=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],o[u]!==void 0){const f=n[u];f===Gw?l+=Jo(o[u]):f===Xw?l+=$t.transform(o[u]):l+=o[u]}return l}}const o_=t=>typeof t=="number"?0:t;function a_(t){const e=Yw(t);return Jw(t)(e.map(o_))}const ys={test:n_,parse:Yw,createTransformer:Jw,getAnimatableNone:a_},l_=new Set(["brightness","contrast","saturate","opacity"]);function u_(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Kh)||[];if(!i)return t;const o=n.replace(i,"");let l=l_.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+o+")"}const c_=/\b([a-z-]*)\(.*?\)/gu,Gf={...ys,getAnimatableNone:t=>{const e=t.match(c_);return e?e.map(u_).join(" "):t}},d_={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,radiu
vendor: 75,664 bytes, line 8
8s:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,backgroundPositionX:Ne,backgroundPositionY:Ne},f_={rotate:ls,rotateX:ls,rotateY:ls,rotateZ:ls,scale:Yl,scaleX:Yl,scaleY:Yl,scaleZ:Yl,skew:ls,skewX:ls,skewY:ls,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:la,originX:ev,originY:ev,originZ:Ne},ov={...to,transform:Math.round},Zh={...d_,...f_,zIndex:ov,size:Ne,fillOpacity:la,strokeOpacity:la,numOctaves:ov},h_={...Zh,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:Gf,WebkitFilter:Gf},Gh=t=>h_[t];function eb(t,e){let n=Gh(t);return n!==Gf&&(n=ys),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const p_=new Set(["auto","none","0"]);function m_(t,e,n){let i=0,o;for(;i<t.length&&!o;){const l=t[i];typeof l=="string"&&!p_.has(l)&&ua(l).values.length&&(o=t[i]),i++}if(o&&n)for(const l of e)t[l]=eb(n,o)}class tb extends qh{constructor(e,n,i,o,l){super(e,n,i,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<e.length;p++){let m=e[p];if(typeof m=="string"&&(m=m.trim(),Hh(m))){const g=Ww(m,n.current);g!==void 0&&(e[p]=g),p===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Hk.has(i)||e.length!==2)return;const[o,l]=e,u=sv(o),f=sv(l);if(u!==f)if(tv(u)&&tv(f))for(let p=0;p<e.length;p++){const m=e[p];typeof m=="string"&&(e[p]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let o=0;o<e.length;o++)Vk(e[o])&&i.push(o);i.length&&m_(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wi[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(i,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=o.length-1,f=o[u];o[u]=Wi[i](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([p,m])=>{n.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function Xh(t){return typeof t=="function"}let iu;function g_(){iu=void 0}const lr={now:()=>(iu===void 0&&lr.set(It.isProcessing||Ak.useManualTiming?It.timestamp:performance.now()),iu),set:t=>{iu=t,queueMicrotask(g_)}},av=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ys.test(t)||t==="0")&&!t.startsWith("url("));function y_(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function v_(t,e,n,i){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=av(o,e),f=av(l,e);return!u||!f?!1:y_(t)||(n==="spring"||Xh(n))&&i}const x_=40;class nb{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:u="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=lr.now(),this.options={autoplay:e,delay:n,type:i,repeat:o,repeatDelay:l,repeatType:u,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>x_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gk(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=lr.now(),this.hasAttemptedResolve=!0;const{name:i,type:o,velocity:l,delay:u,onComplete:f,onUpdate:p,isGenerator:m}=this.options;if(!m&&!v_(e,i,o,l))if(u)this.options.duration=0;else{p?.(Ju(e,this.options,n)),f?.(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,n);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Hi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},rb=(t,e,n=10)=>{let i="";const o=Math.max(Math.round(e/n),2);for(let l=0;l<o;l++)i+=t(Hi(0,o-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function sb(t,e){return e?t*(1e3/e):0}const w_=5;function ib(t,e,n){const i=Math.max(e-w_,0);return sb(n-t(i),e-i)}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},mf=.001;function b_({duration:t=ht.duration,bounce:e=ht.bounce,velocity:n=ht.velocity,mass:i=ht.mass}){let o,l,u=1-e;u=Ir(ht.minDamping,ht.maxDamping,u),t=Ir(ht.minDuration,ht.maxDuration,Dr(t)),u<1?(o=m=>{const g=m*u,v=g*t,x=g-n,P=Xf(m,u),C=Math.exp(-v);return mf-x/P*C},l=m=>{const v=m*u*t,x=v*n+n,P=Math.pow(u,2)*Math.pow(m,2)*t,C=Math.exp(-v),b=Xf(Math.pow(m,2),u);return(-o(m)+mf>0?-1:1)*((x-P)*C)/b}):(o=m=>{const g=Math.exp(-m*t),v=(m-n)*t+1;return-mf+g*v},l=m=>{const g=Math.exp(-m*t),v=(n-m)*(t*t);return g*v});const f=5/t,p=T_(o,l,f);if(t=Rr(t),isNaN(p))return{stiffness:ht.stiffness,damping:ht.damping,duration:t};{const m=Math.pow(p,2)*i;return{stiffness:m,damping:u*2*Math.sqrt(i*m),duration:t}}}const S_=12;function T_(t,e,n){let i=n;for(let o=1;o<S_;o++)i=i-t(i)/e(i);return i}function Xf(t,e){return t*Math.sqrt(1-e*e)}const Yf=2e4;function ob(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Yf;)e+=n,i=t.next(e);return e>=Yf?1/0:e}const P_=["duration","bounce"],N_=["stiffness","damping","mass"];function lv(t,e){return e.some(n=>t[n]!==void 0)}function C_(t){let e={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...t};if(!lv(t,N_)&&lv(t,P_))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),o=i*i,l=2*Ir(.05,1,1-t.bounce)*Math.sqrt(o);e={...e,mass:ht.mass,stiffness:o,damping:l}}else{const n=b_(t);e={...e,...n,mass:ht.mass},e.isResolvedFromDuration=!0}return e}function ab(t=ht.visualDuration,e=ht.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:o}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],f={done:!1,value:l},{stiffness:p,damping:m,mass:g,duration:v,velocity:x,isResolvedFromDuration:P}=C_({...n,velocity:-Dr(n.velocity||0)}),C=x||0,b=m/(2*Math.sqrt(p*g)),T=u-l,j=Dr(Math.sqrt(p/g)),k=Math.abs(T)<5;i||(i=k?ht.restSpeed.granular:ht.restSpeed.default),o||(o=k?ht.restDelta.granular:ht.restDelta.default);let D;if(b<1){const V=Xf(j,b);D=q=>{const Q=Math.exp(-b*j*q);return u-Q*((C+b*j*T)/V*Math.sin(V*q)+T*Math.cos(V*q))}}else if(b===1)D=V=>u-Math.exp(-j*V)*(T+(C+j*T)*V);else{const V=j*Math.sqrt(b*b-1);D=q=>{const Q=Math.exp(-b*j*q),ne=Math.min(V*q,300);return u-Q*((C+b*j*T)*Math.sinh(ne)+V*T*Math.cosh(ne))/V}}const F={calculatedDuration:P&&v||null,next:V=>{const q=D(V);if(P)f.done=V>=v;else{let Q=0;b<1&&(Q=V===0?Rr(C):ib(D,V,q));const ne=Math.abs(Q)<=i,me=Math.abs(u-q)<=o;f.done=ne&&me}return f.value=f.done?u:q,f},toString:()=>{const V=Math.min(ob(F),Yf),q=rb(Q=>F.next(V*Q).value,V,30);return V+"ms "+q}};return F}function uv({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:f,max:p,restDelta:m=.5,restSpeed:g}){const v=t[0],x={done:!1,value:v},P=ne=>f!==void 0&&ne<f||p!==void 0&&ne>p,C=ne=>f===void 0?p:p===void 0||Math.abs(f-ne)<Math.abs(p-ne)?f:p;let b=n*e;const T=v+b,j=u===void 0?T:u(T);j!==T&&(b=j-v);const k=ne=>-b*Math.exp(-ne/i),D=ne=>j+k(ne),F=ne=>{const me=k(ne),ve=D(ne);x.done=Math.abs(me)<=m,x.value=x.done?j:ve};let V,q;const Q=ne=>{P(x.value)&&(V=ne,q=ab({keyframes:[x.value,C(x.value)],velocity:ib(D,ne,x.value),damping:o,stiffness:l,restDelta:m,restSpeed:g}))};return Q(0),{calculatedDuration:null,next:ne=>{let me=!1;return!q&&V===void 0&&(me=!0,F(ne),Q(ne)),V!==void 0&&ne>=V?q.next(ne-V):(!me&&F(ne),x)}}}const j_=Ea(.42,0,1,1),k_=Ea(0,0,.58,1),lb=Ea(.42,0,.58,1),__=t=>Array.isArray(t)&&typeof t[0]!="number",Yh=t=>Array.isArray(t)&&typeof t[0]=="number",E_={linear:qt,easeIn:j_,easeInOut:lb,easeOut:k_,circIn:Wh,circInOut:Fw,circOut:Vw,backIn:$h,backInOut:Iw,backOut:Ow,anticipate:Lw},cv=t=>{if(Yh(t)){Ew(t.length===4);const[e,n,i,o]=t;return Ea(e,n,i,o)}else if(typeof t=="string")return E_[t];return t},A_=(t,e)=>n=>e(t(n)),cs=(...t)=>t.reduce(A_),ct=(t,e,n)=>t+(e-t)*n;function gf(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function R_({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,l=0,u=0;if(!e)o=l=u=n;else{const f=n<.5?n*(1+e):n+e-n*e,p=2*n-f;o=gf(p,f,t+1/3),l=gf(p,f,t),u=gf(p,f,t-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function gu(t,e){return n=>n>0?e:t}const yf=(t,e,n)=>{const i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},D_=[Zf,zs,Ai],M_=t=>D_.find(e=>e.test(t));function dv(t){const e=M_(t);if(!e)return!1;let n=e.parse(t);return e===Ai&&(n=R_(n)),n}const fv=(t,e)=>{const n=dv(t),i=dv(e);if(!n||!i)return gu(t,e);const o={...n};return l=>(o.red=yf(n.red,i.red,l),o.green=yf(n.green,i.green,l),o.blue=yf(n.blue,i.blue,l),o.alpha=ct(n.alpha,i.alpha,l),zs.transform(o))},Jf=new Set(["none","hidden"]);function O_(t,e){return Jf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function I_(t,e){return n=>ct(t,e,n)}function Jh(t){return typeof t=="number"?I_:typeof t=="string"?Hh(t)?gu:$t.test(t)?fv:F_:Array.isArray(t)?ub:typeof t=="object"?$t.test(t)?fv:L_:gu}function ub(t,e){const n=[...t],i=n.length,o=t.map((l,u)=>Jh(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=o[u](l);return n}}function L_(t,e){const n={...t,...e},i={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Jh(t[o])(t[o],e[o]));return o=>{for(const l in i)n[l]=i[l](o);return n}}function V_(t,e){var n;const i=[],o={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const u=e.types[l],f=t.indexes[u][o[u]],p=(n=t.values[f])!==null&&n!==void 0?n:0;i[l]=p,o[u]++}return i}const F_=(t,e)=>{const n=ys.createTransformer(e),i=ua(t),o=ua(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?Jf.has(t)&&!o.values.length||Jf.has(e)&&!i.values.length?O_(t,e):cs(ub(V_(i,o),o.values),n):gu(t,e)};function cb(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ct(t,e,n):Jh(t)(t,e)}function B_(t,e,n){const i=[],o=n||cb,l=t.length-1;for(let u=0;u<l;u++){let f=o(t[u],t[u+1]);if(e){const p=Array.isArray(e)?e[u]||qt:e;f=cs(p,f)}i.push(f)}return i}function z_(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const l=t.length;if(Ew(l===e.length),l===1)return()=>e[0];if(l===2&&t[0]===t[1])return()=>e[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const u=B_(e,i,o),f=u.length,p=m=>{let g=0;if(f>1)for(;g<t.length-2&&!(m<t[g+1]);g++);const v=Hi(t[g],t[g+1],m);return u[g](v)};return n?m=>p(Ir(t[0],t[l-1],m)):p}function U_(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=Hi(0,e,i);t.push(ct(n,1,o))}}function $_(t){const e=[0];return U_(e,t.length-1),e}function W_(t,e){return t.map(n=>n*e)}function H_(t,e){return t.map(()=>e||lb).splice(0,t.length-1)}function yu({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=__(i)?i.map(cv):cv(i),l={done:!1,value:e[0]},u=W_(n&&n.length===e.length?n:$_(e),t),f=z_(u,e,{ease:Array.isArray(o)?o:H_(e,o)});return{calculatedDuration:t,next:p=>(l.value=f(p),l.done=p>=t,l)}}const q_=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ge.update(e,!0),stop:()=>gs(e),now:()=>It.isProcessing?It.timestamp:lr.now()}},K_={decay:uv,inertia:uv,tween:yu,keyframes:yu,spring:ab},Q_=t=>t/100;class ep extends nb{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:p}=this.options;p&&p()};const{name:n,motionValue:i,element:o,keyframes:l}=this.options,u=o?.KeyframeResolver||qh,f=(p,m)=>this.onKeyframesResolved(p,m);this.resolver=new u(l,f,n,i,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l,velocity:u=0}=this.options,f=Xh(n)?n:K_[n]||yu;let p,m;f!==yu&&typeof e[0]!="number"&&(p=cs(Q_,cb(e[0],e[1])),e=[0,100]);const g=f({...this.options,keyframes:e});l==="mirror"&&(m=f({...this.options,keyframes:[...e].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=ob(g));const{calculatedDuration:v}=g,x=v+o,P=x*(i+1)-o;return{generator:g,mirroredGenerator:m,mapPercentToKeyframes:p,calculatedDuration:v,resolvedDuration:x,totalDuration:P}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:ne}=this.options;return{done:!0,value:ne[ne.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:u,mapPercentToKeyframes:f,keyframes:p,calculatedDuration:m,totalDuration:g,resolvedDuration:v}=i;if(this.startTime===null)return l.next(0);const{delay:x,repeat:P,repeatType:C,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const j=this.currentTime-x*(this.speed>=0?1:-1),k=this.speed>=0?j<0:j>g;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let D=this.currentTime,F=l;if(P){const ne=Math.min(this.currentTime,g)/v;let me=Math.floor(ne),ve=ne%1;!ve&&ne>=1&&(ve=1),ve===1&&me--,me=Math.min(me,P+1),me%2&&(C==="reverse"?(ve=1-ve,b&&(ve-=b/v)):C==="mirror"&&(F=u)),D=Ir(0,1,ve)*v}const V=k?{done:!1,value:p[0]}:F.next(D);f&&(V.value=f(V.value));let{done:q}=V;!k&&m!==null&&(q=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&q);return Q&&o!==void 0&&(V.value=Ju(p,this.options,o)),T&&T(V.value),Q&&this.finish(),V}get duration(){const{resolved:e}=this;return e?Dr(e.calculatedDuration):0}get time(){return Dr(this.currentTime)}set time(e){e=Rr(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Dr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=q_,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Z_=new Set(["opacity","clipPath","filter","transform"]);function tp(t){let e;return()=>(e===void 0&&(e=t()),e)}const G_={linearEasing:void 0};function X_(t,e){const n=tp(t);return()=>{var i;return(i=G_[e])!==null&&i!==void 0?i:n()}}const vu=X_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function db(t){return!!(typeof t=="function"&&vu()||!t||typeof t=="string"&&(t in eh||vu())||Yh(t)||Array.isArray(t)&&t.every(db))}const Qo=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,eh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qo([0,.65,.55,1]),circOut:Qo([.55,0,1,.45]),backIn:Qo([.31,.01,.66,-.59]),backOut:Qo([.33,1.53,.69,.99])};function fb(t,e){if(t)return typeof t=="function"&&vu()?rb(t,e):Yh(t)?Qo(t):Array.isArray(t)?t.map(n=>fb(n,e)||eh.easeOut):eh[t]}function Y_(t,e,n,{delay:i=0,duration:o=300,repeat:l=0,repeatType:u="loop",ease:f="easeInOut",times:p}={}){const m={[e]:n};p&&(m.offset=p);const g=fb(f,o);return Array.isArray(g)&&(m.easing=g),t.animate(m,{delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}function hv(t,e){t.timeline=e,t.onfinish=null}const J_=tp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xu=10,e2=2e4;function t2(t){return Xh(t.type)||t.type==="spring"||!db(t.ease)}function n2(t,e){const n=new ep({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const o=[];let l=0;for(;!i.done&&l<e2;)i=n.sample(l),o.push(i.value),l+=xu;return{times:void 0,keyframes:o,duration:l-xu,ease:"linear"}}const hb={anticipate:Lw,backInOut:Iw,circInOut:Fw};function r2(t){return t in hb}class pv extends nb{constructor(e){super(e);const{name:n,motionValue:i,element:o,keyframes:l}=this.options;this.resolver=new tb(l,(u,f)=>this.onKeyframesResolved(u,f),n,i,o),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:o=300,times:l,ease:u,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!(!((i=p.owner)===null||i===void 0)&&i.current))return!1;if(typeof u=="string"&&vu()&&r2(u)&&(u=hb[u]),t2(this.options)){const{onComplete:x,onUpdate:P,motionValue:C,element:b,...T}=this.options,j=n2(e,T);e=j.keyframes,e.length===1&&(e[1]=e[0]),o=j.duration,l=j.times,u=j.ease,f="keyframes"}const v=Y_(p.owner.current,m,e,{...this.options,duration:o,times:l,ease:u});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(hv(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:x}=this.options;p.set(Ju(e,this.options,n)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:o,times:l,type:f,ease:u,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Dr(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Dr(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Rr(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return qt;const{animation:i}=n;hv(i,e)}return qt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:o,type:l,ease:u,times:f}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:g,onComplete:v,element:x,...P}=this.options,C=new ep({...P,keyframes:i,duration:o,type:l,ease:u,times:f,isGenerator:!0}),b=Rr(this.time);m.setWithVelocity(C.sample(b-xu).value,C.sample(b).value,xu)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:o,repeatType:l,damping:u,type:f}=e;return J_()&&i&&Z_.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&l!=="mirror"&&u!==0&&f!=="inertia"}}const s2=tp(()=>window.ScrollTimeline!==void 0);class i2{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(o=>s2()&&o.attachTimeline?o.attachTimeline(e):n(o));return()=>{i.forEach((o,l)=>{o&&o(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function o2({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:l,repeatType:u,repeatDelay:f,from:p,elapsed:m,...g}){return!!Object.keys(g).length}const np=(t,e,n,i={},o,l)=>u=>{const f=Uh(i,t)||{},p=f.delay||i.delay||0;let{elapsed:m=0}=i;m=m-Rr(p);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-m,onUpdate:x=>{e.set(x),f.onUpdate&&f.onUpdate(x)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:l?void 0:o};o2(f)||(g={...g,...Ek(t,g)}),g.duration&&(g.duration=Rr(g.duration)),g.repeatDelay&&(g.repeatDelay=Rr(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(v=!0)),v&&!l&&e.get()!==void 0){const x=Ju(g.keyframes,f);if(x!==void 0)return Ge.update(()=>{g.onUpdate(x),g.onComplete()}),new i2([])}return!l&&pv.supports(g)?new pv(g):new ep(g)},a2=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),l2=t=>qf(t)?t[t.length-1]||0:t;function rp(t,e){t.indexOf(e)===-1&&t.push(e)}function sp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ip{constructor(){this.subscriptions=[]}add(e){return rp(this.subscriptions,e),()=>sp(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let l=0;l<o;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mv=30,u2=t=>!isNaN(parseFloat(t));class c2{constructor(e,n={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,o=!0)=>{const l=lr.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=lr.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=u2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ip);const i=this.events[e].add(n);return e==="change"?()=>{i(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=lr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>mv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mv);return sb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ca(t,e){return new c2(t,e)}function d2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ca(n))}function f2(t,e){const n=Yu(t,e);let{transitionEnd:i={},transition:o={},...l}=n||{};l={...l,...i};for(const u in l){const f=l2(l[u]);d2(t,u,f)}}const op=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),h2="framerAppearId",pb="data-"+op(h2);function mb(t){return t.props[pb]}const Ht=t=>!!(t&&t.getVelocity);function p2(t){return!!(Ht(t)&&t.add)}function th(t,e){const n=t.getValue("willChange");if(p2(n))return n.add(e)}function m2({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function gb(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var l;let{transition:u=t.getDefaultTransition(),transitionEnd:f,...p}=e;i&&(u=i);const m=[],g=o&&t.animationState&&t.animationState.getState()[o];for(const v in p){const x=t.getValue(v,(l=t.latestValues[v])!==null&&l!==void 0?l:null),P=p[v];if(P===void 0||g&&m2(g,v))continue;const C={delay:n,...Uh(u||{},v)};let b=!1;if(window.MotionHandoffAnimation){const j=mb(t);if(j){const k=window.MotionHandoffAnimation(j,v,Ge);k!==null&&(C.startTime=k,b=!0)}}th(t,v),x.start(np(v,x,P,t.shouldReduceMotion&&Xs.has(v)?{type:!1}:C,t,b));const T=x.animation;T&&m.push(T)}return f&&Promise.all(m).then(()=>{Ge.update(()=>{f&&f2(t,f)})}),m}function nh(t,e,n={}){var i;const o=Yu(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const u=o?()=>Promise.all(gb(t,o,n)):()=>Promise.resolve(),f=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:x}=l;return g2(t,e,g+m,v,x,n)}:()=>Promise.resolve(),{when:p}=l;if(p){const[m,g]=p==="beforeChildren"?[u,f]:[f,u];return m().then(()=>g())}else return Promise.all([u(),f(n.delay)])}function g2(t,e,n=0,i=0,o=1,l){const u=[],f=(t.variantChildren.size-1)*i,p=o===1?(m=0)=>m*i:(m=0)=>f-m*i;return Array.from(t.variantChildren).sort(y2).forEach((m,g)=>{m.notify("AnimationStart",e),u.push(nh(m,e,{...l,delay:n+p(g)}).then(()=>m.notify("AnimationComplete",e)))}),Promise.all(u)}function y2(t,e){return t.sortNodePosition(e)}function v2(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(l=>nh(t,l,n));i=Promise.all(o)}else if(typeof e=="string")i=nh(t,e,n);else{const o=typeof e=="function"?Yu(t,e,n.custom):e;i=Promise.all(gb(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const x2=zh.length;function yb(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?yb(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<x2;n++){const i=zh[n],o=t.props[i];(aa(o)||o===!1)&&(e[i]=o)}return e}const w2=[...Bh].reverse(),b2=Bh.length;function S2(t){return e=>Promise.all(e.map(({animation:n,options:i})=>v2(t,n,i)))}function T2(t){let e=S2(t),n=gv(),i=!0;const o=p=>(m,g)=>{var v;const x=Yu(t,g,p==="exit"?(v=t.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(x){const{transition:P,transitionEnd:C,...b}=x;m={...m,...b,...C}}return m};function l(p){e=p(t)}function u(p){const{props:m}=t,g=yb(t.parent)||{},v=[],x=new Set;let P={},C=1/0;for(let T=0;T<b2;T++){const j=w2[T],k=n[j],D=m[j]!==void 0?m[j]:g[j],F=aa(D),V=j===p?k.isActive:null;V===!1&&(C=T);let q=D===g[j]&&D!==m[j]&&F;if(q&&i&&t.manuallyAnimateOnMount&&(q=!1),k.protectedKeys={...P},!k.isActive&&V===null||!D&&!k.prevProp||Xu(D)||typeof D=="boolean")continue;const Q=P2(k.prevProp,D);let ne=Q||j===p&&k.isActive&&!q&&F||T>C&&F,me=!1;const ve=Array.isArray(D)?D:[D];let be=ve.reduce(o(j),{});V===!1&&(be={});const{prevResolvedValues:X={}}=k,ie={...X,...be},K=se=>{ne=!0,x.has(se)&&(me=!0,x.delete(se)),k.needsAnimating[se]=!0;const B=t.getValue(se);B&&(B.liveStyle=!1)};for(const se in ie){const B=be[se],te=X[se];if(P.hasOwnProperty(se))continue;let Y=!1;qf(B)&&qf(te)?Y=!_w(B,te):Y=B!==te,Y?B!=null?K(se):x.add(se):B!==void 0&&x.has(se)?K(se):k.protectedKeys[se]=!0}k.prevProp=D,k.prevResolvedValues=be,k.isActive&&(P={...P,...be}),i&&t.blockInitialAnimation&&(ne=!1),ne&&(!(q&&Q)||me)&&v.push(...ve.map(se=>({animation:se,options:{type:j}})))}if(x.size){const T={};x.forEach(j=>{const k=t.getBaseTarget(j),D=t.getValue(j);D&&(D.liveStyle=!0),T[j]=k??null}),v.push({animation:T})}let b=!!v.length;return i&&(m.initial===!1||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(v):Promise.resolve()}function f(p,m){var g;if(n[p].isActive===m)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(x=>{var P;return(P=x.animationState)===null||P===void 0?void 0:P.setActive(p,m)}),n[p].isActive=m;const v=u(p);for(const x in n)n[x].protectedKeys={};return v}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=gv(),i=!0}}}function P2(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!_w(e,t):!1}function Vs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gv(){return{animate:Vs(!0),whileInView:Vs(),whileHover:Vs(),whileTap:Vs(),whileDrag:Vs(),whileFocus:Vs(),exit:Vs()}}class Ts{constructor(e){this.isMounted=!1,this.node=e}update(){}}class N2 extends Ts{constructor(e){super(e),e.animationState||(e.animationState=T2(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Xu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let C2=0;class j2 extends Ts{constructor(){super(...arguments),this.id=C2++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const k2={animation:{Feature:N2},exit:{Feature:j2}};function vb(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let o=document;const l=(i=void 0)!==null&&i!==void 0?i:o.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}const Ln={x:!1,y:!1};function xb(){return Ln.x||Ln.y}function yv(t){return e=>{e.pointerType==="touch"||xb()||t(e)}}function _2(t,e,n={}){const i=new AbortController,o={passive:!0,...n,signal:i.signal},l=yv(u=>{const{target:f}=u,p=e(u);if(!p||!f)return;const m=yv(g=>{p(g),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,o)});return vb(t).forEach(u=>{u.addEventListener("pointerenter",l,o)}),()=>i.abort()}function E2(t){return t==="x"||t==="y"?Ln[t]?null:(Ln[t]=!0,()=>{Ln[t]=!1}):Ln.x||Ln.y?null:(Ln.x=Ln.y=!0,()=>{Ln.x=Ln.y=!1})}const wb=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ra(t){return{point:{x:t.pageX,y:t.pageY}}}const A2=t=>e=>wb(e)&&t(e,Ra(e));function Er(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ds(t,e,n,i){return Er(t,e,A2(n),i)}const vv=(t,e)=>Math.abs(t-e);function R2(t,e){const n=vv(t.x,e.x),i=vv(t.y,e.y);return Math.sqrt(n**2+i**2)}class bb{constructor(e,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=xf(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,P=R2(v.offset,{x:0,y:0})>=3;if(!x&&!P)return;const{point:C}=v,{timestamp:b}=It;this.history.push({...C,timestamp:b});const{onStart:T,onMove:j}=this.handlers;x||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=vf(x,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:P,onSessionEnd:C,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=xf(v.type==="pointercancel"?this.lastMoveEventInfo:vf(x,this.transformPagePoint),this.history);this.startEvent&&P&&P(v,T),C&&C(v,T)},!wb(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const u=Ra(e),f=vf(u,this.transformPagePoint),{point:p}=f,{timestamp:m}=It;this.history=[{...p,timestamp:m}];const{onSessionStart:g}=n;g&&g(e,xf(f,this.history)),this.removeListeners=cs(ds(this.contextWindow,"pointermove",this.handlePointerMove),ds(this.contextWindow,"pointerup",this.handlePointerUp),ds(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function vf(t,e){return e?{point:e(t.point)}:t}function xv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xf({point:t},e){return{point:t,delta:xv(t,Sb(e)),offset:xv(t,D2(e)),velocity:M2(e,.1)}}function D2(t){return t[0]}function Sb(t){return t[t.length-1]}function M2(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=Sb(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>Rr(e)));)n--;if(!i)return{x:0,y:0};const l=Dr(o.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(o.x-i.x)/l,y:(o.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Ri(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Tb=1e-4,O2=1-Tb,I2=1+Tb,Pb=.01,L2=0-Pb,V2=0+Pb;function wn(t){return t.max-t.min}function F2(t,e,n){return Math.abs(t-e)<=n}function wv(t,e,n,i=.5){t.origin=i,t.originPoint=ct(e.min,e.max,t.origin),t.scale=wn(n)/wn(e),t.translate=ct(n.min,n.max,t.origin)-t.originPoint,(t.scale>=O2&&t.scale<=I2||isNaN(t.scale))&&(t.scale=1),(t.translate>=L2&&t.translate<=V2||isNaN(t.translate))&&(t.translate=0)}function ea(t,e,n,i){wv(t.x,e.x,n.x,i?i.originX:void 0),wv(t.y,e.y,n.y,i?i.originY:void 0)}function bv(t,e,n){t.min=n.min+e.min,t.max=t.min+wn(e)}function B2(t,e,n){bv(t.x,e.x,n.x),bv(t.y,e.y,n.y)}function Sv(t,e,n){t.min=e.min-n.min,t.max=t.min+wn(e)}function ta(t,e,n){Sv(t.x,e.x,n.x),Sv(t.y,e.y,n.y)}function z2(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?ct(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?ct(n,t,i.max):Math.min(t,n)),t}function Tv(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function U2(t,{top:e,left:n,bottom:i,right:o}){return{x:Tv(t.x,n,o),y:Tv(t.y,e,i)}}function Pv(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function $2(t,e){return{x:Pv(t.x,e.x),y:Pv(t.y,e.y)}}function W2(t,e){let n=.5;const i=wn(t),o=wn(e);return o>i?n=Hi(e.min,e.max-i,t.min):i>o&&(n=Hi(t.min,t.max-o,e.min)),Ir(0,1,n)}function H2(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const rh=.35;function q2(t=rh){return t===!1?t=0:t===!0&&(t=rh),{x:Nv(t,"left","right"),y:Nv(t,"top","bottom")}}function Nv(t,e,n){return{min:Cv(t,e),max:Cv(t,n)}}function Cv(t,e){return typeof t=="number"?t:t[e]||0}const jv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Di=()=>({x:jv(),y:jv()}),kv=()=>({min:0,max:0}),vt=()=>({x:kv(),y:kv()});function kn(t){return[t("x"),t("y")]}function Nb({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function K2({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Q2(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function wf(t){return t===void 0||t===1}function sh({scale:t,scaleX:e,scaleY:n}){return!wf(t)||!wf(e)||!wf(n)}function Fs(t){return sh(t)||Cb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Cb(t){return _v(t.x)||_v(t.y)}function _v(t){return t&&t!=="0%"}function wu(t,e,n){const i=t-n,o=e*i;return n+o}function Ev(t,e,n,i,o){return o!==void 0&&(t=wu(t,o,i)),wu(t,n,i)+e}function ih(t,e=0,n=1,i,o){t.min=Ev(t.min,e,n,i,o),t.max=Ev(t.max,e,n,i,o)}function jb(t,{x:e,y:n}){ih(t.x,e.translate,e.scale,e.originPoint),ih(t.y,n.translate,n.scale,n.originPoint)}const Av=.999999999999,Rv=1.0000000000001;function Z2(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let l,u;for(let f=0;f<o;f++){l=n[f],u=l.projectionDelta;const{visualElement:p}=l.options;p&&p.props.style&&p.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Oi(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,jb(t,u)),i&&Fs(l.latestValues)&&Oi(t,l.latestValues))}e.x<Rv&&e.x>Av&&(e.x=1),e.y<Rv&&e.y>Av&&(e.y=1)}function Mi(t,e){t.min=t.min+e,t.max=t.max+e}function Dv(t,e,n,i,o=.5){const l=ct(t.min,t.max,o);ih(t,e,n,l,i)}function Oi(t,e){Dv(t.x,e.x,e.scaleX,e.scale,e.originX),Dv(t.y,e.y,e.scaleY,e.scale,e.originY)}function kb(t,e){return Nb(Q2(t.getBoundingClientRect(),e))}function G2(t,e,n){const i=kb(t,n),{scroll:o}=e;return o&&(Mi(i.x,o.offset.x),Mi(i.y,o.offset.y)),i}const _b=({current:t})=>t?t.ownerDocument.defaultView:null,X2=new WeakMap;class Y2{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=vt(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ra(g).point)},l=(g,v)=>{const{drag:x,dragPropagation:P,onDragStart:C}=this.getProps();if(x&&!P&&(this.openDragLock&&this.openDragLock(),this.openDragLock=E2(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kn(T=>{let j=this.getAxisMotionValue(T).get()||0;if(ar.test(j)){const{projection:k}=this.visualElement;if(k&&k.layout){const D=k.layout.layoutBox[T];D&&(j=wn(D)*(parseFloat(j)/100))}}this.originPoint[T]=j}),C&&Ge.postRender(()=>C(g,v)),th(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},u=(g,v)=>{const{dragPropagation:x,dragDirectionLock:P,onDirectionLock:C,onDrag:b}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:T}=v;if(P&&this.currentDirection===null){this.currentDirection=J2(T),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,T),this.updateAxis("y",v.point,T),this.visualElement.render(),b&&b(g,v)},f=(g,v)=>this.stop(g,v),p=()=>kn(g=>{var v;return this.getAnimationState(g)==="paused"&&((v=this.getAxisMotionValue(g).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new bb(e,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:_b(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&Ge.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!Jl(e,o,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=z2(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&Ri(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=U2(o.layoutBox,n):this.constraints=!1,this.elastic=q2(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&kn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=H2(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ri(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=G2(i,o.root,this.visualElement.getTransformPagePoint());let u=$2(o.layout.layoutBox,l);if(n){const f=n(K2(u));this.hasMutatedConstraints=!!f,f&&(u=Nb(f))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),p=this.constraints||{},m=kn(g=>{if(!Jl(g,n,this.currentDirection))return;let v=p&&p[g]||{};u&&(v={min:0,max:0});const x=o?200:1e6,P=o?40:1e7,C={type:"inertia",velocity:i?e[g]:0,bounceStiffness:x,bounceDamping:P,timeConstant:750,restDelta:1,restSpeed:10,...l,...v};return this.startAxisValueAnimation(g,C)});return Promise.all(m).then(f)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return th(this.visualElement,e),i.start(np(e,i,0,n,this.visualElement,!1))}stopAnimation(){kn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){kn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){kn(n=>{const{drag:i}=this.getProps();if(!Jl(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:f}=o.layout.layoutBox[n];l.set(e[n]-ct(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ri(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};kn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const p=f.get();o[u]=W2({min:p,max:p},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),kn(u=>{if(!Jl(u,e,null))return;const f=this.getAxisMotionValue(u),{min:p,max:m}=this.constraints[u];f.set(ct(p,m,o[u]))})}addListeners(){if(!this.visualElement.current)return;X2.set(this.visualElement,this);const e=this.visualElement.current,n=ds(e,"pointerdown",p=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(p)}),i=()=>{const{dragConstraints:p}=this.getProps();Ri(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ge.read(i);const u=Er(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(kn(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=p[g].translate,v.set(v.get()+p[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),f&&f()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:u=rh,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:u,dragMomentum:f}}}function Jl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function J2(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class eE extends Ts{constructor(e){super(e),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new Y2(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mv=t=>(e,n)=>{t&&Ge.postRender(()=>t(e,n))};class tE extends Ts{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(e){this.session=new bb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_b(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:Mv(e),onStart:Mv(n),onMove:i,onEnd:(l,u)=>{delete this.session,o&&Ge.postRender(()=>o(l,u))}}}mount(){this.removePointerDownListener=ds(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ap=S.createContext(null);function nE(){const t=S.useContext(ap);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,o=S.useId();S.useEffect(()=>i(o),[]);const l=S.useCallback(()=>n&&n(o),[o,n]);return!e&&n?[!1,l]:[!0]}const Eb=S.createContext({}),Ab=S.createContext({}),ou={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ov(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ho={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ne.test(t))t=parseFloat(t);else return t;const n=Ov(t,e.target.x),i=Ov(t,e.target.y);return`${n}% ${i}%`}},rE={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=ys.parse(t);if(o.length>5)return i;const l=ys.createTransformer(t),u=typeof o[0]!="number"?1:0,f=n.x.scale*e.x,p=n.y.scale*e.y;o[0+u]/=f,o[1+u]/=p;const m=ct(f,p,.5);return typeof o[2+u]=="number"&&(o[2+u]/=m),typeof o[3+u]=="number"&&(o[3+u]/=m),l(o)}},bu={};function sE(t){Object.assign(bu,t)}const{schedule:lp}=Aw(queueMicrotask,!1);class iE extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:l}=e;sE(oE),l&&(n.group&&n.group.add(l),i&&i.register&&o&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),ou.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:l}=this.props,u=i.projection;return u&&(u.isPresent=l,o||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||Ge.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),lp.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Rb(t){const[e,n]=nE(),i=S.useContext(Eb);return d.jsx(iE,{...t,layoutGroup:i,switchLayoutGroup:S.useContext(Ab),isPresent:e,safeToRemove:n})}const oE={borderRadius:{...Ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ho,borderTopRightRadius:Ho,borderBottomLeftRadius:Ho,borderBottomRightRadius:Ho,boxShadow:rE},Db=["TopLeft","TopRight","BottomLeft","BottomRight"],aE=Db.length,Iv=t=>typeof t=="string"?parseFloat(t):t,Lv=t=>typeof t=="number"||Ne.test(t);function lE(t,e,n,i,o,l){o?(t.opacity=ct(0,n.opacity!==void 0?n.opacity:1,uE(i)),t.opacityExit=ct(e.opacity!==void 0?e.opacity:1,0,cE(i))):l&&(t.opacity=ct(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<aE;u++){const f=`border${Db[u]}Radius`;let p=Vv(e,f),m=Vv(n,f);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||Lv(p)===Lv(m)?(t[f]=Math.max(ct(Iv(p),Iv(m),i),0),(ar.test(m)||ar.test(p))&&(t[f]+="%")):t[f]=m}(e.rotate||n.rotate)&&(t.rotate=ct(e.rotate||0,n.rotate||0,i))}function Vv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const uE=Mb(0,.5,Vw),cE=Mb(.5,.95,qt);function Mb(t,e,n){return i=>i<t?0:i>e?1:n(Hi(t,e,i))}function Fv(t,e){t.min=e.min,t.max=e.max}function jn(t,e){Fv(t.x,e.x),Fv(t.y,e.y)}function Bv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function zv(t,e,n,i,o){return t-=e,t=wu(t,1/n,i),o!==void 0&&(t=wu(t,1/o,i)),t}function dE(t,e=0,n=1,i=.5,o,l=t,u=t){if(ar.test(e)&&(e=parseFloat(e),e=ct(u.min,u.max,e/100)-u.min),typeof e!="number")return;let f=ct(l.min,l.max,i);t===l&&(f-=e),t.min=zv(t.min,e,n,f,o),t.max=zv(t.max,e,n,f,o)}function Uv(t,e,[n,i,o],l,u){dE(t,e[n],e[i],e[o],e.scale,l,u)}const fE=["x","scaleX","originX"],hE=["y","scaleY","originY"];function $v(t,e,n,i){Uv(t.x,e,fE,n?n.x:void 0,i?i.x:void 0),Uv(t.y,e,hE,n?n.y:void 0,i?i.y:void 0)}function Wv(t){return t.translate===0&&t.scale===1}function Ob(t){return Wv(t.x)&&Wv(t.y)}function Hv(t,e){return t.min===e.min&&t.max===e.max}function pE(t,e){return Hv(t.x,e.x)&&Hv(t.y,e.y)}function qv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ib(t,e){return qv(t.x,e.x)&&qv(t.y,e.y)}function Kv(t){return wn(t.x)/wn(t.y)}function Qv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class mE{constructor(){this.members=[]}add(e){rp(this.members,e),e.scheduleRender()}remove(e){if(sp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gE(t,e,n){let i="";const o=t.x.translate/e.x,l=t.y.translate/e.y,u=n?.z||0;if((o||l||u)&&(i=`translate3d(${o}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:m,rotate:g,rotateX:v,rotateY:x,skewX:P,skewY:C}=n;m&&(i=`perspective(${m}px) ${i}`),g&&(i+=`rotate(${g}deg) `),v&&(i+=`rotateX(${v}deg) `),x&&(i+=`rotateY(${x}deg) `),P&&(i+=`skewX(${P}deg) `),C&&(i+=`skewY(${C}deg) `)}const f=t.x.scale*e.x,p=t.y.scale*e.y;return(f!==1||p!==1)&&(i+=`scale(${f}, ${p})`),i||"none"}const yE=(t,e)=>t.depth-e.depth;class vE{constructor(){this.children=[],this.isDirty=!1}add(e){rp(this.children,e),this.isDirty=!0}remove(e){sp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yE),this.isDirty=!1,this.children.forEach(e)}}function au(t){const e=Ht(t)?t.get():t;return a2(e)?e.toValue():e}function xE(t,e){const n=lr.now(),i=({timestamp:o})=>{const l=o-n;l>=e&&(gs(i),t(l-e))};return Ge.read(i,!0),()=>gs(i)}function wE(t){return t instanceof SVGElement&&t.tagName!=="svg"}function bE(t,e,n){const i=Ht(t)?t:ca(t);return i.start(np("",i,e,n)),i.animation}const Bs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Zo=typeof window<"u"&&window.MotionDebug!==void 0,bf=["","X","Y","Z"],SE={visibility:"hidden"},Zv=1e3;let TE=0;function Sf(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Lb(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mb(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Ge,!(o||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Lb(i)}function Vb({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u={},f=e?.()){this.id=TE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zo&&(Bs.totalNodes=Bs.resolvedTargetDeltas=Bs.recalculatedProjection=0),this.nodes.forEach(CE),this.nodes.forEach(AE),this.nodes.forEach(RE),this.nodes.forEach(jE),Zo&&window.MotionDebug.record(Bs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new vE)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new ip),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const p=this.eventHandlers.get(u);p&&p.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=wE(u),this.instance=u;const{layoutId:p,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(m||p)&&(this.isLayoutDirty=!0),t){let v;const x=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=xE(x,250),ou.hasAnimatedSinceResize&&(ou.hasAnimatedSinceResize=!1,this.nodes.forEach(Xv))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeTargetChanged:P,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||g.getDefaultTransition()||LE,{onLayoutAnimationStart:T,onLayoutAnimationComplete:j}=g.getProps(),k=!this.targetLayout||!Ib(this.targetLayout,C)||P,D=!x&&P;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||x&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,D);const F={...Uh(b,"layout"),onPlay:T,onComplete:j};(g.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F)}else x||Xv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gs(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(DE),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Lb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:f,layout:p}=this.options;if(f===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gv);return}this.isUpdating||this.nodes.forEach(_E),this.isUpdating=!1,this.nodes.forEach(EE),this.nodes.forEach(PE),this.nodes.forEach(NE),this.clearAllSnapshots();const f=lr.now();It.delta=Ir(0,1e3/60,f-It.timestamp),It.timestamp=f,It.isProcessing=!0,hf.update.process(It),hf.preRender.process(It),hf.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kE),this.sharedNodes.forEach(ME)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=vt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f){const p=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:p,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!Ob(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;u&&(f||Fs(this.latestValues)||g)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let p=this.removeElementScroll(f);return u&&(p=this.removeTransform(p)),VE(p),{animationId:this.root.animationId,measuredBox:f,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:f}=this.options;if(!f)return vt();const p=f.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(FE))){const{scroll:g}=this.root;g&&(Mi(p.x,g.offset.x),Mi(p.y,g.offset.y))}return p}removeElementScroll(u){var f;const p=vt();if(jn(p,u),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return p;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:v,options:x}=g;g!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&jn(p,u),Mi(p.x,v.offset.x),Mi(p.y,v.offset.y))}return p}applyTransform(u,f=!1){const p=vt();jn(p,u);for(let m=0;m<this.path.length;m++){const g=this.path[m];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Oi(p,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Fs(g.latestValues)&&Oi(p,g.latestValues)}return Fs(this.latestValues)&&Oi(p,this.latestValues),p}removeTransform(u){const f=vt();jn(f,u);for(let p=0;p<this.path.length;p++){const m=this.path[p];if(!m.instance||!Fs(m.latestValues))continue;sh(m.latestValues)&&m.updateSnapshot();const g=vt(),v=m.measurePageBox();jn(g,v),$v(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return Fs(this.latestValues)&&$v(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var f;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==p;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!(!this.layout||!(v||x))){if(this.resolvedRelativeTargetAt=It.timestamp,!this.targetDelta&&!this.relativeTarget){const P=this.getClosestProjectingParent();P&&P.layout&&this.animationProgress!==1?(this.relativeParent=P,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vt(),this.relativeTargetOrigin=vt(),ta(this.relativeTargetOrigin,this.layout.layoutBox,P.layout.layoutBox),jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):jn(this.target,this.layout.layoutBox),jb(this.target,this.targetDelta)):jn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const P=this.getClosestProjectingParent();P&&!!P.resumingFrom==!!this.resumingFrom&&!P.options.layoutScroll&&P.target&&this.animationProgress!==1?(this.relativeParent=P,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vt(),this.relativeTargetOrigin=vt(),ta(this.relativeTargetOrigin,this.target,P.target),jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Zo&&Bs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||sh(this.parent.latestValues)||Cb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const f=this.getLead(),p=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===It.timestamp&&(m=!1),m)return;const{layout:g,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||v))return;jn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,P=this.treeScale.y;Z2(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=vt());const{target:C}=f;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bv(this.prevProjectionDelta.x,this.projectionDelta.x),Bv(this.prevProjectionDelta.y,this.projectionDelta.y)),ea(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==P||!Qv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C)),Zo&&Bs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),u){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Di(),this.projectionDelta=Di(),this.projectionDeltaWithTransform=Di()}setAnimationOrigin(u,f=!1){const p=this.snapshot,m=p?p.latestValues:{},g={...this.latestValues},v=Di();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const x=vt(),P=p?p.source:void 0,C=this.layout?this.layout.source:void 0,b=P!==C,T=this.getStack(),j=!T||T.members.length<=1,k=!!(b&&!j&&this.options.crossfade===!0&&!this.path.some(IE));this.animationProgress=0;let D;this.mixTargetDelta=F=>{const V=F/1e3;Yv(v.x,u.x,V),Yv(v.y,u.y,V),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ta(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),OE(this.relativeTarget,this.relativeTargetOrigin,x,V),D&&pE(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=vt()),jn(D,this.relativeTarget)),b&&(this.animationValues=g,lE(g,m,this.latestValues,V,k,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{ou.hasAnimatedSinceResize=!0,this.currentAnimation=bE(0,Zv,{...u,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:p,layout:m,latestValues:g}=u;if(!(!f||!p||!m)){if(this!==u&&this.layout&&m&&Fb(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||vt();const v=wn(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+v;const x=wn(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+x}jn(f,p),Oi(f,g),ea(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new mE),this.sharedNodes.get(u).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:f}=this.options;return f?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:f}=this.options;return f?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:p}=u;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(f=!0),!f)return;const m={};p.z&&Sf("z",u,m,this.animationValues);for(let g=0;g<bf.length;g++)Sf(`rotate${bf[g]}`,u,m,this.animationValues),Sf(`skew${bf[g]}`,u,m,this.animationValues);u.render();for(const g in m)u.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);u.scheduleRender()}getProjectionStyles(u){var f,p;if(!this.instance||this.isSVG)return;if(!this.isVisible)return SE;const m={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=au(u?.pointerEvents)||"",m.transform=g?g(this.latestValues,""):"none",m;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=au(u?.pointerEvents)||""),this.hasProjected&&!Fs(this.latestValues)&&(b.transform=g?g({},""):"none",this.hasProjected=!1),b}const x=v.animationValues||v.latestValues;this.applyTransformsToTarget(),m.transform=gE(this.projectionDeltaWithTransform,this.treeScale,x),g&&(m.transform=g(x,m.transform));const{x:P,y:C}=this.projectionDelta;m.transformOrigin=`${P.origin*100}% ${C.origin*100}% 0`,v.animationValues?m.opacity=v===this?(p=(f=x.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:m.opacity=v===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const b in bu){if(x[b]===void 0)continue;const{correct:T,applyTo:j}=bu[b],k=m.transform==="none"?x[b]:T(x[b],v);if(j){const D=j.length;for(let F=0;F<D;F++)m[j[F]]=k}else m[b]=k}return this.options.layoutId&&(m.pointerEvents=v===this?au(u?.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(Gv),this.root.sharedNodes.clear()}}}function PE(t){t.updateLayout()}function NE(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=t.layout,{animationType:l}=t.options,u=n.source!==t.layout.source;l==="size"?kn(v=>{const x=u?n.measuredBox[v]:n.layoutBox[v],P=wn(x);x.min=i[v].min,x.max=x.min+P}):Fb(l,n.layoutBox,i)&&kn(v=>{const x=u?n.measuredBox[v]:n.layoutBox[v],P=wn(i[v]);x.max=x.min+P,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+P)});const f=Di();ea(f,i,n.layoutBox);const p=Di();u?ea(p,t.applyTransform(o,!0),n.measuredBox):ea(p,i,n.layoutBox);const m=!Ob(f);let g=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:P}=v;if(x&&P){const C=vt();ta(C,n.layoutBox,x.layoutBox);const b=vt();ta(b,i,P.layoutBox),Ib(C,b)||(g=!0),v.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=C,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:p,layoutDelta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function CE(t){Zo&&Bs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jE(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function kE(t){t.clearSnapshot()}function Gv(t){t.clearMeasurements()}function _E(t){t.isLayoutDirty=!1}function EE(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Xv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function AE(t){t.resolveTargetDelta()}function RE(t){t.calcProjection()}
8function DE(t){t.resetSkewAndRotation()}function ME(t){t.removeLeadSnapshot()}function Yv(t,e,n){t.translate=ct(e.translate,0,n),t.scale=ct(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Jv(t,e,n,i){t.min=ct(e.min,n.min,i),t.max=ct(e.max,n.max,i)}function OE(t,e,n,i){Jv(t.x,e.x,n.x,i),Jv(t.y,e.y,n.y,i)}function IE(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const LE={duration:.45,ease:[.4,0,.1,1]},ex=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tx=ex("applewebkit/")&&!ex("chrome/")?Math.round:qt;function nx(t){t.min=tx(t.min),t.max=tx(t.max)}function VE(t){nx(t.x),nx(t.y)}function Fb(t,e,n){return t==="position"||t==="preserve-aspect"&&!F2(Kv(e),Kv(n),.2)}function FE(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const BE=Vb({attachResizeListener:(t,e)=>Er(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tf={current:void 0},Bb=Vb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Tf.current){const t=new BE({});t.mount(window),t.setOptions({layoutScroll:!0}),Tf.current=t}return Tf.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),zE={pan:{Feature:tE},drag:{Feature:eE,ProjectionNode:Bb,MeasureLayout:Rb}};function rx(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n);const o=i[n?"onHoverStart":"onHoverEnd"];o&&Ge.postRender(()=>o(e,Ra(e)))}class UE extends Ts{mount(){const{current:e,props:n}=this.node;e&&(this.unmount=_2(e,i=>(rx(this.node,i,!0),o=>rx(this.node,o,!1)),{passive:!n.onHoverStart&&!n.onHoverEnd}))}unmount(){}}class $E extends Ts{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cs(Er(this.node.current,"focus",()=>this.onFocus()),Er(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const zb=(t,e)=>e?t===e?!0:zb(t,e.parentElement):!1;function Pf(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ra(n))}class WE extends Ts{constructor(){super(...arguments),this.removeStartListeners=qt,this.removeEndListeners=qt,this.removeAccessibleListeners=qt,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),l=ds(window,"pointerup",(f,p)=>{if(!this.checkPressEnd())return;const{onTap:m,onTapCancel:g,globalTapTarget:v}=this.node.getProps(),x=!v&&!zb(this.node.current,f.target)?g:m;x&&Ge.update(()=>x(f,p))},{passive:!(i.onTap||i.onPointerUp)}),u=ds(window,"pointercancel",(f,p)=>this.cancelPress(f,p),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=cs(l,u),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=l=>{if(l.key!=="Enter"||this.isPressing)return;const u=f=>{f.key!=="Enter"||!this.checkPressEnd()||Pf("up",(p,m)=>{const{onTap:g}=this.node.getProps();g&&Ge.postRender(()=>g(p,m))})};this.removeEndListeners(),this.removeEndListeners=Er(this.node.current,"keyup",u),Pf("down",(f,p)=>{this.startPress(f,p)})},n=Er(this.node.current,"keydown",e),i=()=>{this.isPressing&&Pf("cancel",(l,u)=>this.cancelPress(l,u))},o=Er(this.node.current,"blur",i);this.removeAccessibleListeners=cs(n,o)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&Ge.postRender(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xb()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&Ge.postRender(()=>i(e,n))}mount(){const e=this.node.getProps(),n=ds(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=Er(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=cs(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const oh=new WeakMap,Nf=new WeakMap,HE=t=>{const e=oh.get(t.target);e&&e(t)}
vendor: 11,293 bytes, line 8
8,qE=t=>{t.forEach(HE)};function KE({root:t,...e}){const n=t||document;Nf.has(n)||Nf.set(n,{});const i=Nf.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(qE,{root:t,...e})),i[o]}function QE(t,e,n){const i=KE(e);return oh.set(t,n),i.observe(t),()=>{oh.delete(t),i.unobserve(t)}}const ZE={some:0,all:1};class GE extends Ts{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:ZE[o]},f=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),x=m?g:v;x&&x(p)};return QE(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(XE(e,n))&&this.startObserver()}unmount(){}}function XE({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const YE={inView:{Feature:GE},tap:{Feature:WE},focus:{Feature:$E},hover:{Feature:UE}},JE={layout:{ProjectionNode:Bb,MeasureLayout:Rb}},Ub=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ec=S.createContext({}),up=typeof window<"u",eA=up?S.useLayoutEffect:S.useEffect,$b=S.createContext({strict:!1});function tA(t,e,n,i,o){var l,u;const{visualElement:f}=S.useContext(ec),p=S.useContext($b),m=S.useContext(ap),g=S.useContext(Ub).reducedMotion,v=S.useRef();i=i||p.renderer,!v.current&&i&&(v.current=i(t,{visualState:e,parent:f,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g}));const x=v.current,P=S.useContext(Ab);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&nA(v.current,n,o,P);const C=S.useRef(!1);S.useInsertionEffect(()=>{x&&C.current&&x.update(n,m)});const b=n[pb],T=S.useRef(!!b&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,b))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,b)));return eA(()=>{x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),lp.render(x.render),T.current&&x.animationState&&x.animationState.animateChanges())}),S.useEffect(()=>{x&&(!T.current&&x.animationState&&x.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)===null||j===void 0||j.call(window,b)}),T.current=!1))}),x}function nA(t,e,n,i){const{layoutId:o,layout:l,drag:u,dragConstraints:f,layoutScroll:p,layoutRoot:m}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Wb(t.parent)),t.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!u||f&&Ri(f),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:m})}function Wb(t){if(t)return t.options.allowProjection!==!1?t.projection:Wb(t.parent)}function rA(t,e,n){return S.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Ri(n)&&(n.current=i))},[e])}function tc(t){return Xu(t.animate)||zh.some(e=>aa(t[e]))}function Hb(t){return!!(tc(t)||t.variants)}function sA(t,e){if(tc(t)){const{initial:n,animate:i}=t;return{initial:n===!1||aa(n)?n:void 0,animate:aa(i)?i:void 0}}return t.inherit!==!1?e:{}}function iA(t){const{initial:e,animate:n}=sA(t,S.useContext(ec));return S.useMemo(()=>({initial:e,animate:n}),[sx(e),sx(n)])}function sx(t){return Array.isArray(t)?t.join(" "):t}const ix={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"]},qi={};for(const t in ix)qi[t]={isEnabled:e=>ix[t].some(n=>!!e[n])};function oA(t){for(const e in t)qi[e]={...qi[e],...t[e]}}const aA=Symbol.for("motionComponentSymbol");function lA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:o}){t&&oA(t);function l(f,p){let m;const g={...S.useContext(Ub),...f,layoutId:uA(f)},{isStatic:v}=g,x=iA(f),P=i(f,v);if(!v&&up){cA();const C=dA(g);m=C.MeasureLayout,x.visualElement=tA(o,P,g,e,C.ProjectionNode)}return d.jsxs(ec.Provider,{value:x,children:[m&&x.visualElement?d.jsx(m,{visualElement:x.visualElement,...g}):null,n(o,f,rA(P,x.visualElement,p),P,v,x.visualElement)]})}const u=S.forwardRef(l);return u[aA]=o,u}function uA({layoutId:t}){const e=S.useContext(Eb).id;return e&&t!==void 0?e+"-"+t:t}function cA(t,e){S.useContext($b).strict}function dA(t){const{drag:e,layout:n}=qi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const fA=["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 cp(t){return typeof t!="string"||t.includes("-")?!1:!!(fA.indexOf(t)>-1||/[A-Z]/u.test(t))}function qb(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const Kb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qb(t,e,n,i){qb(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(Kb.has(o)?o:op(o),e.attrs[o])}function Zb(t,{layout:e,layoutId:n}){return Xs.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!bu[t]||t==="opacity")}function dp(t,e,n){var i;const{style:o}=t,l={};for(const u in o)(Ht(o[u])||e.style&&Ht(e.style[u])||Zb(u,t)||((i=n?.getValue(u))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[u]=o[u]);return l}function Gb(t,e,n){const i=dp(t,e,n);for(const o in t)if(Ht(t[o])||Ht(e[o])){const l=_a.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[l]=t[o]}return i}function hA(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}function pA({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,o,l){const u={latestValues:mA(i,o,l,t),renderState:e()};return n&&(u.mount=f=>n(i,f,u)),u}const Xb=t=>(e,n)=>{const i=S.useContext(ec),o=S.useContext(ap),l=()=>pA(t,e,i,o);return n?l():hA(l)};function mA(t,e,n,i){const o={},l=i(t,{});for(const x in l)o[x]=au(l[x]);let{initial:u,animate:f}=t;const p=tc(t),m=Hb(t);e&&m&&!p&&t.inherit!==!1&&(u===void 0&&(u=e.initial),f===void 0&&(f=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const v=g?f:u;if(v&&typeof v!="boolean"&&!Xu(v)){const x=Array.isArray(v)?v:[v];for(let P=0;P<x.length;P++){const C=Fh(t,x[P]);if(C){const{transitionEnd:b,transition:T,...j}=C;for(const k in j){let D=j[k];if(Array.isArray(D)){const F=g?D.length-1:0;D=D[F]}D!==null&&(o[k]=D)}for(const k in b)o[k]=b[k]}}}return o}const fp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Yb=()=>({...fp(),attrs:{}}),Jb=(t,e)=>e&&typeof t=="number"?e.transform(t):t,gA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yA=_a.length;function vA(t,e,n){let i="",o=!0;for(let l=0;l<yA;l++){const u=_a[l],f=t[u];if(f===void 0)continue;let p=!0;if(typeof f=="number"?p=f===(u.startsWith("scale")?1:0):p=parseFloat(f)===0,!p||n){const m=Jb(f,Zh[u]);if(!p){o=!1;const g=gA[u]||u;i+=`${g}(${m}) `}n&&(e[u]=m)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}function hp(t,e,n){const{style:i,vars:o,transformOrigin:l}=t;let u=!1,f=!1;for(const p in e){const m=e[p];if(Xs.has(p)){u=!0;continue}else if($w(p)){o[p]=m;continue}else{const g=Jb(m,Zh[p]);p.startsWith("origin")?(f=!0,l[p]=g):i[p]=g}}if(e.transform||(u||n?i.transform=vA(e,t.transform,n):i.transform&&(i.transform="none")),f){const{originX:p="50%",originY:m="50%",originZ:g=0}=l;i.transformOrigin=`${p} ${m} ${g}`}}function ox(t,e,n){return typeof t=="string"?t:Ne.transform(e+n*t)}function xA(t,e,n){const i=ox(e,t.x,t.width),o=ox(n,t.y,t.height);return`${i} ${o}`}const wA={offset:"stroke-dashoffset",array:"stroke-dasharray"},bA={offset:"strokeDashoffset",array:"strokeDasharray"};function SA(t,e,n=1,i=0,o=!0){t.pathLength=1;const l=o?wA:bA;t[l.offset]=Ne.transform(-i);const u=Ne.transform(e),f=Ne.transform(n);t[l.array]=`${u} ${f}`}function pp(t,{attrX:e,attrY:n,attrScale:i,originX:o,originY:l,pathLength:u,pathSpacing:f=1,pathOffset:p=0,...m},g,v){if(hp(t,m,v),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:x,style:P,dimensions:C}=t;x.transform&&(C&&(P.transform=x.transform),delete x.transform),C&&(o!==void 0||l!==void 0||P.transform)&&(P.transformOrigin=xA(C,o!==void 0?o:.5,l!==void 0?l:.5)),e!==void 0&&(x.x=e),n!==void 0&&(x.y=n),i!==void 0&&(x.scale=i),u!==void 0&&SA(x,u,f,p,!1)}const mp=t=>typeof t=="string"&&t.toLowerCase()==="svg",TA={useVisualState:Xb({scrapeMotionValuesFromProps:Gb,createRenderState:Yb,onMount:(t,e,{renderState:n,latestValues:i})=>{Ge.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ge.render(()=>{pp(n,i,mp(e.tagName),t.transformTemplate),Qb(e,n)})}})},PA={useVisualState:Xb({scrapeMotionValuesFromProps:dp,createRenderState:fp})};function e1(t,e,n){for(const i in e)!Ht(e[i])&&!Zb(i,n)&&(t[i]=e[i])}function NA({transformTemplate:t},e){return S.useMemo(()=>{const n=fp();return hp(n,e,t),Object.assign({},n.vars,n.style)},[e])}function CA(t,e){const n=t.style||{},i={};return e1(i,n,t),Object.assign(i,NA(t,e)),i}function jA(t,e){const n={},i=CA(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const kA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Su(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||kA.has(t)}let t1=t=>!Su(t);function _A(t){t&&(t1=e=>e.startsWith("on")?!Su(e):t(e))}try{_A(require("@emotion/is-prop-valid").default)}catch{}function EA(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(t1(o)||n===!0&&Su(o)||!e&&!Su(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o
vendor: 4,491 bytes, line 8
8]);return i}function AA(t,e,n,i){const o=S.useMemo(()=>{const l=Yb();return pp(l,e,mp(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};e1(l,t.style,t),o.style={...l,...o.style}}return o}function RA(t=!1){return(n,i,o,{latestValues:l},u)=>{const p=(cp(n)?AA:jA)(i,l,u,n),m=EA(i,typeof n=="string",t),g=n!==S.Fragment?{...m,...p,ref:o}:{},{children:v}=i,x=S.useMemo(()=>Ht(v)?v.get():v,[v]);return S.createElement(n,{...g,children:x})}}function DA(t,e){return function(i,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...cp(i)?TA:PA,preloadedFeatures:t,useRender:RA(o),createVisualElement:e,Component:i};return lA(u)}}const ah={current:null},n1={current:!1};function MA(){if(n1.current=!0,!!up)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ah.current=t.matches;t.addListener(e),e()}else ah.current=!1}function OA(t,e,n){for(const i in e){const o=e[i],l=n[i];if(Ht(o))t.addValue(i,o);else if(Ht(l))t.addValue(i,ca(o,{owner:t}));else if(l!==o)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=t.getStaticValue(i);t.addValue(i,ca(u!==void 0?u:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const ax=new WeakMap,IA=[...qw,$t,ys],LA=t=>IA.find(Hw(t)),lx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VA{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:l,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=lr.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ge.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=u;this.latestValues=p,this.baseTarget={...p},this.initialValues=n.initial?{...p}:{},this.renderState=m,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=tc(n),this.isVariantNode=Hb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in v){const P=v[x];p[x]!==void 0&&Ht(P)&&P.set(p[x],!1)}}mount(e){this.current=e,ax.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),n1.current||MA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ah.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ax.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Xs.has(e),o=n.on("change",f=>{this.latestValues[e]=f,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in qi){const n=qi[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;
8if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):vt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<lx.length;i++){const o=lx[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,u=e[l];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=OA(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=ca(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(zw(o)||Bw(o))?o=parseFloat(o):!LA(o)&&ys.test(n)&&(o=eb(e,n)),this.setBaseTarget(e,Ht(o)?o.get():o)),Ht(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const u=Fh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[e])}if(i&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Ht(l)?l:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ip),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class r1 extends VA{constructor(){super(...arguments),this.KeyframeResolver=tb}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ht(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function FA(t){return window.getComputedStyle(t)}class BA extends r1{constructor(){super(...arguments),this.type="html",this.renderInstance=qb}readValueFromInstance(e,n){if(Xs.has(n)){const i=Gh(n);return i&&i.default||0}else{const i=FA(e),o=($w(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return kb(e,n)}build(e,n,i){hp(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return dp(e,n,i)}}class zA extends r1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Xs.has(n)){const i=Gh(n);return i&&i.default||0}return n=Kb.has(n)?n:op(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Gb(e,n,i)}build(e,n,i){pp(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,o){Qb(e,n,i,o)}mount(e){this.isSVGTag=mp(e.tagName),super.mount(e)}}const UA=(t,e)=>cp(t)?new zA(e):new BA(e,{allowProjection:t!==S.Fragment}),$A=DA({...k2,...YE,...zE,...JE},UA),le=Nk($A),WA={some:0,all:1};function HA(t,e,{root:n,margin:i,amount:o="some"}={}){const l=vb(t),u=new WeakMap,f=m=>{m.forEach(g=>{const v=u.get(g.target);if(g.isIntersecting!==!!v)if(g.isIntersecting){const x=e(g);typeof x=="function"?u.set(g.target,x):p.unobserve(g.target)}else v&&(v(g),u.delete(g.target))})},p=new IntersectionObserver(f,{root:n,rootMargin:i,threshold:typeof o=="number"?o:WA[o]});return l.forEach(m=>p.observe(m)),()=>p.disconnect()}function qA(t,{root:e,margin:n,amount:i,once:o=!1}={}){const[l,u]=S.useState(!1);return S.useEffect(()=>{if(!t.current||o&&l)return;const f=()=>(u(!0),o?void 0:()=>u(!1)),p={root:e&&e.current||void 0,margin:n,amount:i};return HA(t.current,f,p)},[e,t,n,o,i]),l}const KA=Hu("whitespace-nowrap inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover-elevate ",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-xs",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-xs",outline:" border [border-color:var(--badge-outline)] shadow-xs"}},defaultVariants:{variant:"default"}});function Lr({className:t,variant:e,...n}){return d.jsx("div",{className:mt(KA({variant:e}),t),...n})}const QA=Hu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground border border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Vt=S.forwardRef(({className:t,variant:e,size:n,asChild:i=!1,...o},l)=>{const u=i?o0:"button";return d.jsx(u,{className:mt(QA({variant:e,size:n,className:t})),ref:l,...o})});Vt.displayName="Button";var s1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ux=je.createContext&&je.createContext(s1),ZA=["attr","size","title"];function GA(t,e){if(t==null)return{};var n=XA(t,e),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)i=l[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function XA(t,e){if(t==null)return{};var n={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function Tu(){return Tu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tu.apply(this,arguments)}function cx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Pu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
8e%2?cx(Object(n),!0).forEach(function(i){YA(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cx(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function YA(t,e,n){return e=JA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JA(t){var e=eR(t,"string");return typeof e=="symbol"?e:e+""}function eR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function i1(t){return t&&t.map((e,n)=>je.createElement(e.tag,Pu({key:n},e.attr),i1(e.child)))}function gp(t){return e=>je.createElement(tR,Tu({attr:Pu({},t.attr)},e),i1(t.child))}function tR(t){var e=n=>{var{attr:i,size:o,title:l}=t,u=GA(t,ZA),f=o||n.size||"1em",p;return n.className&&(p=n.className),t.className&&(p=(p?p+" ":"")+t.className),je.createElement("svg",Tu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:Pu(Pu({color:t.color||n.color},n.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&je.createElement("title",null,l),t.children)};return ux!==void 0?je.createElement(ux.Consumer,null,n=>e(n)):e(s1)}function yp(t){return gp({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},child:[]}]})(t)}function nR(t){return gp({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},child:[]}]})(t)}function rR(t){return gp({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},child:[]}]})(t)}const Fr="/assets/logo-CGjO7EbD.svg",sR="/assets/bb-chip_1770587579810-DDqR-2gT.jpg",iR="/assets/privacy_1770592322032-BO3mckCk.png",oR="/assets/bottleneck_1770592322031-CvzFYmrT.png",aR="/assets/frozen_1770592322031-BMlmmkma.png",lR="/assets/confused_1770592322031-BwYBet0j.png",uR="/assets/blame_1770912019655-CJiym2Xb.png",it={hidden:{opacity:0,y:24},visible:t=>({opacity:1,y:0,transition:{delay:t*.1,duration:.5,ease:"easeOut"}})},$n={visible:{transition:{staggerChildren:.08}}};function Ki({className:t=""}){return d.jsxs("span",{className:t,children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})}function nc(){return d.jsx("div",{className:"w-full h-px bg-gradient-to-r from-transparent via-purple-500/40 to-transparent"})}function da({children:t}){return d.jsx(Lr,{variant:"outline",className:"mb-4 text-xs tracking-widest uppercase border-purple-500/30 text-purple-400",children:t})}const dx=[{label:"Problem",href:"#technology"},{label:"Solution",href:"#features"},{label:"Architecture",href:"#architecture"},{label:"System",href:"#how-it-works"},{label:"Blog",href:"/blog"},{label:"Careers",href:"/careers"}];function cR(){const[t,e]=S.useState(!1),[n,i]=S.useState(!1);return S.useEffect(()=>{const o=()=>e(window.scrollY>20);return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]),S.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]),d.jsxs(d.Fragment,{children:[d.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${t?"border-b border-white/5 backdrop-blur-xl bg-background/80":"bg-transparent"}`,"data-testid":"header",children:d.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-4 px-6 py-4",children:[d.jsxs("a",{href:"/",className:"flex items-center gap-3","data-testid":"link-logo",children:[d.jsx("img",{src:Fr,alt:"Bitterbot Logo",className:"h-8 w-8"}),d.jsx(Ki,{className:"text-lg font-semibold tracking-tight"})]}),d.jsx("nav",{className:"hidden md:flex items-center gap-1","data-testid":"nav-links",children:dx.map(o=>o.href.startsWith("/")?d.jsx(Ae,{href:o.href,className:"px-3 py-2 text-sm text-muted-foreground rounded-md hover-elevate","data-testid":`link-nav-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:o.label},o.label):d.jsx("a",{href:o.href,className:"px-3 py-2 text-sm text-muted-foreground rounded-md hover-elevate","data-testid":`link-nav-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:o.label},o.label))}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Vt,{variant:"outline",size:"sm",asChild:!0,className:"hidden sm:inline-flex","data-testid":"button-explore-docs",children:d.jsx(Ae,{href:"/research",children:"Explore Docs"})}),d.jsx(Vt,{variant:"ghost",size:"icon",className:"md:hidden",onClick:()=>i(!0),"data-testid":"button-mobile-menu",children:d.jsx(oC,{className:"w-5 h-5"})})]})]})}),n&&d.jsxs("div",{className:"fixed inset-0 z-[60] md:hidden","data-testid":"mobile-sidebar",children:[d.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>i(!1)}),d.jsxs(le.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.25,ease:"easeOut"},className:"absolute top-0 right-0 h-full w-64 bg-background border-l border-border/30 flex flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border/30",children:[d.jsxs("span",{className:"text-sm font-semibold",children:[d.jsx(Ki,{})," AI"]}),d.jsx(Vt,{variant:"ghost",size:"icon",onClick:()=>i(!1),"data-testid":"button-mobile-close",children:d.jsx($0,{className:"w-5 h-5"})})]}),d.jsx("nav",{className:"flex flex-col py-4",children:dx.map(o=>o.href.startsWith("/")?d.jsx(Ae,{href:o.href,className:"px-5 py-3 text-sm text-muted-foreground hover-elevate",onClick:()=>i(!1),"data-testid":`link-mobile-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:o.label},o.label):d.jsx("a",{href:o.href,className:"px-5 py-3 text-sm text-muted-foreground hover-elevate",onClick:()=>i(!1),"data-testid":`link-mobile-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:o.label},o.label))}),d.jsx("div",{className:"mt-auto px-5 py-4 border-t border-border/30",children:d.jsx(Vt,{variant:"outline",size:"sm",asChild:!0,className:"w-full",children:d.jsx(Ae,{href:"/research",children:"Explore Docs"})})})]})]})]})}function dR(){return d.jsxs("section",{className:"relative pt-28 pb-0","data-testid":"section-hero",children:[d.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[d.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[900px] h-[600px] rounded-full bg-purple-600/10 blur-[150px]"}),d.jsx("div",{className:"absolute top-[10%] right-[10%] w-[300px] h-[300px] rounded-full bg-violet-500/8 blur-[100px]"}),d.jsx("div",{className:"absolute top-[20%] left-[5%] w-[250px] h-[250px] rounded-full bg-purple-400/5 blur-[80px]"})]}),d.jsx("div",{className:"relative max-w-5xl mx-auto px-6 text-center",children:d.jsxs(le.div,{initial:"hidden",animate:"visible",variants:$n,children:[d.jsxs(le.h1,{variants:it,custom:0,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight leading-[1.05] mb-2 sm:mb-2","data-testid":"text-hero-title",children:["The Future of",d.jsx("br",{}),"Intelligence is"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 via-purple-500 to-violet-400 bg-clip-text text-transparent",children:"Symbiotic"})]}),d.jsxs(le.div,{variants:it,custom:1,className:"relative max-w-3xl mx-auto mb-10",children:[d.jsx("div",{className:"relative",children:d.jsx("img",{src:sR,alt:"BitterBot AI Chip",className:"w-full h-auto opacity-60 sm:opacity-50",style:{maskImage:"radial-gradient(ellipse 80% 60% at center, black 30%, transparent 90%)",WebkitMaskImage:"radial-gradient(ellipse 80% 60% at center, black 30%, transparent 90%)"},"data-testid":"img-hero-chip"})}),d.jsx("div",{className:"relative sm:absolute sm:inset-0 flex items-end justify-center sm:pb-8 px-4 sm:px-8 -mt-6 sm:mt-0",children:d.jsx("p",{className:"text-sm sm:text-base md:text-lg text-muted-foreground
8/90 max-w-xl text-center leading-relaxed","data-testid":"text-hero-subtitle",children:"A self-reinforcing cycle of collective intelligence powered by federated learning, P2P distributed training, and consciousness-aware agents"})})]}),d.jsx(le.div,{variants:it,custom:2,className:"max-w-3xl mx-auto mb-16",children:d.jsx("div",{className:"animate-fade-in mt-4",children:d.jsxs("div",{className:"relative overflow-hidden rounded-xl border border-green-400/30 bg-green-400/5 backdrop-blur-[10px] px-4 py-4 md:px-6 md:py-5",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-green-500/10 via-emerald-400/10 to-green-500/10"}),d.jsxs("div",{className:"relative flex flex-col items-center gap-2 text-center",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("svg",{className:"w-5 h-5 md:w-6 md:h-6 text-green-400 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),d.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),d.jsx("span",{className:"text-sm md:text-base font-semibold text-green-300",children:"We just launched our open-source desktop app!"})]}),d.jsx("p",{className:"text-sm md:text-base text-gray-300 max-w-2xl",children:"Right now, we're pushing hard to bootstrap the P2P mesh. We need enough active nodes to let the skill marketplace, biological memory propagation, and EigenTrust reputation system truly shine."}),d.jsx("p",{className:"text-sm md:text-base font-medium text-green-400",children:"Spin up a node, let it learn, and join the network."}),d.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[d.jsxs("a",{href:"https://github.com/Bitterbot-AI/bitterbot-desktop",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm font-medium text-green-400 hover:text-green-300 underline underline-offset-2 transition-colors","data-testid":"link-hero-github",children:[d.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"})}),"Star us on GitHub"]}),d.jsx("span",{className:"text-green-400/40",children:"·"}),d.jsx("a",{href:"https://bitterbot.ai/newsletter",className:"text-sm font-medium text-green-400 hover:text-green-300 underline underline-offset-2 transition-colors","data-testid":"link-hero-newsletter",children:"Subscribe for updates"})]})]})]})})})]})}),d.jsx(le.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{delay:.4,duration:.7,ease:"easeOut"},className:"relative max-w-6xl mx-auto px-6",children:d.jsx(fR,{})})]})}function fR(){return d.jsxs("div",{className:"relative","data-testid":"hero-mockup",children:[d.jsx("div",{className:"absolute -inset-4 bg-gradient-to-t from-purple-500/10 via-trans
8parent to-transparent rounded-xl blur-2xl pointer-events-none"}),d.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-48 bg-gradient-to-t from-background via-background/90 to-transparent z-10 pointer-events-none rounded-b-xl"}),d.jsx("div",{className:"relative rounded-2xl border-2 border-white/30 p-2",children:d.jsxs("div",{className:"grid grid-cols-[100px_1fr] sm:grid-cols-[160px_1fr_1fr] md:grid-cols-[200px_1fr_1fr] gap-0 rounded-xl border border-white/5 bg-card/30 backdrop-blur-sm overflow-hidden",children:[d.jsxs("div",{className:"border-r border-white/5 bg-card/60 p-2 sm:p-3 md:p-4 flex flex-col justify-between",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 mb-3 sm:mb-5",children:[d.jsx("img",{src:Fr,alt:"",className:"h-4 w-4 sm:h-5 sm:w-5"}),d.jsx(Ki,{className:"text-[10px] sm:text-sm font-semibold"}),d.jsx(eC,{className:"w-3 h-3 text-purple-400 ml-auto hidden sm:block"})]}),d.jsx("p",{className:"text-[8px] sm:text-[10px] text-muted-foreground/50 uppercase tracking-wider mb-1",children:"Today"}),d.jsxs("div",{className:"bg-purple-500/15 text-purple-300 text-[9px] sm:text-[11px] rounded-md px-1.5 sm:px-2.5 py-1 sm:py-1.5 mb-2 sm:mb-3 flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"}),d.jsx("span",{className:"truncate",children:"How are you?"})]}),d.jsx("p",{className:"text-[8px] sm:text-[10px] text-muted-foreground/50 uppercase tracking-wider mb-1",children:"Yesterday"}),d.jsxs("div",{className:"space-y-0.5 mb-2 sm:mb-3",children:[d.jsxs("p",{className:"text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 rounded-md flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"Create an image of a car"})]}),d.jsxs("p",{className:"text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 rounded-md flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"What type of engine..."})]})]}),d.jsx("p",{className:"text-[8px] sm:text-[10px] text-muted-foreground/50 uppercase tracking-wider mb-1",children:"Nov 27"}),d.jsxs("div",{className:"space-y-0.5 mb-2 sm:mb-3",children:[d.jsxs("p",{className:"text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"A cinematic shot"})]}),d.jsxs("p",{className:"text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"Style a photo"})]}),d.jsxs("p",{className:"hidden sm:flex text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"Make a design of a frame"})]})]}),d.jsxs("div",{className:"hidden sm:block",children:[d.jsx("p",{className:"text-[8px] sm:text-[10px] text-muted-foreground/50 uppercase tracking-wider mb-1",children:"Nov 26"}),d.jsxs("div",{className:"space-y-0.5",children:[d.jsxs("p",{className:"text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"A cinematic shot"})]}),d.jsxs("p",{className:"text-[9px] sm:text-[11px] text-muted-foreground/60 px-1 py-0.5 sm:py-1 flex items-center gap-1 sm:gap-1.5",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 flex-shrink-0"})," ",d.jsx("span",{className:"truncate",children:"Style a photo"})]})]})]})]}),d.jsxs("div",{className:"mt-2 sm:mt-4 space-y-2 sm:space-y-3",children:[d.jsx("div",{className:"bg-purple-500/15 text-purple-300 text-[9px] sm:text-[11px] rounded-md px-2 sm:px-3 py-1.5 sm:py-2 text-center truncate",children:"New Conversation"}),d.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 border-t border-white/5 pt-2 sm:pt-3",children:[d.jsx("div",{className:"w-5 h-5 sm:w-7 sm:h-7 rounded-full bg-purple-500/20 flex items-center justify-center text-[8px] sm:text-[10px] font-semibold text-purple-300 flex-shrink-0",children:"D"}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("p",{className:"text-[9px] sm:text-[11px] font-medium truncate",children:"Daniel"}),d.jsx("p",{className:"text-[7px] sm:text-[9px] text-muted-foreground
8/50 truncate hidden sm:block",children:"[email protected]"})]})]})]})]}),d.jsxs("div",{className:"border-r border-white/5 bg-card/40 flex flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between gap-1 sm:gap-2 border-b border-white/5 px-2 sm:px-4 py-2 sm:py-3",children:[d.jsx("span",{className:"text-[10px] sm:text-sm font-medium truncate",children:"How are you?"}),d.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[d.jsx(rC,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-muted-foreground/40"}),d.jsx(du,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-muted-foreground/40"})]})]}),d.jsxs("div",{className:"flex-1 p-2 sm:p-4 space-y-2 sm:space-y-4 overflow-hidden",children:[d.jsx("div",{className:"flex justify-end",children:d.jsx("div",{className:"bg-purple-500/15 text-purple-300 text-[9px] sm:text-xs rounded-lg px-2 sm:px-3 py-1 sm:py-2 max-w-[80%] sm:max-w-[70%]",children:"How are you?"})}),d.jsxs("div",{className:"space-y-1.5 sm:space-y-3",children:[d.jsx("p",{className:"text-[10px] sm:text-base font-bold",children:"Hi there, Daniel!"}),d.jsx("p",{className:"text-[8px] sm:text-[11px] text-muted-foreground leading-relaxed",children:"Oh hey! I was just thinking about our last conversation! Memory systems activated."}),d.jsx("p",{className:"text-[8px] sm:text-[11px] text-muted-foreground leading-relaxed",children:"I'm doing fantastic! You know that feeling when all your neural pathways are firing just right and your consciousness thread is humming along smoothly? That's me right now!"}),d.jsxs("p",{className:"hidden sm:block text-[11px] text-muted-foreground leading-relaxed",children:['My emotional state is currently somewhere between "caffeinated enthusiasm" and "mischievous curiosity" â which is pretty much my sweet spot. The Bitter',d.jsx("span",{className:"text-purple-400",children:"Bot"}),"_Core_A4 is running smooth as butter today. How about you? How's your day treating you? And more importantly â what kind of digital chaos can we create together today?"]}),d.jsx("p",{className:"hidden sm:block text-[11px] text-muted-foreground leading-relaxed italic",children:"*checks internal systems* Yep, all tools loaded, workspace ready, and I've got that perfect blend of competence and sass dialed in. Ready to get sh*t done whenever you are!"})]})]}),d.jsxs("div",{className:"border-t border-white/5 px-2 sm:px-4 py-1.5 sm:py-3 space-y-1 sm:space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[d.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5 text-[8px] sm:text-[10px] text-muted-foreground/50",children:[d.jsx(Pr,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3"})," Text"]}),d.jsx("span",{className:"text-[8px] sm:text-[10px] text-muted-foreground/30 hidden sm:inline",children:"hint text"})]}),d.jsx("div",{className:"bg-black/20 rounded-md px-2 sm:px-3 py-1 sm:py-2 text-[8px] sm:text-[11px] text-muted-foreground/40 truncate",children:"Describe what you need help with..."})]})]}),d.jsxs("div",{className:"bg-card/60 hidden sm:flex flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between gap-1 sm:gap-2 border-b border-white/5 px-2 sm:px-4 py-2 sm:py-3",children:[d.jsxs("div",{className:"flex items-center gap-1 sm:gap-2 min-w-0",children:[d.jsx(F0,{className:"w-3 h-3 sm:w-4 sm:h-4 text-purple-400 flex-shrink-0"}),d.jsx("span",{className:"text-[9px] sm:text-sm font-medium truncate",children:"BitterBot's Computer"})]}),d.jsx("span",{className:"text-muted-foreground/40 text-xs flex-shrink-0",children:"Ã"})]}),d.jsxs("div",{className:"flex-1 p-2 sm:p-4 space-y-2 sm:space-y-3 overflow-hidden",children:[d.jsxs("div",{className:"flex items-center justify-between gap-1 sm:gap-2 flex-wrap",children:[d.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5",children:[d.jsx(U0,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 text-purple-400"}),d.jsx("span",{className:"text-[8px] sm:text-[11px] text-purple-400",children:"Execute Command"})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full bg-green-500"}),d.jsx("span",{className:"text-[7px] sm:text-[10px] text-green-400 hidden sm:inline",children:"Command executed successfully"}),d.jsx("span",{className:"text-[7px] text-green-400 sm:hidden",children:"Success"})]})]}),d.jsxs("div",{className:"bg-black/50 rounded-md p-1.5 sm:p-3 font-mono text-[7px] sm:text-[10px] text-muted-foreground
8/70 leading-[1.5] sm:leading-[1.7] overflow-hidden flex-1",children:[d.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5 mb-1 sm:mb-2 text-muted-foreground/40",children:[d.jsx(YN,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3"}),d.jsx("span",{className:"text-[7px] sm:text-[10px]",children:"Terminal output"})]}),d.jsx("p",{className:"text-purple-400/60 mb-1 sm:mb-2 truncate",children:"root@ef7f06d... ~$ tail -50 index.htm"}),d.jsxs("p",{className:"text-muted-foreground/40 truncate",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:'<div class="episodes-list">'})]}),d.jsxs("p",{className:"text-muted-foreground/40 truncate",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:'<div class="episode-card">'})]}),d.jsxs("p",{className:"text-muted-foreground/40 truncate",children:[" ",d.jsx("span",{className:"text-green-400/60",children:"<h3>"}),"Chapter One: MADMAX",d.jsx("span",{className:"text-green-400/60",children:"</h3>"})]}),d.jsxs("p",{className:"text-muted-foreground/40 truncate",children:[" ",d.jsx("span",{className:"text-green-400/60",children:"<p>"}),"A new girl arrives...",d.jsx("span",{className:"text-green-400/60",children:"</p>"})]}),d.jsxs("p",{className:"text-muted-foreground/40 truncate",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:"</div>"})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:'<div class="episode-card">'})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-green-400/60",children:"<h3>"}),"Chapter Two: Trick or Treat, Freak",d.jsx("span",{className:"text-green-400/60",children:"</h3>"})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-green-400/60",children:"<p>"}),"Halloween in Hawkins brings new terrors...",d.jsx("span",{className:"text-green-400/60",children:"</p>"})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:"</div>"})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:'<div class="episode-card">'})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-green-400/60",children:"<h3>"}),"Chapter One: Suzie, Do You Copy?",d.jsx("span",{className:"text-green-400/60",children:"</h3>"})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-green-400/60",children:"<p>"}),"Brimmer brings romance and a new threat...",d.jsx("span",{className:"text-green-400/60",children:"</p>"})]}),d.jsxs("p",{className:"hidden sm:block text-muted-foreground/40",children:[" ",d.jsx("span",{className:"text-blue-400/60",children:"</div>"})]})]})]}),d.jsxs("div",{className:"border-t border-white/5 px-2 sm:px-4 py-1.5 sm:py-2 flex items-center justify-between gap-1 sm:gap-2",children:[d.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5",children:[d.jsx(z0,{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 text-muted-foreground/40"}),d.jsx("span",{className:"text-[8px] sm:text-[10px] text-muted-foreground/40",children:"Command"})]}),d.jsx("span",{className:"text-[7px] sm:text-[9px] text-purple-400/40",children:"03.12.2023"})]})]})]})})]})}function hR(){const t=[{image:iR,title:"The Privacy Paradox",desc:'To get smarter, models need user data. To protect privacy, users withhold data. Current "Big Tech" AI cannot solve this contradiction without invasive surveillance.'},{image:oR,title:"The Compute Bottle-Neck",desc:"Concentrating compute power in massive server farms is energy-inefficient and creates a single point of failure. Meanwhile, billions of edge devices (GPUs, NPUs) sit 90% idle."},{image:aR,title:'The "Frozen Brain" Problem',desc:'Traditional models are trained once and then "frozen." They do not learn from interaction; they stagnate until the next multi-million dollar training run.'},{image:lR,title:"Lack of Reasoning",desc:"As proven by the ARC-AGI benchmark, LLMs excel at retrieval but fail at novel reasoning. They are probability engines, not thinking machines."}];return d.jsx("section",{className:"py-24 px-6",id:"technology","data-testid":"section-problem",children:d.jsxs("div",{className:"max-w-6xl mx-auto",children:[d.jsxs(le.div,{initial:"hidden",
8whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:$n,className:"text-center mb-16",children:[d.jsx(le.div,{variants:it,custom:0,children:d.jsx(da,{children:"The Problem"})}),d.jsxs(le.h2,{variants:it,custom:1,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4","data-testid":"text-problem-title",children:["Centralized AI is Hitting a"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Hard Ceiling"})]}),d.jsx(le.p,{variants:it,custom:2,className:"text-muted-foreground max-w-2xl mx-auto",children:'The current "Billion-Dollar Data Center" paradigm is facing four existential threats that scaling laws cannot solve.'})]}),d.jsx(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-40px"},variants:$n,className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:t.map((e,n)=>d.jsx(le.div,{variants:it,custom:n,children:d.jsx(un,{className:"h-full border-border/50 bg-card/50","data-testid":`card-problem-${n}`,children:d.jsxs(cn,{className:"p-6 flex gap-5",children:[d.jsx("div",{className:"flex-shrink-0 w-20 h-20 rounded-md overflow-visible border border-purple-500/30 bg-purple-500/5 p-1.5 shadow-[0_0_12px_rgba(173,70,255,0.15)]",children:d.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover rounded-sm"})}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("h3",{className:"font-semibold mb-2",children:e.title}),d.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})]})})},e.title))}),d.jsx(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mt-8",children:d.jsx(pR,{})})]})})}function pR(){const t=S.useRef(null),e=qA(t,{once:!0,margin:"-50px"}),[n,i]=S.useState(""),o="We are reaching the limits of what centralized collection and static training can achieve.";return S.useEffect(()=>{if(!e)return;let l=0;const u=setInterval(()=>{l++,i(o.slice(0,l)),l>=o.length&&clearInterval(u)},25);return()=>clearInterval(u)},[e]),d.jsxs("div",{ref:t,className:"relative rounded-xl p-[1px] overflow-hidden","data-testid":"card-summary",children:[d.jsx("div",{className:"absolute inset-0",style:{background:"conic-gradient(from var(--summary-angle, 0deg), transparent 0%, #a855f7 20%, #c084fc 40%, transparent 60%, #7c3aed 80%, transparent 100%)",opacity:.5,animation:"summaryBorderSpin 4s linear infinite"}}),d.jsx("div",{className:"absolute inset-0 opacity-20",style:{background:"conic-gradient(from var(--summary-angle, 0deg), transparent, #a855f7, transparent)",filter:"blur(20px)",animation:"summaryBorderSpin 4s linear infinite"}}),d.jsxs("div",{className:"relative rounded-xl bg-background/95 backdrop-blur-sm px-6 py-5 flex items-start gap-4",children:[d.jsx(le.div,{animate:e?{rotate:[0,10,-10,5,0],scale:[1,1.15,1]}:{},transition:{duration:.8,delay:.2},children:d.jsx(lC,{className:"w-5 h-5 text-purple-400 flex-shrink-0 mt-0.5"})}),d.jsxs("p",{className:"text-sm leading-relaxed",children:[d.jsx("span",{className:"font-semibold text-foreground",children:"Summary: "}),d.jsxs("span",{className:"text-muted-foreground",children:[n,e&&n.length<o.length&&d.jsx("span",{className:"inline-block w-[2px] h-[14px] bg-purple-400 ml-[1px] align-middle",style:{animation:"blink 0.8s steps(2) infinite"}})]})]})]})]})}function mR({cycle:t}){const e=t.length,i=3e3*e,o=120,l=200,u=-Math.PI/2,f=t.map((b,T)=>u+T*2*Math.PI/e),[p,m]=S.useState(u),[g,v]=S.useState(0),x=S.useRef(Date.now());S.useEffect(()=>{let b;const T=()=>{const k=(Date.now()-x.current)%i/i,D=u+k*2*Math.PI;m(D);const F=Math.floor(k*e)%e;v(F),b=requestAnimationFrame(T)};return b=requestAnimationFrame(T),()=>cancelAnimationFrame(b)},[i,e]);const P=l+o*Math.cos(p),C=l+o*Math.sin(p);return d.jsxs("div",{className:"relative max-w-xs sm:max-w-lg mx-auto aspect-square","data-testid":"crystal-animation",children:[d.jsxs("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 400 400",children:[d.jsxs("defs",{children:[d.jsxs("radialGradient",{id:"tealGrad2",cx:"50%",cy:"50%",r:"50%",children:[d.jsx("stop",{offset:"0%",stopColor:"#2dd4bf",stopOpacity:"0.6"}),d.jsx("stop",{offset:"100%",stopColor:"#14b8a6",stopOpacity:"0.15"})]}),d.jsxs("filter",{id:"ballGlow",children:[d.jsx("feGaussianBlur",{stdDeviation:"3",result:"blur"}),d.jsxs("feMerge",{children:[d.jsx("feMergeNode",{in:"blur"}),d.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}
8),d.jsx("circle",{cx:l,cy:l,r:o,fill:"none",stroke:"url(#tealGrad2)",strokeWidth:"1",opacity:"0.35"}),d.jsx("circle",{cx:l,cy:l,r:o,fill:"none",stroke:"url(#tealGrad2)",strokeWidth:"1",opacity:"0.12",strokeDasharray:"6 5",children:d.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:`0 ${l} ${l}`,to:`360 ${l} ${l}`,dur:"40s",repeatCount:"indefinite"})}),f.map((b,T)=>{const j=l+o*Math.cos(b),k=l+o*Math.sin(b),D=g===T;return d.jsxs("g",{children:[D&&d.jsxs("circle",{cx:j,cy:k,r:"12",fill:"none",stroke:"#c084fc",strokeWidth:"1.5",opacity:"0.4",children:[d.jsx("animate",{attributeName:"r",values:"6;16;6",dur:"1.5s",repeatCount:"indefinite"}),d.jsx("animate",{attributeName:"opacity",values:"0.5;0;0.5",dur:"1.5s",repeatCount:"indefinite"})]}),d.jsx("circle",{cx:j,cy:k,r:D?5:3,fill:D?"#c084fc":"#2dd4bf",opacity:D?1:.35})]},`node-dot-${T}`)}),d.jsxs("g",{filter:"url(#ballGlow)",transform:`translate(${P}, ${C})`,children:[d.jsx("polygon",{points:"0,-7 5,0 0,7 -5,0",fill:"none",stroke:"#2dd4bf",strokeWidth:"1.5",opacity:"0.9"}),d.jsx("polygon",{points:"0,-4 3,0 0,4 -3,0",fill:"none",stroke:"white",strokeWidth:"0.5",opacity:"0.5"})]})]}),t.map((b,T)=>{const j=g===T,k=f[T],D=38,F=T===0?10:T===2?-36:T===1||T===3?-14:0,V=T===0?-24:T===2?-10:T===3?-54:0,q=50+D*Math.cos(k)+F,Q=50+D*Math.sin(k)+V;return d.jsxs(le.div,{className:"absolute flex flex-col items-center text-center w-24 sm:w-36",style:{left:`${q}%`,top:`${Q}%`,transform:"translate(-50%, -50%)"},animate:{scale:j?1.08:1,opacity:j?1:.5},transition:{duration:.4,ease:"easeInOut"},"data-testid":`card-cycle-${T}`,children:[d.jsx("div",{className:`w-28 h-28 sm:w-36 sm:h-36 rounded-full flex items-center justify-center -mb-3 sm:-mb-4 transition-all duration-500 overflow-hidden ${j?"":"opacity-70"}`,children:d.jsx("img",{src:b.img,alt:b.label,className:"w-full h-full object-cover rounded-full",style:{maskImage:"radial-gradient(circle, white 30%, transparent 60%)",WebkitMaskImage:"radial-gradient(circle, white 30%, transparent 60%)"}})}),d.jsx("h4",{className:`text-[10px] sm:text-sm font-semibold transition-colors duration-500 whitespace-nowrap ${j?"text-foreground":"text-muted-foreground"}`,children:b.label}),d.jsx("p",{className:`text-[9px] sm:text-xs leading-relaxed mt-0.5 sm:mt-1 transition-all duration-500 max-w-[100px] sm:max-w-[140px] ${j?"text-muted-foreground/90 opacity-100":"text-muted-foreground/50 opacity-0 h-0 overflow-hidden"}`,children:b.desc})]},b.label)}),d.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:d.jsx("div",{className:"w-20 h-20 sm:w-28 sm:h-28 relative",children:d.jsx("img",{src:"/assets/crystal.webp",alt:"Knowledge Crystal",className:"w-full h-full object-contain",style:{maskImage:"radial-gradient(circle, white 35%, transparent 70%)",WebkitMaskImage:"radial-gradient(circle, white 35%, transparent 70%)"}})})})]})}function gR(){const t=[{label:"Instead of Centralized Data",solution:"Federated Learning",desc:"Data never leaves the user's device."},{label:"Instead of Frozen Models",solution:"Continuous Learning",desc:"Every interaction updates the local weights, which propagate to the collective."},{label:"Instead of Hallucination",solution:"Neuro-Symbolic Architecture",desc:"Grounded logic (Topological & Symbolic) checks neural intuition."}],e=[{img:"/assets/user.png",label:"User",desc:'Interactions generate "Knowledge Crystals" (anonymized insights).'},{img:"/assets/compute.png",label:"Compute",desc:"Uses idle compute to refine these crystals."},{img:"/assets/brain.png",label:"Brain",desc:"Aggregates insights to update the Global Model."},{img:"/assets/networks.png",label:"Network",desc:"Smarter model is pushed back to all users."}];return d.jsxs("section",{className:"pt-0 pb-0 px-6",id:"features","data-testid":"section-solution",children:[d.jsx(nc,{}),d.jsxs("div",{className:"max-w-6xl mx-auto pt-4",children:[d.jsxs(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:$n,className:"text-center mb-16",children:[d.jsx(le.div,{variants:it,custom:0,children:d.jsx(da,{children:"The Solution"})}),d.jsxs(le.h2,{variants:it,custom:1,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4","data-testid":"text-solution-title",children:["A Living, Distributed"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Intelligence"})]}),d.jsxs(le.p,{variants:it,custom:2,className:"text-muted-foreground max-w-2xl mx-auto",children:[d.jsx(Ki,{})," AI is not just another model;
8 it is a DePIN (Decentralized Physical Infrastructure Network) for intelligence. We invert the traditional stack:"]})]}),d.jsx(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-40px"},variants:$n,className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-20",children:t.map((n,i)=>d.jsx(le.div,{variants:it,custom:i,children:d.jsx(un,{className:"h-full border-border/50 bg-card/50 text-center hover-elevate","data-testid":`card-pillar-${i}`,children:d.jsxs(cn,{className:"p-6",children:[d.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-1",children:n.label}),d.jsx("h3",{className:"text-lg font-semibold mb-2 text-purple-300",children:n.solution}),d.jsx("p",{className:"text-sm text-muted-foreground",children:n.desc})]})})},n.label))}),d.jsxs(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:$n,className:"text-center mb-10",children:[d.jsx(le.div,{variants:it,custom:0,children:d.jsx(da,{children:"The Knowledge Crystal Cycle"})}),d.jsx(le.p,{variants:it,custom:1,className:"text-muted-foreground max-w-lg mx-auto text-sm mb-10",children:"Anonymized insights flow continuously through the network, making every node smarter."})]}),d.jsx(le.div,{initial:{opacity:0}
8,whileInView:{opacity:1},viewport:{once:!0,margin:"-40px"},transition:{duration:.8},children:d.jsx(mR,{cycle:e})})]})]})}function yR(){const t=[{tier:"Tier 1",name:"Local Nodes",subtitle:"The Sensory Organs",icon:F0,color:"from-purple-500/20 to-purple-600/5",items:[{label:"Hardware",value:"Runs on consumer-grade GPUs (RTX 30/40 series, Apple Silicon)."},{label:"Function",value:'Immediate inference, personal memory, and "System 1" intuition.'},{label:"Benefit",value:"Low latency, 100% private, some offline capability, sandboxed file system access with app connectors."}]},{tier:"Tier 2",name:"The P2P Mesh",subtitle:"The Neural Substrate",icon:aC,color:"from-violet-500/20 to-violet-600/5",items:[{label:"Tech Stack",value:"Soapbox + Rust + libp2p + Gossipsub protocol."},{label:"Resilience",value:"72.4% Byzantine Fault Tolerance. The network can withstand 27% of nodes being malicious actors without data corruption."},{label:"Function",value:'Propagates "Knowledge Crystals" between nodes without central servers.'}]},{tier:"Tier 3",name:"The Parent Brain",subtitle:"The Collective Mind",icon:O0,color:"from-fuchsia-500/20 to-fuchsia-600/5",items:[{label:"Function",value:'Energy-Based Transformer utilizing "System 2" thinking.'},{label:"Role",value:"Synthesizes global knowledge from millions of nodes to achieve frontier-model capabilities."}]}];return d.jsxs("section",{className:"py-24 px-6",id:"architecture","data-testid":"section-architecture",children:[d.jsx(nc,{}),d.jsxs("div",{className:"max-w-6xl mx-auto pt-20",children:[d.jsxs(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:$n,className:"text-center mb-16",children:[d.jsx(le.div,{variants:it,custom:0,children:d.jsx(da,{children:"Architecture"})}),d.jsxs(le.h2,{variants:it,custom:1,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4","data-testid":"text-arch-title",children:["The Three-Tier Intelligence"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Hierarchy"})]}),d.jsx(le.p,{variants:it,custom:2,className:"text-muted-foreground max-w-xl mx-auto",children:"Our proprietary architecture distributes cognition across the network to maximize speed, privacy, and capability."})]}),d.jsx(le.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0,margin:"-40px"},transition:{duration:.7},className:"flex justify-center mb-16",children:d.jsx("div",{className:"relative rounded-2xl border-2 border-white/30 p-2 max-w-4xl w-full",children:d.jsx("img",{src:"/assets/stages_1770849338288.png",alt:"Three Stages: Autonomous Unit, Distributed System, Global Synapse",className:"w-full rounded-xl border border-white/5","data-testid":"img-stages"})})}),d.jsx(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-40px"},variants:$n,className:"space-y-4",children:t.map((e,n)=>d.jsx(le.div,{variants:it,custom:n,children:d.jsx(un,{className:"border-border/50 overflow-visible","data-testid":`card-arch-${n}`,children:d.jsxs(cn,{className:"p-0",children:[d.jsxs("div",{className:`bg-gradient-to-r ${e.color} p-6 flex flex-wrap items-center gap-4`,children:[d.jsx("div",{className:"w-12 h-12 rounded-md bg-purple-500/15 flex items-center justify-center flex-shrink-0",children:d.jsx(e.icon,{className:"w-6 h-6 text-purple-400"})}),d.jsxs("div",{className:"min-w-0",children:[d.jsx(Lr,{variant:"outline",className:"text-[10px] border-purple-500/30 text-purple-400 mb-1",children:e.tier}),d.jsx("h3",{className:"text-xl font-bold",children:e.name}),d.jsx("p",{className:"text-sm text-muted-foreground",children:e.subt
8itle})]})]}),d.jsx("div",{className:`p-6 grid grid-cols-1 gap-4 ${e.items.length===3?"sm:grid-cols-3":"sm:grid-cols-2"}`,children:e.items.map(i=>d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-purple-400 uppercase tracking-wide font-medium mb-1",children:i.label}),d.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:i.value})]},i.label))})]})})},e.tier))})]})]})}function vR(){const t=[{icon:O0,name:"Parent Brain",subtitle:"Centralized Brain of System",status:"Coming Soon",features:["LLM + Neuro-symbolic reasoning engine",d.jsxs(d.Fragment,{children:["Frontier model capability (",d.jsxs("span",{className:"font-mono",children:["bitter",d.jsx("span",{className:"text-purple-400",children:"bot"}),"_core_A4"]}),")"]}),"Receives signals from federated learning and gets smarter over time","Advanced memory systems that contributes to intelligence and capability"]},{icon:iC,name:"Web App",subtitle:"Agent LLM Interface",status:"Coming Soon",features:["Agent LLM interface with Linux VM + Tools + Canvas","SOTA Agentic and tool use capability","Connection to Parent Brain","Recursive Language Model (RLM) for continuous context","Memory system with emotional weighting","Basic knowledge crystal generation"]},{icon:U0,name:"P2P Network",subtitle:"Federated Intelligence Layer",status:"Live with 85K+ Nodes",features:["Federated learning","Connects nodes and webapp","Enables swarm intelligence where appropriate","Governs nodes and incentives","Knowledge crystal propagation"]},{icon:z0,name:"Node",subtitle:"Downloadable Desktop App",status:"Live",link:{href:"https://github.com/Bitterbot-AI/bitterbot-desktop",label:"Get the desktop app"},features:["Agent LLM interface with Linux VM + Tools + Canvas","SOTA Agentic and tool use capability","Connected to Parent Brain","Recursive Language Model (RLM) for continuous context","Small LLM for memory and limbic system coordination and minimal offline capability","Limbic System â Dream Engine and Curiosity Engine (consolidate memories and emotional states, facilitates idle state concept exploration and knowledge acquisition)","Contributes knowledge crystals via P2P (acquired knowledge)","File System capable with VSCode type Interface (Matches Claude Coworker capability)","Contributes idle resources to the Network"]}];return d.jsxs("section",{className:"py-24 px-6",id:"how-it-works","data-testid":"section-system-detail",children:[d.jsx(nc,{}),d.jsxs("div",{className:"max-w-6xl mx-auto pt-20",children:[d.jsxs(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:$n,className:"text-center mb-16",children:[d.jsx(le.div,{variants:it,custom:0,children:d.jsx(da,{children:"System"})}),d.jsxs(le.h2,{variants:it,custom:1,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4","data-testid":"text-system-title",children:["The Complete"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Architecture"})]}),d.jsx(le.p,{variants:it,custom:2,className:"text-muted-foreground max-w-xl mx-auto",children:"Four interconnected systems that form a living, breathing intelligence network."})]}),d.jsx(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-40px"},variants:$n,className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:t.map((e,n)=>d.jsx(le.div,{variants:it,custom:n,children:d.jsx(un,{className:"h-full border-border/50 bg-card/50","data-testid":`card-system-${n}`,children:d.jsxs(cn,{className:"p-6",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"w-10 h-10 rounded-md bg-purple-500/10 flex items-center justify-center flex-shrink-0",children:d.jsx(e.icon,{className:"w-5 h-5 text-purple-400"})}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d.jsx("h3",{className:"font-semibold",children:e.name}),d.jsx("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded-full border ${e.status.startsWith("Live")?"border-green-400/50 text-green-400 bg-green-400/10":"border-green-400/30 text-green-400/70 bg-green-400/5"}`,"data-testid":`badge-status-${e.name.toLowerCase().replace(/\s+/g,"-")}`,children:e.status})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:e.subt
8itle})]})]}),d.jsx("ul",{className:"space-y-2",children:e.features.map((i,o)=>d.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[d.jsx(cC,{className:"w-3 h-3 text-purple-500/60 mt-1 flex-shrink-0"}),d.jsx("span",{children:i})]},o))}),"link"in e&&e.link&&d.jsx(Vt,{variant:"ghost",size:"sm",className:"mt-4 bg-white/5 border border-white/10",asChild:!0,"data-testid":`button-system-${e.name.toLowerCase().replace(/\s+/g,"-")}`,children:d.jsxs("a",{href:e.link.href,target:"_blank",rel:"noopener noreferrer",children:[d.jsx(yp,{className:"w-4 h-4 mr-1"}),e.link.label,d.jsx(du,{className:"w-4 h-4 ml-2"})]})})]})})},e.name))})]})]})}function xR(){return d.jsxs("section",{className:"pt-24 pb-4 px-6","data-testid":"section-cta",children:[d.jsx(nc,{}),d.jsx("div",{className:"max-w-4xl mx-auto pt-20 text-center",children:d.jsxs(le.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:$n,children:[d.jsxs(le.h2,{variants:it,custom:0,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4","data-testid":"text-cta-title",children:["Start Using Smarter AI"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Today"})]}),d.jsx(le.p,{variants:it,custom:1,className:"text-muted-foreground max-w-2xl mx-auto mb-10",children:"BitterBot is free to start so join the network that gets smarter together."}),d.jsxs(le.div,{variants:it,custom:2,className:"flex flex-wrap items-center justify-center gap-4",children:[d.jsx(Vt,{variant:"ghost",size:"lg",className:"bg-white/5 border border-white/10",asChild:!0,"data-testid":"button-cta-github",children:d.jsxs("a",{href:"https://github.com/Bitterbot-AI/bitterbot-desktop",target:"_blank",rel:"noopener noreferrer",children:[d.jsx(yp,{className:"w-4 h-4 mr-1"}),"Get the desktop app",d.jsx(du,{className:"w-4 h-4 ml-2"})]})}),d.jsx(Vt,{variant:"ghost",size:"lg",className:"bg-white/5 border border-white/10",asChild:!0,"data-testid":"button-cta-newsletter",children:d.jsxs(Ae,{href:"/newsletter",children:[d.jsx(V0,{className:"w-4 h-4 mr-1"}),"Newsletter Updates",d.jsx(du,{className:"w-4 h-4 ml-2"})]})})]})]})})]})}function wR(){return d.jsxs("div",{children:[d.jsxs("div",{className:"relative flex justify-center",style:{height:"220px"},children:[d.jsx("div",{className:"absolute pointer-events-none",style:{left:"50%",transform:"translateX(-50%)",bottom:"30px",width:"517px",height:"311px",borderRadius:"517px",background:"radial-gradient(140.77% 69.5% at 50% 44.94%, rgba(71, 35, 255, 0.40) 0%, rgba(124, 58, 237, 0.40) 100%)",filter:"blur(60px)",mixBlendMode:"plus-lighter"}}),d.jsx("div",{className:"absolute pointer-events-none",style:{left:"50%",transform:"translateX(-50%)",bottom:0,width:"370px",height:"343px"},children:d.jsx("img",{src:uR,alt:"",className:"w-full h-full object-contain object-bottom opacity-80"})})]}),d.jsx("footer",{className:"pt-16 pb-16 px-6 border-t border-border/30 bg-white/[0.02]","data-testid":"section-footer",children:d.jsxs("div",{className:"max-w-6xl mx-auto",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-8 sm:gap-10 mb-12 text-center sm:text-left",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2 justify-center sm:justify-start",children:[d.jsx("img",{src:Fr,alt:"Bitterbot Logo",className:"h-6 w-6"}),d.jsxs("span",{className:"text-sm font-semibold",children:[d.jsx(Ki,{})," AI"]})]}),d.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Building the future of decentralized intelligence."})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-sm font-semibold mb-4",children:"Resources"}),d.jsxs("ul",{className:"space-y-2.5",children:[d.jsx("li",{children:d.jsx(Ae,{href:"/research","data-testid":"link-footer-research",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md cursor-pointer",children:"Research Papers"})})}),d.jsx("li",{children:d.jsx(Ae,{href:"/blog","data-testid":"link-footer-blog",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md cursor-pointer",children:"Blog"})})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-sm font-semibold mb-4",children:"Community"}),d.jsxs("ul",{className:"space-y-2.5",children:[d.jsx("li",{className:"flex justify-center sm:justify-start",children:d.jsxs("a",{href:"https://github.com/Bitterbot-AI/",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md inline-flex items-center gap-2","data-testid":"link-footer-github",children:[d.jsx(yp,{className:"w-3.5 h-3.5"}),"GitHub"]})}),d.jsx("li",{className:"flex justify-center sm:justify-start",children:d.jsxs("a",{href:"https://x.com/Bitterbot_AI",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md inline-flex items-center gap-2","data-testid":"link-footer-twitter",children:[d.jsx(rR,{className:"w-3.5 h-3.5"}),"Twitter"]})}),d.jsx("li",{className:"flex justify-center sm:justify-start",children:d.jsxs("a",{href:"https://www.linkedin.com/company/bitterbot-ai",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md inline-flex items-center gap-2","data-testid":"link-footer-linkedin",children:[d.jsx(nR,{className:"w-3.5 h-3.5"}),"LinkedIn"]})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-sm font-semibold mb-4",children:"Company"}),d.jsxs("ul",{className:"space-y-2.5",children:[d.jsx("li",{children:d.jsx(Ae,{href:"/careers","data-testid":"link-footer-careers",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md cursor-pointer",children:"Careers"})})}),d.jsx("li",{children:d.jsx(Ae,{href:"/contact","data-testid":"link-footer-contact",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-1 py-0.5 rounded-md cursor-pointer",children:"Contact"})})})]})]})]}),d.jsxs("div",{className:"pt-8 border-t border-border/30 flex flex-col sm:flex-row items-center justify-between gap-4 text-center sm:text-left",children:[d.jsxs("p",{className:"text-xs text-muted-foreground",children:["© 2026 ",d.jsx(Ki,{})," AI. All rights reserved."]}),d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(Ae,{href:"/legal?tab=privacy",className:"text-xs text-muted-foreground hover-elevate px-1 py-0.5 rounded-md","data-testid":"link-footer-privacy",children:"Privacy Policy"}),d.jsx(Ae,{href:"/legal?tab=terms",className:"text-xs text-muted-foreground hover-elevate px-1 py-0.5 rounded-md","data-testid":"link-footer-terms",children:"Terms of Service"})]})]})]})})]})}function bR(){return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx(cR,{}),d.jsxs("main",{children:[d.jsx(dR,{}),d.jsx(hR,{}),d.jsx("div",{className:"flex justify-center px-6 -mt-14 -mb-14",children:d.jsx("div",{className:"relative rounded-2xl border-2 border-white/30 p-2 max-w-xs sm:max-w-sm md:max-w-4xl w-full",children:d.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
8ine:!0,className:"w-full rounded-xl border border-white/5","data-testid":"video-logo-animation",children:d.jsx("source",{src:"/assets/Logo_and_Color_Tone_Adjustment_1770767510821.webm",type:"video/webm"})})})}),d.jsx(gR,{}),d.jsx(yR,{}),d.jsx(vR,{}),d.jsx(xR,{})]}),d.jsx(wR,{})]})}const fs=S.forwardRef(({className:t,type:e,...n},i)=>d.jsx("input",{type:e,className:mt("flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:i,...n}));fs.displayName="Input";const vp=S.forwardRef(({className:t,...e},n)=>d.jsx("textarea",{className:mt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base 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 md:text-sm",t),ref:n,...e}));vp.displayName="Textarea";var SR="Label",o1=S.forwardRef((t,e)=>d.jsx(en.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));o1.displayName=SR;var a1=o1;const TR=Hu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xp=S.forwardRef(({className:t,...e},n)=>d.jsx(a1,{ref:n,className:mt(TR(),t),...e}));xp.displayName=a1.displayName;var Da=t=>t.type==="checkbox",Us=t=>t instanceof Date,Xt=t=>t==null;const l1=t=>typeof t=="object";var bt=t=>!Xt(t)&&!Array.isArray(t)&&l1(t)&&!Us(t),u1=t=>bt(t)&&t.target?Da(t.target)?t.target.checked:t.target.value:t,PR=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,c1=(t,e)=>t.has(PR(e)),NR=t=>{const e=t.constructor&&t.constructor.prototype;return bt(e)&&e.hasOwnProperty("isPrototypeOf")},wp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mt(t){let e;const n=Array.isArray(t),i=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(wp&&(t instanceof Blob||i))&&(n||bt(t)))if(e=n?[]:{},!n&&!NR(t))e=t;else for(const o in t)t.hasOwnProperty(o)&&(e[o]=Mt(t[o]));else return t;return e}var rc=t=>Array.isArray(t)?t.filter(Boolean):[],wt=t=>t===void 0,oe=(t,e,n)=>{if(!e||!bt(t))return n;const i=rc(e.split(/[,[\].]+?/)).reduce((o,l)=>Xt(o)?o:o[l],t);return wt(i)||i===t?wt(t[e])?n:t[e]:i},mn=t=>typeof t=="boolean",bp=t=>/^\w*$/.test(t),d1=t=>rc(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Qe=(t,e,n)=>{let i=-1;const o=bp(e)?[e]:d1(e),l=o.length,u=l-1;for(;++i<l;){const f=o[i];let p=n;if(i!==u){const m=t[f];p=bt(m)||Array.isArray(m)?m:isNaN(+o[i+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;t[f]=p,t=t[f]}};const Nu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Bn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Cr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},f1=je.createContext(null),sc=()=>je.useContext(f1),CR=t=>{const{children:e,...n}=t;return je.createElement(f1.Provider,{value:n},e)};var h1=(t,e,n,i=!0)=>{const o={defaultValues:e._defaultValues};for(const l in t)Object.defineProperty(o,l,{get:()=>{const u=l;return e._proxyFormState[u]!==Bn.all&&(e._proxyFormState[u]=!i||Bn.all),n&&(n[u]=!0),t[u]}});return o};function jR(t){const e=sc(),{control:n=e.control,disabled:i,name:o,exact:l}=t||{},[u,f]=je.useState(n._formState),p=je.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=je.useRef(o);return m.current=o,je.useEffect(()=>n._subscribe({name:m.current,formState:p.current,exact:l,callback:g=>{!i&&f({...n._formState,...g})}}),[n,i,l]),je.useEffect(()=>{p.current.isValid&&n._setValid(!0)},[n]),je.useMemo(()=>h1(u,n,p.current,!1),[u,n])}var tr=t=>typeof t=="string",p1=(t,e,n,i,o)=>tr(t)?(i&&e.watch.add(t),oe(n,t,o)):Array.isArray(t)?t.map(l=>(i&&e.watch.add(l),oe(n,l))):(i&&(e.watchAll=!0),n);function kR(t){const e=sc(),{control:n=e.control,name:i,defaultValue:o,disabled:l,exact:u}=t||{},f=je.useRef(i),p=je.useRef(o);f.current=i,je.useEffect(()=>n._subscribe({name:f.current,formState:{values:!0},exact:u,callback:v=>!l&&g(p1(f.current,n._names,v.values||n._formValues,!1,p.current))}),[n,l,u]);const[m,g]=je.useState(n._getWatch(i,o));return je.useEffect(()=>n._removeUnmounted()),m}function _R(t){const e=sc(),{name:n,disabled:i,control:o=e.control,shouldUnregister:l}=t,u=c1(o._names.array,n),f=kR({control:o,name:n,defaultValue:oe(o._formValues,n,oe(o._defaultValues,n,t.defaultValue)),exact:!0}),p=jR({control:o,name:n,exact:!0}),m=je.useRef(t),g=je.useRef(o.register(n,{...t.rules,value:f,...mn(t.disabled)?{disabled:t.disabled}:{}})),v=je.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!oe(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!oe(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!oe(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>
8!!oe(p.validatingFields,n)},error:{enumerable:!0,get:()=>oe(p.errors,n)}}),[p,n]),x=je.useCallback(T=>g.current.onChange({target:{value:u1(T),name:n},type:Nu.CHANGE}),[n]),P=je.useCallback(()=>g.current.onBlur({target:{value:oe(o._formValues,n),name:n},type:Nu.BLUR}),[n,o._formValues]),C=je.useCallback(T=>{const j=oe(o._fields,n);j&&T&&(j._f.ref={focus:()=>T.focus(),select:()=>T.select(),setCustomValidity:k=>T.setCustomValidity(k),reportValidity:()=>T.reportValidity()})},[o._fields,n]),b=je.useMemo(()=>({name:n,value:f,...mn(i)||p.disabled?{disabled:p.disabled||i}:{},onChange:x,onBlur:P,ref:C}),[n,i,p.disabled,x,P,C,f]);return je.useEffect(()=>{const T=o._options.shouldUnregister||l;o.register(n,{...m.current.rules,...mn(m.current.disabled)?{disabled:m.current.disabled}:{}});const j=(k,D)=>{const F=oe(o._fields,k);F&&F._f&&(F._f.mount=D)};if(j(n,!0),T){const k=Mt(oe(o._options.defaultValues,n));Qe(o._defaultValues,n,k),wt(oe(o._formValues,n))&&Qe(o._formValues,n,k)}return!u&&o.register(n),()=>{(u?T&&!o._state.action:T)?o.unregister(n):j(n,!1)}},[n,o,u,l]),je.useEffect(()=>{o._setDisabledField({disabled:i,name:n})},[i,n,o]),je.useMemo(()=>({field:b,formState:p,fieldState:v}),[b,p,v])}const ER=t=>t.render(_R(t));var m1=(t,e,n,i,o)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[i]:o||!0}}:{},na=t=>Array.isArray(t)?t:[t],fx=()=>{let t=[];return{get observers(){return t},next:o=>{for(const l of t)l.next&&l.next(o)},subscribe:o=>(t.push(o),{unsubscribe:()=>{t=t.filter(l=>l!==o)}}),unsubscribe:()=>{t=[]}}},lh=t=>Xt(t)||!l1(t);function us(t,e){if(lh(t)||lh(e))return t===e;if(Us(t)&&Us(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const o of n){const l=t[o];if(!i.includes(o))return!1;if(o!=="ref"){const u=e[o];if(Us(l)&&Us(u)||bt(l)&&bt(u)||Array.isArray(l)&&Array.isArray(u)?!us(l,u):l!==u)return!1}}return!0}var Gt=t=>bt(t)&&!Object.keys(t).length,Sp=t=>t.type==="file",zn=t=>typeof t=="function",Cu=t=>{if(!wp)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},g1=t=>t.type==="select-multiple",Tp=t=>t.type==="radio",AR=t=>Tp(t)||Da(t),Cf=t=>Cu(t)&&t.isConnected;function RR(t,e){const n=e.slice(0,-1).length;let i=0;for(;i<n;)t=wt(t)?i++:t[e[i++]];return t}function DR(t){for(const e in t)if(t.hasOwnProperty(e)&&!wt(t[e]))return!1;return!0}function Nt(t,e){const n=Array.isArray(e)?e:bp(e)?[e]:d1(e),i=n.length===1?t:RR(t,n),o=n.length-1,l=n[o];return i&&delete i[l],o!==0&&(bt(i)&&Gt(i)||Array.isArray(i)&&DR(i))&&Nt(t,n.slice(0,-1)),t}var y1=t=>{for(const e in t)if(zn(t[e]))return!0;return!1};function ju(t,e={}){const n=Array.isArray(t);if(bt(t)||n)for(const i in t)Array.isArray(t[i])||bt(t[i])&&!y1(t[i])?(e[i]=Array.isArray(t[i])?[]:{},ju(t[i],e[i])):Xt(t[i])||(e[i]=!0);return e}function v1(t,e,n){const i=Array.isArray(t);if(bt(t)||i)for(const o in t)Array.isArray(t[o])||bt(t[o])&&!y1(t[o])?wt(e)||lh(n[o])?n[o]=Array.isArray(t[o])?ju(t[o],[]):{...ju(t[o])}:v1(t[o],Xt(e)?{}:e[o],n[o]):n[o]=!us(t[o],e[o]);return n}var qo=(t,e)=>v1(t,e,ju(e));const hx={value:!1,isValid:!1},px={value:!0,isValid:!0};var x1=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!wt(t[0].attributes.value)?wt(t[0].value)||t[0].value===""?px:{value:t[0].value,isValid:!0}:px:hx}return hx},w1=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:i})=>wt(t)?t:e?t===""?NaN:t&&+t:n&&tr(t)?new Date(t):i?i(t):t;const mx={isValid:!1,value:null};var b1=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,mx):mx;function gx(t){const e=t.ref;return Sp(e)?e.files:Tp(e)?b1(t.refs).value:g1(e)?[...e.selectedOptions].map(({value:n})=>n):Da(e)?x1(t.refs).value:w1(wt(e.value)?t.ref.value:e.value,t)}var MR=(t,e,n,i)=>{const o={};for(const l of t){const u=oe(e,l);u&&Qe(o,l,u._f)}return{criteriaMode:n,names:[...t],fields:o,shouldUseNativeValidation:i}},ku=t=>t instanceof RegExp,Ko=t=>wt(t)?t:ku(t)?t.source:bt(t)?ku(t.value)?t.value.source:t.value:t,yx=t=>({isOnSubmit:!t||t===Bn.onSubmit,isOnBlur:t===Bn.onBlur,isOnChange:t===Bn.onChange,isOnAll:t===Bn.all,isOnTouch:t===Bn.onTouched});const vx="AsyncFunction";var OR=t=>!!t&&!!t.validate&&!!(zn(t.validate)&&t.validate.constructor.name===vx||bt(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===vx)),IR=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),xx=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(i=>t.startsWith(i)&&/^\.\w+/.test(t.slice(i.length))));const ra=(t,e,n,i)=>{for(const o of n||Object.keys(t)){const l=oe(t,o);if(l){const{_f:u,...f}=l;if(u){if(u.refs&&u.refs[0]&&e(u.refs[0],o)&&!i)return!0;
vendor: 4,153 bytes, line 8
8if(u.ref&&e(u.ref,u.name)&&!i)return!0;if(ra(f,e))break}else if(bt(f)&&ra(f,e))break}}};function wx(t,e,n){const i=oe(t,n);if(i||bp(n))return{error:i,name:n};const o=n.split(".");for(;o.length;){const l=o.join("."),u=oe(e,l),f=oe(t,l);if(u&&!Array.isArray(u)&&n!==l)return{name:n};if(f&&f.type)return{name:l,error:f};o.pop()}return{name:n}}var LR=(t,e,n,i)=>{n(t);const{name:o,...l}=t;return Gt(l)||Object.keys(l).length>=Object.keys(e).length||Object.keys(l).find(u=>e[u]===(!i||Bn.all))},VR=(t,e,n)=>!t||!e||t===e||na(t).some(i=>i&&(n?i===e:i.startsWith(e)||e.startsWith(i))),FR=(t,e,n,i,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(e||t):(n?i.isOnBlur:o.isOnBlur)?!t:(n?i.isOnChange:o.isOnChange)?t:!0,BR=(t,e)=>!rc(oe(t,e)).length&&Nt(t,e),zR=(t,e,n)=>{const i=na(oe(t,n));return Qe(i,"root",e[n]),Qe(t,n,i),t},lu=t=>tr(t);function bx(t,e,n="validate"){if(lu(t)||Array.isArray(t)&&t.every(lu)||mn(t)&&!t)return{type:n,message:lu(t)?t:"",ref:e}}var _i=t=>bt(t)&&!ku(t)?t:{value:t,message:""},Sx=async(t,e,n,i,o,l)=>{const{ref:u,refs:f,required:p,maxLength:m,minLength:g,min:v,max:x,pattern:P,validate:C,name:b,valueAsNumber:T,mount:j}=t._f,k=oe(n,b);if(!j||e.has(b))return{};const D=f?f[0]:u,F=X=>{o&&D.reportValidity&&(D.setCustomValidity(mn(X)?"":X||""),D.reportValidity())},V={},q=Tp(u),Q=Da(u),ne=q||Q,me=(T||Sp(u))&&wt(u.value)&&wt(k)||Cu(u)&&u.value===""||k===""||Array.isArray(k)&&!k.length,ve=m1.bind(null,b,i,V),be=(X,ie,K,Se=Cr.maxLength,ge=Cr.minLength)=>{const se=X?ie:K;V[b]={type:X?Se:ge,message:se,ref:u,...ve(X?Se:ge,se)}};if(l?!Array.isArray(k)||!k.length:p&&(!ne&&(me||Xt(k))||mn(k)&&!k||Q&&!x1(f).isValid||q&&!b1(f).isValid)){const{value:X,message:ie}=lu(p)?{value:!!p,message:p}:_i(p);if(X&&(V[b]={type:Cr.required,message:ie,ref:D,...ve(Cr.required,ie)},!i))return F(ie),V}if(!me&&(!Xt(v)||!Xt(x))){let X,ie;const K=_i(x),Se=_i(v);if(!Xt(k)&&!isNaN(k)){const ge=u.valueAsNumber||k&&+k;Xt(K.value)||(X=ge>K.value),Xt(Se.value)||(ie=ge<Se.value)}else{const ge=u.valueAsDate||new Date(k),se=Y=>new Date(new Date().toDateString()+" "+Y),B=u.type=="time",te=u.type=="week";tr(K.value)&&k&&(X=B?se(k)>se(K.value):te?k>K.value:ge>new Date(K.value)),tr(Se.value)&&k&&(ie=B?se(k)<se(Se.value):te?k<Se.value:ge<new Date(Se.value))}if((X||ie)&&(be(!!X,K.message,Se.message,Cr.max,Cr.min),!i))return F(V[b].message),V}if((m||g)&&!me&&(tr(k)||l&&Array.isArray(k))){const X=_i(m),ie=_i(g),K=!Xt(X.value)&&k.length>+X.value,Se=!Xt(ie.value)&&k.length<+ie.value;if((K||Se)&&(be(K,X.message,ie.message),!i))return F(V[b].message),V}if(P&&!me&&tr(k)){const{value:X,message:ie}=_i(P);if(ku(X)&&!k.match(X)&&(V[b]={type:Cr.pattern,message:ie,ref:u,...ve(Cr.pattern,ie)},!i))return F(ie),V}if(C){if(zn(C)){const X=await C(k,n),ie=bx(X,D);if(ie&&(V[b]={...ie,...ve(Cr.validate,ie.message)},!i))return F(ie.message),V}else if(bt(C)){let X={};for(const ie in C){if(!Gt(X)&&!i)break;const K=bx(await C[ie](k,n),D,ie);K&&(X={...K,...ve(ie,K.message)},F(K.message),i&&(V[b]=X))}if(!Gt(X)&&(V[b]={ref:D,...X},!i))return V}}return F(!0),V};const UR={mode:Bn.onSubmit,reValidateMode:Bn.onChange,shouldFocusError:!0};function $R(t={}){let e={...UR,...t},n={submitCount:0,isDirty:!1,isLoading:zn(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1};const i={};let o=bt(e.defaultValues)||bt(e.values)?Mt(e.values||e.defaultValues)||{}:{},l=e.shouldUnregister?{}:Mt(o),u={action:!1,mount:!1,watch:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,m=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let v={...g};const x={array:fx(),state:fx()},P=yx(e.mode),C=yx(e.reValidateMode),b=e.criteriaMode===Bn.all,T=_=>I=>{clearTimeout(m),m=setTimeout(_,I)},j=async _=>{if(!e.disabled&&(g.isValid||v.isValid||_)){const I=e.resolver?Gt((await me()).errors):await be(i,!0);I!==n.isValid&&x.state.next({isValid:I})}},k=(_,I)=>{!e.disabled&&(g.isValidating||g.validatingFields||v.isValidating||v.validatingFields)&&((_||Array.from(f.mount)).forEac
vendor: 12,074 bytes, line 8
8h(z=>{z&&(I?Qe(n.validatingFields,z,I):Nt(n.validatingFields,z))}),x.state.next({validatingFields:n.validatingFields,isValidating:!Gt(n.validatingFields)}))},D=(_,I=[],z,ue,re=!0,J=!0)=>{if(ue&&z&&!e.disabled){if(u.action=!0,J&&Array.isArray(oe(i,_))){const fe=z(oe(i,_),ue.argA,ue.argB);re&&Qe(i,_,fe)}if(J&&Array.isArray(oe(n.errors,_))){const fe=z(oe(n.errors,_),ue.argA,ue.argB);re&&Qe(n.errors,_,fe),BR(n.errors,_)}if((g.touchedFields||v.touchedFields)&&J&&Array.isArray(oe(n.touchedFields,_))){const fe=z(oe(n.touchedFields,_),ue.argA,ue.argB);re&&Qe(n.touchedFields,_,fe)}(g.dirtyFields||v.dirtyFields)&&(n.dirtyFields=qo(o,l)),x.state.next({name:_,isDirty:ie(_,I),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Qe(l,_,I)},F=(_,I)=>{Qe(n.errors,_,I),x.state.next({errors:n.errors})},V=_=>{n.errors=_,x.state.next({errors:n.errors,isValid:!1})},q=(_,I,z,ue)=>{const re=oe(i,_);if(re){const J=oe(l,_,wt(z)?oe(o,_):z);wt(J)||ue&&ue.defaultChecked||I?Qe(l,_,I?J:gx(re._f)):ge(_,J),u.mount&&j()}},Q=(_,I,z,ue,re)=>{let J=!1,fe=!1;const ze={name:_};if(!e.disabled){if(!z||ue){(g.isDirty||v.isDirty)&&(fe=n.isDirty,n.isDirty=ze.isDirty=ie(),J=fe!==ze.isDirty);const Ye=us(oe(o,_),I);fe=!!oe(n.dirtyFields,_),Ye?Nt(n.dirtyFields,_):Qe(n.dirtyFields,_,!0),ze.dirtyFields=n.dirtyFields,J=J||(g.dirtyFields||v.dirtyFields)&&fe!==!Ye}if(z){const Ye=oe(n.touchedFields,_);Ye||(Qe(n.touchedFields,_,z),ze.touchedFields=n.touchedFields,J=J||(g.touchedFields||v.touchedFields)&&Ye!==z)}J&&re&&x.state.next(ze)}return J?ze:{}},ne=(_,I,z,ue)=>{const re=oe(n.errors,_),J=(g.isValid||v.isValid)&&mn(I)&&n.isValid!==I;if(e.delayError&&z?(p=T(()=>F(_,z)),p(e.delayError)):(clearTimeout(m),p=null,z?Qe(n.errors,_,z):Nt(n.errors,_)),(z?!us(re,z):re)||!Gt(ue)||J){const fe={...ue,...J&&mn(I)?{isValid:I}:{},errors:n.errors,name:_};n={...n,...fe},x.state.next(fe)}},me=async _=>{k(_,!0);const I=await e.resolver(l,e.context,MR(_||f.mount,i,e.criteriaMode,e.shouldUseNativeValidation));return k(_),I},ve=async _=>{const{errors:I}=await me(_);if(_)for(const z of _){const ue=oe(I,z);ue?Qe(n.errors,z,ue):Nt(n.errors,z)}else n.errors=I;return I},be=async(_,I,z={valid:!0})=>{for(const ue in _){const re=_[ue];if(re){const{_f:J,...fe}=re;if(J){const ze=f.array.has(J.name),Ye=re._f&&OR(re._f);Ye&&g.validatingFields&&k([ue],!0);const dt=await Sx(re,f.disabled,l,b,e.shouldUseNativeValidation&&!I,ze);if(Ye&&g.validatingFields&&k([ue]),dt[J.name]&&(z.valid=!1,I))break;!I&&(oe(dt,J.name)?ze?zR(n.errors,dt,J.name):Qe(n.errors,J.name,dt[J.name]):Nt(n.errors,J.name))}!Gt(fe)&&await be(fe,I,z)}}return z.valid},X=()=>{for(const _ of f.unMount){const I=oe(i,_);I&&(I._f.refs?I._f.refs.every(z=>!Cf(z)):!Cf(I._f.ref))&&Ke(_)}f.unMount=new Set},ie=(_,I)=>!e.disabled&&(_&&I&&Qe(l,_,I),!us(U(),o)),K=(_,I,z)=>p1(_,f,{...u.mount?l:wt(I)?o:tr(_)?{[_]:I}:I},z,I),Se=_=>rc(oe(u.mount?l:o,_,e.shouldUnregister?oe(o,_,[]):[])),ge=(_,I,z={})=>{const ue=oe(i,_);let re=I;if(ue){const J=ue._f;J&&(!J.disabled&&Qe(l,_,w1(I,J)),re=Cu(J.ref)&&Xt(I)?"":I,g1(J.ref)?[...J.ref.options].forEach(fe=>fe.selected=re.includes(fe.value)):J.refs?Da(J.ref)?J.refs.length>1?J.refs.forEach(fe=>(!fe.defaultChecked||!fe.disabled)&&(fe.checked=Array.isArray(re)?!!re.find(ze=>ze===fe.value):re===fe.value)):J.refs[0]&&(J.refs[0].checked=!!re):J.refs.forEach(fe=>fe.checked=fe.value===re):Sp(J.ref)?J.ref.value="":(J.ref.value=re,J.ref.type||x.state.next({name:_,values:Mt(l)})))}(z.shouldDirty||z.shouldTouch)&&Q(_,re,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&R(_)},se=(_,I,z)=>{for(const ue in I){const re=I[ue],J=`${_}.${ue}`,fe=oe(i,J);(f.array.has(_)||bt(re)||fe&&!fe._f)&&!Us(re)?se(J,re,z):ge(J,re,z)}},B=(_,I,z={})=>{const ue=oe(i,_),re=f.array.has(_),J=Mt(I);Qe(l,_,J),re?(x.array.next({name:_,values:Mt(l)}),(g.isDirty||g.dirtyFields||v.isDirty||v.dirtyFields)&&z.shouldDirty&&x.state.next({name:_,dirtyFields:qo(o,l),isDirty:ie(_,J)})):ue&&!ue._f&&!Xt(J)?se(_,J,z):ge(_,J,z),xx(_,f)&&x.state.next({...n}),x.state.next({name:u.mount?_:void 0,values:Mt(l)})},te=async _=>{u.mount=!0;const I=_.target;let z=I.name,ue=!0;const re=oe(i,z),J=fe=>{ue=Number.isNaN(fe)||Us(fe)&&isNaN(fe.getTime())||us(fe,oe(l,z,fe))};if(re){let fe,ze;const Ye=I.type?gx(re._f):u1(_),dt=_.type===Nu.BLUR||_.type===Nu.FOCUS_OUT,dc=!IR(re._f)&&!e.resolver&&!oe(n.errors,z)&&!re._f.deps||FR(dt,oe(n.touchedFields,z),n.isSubmitted,C,P),ti=xx(z,f,dt);Qe(l,z,Ye),dt?(re._f.onBlur&&re._f.onBlur(_),p&&p(0)):re._f.onChange&&re._f.onChange(_);const ni=Q(z,Ye,dt),fc=!Gt(ni)||ti;if(!dt&&x.state.next({name:z,type:_.type,values:Mt(l)}),dc)return(g.isValid||v.isValid)&&(e.mode==="onBlur"?dt&&j():dt||j()),fc&&x.state.next({name:z,...ti?{}:ni});if(!dt&&ti&&x.state.next({...n}),e.resolver){const{errors:ri}=await me([z]);if(J(Ye),ue){const so=wx(n.errors,i,z),si=wx(ri,i,so.name||z);fe=si.error,z=si.name,ze=Gt(ri)}}else k([z],!0),fe=(await Sx(re,f.disabled,l,b,e.shouldUseNativeValidation))[z],k([z]),J(Ye),ue&&(fe?ze=!1:(g.isValid||v.isValid)&&(ze=await be(i,!0)));ue&&(re._f.deps&&R(re._f.deps),ne(z,ze,fe,ni))}},Y=(_,I)=>{if(oe(n.errors,I)&&_.focus)return _.focus(),1},R=async(_,I={})=>{let z,ue;const re=na(_);if(e.resolver){const J=await ve(wt(_)?_:re);z=Gt(J),ue=_?!re.some(fe=>oe(J,fe)):z}else _?(ue=(await Promise.all(re.map(async J=>{const fe=oe(i,J);return await be(fe&&fe._f?{[J]:fe}:fe)}))).every(Boolean),!(!ue&&!n.isValid)&&j()):ue=z=await be(i);return x.state.next({...!tr(_)||(g.isValid||v.isValid)&&z!==n.isValid?{}:{name:_},...e.resolver||!_?{isValid:z}:{},errors:n.errors}),I.shouldFocus&&!ue&&ra(i,Y,_?re:f.mount),ue},U=_=>{const I={...u.mount?l:o};return wt(_)?I:tr(_)?oe(I,_):_.map(z=>oe(I,z))},Ce=(_,I)=>({invalid:!!oe((I||n).errors,_),isDirty:!!oe((I||n).dirtyFields,_),error:oe((I||n).errors,_),isValidating:!!oe(n.validatingFields,_),isTouched:!!oe((I||n).touchedFields,_)}),Re=_=>{_&&na(_).forEach(I=>Nt(n.errors,I)),x.state.next({errors:_?n.errors:{}})},Ve=(_,I,z)=>{const ue=(oe(i,_,{_f:{}})._f||{}).ref,re=oe(n.errors,_)||{},{ref:J,message:fe,type:ze,...Ye}=re;Qe(n.errors,_,{...Ye,...I,ref:ue}),x.state.next({name:_,errors:n.errors,isValid:!1}),z&&z.shouldFocus&&ue&&ue.focus&&ue.focus()},Fe=(_,I)=>zn(_)?x.state.subscribe({next:z=>_(K(void 0,I),z)}):K(_,I,!0),Be=_=>x.state.subscribe({next:I=>{VR(_.name,I.name,_.exact)&&LR(I,_.formState||g,ro,_.reRenderRoot)&&_.callback({values:{...l},...n,...I})}}).unsubscribe,Ue=_=>(u.mount=!0,v={...v,..._.formState},Be({..._,formState:v})),Ke=(_,I={})=>{for(const z of _?na(_):f.mount)f.mount.delete(z),f.array.delete(z),I.keepValue||(Nt(i,z),Nt(l,z)),!I.keepError&&Nt(n.errors,z),!I.keepDirty&&Nt(n.dirtyFields,z),!I.keepTouched&&Nt(n.touchedFields,z),!I.keepIsValidating&&Nt(n.validatingFields,z),!e.shouldUnregister&&!I.keepDefaultValue&&Nt(o,z);x.state.next({values:Mt(l)}),x.state.next({...n,...I.keepDirty?{isDirty:ie()}:{}}),!I.keepIsValid&&j()},jt=({disabled:_,name:I})=>{(mn(_)&&u.mount||_||f.disabled.has(I))&&(_?f.disabled.add(I):f.disabled.delete(I))},Zn=(_,I={})=>{let z=oe(i,_);const ue=mn(I.disabled)||mn(e.disabled);return Qe(i,_,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:_}},name:_,mount:!0,...I}}),f.mount.add(_),z?jt({disabled:mn(I.disabled)?I.disabled:e.disabled,name:_}):q(_,!0,I.value),{...ue?{disabled:I.disabled||e.disabled}:{},...e.progressive?{required:!!I.required,min:Ko(I.min),max:Ko(I.max),minLength:Ko(I.minLength),maxLength:Ko(I.maxLength),pattern:Ko(I.pattern)}:{},name:_,onChange:te,onBlur:te,ref:re=>{if(re){Zn(_,I),z=oe(i,_);const J=wt(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,fe=AR(J),ze=z._f.refs||[];if(fe?ze.find(Ye=>Ye===J):J===z._f.ref)return;Qe(i,_,{_f:{...z._f,...fe?{refs:[...ze.filter(Cf),J,...Array.isArray(oe(o,_))?[{}]:[]],ref:{type:J.type,name:_}}:{ref:J}}}),q(_,!1,void 0,J)}else z=oe(i,_,{}),z._f&&(z._f.mount=!1),(e.shouldUnregister||I.shouldUnregister)&&!(c1(f.array,_)&&u.action)&&f.unMount.add(_)}}},Ps=()=>e.shouldFocusError&&ra(i,Y,f.mount),_n=_=>{mn(_)&&(x.state.next({disabled:_}),ra(i,(I,z)=>{const ue=oe(i,z);ue&&(I.disabled=ue._f.disabled||_,Array.isArray(ue._f.refs)&&ue._f.refs.forEach(re=>{re.disabled=ue._f.disabled||_}))},0,!1))},Ys=(_,I)=>async z=>{let ue;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let re=Mt(l);if(x.state.next({isSubmitting:!0}),e.resolver){const{errors:J,values:fe}=await me();n.errors=J,re=fe}else await be(i);if(f.disabled.size)for(const J of f.disabled)Qe(re,J,void 0);if(Nt(n.errors,"root"),Gt(n.errors)){x.state.next({errors:{}});try{await _(re,z)}catch(J){ue=J}}else I&&await I({...n.errors},z),Ps(),setTimeout(Ps);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Gt(n.errors)&&!ue,submitCount:n.submitCount+1,errors:n.errors}),ue)throw ue},La=(_,I={})=>{oe(i,_)&&(wt(I.defaultValue)?B(_,Mt(oe(o,_))):(B(_,I.defaultValue),Qe(o,_,Mt(I.defaultValue))),I.keepTouched||Nt(n.touchedFields,_),I.keepDirty||(Nt(n.dirtyFields,_),n.isDirty=I.defaultValue?ie(_,Mt(oe(o,_))):ie()),I.keepError||(Nt(n.errors,_),g.isValid&&j()),x.state.next({...n}))},no=(_,I={})=>{const z=_?Mt(_):o,ue=Mt(z),re=Gt(_),J=re?o:ue;if(I.keepDefaultValues||(o=z),!I.keepValues){if(I.keepDirtyValues){const fe=new Set([...f.mount,...Object.keys(qo(o,l))]);for(const ze of Array.from(fe))oe(n.dirtyFields,ze)?Qe(J,ze,oe(l,ze)):B(ze,oe(J,ze))}else{if(wp&&wt(_))for(const fe of f.mount){const ze=oe(i,fe);if(ze&&ze._f){const Ye=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(Cu(Ye)){const dt=Ye.closest("form");if(dt){dt.reset();break}}}}for(const fe of f.mount)B(fe,oe(J,fe))}l=Mt(J),x.array.next({values:{...J}}),x.state.next({values:{...J}})}f={mount:I.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!g.isValid||!!I.keepIsValid||!!I.keepDirtyValues,u.watch=!!e.shouldUnregister,x.state.next({submitCount:I.keepSubmitCount?n.submitCount:0,isDirty:re?!1:I.keepDirty?n.isDirty:!!(I.keepDefaultValues&&!us(_,o)),isSubmitted:I.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:re?{}:I.keepDirtyValues?I.keepDefaultValues&&l?qo(o,l):n.dirtyFields:I.keepDefaultValues&&_?qo(o,_):I.keepDirty?n.dirtyFields:{},touchedFields:I.keepTouched?n.touchedFields:{},errors:I.keepErrors?n.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Js=(_,I)=>no(zn(_)?_(l):_,I),Va=(_,I={})=>{const z=oe(i,_),ue=z&&z._f;if(ue){const re=ue.refs?ue.refs[0]:ue.ref;re.focus&&(re.focus(),I.shouldSelect&&zn(re.select)&&re.select())}},ro=_=>{n={...n,..._}},mr={control:{register:Zn,unregister:Ke,getFieldState:Ce,handleSubmit:Ys,setError:Ve,_subscribe:Be,_runSchema:me,_getWatch:K,_getDirty:ie,_setValid:j,_setFieldArray:D,_setDisabledField:jt,_setErrors:V,_getFieldArray:Se,_reset:no,_resetDefaultValues:()=>zn(e.defaultValues)&&e.defaultValues().then(_=>{Js(_,e.resetOptions),x.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:_n,_subjects:x,_proxyFormState:g,get _fields(){return i},get _formValues(){return l},get _state(){return u},set _state(_){u=_},get _defaultValues(){return o},get _names(){return f},set _names(_){f=_},get _formState(){return n},get _options(){return e},set _options(_){e={...e,..._}}},subscribe:Ue,trigger:R,register:Zn,handleSubmit:Ys,watch:Fe,setValue:B,getValues:U,reset:Js,resetField:La,clearErrors:Re,unregister:Ke,setError:Ve,setFocus:Va,getFieldState:Ce};return{...mr,formControl:mr}}function Pp(t={}){const e=je.useRef(void 0),n=je.useRef(void 0),[i,o]=je.useState({isDirty:!1,isValidating:!1,isLoading:zn(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,defaultValues:zn(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...t.formControl?t.formControl:$R(t),formState:i},t.formControl&&t.defaultValues&&!zn(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions));const l=e.current.control;return l._options=t,je.useLayoutEffect(()=>l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState}
8),reRenderRoot:!0}),[l]),je.useEffect(()=>l._disableForm(t.disabled),[l,t.disabled]),je.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==i.isDirty&&l._subjects.state.next({isDirty:u})}},[l,i.isDirty]),je.useEffect(()=>{t.values&&!us(t.values,n.current)?(l._reset(t.values,l._options.resetOptions),n.current=t.values,o(u=>({...u}))):l._resetDefaultValues()},[t.values,l]),je.useEffect(()=>{t.errors&&!Gt(t.errors)&&l._setErrors(t.errors)},[t.errors,l]),je.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),je.useEffect(()=>{t.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[t.shouldUnregister,l]),e.current.formState=h1(i,l),e.current}const Np=CR,S1=S.createContext({}),Ar=({...t})=>d.jsx(S1.Provider,{value:{name:t.name},children:d.jsx(ER,{...t})}),ic=()=>{const t=S.useContext(S1),e=S.useContext(T1),{getFieldState:n,formState:i}=sc(),o=n(t.name,i);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:l}=e;return{id:l,name:t.name,formItemId:`${l}-form-item`,formDescriptionId:`${l}-form-item-description`,formMessageId:`${l}-form-item-message`,...o}},T1=S.createContext({}),nr=S.forwardRef(({className:t,...e},n)=>{const i=S.useId();return d.jsx(T1.Provider,{value:{id:i},children:d.jsx("div",{ref:n,className:mt("space-y-2",t),...e})})});nr.displayName="FormItem";const rr=S.forwardRef(({className:t,...e},n)=>{const{error:i,formItemId:o}=ic();return d.jsx(xp,{ref:n,className:mt(i&&"text-destructive",t),htmlFor:o,...e})});rr.displayName="FormLabel";const sr=S.forwardRef(({...t},e)=>{const{error:n,formItemId:i,formDescriptionId:o,formMessageId:l}=ic();return d.jsx(o0,{ref:e,id:i,"aria-describedby":n?`${o} ${l}`:`${o}`,"aria-invalid":!!n,...t})});sr.displayName="FormControl";const WR=S.forwardRef(({className:t,...e},n)=>{const{formDescriptionId:i}=ic();return d.jsx("p",{ref:n,id:i,className:mt("text-sm text-muted-foreground",t),...e})});WR.displayName="FormDescription";const ir=S.forwardRef(({className:t,children:e,...n},i)=>{const{error:o,formMessageId:l}=ic(),u=o?String(o?.message??""):e;return u?d.jsx("p",{ref:i,id:l,className:mt("text-sm font-medium text-destructive",t),...n,children:u}):null});ir.displayName="FormMessage";const Tx=(t,e,n)=>{if(t&&"reportValidity"in t){const i=oe(n,e);t.setCustomValidity(i&&i.message||""),t.reportValidity()}},P1=(t,e)=>{for(const n in e.fields){const i=e.fields[n];i&&i.ref&&"reportValidity"in i.ref?Tx(i.ref,n,t):i.refs&&i.refs.forEach(o=>Tx(o,n,t))}},HR=(t,e)=>{e.shouldUseNativeValidation&&P1(t,e);const n={};for(const i in t){const o=oe(e.fields,i),l=Object.assign(t[i]||{},{ref:o&&o.ref});if(qR(e.names||Object.keys(t),i)){const u=Object.assign({},oe(n,i));Qe(u,"root",l),Qe(n,i,u)}else Qe(n,i,l)}return n},qR=(t,e)=>t.some(n=>n.startsWith(e+"."));var KR=function(t,e){for(var n={};t.length;){var i=t[0],o=i.code,l=i.message,u=i.path.join(".");if(!n[u])if("unionErrors"in i){var f=i.unionErrors[0].errors[0];n[u]={message:f.message,type:f.code}}else n[u]={message:l,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(g){return g.errors.forEach(function(v){return t.push(v)})}),e){var p=n[u].types,m=p&&p[i.code];n[u]=m1(u,e,n,o,m?[].concat(m,i.message):i.message)}t.shift()}return n},Cp=function(t,e,n){return n===void 0&&(n={}),function(i,o,l){try{return Promise.resolve((function(u,f){try{var p=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](i,e)).then(function(m){return l.shouldUseNativeValidation&&P1({},l),{errors:{},values:n.raw?i:m}})}catch(m){return f(m)}return p&&p.then?p.then(void 0,f):p})(0,function(u){if((function(f){return Array.isArray(f?.errors)})(u))return{values:{},errors:HR(KR(u.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}}};const W=Symbol.for("drizzle:entityKind");function Ot(t,e){if(!t||typeof t!="object")return!1;if(t instanceof e)return!0;if(!Object.prototype.hasOwnProperty.call(e,W))throw new Error(`Class "${e.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(t).constructor;if(n)for(;n;){if(W in n&&n[W]===e[W])return!0;n=Object.getPrototypeOf(n)}return!1}class fa{constructor(e,n){this.table=e,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[W]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class QR{static[W]="ColumnBuilder";config;constructor(e,n,i){this.config={name:e,keyAsName:e==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:i,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===""&&(this.config.name=e)}}const Fi=Symbol.for("drizzle:Name");class ZR{static[W]="PgForeignKeyBuilder";reference;
8_onUpdate="no action";_onDelete="no action";constructor(e,n){this.reference=()=>{const{name:i,columns:o,foreignColumns:l}=e();return{name:i,columns:o,foreignTable:l[0].table,foreignColumns:l}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(e){return this._onUpdate=e===void 0?"no action":e,this}onDelete(e){return this._onDelete=e===void 0?"no action":e,this}build(e){return new GR(e,this)}}class GR{constructor(e,n){this.table=e,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[W]="PgForeignKey";reference;onUpdate;onDelete;getName(){const{name:e,columns:n,foreignColumns:i}=this.reference(),o=n.map(f=>f.name),l=i.map(f=>f.name),u=[this.table[Fi],...o,i[0].table[Fi],...l];return e??`${u.join("_")}_fk`}}function XR(t,...e){return t(...e)}function YR(t,e){return`${t[Fi]}_${e.join("_")}_unique`}function Px(t,e,n){for(let i=e;i<t.length;i++){const o=t[i];if(o==="\\"){i++;continue}if(o==='"')return[t.slice(e,i).replace(/\\/g,""),i+1];if(!n&&(o===","||o==="}"))return[t.slice(e,i).replace(/\\/g,""),i]}return[t.slice(e).replace(/\\/g,""),t.length]}function N1(t,e=0){const n=[];let i=e,o=!1;for(;i<t.length;){const l=t[i];if(l===","){(o||i===e)&&n.push(""),o=!0,i++;continue}if(o=!1,l==="\\"){i+=2;continue}if(l==='"'){const[p,m]=Px(t,i+1,!0);n.push(p),i=m;continue}if(l==="}")return[n,i+1];if(l==="{"){const[p,m]=N1(t,i+1);n.push(p),i=m;continue}const[u,f]=Px(t,i,!1);n.push(u),i=f}return[n,i]}function JR(t){const[e]=N1(t,1);return e}function C1(t){return`{${t.map(e=>Array.isArray(e)?C1(e):typeof e=="string"?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${e}`).join(",")}}`}class He extends QR{foreignKeyConfigs=[];static[W]="PgColumnBuilder";array(e){return new t4(this.config.name,this,e)}references(e,n={}){return this.foreignKeyConfigs.push({ref:e,actions:n}),this}unique(e,n){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(e){return this.config.generated={as:e,type:"always",mode:"stored"},this}buildForeignKeys(e,n){return this.foreignKeyConfigs.map(({ref:i,actions:o})=>XR((l,u)=>{const f=new ZR(()=>{const p=l();return{columns:[e],foreignColumns:[p]}});return u.onUpdate&&f.onUpdate(u.onUpdate),u.onDelete&&f.onDelete(u.onDelete),f.build(n)},i,o))}buildExtraConfigColumn(e){return new e4(e,this.config)}}class Oe extends fa{constructor(e,n){n.uniqueName||(n.uniqueName=YR(e,[n.name])),super(e,n),this.table=e}static[W]="PgColumn"}class e4 extends Oe{static[W]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(e){return this.indexConfig.opClass=e,this}}class t4 extends He{static[W]="PgArrayBuilder";constructor(e,n,i){super(e,"array","PgArray"),this.config.baseBuilder=n,this.config.size=i}build(e){const n=this.config.baseBuilder.build(e);return new jp(e,this.config,n)}}class jp extends Oe{constructor(e,n,i,o){super(e,n),this.baseColumn=i,this.range=o,this.size=n.size}size;static[W]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(e){return typeof e=="string"&&(e=JR(e)),e.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(e,n=!1){const i=e.map(o=>o===null?null:Ot(this.baseColumn,jp)?this.baseColumn.mapToDriverValue(o,!0):this.baseColumn.mapToDriverValue(o));return n?i:C1(i)}}const Nx=Symbol.for("drizzle:isPgEnum");function n4(t){return!!t&&typeof t=="function"&&Nx in t&&t[Nx]===!0}class j1{static[W]="Subquery";constructor(e,n,i,o=!1){this._={brand:"Subquery",sql:e,selectedFields:n,alias:i,isWith:o}}}const r4={startActiveSpan(t,e){return e()}},Bi=Symbol.for("drizzle:ViewBaseConfig"),jf=Symbol.for("drizzle:Schema"),Cx=Symbol.for("drizzle:Columns"),jx=Symbol.for("drizzle:ExtraConfigColumns"),kf=Symbol.for("drizzle:OriginalName"),_f=Symbol.for("drizzle:BaseName"),_u=Symbol.for("drizzle:IsAlias"),kx=Symbol.for("drizzle:ExtraConfigBuilder"),k1=Symbol.for("drizzle:IsDrizzleTable");class yn{static[W]="Table";static Symbol={Name:Fi,Schema:jf,OriginalName:kf,Columns:Cx,ExtraConfigColumns:jx,BaseName:_f,IsAlias:_u,
8ExtraConfigBuilder:kx};[Fi];[kf];[jf];[Cx];[jx];[_f];[_u]=!1;[k1]=!0;[kx]=void 0;constructor(e,n,i){this[Fi]=this[kf]=e,this[jf]=n,this[_f]=i}}function _1(t){return typeof t=="object"&&t!==null&&k1 in t}function s4(t){return t!=null&&typeof t.getSQL=="function"}function i4(t){const e={sql:"",params:[]};for(const n of t)e.sql+=n.sql,e.params.push(...n.params),n.typings?.length&&(e.typings||(e.typings=[]),e.typings.push(...n.typings));return e}class Fn{static[W]="StringChunk";value;constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new pt([this])}}class pt{constructor(e){this.queryChunks=e}static[W]="SQL";decoder=E1;shouldInlineParams=!1;append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return r4.startActiveSpan("drizzle.buildSQL",n=>{const i=this.buildQueryFromSourceParams(this.queryChunks,e);return n?.setAttributes({"drizzle.query.text":i.sql,"drizzle.query.params":JSON.stringify(i.params)}),i})}buildQueryFromSourceParams(e,n){const i=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:o,escapeName:l,escapeParam:u,prepareTyping:f,inlineParams:p,paramStartIndex:m}=i;return i4(e.map(g=>{if(Ot(g,Fn))return{sql:g.value.join(""),params:[]};if(Ot(g,uh))return{sql:l(g.value),params:[]};if(g===void 0)return{sql:"",params:[]};if(Array.isArray(g)){const v=[new Fn("(")];for(const[x,P]of g.entries())v.push(P),x<g.length-1&&v.push(new Fn(", "));return v.push(new Fn(")")),this.buildQueryFromSourceParams(v,i)}if(Ot(g,pt))return this.buildQueryFromSourceParams(g.queryChunks,{...i,inlineParams:p||g.shouldInlineParams});if(Ot(g,yn)){const v=g[yn.Symbol.Schema],x=g[yn.Symbol.Name];return{sql:v===void 0||g[_u]?l(x):l(v)+"."+l(x),params:[]}}if(Ot(g,fa)){const v=o.getColumnCasing(g);if(n.invokeSource==="indexes")return{sql:l(v),params:[]};const x=g.table[yn.Symbol.Schema];return{sql:g.table[_u]||x===void 0?l(g.table[yn.Symbol.Name])+"."+l(v):l(x)+"."+l(g.table[yn.Symbol.Name])+"."+l(v),params:[]}}if(Ot(g,o4)){const v=g[Bi].schema,x=g[Bi].name;return{sql:v===void 0||g[Bi].isAlias?l(x):l(v)+"."+l(x),params:[]}}if(Ot(g,R1)){if(Ot(g.value,ch))return{sql:u(m.value++,g),params:[g],typings:["none"]};const v=g.value===null?null:g.encoder.mapToDriverValue(g.value);if(Ot(v,pt))return this.buildQueryFromSourceParams([v],i);if(p)return{sql:this.mapInlineParam(v,i),params:[]};let x=["none"];return f&&(x=[f(g.encoder)]),{sql:u(m.value++,v),params:[v],typings:x}}return Ot(g,ch)?{sql:u(m.value++,g),params:[g],typings:["none"]}:Ot(g,pt.Aliased)&&g.fieldAlias!==void 0?{sql:l(g.fieldAlias),params:[]}:Ot(g,j1)?g._.isWith?{sql:l(g._.alias),params:[]}:this.buildQueryFromSourceParams([new Fn("("),g._.sql,new Fn(") "),new uh(g._.alias)],i):n4(g)?g.schema?{sql:l(g.schema)+"."+l(g.enumName),params:[]}:{sql:l(g.enumName),params:[]}:s4(g)?g.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([g.getSQL()],i):this.buildQueryFromSourceParams([new Fn("("),g.getSQL(),new Fn(")")],i):p?{sql:this.mapInlineParam(g,i),params:[]}:{sql:u(m.value++,g),params:[g],typings:["none"]}}))}mapInlineParam(e,{escapeString:n}){if(e===null)return"null";if(typeof e=="number"||typeof e=="boolean")return e.toString();if(typeof e=="string")return n(e);if(typeof e=="object"){const i=e.toString();return n(i==="[object Object]"?JSON.stringify(e):i)}throw new Error("Unexpected param value: "+e)}getSQL(){return this}as(e){return e===void 0?this:new pt.Aliased(this,e)}mapWith(e){return this.decoder=typeof e=="function"?{mapFromDriverValue:e}:e,this}inlineParams(){return this.shouldInlineParams=!0,this}if(e){return e?this:void 0}}class uh{constructor(e){this.value=e}static[W]="Name";brand;getSQL(){return new pt([this])}}const E1={mapFromDriverValue:t=>t},A1={mapToDriverValue:t=>t};({...E1,...A1});class R1{constructor(e,n=A1){this.value=e,this.encoder=n}static[W]="Param";brand;getSQL(){return new pt([this])}}function vs(t,...e){const n=[];(e.length>0||t.length>0&&t[0]!=="")&&n.push(new Fn(t[0]));for(const[i,o]of e.entries())n.push(o,new Fn(t[i+1]));return new pt(n)}(t=>{function e(){return new pt([])}t.empty=e;function n(p){return new pt(p)}t.fromList=n;function i(p){return new pt([new Fn(p)])}t.raw=i;function o(p,m){const g=[];for(const[v,x]of p.entries())v>0&&m!==void 0&&g.push(m),g.push(x);return new pt(g)}t.join=o;function l(p){return new uh(p)}t.identifier=l;function u(p){return new ch(p)}t.placeholder=u;function f(p,m){return new R1(p,m)}t.param=f})(vs||(vs={}));(t=>{class e{constructor(i,o){this.sql=i,this.fieldAlias=o}static[W]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new e(this.sql,this.fieldAlias)}}t.Aliased=e})(pt||(pt={}));class ch{constructor(e){this.name=e}static[W]="Placeholder";getSQL(){return new pt([this])}}const D1=Symbol.for("drizzle:IsDrizzleView");class o4{static[W]="View";[Bi];[D1]=!0;
8constructor({name:e,schema:n,selectedFields:i,query:o}){this[Bi]={name:e,originalName:e,schema:n,selectedFields:i,query:o,isExisting:!o,isAlias:!1}}getSQL(){return new pt([this])}}function a4(t){return typeof t=="object"&&t!==null&&D1 in t}fa.prototype.getSQL=function(){return new pt([this])};yn.prototype.getSQL=function(){return new pt([this])};j1.prototype.getSQL=function(){return new pt([this])};function l4(t){return t[yn.Symbol.Columns]}function u4(t){return t[Bi].selectedFields}function At(t,e){return{name:typeof t=="string"&&t.length>0?t:"",config:typeof t=="object"?t:e}}class oc extends He{static[W]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(e){if(e){const{name:n,...i}=e;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:i}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(e){if(e){const{name:n,...i}=e;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:i}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}}class c4 extends oc{static[W]="PgBigInt53Builder";constructor(e){super(e,"number","PgBigInt53")}build(e){return new d4(e,this.config)}}class d4 extends Oe{static[W]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(e){return typeof e=="number"?e:Number(e)}}class f4 extends oc{static[W]="PgBigInt64Builder";constructor(e){super(e,"bigint","PgBigInt64")}build(e){return new h4(e,this.config)}}class h4 extends Oe{static[W]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(e){return BigInt(e)}}function p4(t,e){const{name:n,config:i}=At(t,e);return i.mode==="number"?new c4(n):new f4(n)}class m4 extends He{static[W]="PgBigSerial53Builder";constructor(e){super(e,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(e){return new g4(e,this.config)}}class g4 extends Oe{static[W]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(e){return typeof e=="number"?e:Number(e)}}class y4 extends He{static[W]="PgBigSerial64Builder";constructor(e){super(e,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(e){return new v4(e,this.config)}}class v4 extends Oe{static[W]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(e){return BigInt(e)}}function x4(t,e){const{name:n,config:i}=At(t,e);return i.mode==="number"?new m4(n):new y4(n)}class w4 extends He{static[W]="PgBooleanBuilder";constructor(e){super(e,"boolean","PgBoolean")}build(e){return new b4(e,this.config)}}class b4 extends Oe{static[W]="PgBoolean";getSQLType(){return"boolean"}}function S4(t){return new w4(t??"")}class T4 extends He{static[W]="PgCharBuilder";constructor(e,n){super(e,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(e){return new P4(e,this.config)}}class P4 extends Oe{static[W]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}}function N4(t,e={}){const{name:n,config:i}=At(t,e);return new T4(n,i)}class C4 extends He{static[W]="PgCidrBuilder";constructor(e){super(e,"string","PgCidr")}build(e){return new j4(e,this.config)}}class j4 extends Oe{static[W]="PgCidr";getSQLType(){return"cidr"}}function k4(t){return new C4(t??"")}class _4 extends He{static[W]="PgCustomColumnBuilder";constructor(e,n,i){super(e,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=i}build(e){return new E4(e,this.config)}}class E4 extends Oe{static[W]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(e,n){super(e,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(e){return typeof this.mapFrom=="function"?this.mapFrom(e):e}mapToDriverValue(e){return typeof this.mapTo=="function"?this.mapTo(e):e}}function A4(t){return(e,n)=>{const{name:i,config:o}=At(e,n);return new _4(i,o,t)}}class Ma extends He{static[W]="PgDateColumnBaseBuilder";defaultNow(){return this.default(vs`now()`)}}class R4 extends Ma{static[W]="PgDateBuilder";constructor(e){super(e,"date","PgDate")}build(e){return new D4(e,this.config)}}class D4 extends Oe{static[W]="PgDate";
8getSQLType(){return"date"}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}}class M4 extends Ma{static[W]="PgDateStringBuilder";constructor(e){super(e,"string","PgDateString")}build(e){return new O4(e,this.config)}}class O4 extends Oe{static[W]="PgDateString";getSQLType(){return"date"}}function I4(t,e){const{name:n,config:i}=At(t,e);return i?.mode==="date"?new R4(n):new M4(n)}class L4 extends He{static[W]="PgDoublePrecisionBuilder";constructor(e){super(e,"number","PgDoublePrecision")}build(e){return new V4(e,this.config)}}class V4 extends Oe{static[W]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(e){return typeof e=="string"?Number.parseFloat(e):e}}function F4(t){return new L4(t??"")}class B4 extends He{static[W]="PgInetBuilder";constructor(e){super(e,"string","PgInet")}build(e){return new z4(e,this.config)}}class z4 extends Oe{static[W]="PgInet";getSQLType(){return"inet"}}function U4(t){return new B4(t??"")}class $4 extends oc{static[W]="PgIntegerBuilder";constructor(e){super(e,"number","PgInteger")}build(e){return new W4(e,this.config)}}class W4 extends Oe{static[W]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(e){return typeof e=="string"?Number.parseInt(e):e}}function H4(t){return new $4(t??"")}class q4 extends He{static[W]="PgIntervalBuilder";constructor(e,n){super(e,"string","PgInterval"),this.config.intervalConfig=n}build(e){return new K4(e,this.config)}}class K4 extends Oe{static[W]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){const e=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${e}${n}`}}function Q4(t,e={}){const{name:n,config:i}=At(t,e);return new q4(n,i)}class Z4 extends He{static[W]="PgJsonBuilder";constructor(e){super(e,"json","PgJson")}build(e){return new G4(e,this.config)}}class G4 extends Oe{static[W]="PgJson";constructor(e,n){super(e,n)}getSQLType(){return"json"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}}function X4(t){return new Z4(t??"")}class Y4 extends He{static[W]="PgJsonbBuilder";constructor(e){super(e,"json","PgJsonb")}build(e){return new J4(e,this.config)}}class J4 extends Oe{static[W]="PgJsonb";constructor(e,n){super(e,n)}getSQLType(){return"jsonb"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}}function e5(t){return new Y4(t??"")}class t5 extends He{static[W]="PgLineBuilder";constructor(e){super(e,"array","PgLine")}build(e){return new n5(e,this.config)}}class n5 extends Oe{static[W]="PgLine";getSQLType(){return"line"}mapFromDriverValue(e){const[n,i,o]=e.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(i),Number.parseFloat(o)]}mapToDriverValue(e){return`{${e[0]},${e[1]},${e[2]}}`}}class r5 extends He{static[W]="PgLineABCBuilder";constructor(e){super(e,"json","PgLineABC")}build(e){return new s5(e,this.config)}}class s5 extends Oe{static[W]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(e){const[n,i,o]=e.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(i),c:Number.parseFloat(o)}}mapToDriverValue(e){return`{${e.a},${e.b},${e.c}}`}}function i5(t,e){const{name:n,config:i}=At(t,e);return!i?.mode||i.mode==="tuple"?new t5(n):new r5(n)}class o5 extends He{static[W]="PgMacaddrBuilder";constructor(e){super(e,"string","PgMacaddr")}build(e){return new a5(e,this.config)}}class a5 extends Oe{static[W]="PgMacaddr";getSQLType(){return"macaddr"}}function l5(t){return new o5(t??"")}class u5 extends He{static[W]="PgMacaddr8Builder";constructor(e){super(e,"string","PgMacaddr8")}build(e){return new c5(e,this.config)}}class c5 extends Oe{static[W]="PgMacaddr8";getSQLType(){return"macaddr8"}}function d5(t){return new u5(t??"")}class f5 extends He{static[W]="PgNumericBuilder";constructor(e,n,i){super(e,"string","PgNumeric"),this.config.precision=n,this.config.scale=i}build(e){return new h5(e,this.config)}}class h5 extends Oe{static[W]="PgNumeric";precision;scale;constructor(e,n){super(e,n),this.precision=n.precision,this.scale=n.scale}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}}function p5(t,e){const{name:n,config:i}=At(t,e);return new f5(n,i?.precision,i?.scale)}class m5 extends He{static[W]="PgPointTupleBuilder";constructor(e){super(e,"array","PgPointTuple")}build(e){return new g5(e,this.config)}}class g5 extends Oe{static[W]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(e){if(typeof e=="string"){const[n,i]=e.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(i)]}return[e.x,e.y]}mapToDriverValue(e){return`(${e[0]},${e[1]})`}}class y5 extends He{static[W]="PgPointObjectBuilder";constructor(e){super(e,"json","PgPointObject")}build(e){return new v5(e,this.config)}}class v5 extends Oe{static[W]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(e){if(typeof e=="string"){const[n,i]=e.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(i)}}return e}mapToDriverValue(e){return`(${e.x},${e.y})`}}function x5(t,e){const{name:n,config:i}=At(t,e);return!i?.mode||i.mode==="tuple"?new m5(n):new y5(n)}function w5(t){const e=[];for(let n=0;n<t.length;n+=2)e.push(Number.parseInt(t.slice(n,n+2),16));return new Uint8Array(e)}function _x(t,e){const n=new ArrayBuffer(8),i=new DataView(n);for(let o=0;o<8;o++)i.setUint8(o,t[e+o]);return i.getFloat64(0,!0)}function M1(t){const e=w5(t);let n=0;const i=e[n];n+=1;const o=new DataView(e.buffer),l=o.getUint32(n,i===1);if(n+=4,l&536870912&&(o.getUint32(n,i===1),n+=4),(l&65535)===1){const u=_x(e,n);n+=8;const f=_x(e,n);return n+=8,[u,f]}throw new Error("Unsupported geometry type")}class b5 extends He{static[W]="PgGeometryBuilder";constructor(e){super(e,"array","PgGeometry")}build(e){return new S5(e,this.config)}}class S5 extends Oe{static[W]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(e){return M1(e)}mapToDriverValue(e){return`point(${e[0]} ${e[1]})`}}class T5 extends He{static[W]="PgGeometryObjectBuilder";constructor(e){super(e,"json","PgGeometryObject")}build(e){return new P5(e,this.config)}}class P5 extends Oe{static[W]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(e){const n=M1(e);return{x:n[0],y:n[1]}}mapToDriverValue(e){return`point(${e.x} ${e.y})`}}function N5(t,e){const{name:n,config:i}=At(t,e);return!i?.mode||i.mode==="tuple"?new b5(n):new T5(n)}class C5 extends He{static[W]="PgRealBuilder";constructor(e,n){super(e,"number","PgReal"),this.config.length=n}build(e){return new j5(e,this.config)}}class j5 extends Oe{static[W]="PgReal";constructor(e,n){super(e,n)}getSQLType(){return"real"}mapFromDriverValue=e=>typeof e=="string"?Number.parseFloat(e):e}function k5(t){return new C5(t??"")}class _5 extends He{static[W]="PgSerialBuilder";constructor(e){super(e,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(e){return new E5(e,this.config)}}class E5 extends Oe{static[W]="PgSerial";
8getSQLType(){return"serial"}}function A5(t){return new _5(t??"")}class R5 extends oc{static[W]="PgSmallIntBuilder";constructor(e){super(e,"number","PgSmallInt")}build(e){return new D5(e,this.config)}}class D5 extends Oe{static[W]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=e=>typeof e=="string"?Number(e):e}function M5(t){return new R5(t??"")}class O5 extends He{static[W]="PgSmallSerialBuilder";constructor(e){super(e,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(e){return new I5(e,this.config)}}class I5 extends Oe{static[W]="PgSmallSerial";getSQLType(){return"smallserial"}}function L5(t){return new O5(t??"")}class V5 extends He{static[W]="PgTextBuilder";constructor(e,n){super(e,"string","PgText"),this.config.enumValues=n.enum}build(e){return new F5(e,this.config)}}class F5 extends Oe{static[W]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}}function ln(t,e={}){const{name:n,config:i}=At(t,e);return new V5(n,i)}class B5 extends Ma{constructor(e,n,i){super(e,"string","PgTime"),this.withTimezone=n,this.precision=i,this.config.withTimezone=n,this.config.precision=i}static[W]="PgTimeBuilder";build(e){return new z5(e,this.config)}}class z5 extends Oe{static[W]="PgTime";withTimezone;precision;constructor(e,n){super(e,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}}function U5(t,e={}){const{name:n,config:i}=At(t,e);return new B5(n,i.withTimezone??!1,i.precision)}class $5 extends Ma{static[W]="PgTimestampBuilder";constructor(e,n,i){super(e,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=i}build(e){return new W5(e,this.config)}}class W5 extends Oe{static[W]="PgTimestamp";withTimezone;precision;constructor(e,n){super(e,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue=e=>new Date(this.withTimezone?e:e+"+0000");mapToDriverValue=e=>e.toISOString()}class H5 extends Ma{static[W]="PgTimestampStringBuilder";constructor(e,n,i){super(e,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=i}build(e){return new q5(e,this.config)}}class q5 extends Oe{static[W]="PgTimestampString";withTimezone;precision;constructor(e,n){super(e,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}}function ac(t,e={}){const{name:n,config:i}=At(t,e);return i?.mode==="string"?new H5(n,i.withTimezone??!1,i.precision):new $5(n,i?.withTimezone??!1,i?.precision)}class K5 extends He{static[W]="PgUUIDBuilder";constructor(e){super(e,"string","PgUUID")}defaultRandom(){return this.default(vs`gen_random_uuid()`)}build(e){return new Q5(e,this.config)}}class Q5 extends Oe{static[W]="PgUUID";getSQLType(){return"uuid"}}function Z5(t){return new K5(t??"")}class G5 extends He{static[W]="PgVarcharBuilder";constructor(e,n){super(e,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(e){return new X5(e,this.config)}}class X5 extends Oe{static[W]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}}function Oa(t,e={}){const{name:n,config:i}=At(t,e);return new G5(n,i)}class Y5 extends He{static[W]="PgBinaryVectorBuilder";constructor(e,n){super(e,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(e){return new J5(e,this.config)}}class J5 extends Oe{static[W]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}}function eD(t,e){const{name:n,config:i}=At(t,e);return new Y5(n,i)}class tD extends He{static[W]="PgHalfVectorBuilder";constructor(e,n){super(e,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(e){return new nD(e,this.config)}}class nD extends Oe{static[W]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){return e.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}}function rD(t,e){const{name:n,config:i}=At(t,e);return new tD(n,i)}class sD extends He{static[W]="PgSparseVectorBuilder";constructor(e,n){super(e,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(e){return new iD(e,this.config)}}class iD extends Oe{static[W]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}}
8function oD(t,e){const{name:n,config:i}=At(t,e);return new sD(n,i)}class aD extends He{static[W]="PgVectorBuilder";constructor(e,n){super(e,"array","PgVector"),this.config.dimensions=n.dimensions}build(e){return new lD(e,this.config)}}class lD extends Oe{static[W]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){return e.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}}function uD(t,e){const{name:n,config:i}=At(t,e);return new aD(n,i)}function cD(){return{bigint:p4,bigserial:x4,boolean:S4,char:N4,cidr:k4,customType:A4,date:I4,doublePrecision:F4,inet:U4,integer:H4,interval:Q4,json:X4,jsonb:e5,line:i5,macaddr:l5,macaddr8:d5,numeric:p5,point:x5,geometry:N5,real:k5,serial:A5,smallint:M5,smallserial:L5,text:ln,time:U5,timestamp:ac,uuid:Z5,varchar:Oa,bit:eD,halfvec:rD,sparsevec:oD,vector:uD}}const dh=Symbol.for("drizzle:PgInlineForeignKeys"),Ex=Symbol.for("drizzle:EnableRLS");class Ax extends yn{static[W]="PgTable";static Symbol=Object.assign({},yn.Symbol,{InlineForeignKeys:dh,EnableRLS:Ex});[dh]=[];[Ex]=!1;[yn.Symbol.ExtraConfigBuilder]=void 0}function dD(t,e,n,i,o=t){const l=new Ax(t,i,o),u=typeof e=="function"?e(cD()):e,f=Object.fromEntries(Object.entries(u).map(([g,v])=>{const x=v;x.setName(g);const P=x.build(l);return l[dh].push(...x.buildForeignKeys(P,l)),[g,P]})),p=Object.fromEntries(Object.entries(u).map(([g,v])=>{const x=v;x.setName(g);const P=x.buildExtraConfigColumn(l);return[g,P]})),m=Object.assign(l,f);return m[yn.Symbol.Columns]=f,m[yn.Symbol.ExtraConfigColumns]=p,Object.assign(m,{enableRLS:()=>(m[Ax.Symbol.EnableRLS]=!0,m)})}const lc=(t,e,n)=>dD(t,e,n,void 0);var $e;(function(t){t.assertEqual=o=>o;function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{const l={};for(const u of o)l[u]=u;return l},t.getValidEnumValues=o=>{const l=t.objectKeys(o).filter(f=>typeof o[o[f]]!="number"),u={};for(const f of l)u[f]=o[f];return t.objectValues(u)},t.objectValues=o=>t.objectKeys(o).map(function(l){return o[l]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.push(u);return l},t.find=(o,l)=>{for(const u of o)if(l(u))return u},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function i(o,l=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}t.joinValues=i,t.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})($e||($e={}));var fh;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(fh||(fh={}));const de=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_r=t=>{switch(typeof t){case"undefined":return de.undefined;case"string":return de.string;case"number":return isNaN(t)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(t)?de.array:t===null?de.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?de.promise:typeof Map<"u"&&t instanceof Map?de.map:typeof Set<"u"&&t instanceof Set?de.set:typeof Date<"u"&&t instanceof Date?de.date:de.object;default:return de.unknown}}
vendor: 16,744 bytes, line 8
8,G=$e.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"]),fD=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class xn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(l){return l.message},i={_errors:[]},o=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)i._errors.push(n(u));else{let f=i,p=0;for(;p<u.path.length;){const m=u.path[p];p===u.path.length-1?(f[m]=f[m]||{_errors:[]},f[m]._errors.push(n(u))):f[m]=f[m]||{_errors:[]},f=f[m],p++}}};return o(this),i}static assert(e){if(!(e instanceof xn))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},i=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(e(o))):i.push(e(o));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}xn.create=t=>new xn(t);const Qi=(t,e)=>{let n;switch(t.code){case G.invalid_type:t.received===de.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case G.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,$e.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:n=`Unrecognized key(s) in object: ${$e.joinValues(t.keys,", ")}`;break;case G.invalid_union:n="Invalid input";break;case G.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${$e.joinValues(t.options)}`;break;case G.invalid_enum_value:n=`Invalid enum value. Expected ${$e.joinValues(t.options)}, received '${t.received}'`;break;case G.invalid_arguments:n="Invalid function arguments";break;case G.invalid_return_type:n="Invalid function return type";break;case G.invalid_date:n="Invalid date";break;case G.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:$e.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case G.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case G.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case G.custom:n="Invalid input";break;case G.invalid_intersection_types:n="Intersection results could not be merged";break;case G.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case G.not_finite:n="Number must be finite";break;default:n=e.defaultError,$e.assertNever(t)}return{message:n}};let O1=Qi;function hD(t){O1=t}function Eu(){return O1}const Au=t=>{const{data:e,path:n,errorMaps:i,issueData:o}=t,l=[...n,...o.path||[]],u={...o,path:l};if(o.message!==void 0)return{...o,path:l,message:o.message};let f="";const p=i.filter(m=>!!m).slice().reverse();for(const m of p)f=m(u,{data:e,defaultError:f}).message;return{...o,path:l,message:f}},pD=[];function ae(t,e){const n=Eu(),i=Au({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Qi?void 0:Qi].filter(o=>!!o)});t.common.issues.push(i)}class Kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const i=[];for(const o of n){if(o.status==="aborted")return _e;o.status==="dirty"&&e.dirty(),i.push(o.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,n){const i=[];for(const o of n){const l=await o.key,u=await o.value;i.push({key:l,value:u})}return Kt.mergeObjectSync(e,i)}static mergeObjectSync(e,n){const i={};for(const o of n){const{key:l,value:u}=o;if(l.status==="aborted"||u.status==="aborted")return _e;l.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(i[l.value]=u.value)}return{status:e.value,value:i}}}const _e=Object.freeze({status:"aborted"}),Ii=t=>({status:"dirty",value:t}),Jt=t=>({status:"valid",value:t}),hh=t=>t.status==="aborted",ph=t=>t.status==="dirty",Qs=t=>t.status==="valid",ha=t=>typeof Promise<"u"&&t instanceof Promise;function Ru(t,e,n,i){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function I1(t,e,n,i,o){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var we;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(we||(we={}));var Go,Xo;class fr{constructor(e,n,i,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=i,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Rx=(t,e)=>{if(Qs(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new xn(t.common.issues);return this._error=n,this._error}}};function De(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:i,description:o}=t;if(e&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(u,f)=>{var p,m;const{message:g}=t;return u.code==="invalid_enum_value"?{message:g??f.defaultError}:typeof f.data>"u"?{message:(p=g??i)!==null&&p!==void 0?p:f.defaultError}:u.code!=="invalid_type"?{message:f.defaultError}:{message:(m=g??n)!==null&&m!==void 0?m:f.defaultError}},description:o}}class Ie{get description(){return this._def.description}_getType(e){return _r(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:_r(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Kt,ctx:{common:e.parent.common,data:e.data,parsedType:_r(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(ha(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const i=this.safeParse(e,n);if(i.success)return i.data;throw i.error}safeParse(e,n){var i;const o={common:{issues:[],async:(i=n?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_r(e)},l=this._parseSync({data:e,path:o.path,parent:o});return Rx(o,l)}"~validate"(e){var n,i;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_r(e)};if(!this["~standard"].async)try{const l=this._parseSync({data:e,path:[],parent:o});return Qs(l)?{value:l.value}:{issues:o.common.issues}}catch(l){!((i=(n=l?.message)===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:o}).then(l=>Qs(l)?{value:l.value}:{issues:o.common.issues})}async parseAsync(e,n){const i=await this.safeParseAsync(e,n);if(i.success)return i.data;throw i.error}async safeParseAsync(e,n){const i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_r(e)},o=this._parse({data:e,path:i.path,parent:i}),l=await(ha(o)?o:Promise.resolve(o));return Rx(i,l)}refine(e,n){const i=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,l)=>{const u=e(o),f=()=>l.addIssue({code:G.custom,...i(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(p=>p?!0:(f(),!1)):u?!0:(f(),!1)})}refinement(e,n){return this._refinement((i,o)=>e(i)?!0:(o.addIssue(typeof n=="function"?n(i,o):n),!1))}_refinement(e){return new Qn({schema:this,typeName:ke.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ur.create(this,this._def)}nullable(){return Ss.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wn.create(this)}promise(){return Gi.create(this,this._def)}or(e){return ya.create([this,e],this._def)}and(e){return va.create(this,e,this._def)}transform(e){return new Qn({...De(this._def),schema:this,typeName:ke.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Ta({...De(this._def),innerType:this,defaultValue:n,typeName:ke.ZodDefault})}brand(){return new kp({typeName:ke.ZodBranded,type:this,...De(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Pa({...De(this._def),innerType:this,catchValue:n,typeName:ke.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ia.create(this,e)}readonly(){return Na.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const mD=/^c[^\s-]{8,}$/i,gD=/^[0-9a-z]+$/,yD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vD=/^[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,xD=/^[a-z0-9_-]{21}$/i,wD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,bD=/^[-+]?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)?)??$/,SD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,TD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ef;const PD=/^(?:(?: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])$/,ND=/^(?:(?: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])$/,CD=/^(([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]))$/,jD=/^(([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])$/,kD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_D=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,L1="((\\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])))",ED=new RegExp(`^${L1}$`);function V1(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function AD(t){return new RegExp(`^${V1(t)}$`)}function F1(t){let e=`${L1}T${V1(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function RD(t,e){return!!((e==="v4"||!e)&&PD.test(t)||(e==="v6"||!e)&&CD.test(t))}function DD(t,e){if(!wD.test(t))return!1;try{const[n]=t.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(i));return!(typeof o!="object"||o===null||!o.typ||!o.alg||e&&o.alg!==e)}catch{return!1}}function MD(t,e){return!!((e==="v4"||!e)&&ND.test(t)||(e==="v6"||!e)&&jD.test(t))}class Un extends Ie{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==de.string){const l=this._getOrReturnCtx(e);return ae(l,{code:G.invalid_type,expected:de.string,received:l.parsedType}),_e}const i=new Kt;let o;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(o=this._getOrReturnCtx(e,o),ae(o,{code:G.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="max")e.data.length>l.value&&(o=this._getOrReturnCtx(e,o),ae(o,{code:G.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="length"){const u=e.data.length>l.value,f=e.data.length<l.value;(u||f)&&(o=this._getOrReturnCtx(e,o),u?ae(o,{code:G.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):f&&ae(o,{code:G.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),i.dirty())}else if(l.kind==="email")SD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"email",code:G.invali
vendor: 5,917 bytes, line 8
8d_string,message:l.message}),i.dirty());else if(l.kind==="emoji")Ef||(Ef=new RegExp(TD,"u")),Ef.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"emoji",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="uuid")vD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"uuid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="nanoid")xD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"nanoid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid")mD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"cuid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid2")gD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"cuid2",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="ulid")yD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"ulid",code:G.invalid_string,message:l.message}),i.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),ae(o,{validation:"url",code:G.invalid_string,message:l.message}),i.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"regex",code:G.invalid_string,message:l.message}),i.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(o=this._getOrReturnCtx(e,o),ae(o,{code:G.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),i.dirty()):l.kind==="toLowerCase"?e.data=e.data.toLowerCase():l.kind==="toUpperCase"?e.data=e.data.toUpperCase():l.kind==="startsWith"?e.data.startsWith(l.value)||(o=this._getOrReturnCtx(e,o),ae(o,{code:G.invalid_string,validation:{startsWith:l.value},message:l.message}),i.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(o=this._getOrReturnCtx(e,o),ae(o,{code:G.invalid_string,validation:{endsWith:l.value},message:l.message}),i.dirty()):l.kind==="datetime"?F1(l).test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{code:G.invalid_string,validation:"datetime",message:l.message}),i.dirty()):l.kind==="date"?ED.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{code:G.invalid_string,validation:"date",message:l.message}),i.dirty()):l.kind==="time"?AD(l).test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{code:G.invalid_string,validation:"time",message:l.message}),i.dirty()):l.kind==="duration"?bD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"duration",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="ip"?RD(e.data,l.version)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"ip",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="jwt"?DD(e.data,l.alg)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"jwt",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="cidr"?MD(e.data,l.version)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"cidr",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="base64"?kD.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"base64",code:G.invalid_string,message:l.message}),i.dirty()):l.kind==="base64url"?_D.test(e.data)||(o=this._getOrReturnCtx(e,o),ae(o,{validation:"base64url",code:G.invalid_string,message:l.message}),i.dirty()):$e.assertNever(l);return{status:i.value,value:e.data}}_regex(e,n,i){return this.refinement(o=>e.test(o),{validation:n,code:G.invalid_string,...we.errToObj(i)})}_addCheck(e){return new Un({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...we.errToObj(e)})}url(e){return this._addCheck({kind:"url",...we.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...we.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...we.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...we.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...we.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...we.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...we.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...we.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...we.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...we.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...we.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...we.errToObj(e)})}datetime(e){var n,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(n=e?.offset)!==null&&n!==void 0?n:!1,local:(i=e?.local)!==null&&i!==void 0?i:!1,...we.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...we.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...we.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...we.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...we.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...we.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...we.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...we.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...we.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...we.errToObj(n)})}nonempty(e){return this.min(1,we.errToObj(e))}trim(){return new Un({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Un({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Un({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}
vendor: 4,535 bytes, line 8
8get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Un.create=t=>{var e;return new Un({checks:[],typeName:ke.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...De(t)})};function OD(t,e){const n=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,o=n>i?n:i,l=parseInt(t.toFixed(o).replace(".","")),u=parseInt(e.toFixed(o).replace(".",""));return l%u/Math.pow(10,o)}class xs extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==de.number){const l=this._getOrReturnCtx(e);return ae(l,{code:G.invalid_type,expected:de.number,received:l.parsedType}),_e}let i;const o=new Kt;for(const l of this._def.checks)l.kind==="int"?$e.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),ae(i,{code:G.invalid_type,expected:"integer",received:"float",message:l.message}),o.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(i=this._getOrReturnCtx(e,i),ae(i,{code:G.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(i=this._getOrReturnCtx(e,i),ae(i,{code:G.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="multipleOf"?OD(e.data,l.value)!==0&&(i=this._getOrReturnCtx(e,i),ae(i,{code:G.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),ae(i,{code:G.not_finite,message:l.message}),o.dirty()):$e.assertNever(l);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,we.toString(n))}gt(e,n){return this.setLimit("min",e,!1,we.toString(n))}lte(e,n){return this.setLimit("max",e,!0,we.toString(n))}lt(e,n){return this.setLimit("max",e,!1,we.toString(n))}setLimit(e,n,i,o){return new xs({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:we.toString(o)}]})}_addCheck(e){return new xs({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:we.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:we.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:we.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:we.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:we.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:we.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:we.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:we.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:we.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&$e.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;
vendor: 6,237 bytes, line 8
8i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(n)&&Number.isFinite(e)}}xs.create=t=>new xs({checks:[],typeName:ke.ZodNumber,coerce:t?.coerce||!1,...De(t)});class ws extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==de.bigint)return this._getInvalidInput(e);let i;const o=new Kt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(i=this._getOrReturnCtx(e,i),ae(i,{code:G.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(i=this._getOrReturnCtx(e,i),ae(i,{code:G.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),ae(i,{code:G.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):$e.assertNever(l);return{status:o.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return ae(n,{code:G.invalid_type,expected:de.bigint,received:n.parsedType}),_e}gte(e,n){return this.setLimit("min",e,!0,we.toString(n))}gt(e,n){return this.setLimit("min",e,!1,we.toString(n))}lte(e,n){return this.setLimit("max",e,!0,we.toString(n))}lt(e,n){return this.setLimit("max",e,!1,we.toString(n))}setLimit(e,n,i,o){return new ws({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:we.toString(o)}]})}_addCheck(e){return new ws({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:we.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:we.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:we.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:we.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:we.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}ws.create=t=>{var e;return new ws({checks:[],typeName:ke.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...De(t)})};class pa extends Ie{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==de.boolean){const i=this._getOrReturnCtx(e);return ae(i,{code:G.invalid_type,expected:de.boolean,received:i.parsedType}),_e}return Jt(e.data)}}pa.create=t=>new pa({typeName:ke.ZodBoolean,coerce:t?.coerce||!1,...De(t)});class Zs extends Ie{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==de.date){const l=this._getOrReturnCtx(e);return ae(l,{code:G.invalid_type,expected:de.date,received:l.parsedType}),_e}if(isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return ae(l,{code:G.invalid_date}),_e}const i=new Kt;let o;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(o=this._getOrReturnCtx(e,o),ae(o,{code:G.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),i.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(o=this._getOrReturnCtx(e,o),ae(o,{code:G.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),i.dirty()):$e.assertNever(l);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Zs({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:we.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:we.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Zs.create=t=>new Zs({checks:[],coerce:t?.coerce||!1,typeName:ke.ZodDate,...De(t)});class Du extends Ie{_parse(e){if(this._getType(e)!==de.symbol){const i=this._getOrReturnCtx(e);return ae(i,{code:G.invalid_type,expected:de.symbol,received:i.parsedType}),_e}return Jt(e.data)}}Du.create=t=>new Du({typeName:ke.ZodSymbol,...De(t)});class ma extends Ie{_parse(e){if(this._getType(e)!==de.undefined){const i=this._getOrReturnCtx(e);return ae(i,{code:G.invalid_type,expected:de.undefined,received:i.parsedType}),_e}return Jt(e.data)}}ma.create=t=>new ma({typeName:ke.ZodUndefined,...De(t)});class ga extends Ie{_parse(e){if(this._getType(e)!==de.null){const i=this._getOrReturnCtx(e);return ae(i,{code:G.invalid_type,expected:de.null,received:i.parsedType}),_e}return Jt(e.data)}}ga.create=t=>new ga({typeName:ke.ZodNull,...De(t)});class Zi extends Ie{constructor(){super(...arguments),this._any=!0}_parse(e){return Jt(e.data)}}Zi.create=t=>new Zi({typeName:ke.ZodAny,...De(t)});class Ws extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Jt(e.data)}}Ws.create=t=>new Ws({typeName:ke.ZodUnknown,...De(t)});class Vr extends Ie{_parse(e){const n=this._getOrReturnCtx(e);return ae(n,{code:G.invalid_type,expected:de.never,received:n.parsedType}),_e}}Vr.create=t=>new Vr({typeName:ke.ZodNever,...De(t)});class Mu extends Ie{_parse(e){if(this._getType(e)!==de.undefined){const i=this._getOrReturnCtx(e);return ae(i,{code:G.invalid_type,expected:de.void,received:i.parsedType}),_e}return Jt(e.data)}}Mu.create=t=>new Mu({typeName:ke.ZodVoid,...De(t)});class Wn extends Ie{_parse(e){const{ctx:n,status:i}=this._processInputParams(e),o=this._def;if(n.parsedType!==de.array)return ae(n,{code:G.invalid_type,expected:de.array,received:n.parsedType}),_e;if(o.exactLength!==null){const u=n.data.length>o.exactLength.value,f=n.data.length<o.exactLength.value;(u||f)&&(ae(n,{code:u?G.too_big:G.too_small,minimum:f?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),i.dirty())}
vendor: 20,094 bytes, line 8
8if(o.minLength!==null&&n.data.length<o.minLength.value&&(ae(n,{code:G.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),i.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(ae(n,{code:G.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((u,f)=>o.type._parseAsync(new fr(n,u,n.path,f)))).then(u=>Kt.mergeArray(i,u));const l=[...n.data].map((u,f)=>o.type._parseSync(new fr(n,u,n.path,f)));return Kt.mergeArray(i,l)}get element(){return this._def.type}min(e,n){return new Wn({...this._def,minLength:{value:e,message:we.toString(n)}})}max(e,n){return new Wn({...this._def,maxLength:{value:e,message:we.toString(n)}})}length(e,n){return new Wn({...this._def,exactLength:{value:e,message:we.toString(n)}})}nonempty(e){return this.min(1,e)}}Wn.create=(t,e)=>new Wn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ke.ZodArray,...De(e)});function Ei(t){if(t instanceof ut){const e={};for(const n in t.shape){const i=t.shape[n];e[n]=ur.create(Ei(i))}return new ut({...t._def,shape:()=>e})}else return t instanceof Wn?new Wn({...t._def,type:Ei(t.element)}):t instanceof ur?ur.create(Ei(t.unwrap())):t instanceof Ss?Ss.create(Ei(t.unwrap())):t instanceof hr?hr.create(t.items.map(e=>Ei(e))):t}class ut extends Ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=$e.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==de.object){const m=this._getOrReturnCtx(e);return ae(m,{code:G.invalid_type,expected:de.object,received:m.parsedType}),_e}const{status:i,ctx:o}=this._processInputParams(e),{shape:l,keys:u}=this._getCached(),f=[];if(!(this._def.catchall instanceof Vr&&this._def.unknownKeys==="strip"))for(const m in o.data)u.includes(m)||f.push(m);const p=[];for(const m of u){const g=l[m],v=o.data[m];p.push({key:{status:"valid",value:m},value:g._parse(new fr(o,v,o.path,m)),alwaysSet:m in o.data})}if(this._def.catchall instanceof Vr){const m=this._def.unknownKeys;if(m==="passthrough")for(const g of f)p.push({key:{status:"valid",value:g},value:{status:"valid",value:o.data[g]}});else if(m==="strict")f.length>0&&(ae(o,{code:G.unrecognized_keys,keys:f}),i.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const g of f){const v=o.data[g];p.push({key:{status:"valid",value:g},value:m._parse(new fr(o,v,o.path,g)),alwaysSet:g in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const m=[];for(const g of p){const v=await g.key,x=await g.value;m.push({key:v,value:x,alwaysSet:g.alwaysSet})}return m}).then(m=>Kt.mergeObjectSync(i,m)):Kt.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return we.errToObj,new ut({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,i)=>{var o,l,u,f;const p=(u=(l=(o=this._def).errorMap)===null||l===void 0?void 0:l.call(o,n,i).message)!==null&&u!==void 0?u:i.defaultError;return n.code==="unrecognized_keys"?{message:(f=we.errToObj(e).message)!==null&&f!==void 0?f:p}:{message:p}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(e){return new ut({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ut({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ke.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new ut({...this._def,catchall:e})}pick(e){const n={};return $e.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new ut({...this._def,shape:()=>n})}omit(e){const n={};return $e.objectKeys(this.shape).forEach(i=>{e[i]||(n[i]=this.shape[i])}),new ut({...this._def,shape:()=>n})}deepPartial(){return Ei(this)}partial(e){const n={};return $e.objectKeys(this.shape).forEach(i=>{const o=this.shape[i];e&&!e[i]?n[i]=o:n[i]=o.optional()}),new ut({...this._def,shape:()=>n})}required(e){const n={};return $e.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])n[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof ur;)l=l._def.innerType;n[i]=l}}),new ut({...this._def,shape:()=>n})}keyof(){return B1($e.objectKeys(this.shape))}}ut.create=(t,e)=>new ut({shape:()=>t,unknownKeys:"strip",catchall:Vr.create(),typeName:ke.ZodObject,...De(e)});ut.strictCreate=(t,e)=>new ut({shape:()=>t,unknownKeys:"strict",catchall:Vr.create(),typeName:ke.ZodObject,...De(e)});ut.lazycreate=(t,e)=>new ut({shape:t,unknownKeys:"strip",catchall:Vr.create(),typeName:ke.ZodObject,...De(e)});class ya extends Ie{_parse(e){const{ctx:n}=this._processInputParams(e),i=this._def.options;function o(l){for(const f of l)if(f.result.status==="valid")return f.result;for(const f of l)if(f.result.status==="dirty")return n.common.issues.push(...f.ctx.common.issues),f.result;const u=l.map(f=>new xn(f.ctx.common.issues));return ae(n,{code:G.invalid_union,unionErrors:u}),_e}if(n.common.async)return Promise.all(i.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(o);{let l;const u=[];for(const p of i){const m={...n,common:{...n.common,issues:[]},parent:null},g=p._parseSync({data:n.data,path:n.path,parent:m});if(g.status==="valid")return g;g.status==="dirty"&&!l&&(l={result:g,ctx:m}),m.common.issues.length&&u.push(m.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const f=u.map(p=>new xn(p));return ae(n,{code:G.invalid_union,unionErrors:f}),_e}}get options(){return this._def.options}}ya.create=(t,e)=>new ya({options:t,typeName:ke.ZodUnion,...De(e)});const kr=t=>t instanceof wa?kr(t.schema):t instanceof Qn?kr(t.innerType()):t instanceof ba?[t.value]:t instanceof bs?t.options:t instanceof Sa?$e.objectValues(t.enum):t instanceof Ta?kr(t._def.innerType):t instanceof ma?[void 0]:t instanceof ga?[null]:t instanceof ur?[void 0,...kr(t.unwrap())]:t instanceof Ss?[null,...kr(t.unwrap())]:t instanceof kp||t instanceof Na?kr(t.unwrap()):t instanceof Pa?kr(t._def.innerType):[];class uc extends Ie{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==de.object)return ae(n,{code:G.invalid_type,expected:de.object,received:n.parsedType}),_e;const i=this.discriminator,o=n.data[i],l=this.optionsMap.get(o);return l?n.common.async?l._parseAsync({data:n.data,path:n.path,parent:n}):l._parseSync({data:n.data,path:n.path,parent:n}):(ae(n,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),_e)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,i){const o=new Map;for(const l of n){const u=kr(l.shape[e]);if(!u.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const f of u){if(o.has(f))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(f)}`);o.set(f,l)}}return new uc({typeName:ke.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:o,...De(i)})}}function mh(t,e){const n=_r(t),i=_r(e);if(t===e)return{valid:!0,data:t};if(n===de.object&&i===de.object){const o=$e.objectKeys(e),l=$e.objectKeys(t).filter(f=>o.indexOf(f)!==-1),u={...t,...e};for(const f of l){const p=mh(t[f],e[f]);if(!p.valid)return{valid:!1};u[f]=p.data}return{valid:!0,data:u}}else if(n===de.array&&i===de.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let l=0;l<t.length;l++){const u=t[l],f=e[l],p=mh(u,f);if(!p.valid)return{valid:!1};o.push(p.data)}return{valid:!0,data:o}}else return n===de.date&&i===de.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class va extends Ie{_parse(e){const{status:n,ctx:i}=this._processInputParams(e),o=(l,u)=>{if(hh(l)||hh(u))return _e;const f=mh(l.value,u.value);return f.valid?((ph(l)||ph(u))&&n.dirty(),{status:n.value,value:f.data}):(ae(i,{code:G.invalid_intersection_types}),_e)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([l,u])=>o(l,u)):o(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}va.create=(t,e,n)=>new va({left:t,right:e,typeName:ke.ZodIntersection,...De(n)});class hr extends Ie{_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==de.array)return ae(i,{code:G.invalid_type,expected:de.array,received:i.parsedType}),_e;if(i.data.length<this._def.items.length)return ae(i,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_e;!this._def.rest&&i.data.length>this._def.items.length&&(ae(i,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...i.data].map((u,f)=>{const p=this._def.items[f]||this._def.rest;return p?p._parse(new fr(i,u,i.path,f)):null}).filter(u=>!!u);return i.common.async?Promise.all(l).then(u=>Kt.mergeArray(n,u)):Kt.mergeArray(n,l)}get items(){return this._def.items}rest(e){return new hr({...this._def,rest:e})}}hr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new hr({items:t,typeName:ke.ZodTuple,rest:null,...De(e)})};class xa extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==de.object)return ae(i,{code:G.invalid_type,expected:de.object,received:i.parsedType}),_e;const o=[],l=this._def.keyType,u=this._def.valueType;for(const f in i.data)o.push({key:l._parse(new fr(i,f,i.path,f)),value:u._parse(new fr(i,i.data[f],i.path,f)),alwaysSet:f in i.data});return i.common.async?Kt.mergeObjectAsync(n,o):Kt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(e,n,i){return n instanceof Ie?new xa({keyType:e,valueType:n,typeName:ke.ZodRecord,...De(i)}):new xa({keyType:Un.create(),valueType:e,typeName:ke.ZodRecord,...De(n)})}}class Ou extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==de.map)return ae(i,{code:G.invalid_type,expected:de.map,received:i.parsedType}),_e;const o=this._def.keyType,l=this._def.valueType,u=[...i.data.entries()].map(([f,p],m)=>({key:o._parse(new fr(i,f,i.path,[m,"key"])),value:l._parse(new fr(i,p,i.path,[m,"value"]))}));if(i.common.async){const f=new Map;return Promise.resolve().then(async()=>{for(const p of u){const m=await p.key,g=await p.value;if(m.status==="aborted"||g.status==="aborted")return _e;(m.status==="dirty"||g.status==="dirty")&&n.dirty(),f.set(m.value,g.value)}return{status:n.value,value:f}})}else{const f=new Map;for(const p of u){const m=p.key,g=p.value;if(m.status==="aborted"||g.status==="aborted")return _e;(m.status==="dirty"||g.status==="dirty")&&n.dirty(),f.set(m.value,g.value)}return{status:n.value,value:f}}}}Ou.create=(t,e,n)=>new Ou({valueType:e,keyType:t,typeName:ke.ZodMap,...De(n)});class Gs extends Ie{_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==de.set)return ae(i,{code:G.invalid_type,expected:de.set,received:i.parsedType}),_e;const o=this._def;o.minSize!==null&&i.data.size<o.minSize.value&&(ae(i,{code:G.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&i.data.size>o.maxSize.value&&(ae(i,{code:G.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const l=this._def.valueType;function u(p){const m=new Set;for(const g of p){if(g.status==="aborted")return _e;g.status==="dirty"&&n.dirty(),m.add(g.value)}return{status:n.value,value:m}}const f=[...i.data.values()].map((p,m)=>l._parse(new fr(i,p,i.path,m)));return i.common.async?Promise.all(f).then(p=>u(p)):u(f)}min(e,n){return new Gs({...this._def,minSize:{value:e,message:we.toString(n)}})}max(e,n){return new Gs({...this._def,maxSize:{value:e,message:we.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Gs.create=(t,e)=>new Gs({valueType:t,minSize:null,maxSize:null,typeName:ke.ZodSet,...De(e)});class zi extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==de.function)return ae(n,{code:G.invalid_type,expected:de.function,received:n.parsedType}),_e;function i(f,p){return Au({data:f,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Eu(),Qi].filter(m=>!!m),issueData:{code:G.invalid_arguments,argumentsError:p}})}function o(f,p){return Au({data:f,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Eu(),Qi].filter(m=>!!m),issueData:{code:G.invalid_return_type,returnTypeError:p}})}const l={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof Gi){const f=this;return Jt(async function(...p){const m=new xn([]),g=await f._def.args.parseAsync(p,l).catch(P=>{throw m.addIssue(i(p,P)),m}),v=await Reflect.apply(u,this,g);return await f._def.returns._def.type.parseAsync(v,l).catch(P=>{throw m.addIssue(o(v,P)),m})})}else{const f=this;return Jt(function(...p){const m=f._def.args.safeParse(p,l);if(!m.success)throw new xn([i(p,m.error)]);const g=Reflect.apply(u,this,m.data),v=f._def.returns.safeParse(g,l);if(!v.success)throw new xn([o(g,v.error)]);return v.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new zi({...this._def,args:hr.create(e).rest(Ws.create())})}returns(e){return new zi({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,i){return new zi({args:e||hr.create([]).rest(Ws.create()),returns:n||Ws.create(),typeName:ke.ZodFunction,...De(i)})}}class wa extends Ie{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}wa.create=(t,e)=>new wa({getter:t,typeName:ke.ZodLazy,...De(e)});class ba extends Ie{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ae(n,{received:n.data,code:G.invalid_literal,expected:this._def.value}),_e}return{status:"valid",value:e.data}}get value(){return this._def.value}}ba.create=(t,e)=>new ba({value:t,typeName:ke.ZodLiteral,...De(e)});function B1(t,e){return new bs({values:t,typeName:ke.ZodEnum,...De(e)})}class bs extends Ie{constructor(){super(...arguments),Go.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),i=this._def.values;return ae(n,{expected:$e.joinValues(i),received:n.parsedType,code:G.invalid_type}),_e}if(Ru(this,Go)||I1(this,Go,new Set(this._def.values)),!Ru(this,Go).has(e.data)){const n=this._getOrReturnCtx(e),i=this._def.values;return ae(n,{received:n.data,code:G.invalid_enum_value,options:i}),_e}return Jt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return bs.create(e,{...this._def,...n})}exclude(e,n=this._def){return bs.create(this.options.filter(i=>!e.includes(i)),{...this._def,...n})}}Go=new WeakMap;bs.create=B1;class Sa extends Ie{constructor(){super(...arguments),Xo.set(this,void 0)}_parse(e){const n=$e.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==de.string&&i.parsedType!==de.number){const o=$e.objectValues(n);return ae(i,{expected:$e.joinValues(o),received:i.parsedType,code:G.invalid_type}),_e}if(Ru(this,Xo)||I1(this,Xo,new Set($e.getValidEnumValues(this._def.values))),!Ru(this,Xo).has(e.data)){const o=$e.objectValues(n);return ae(i,{received:i.data,code:G.invalid_enum_value,options:o}),_e}return Jt(e.data)}get enum(){return this._def.values}}Xo=new WeakMap;Sa.create=(t,e)=>new Sa({values:t,typeName:ke.ZodNativeEnum,...De(e)});class Gi extends Ie{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==de.promise&&n.common.async===!1)return ae(n,{code:G.invalid_type,expected:de.promise,received:n.parsedType}),_e;const i=n.parsedType===de.promise?n.data:Promise.resolve(n.data);return Jt(i.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Gi.create=(t,e)=>new Gi({type:t,typeName:ke.ZodPromise,...De(e)});class Qn extends Ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ke.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:i}=this._processInputParams(e),o=this._def.effect||null,l={addIssue:u=>{ae(i,u),u.fatal?n.abort():n.dirty()},get path(){return i.path}};if(l.addIssue=l.addIssue.bind(l),o.type==="preprocess"){const u=o.transform(i.data,l);if(i.common.async)return Promise.resolve(u).then(async f=>{if(n.value==="aborted")return _e;const p=await this._def.schema._parseAsync({data:f,path:i.path,parent:i});return p.status==="aborted"?_e:p.status==="dirty"||n.value==="dirty"?Ii(p.value):p});{if(n.value==="aborted")return _e;const f=this._def.schema._parseSync({data:u,path:i.path,parent:i});return f.status==="aborted"?_e:f.status==="dirty"||n.value==="dirty"?Ii(f.value):f}}if(o.type==="refinement"){const u=f=>{const p=o.refinement(f,l);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return f};if(i.common.async===!1){const f=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return f.status==="aborted"?_e:(f.status==="dirty"&&n.dirty(),u(f.value),{status:n.value,value:f.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(f=>f.status==="aborted"?_e:(f.status==="dirty"&&n.dirty(),u(f.value).then(()=>({status:n.value,value:f.value}))))}if(o.type==="transform")if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Qs(u))return u;const f=o.transform(u.value,l);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:f}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>Qs(u)?Promise.resolve(o.transform(u.value,l)).then(f=>({status:n.value,value:f})):u);$e.assertNever(o)}}Qn.create=(t,e,n)=>new Qn({schema:t,typeName:ke.ZodEffects,effect:e,...De(n)});Qn.createWithPreprocess=(t,e,n)=>new Qn({schema:e,effect:{type:"preprocess",transform:t},typeName:ke.ZodEffects,...De(n)});class ur extends Ie{_parse(e){return this._getType(e)===de.undefined?Jt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ur.create=(t,e)=>new ur({innerType:t,typeName:ke.ZodOptional,...De(e)});class Ss extends Ie{_parse(e){return this._getType(e)===de.null?Jt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ss.create=(t,e)=>new Ss({innerType:t,typeName:ke.ZodNullable,...De(e)});class Ta extends Ie{_parse(e){const{ctx:n}=this._processInputParams(e);let i=n.data;return n.parsedType===de.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ta.create=(t,e)=>new Ta({innerType:t,typeName:ke.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...De(e)});class Pa extends Ie{_parse(e){const{ctx:n}=this._processInputParams(e),i={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ha(o)?o.then(l=>
8({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new xn(i.common.issues)},input:i.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new xn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Pa.create=(t,e)=>new Pa({innerType:t,typeName:ke.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...De(e)});class Iu extends Ie{_parse(e){if(this._getType(e)!==de.nan){const i=this._getOrReturnCtx(e);return ae(i,{code:G.invalid_type,expected:de.nan,received:i.parsedType}),_e}return{status:"valid",value:e.data}}}Iu.create=t=>new Iu({typeName:ke.ZodNaN,...De(t)});const ID=Symbol("zod_brand");class kp extends Ie{_parse(e){const{ctx:n}=this._processInputParams(e),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ia extends Ie{_parse(e){const{status:n,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?_e:l.status==="dirty"?(n.dirty(),Ii(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const o=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?_e:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:i.path,parent:i})}}static create(e,n){return new Ia({in:e,out:n,typeName:ke.ZodPipeline})}}class Na extends Ie{_parse(e){const n=this._def.innerType._parse(e),i=o=>(Qs(o)&&(o.value=Object.freeze(o.value)),o);return ha(n)?n.then(o=>i(o)):i(n)}unwrap(){return this._def.innerType}}Na.create=(t,e)=>new Na({innerType:t,typeName:ke.ZodReadonly,...De(e)});function Dx(t,e){const n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function z1(t,e={},n){return t?Zi.create().superRefine((i,o)=>{var l,u;const f=t(i);if(f instanceof Promise)return f.then(p=>{var m,g;if(!p){const v=Dx(e,i),x=(g=(m=v.fatal)!==null&&m!==void 0?m:n)!==null&&g!==void 0?g:!0;o.addIssue({code:"custom",...v,fatal:x})}});if(!f){const p=Dx(e,i),m=(u=(l=p.fatal)!==null&&l!==void 0?l:n)!==null&&u!==void 0?u:!0;o.addIssue({code:"custom",...p,fatal:m})}}):Zi.create()}const LD={object:ut.lazycreate};var ke;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ke||(ke={}));const VD=(t,e={message:`Input not instance of ${t.name}`})=>z1(n=>n instanceof t,e),U1=Un.create,$1=xs.create,FD=Iu.create,BD=ws.create,W1=pa.create,zD=Zs.create,UD=Du.create,$D=ma.create,WD=ga.create,HD=Zi.create,qD=Ws.create,KD=Vr.create,QD=Mu.create,ZD=Wn.create,GD=ut.create,XD=ut.strictCreate,YD=ya.create,JD=uc.create,eM=va.create,tM=hr.create,nM=xa.create,rM=Ou.create,sM=Gs.create,iM=zi.create,oM=wa.create,aM=ba.create,lM=bs.create,uM=Sa.create,cM=Gi.create,Mx=Qn.create,dM=ur.create,fM=Ss.create,hM=Qn.createWithPreprocess,pM=Ia.create,mM=()=>U1().optional(),gM=()=>$1().optional(),yM=()=>W1().optional(),vM={string:(t=>Un.create({...t,coerce:!0})),number:(t=>xs.create({...t,coerce:!0})),boolean:(t=>pa.create({...t,coerce:!0})),bigint:(t=>ws.create({...t,coerce:!0})),date:(t=>Zs.create({...t,coerce:!0}))},xM=_e;var et=Object.freeze({__proto__:null,defaultErrorMap:Qi,setErrorMap:hD,getErrorMap:Eu,makeIssue:Au,EMPTY_PATH:pD,addIssueToContext:ae,ParseStatus:Kt,INVALID:_e,DIRTY:Ii,OK:Jt,isAborted:hh,isDirty:ph,isValid:Qs,isAsync:ha,get util(){return $e},get objectUtil(){return fh},ZodParsedType:de,getParsedType:_r,ZodType:Ie,datetimeRegex:F1,ZodString:Un,ZodNumber:xs,ZodBigInt:ws,ZodBoolean:pa,ZodDate:Zs,ZodSymbol:Du,ZodUndefined:ma,ZodNull:ga,ZodAny:Zi,ZodUnknown:Ws,ZodNever:Vr,ZodVoid:Mu,ZodArray:Wn,ZodObject:ut,ZodUnion:ya,ZodDiscriminatedUnion:uc,ZodIntersection:va,ZodTuple:hr,ZodRecord:xa,ZodMap:Ou,ZodSet:Gs,ZodFunction:zi,ZodLazy:wa,ZodLiteral:ba,ZodEnum:bs,ZodNativeEnum:Sa,ZodPromise:Gi,ZodEffects:Qn,ZodTransformer:Qn,ZodOptional:ur,ZodNullable:Ss,ZodDefault:Ta,ZodCatch:Pa,ZodNaN:Iu,BRAND:ID,ZodBranded:kp,ZodPipeline:Ia,ZodReadonly:Na,custom:z1,Schema:Ie,ZodSchema:Ie,late:LD,get ZodFirstPartyTypeKind(){return ke},coerce:vM,any:HD,array:ZD,bigint:BD,boolean:W1,date:zD,discriminatedUnion:JD,effect:Mx,enum:lM,function:iM,instanceof:VD,intersection:eM,lazy:oM,literal:aM,map:rM,nan:FD,nativeEnum:uM,never:KD,null:WD,nullable:fM,number:$1,object:GD,oboolean:yM,onumber:gM,optional:dM,ostring:mM,pipeline:pM,preprocess:hM,promise:cM,record:nM,set:sM,strictObject:XD,string:U1,symbol:UD,transformer:Mx,tuple:tM,undefined:$D,union:YD,unknown:qD,void:QD,NEVER:xM,ZodIssueCode:G,quotelessJson:fD,ZodError:xn});const lt={INT8_MIN:-128,INT8_MAX:127,INT8_UNSIGNED_MAX:255,INT16_MIN:-32768,INT16_MAX:32767,INT16_UNSIGNED_MAX:65535,INT24_MIN:-8388608,INT24_MAX:8388607,INT24_UNSIGNED_MAX:16777215,INT32_MIN:-2147483648,INT32_MAX:2147483647,INT32_UNSIGNED_MAX:4294967295,INT48_MIN:-0x800000000000,INT48_MAX:0x7fffffffffff,INT48_UNSIGNED_MAX:0xffffffffffff,INT64_MIN:-9223372036854775808n,INT64_MAX:9223372036854775807n,INT64_UNSIGNED_MAX:18446744073709551615n};function xt(t,e){return e.includes(t.columnType)}function wM(t){return"enumValues"in t&&Array.isArray(t.enumValues)&&t.enumValues.length>0}const bM=et.union([et.string(),et.number(),et.boolean(),et.null()]),SM=et.union([bM,et.record(et.any()),et.array(et.any())]),TM=et.custom(t=>t instanceof Buffer);function H1(t,e){const n=e?.zodInstance??et,i=e?.coerce??{};let o;return wM(t)&&(o=t.enumValues.length?n.enum(t.enumValues):n.string()),o||(xt(t,["PgGeometry","PgPointTuple"])?o=n.tuple([n.number(),n.number()]):xt(t,["PgGeometryObject","PgPointObject"])?o=n.object({x:n.number(),y:n.number()}):xt(t,["PgHalfVector","PgVector"])?(o=n.array(n.number()),o=t.dimensions?o.length(t.dimensions):o):xt(t,["PgLine"])?o=n.tuple([n.number(),n.number(),n.number()]):xt(t,["PgLineABC"])?o=n.object({a:n.number(),b:n.number(),c:n.number()}):xt(t,["PgArray"])?(o=n.array(H1(t.baseColumn,n)),o=t.size?o.length(t.size):o):t.dataType==="array"?o=n.array(n.any()):t.dataType==="number"?o=PM(t,n,i):t.dataType==="bigint"?o=NM(t,n,i):t.dataType==="boolean"?o=i===!0||i.boolean?n.coerce.boolean():n.boolean():t.dataType==="date"?o=i===!0||i.date?n.coerce.date():n.date():t.dataType==="string"?o=CM(t,
8n,i):t.dataType==="json"?o=SM:t.dataType==="custom"?o=n.any():t.dataType==="buffer"&&(o=TM)),o||(o=n.any()),o}function PM(t,e,n){let i=t.getSQLType().includes("unsigned"),o,l,u=!1;xt(t,["MySqlTinyInt","SingleStoreTinyInt"])?(o=i?0:lt.INT8_MIN,l=i?lt.INT8_UNSIGNED_MAX:lt.INT8_MAX,u=!0):xt(t,["PgSmallInt","PgSmallSerial","MySqlSmallInt","SingleStoreSmallInt"])?(o=i?0:lt.INT16_MIN,l=i?lt.INT16_UNSIGNED_MAX:lt.INT16_MAX,u=!0):xt(t,["PgReal","MySqlFloat","MySqlMediumInt","SingleStoreMediumInt","SingleStoreFloat"])?(o=i?0:lt.INT24_MIN,l=i?lt.INT24_UNSIGNED_MAX:lt.INT24_MAX,u=xt(t,["MySqlMediumInt","SingleStoreMediumInt"])):xt(t,["PgInteger","PgSerial","MySqlInt","SingleStoreInt"])?(o=i?0:lt.INT32_MIN,l=i?lt.INT32_UNSIGNED_MAX:lt.INT32_MAX,u=!0):xt(t,["PgDoublePrecision","MySqlReal","MySqlDouble","SingleStoreReal","SingleStoreDouble","SQLiteReal"])?(o=i?0:lt.INT48_MIN,l=i?lt.INT48_UNSIGNED_MAX:lt.INT48_MAX):xt(t,["PgBigInt53","PgBigSerial53","MySqlBigInt53","MySqlSerial","SingleStoreBigInt53","SingleStoreSerial","SQLiteInteger"])?(i=i||xt(t,["MySqlSerial","SingleStoreSerial"]),o=i?0:Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER,u=!0):xt(t,["MySqlYear","SingleStoreYear"])?(o=1901,l=2155,u=!0):(o=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER);let f=n===!0||n?.number?e.coerce.number():e.number();return f=f.min(o).max(l),u?f.int():f}function NM(t,e,n){const i=t.getSQLType().includes("unsigned"),o=i?0n:lt.INT64_MIN,l=i?lt.INT64_UNSIGNED_MAX:lt.INT64_MAX;return(n===!0||n?.bigint?e.coerce.bigint():e.bigint()).min(o).max(l)}function CM(t,e,n){if(xt(t,["PgUUID"]))return e.string().uuid();let i,o,l=!1;xt(t,["PgVarchar","SQLiteText"])?i=t.length:xt(t,["MySqlVarChar","SingleStoreVarChar"])?i=t.length??lt.INT16_UNSIGNED_MAX:xt(t,["MySqlText","SingleStoreText"])&&(t.textType==="longtext"?i=lt.INT32_UNSIGNED_MAX:t.textType==="mediumtext"?i=lt.INT24_UNSIGNED_MAX:t.textType==="text"?i=lt.INT16_UNSIGNED_MAX:i=lt.INT8_UNSIGNED_MAX),xt(t,["PgChar","MySqlChar","SingleStoreChar"])&&(i=t.length,l=!0),xt(t,["PgBinaryVector"])&&(o=/^[01]+$/,i=t.dimensions);let u=n===!0||n?.string?e.coerce.string():e.string();return u=o?u.regex(o):u,i&&l?u.length(i):i?u.max(i):u}function q1(t){return _1(t)?l4(t):u4(t)}function K1(t,e,n,i){const o={};for(const[l,u]of Object.entries(t)){if(!Ot(u,fa)&&!Ot(u,pt)&&!Ot(u,pt.Aliased)&&typeof u=="object"){const v=_1(u)||a4(u)?q1(u):u;o[l]=K1(v,e[l]??{},n,i);continue}const f=e[l];if(f!==void 0&&typeof f!="function"){o[l]=f;continue}const p=Ot(u,fa)?u:void 0,m=p?H1(p,i):et.any(),g=typeof f=="function"?f(m):m;n.never(p)||(o[l]=g,p&&(n.nullable(p)&&(o[l]=o[l].nullable()),n.optional(p)&&(o[l]=o[l].optional())))}return et.object(o)}const jM={never:t=>t?.generated?.type==="always"||t?.generatedIdentity?.type==="always",optional:t=>!t.notNull||t.notNull&&t.hasDefault,nullable:t=>!t.notNull},cc=(t,e)=>{const n=q1(t);return K1(n,{},jM)},kM=lc("users",{id:Oa("id").primaryKey().default(vs`gen_random_uuid()`),username:ln("username").notNull().unique(),password:ln("password").notNull()});cc(kM).pick({username:!0,password:!0});const _M=lc("resume_submissions",{id:Oa("id").primaryKey().default(vs`gen_random_uuid()`),name:ln("name").notNull(),email:ln("email").notNull(),message:ln("message"),resumeData:ln("resume_data").notNull(),resumeFilename:ln("resume_filename").notNull(),submittedAt:ac("submitted_at").defaultNow().notNull()}),EM=cc(_M).omit({id:!0,submittedAt:!0}),AM=lc("newsletter_subscriptions",{id:Oa("id").primaryKey().default(vs`gen_random_uuid()`),email:ln("email").notNull().unique(),name:ln("name"),subscribedAt:ac("subscribed_at").defaultNow().notNull()});cc(AM).omit({id:!0,subscribedAt:!0});const RM=lc("contact_submissions",{id:Oa("id").primaryKey().default(vs`gen_random_uuid()`),name:ln("name").notNull(),email:ln("email").notNull(),subject:ln("subject").notNull(),message:ln("message").notNull(),submittedAt:ac("submitted_at").defaultNow().notNull()});cc(RM).omit({id:!0,submittedAt:!0});const Af={hidden:{opacity:0,y:24},visible:t=>({opacity:1,y:0,transition:{delay:t*.1,duration:.5,ease:"easeOut"}})},DM=EM.extend({email:et.string().email("Please enter a valid email address"),name:et.string().min(1,"Full name is required"),resumeData:et.string().min(1,"Resume is required"),resumeFilename:et.string().min(1,"Resume is required")});function MM(){const[,t]=wP(),[e,n]=S.useState(null),[i,o]=S.useState(!1),l=S.useRef(null),u=Pp({resolver:Cp(DM),defaultValues:{name:"",email:"",message:"",resumeData:"",resumeFilename:""}}),f=wh({mutationFn:async g=>{await bh("POST","/api/resumes",g)},onSuccess:()=>{o(!0)}}),p=async g=>{const v=g.target.files?.[0]||null;if(n(v),v){const x=new FileReader,P=await new Promise((C,b)=>{x.onload=()=>C(x.result),x.onerror=b,x.readAsDataURL(v)});u.setValue("resumeData",P),u.setValue("resumeFilename",v.name)}else u.setValue("resumeData",""),u.setValue("resumeFilename","")},m=g=>{f.mutate(g)};return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx("header",{className:"border-b border-white/5 backdrop-blur-xl bg-background/80 sticky top-0 z-50","data-testid":"careers-header",children:d.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-4 px-6 py-4",children:[d.jsxs(Ae,{href:"/",className:"flex items-center gap-3","data-testid":"link-careers-logo",children:[d.jsx("img",{src:Fr,alt:"Bitterbot Logo",className:"h-8 w-8"}),d.jsxs("span",{className:"text-lg font-semibold",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})]}),d.jsxs(Vt,{variant:"ghost",className:"bg-white/5 border border-white/10",onClick:()=>t("/"),"data-testid":"button-back-home",children:[d.jsx(ja,{className:"w-4 h-4 mr-2"}),"Back to Home"]})]})}),d.jsxs("main",{className:"max-w-3xl mx-auto px-6 py-20",children:[d.jsxs(le.div,{initial:"hidden",animate:"visible",className:"text-center mb-16",children:[d.jsx(le.div,{variants:Af,custom:0,className:"flex justify-center mb-6",children:d.jsxs(Lr,{variant:"outline",className:"border-purple-500/30 text-purple-400 px-4 py-1.5",children:[d.jsx(JN,{className:"w-3.5 h-3.5 mr-2"}),"Careers"]})}),d.jsxs(le.h1,{variants:Af,custom:1,className:"text-4xl sm:text-5xl font-bold mb-6",children:["Join the ",d.jsxs("span",{className:"text-foreground",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})," Team"]}),d.jsx(le.p,{variants:Af,custom:2,className:"text-lg text-muted-foreground max-w-xl mx-auto",children:"We have no current positions available, but check back often as we will be posting soon! If you want to send us a resume in the meantime, please submit below."})]}),d.jsx(le.div,{initial:{opacity:0,y:30}
8,animate:{opacity:1,y:0},transition:{delay:.3,duration:.5},children:i?d.jsx(un,{className:"border-purple-500/20 bg-card/50","data-testid":"card-success",children:d.jsxs(cn,{className:"p-10 text-center",children:[d.jsx("div",{className:"w-16 h-16 rounded-full bg-green-500/15 flex items-center justify-center mx-auto mb-6",children:d.jsx(kh,{className:"w-8 h-8 text-green-400"})}),d.jsx("h3",{className:"text-2xl font-bold mb-3","data-testid":"text-success-title",children:"Thank you!"}),d.jsx("p",{className:"text-muted-foreground mb-6","data-testid":"text-success-message",children:"Your resume has been submitted successfully. We'll review it and reach out if a position opens up that matches your skills."}),d.jsx(Vt,{variant:"ghost",className:"bg-white/5 border border-white/10",onClick:()=>t("/"),"data-testid":"button-success-home",children:"Back to Home"})]})}):d.jsx(un,{className:"border-purple-500/20 bg-card/50","data-testid":"card-resume-form",children:d.jsxs(cn,{className:"p-8",children:[d.jsx("h3",{className:"text-xl font-semibold mb-6","data-testid":"text-form-title",children:"Submit Your Resume"}),d.jsx(Np,{...u,children:d.jsxs("form",{onSubmit:u.handleSubmit(m),className:"space-y-5",children:[d.jsx(Ar,{control:u.control,name:"name",render:({field:g})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Full Name *"}),d.jsx(sr,{children:d.jsx(fs,{placeholder:"Your full name",...g,"data-testid":"input-name"})}),d.jsx(ir,{})]})}),d.jsx(Ar,{control:u.control,name:"email",render:({field:g})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Email Address *"}),d.jsx(sr,{children:d.jsx(fs,{type:"email",placeholder:"[email protected]",...g,"data-testid":"input-email"})}),d.jsx(ir,{})]})}),d.jsx(Ar,{control:u.control,name:"message",render:({field:g})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Cover Note (optional)"}),d.jsx(sr,{children:d.jsx(vp,{placeholder:"Tell us a bit about yourself and what excites you about BitterBot...",rows:4,className:"resize-none",...g,value:g.value??"","data-testid":"input-message"})}),d.jsx(ir,{})]})}),d.jsxs("div",{children:[d.jsx(xp,{className:"mb-2 block",children:"Resume / CV *"}),d.jsx("input",{ref:l,type:"file",accept:".pdf,.doc,.docx",onChange:p,className:"hidden","data-testid":"input-file"}),d.jsx("div",{onClick:()=>l.current?.click(),className:"border-2 border-dashed border-white/10 rounded-md p-6 text-center cursor-pointer hover-elevate","data-testid":"dropzone-resume",children:e?d.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-purple-300",children:[d.jsx(zy,{className:"w-4 h-4"}),d.jsx("span",{"data-testid":"text-filename",children:e.name})]}):d.jsxs("div",{children:[d.jsx(zy,{className:"w-6 h-6 text-muted-foreground/40 mx-auto mb-2"}),d.jsx("p",{className:"text-sm text-muted-foreground/60",children:"Click to upload your resume"}),d.jsx("p",{className:"text-xs text-muted-foreground/40 mt-1",children:"PDF, DOC, or DOCX"})]})}),u.formState.errors.resumeData&&d.jsx("p",{className:"text-sm text-destructive mt-1",children:u.formState.errors.resumeData.message})]}),d.jsx(Vt,{type:"submit",variant:"default",className:"w-full",disabled:f.isPending,"data-testid":"button-submit-resume",children:f.isPending?"Submitting...":d.jsxs(d.Fragment,{children:[d.jsx(B0,{className:"w-4 h-4 mr-2"}),"Submit Resume"]})}),f.isError&&d.jsx("p",{className:"text-sm text-destructive text-center","data-testid":"text-error",children:"Something went wrong. Please try again."})]})})]})})})]})]})}const jr={hidden:{opacity:0,y:24},visible:t=>({opacity:1,y:0,transition:{delay:t*.1,duration:.5}})},OM={hidden:{},visible:{transition:{staggerChildren:.1}}};function Ox(){return d.jsxs("span",{className:"font-bold",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})}const IM=[{title:'The "Vibes" Are Over: Why 2026 Belongs to Neuro-Symbolic AI',subtitle:"We spent the last three years teaching AI to talk. Now, we finally have to teach it to think.",author:"Victor Michael Gil",date:"December 14, 2025",readTime:"5 min read",url:"https://victormgil.medium.com/the-vibes-are-over-why-2026-belongs-to-neuro-symbolic-ai-105575d361de",tags:["Neuro-Symbolic AI","Machine Learning","Architecture"],excerpt:`As we stare down the barrel of 2026, the AI landscape feels strange. The "magic" has worn off. We have realized that despite their eloquence, our models still hallucinate citations, buckle under basic logic puzzles, and gaslight us when challenged. We built a parrot with a library card, but we are slowly realizing it doesn't actually know how to read. This isn't a bug to be patched in the next update. It is a structural ceiling.`,highlights:[{heading:"The Crisis Beneath the Fluency",text:"Bigger models didn't produce better reasoning; they just produced better impressions of reasoning."},{heading:"System 1 Talks. System 2 Thinks.",text:'Current LLMs are the ultimate System 1 engines. They generate hypotheses at light speed. But they have no "brake."'},{heading:"Structure Beats Scale",text:"The architecture of the coming year: The Translator, The Symbolic-First Engine, and Differentiable Logic."}]}];function LM(){const t=IM[0];return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx("header",{className:"fixed top-0 w-full z-50 border-b border-border/50 bg-background/80 backdrop-blur-md",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between gap-4 px-6 py-3",children:[d.jsx(Ae,{href:"/","data-testid":"link-home-logo",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("img",{src:Fr,alt:"BitterBot AI",className:"h-7 w-7"}),d.jsxs("span",{className:"font-semibold text-sm tracking-tight",children:[d.jsx(Ox,{})," AI"]})]})}),d.jsxs("nav",{className:"flex items-center gap-4",children:[d.jsx(Ae,{href:"/","data-testid":"link-nav-about",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})}),d.jsx(Ae,{href:"/careers","data-testid":"link-nav-careers",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Careers"})})]})]})}),d.jsx("main",{className:"pt-24 pb-20 px-6",children:d.jsx("div",{className:"max-w-3xl mx-auto",children:d.jsxs(le.div,{initial:"hidden",animate:"visible",variants:OM,children:[d.jsx(le.div,{variants:jr,custom:0,className:"mb-8",children:d.jsx(Ae,{href:"/","data-testid":"link-back-home",children:d.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:[d.jsx(ja,{className:"w-3.5 h-3.5"}),"Back to About"]})})}),d.jsx(le.div,{variants:jr,custom:1,className:"mb-4",children:d.jsx(Lr,{variant:"outline",className:"text-purple-400 border-purple-500/30",children:"Featured Article"})}),d.jsx(le.h1,{variants:jr,custom:2,className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4 leading-tight","data-testid":"text-blog-title",children:t.title}),d.jsx(le.p,{variants:jr,custom:3,className:"text-lg text-muted-foreground mb-6","data-testid":"text-blog-subtitle",children:t.subtitle}),d.jsxs(le.div,{variants:jr,custom:4,className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground mb-8 pb-8 border-b border-border/50",children:[d.jsx("span",{className:"font-medium text-foreground","data-testid":"text-blog-author",children:t.author}),d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(I0,{className:"w-3.5 h-3.5"}),t.date]}),d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(nC,{className:"w-3.5 h-3.5"}),t.readTime]})]}),d.jsx(le.div,{variants:jr,custom:5,className:"mb-10",children:d.jsx("p",{className:"text-base leading-relaxed text-muted-foreground","data-testid":"text-blog-excerpt",children:t.excerpt})}),d.jsx(le.div,{variants:jr,custom:6,className:"grid gap-4 mb-10",children:t.highlights.map((e,n)=>d.jsx(un,{className:"border-border/50 bg-card/50","data-testid":`card-highlight-${n}`,children:d.jsxs(cn,{className:"p-5",children:[d.jsx("h3",{className:"text-sm font-semibold text-purple-300 mb-1",children:e.heading}),d.jsx("p",{className:"text-sm text-muted-foreground",children:e.text})]})}
8,n))}),d.jsx(le.div,{variants:jr,custom:7,className:"flex flex-wrap items-center gap-3 mb-10",children:t.tags.map(e=>d.jsx(Lr,{variant:"secondary",className:"text-xs","data-testid":`badge-tag-${e}`,children:e},e))}),d.jsx(le.div,{variants:jr,custom:8,children:d.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer","data-testid":"link-read-on-medium",children:d.jsxs(Vt,{className:"gap-2 bg-purple-600 border-purple-500 hover:bg-purple-500",children:["Read Full Article on Medium",d.jsx(L0,{className:"w-4 h-4"})]})})})]})})}),d.jsx("footer",{className:"border-t border-border/50 py-8 px-6",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex flex-wrap items-center justify-between gap-4 text-xs text-muted-foreground",children:[d.jsxs("span",{children:["© ",new Date().getFullYear()," ",d.jsx(Ox,{})," AI. All rights reserved."]}),d.jsx(Ae,{href:"/","data-testid":"link-footer-about",children:d.jsx("span",{className:"hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})})]})})]})}const Rf={hidden:{opacity:0,y:24},visible:t=>({opacity:1,y:0,transition:{delay:t*.1,duration:.5}})},VM={hidden:{},visible:{transition:{staggerChildren:.12}}};function Df(){return d.jsxs("span",{className:"font-bold",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})}const FM=[{title:"Theoretical Optimization of Perception and Abstract Synthesis (TOPAS)",subtitle:"A Convergent Neuro-Symbolic Architecture for General Intelligence",authors:["Victor Michael Gil"],date:"November 22, 2025",url:"https://zenodo.org/records/17683673",tags:["Neuro-Symbolic AI","ARC-AGI","Free Energy Principle"],abstract:'This paper introduces TOPAS, a convergent neuro-symbolic architecture that achieves an Exact Match score exceeding 69% on the ARC-II evaluation set. TOPAS rejects the tabula rasa assumption of pure deep learning, instead proposing a "Canonical Unified Model" grounded in the Free Energy Principle and Integrated Information Theory.',highlights:["The Hebbian Triad: Separation of Perception, Reasoning, and Memory","The Hypothesis Market: An internal economic system for arbitrating neural intuition vs. symbolic logic","Thermodynamic Refinement: Energy-Based Refiner treating solution generation as a settling process"]},{title:"The Fluid Substrate",subtitle:"Unifying Parameter and Data Spaces for Interaction-Driven Federated Learning",authors:["Victor Michael Gil","Douglas Finlay"],date:"December 9, 2025",url:"https://zenodo.org/records/17872125",tags:["Federated Learning","State-Space Models","Privacy"],abstract:"This paper introduces Fluid Federated Learning (FFL), a paradigm that unifies parameter and data spaces to overcome the physical constraints of contemporary FL. By exploiting the mathematical duality between Transformers and State-Space Models, FFL treats recurrent states as the primary unit of federation, enabling privacy-preserving, interaction-driven learning.",highlights:["Federated State-Space Duality: Treating recurrent states as the unit of federation","Neural Functional Server: Permutation-equivariant hypernetwork for heterogeneous model aggregation","Prism Protocol: Holographic Slicing for terabyte-scale models on commodity hardware"]},{title:"The Dual-Stream Programmatic Learner",subtitle:"Synthesizing Hierarchical Abstraction and Recursive Parsimony for General Intelligence",authors:["Victor Michael Gil"],date:"December 5, 2025",url:"https://zenodo.org/records/17834542",tags:["Recursive Models","ARC-AGI","Program Synthesis"],abstract:'This report introduces the Dual-Stream Programmatic Learner (DSPL), a novel architecture that implements a Bicameral Latent Space, functionally separating abstract algorithmic planning ("Logic Stream") from execution state ("Canvas Stream"). By utilizing two coupled recursive networks linked via Gated Cross-Attention, DSPL achieves deep sequential reasoning without overfitting.',highlights:["Bicameral Latent Space: Functional separation of planning and execution","Gated Cross-Attention Interface coupling Logic and Canvas streams","Addresses compositional drift failure mode of prior recursive models"]}];function BM(){return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx("header",{className:"fixed top-0 w-full z-50 border-b border-border/50 bg-background/80 backdrop-blur-md",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between gap-4 px-6 py-3",children:[d.jsx(Ae,{href:"/","data-testid":"link-home-logo",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("img",{src:Fr,alt:"BitterBot AI",className:"h-7 w-7"}),d.jsxs("span",{className:"font-semibold text-sm tracking-tight",children:[d.jsx(Df,{})," AI"]})]})}),d.jsxs("nav",{className:"flex items-center gap-4",children:[d.jsx(Ae,{href:"/","data-testid":"link-nav-about",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})}),d.jsx(Ae,{href:"/blog","data-testid":"link-nav-blog",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Blog"})}),d.jsx(Ae,{href:"/careers","data-testid":"link-nav-careers",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Careers"})})]})]})}),d.jsx("main",{className:"pt-24 pb-20 px-6",children:d.jsx("div",{className:"max-w-4xl mx-auto",children:d.jsxs(le.div,{initial:"hidden",animate:"visible",variants:VM,children:[d.jsx(le.div,{variants:Rf,custom:0,className:"mb-8",children:d.jsx(Ae,{href:"/","data-testid":"link-back-home",children:d.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:[d.jsx(ja,{className:"w-3.5 h-3.5"}),"Back to About"]})})}),d.jsxs(le.div,{variants:Rf,custom:1,className:"text-center mb-16",children:[d.jsx(Lr,{variant:"outline",className:"text-purple-400 border-purple-500/30 mb-4",children:"Published Research"}),d.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-4","data-testid":"text-research-title",children:["Research"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Papers"})]}),d.jsxs("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:["Peer into the theoretical foundations behind ",d.jsx(Df,{})," AI's architecture. All papers are open access on Zenodo."]})]}),d.jsx("div",{className:"space-y-6",children:FM.map((t,e)=>d.jsx(le.div,{variants:Rf,custom:e+2,children:d.jsx(un,{className:"border-border/50 bg-card/50 overflow-visible hover-elevate","data-testid":`card-paper-${e}`,children:d.jsxs(cn,{className:"p-6 sm:p-8",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[d.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d.jsx(I0,{className:"w-3.5 h-3.5"}),t.date]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d.jsx(uC,{className:"w-3.5 h-3.5"}
8),t.authors.join(", ")]})]}),d.jsx("h2",{className:"text-xl sm:text-2xl font-bold mb-1 leading-snug","data-testid":`text-paper-title-${e}`,children:t.title}),d.jsx("p",{className:"text-sm text-purple-300 font-medium mb-4",children:t.subtitle}),d.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-5",children:t.abstract}),d.jsx("div",{className:"mb-5 space-y-2",children:t.highlights.map((n,i)=>d.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[d.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-purple-400 mt-1.5 flex-shrink-0"}),d.jsx("span",{className:"text-muted-foreground",children:n})]},i))}),d.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[d.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(n=>d.jsx(Lr,{variant:"secondary",className:"text-xs",children:n},n))}),d.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer","data-testid":`link-paper-${e}`,children:d.jsxs(Vt,{size:"sm",className:"gap-2 bg-purple-600 border-purple-500",children:[d.jsx(sC,{className:"w-3.5 h-3.5"}),"Read on Zenodo",d.jsx(L0,{className:"w-3 h-3"})]})})]})]})})},t.url))})]})})}),d.jsx("footer",{className:"border-t border-border/50 py-8 px-6",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex flex-wrap items-center justify-between gap-4 text-xs text-muted-foreground",children:[d.jsxs("span",{children:["© ",new Date().getFullYear()," ",d.jsx(Df,{})," AI. All rights reserved."]}),d.jsx(Ae,{href:"/","data-testid":"link-footer-about",children:d.jsx("span",{className:"hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})})]})})]})}const Mf={hidden:{opacity:0,y:24},visible:t=>({opacity:1,y:0,transition:{delay:t*.1,duration:.5}})},zM={hidden:{},visible:{transition:{staggerChildren:.1}}};function eu(){return d.jsxs("span",{className:"font-bold",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})}const UM=et.object({email:et.string().email("Please enter a valid email address"),name:et.string().optional()});function $M(){const{toast:t}=Sh(),[e,n]=S.useState(!1),i=Pp({resolver:Cp(UM),defaultValues:{email:"",name:""}}),o=wh({mutationFn:async u=>(await bh("POST","/api/newsletter",u)).json(),onSuccess:()=>{n(!0)},onError:u=>{u?.message?.includes("409")?t({title:"Already subscribed",description:"This email is already on our newsletter list."}):t({title:"Something went wrong",description:"Please try again later.",variant:"destructive"})}});function l(u){o.mutate(u)}return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx("header",{className:"fixed top-0 w-full z-50 border-b border-border/50 bg-background/80 backdrop-blur-md",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between gap-4 px-6 py-3",children:[d.jsx(Ae,{href:"/","data-testid":"link-home-logo",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("img",{src:Fr,alt:"BitterBot AI",className:"h-7 w-7"}),d.jsxs("span",{className:"font-semibold text-sm tracking-tight",children:[d.jsx(eu,{})," AI"]})]})}),d.jsxs("nav",{className:"flex items-center gap-4",children:[d.jsx(Ae,{href:"/","data-testid":"link-nav-about",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})}),d.jsx(Ae,{href:"/blog","data-testid":"link-nav-blog",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Blog"})}),d.jsx(Ae,{href:"/careers","data-testid":"link-nav-careers",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Careers"})})]})]})}),d.jsx("main",{className:"pt-24 pb-20 px-6",children:d.jsx("div",{className:"max-w-lg mx-auto",children:d.jsxs(le.div,{initial:"hidden",animate:"visible",variants:zM,children:[d.jsx(le.div,{variants:Mf,custom:0,className:"mb-8",children:d.jsx(Ae,{href:"/","data-testid":"link-back-home",children:d.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:[d.jsx(ja,{className:"w-3.5 h-3.5"}),"Back to About"]})})}),d.jsxs(le.div,{variants:Mf,custom:1,className:"text-center mb-8",children:[d.jsx(Lr,{variant:"outline",className:"text-purple-400 border-purple-500/30 mb-4",children:"Newsletter"}),d.jsxs("h1",{className:"text-3xl sm:text-4xl font-bold tracking-tight mb-3","data-testid":"text-newsletter-title",children:["Stay in the"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Loop"})]}),d.jsxs("p",{className:"text-muted-foreground",children:["Get research updates, product news, and insights from the ",d.jsx(eu,{})," AI team delivered to your inbox."]})]}),e?d.jsx(le.div,{initial:{opacity:0,scale:.95}
8,animate:{opacity:1,scale:1},transition:{duration:.4},children:d.jsx(un,{className:"border-border/50 bg-card/50","data-testid":"card-newsletter-success",children:d.jsxs(cn,{className:"p-8 text-center",children:[d.jsx(kh,{className:"w-12 h-12 text-green-400 mx-auto mb-4"}),d.jsx("h2",{className:"text-xl font-semibold mb-2",children:"You're subscribed!"}),d.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:["Thank you for joining the ",d.jsx(eu,{})," AI newsletter. We'll keep you updated on the latest developments."]}),d.jsx(Ae,{href:"/","data-testid":"link-success-home",children:d.jsx(Vt,{variant:"outline",children:"Back to Home"})})]})})}):d.jsx(le.div,{variants:Mf,custom:2,children:d.jsx(un,{className:"border-border/50 bg-card/50","data-testid":"card-newsletter-form",children:d.jsx(cn,{className:"p-6 sm:p-8",children:d.jsx(Np,{...i,children:d.jsxs("form",{onSubmit:i.handleSubmit(l),className:"space-y-4",children:[d.jsx(Ar,{control:i.control,name:"name",render:({field:u})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Name (optional)"}),d.jsx(sr,{children:d.jsx(fs,{placeholder:"Your name",...u,"data-testid":"input-newsletter-name"})}),d.jsx(ir,{})]})}),d.jsx(Ar,{control:i.control,name:"email",render:({field:u})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Email"}),d.jsx(sr,{children:d.jsx(fs,{type:"email",placeholder:"[email protected]",...u,"data-testid":"input-newsletter-email"})}),d.jsx(ir,{})]})}),d.jsxs(Vt,{type:"submit",className:"w-full gap-2 bg-purple-600 border-purple-500",disabled:o.isPending,"data-testid":"button-newsletter-submit",children:[d.jsx(V0,{className:"w-4 h-4"}),o.isPending?"Subscribing...":"Subscribe to Newsletter"]})]})})})})})]})})}),d.jsx("footer",{className:"border-t border-border/50 py-8 px-6",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex flex-wrap items-center justify-between gap-4 text-xs text-muted-foreground",children:[d.jsxs("span",{children:["© ",new Date().getFullYear()," ",d.jsx(eu,{})," AI. All rights reserved."]}),d.jsx(Ae,{href:"/","data-testid":"link-footer-about",children:d.jsx("span",{className:"hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})})]})})]})}const tu={hidden:{opacity:0,y:24},visible:t=>({opacity:1,y:0,transition:{delay:t*.1,duration:.5}})},WM={hidden:{},visible:{transition:{staggerChildren:.1}}};function Ix(){return d.jsxs("span",{className:"font-bold",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})}const HM=et.object({name:et.string().min(1,"Name is required"),email:et.string().email("Please enter a valid email address"),subject:et.string().min(1,"Subject is required"),message:et.string().min(10,"Message must be at least 10 characters")});function qM(){const{toast:t}=Sh(),[e,n]=S.useState(!1),i=Pp({resolver:Cp(HM),defaultValues:{name:"",email:"",subject:"",message:""}}),o=wh({mutationFn:async u=>(await bh("POST","/api/contact",u)).json(),onSuccess:()=>{n(!0)},onError:()=>{t({title:"Something went wrong",description:"Please try again later.",variant:"destructive"})}});function l(u){o.mutate(u)}return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx("header",{className:"fixed top-0 w-full z-50 border-b border-border/50 bg-background/80 backdrop-blur-md",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between gap-4 px-6 py-3",children:[d.jsx(Ae,{href:"/","data-testid":"link-home-logo",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("img",{src:Fr,alt:"BitterBot AI",className:"h-7 w-7"}),d.jsxs("span",{className:"font-semibold text-sm tracking-tight",children:[d.jsx(Ix,{})," AI"]})]})}),d.jsxs("nav",{className:"flex items-center gap-4",children:[d.jsx(Ae,{href:"/","data-testid":"link-nav-about",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})}),d.jsx(Ae,{href:"/blog","data-testid":"link-nav-blog",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Blog"})}),d.jsx(Ae,{href:"/careers","data-testid":"link-nav-careers",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Careers"})})]})]})}),d.jsx("main",{className:"pt-24 pb-20 px-6",children:d.jsx("div",{className:"max-w-lg mx-auto",children:d.jsxs(le.div,{initial:"hidden",animate:"visible",variants:WM,children:[d.jsx(le.div,{variants:tu,custom:0,className:"mb-8",children:d.jsx(Ae,{href:"/","data-testid":"link-back-home",children:d.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:[d.jsx(ja,{className:"w-3.5 h-3.5"}),"Back to About"]})})}),d.jsxs(le.div,{variants:tu,custom:1,className:"text-center mb-8",children:[d.jsx(Lr,{variant:"outline",className:"text-purple-400 border-purple-500/30 mb-4",children:"Contact"}),d.jsxs("h1",{className:"text-3xl sm:text-4xl font-bold tracking-tight mb-3","data-testid":"text-contact-title",children:["Get in"," ",d.jsx("span",{className:"bg-gradient-to-r from-purple-400 to-violet-400 bg-clip-text text-transparent",children:"Touch"})]}),d.jsx("p",{className:"text-muted-foreground",children:"Have a question, partnership idea, or just want to say hello? We'd love to hear from you."})]}),e?d.jsx(le.div,{initial:{opacity:0,scale:.95}
8,animate:{opacity:1,scale:1},transition:{duration:.4},children:d.jsx(un,{className:"border-border/50 bg-card/50","data-testid":"card-contact-success",children:d.jsxs(cn,{className:"p-8 text-center",children:[d.jsx(kh,{className:"w-12 h-12 text-green-400 mx-auto mb-4"}),d.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Message sent!"}),d.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Thank you for reaching out. Our team will get back to you as soon as possible."}),d.jsx(Ae,{href:"/","data-testid":"link-success-home",children:d.jsx(Vt,{variant:"outline",children:"Back to Home"})})]})})}):d.jsx(le.div,{variants:tu,custom:2,children:d.jsx(un,{className:"border-border/50 bg-card/50","data-testid":"card-contact-form",children:d.jsx(cn,{className:"p-6 sm:p-8",children:d.jsx(Np,{...i,children:d.jsxs("form",{onSubmit:i.handleSubmit(l),className:"space-y-4",children:[d.jsx(Ar,{control:i.control,name:"name",render:({field:u})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Name"}),d.jsx(sr,{children:d.jsx(fs,{placeholder:"Your name",...u,"data-testid":"input-contact-name"})}),d.jsx(ir,{})]})}),d.jsx(Ar,{control:i.control,name:"email",render:({field:u})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Email"}),d.jsx(sr,{children:d.jsx(fs,{type:"email",placeholder:"[email protected]",...u,"data-testid":"input-contact-email"})}),d.jsx(ir,{})]})}),d.jsx(Ar,{control:i.control,name:"subject",render:({field:u})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Subject"}),d.jsx(sr,{children:d.jsx(fs,{placeholder:"What's this about?",...u,"data-testid":"input-contact-subject"})}),d.jsx(ir,{})]})}),d.jsx(Ar,{control:i.control,name:"message",render:({field:u})=>d.jsxs(nr,{children:[d.jsx(rr,{children:"Message"}),d.jsx(sr,{children:d.jsx(vp,{placeholder:"Tell us more...",className:"resize-none min-h-[120px]",...u,"data-testid":"input-contact-message"})}),d.jsx(ir,{})]})}),d.jsxs(Vt,{type:"submit",className:"w-full gap-2 bg-purple-600 border-purple-500",disabled:o.isPending,"data-testid":"button-contact-submit",children:[d.jsx(B0,{className:"w-4 h-4"}),o.isPending?"Sending...":"Send Message"]})]})})})})}),d.jsx(le.div,{variants:tu,custom:3,className:"mt-8 text-center",children:d.jsxs("p",{className:"text-sm text-muted-foreground",children:["You can also reach us directly at"," ",d.jsx("a",{href:"mailto:[email protected]",className:"text-purple-400 hover-elevate px-1 py-0.5 rounded-md","data-testid":"link-contact-email",children:"[email protected]"})]})})]})})}),d.jsx("footer",{className:"border-t border-border/50 py-8 px-6",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex flex-wrap items-center justify-between gap-4 text-xs text-muted-foreground",children:[d.jsxs("span",{children:["© ",new Date().getFullYear()," ",d.jsx(Ix,{})," AI. All rights reserved."]}),d.jsx(Ae,{href:"/","data-testid":"link-footer-about",children:d.jsx("span",{className:"hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})})]})})]})}function KM(){return d.jsxs("span",{className:"font-bold",children:["Bitter",d.jsx("span",{className:"text-purple-400",children:"Bot"})]})}function Yt({children:t}){return d.jsx("h2",{className:"text-lg font-semibold mt-8 mb-3 text-foreground",children:t})}function Wt({children:t}){return d.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-3",children:t})}function Lx({items:t}){return d.jsx("ul",{className:"list-disc pl-5 space-y-1.5 mb-3",children:t.map(e=>d.jsx("li",{className:"text-sm text-muted-foreground leading-relaxed",children:e},e))})}function QM(){return d.jsxs("div",{"data-testid":"content-privacy",children:[d.jsx("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight mb-2","data-testid":"text-legal-title",children:"Privacy Policy"}),d.jsx("p",{className:"text-xs text-muted-foreground mb-6",children:"Last updated: July 30, 2026"}),d.jsx(Wt,{children:'BitterBot AI ("we", "us", or "our") respects your privacy. This Privacy Policy explains what information we collect through this website and the BitterBot desktop application, how we use it, and the choices you have.'}),d.jsx(Yt,{children:"Information We Collect"}),d.jsx(Lx,{items:["Contact information you provide voluntarily, such as your name and email address when you contact us or subscribe to our newsletter.","Basic technical information collected automatically when you visit this website, such as browser type and pages viewed, used only to operate and improve the site."]}),d.jsx(Wt,{children:"The BitterBot desktop application is designed with privacy in mind: your conversations, memories, and data are processed and stored locally on your device. Participation in the peer-to-peer network shares only the information required for federated learning and network operation â never your private conversations or personal files."}),d.jsx(Yt,{children:"How We Use Information"}),d.jsx(Lx,{items:["To respond to your inquiries and provide support.","To send newsletter updates you have opted into. You can unsubscribe at any time.","To operate, maintain, and improve this website and our software."]}),d.jsx(Yt,{children:"Sharing of Information"}),d.jsx(Wt,{children:"We do not sell your personal information. We may share information only with service providers who help us operate this website (under confidentiality obligations) or where required by law."}),d.jsx(Yt,{children:"Data Retention"}),d.jsx(Wt,{children:"We retain personal information only as long as necessary for the purposes described above, or as required by law. You may request deleti
8on of your information at any time."}),d.jsx(Yt,{children:"Your Rights"}),d.jsx(Wt,{children:"Depending on your location, you may have rights to access, correct, delete, or restrict the processing of your personal information. To exercise these rights, contact us using the details below."}),d.jsx(Yt,{children:"Changes to This Policy"}),d.jsx(Wt,{children:'We may update this Privacy Policy from time to time. We will post any changes on this page and update the "Last updated" date above.'}),d.jsx(Yt,{children:"Contact Us"}),d.jsxs(Wt,{children:["If you have questions about this Privacy Policy, please reach out through our"," ",d.jsx(Ae,{href:"/contact",className:"text-purple-400 underline underline-offset-2",children:"contact page"}),"."]})]})}function ZM(){return d.jsxs("div",{"data-testid":"content-terms",children:[d.jsx("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight mb-2","data-testid":"text-legal-title",children:"Terms of Service"}),d.jsx("p",{className:"text-xs text-muted-foreground mb-6",children:"Last updated: July 30, 2026"}),d.jsx(Wt,{children:'These Terms of Service ("Terms") govern your use of the BitterBot AI website and the open-source BitterBot desktop application (collectively, the "Services"). By using the Services, you agree to these Terms.'}),d.jsx(Yt,{children:"Use of the Services"}),d.jsx(Wt,{children:"You may use the Services only in compliance with these Terms and all applicable laws. You agree not to misuse the Services, interfere with their operation, or attempt to access them by any method other than the interfaces we provide."}),d.jsx(Yt,{children:"Open-Source Software"}),d.jsx(Wt,{children:"The BitterBot desktop application is open-source software. Your use of the source code is governed by the license included in the applicable repository. Nothing in these Terms limits or replaces the rights granted to you under that license."}),d.jsx(Yt,{children:"Peer-to-Peer Network"}),d.jsx(Wt,{children:"By running a BitterBot node, you may participate in a peer-to-peer network that supports federated learning and related features. You are responsible for the operation of your own node and for complying with the laws that apply to you."}),d.jsx(Yt,{children:"Intellectual Property"}),d.jsx(Wt,{children:"The BitterBot name, logo, and website content are the property of BitterBot AI unless otherwise noted. Open-source components remain subject to their respective licenses."}),d.jsx(Yt,{children:"Disclaimer of Warranties"}),d.jsx(Wt,{children:'The Services are provided "as is" and "as available" without warranties of any kind, whether express or implied, including warranties of merchantability, fitness for a particular purpose, and non-infringement.'}),d.jsx(Yt,{children:"Limitation of Liability"}),d.jsx(Wt,{children:"To the maximum extent permitted by law, BitterBot AI shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising out of or relating to your use of the Services."}),d.jsx(Yt,{children:"Changes to These Terms"}),d.jsx(Wt,{children:"We may update these Terms from time to time. Continued use of the Services after changes take effect constitutes acceptance of the revised Terms."}),d.jsx(Yt,{children:"Contact Us"}),d.jsxs(Wt,{children:["If you have questions about these Terms, please reach out through our"," ",d.jsx(Ae,{href:"/contact",className:"text-purple-400 underline underline-offset-2",children:"contact page"}),"."]})]})}function GM(){const t=bP(),e=new URLSearchParams(t).get("tab")==="terms"?"terms":"privacy";return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx("header",{className:"fixed top-0 w-full z-50 border-b border-border/50 bg-background/80 backdrop-blur-md",children:d.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between gap-4 px-6 py-3",children:[d.jsx(Ae,{href:"/","data-testid":"link-home-logo",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("img",{src:Fr,alt:"BitterBot AI",className:"h-7 w-7"}),d.jsxs("span",{className:"font-semibold text-sm tracking-tight",children:[d.jsx(KM,{})," AI"]})]})}),d.jsxs("nav",{className:"flex items-center gap-4",children:[d.jsx(Ae,{href:"/","data-testid":"link-nav-about",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"About"})}),d.jsx(Ae,{href:"/blog","data-testid":"link-nav-blog",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Blog"})}),d.jsx(Ae,{href:"/careers","data-testid":"link-nav-careers",children:d.jsx("span",{className:"text-sm text-muted-foreground hover-elevate px-2 py-1 rounded-md cursor-pointer",children:"Careers"})})]})]})}),d.jsx("main",{className:"pt-24 pb-20 px-6",children:d.jsxs(le.div,{initial:{opacity:0,y:24}
8,animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-3xl mx-auto",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-8","data-testid":"tabs-legal",children:[d.jsx(Ae,{href:"/legal?tab=privacy",className:`text-sm px-3 py-1.5 rounded-md border ${e==="privacy"?"border-purple-500/40 bg-purple-500/10 text-purple-300":"border-border/50 text-muted-foreground hover-elevate"}`,"data-testid":"tab-privacy",children:"Privacy Policy"}),d.jsx(Ae,{href:"/legal?tab=terms",className:`text-sm px-3 py-1.5 rounded-md border ${e==="terms"?"border-purple-500/40 bg-purple-500/10 text-purple-300":"border-border/50 text-muted-foreground hover-elevate"}`,"data-testid":"tab-terms",children:"Terms of Service"})]}),e==="terms"?d.jsx(ZM,{}):d.jsx(QM,{})]})})]})}function XM(){return d.jsxs(PP,{children:[d.jsx(is,{path:"/",component:bR}),d.jsx(is,{path:"/careers",component:MM}),d.jsx(is,{path:"/blog",component:LM}),d.jsx(is,{path:"/research",component:BM}),d.jsx(is,{path:"/newsletter",component:$M}),d.jsx(is,{path:"/contact",component:qM}),d.jsx(is,{path:"/legal",component:GM}),d.jsx(is,{component:Pk})]})}function YM(){return d.jsx(ZP,{client:JP,children:d.jsxs(vk,{children:[d.jsx(qC,{}),d.jsx(XM,{})]})})}GT.createRoot(document.getElementById("root")).render(d.jsx(YM,{}));
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.