PageSourceSearch

https://camp-profit-planner.lovable.app/assets/index-BzKIUL5Z.js

js camp-profit-planner.lovable.app collected 2026-10-03 03:22:45 UTC 470,235 bytes, 118 lines download raw bytes

vendor: 5,691 bytes, lines 1-9
1var _h=e=>{throw TypeError(e)};var au=(e,t,n)=>t.has(e)||_h("Cannot "+n);var D=(e,t,n)=>(au(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?_h("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,r)=>(au(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$e=(e,t,n)=>(au(e,t,"access private method"),n);var Li=(e,t,n,r)=>({set _(o){Y(e,t,o,n)},get _(){return D(e,t,r)}});function kS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function ly(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uy={exports:{}},Tl={},cy={exports:{}},J={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var vi=Symbol.for("react.element"),RS=Symbol.for("react.portal"),AS=Symbol.for("react.fragment"),MS=Symbol.for("react.strict_mode"),NS=Symbol.for("react.profiler"),DS=Symbol.for("react.provider"),LS=Symbol.for("react.context"),OS=Symbol.for("react.forward_ref"),jS=Symbol.for("react.suspense"),_S=Symbol.for("react.memo"),IS=Symbol.for("react.lazy"),Ih=Symbol.iterator;function FS(e){return e===null||typeof e!="object"?null:(e=Ih&&e[Ih]||e["@@iterator"],typeof e=="function"?e:null)}var dy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fy=Object.assign,hy={};function ts(e,t,n){this.props=e,this.context=t,this.refs=hy,this.updater=n||dy}ts.prototype.isReactComponent={};ts.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ts.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function py(){}py.prototype=ts.prototype;function Ud(e,t,n){this.props=e,this.context=t,this.refs=hy,this.updater=n||dy}var Wd=Ud.prototype=new py;Wd.constructor=Ud;fy(Wd,ts.prototype);Wd.isPureReactComponent=!0;var Fh=Array.isArray,my=Object.prototype.hasOwnProperty,Hd={current:null},gy={key:!0,ref:!0,__self:!0,__source:!0};function yy(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)my.call(t,r)&&!gy.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:vi,type:e,key:s,ref:i,props:o,_owner:Hd.current}}function VS(e,t){return{$$typeof:vi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Kd(e){return typeof e=="object"&&e!==null&&e.$$typeof===vi}function $S(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vh=/\/+/g;function lu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$S(""+e.key):t.toString(36)}function fa(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case vi:case RS:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+lu(i,0):r,Fh(o)?(n="",e!=null&&(n=e.replace(Vh,"$&/")+"/"),fa(o,t,n,"",function(u){return u})):o!=null&&(Kd(o)&&(o=VS(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Vh,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Fh(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+lu(s,a);i+=fa(s,t,n,l,o)}else if(l=FS(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+lu(s,a++),i+=fa(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Oi(e,t,n){if(e==null)return e;var r=[],o=0;return fa(e,r,"","",function(s){return t.call(n,s,o++)}),r}function zS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},ha={transition:null},BS={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:ha,ReactCurrentOwner:Hd};function vy(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,435 bytes, lines 9-25
9J.Children={map:Oi,forEach:function(e,t,n){Oi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Oi(e,function(){t++}),t},toArray:function(e){return Oi(e,function(t){return t})||[]},only:function(e){if(!Kd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=ts;J.Fragment=AS;J.Profiler=NS;J.PureComponent=Ud;J.StrictMode=MS;J.Suspense=jS;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BS;J.act=vy;J.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=fy({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Hd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)my.call(t,l)&&!gy.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:vi,type:e.type,key:o,ref:s,props:r,_owner:i}};J.createContext=function(e){return e={$$typeof:LS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:DS,_context:e},e.Consumer=e};J.createElement=yy;J.createFactory=function(e){var t=yy.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:OS,render:e}};J.isValidElement=Kd;J.lazy=function(e){return{$$typeof:IS,_payload:{_status:-1,_result:e},_init:zS}};J.memo=function(e,t){return{$$typeof:_S,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=ha.transition;ha.transition={};try{e()}finally{ha.transition=t}};J.unstable_act=vy;J.useCallback=function(e,t){return Je.current.useCallback(e,t)};J.useContext=function(e){return Je.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};J.useEffect=function(e,t){return Je.current.useEffect(e,t)};J.useId=function(){return Je.current.useId()};J.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return Je.current.useMemo(e,t)};J.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};J.useRef=function(e){return Je.current.useRef(e)};J.useState=function(e){return Je.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return Je.current.useTransition()};J.version="18.3.1";cy.exports=J;var v=cy.exports;const _=ly(v),wy=kS({__proto__:null,default:_},[v]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var US=v,WS=Symbol.for("react.element"),HS=Symbol.for("react.fragment"),KS=Object.prototype.hasOwnProperty,GS=US.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YS={key:!0,ref:!0,__self:!0,__source:!0};function xy(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)KS.call(t,r)&&!YS.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:WS,type:e,key:s,ref:i,props:o,_owner:GS.current}}Tl.Fragment=HS;Tl.jsx=xy;Tl.jsxs=xy;uy.exports=Tl;var b=uy.exports,fc={},Sy={exports:{}},gt={},by={exports:{}},Ey={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(k,M){var I=k.length;k.push(M);e:for(;0<I;){var W=I-1>>>1,z=k[W];if(0<o(z,M))k[W]=M,k[I]=z,I=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var M=k[0],I=k.pop();if(I!==M){k[0]=I;e:for(var W=0,z=k.length,Q=z>>>1;W<Q;){var q=2*(W+1)-1,he=k[q],Ne=q+1,ee=k[Ne];if(0>o(he,I))Ne<z&&0>o(ee,he)?(k[W]=ee,k[Ne]=I,W=Ne):(k[W]=he,k[q]=I,W=q);else if(Ne<z&&0>o(ee,I))k[W]=ee,k[Ne]=I,W=Ne;else break e}}return M}function o(k,M){var I=k.sortIndex-M.sortIndex;return I!==0?I:k.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,w=!1,p=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(k){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=k)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(k){if(p=!1,y(k),!w)if(n(l)!==null)w=!0,$(E);else{var M=n(u);M!==null&&K(S,M.startTime-k)}}function E(k,M){w=!1,p&&(p=!1,g(P),P=-1),h=!0;var I=f;try{for(y(M),d=n(l);d!==null&&(!(d.expirationTime>M)||k&&!L());
vendor: 1,978 bytes, line 25
25){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var z=W(d.expirationTime<=M);M=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),y(M)}else r(l);d=n(l)}if(d!==null)var Q=!0;else{var q=n(u);q!==null&&K(S,q.startTime-M),Q=!1}return Q}finally{d=null,f=I,h=!1}}var C=!1,T=null,P=-1,N=5,R=-1;function L(){return!(e.unstable_now()-R<N)}function A(){if(T!==null){var k=e.unstable_now();R=k;var M=!0;try{M=T(!0,k)}finally{M?U():(C=!1,T=null)}}else C=!1}var U;if(typeof m=="function")U=function(){m(A)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,H=j.port2;j.port1.onmessage=A,U=function(){H.postMessage(null)}}else U=function(){x(A,0)};function $(k){T=k,C||(C=!0,U())}function K(k,M){P=x(function(){k(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){w||h||(w=!0,$(E))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var I=f;f=M;try{return k()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,M){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var I=f;f=k;try{return M()}finally{f=I}},e.unstable_scheduleCallback=function(k,M,I){var W=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?W+I:W):I=W,k){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}
vendor: 4,614 bytes, lines 25-33
25return z=I+z,k={id:c++,callback:M,priorityLevel:k,startTime:I,expirationTime:z,sortIndex:-1},I>W?(k.sortIndex=I,t(u,k),n(l)===null&&k===n(u)&&(p?(g(P),P=-1):p=!0,K(S,I-W))):(k.sortIndex=z,t(l,k),w||h||(w=!0,$(E))),k},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(k){var M=f;return function(){var I=f;f=M;try{return k.apply(this,arguments)}finally{f=I}}}})(Ey);by.exports=Ey;var QS=by.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var XS=v,mt=QS;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Cy=new Set,Ws={};function eo(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(Ws[e]=t,e=0;e<t.length;e++)Cy.add(t[e])}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,qS=/^[: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]*$/,$h={},zh={};function ZS(e){return hc.call(zh,e)?!0:hc.call($h,e)?!1:qS.test(e)?zh[e]=!0:($h[e]=!0,!1)}function JS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eb(e,t,n,r){if(t===null||typeof t>"u"||JS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function et(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fe[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gd=/[\-:]([a-z])/g;function Yd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gd,Yd);Fe[t]=new et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gd,Yd);Fe[t]=new et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gd,Yd);Fe[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qd(e,t,n,r){var o=Fe.hasOwnProperty(t)?Fe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eb(t,n,o,r)&&(n=null),r||o===null?ZS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var In=XS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),co=Symbol.for("react.portal"),fo=Symbol.for("react.fragment"),Xd=Symbol.for("react.strict_mode"),pc=Symbol.for("react.profiler"),Ty=Symbol.for("react.provider"),Py=Symbol.for("react.context"),qd=Symbol.for("react.forward_ref"),mc=Symbol.for("react.suspense"),gc=Symbol.for("react.suspense_list"),Zd=Symbol.for("react.memo"),Xn=Symbol.for("react.lazy"),ky=Symbol.for("react.offscreen"),Bh=Symbol.iterator;function ds(e){return e===null||typeof e!="object"?null:(e=Bh&&e[Bh]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,uu;function bs(e){if(uu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);uu=t&&t[1]||""}return`
34`+uu+e}var cu=!1;function du(e,t){if(!e||cu)return"";cu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),s=r.stack.split(`
36`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
37`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bs(e):""}function tb(e){switch(e.tag){case 5:return bs(e.type);case 16:return bs("Lazy");case 13:return bs("Suspense");case 19:return bs("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function yc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fo:return"Fragment";case co:return"Portal";case pc:return"Profiler";case Xd:return"StrictMode";case mc:return"Suspense";case gc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Py:return(e.displayName||"Context")+".Consumer";case Ty:return(e._context.displayName||"Context")+".Provider";case qd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zd:return t=e.displayName||null,t!==null?t:yc(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return yc(e(t))}catch{}}return null}function nb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yc(t);case 8:return t===Xd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ry(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rb(e){var t=Ry(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _i(e){e._valueTracker||(e._valueTracker=rb(e))}function Ay(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ry(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Va(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vc(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function My(e,t){t=t.checked,t!=null&&Qd(e,"checked",t,!1)}function wc(e,t){My(e,t);var n=gr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xc(e,t.type,n):t.hasOwnProperty("defaultValue")&&xc(e,t.type,gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xc(e,t,n){(t!=="number"||Va(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Es=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+gr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Sc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Es(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gr(n)}}function Ny(e,t){var n=gr(t.value),r=gr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Kh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Dy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Dy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ii,Ly=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ii=Ii||document.createElement("div"),Ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hs(e,t){if(t){var n=e.firstChild;
vendor: 10,005 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rs={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},ob=["Webkit","ms","Moz","O"];Object.keys(Rs).forEach(function(e){ob.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rs[t]=Rs[e]})});function Oy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Rs.hasOwnProperty(e)&&Rs[e]?(""+t).trim():t+"px"}function jy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Oy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var sb=xe({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 Ec(e,t){if(t){if(sb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Cc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tc=null;function Jd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pc=null,ko=null,Ro=null;function Gh(e){if(e=Si(e)){if(typeof Pc!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Ml(t),Pc(e.stateNode,e.type,t))}}function _y(e){ko?Ro?Ro.push(e):Ro=[e]:ko=e}function Iy(){if(ko){var e=ko,t=Ro;if(Ro=ko=null,Gh(e),t)for(e=0;e<t.length;e++)Gh(t[e])}}function Fy(e,t){return e(t)}function Vy(){}var fu=!1;function $y(e,t,n){if(fu)return e(t,n);fu=!0;try{return Fy(e,t,n)}finally{fu=!1,(ko!==null||Ro!==null)&&(Vy(),Iy())}}function Ks(e,t){var n=e.stateNode;if(n===null)return null;var r=Ml(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var kc=!1;if(Mn)try{var fs={};Object.defineProperty(fs,"passive",{get:function(){kc=!0}}),window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{kc=!1}function ib(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var As=!1,$a=null,za=!1,Rc=null,ab={onError:function(e){As=!0,$a=e}};function lb(e,t,n,r,o,s,i,a,l){As=!1,$a=null,ib.apply(ab,arguments)}function ub(e,t,n,r,o,s,i,a,l){if(lb.apply(this,arguments),As){if(As){var u=$a;As=!1,$a=null}else throw Error(O(198));za||(za=!0,Rc=u)}}function to(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Yh(e){if(to(e)!==e)throw Error(O(188))}function cb(e){var t=e.alternate;if(!t){if(t=to(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Yh(o),e;if(s===r)return Yh(o),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function By(e){return e=cb(e),e!==null?Uy(e):null}function Uy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Uy(e);if(t!==null)return t;e=e.sibling}return null}var Wy=mt.unstable_scheduleCallback,Qh=mt.unstable_cancelCallback,db=mt.unstable_shouldYield,fb=mt.unstable_requestPaint,Ce=mt.unstable_now,hb=mt.unstable_getCurrentPriorityLevel,ef=mt.unstable_ImmediatePriority,Hy=mt.unstable_UserBlockingPriority,Ba=mt.unstable_NormalPriority,pb=mt.unstable_LowPriority,Ky=mt.unstable_IdlePriority,Pl=null,dn=null;function mb(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(Pl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:vb,gb=Math.log,yb=Math.LN2;function vb(e){return e>>>=0,e===0?32:31-(gb(e)/yb|0)|0}var Fi=64,Vi=4194304;function Cs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ua(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Cs(a):(s&=i,s!==0&&(r=Cs(s)))}else i=n&~o,i!==0?r=Cs(i):s!==0&&(r=Cs(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ut(t),o=1<<n,r|=e[n],t&=~o;return r}function wb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Ut(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=wb(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Ac(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gy(){var e=Fi;return Fi<<=1,!(Fi&4194240)&&(Fi=64),e}function hu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function Sb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ut(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function tf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var se=0;function Yy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qy,nf,Xy,qy,Zy,Mc=!1,$i=[],lr=null,ur=null,cr=null,Gs=new Map,Ys=new Map,Zn=[],bb="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 Xh(e,t){switch(e){case"focusin":case"focusout":lr=null;break;case"dragenter":case"dragleave":ur=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ys.delete(t.pointerId)}}function hs(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Si(t),t!==null&&nf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Eb(e,t,n,r,o){switch(t){case"focusin":return lr=hs(lr,e,t,n,r,o),!0;case"dragenter":return ur=hs(ur,e,t,n,r,o),!0;case"mouseover":return cr=hs(cr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Gs.set(s,hs(Gs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ys.set(s,hs(Ys.get(s)||null,e,t,n,r,o)),!0}return!1}function Jy(e){var t=Dr(e.target);if(t!==null){var n=to(t);if(n!==null){if(t=n.tag,t===13){if(t=zy(n),t!==null){e.blockedOn=t,Zy(e.priority,function(){Xy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tc=r,n.target.dispatchEvent(r),Tc=null}else return t=Si(n),t!==null&&nf(t),e.blockedOn=n,!1;t.shift()}return!0}function qh(e,t,n){pa(e)&&n.delete(t)}function Cb(){Mc=!1,lr!==null&&pa(lr)&&(lr=null),ur!==null&&pa(ur)&&(ur=null),cr!==null&&pa(cr)&&(cr=null),Gs.forEac
vendor: 11,841 bytes, line 37
37h(qh),Ys.forEach(qh)}function ps(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,Cb)))}function Qs(e){function t(o){return ps(o,e)}if(0<$i.length){ps($i[0],e);for(var n=1;n<$i.length;n++){var r=$i[n];r.blockedOn===e&&(r.blockedOn=null)}}for(lr!==null&&ps(lr,e),ur!==null&&ps(ur,e),cr!==null&&ps(cr,e),Gs.forEach(t),Ys.forEach(t),n=0;n<Zn.length;n++)r=Zn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zn.length&&(n=Zn[0],n.blockedOn===null);)Jy(n),n.blockedOn===null&&Zn.shift()}var Ao=In.ReactCurrentBatchConfig,Wa=!0;function Tb(e,t,n,r){var o=se,s=Ao.transition;Ao.transition=null;try{se=1,rf(e,t,n,r)}finally{se=o,Ao.transition=s}}function Pb(e,t,n,r){var o=se,s=Ao.transition;Ao.transition=null;try{se=4,rf(e,t,n,r)}finally{se=o,Ao.transition=s}}function rf(e,t,n,r){if(Wa){var o=Nc(e,t,n,r);if(o===null)Eu(e,t,r,Ha,n),Xh(e,r);else if(Eb(o,e,t,n,r))r.stopPropagation();else if(Xh(e,r),t&4&&-1<bb.indexOf(e)){for(;o!==null;){var s=Si(o);if(s!==null&&Qy(s),s=Nc(e,t,n,r),s===null&&Eu(e,t,r,Ha,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Eu(e,t,r,null,n)}}var Ha=null;function Nc(e,t,n,r){if(Ha=null,e=Jd(r),e=Dr(e),e!==null)if(t=to(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ha=e,null}function ev(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hb()){case ef:return 1;case Hy:return 4;case Ba:case pb:return 16;case Ky:return 536870912;default:return 16}default:return 16}}var sr=null,of=null,ma=null;function tv(){if(ma)return ma;var e,t=of,n=t.length,r,o="value"in sr?sr.value:sr.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return ma=o.slice(e,1<r?1-r:void 0)}function ga(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zi(){return!0}function Zh(){return!1}function yt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?zi:Zh,this.isPropagationStopped=Zh,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zi)},persist:function(){},isPersistent:zi}),t}var ns={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sf=yt(ns),xi=xe({},ns,{view:0,detail:0}),kb=yt(xi),pu,mu,ms,kl=xe({},xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:af,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ms&&(ms&&e.type==="mousemove"?(pu=e.screenX-ms.screenX,mu=e.screenY-ms.screenY):mu=pu=0,ms=e),pu)},movementY:function(e){return"movementY"in e?e.movementY:mu}}),Jh=yt(kl),Rb=xe({},kl,{dataTransfer:0}),Ab=yt(Rb),Mb=xe({},xi,{relatedTarget:0}),gu=yt(Mb),Nb=xe({},ns,{animationName:0,elapsedTime:0,pseudoElement:0}),Db=yt(Nb),Lb=xe({},ns,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ob=yt(Lb),jb=xe({},ns,{data:0}),ep=yt(jb),_b={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ib={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"},Fb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fb[e])?!!t[e]:!1}function af(){return Vb}var $b=xe({},xi,{key:function(e){if(e.key){var t=_b[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ga(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ib[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:af,charCode:function(e){return e.type==="keypress"?ga(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ga(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zb=yt($b),Bb=xe({},kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tp=yt(Bb),Ub=xe({},xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:af}),Wb=yt(Ub),Hb=xe({},ns,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kb=yt(Hb),Gb=xe({},kl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Yb=yt(Gb),Qb=[9,13,27,32],lf=Mn&&"CompositionEvent"in window,Ms=null;Mn&&"documentMode"in document&&(Ms=document.documentMode);var Xb=Mn&&"TextEvent"in window&&!Ms,nv=Mn&&(!lf||Ms&&8<Ms&&11>=Ms),np=" ",rp=!1;function rv(e,t){switch(e){case"keyup":return Qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ov(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function qb(e,t){switch(e){case"compositionend":return ov(t);case"keypress":return t.which!==32?null:(rp=!0,np);case"textInput":return e=t.data,e===np&&rp?null:e;default:return null}}function Zb(e,t){if(ho)return e==="compositionend"||!lf&&rv(e,t)?(e=tv(),ma=of=sr=null,ho=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nv&&t.locale!=="ko"?null:t.data;default:return null}}var Jb={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 op(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jb[e.type]:t==="textarea"}function sv(e,t,n,r){_y(r),t=Ka(t,"onChange"),0<t.length&&(n=new sf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Xs=null;function eE(e){gv(e,0)}function Rl(e){var t=go(e);if(Ay(t))return e}function tE(e,t){if(e==="change")return t}var iv=!1;if(Mn){var yu;if(Mn){var vu="oninput"in document;if(!vu){var sp=document.createElement("div");sp.setAttribute("oninput","return;"),vu=typeof sp.oninput=="function"}yu=vu}else yu=!1;iv=yu&&(!document.documentMode||9<document.documentMode)}function ip(){Ns&&(Ns.detachEvent("onpropertychange",av),Xs=Ns=null)}function av(e){if(e.propertyName==="value"&&Rl(Xs)){var t=[];sv(t,Xs,e,Jd(e)),$y(eE,t)}}function nE(e,t,n){e==="focusin"?(ip(),Ns=t,Xs=n,Ns.attachEvent("onpropertychange",av)):e==="focusout"&&ip()}function rE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rl(Xs)}function oE(e,t){if(e==="click")return Rl(t)}function sE(e,t){if(e==="input"||e==="change")return Rl(t)}function iE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:iE;function qs(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!hc.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function ap(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lp(e,t){var n=ap(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ap(n)}}function lv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uv(){for(var e=window,t=Va();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Va(e.document)}return t}function uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function aE(e){var t=uv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lv(n.ownerDocument.documentElement,n)){if(r!==null&&uf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=lp(n,s);var i=lp(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lE=Mn&&"documentMode"in document&&11>=document.documentMode,po=null,Dc=null,Ds=null,Lc=!1;function up(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lc||po==null||po!==Va(r)||(r=po,"selectionStart"in r&&uf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Ds&&qs(Ds,r)||(Ds=r,r=Ka(Dc,"onSelect"),0<r.length&&(t=new sf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=po)))}function Bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},wu={},cv={};Mn&&(cv=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function Al(e){if(wu[e])return wu[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cv)return wu[e]=t[n];return e}var dv=Al("animationend"),fv=Al("animationiteration"),hv=Al("animationstart"),pv=Al("transitionend"),mv=new Map,cp="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 br(e,t){mv.set(e,t),eo(t,[e])}for(var xu=0;xu<cp.length;xu++){var Su=cp[xu],uE=Su.toLowerCase(),cE=Su[0].toUpperCase()+Su.slice(1);br(uE,"on"+cE)}br(dv,"onAnimationEnd");br(fv,"onAnimationIteration");br(hv,"onAnimationStart");br("dblclick","onDoubleClick");br("focusin","onFocus");br("focusout","onBlur");br(pv,"onTransitionEnd");Uo("onMouseEnter",["mouseout","mouseover"]);Uo("onMouseLeave",["mouseout","mouseover"]);Uo("onPointerEnter",["pointerout","pointerover"]);Uo("onPointerLeave",["pointerout","pointerover"]);eo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));eo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));eo("onBeforeInput",["compositionend","keypress","textInput","paste"]);eo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));eo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));eo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ts="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(" "),dE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ts));function dp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ub(r,t,void 0,e),e.currentTarget=null}function gv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;dp(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;dp(o,a,u),s=l}}}if(za)throw e=Rc,za=!1,Rc=null,e}function ce(e,t){var n=t[Fc];n===void 0&&(n=t[Fc]=new Set);var r=e+"__bubble";n.has(r)||(yv(t,e,2,!1),n.add(r))}function bu(e,t,n){var r=0;t&&(r|=4),yv(n,e,r,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function Zs(e){if(!e[Ui]){e[Ui]=!0,Cy.forEach(function(n){n!=="selectionchange"&&(dE.has(n)||bu(n,!1,e),bu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,bu("selectionchange",!1,t))}}function yv(e,t,n,r){switch(ev(t)){case 1:var o=Tb;break;case 4:o=Pb;break;default:o=rf}n=o.bind(null,t,n,e),o=void 0,!kc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Eu(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 22,113 bytes, lines 37-38
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Dr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}$y(function(){var u=s,c=Jd(n),d=[];e:{var f=mv.get(e);if(f!==void 0){var h=sf,w=e;switch(e){case"keypress":if(ga(n)===0)break e;case"keydown":case"keyup":h=zb;break;case"focusin":w="focus",h=gu;break;case"focusout":w="blur",h=gu;break;case"beforeblur":case"afterblur":h=gu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ab;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Wb;break;case dv:case fv:case hv:h=Db;break;case pv:h=Kb;break;case"scroll":h=kb;break;case"wheel":h=Yb;break;case"copy":case"cut":case"paste":h=Ob;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=tp}var p=(t&4)!==0,x=!p&&e==="scroll",g=p?f!==null?f+"Capture":null:f;p=[];for(var m=u,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,g!==null&&(S=Ks(m,g),S!=null&&p.push(Js(m,S,y)))),x)break;m=m.return}0<p.length&&(f=new h(f,w,null,n,c),d.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Tc&&(w=n.relatedTarget||n.fromElement)&&(Dr(w)||w[Nn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(w=n.relatedTarget||n.toElement,h=u,w=w?Dr(w):null,w!==null&&(x=to(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(h=null,w=u),h!==w)){if(p=Jh,S="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=tp,S="onPointerLeave",g="onPointerEnter",m="pointer"),x=h==null?f:go(h),y=w==null?f:go(w),f=new p(S,m+"leave",h,n,c),f.target=x,f.relatedTarget=y,S=null,Dr(c)===u&&(p=new p(g,m+"enter",w,n,c),p.target=y,p.relatedTarget=x,S=p),x=S,h&&w)t:{for(p=h,g=w,m=0,y=p;y;y=so(y))m++;for(y=0,S=g;S;S=so(S))y++;for(;0<m-y;)p=so(p),m--;for(;0<y-m;)g=so(g),y--;for(;m--;){if(p===g||g!==null&&p===g.alternate)break t;p=so(p),g=so(g)}p=null}else p=null;h!==null&&fp(d,f,h,p,!1),w!==null&&x!==null&&fp(d,x,w,p,!0)}}e:{if(f=u?go(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var E=tE;else if(op(f))if(iv)E=sE;else{E=rE;var C=nE}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=oE);if(E&&(E=E(e,u))){sv(d,E,n,c);break e}C&&C(e,f,u),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&xc(f,"number",f.value)}switch(C=u?go(u):window,e){case"focusin":(op(C)||C.contentEditable==="true")&&(po=C,Dc=u,Ds=null);break;case"focusout":Ds=Dc=po=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,up(d,n,c);break;case"selectionchange":if(lE)break;case"keydown":case"keyup":up(d,n,c)}var T;if(lf)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else ho?rv(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(nv&&n.locale!=="ko"&&(ho||P!=="onCompositionStart"?P==="onCompositionEnd"&&ho&&(T=tv()):(sr=c,of="value"in sr?sr.value:sr.textContent,ho=!0)),C=Ka(u,P),0<C.length&&(P=new ep(P,e,null,n,c),d.push({event:P,listeners:C}),T?P.data=T:(T=ov(n),T!==null&&(P.data=T)))),(T=Xb?qb(e,n):Zb(e,n))&&(u=Ka(u,"onBeforeInput"),0<u.length&&(c=new ep("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=T))}gv(d,t)})}function Js(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ka(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Ks(e,n),s!=null&&r.unshift(Js(e,s,o)),s=Ks(e,t),s!=null&&r.push(Js(e,s,o))),e=e.return}return r}function so(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fp(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Ks(n,s),l!=null&&i.unshift(Js(n,l,a))):o||(l=Ks(n,s),l!=null&&i.push(Js(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var fE=/\r\n?/g,hE=/\u0000|\uFFFD/g;function hp(e){return(typeof e=="string"?e:""+e).replace(fE,`
38`).replace(hE,"")}function Wi(e,t,n){if(t=hp(t),hp(e)!==t&&n)throw Error(O(425))}function Ga(){}var Oc=null,jc=null;function _c(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ic=typeof setTimeout=="function"?setTimeout:void 0,pE=typeof clearTimeout=="function"?clearTimeout:void 0,pp=typeof Promise=="function"?Promise:void 0,mE=typeof queueMicrotask=="function"?queueMicrotask:typeof pp<"u"?function(e){return pp.resolve(null).then(e).catch(gE)}:Ic;function gE(e){setTimeout(function(){throw e})}function Cu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Qs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Qs(t)}function dr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var rs=Math.random().toString(36).slice(2),ln="__reactFiber$"+rs,ei="__reactProps$"+rs,Nn="__reactContainer$"+rs,Fc="__reactEvents$"+rs,yE="__reactListeners$"+rs,vE="__reactHandles$"+rs;function Dr(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mp(e);e!==null;){if(n=e[ln])return n;e=mp(e)}return t}e=n,n=e.parentNode}return null}function Si(e){return e=e[ln]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function go(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Ml(e){return e[ei]||null}var Vc=[],yo=-1;function Er(e){return{current:e}}function fe(e){0>yo||(e.current=Vc[yo],Vc[yo]=null,yo--)}function le(e,t){yo++,Vc[yo]=e.current,e.current=t}var yr={},He=Er(yr),st=Er(!1),Gr=yr;function Wo(e,t){var n=e.type.contextTypes;if(!n)return yr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function it(e){return e=e.childContextTypes,e!=null}function Ya(){fe(st),fe(He)}function gp(e,t,n){if(He.current!==yr)throw Error(O(168));le(He,t),le(st,n)}function vv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,nb(e)||"Unknown",o));return xe({},n,r)}function Qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yr,Gr=He.current,le(He,e),le(st,st.current),!0}function yp(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=vv(e,t,Gr),r.__reactInternalMemoizedMergedChildContext=e,fe(st),fe(He),le(He,e)):fe(st),le(st,n)}var Tn=null,Nl=!1,Tu=!1;function wv(e){Tn===null?Tn=[e]:Tn.push(e)}function wE(e){Nl=!0,wv(e)}function Cr(){if(!Tu&&Tn!==null){Tu=!0;var e=0,t=se;try{var n=Tn;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tn=null,Nl=!1}catch(o){throw Tn!==null&&(Tn=Tn.slice(e+1)),Wy(ef,Cr),o}finally{se=t,Tu=!1}}return null}var vo=[],wo=0,Xa=null,qa=0,bt=[],Et=0,Yr=null,kn=1,Rn="";function Ar(e,t){vo[wo++]=qa,vo[wo++]=Xa,Xa=e,qa=t}function xv(e,t,n){bt[Et++]=kn,bt[Et++]=Rn,bt[Et++]=Yr,Yr=e;var r=kn;e=Rn;var o=32-Ut(r)-1;r&=~(1<<o),n+=1;var s=32-Ut(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,kn=1<<32-Ut(t)+o|n<<o|r,Rn=s+e}else kn=1<<s|n<<o|r,Rn=e}function cf(e){e.return!==null&&(Ar(e,1),xv(e,1,0))}function df(e){for(;e===Xa;)Xa=vo[--wo],vo[wo]=null,qa=vo[--wo],vo[wo]=null;for(;e===Yr;)Yr=bt[--Et],bt[Et]=null,Rn=bt[--Et],bt[Et]=null,kn=bt[--Et],bt[Et]=null}var ht=null,ft=null,me=!1,Bt=null;function Sv(e,t){var n=Ct(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function vp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,ft=dr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Yr!==null?{id:kn,overflow:Rn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,ft=null,!0):!1;default:return!1}}function $c(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zc(e){if(me){var t=ft;if(t){var n=t;if(!vp(e,t)){if($c(e))throw Error(O(418));t=dr(n.nextSibling);var r=ht;t&&vp(e,t)?Sv(r,n):(e.flags=e.flags&-4097|2,me=!1,ht=e)}}else{if($c(e))throw Error(O(418));e.flags=e.flags&-4097|2,me=!1,ht=e}}}function wp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function Hi(e){if(e!==ht)return!1;if(!me)return wp(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_c(e.type,e.memoizedProps)),t&&(t=ft)){if($c(e))throw bv(),Error(O(418));for(;t;)Sv(e,t),t=dr(t.nextSibling)}if(wp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ft=dr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ft=null}}else ft=ht?dr(e.stateNode.nextSibling):null;return!0}function bv(){for(var e=ft;e;)e=dr(e.nextSibling)}function Ho(){ft=ht=null,me=!1}function ff(e){Bt===null?Bt=[e]:Bt.push(e)}var xE=In.ReactCurrentBatchConfig;function gs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xp(e){var t=e._init;return t(e._payload)}function Ev(e){function t(g,m){if(e){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function o(g,m){return g=mr(g,m),g.index=0,g.sibling=null,g}function s(g,m,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,m,y,S){return m===null||m.tag!==6?(m=Du(y,g.mode,S),m.return=g,m):(m=o(m,y),m.return=g,m)}function l(g,m,y,S){var E=y.type;return E===fo?c(g,m,y.props.children,S,y.key):m!==null&&(m.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Xn&&xp(E)===m.type)?(S=o(m,y.props),S.ref=gs(g,m,y),S.return=g,S):(S=Ea(y.type,y.key,y.props,null,g.mode,S),S.ref=gs(g,m,y),S.return=g,S)}function u(g,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Lu(y,g.mode,S),m.return=g,m):(m=o(m,y.children||[]),m.return=g,m)}function c(g,m,y,S,E){return m===null||m.tag!==7?(m=Wr(y,g.mode,S,E),m.return=g,m):(m=o(m,y),m.return=g,m)}function d(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Du(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ji:return y=Ea(m.type,m.key,m.props,null,g.mode,y),y.ref=gs(g,null,m),y.return=g,y;case co:return m=Lu(m,g.mode,y),m.return=g,m;case Xn:var S=m._init;return d(g,S(m._payload),y)}if(Es(m)||ds(m))return m=Wr(m,g.mode,y,null),m.return=g,m;Ki(g,m)}return null}function f(g,m,y,S){var E=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(g,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ji:return y.key===E?l(g,m,y,S):null;case co:return y.key===E?u(g,m,y,S):null;case Xn:return E=y._init,f(g,m,E(y._payload),S)}if(Es(y)||ds(y))return E!==null?null:c(g,m,y,S,null);Ki(g,y)}return null}function h(g,m,y,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(y)||null,a(m,g,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ji:return g=g.get(S.key===null?y:S.key)||null,l(m,g,S,E);case co:return g=g.get(S.key===null?y:S.key)||null,u(m,g,S,E);case Xn:var C=S._init;return h(g,m,y,C(S._payload),E)}if(Es(S)||ds(S))return g=g.get(y)||null,c(m,g,S,E,null);Ki(m,S)}return null}function w(g,m,y,S){for(var E=null,C=null,T=m,P=m=0,N=null;T!==null&&P<y.length;P++){T.index>P?(N=T,T=null):N=T.sibling;var R=f(g,T,y[P],S);if(R===null){T===null&&(T=N);break}e&&T&&R.alternate===null&&t(g,T),m=s(R,m,P),C===null?E=R:C.sibling=R,C=R,T=N}if(P===y.length)return n(g,T),me&&Ar(g,P),E;if(T===null){for(;P<y.length;P++)T=d(g,y[P],S),T!==null&&(m=s(T,m,P),C===null?E=T:C.sibling=T,C=T);return me&&Ar(g,P),E}for(T=r(g,T);P<y.length;P++)N=h(T,g,P,y[P],S),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?P:N.key),m=s(N,m,P),C===null?E=N:C.sibling=N,C=N);return e&&T.forEach(function(L){return t(g,L)}),me&&Ar(g,P),E}function p(g,m,y,S){var E=ds(y);if(typeof E!="function")throw Error(O(150));if(y=E.call(y),y==null)throw Error(O(151));for(var C=E=null,T=m,P=m=0,N=null,R=y.next();T!==null&&!R.done;P++,R=y.next()){T.index>P?(N=T,T=null):N=T.sibling;var L=f(g,T,R.value,S);if(L===null){T===null&&(T=N);break}e&&T&&L.alternate===null&&t(g,T),m=s(L,m,P),C===null?E=L:C.sibling=L,C=L,T=N}if(R.done)return n(g,T),me&&Ar(g,P),E;if(T===null){for(;!R.done;P++,R=y.next())R=d(g,R.value,S),R!==null&&(m=s(R,m,P),C===null?E=R:C.sibling=R,C=R);return me&&Ar(g,P),E}for(T=r(g,T);!R.done;P++,R=y.next())R=h(T,g,P,R.value,S),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?P:R.key),m=s(R,m,P),C===null?E=R:C.sibling=R,C=R);return e&&T.forEach(function(A){return t(g,A)}),me&&Ar(g,P),E}function x(g,m,y,S){if(typeof y=="object"&&y!==null&&y.type===fo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ji:e:{for(var E=y.key,C=m;C!==null;){if(C.key===E){if(E=y.type,E===fo){if(C.tag===7){n(g,C.sibling),m=o(C,y.props.children),m.return=g,g=m;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Xn&&xp(E)===C.type){n(g,C.sibling),m=o(C,y.props),m.ref=gs(g,C,y),m.return=g,g=m;break e}n(g,C);break}else t(g,C);C=C.sibling}y.type===fo?(m=Wr(y.props.children,g.mode,S,y.key),m.return=g,g=m):(S=Ea(y.type,y.key,y.props,null,g.mode,S),S.ref=gs(g,m,y),S.return=g,g=S)}return i(g);case co:e:{for(C=y.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=o(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Lu(y,g.mode,S),m.return=g,g=m}return i(g);case Xn:return C=y._init,x(g,m,C(y._payload),S)}if(Es(y))return w(g,m,y,S);if(ds(y))return p(g,m,y,S);Ki(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,y),m.return=g,g=m):(n(g,m),m=Du(y,g.mode,S),m.return=g,g=m),i(g)):n(g,m)}return x}var Ko=Ev(!0),Cv=Ev(!1),Za=Er(null),Ja=null,xo=null,hf=null;function pf(){hf=xo=Ja=null}function mf(e){var t=Za.current;fe(Za),e._currentValue=t}function Bc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Ja=e,hf=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(hf!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if(Ja===null)throw Error(O(308));xo=e,Ja.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Lr=null;function gf(e){Lr===null?Lr=[e]:Lr.push(e)}function Tv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,gf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qn=!1;function yf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Dn(e,n)}return o=r.interleaved,o===null?(t.next=t,gf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Dn(e,n)}function ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tf(e,n)}}function Sp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function el(e,t,n,r){var o=e.updateQueue;qn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,p=a;switch(f=t,h=n,p.tag){case 1:if(w=p.payload,typeof w=="function"){d=w.call(h,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=p.payload,f=typeof w=="function"?w.call(h,d,f):w,f==null)break e;d=xe({},d,f);break e;case 2:qn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,i|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Xr|=i,e.lanes=i,e.memoizedState=d}}function bp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(O(191,o));o.call(r)}}}var bi={},fn=Er(bi),ti=Er(bi),ni=Er(bi);function Or(e){if(e===bi)throw Error(O(174));return e}function vf(e,t){switch(le(ni,t),le(ti,e),le(fn,bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}fe(fn),le(fn,t)}function Go(){fe(fn),fe(ti),fe(ni)}function kv(e){Or(ni.current);var t=Or(fn.current),n=bc(t,e.type);t!==n&&(le(ti,e),le(fn,n))}function wf(e){ti.current===e&&(fe(fn),fe(ti))}var ve=Er(0);function tl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pu=[];function xf(){for(var e=0;e<Pu.length;e++)Pu[e]._workInProgressVersionPrimary=null;Pu.length=0}var va=In.ReactCurrentDispatcher,ku=In.ReactCurrentBatchConfig,Qr=0,we=null,Ae=null,De=null,nl=!1,Ls=!1,ri=0,SE=0;function ze(){throw Error(O(321))}function Sf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function bf(e,t,n,r,o,s){if(Qr=s,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,va.current=e===null||e.memoizedState===null?TE:PE,e=n(r,o),Ls){s=0;do{if(Ls=!1,ri=0,25<=s)throw Error(O(301));s+=1,De=Ae=null,t.updateQueue=null,va.current=kE,e=n(r,o)}while(Ls)}if(va.current=rl,t=Ae!==null&&Ae.next!==null,Qr=0,De=Ae=we=null,nl=!1,t)throw Error(O(300));return e}function Ef(){var e=ri!==0;return ri=0,e}function tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?we.memoizedState=De=e:De=De.next=e,De}
vendor: 6,192 bytes, line 38
38function At(){if(Ae===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=De===null?we.memoizedState:De.next;if(t!==null)De=t,Ae=e;else{if(e===null)throw Error(O(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},De===null?we.memoizedState=De=e:De=De.next=e}return De}function oi(e,t){return typeof t=="function"?t(e):t}function Ru(e){var t=At(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Ae,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var c=u.lane;if((Qr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,we.lanes|=c,Xr|=c}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,Kt(r,t.memoizedState)||(ot=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,we.lanes|=s,Xr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Au(e){var t=At(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Kt(s,t.memoizedState)||(ot=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Rv(){}function Av(e,t){var n=we,r=At(),o=t(),s=!Kt(r.memoizedState,o);if(s&&(r.memoizedState=o,ot=!0),r=r.queue,Cf(Dv.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,si(9,Nv.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(O(349));Qr&30||Mv(n,t,o)}return o}function Mv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Nv(e,t,n,r){t.value=n,t.getSnapshot=r,Lv(t)&&Ov(e)}function Dv(e,t,n){return n(function(){Lv(t)&&Ov(e)})}function Lv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Ov(e){var t=Dn(e,1);t!==null&&Wt(t,e,1,-1)}function Ep(e){var t=tn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=CE.bind(null,we,e),[t.memoizedState,e]}function si(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function jv(){return At().memoizedState}function wa(e,t,n,r){var o=tn();we.flags|=e,o.memoizedState=si(1|t,n,void 0,r===void 0?null:r)}function Dl(e,t,n,r){var o=At();r=r===void 0?null:r;var s=void 0;if(Ae!==null){var i=Ae.memoizedState;if(s=i.destroy,r!==null&&Sf(r,i.deps)){o.memoizedState=si(t,n,s,r);return}}we.flags|=e,o.memoizedState=si(1|t,n,s,r)}function Cp(e,t){return wa(8390656,8,e,t)}function Cf(e,t){return Dl(2048,8,e,t)}function _v(e,t){return Dl(4,2,e,t)}function Iv(e,t){return Dl(4,4,e,t)}function Fv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vv(e,t,n){return n=n!=null?n.concat([e]):null,Dl(4,4,Fv.bind(null,t,e),n)}function Tf(){}function $v(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zv(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Bv(e,t,n){return Qr&21?(Kt(n,t)||(n=Gy(),we.lanes|=n,Xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=n)}function bE(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=ku.transition;ku.transition={};try{e(!1),t()}finally{se=n,ku.transition=r}}function Uv(){return At().memoizedState}function EE(e,t,n){var r=pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wv(e))Hv(t,n);else if(n=Tv(e,t,n,r),n!==null){var o=qe();Wt(n,e,r,o),Kv(n,t,r)}}function CE(e,t,n){var r=pr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wv(e))Hv(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Kt(a,i)){var l=t.interleaved;l===null?(o.next=o,gf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Tv(e,t,o,r),n!==null&&(o=qe(),Wt(n,e,r,o),Kv(n,t,r))}}function Wv(e){var t=e.alternate;return e===we||t!==null&&t===we}function Hv(e,t){Ls=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tf(e,n)}}var rl={readContext:Rt,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},TE={readContext:Rt,useCallback:function(e,t){return tn().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Cp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wa(4194308,4,Fv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=tn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EE.bind(null,we,e),[r.memoizedState,e]}
vendor: 5,090 bytes, lines 38-40
38,useRef:function(e){var t=tn();return e={current:e},t.memoizedState=e},useState:Ep,useDebugValue:Tf,useDeferredValue:function(e){return tn().memoizedState=e},useTransition:function(){var e=Ep(!1),t=e[0];return e=bE.bind(null,e[1]),tn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,o=tn();if(me){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Le===null)throw Error(O(349));Qr&30||Mv(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Cp(Dv.bind(null,r,s,e),[e]),r.flags|=2048,si(9,Nv.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=tn(),t=Le.identifierPrefix;if(me){var n=Rn,r=kn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ri++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=SE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},PE={readContext:Rt,useCallback:$v,useContext:Rt,useEffect:Cf,useImperativeHandle:Vv,useInsertionEffect:_v,useLayoutEffect:Iv,useMemo:zv,useReducer:Ru,useRef:jv,useState:function(){return Ru(oi)},useDebugValue:Tf,useDeferredValue:function(e){var t=At();return Bv(t,Ae.memoizedState,e)},useTransition:function(){var e=Ru(oi)[0],t=At().memoizedState;return[e,t]},useMutableSource:Rv,useSyncExternalStore:Av,useId:Uv,unstable_isNewReconciler:!1},kE={readContext:Rt,useCallback:$v,useContext:Rt,useEffect:Cf,useImperativeHandle:Vv,useInsertionEffect:_v,useLayoutEffect:Iv,useMemo:zv,useReducer:Au,useRef:jv,useState:function(){return Au(oi)},useDebugValue:Tf,useDeferredValue:function(e){var t=At();return Ae===null?t.memoizedState=e:Bv(t,Ae.memoizedState,e)},useTransition:function(){var e=Au(oi)[0],t=At().memoizedState;return[e,t]},useMutableSource:Rv,useSyncExternalStore:Av,useId:Uv,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Uc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ll={isMounted:function(e){return(e=e._reactInternals)?to(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qe(),o=pr(e),s=An(r,o);s.payload=t,n!=null&&(s.callback=n),t=fr(e,s,o),t!==null&&(Wt(t,e,o,r),ya(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qe(),o=pr(e),s=An(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=fr(e,s,o),t!==null&&(Wt(t,e,o,r),ya(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qe(),r=pr(e),o=An(n,r);o.tag=2,t!=null&&(o.callback=t),t=fr(e,o,r),t!==null&&(Wt(t,e,r,n),ya(t,e,r))}};function Tp(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!qs(n,r)||!qs(o,s):!0}function Gv(e,t,n){var r=!1,o=yr,s=t.contextType;return typeof s=="object"&&s!==null?s=Rt(s):(o=it(t)?Gr:He.current,r=t.contextTypes,s=(r=r!=null)?Wo(e,o):yr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ll,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Pp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ll.enqueueReplaceState(t,t.state,null)}function Wc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},yf(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Rt(s):(s=it(t)?Gr:He.current,o.context=Wo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Uc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ll.enqueueReplaceState(o,o.state,null),el(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Yo(e,t){try{var n="",r=t;do n+=tb(r),r=r.return;while(r);var o=n}catch(s){o=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Mu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Hc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var RE=typeof WeakMap=="function"?WeakMap:Map;function Yv(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sl||(sl=!0,td=r),Hc(e,t)},n}function Qv(e,t,n){n=An(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Hc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Hc(e,t),typeof r!="function"&&(hr===null?hr=ne
vendor: 10,519 bytes, line 40
40w Set([this]):hr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function kp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new RE;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=BE.bind(null,e,t,n),t.then(e,e))}function Rp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ap(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=An(-1,1),t.tag=2,fr(n,t,1))),n.lanes|=1),e)}var AE=In.ReactCurrentOwner,ot=!1;function Ge(e,t,n,r){t.child=e===null?Cv(t,null,n,r):Ko(t,e.child,n,r)}function Mp(e,t,n,r,o){n=n.render;var s=t.ref;return Mo(t,o),r=bf(e,t,n,r,s,o),n=Ef(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ln(e,t,o)):(me&&n&&cf(t),t.flags|=1,Ge(e,t,r,o),t.child)}function Np(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Lf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Xv(e,t,s,r,o)):(e=Ea(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:qs,n(i,r)&&e.ref===t.ref)return Ln(e,t,o)}return t.flags|=1,e=mr(s,r),e.ref=t.ref,e.return=t,t.child=e}function Xv(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(qs(s,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(ot=!0);else return t.lanes=e.lanes,Ln(e,t,o)}return Kc(e,t,n,r,o)}function qv(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(bo,ct),ct|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(bo,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,le(bo,ct),ct|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,le(bo,ct),ct|=r;return Ge(e,t,o,n),t.child}function Zv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kc(e,t,n,r,o){var s=it(n)?Gr:He.current;return s=Wo(t,s),Mo(t,o),n=bf(e,t,n,r,s,o),r=Ef(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ln(e,t,o)):(me&&r&&cf(t),t.flags|=1,Ge(e,t,n,o),t.child)}function Dp(e,t,n,r,o){if(it(n)){var s=!0;Qa(t)}else s=!1;if(Mo(t,o),t.stateNode===null)xa(e,t),Gv(t,n,r),Wc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Rt(u):(u=it(n)?Gr:He.current,u=Wo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Pp(t,i,r,u),qn=!1;var f=t.memoizedState;i.state=f,el(t,r,i,o),l=t.memoizedState,a!==r||f!==l||st.current||qn?(typeof c=="function"&&(Uc(t,n,c,r),l=t.memoizedState),(a=qn||Tp(t,n,a,r,f,l,u))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Pv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:It(t.type,a),i.props=u,d=t.pendingProps,f=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Rt(l):(l=it(n)?Gr:He.current,l=Wo(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Pp(t,i,r,l),qn=!1,f=t.memoizedState,i.state=f,el(t,r,i,o);var w=t.memoizedState;a!==d||f!==w||st.current||qn?(typeof h=="function"&&(Uc(t,n,h,r),w=t.memoizedState),(u=qn||Tp(t,n,u,r,f,w,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Gc(e,t,n,r,s,o)}function Gc(e,t,n,r,o,s){Zv(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&yp(t,n,!1),Ln(e,t,s);r=t.stateNode,AE.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ko(t,e.child,null,s),t.child=Ko(t,null,a,s)):Ge(e,t,a,s),t.memoizedState=r.state,o&&yp(t,n,!0),t.child}function Jv(e){var t=e.stateNode;t.pendingContext?gp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gp(e,t.context,!1),vf(e,t.containerInfo)}function Lp(e,t,n,r,o){return Ho(),ff(o),t.flags|=256,Ge(e,t,n,r),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:null,transitions:null}}function e0(e,t,n){var r=t.pendingProps,o=ve.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),le(ve,o&1),e===null)return zc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=_l(i,r,0,null),e=Wr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Qc(n),t.memoizedState=Yc,e):Pf(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return ME(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=mr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=mr(a,s):(s=Wr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?Qc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Yc,r}return s=e.child,e=s.sibling,r=mr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pf(e,t){return t=_l({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gi(e,t,n,r){return r!==null&&ff(r),Ko(t,e.child,null,n),e=Pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ME(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Mu(Error(O(422))),Gi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=_l({mode:"visible",children:r.children},o,0,null),s=Wr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ko(t,e.child,null,i),t.child.memoizedState=Qc(i),t.memoizedState=Yc,s);if(!(t.mode&1))return Gi(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=Mu(s,r,void 0),Gi(e,t,i,r)}if(a=(i&e.childLanes)!==0,ot||a){if(r=Le,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Dn(e,o),Wt(r,e,o,-1))}return Df(),r=Mu(Error(O(421))),Gi(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=UE.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ft=dr(o.nextSibling),ht=t,me=!0,Bt=null,e!==null&&(bt[Et++]=kn,bt[Et++]=Rn,bt[Et++]=Yr,kn=e.id,Rn=e.overflow,Yr=t),t=Pf(t,r.children),t.flags|=4096,t)}function Op(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bc(e.return,t,n)}function Nu(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function t0(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Ge(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Op(e,n,t);else if(e.tag===19)Op(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(ve,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&tl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Nu(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&tl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Nu(t,!0,n,null,s);break;case"together":Nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=mr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NE(e,t,n){switch(t.tag){case 3:Jv(t),Ho();break;case 5:kv(t);break;case 1:it(t.type)&&Qa(t);break;case 4:vf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;le(Za,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?e0(e,t,n):(le(ve,ve.current&1),e=Ln(e,t,n),e!==null?e.sibling:null);le(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return t0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),le(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,qv(e,t,n)}return Ln(e,t,n)}var n0,Xc,r0,o0;n0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xc=function(){};r0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Or(fn.current);var s=null;switch(n){case"input":o=vc(e,o),r=vc(e,r),s=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),s=[];break;case"textarea":o=Sc(e,o),r=Sc(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ga)}Ec(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ws.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ws.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ce("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};o0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ys(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function DE(e,t,n){var r=t.pendingProps;switch(df(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return it(t.type)&&Ya(),Be(t),null;case 3:return r=t.stateNode,Go(),fe(st),fe(He),xf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(od(Bt),Bt=null))),Xc(e,t),Be(t),null;case 5:wf(t);var o=Or(ni.current);if(n=t.type,e!==null&&t.stateNode!=null)r0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Be(t),null}if(e=Or(fn.current),Hi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ln]=t,r[ei]=s,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(o=0;o<Ts.length;o++)ce(Ts[o],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":Uh(r,s),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ce("invalid",r);break;case"textarea":Hh(r,s),ce("invalid",r)}Ec(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];
vendor: 28,896 bytes, line 40
40i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Wi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Wi(r.textContent,a,e),o=["children",""+a]):Ws.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ce("scroll",r)}switch(n){case"input":_i(r),Wh(r,s,!0);break;case"textarea":_i(r),Kh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ga)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Dy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ln]=t,e[ei]=r,n0(e,t,!1,!1),t.stateNode=e;e:{switch(i=Cc(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ts.length;o++)ce(Ts[o],e);o=r;break;case"source":ce("error",e),o=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),o=r;break;case"details":ce("toggle",e),o=r;break;case"input":Uh(e,r),o=vc(e,r),ce("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Hh(e,r),o=Sc(e,r),ce("invalid",e);break;default:o=r}Ec(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?jy(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ly(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Hs(e,l):typeof l=="number"&&Hs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ws.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ce("scroll",e):l!=null&&Qd(e,s,l,i))}switch(n){case"input":_i(e),Wh(e,r,!1);break;case"textarea":_i(e),Kh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Po(e,!!r.multiple,s,!1):r.defaultValue!=null&&Po(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ga)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)o0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Or(ni.current),Or(fn.current),Hi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ln]=t,(s=r.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:Wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ln]=t,t.stateNode=r}return Be(t),null;case 13:if(fe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&ft!==null&&t.mode&1&&!(t.flags&128))bv(),Ho(),t.flags|=98560,s=!1;else if(s=Hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[ln]=t}else Ho(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else Bt!==null&&(od(Bt),Bt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Me===0&&(Me=3):Df())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return Go(),Xc(e,t),e===null&&Zs(t.stateNode.containerInfo),Be(t),null;case 10:return mf(t.type._context),Be(t),null;case 17:return it(t.type)&&Ya(),Be(t),null;case 19:if(fe(ve),s=t.memoizedState,s===null)return Be(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)ys(s,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=tl(e),i!==null){for(t.flags|=128,ys(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(ve,ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ce()>Qo&&(t.flags|=128,r=!0,ys(s,!1),t.lanes=4194304)}else{if(!r)if(e=tl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ys(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!me)return Be(t),null}else 2*Ce()-s.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,ys(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ce(),t.sibling=null,n=ve.current,le(ve,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return Nf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function LE(e,t){switch(df(t),t.tag){case 1:return it(t.type)&&Ya(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),fe(st),fe(He),xf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wf(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Go(),null;case 10:return mf(t.type._context),null;case 22:case 23:return Nf(),null;case 24:return null;default:return null}}var Yi=!1,We=!1,OE=typeof WeakSet=="function"?WeakSet:Set,F=null;function So(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function qc(e,t,n){try{n()}catch(r){be(e,t,r)}}var jp=!1;function jE(e,t){if(Oc=Wa,e=uv(),uf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=i),f===s&&++c===r&&(l=i),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(jc={focusedElem:e,selectionRange:n},Wa=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var p=w.memoizedProps,x=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?p:It(t.type,p),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){be(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return w=jp,jp=!1,w}function Os(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&qc(t,n,s)}o=o.next}while(o!==r)}}function Ol(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Zc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function s0(e){var t=e.alternate;t!==null&&(e.alternate=null,s0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[ei],delete t[Fc],delete t[yE],delete t[vE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function i0(e){return e.tag===5||e.tag===3||e.tag===4}function _p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ga));else if(r!==4&&(e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function ed(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ed(e,t,n),e=e.sibling;e!==null;)ed(e,t,n),e=e.sibling}var Oe=null,zt=!1;function Un(e,t,n){for(n=n.child;n!==null;)a0(e,t,n),n=n.sibling}function a0(e,t,n){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 5:We||So(n,t);case 6:var r=Oe,o=zt;Oe=null,Un(e,t,n),Oe=r,zt=o,Oe!==null&&(zt?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(zt?(e=Oe,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),Qs(e)):Cu(Oe,n.stateNode));break;case 4:r=Oe,o=zt,Oe=n.stateNode.containerInfo,zt=!0,Un(e,t,n),Oe=r,zt=o;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&qc(n,t,i),o=o.next}while(o!==r)}Un(e,t,n);break;case 1:if(!We&&(So(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,Un(e,t,n),We=r):Un(e,t,n);break;default:Un(e,t,n)}}function Ip(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OE),t.forEach(function(r){var o=WE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Oe=a.stateNode,zt=!1;break e;case 3:Oe=a.stateNode.containerInfo,zt=!0;break e;case 4:Oe=a.stateNode.containerInfo,zt=!0;break e}a=a.return}if(Oe===null)throw Error(O(160));a0(s,i,o),Oe=null,zt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){be(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)l0(t,e),t=t.sibling}function l0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Lt(t,e),Jt(e),r&4){try{Os(3,e,e.return),Ol(3,e)}catch(p){be(e,e.return,p)}try{Os(5,e,e.return)}catch(p){be(e,e.return,p)}}break;case 1:Lt(t,e),Jt(e),r&512&&n!==null&&So(n,n.return);break;case 5:if(Lt(t,e),Jt(e),r&512&&n!==null&&So(n,n.return),e.flags&32){var o=e.stateNode;try{Hs(o,"")}catch(p){be(e,e.return,p)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&My(o,s),Cc(a,i);var u=Cc(a,s);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?jy(o,d):c==="dangerouslySetInnerHTML"?Ly(o,d):c==="children"?Hs(o,d):Qd(o,c,d,u)}switch(a){case"input":wc(o,s);break;case"textarea":Ny(o,s);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Po(o,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?Po(o,!!s.multiple,s.defaultValue,!0):Po(o,!!s.multiple,s.multiple?[]:"",!1))}o[ei]=s}catch(p){be(e,e.return,p)}}break;case 6:if(Lt(t,e),Jt(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(p){be(e,e.return,p)}}break;case 3:if(Lt(t,e),Jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qs(t.containerInfo)}catch(p){be(e,e.return,p)}break;case 4:Lt(t,e),Jt(e);break;case 13:Lt(t,e),Jt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Af=Ce())),r&4&&Ip(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(We=(u=We)||c,Lt(t,e),We=u):Lt(t,e),Jt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(f=F,h=f.child,f.tag){case 0:case 11:case 14:case 15:Os(4,f,f.return);break;case 1:So(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(p){be(r,n,p)}}break;case 5:So(f,f.return);break;case 22:if(f.memoizedState!==null){Vp(d);continue}}h!==null?(h.return=f,F=h):Vp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Oy("display",i))}catch(p){be(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){be(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Lt(t,e),Jt(e),r&4&&Ip(e);break;case 21:break;default:Lt(t,e),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(i0(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Hs(o,""),r.flags&=-33);var s=_p(e);ed(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=_p(e);Jc(e,a,i);break;default:throw Error(O(161))}}catch(l){be(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _E(e,t,n){F=e,u0(e)}function u0(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Yi;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||We;a=Yi;var u=We;if(Yi=i,(We=l)&&!u)for(F=o;F!==null;)i=F,l=i.child,i.tag===22&&i.memoizedState!==null?$p(o):l!==null?(l.return=i,F=l):$p(o);for(;s!==null;)F=s,u0(s),s=s.sibling;F=o,Yi=a,We=u}Fp(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,F=s):Fp(e)}}function Fp(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:We||Ol(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&bp(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bp(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Qs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}We||t.flags&512&&Zc(t)}catch(f){be(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Vp(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function $p(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ol(4,t)}catch(l){be(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){be(t,o,l)}}var s=t.return;try{Zc(t)}catch(l){be(t,s,l)}break;case 5:var i=t.return;try{Zc(t)}catch(l){be(t,i,l)}}}catch(l){be(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var IE=Math.ceil,ol=In.ReactCurrentDispatcher,kf=In.ReactCurrentOwner,Pt=In.ReactCurrentBatchConfig,te=0,Le=null,ke=null,Ie=0,ct=0,bo=Er(0),Me=0,ii=null,Xr=0,jl=0,Rf=0,js=null,rt=null,Af=0,Qo=1/0,Cn=null,sl=!1,td=null,hr=null,Qi=!1,ir=null,il=0,_s=0,nd=null,Sa=-1,ba=0;function qe(){return te&6?Ce():Sa!==-1?Sa:Sa=Ce()}function pr(e){return e.mode&1?te&2&&Ie!==0?Ie&-Ie:xE.transition!==null?(ba===0&&(ba=Gy()),ba):(e=se,e!==0||(e=window.event,e=e===void 0?16:ev(e.type)),e):1}function Wt(e,t,n,r){if(50<_s)throw _s=0,nd=null,Error(O(185));wi(e,n,r),(!(te&2)||e!==Le)&&(e===Le&&(!(te&2)&&(jl|=n),Me===4&&Jn(e,Ie)),at(e,r),n===1&&te===0&&!(t.mode&1)&&(Qo=Ce()+500,Nl&&Cr()))}function at(e,t){var n=e.callbackNode;xb(e,t);var r=Ua(e,e===Le?Ie:0);if(r===0)n!==null&&Qh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qh(n),t===1)e.tag===0?wE(zp.bind(null,e)):wv(zp.bind(null,e)),mE(function(){!(te&6)&&Cr()}),n=null;else{switch(Yy(r)){case 1:n=ef;break;case 4:n=Hy;break;case 16:n=Ba;break;case 536870912:n=Ky;break;default:n=Ba}n=y0(n,c0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function c0(e,t){if(Sa=-1,ba=0,te&6)throw Error(O(327));var n=e.callbackNode;if(No()&&e.callbackNode!==n)return null;var r=Ua(e,e===Le?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=al(e,r);else{t=r;var o=te;te|=2;var s=f0();(Le!==e||Ie!==t)&&(Cn=null,Qo=Ce()+500,Ur(e,t));do try{$E();break}catch(a){d0(e,a)}while(!0);pf(),ol.current=s,te=o,ke!==null?t=0:(Le=null,Ie=0,t=Me)}if(t!==0){if(t===2&&(o=Ac(e),o!==0&&(r=o,t=rd(e,o))),t===1)throw n=ii,Ur(e,0),Jn(e,r),at(e,Ce()),n;if(t===6)Jn(e,r);else{if(o=e.current.alternate,!(r&30)&&!FE(o)&&(t=al(e,r),t===2&&(s=Ac(e),s!==0&&(r=s,t=rd(e,s))),t===1))throw n=ii,Ur(e,0),Jn(e,r),at(e,Ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Mr(e,rt,Cn);break;case 3:if(Jn(e,r),(r&130023424)===r&&(t=Af+500-Ce(),10<t)){if(Ua(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){qe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ic(Mr.bind(null,e,rt,Cn),t);break}Mr(e,rt,Cn);break;case 4:if(Jn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Ut(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*IE(r/1960))-r,10<r){e.timeoutHandle=Ic(Mr.bind(null,e,rt,Cn),r);break}Mr(e,rt,Cn);break;case 5:Mr(e,rt,Cn);break;default:throw Error(O(329))}}}return at(e,Ce()),e.callbackNode===n?c0.bind(null,e):null}function rd(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(Ur(e,t).flags|=256),e=al(e,t),e!==2&&(t=rt,rt=n,t!==null&&od(t)),e}function od(e){rt===null?rt=e:rt.push.apply(rt,e)}function FE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Kt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jn(e,t){for(t&=~Rf,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function zp(e){if(te&6)throw Error(O(327));No();var t=Ua(e,0);if(!(t&1))return at(e,Ce()),null;var n=al(e,t);if(e.tag!==0&&n===2){var r=Ac(e);r!==0&&(t=r,n=rd(e,r))}if(n===1)throw n=ii,Ur(e,0),Jn(e,t),at(e,Ce()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mr(e,rt,Cn),at(e,Ce()),null}function Mf(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Qo=Ce()+500,Nl&&Cr())}}function qr(e){ir!==null&&ir.tag===0&&!(te&6)&&No();var t=te;te|=1;var n=Pt.transition,r=se;try{if(Pt.transition=null,se=1,e)return e()}finally{se=r,Pt.transition=n,te=t,!(te&6)&&Cr()}}function Nf(){ct=bo.current,fe(bo)}function Ur(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pE(n)),ke!==null)for(n=ke.return;n!==null;){var r=n;switch(df(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ya();break;case 3:Go(),fe(st),fe(He),xf();break;case 5:wf(r);break;case 4:Go();break;case 13:fe(ve);break;case 19:fe(ve);break;case 10:mf(r.type._context);break;case 22:case 23:Nf()}n=n.return}if(Le=e,ke=e=mr(e.current,null),Ie=ct=t,Me=0,ii=null,Rf=jl=Xr=0,rt=js=null,Lr!==null){for(t=0;t<Lr.length;t++)if(n=Lr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}Lr=null}return e}function d0(e,t){do{var n=ke;try{if(pf(),va.current=rl,nl){for(var r=we.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}nl=!1}if(Qr=0,De=Ae=we=null,Ls=!1,ri=0,kf.current=null,n===null||n.return===null){Me=1,ii=t,ke=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Ie,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Rp(i);if(h!==null){h.flags&=-257,Ap(h,i,a,s,t),h.mode&1&&kp(s,u,t),t=h,l=u;var w=t.updateQueue;if(w===null){var p=new Set;p.add(l),t.updateQueue=p}else w.add(l);break e}else{if(!(t&1)){kp(s,u,t),Df();break e}l=Error(O(426))}}else if(me&&a.mode&1){var x=Rp(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ap(x,i,a,s,t),ff(Yo(l,a));break e}}s=l=Yo(l,a),Me!==4&&(Me=2),js===null?js=[s]:js.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Yv(s,l,t);Sp(s,g);break e;case 1:a=l;var m=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(hr===null||!hr.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Qv(s,a,t);Sp(s,S);break e}}s=s.return}while(s!==null)}p0(n)}catch(E){t=E,ke===n&&n!==null&&(ke=n=n.return);continue}break}while(!0)}function f0(){var e=ol.current;return ol.current=rl,e===null?rl:e}function Df(){(Me===0||Me===3||Me===2)&&(Me=4),Le===null||!(Xr&268435455)&&!(jl&268435455)||Jn(Le,Ie)}function al(e,t){var n=te;te|=2;var r=f0();(Le!==e||Ie!==t)&&(Cn=null,Ur(e,t));do try{VE();break}catch(o){d0(e,o)}while(!0);if(pf(),te=n,ol.current=r,ke!==null)throw Error(O(261));return Le=null,Ie=0,Me}function VE(){for(;ke!==null;)h0(ke)}function $E(){for(;ke!==null&&!db();)h0(ke)}function h0(e){var t=g0(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?p0(e):ke=t,kf.current=null}function p0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=LE(n,t),n!==null){n.flags&=32767,ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,ke=null;return}}else if(n=DE(n,t,ct),n!==null){ke=n;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);Me===0&&(Me=5)}function Mr(e,t,n){var r=se,o=Pt.transition;try{Pt.transition=null,se=1,zE(e,t,n,r)}finally{Pt.transition=o,se=r}return null}function zE(e,t,n,r){do No();while(ir!==null);if(te&6)throw Error(O(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Sb(e,s),e===Le&&(ke=Le=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qi||(Qi=!0,y0(Ba,function(){return No(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pt.transition,Pt.transition=null;var i=se;se=1;var a=te;te|=4,kf.current=null,jE(e,n),l0(n,e),aE(jc),Wa=!!Oc,jc=Oc=null,e.current=n,_E(n),fb(),te=a,se=i,Pt.transition=s}else e.current=n;if(Qi&&(Qi=!1,ir=e,il=o),s=e.pendingLanes,s===0&&(hr=null),mb(n.stateNode),at(e,Ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(sl)throw sl=!1,e=td,td=null,e;return il&1&&e.tag!==0&&No(),s=e.pendingLanes,s&1?e===nd?_s++:(_s=0,nd=e):_s=0,Cr(),null}function No(){if(ir!==null){var e=Yy(il),t=Pt.transition,n=se;try{if(Pt.transition=null,se=16>e?16:e,ir===null)var r=!1;else{if(e=ir,ir=null,il=0,te&6)throw Error(O(331));var o=te;for(te|=4,F=e.current;F!==null;){var s=F,i=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Os(8,c,s)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var f=c.sibling,h=c.return;if(s0(c),c===u){F=null;break}if(f!==null){f.return=h,F=f;break}F=h}}}var w=s.alternate;if(w!==null){var p=w.child;if(p!==null){w.child=null;do{var x=p.sibling;p.sibling=null,p=x}while(p!==null)}}F=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,F=i;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Os(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,F=g;break e}F=s.return}}var m=e.current;for(F=m;F!==null;){i=F;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,F=y;else e:for(i=m;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ol(9,a)}}catch(E){be(a,a.return,E)}if(a===i){F=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,F=S;break e}F=a.return}}if(te=o,Cr(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(Pl,e)}catch{}r=!0}return r}finally{se=n,Pt.transition=t}}return!1}function Bp(e,t,n){t=Yo(n,t),t=Yv(e,t,1),e=fr(e,t,1),t=qe(),e!==null&&(wi(e,1,t),at(e,t))}function be(e,t,n){if(e.tag===3)Bp(e,e,n);else for(;t!==null;){if(t.tag===3){Bp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hr===null||!hr.has(r))){e=Yo(n,e),e=Qv(t,e,1),t=fr(t,e,1),e=qe(),t!==null&&(wi(t,1,e),at(t,e));break}}t=t.return}}function BE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qe(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ie&n)===n&&(Me===4||Me===3&&(Ie&130023424)===Ie&&500>Ce()-Af?Ur(e,0):Rf|=n),at(e,t)}function m0(e,t){t===0&&(e.mode&1?(t=Vi,Vi<<=1,!(Vi&130023424)&&(Vi=4194304)):t=1);var n=qe();e=Dn(e,t),e!==null&&(wi(e,t,n),at(e,n))}function UE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),m0(e,n)}function WE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),m0(e,n)}var g0;g0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,NE(e,t,n);ot=!!(e.flags&131072)}else ot=!1,me&&t.flags&1048576&&xv(t,qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xa(e,t),e=t.pendingProps;var o=Wo(t,He.current);Mo(t,n),o=bf(null,t,r,e,o,n);var s=Ef();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(s=!0,Qa(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,yf(t),o.updater=Ll,t.stateNode=o,o._reactInternals=t,Wc(t,r,e,n),t=Gc(null,t,r,!0,s,n)):(t.tag=0,me&&s&&cf(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=KE(r),e=It(r,e),o){case 0:t=Kc(null,t,r,e,n);break e;case 1:t=Dp(null,t,r,e,n);break e;case 11:t=Mp(null,t,r,e,n);break e;case 14:t=Np(null,t,r,It(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Kc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Dp(e,t,r,o,n);case 3:e:{if(Jv(t),e===null)throw Error(O(387));
vendor: 5,689 bytes, line 40
40r=t.pendingProps,s=t.memoizedState,o=s.element,Pv(e,t),el(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Yo(Error(O(423)),t),t=Lp(e,t,r,n,o);break e}else if(r!==o){o=Yo(Error(O(424)),t),t=Lp(e,t,r,n,o);break e}else for(ft=dr(t.stateNode.containerInfo.firstChild),ht=t,me=!0,Bt=null,n=Cv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ho(),r===o){t=Ln(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return kv(t),e===null&&zc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,_c(r,o)?i=null:s!==null&&_c(r,s)&&(t.flags|=32),Zv(e,t),Ge(e,t,i,n),t.child;case 6:return e===null&&zc(t),null;case 13:return e0(e,t,n);case 4:return vf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Mp(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,le(Za,r._currentValue),r._currentValue=i,s!==null)if(Kt(s.value,i)){if(s.children===o.children&&!st.current){t=Ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=An(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Bc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(O(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Bc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Rt(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=It(r,t.pendingProps),o=It(r.type,o),Np(e,t,r,o,n);case 15:return Xv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),xa(e,t),t.tag=1,it(r)?(e=!0,Qa(t)):e=!1,Mo(t,n),Gv(t,r,o),Wc(t,r,o,n),Gc(null,t,r,!0,e,n);case 19:return t0(e,t,n);case 22:return qv(e,t,n)}throw Error(O(156,t.tag))};function y0(e,t){return Wy(e,t)}function HE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,r){return new HE(e,t,n,r)}function Lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KE(e){if(typeof e=="function")return Lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qd)return 11;if(e===Zd)return 14}return 2}function mr(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ea(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Lf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case fo:return Wr(n.children,o,s,t);case Xd:i=8,o|=8;break;case pc:return e=Ct(12,n,t,o|2),e.elementType=pc,e.lanes=s,e;case mc:return e=Ct(13,n,t,o),e.elementType=mc,e.lanes=s,e;case gc:return e=Ct(19,n,t,o),e.elementType=gc,e.lanes=s,e;case ky:return _l(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ty:i=10;break e;case Py:i=9;break e;case qd:i=11;break e;case Zd:i=14;break e;case Xn:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Wr(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=ky,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Lu(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hu(0),this.expirationTimes=hu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Of(e,t,n,r,o,s,i,a,l){return e=new GE(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yf(s),e}
vendor: 4,676 bytes, line 40
40function YE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:co,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function v0(e){if(!e)return yr;e=e._reactInternals;e:{if(to(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(it(n))return vv(e,n,t)}return t}function w0(e,t,n,r,o,s,i,a,l){return e=Of(n,r,!0,e,o,s,i,a,l),e.context=v0(null),n=e.current,r=qe(),o=pr(n),s=An(r,o),s.callback=t??null,fr(n,s,o),e.current.lanes=o,wi(e,o,r),at(e,r),e}function Il(e,t,n,r){var o=t.current,s=qe(),i=pr(o);return n=v0(n),t.context===null?t.context=n:t.pendingContext=n,t=An(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fr(o,t,i),e!==null&&(Wt(e,o,i,s),ya(e,o,i)),i}function ll(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jf(e,t){Up(e,t),(e=e.alternate)&&Up(e,t)}function QE(){return null}var x0=typeof reportError=="function"?reportError:function(e){console.error(e)};function _f(e){this._internalRoot=e}Fl.prototype.render=_f.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Il(e,t,null,null)};Fl.prototype.unmount=_f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qr(function(){Il(null,e,null,null)}),t[Nn]=null}};function Fl(e){this._internalRoot=e}Fl.prototype.unstable_scheduleHydration=function(e){if(e){var t=qy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zn.length&&t!==0&&t<Zn[n].priority;n++);Zn.splice(n,0,e),n===0&&Jy(e)}};function If(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wp(){}function XE(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=ll(i);s.call(u)}}var i=w0(t,r,e,0,null,!1,!1,"",Wp);return e._reactRootContainer=i,e[Nn]=i.current,Zs(e.nodeType===8?e.parentNode:e),qr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=ll(l);a.call(u)}}var l=Of(e,0,!1,null,null,!1,!1,"",Wp);return e._reactRootContainer=l,e[Nn]=l.current,Zs(e.nodeType===8?e.parentNode:e),qr(function(){Il(t,l,n,r)}),l}function $l(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=ll(i);a.call(l)}}Il(t,i,e,o)}else i=XE(n,t,e,o,r);return ll(i)}Qy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cs(t.pendingLanes);n!==0&&(tf(t,n|1),at(t,Ce()),!(te&6)&&(Qo=Ce()+500,Cr()))}break;case 13:qr(function(){var r=Dn(e,1);if(r!==null){var o=qe();Wt(r,e,1,o)}}),jf(e,1)}};nf=function(e){if(e.tag===13){var t=Dn(e,134217728);if(t!==null){var n=qe();Wt(t,e,134217728,n)}jf(e,134217728)}};Xy=function(e){if(e.tag===13){var t=pr(e),n=Dn(e,t);if(n!==null){var r=qe();Wt(n,e,t,r)}jf(e,t)}};qy=function(){return se};Zy=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};Pc=function(e,t,n){switch(t){case"input":if(wc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ml(r);if(!o)throw Error(O(90));Ay(r),wc(r,o)}}}break;case"textarea":Ny(e,n);break;case"select":t=n.value,t!=null&&Po(e,!!n.multiple,t,!1)}};Fy=Mf;Vy=qr;var qE={usingClientEntryPoint:!1,Events:[Si,go,Ml,_y,Iy,Mf]},vs={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ZE={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:In.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=By(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||QE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xi.isDisabled&&Xi.supportsFiber)try{Pl=Xi.inject(ZE),dn=Xi}catch{}}gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qE;gt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!If(t))throw Error(O(200));return YE(e,t,null,n)};gt.createRoot=function(e,t){if(!If(e))throw Error(O(299));var n=!1,r="",o=x0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Of(e,1,!1,null,null,n,!1,r,o),e[Nn]=t.current,Zs(e.nodeType===8?e.parentNode:e),new _f(t)};gt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=By(t),e=e===null?null:e.stateNode,e};gt.flushSync=function(e){return qr(e)};gt.hydrate=function(e,t,n){if(!Vl(t))throw Error(O(200));return $l(null,e,t,!0,n)};gt.hydrateRoot=function(e,t,n){if(!If(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=x0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=w0(t,null,e,1,n??null,o,!1,s,i),e[Nn]=t.current,Zs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Fl(t)};gt.render=function(e,t,n){if(!Vl(t))throw Error(O(200));return $l(null,e,t,!1,n)};gt.unmountComponentAtNode=function(e){if(!Vl(e))throw Error(O(40));return e._reactRootContainer?(qr(function(){$l(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};gt.unstable_batchedUpdates=Mf;gt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return $l(e,t,n,!1,r)};gt.version="18.3.1-next-f1338f8080-20240426";function S0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S0)}catch(e){console.error(e)}}S0(),Sy.exports=gt;var Ei=Sy.exports;const b0=ly(Ei);var Hp=Ei;fc.createRoot=Hp.createRoot,fc.hydrateRoot=Hp.hydrateRoot;const JE=1,eC=1e6;let Ou=0;function tC(){return Ou=(Ou+1)%Number.MAX_SAFE_INTEGER,Ou.toString()}const ju=new Map,Kp=e=>{if(ju.has(e))return;const t=setTimeout(()=>{ju.delete(e),Is({type:"REMOVE_TOAST",toastId:e})},eC);ju.set(e,t)},nC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,JE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Kp(n):e.toasts.forEach(r=>{Kp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ca=[];let Ta={toasts:[]};function Is(e){Ta=nC(Ta,e),Ca.forEach(t=>{t(Ta)})}function rC({...e}){const t=tC(),n=o=>Is({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Is({type:"DISMISS_TOAST",toastId:t});return Is({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function oC(){const[e,t]=v.useState(Ta);return v.useEffect(()=>(Ca.push(t),()=>{const n=Ca.indexOf(t);n>-1&&Ca.splice(n,1)}),[e]),{...e,toast:rC,dismiss:n=>Is({type:"DISMISS_TOAST",toastId:n})}}function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Gp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function E0(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Gp(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Gp(e[o],null)}}}}function Ze(...e){return v.useCallback(E0(...e),e)}function sC(e,t){const n=v.createContext(t),r=s=>{const{children:i,...a}=s,l=v.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=v.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ci(e,t=[]){let n=[];function r(s,i){const a=v.createContext(i),l=n.length;n=[...n,i];const u=d=>{var g;const{scope:f,children:h,...w}=d,p=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,x=v.useMemo(()=>w,Object.values(w));return b.jsx(p.Provider,{value:x,children:h})};u.displayName=s+"Provider";function c(d,f){var p;const h=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,w=v.useContext(h);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const o=()=>{const s=n.map(i=>v.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,iC(o,...t)]}function iC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ai(e){const t=lC(e),n=v.forwardRef((r,o)=>{const{children:s,...i}=r,a=v.Children.toArray(s),l=a.find(cC);if(l){const u=l.props.children,c=a.map(d=>d===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return b.jsx(t,{...i,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return b.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var aC=ai("Slot");function lC(e){const t=v.forwardRef((n,r)=>{const{children:o,...s}=n;
vendor: 9,475 bytes, line 40
40if(v.isValidElement(o)){const i=fC(o),a=dC(s,o.props);return o.type!==v.Fragment&&(a.ref=r?E0(r,i):i),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var C0=Symbol("radix.slottable");function uC(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=C0,t}function cC(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===C0}function dC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function hC(e){const t=e+"CollectionProvider",[n,r]=Ci(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:x,children:g}=p,m=_.useRef(null),y=_.useRef(new Map).current;return b.jsx(o,{scope:x,itemMap:y,collectionRef:m,children:g})};i.displayName=t;const a=e+"CollectionSlot",l=ai(a),u=_.forwardRef((p,x)=>{const{scope:g,children:m}=p,y=s(a,g),S=Ze(x,y.collectionRef);return b.jsx(l,{ref:S,children:m})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ai(c),h=_.forwardRef((p,x)=>{const{scope:g,children:m,...y}=p,S=_.useRef(null),E=Ze(x,S),C=s(c,g);return _.useEffect(()=>(C.itemMap.set(S,{ref:S,...y}),()=>void C.itemMap.delete(S))),b.jsx(f,{[d]:"",ref:E,children:m})});h.displayName=c;function w(p){const x=s(e+"CollectionConsumer",p);return _.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((C,T)=>y.indexOf(C.ref.current)-y.indexOf(T.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},w,r]}var pC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=pC.reduce((e,t)=>{const n=ai(`Primitive.${t}`),r=v.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function T0(e,t){e&&Ei.flushSync(()=>e.dispatchEvent(t))}function mn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function mC(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gC="DismissableLayer",sd="dismissableLayer.update",yC="dismissableLayer.pointerDownOutside",vC="dismissableLayer.focusOutside",Yp,P0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=v.useContext(P0),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),w=Ze(t,T=>d(T)),p=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(x),m=c?p.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=g,E=xC(T=>{const P=T.target,N=[...u.branches].some(R=>R.contains(P));!S||N||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},f),C=SC(T=>{const P=T.target;[...u.branches].some(R=>R.contains(P))||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},f);return mC(T=>{m===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Qp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Yp)}},[c,f,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Qp())},[c,u]),v.useEffect(()=>{const T=()=>h({});return document.addEventListener(sd,T),()=>document.removeEventListener(sd,T)},[]),b.jsx(Te.div,{...l,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,E.onPointerDownCapture)})});zl.displayName=gC;var wC="DismissableLayerBranch",k0=v.forwardRef((e,t)=>{const n=v.useContext(P0),r=v.useRef(null),o=Ze(t,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(Te.div,{...e,ref:o})});k0.displayName=wC;function xC(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){R0(yC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SC(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!r.current&&R0(vC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Qp(){const e=new CustomEvent(sd);document.dispatchEvent(e)}function R0(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?T0(o,s):o.dispatchEvent(s)}var bC=zl,EC=k0,On=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},CC="Portal",Ff=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=v.useState(!1);On(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?b0.createPortal(b.jsx(Te.div,{...r,ref:t}),i):null});Ff.displayName=CC;function TC(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var os=e=>{const{present:t,children:n}=e,r=PC(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),s=Ze(r.ref,kC(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:s}):null};os.displayName="Presence";function PC(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),s=v.useRef("none"),i=e?"mounted":"unmounted",[a,l]=TC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=qi(r.current);s.current=a==="mounted"?u:"none"},[a]),On(()=>{const u=r.current,c=o.current;if(c!==e){const f=s.current,h=qi(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),On(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const p=qi(r.current).includes(h.animationName);if(h.target===t&&p&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=h=>{h.target===t&&(s.current=qi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qi(e){return(e==null?void 0:e.animationName)||"none"}function kC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var RC=wy[" useInsertionEffect ".trim().toString()]||On;function A0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=AC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=v.useCallback(c=>{var d;if(a){const f=MC(c)?c(e):c;f!==e&&((d=i.current)==null||d.call(i,f))}else s(c)}
40,[a,e,s,i]);return[l,u]}function AC({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),s=v.useRef(t);return RC(()=>{s.current=t},[t]),v.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function MC(e){return typeof e=="function"}var NC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),DC="VisuallyHidden",Bl=v.forwardRef((e,t)=>b.jsx(Te.span,{...e,ref:t,style:{...NC,...e.style}}));Bl.displayName=DC;var LC=Bl,Vf="ToastProvider",[$f,OC,jC]=hC("Toast"),[M0,cO]=Ci("Toast",[jC]),[_C,Ul]=M0(Vf),N0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=v.useState(null),[u,c]=v.useState(0),d=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Vf}\`. Expected non-empty \`string\`.`),b.jsx($f.Provider,{scope:t,children:b.jsx(_C,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:i})})};N0.displayName=Vf;var D0="ToastViewport",IC=["F8"],id="toast.viewportPause",ad="toast.viewportResume",L0=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=IC,label:o="Notifications ({hotkey})",...s}=e,i=Ul(D0,n),a=OC(n),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=Ze(t,d,i.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=i.toastCount>0;v.useEffect(()=>{const x=g=>{var y;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),v.useEffect(()=>{const x=l.current,g=d.current;if(w&&x&&g){const m=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(id);g.dispatchEvent(C),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(ad);g.dispatchEvent(C),i.isClosePausedRef.current=!1}},S=C=>{!x.contains(C.relatedTarget)&&y()},E=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",m),x.addEventListener("focusout",S),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",E),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[w,i.isClosePausedRef]);const p=v.useCallback(({tabbingDirection:x})=>{const m=a().map(y=>{const S=y.ref.current,E=[S,...XC(S)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return v.useEffect(()=>{const x=d.current;if(x){const g=m=>{var E,C,T;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const P=document.activeElement,N=m.shiftKey;if(m.target===x&&N){(E=u.current)==null||E.focus();return}const A=p({tabbingDirection:N?"backwards":"forwards"}),U=A.findIndex(j=>j===P);_u(A.slice(U+1))?m.preventDefault():N?(C=u.current)==null||C.focus():(T=c.current)==null||T.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[a,p]),b.jsxs(EC,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&b.jsx(ld,{ref:u,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"forwards"});_u(x)}}),b.jsx($f.Slot,{scope:n,children:b.jsx(Te.ol,{tabIndex:-1,...s,ref:f})}),w&&b.jsx(ld,{ref:c,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"backwards"});_u(x)}})]})});L0.displayName=D0;var O0="ToastFocusProxy",ld=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Ul(O0,n);return b.jsx(Bl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});ld.displayName=O0;var Ti="Toast",FC="toast.swipeStart",VC="toast.swipeMove",$C="toast.swipeCancel",zC="toast.swipeEnd",j0=v.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=A0({prop:r,defaultProp:o??!0,onChange:s,caller:Ti});return b.jsx(os,{present:n||a,children:b.jsx(WC,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:mn(e.onPause),onResume:mn(e.onResume),onSwipeStart:ge(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ge(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});j0.displayName=Ti;var[BC,UC]=M0(Ti,{onClose(){}}),WC=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...w}=e,p=Ul(Ti,n),[x,g]=v.useState(null),m=Ze(t,j=>g(j)),y=v.useRef(null),S=v.useRef(null),E=o||p.duration,C=v.useRef(0),T=v.useRef(E),P=v.useRef(0),{onToastAdd:N,onToastRemove:R}=p,L=mn(()=>{var H;(x==null?void 0:x.contains(document.activeElement))&&((H=p.viewport)==null||H.focus()),i()}),A=v.useCallback(j=>{!j||j===1/0||(window.clearTimeout(P.current),C.current=new Date().getTime(),P.current=window.setTimeout(L,j))},[L]);v.useEffect(()=>{const j=p.viewport;if(j){const H=()=>{A(T.current),u==null||u()},$=()=>{const K=new Date().getTime()-C.current;T.current=T.current-K,window.clearTimeout(P.current),l==null||l()};return j.addEventListener(id,$),j.addEventListener(ad,H),()=>{j.removeEventListener(id,$),j.removeEventListener(ad,H)}}},[p.viewport,E,l,u,A]),v.useEffect(()=>{s&&!p.isClosePausedRef.current&&A(E)},[s,E,p.isClosePausedRef,A]),v.useEffect(()=>(N(),()=>R()),[N,R]);const U=v.useMemo(()=>x?B0(x):null,[x]);return p.viewport?b.jsxs(b.Fragment,{children:[U&&b.jsx(HC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),b.jsx(BC,{scope:n,onClose:L,children:Ei.createPortal(b.jsx($f.ItemSlot,{scope:n,children:b.jsx(bC,{asChild:!0,onEscapeKeyDown:ge(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||L(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(Te.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...w,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ge(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:ge(e.onPointerDown,j=>{j.button===0&&(y.current={x:j.clientX,y:j.clientY})}),onPointerMove:ge(e.onPointerMove,j=>{if(!y.current)return;const H=j.clientX-y.current.x,$=j.clientY-y.current.y,K=!!S.current,k=["left","right"].includes(p.swipeDirection),M=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,I=k?M(0,H):0,W=k?0:M(0,$),z=j.pointerType==="touch"?10:2,Q={x:I,y:W},q={originalEvent:j,delta:Q};K?(S.current=Q,Zi(VC,d,q,{discrete:!1})):Xp(Q,p.swipeDirection,z)?(S.current=Q,Zi(FC,c,q,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(H)>z||Math.abs($)>z)&&(y.current=null)}),onPointerUp:ge(e.onPointerUp,j=>{const H=S.current,$=j.target;if($.hasPointerCapture(j.pointerId)&&$.releasePointerCapture(j.pointerId),S.current=null,y.current=null,H){const K=j.currentTarget,k={originalEvent:j,delta:H};Xp(H,p.swipeDirection,p.swipeThreshold)?Zi(zC,h,k,{discrete:!0}):Zi($C,f,k,{discrete:!0}),K.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),HC=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ul(Ti,t),[s,i]=v.useState(!1),[a,l]=v.useState(!1);return YC(()=>i(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:b.jsx(Ff,{asChild:!0,children:b.jsx(Bl,{...r,children:s&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},KC="ToastTitle",_0=v.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return b.jsx(Te.div,{...r,ref:t})});_0.displayName=KC;var GC="ToastDescription",I0=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(Te.div,{...r,ref:t})});I0.displayName=GC;var F0="ToastAction",V0=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(z0,{altText:n,asChild:!0,children:b.jsx(zf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${F0}\`. Expected non-empty \`string\`.`),null)});V0.displayName=F0;var $0="ToastClose",zf=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=UC($0,n);return b.jsx(z0,{asChild:!0,children:b.jsx(Te.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,o.onClose)})})});zf.displayName=$0;var z0=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(Te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function B0(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),QC(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...B0(r))}}),t}function Zi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?T0(o,s):o.dispatchEvent(s)}var Xp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function YC(e=()=>{}){const t=mn(e);On(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function QC(e){return e.nodeType===e.ELEMENT_NODE}function XC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _u(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var qC=N0,U0=L0,W0=j0,H0=_0,K0=I0,G0=V0,Y0=zf;function Q0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Q0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function X0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Q0(e))&&(r&&(r+=" "),r+=t);return r}const qp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zp=X0,Bf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Zp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=qp(c)||qp(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(w=>{let[p,x]=w;return Array.isArray(x)?x.includes({...s,...a}[p]):{...s,...a}[p]===x})?[...u,d,f]:u},[]);return Zp(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const ZC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var JC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const eT=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>v.createElement("svg",{ref:l,...JC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:q0("lucide",o),...a},[...i.map(([u,c])=>v.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const tT=(e,t)=>
vendor: 8,553 bytes, lines 60-65
60{const n=v.forwardRef(({className:r,...o},s)=>v.createElement(eT,{ref:s,iconNode:t,className:q0(`lucide-${ZC(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Z0=tT("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Uf="-",nT=e=>{const t=oT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Uf);return a[0]===""&&a.length!==1&&a.shift(),J0(a,t)||rT(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},J0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?J0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Uf);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Jp=/^\[(.+)\]$/,rT=e=>{if(Jp.test(e)){const t=Jp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oT=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return iT(Object.entries(e.classGroups),n).forEach(([s,i])=>{ud(i,r,s,t)}),r},ud=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:em(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(sT(o)){ud(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ud(i,em(t,s),n,r)})})},em=(e,t)=>{let n=e;return t.split(Uf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},sT=e=>e.isThemeGetter,iT=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,aT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},ew="!",lT=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,c=0,d;for(let x=0;x<a.length;x++){let g=a[x];if(u===0){if(g===o&&(r||a.slice(x,x+s)===t)){l.push(a.slice(c,x)),c=x+s;continue}if(g==="/"){d=x;continue}}g==="["?u++:g==="]"&&u--}const f=l.length===0?a:a.substring(c),h=f.startsWith(ew),w=h?f.substring(1):f,p=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},uT=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},cT=e=>({cache:aT(e.cacheSize),parseClassName:lT(e),...nT(e)}),dT=/\s+/,fT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(dT);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let w=!!h,p=r(w?f.substring(0,h):f);if(!p){if(!w){a=u+(a.length>0?" "+a:a);continue}if(p=r(f),!p){a=u+(a.length>0?" "+a:a);continue}w=!1}const x=uT(c).join(":"),g=d?x+ew:x,m=g+p;if(s.includes(m))continue;s.push(m);const y=o(p,w);for(let S=0;S<y.length;++S){const E=y[S];s.push(g+E)}a=u+(a.length>0?" "+a:a)}return a};function hT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=tw(t))&&(r&&(r+=" "),r+=n);return r}const tw=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=tw(e[r]))&&(n&&(n+=" "),n+=t);return n};function pT(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((c,d)=>d(c),e());return n=cT(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=fT(l,n);return o(l,c),c}return function(){return s(hT.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},nw=/^\[(?:([a-z-]+):)?(.+)\]$/i,mT=/^\d+\/\d+$/,gT=new Set(["px","full","screen"]),yT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vT=/\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$/,wT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ST=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sn=e=>Do(e)||gT.has(e)||mT.test(e),Wn=e=>ss(e,"length",AT),Do=e=>!!e&&!Number.isNaN(Number(e)),Iu=e=>ss(e,"number",Do),ws=e=>!!e&&Number.isInteger(Number(e)),bT=e=>e.endsWith("%")&&Do(e.slice(0,-1)),X=e=>nw.test(e),Hn=e=>yT.test(e),ET=new Set(["length","size","percentage"]),CT=e=>ss(e,ET,rw),TT=e=>ss(e,"position",rw),PT=new Set(["image","url"]),kT=e=>ss(e,PT,NT),RT=e=>ss(e,"",MT),xs=()=>!0,ss=(e,t,n)=>{const r=nw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},AT=e=>vT.test(e)&&!wT.test(e),rw=()=>!1,MT=e=>xT.test(e),NT=e=>ST.test(e),DT=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),o=ue("borderColor"),s=ue("borderRadius"),i=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),u=ue("grayscale"),c=ue("hueRotate"),d=ue("invert"),f=ue("gap"),h=ue("gradientColorStops"),w=ue("gradientColorStopPositions"),p=ue("inset"),x=ue("margin"),g=ue("opacity"),m=ue("padding"),y=ue("saturate"),S=ue("scale"),E=ue("sepia"),C=ue("skew"),T=ue("space"),P=ue("translate"),N=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",X,t],A=()=>[X,t],U=()=>["",Sn,Wn],j=()=>["auto",Do,X],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",X],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Do,X];return{cacheSize:500,separator:":",theme:{colors:[xs],spacing:[Sn,Wn],blur:["none","",Hn,X],brightness:W(),borderColor:[e],borderRadius:["none","","full",Hn,X],borderSpacing:A(),borderWidth:U(),contrast:W(),grayscale:M(),hueRotate:W(),invert:M(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[bT,Wn],inset:L(),margin:L(),opacity:W(),padding:A(),saturate:W(),scale:W(),sepia:M(),skew:W(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[Hn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:[...H(),X]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ws,X]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",ws,X]}],"grid-cols":[{"grid-cols":[xs]}],"col-start-end":[{col:["auto",{span:["full",ws,X]},X]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[xs]}],"row-start-end":[{row:["auto",{span:[ws,X]},X]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}
vendor: 9,224 bytes, line 65
65],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[Hn]},Hn]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Hn,Wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Iu]}],"font-family":[{font:[xs]}],"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",X]}],"line-clamp":[{"line-clamp":["none",Do,Iu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sn,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sn,Wn]}],"underline-offset":[{"underline-offset":["auto",Sn,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],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",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),TT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",CT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:$()}],"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:["",...$()]}],"outline-offset":[{"outline-offset":[Sn,X]}],"outline-w":[{outline:[Sn,Wn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Sn,Wn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Hn,RT]}],"shadow-color":[{shadow:[xs]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Hn,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ws,X]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",e]}],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",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 65
65],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",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sn,Wn,Iu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},LT=pT(DT);function tt(...e){return LT(X0(e))}const OT=qC,ow=v.forwardRef(({className:e,...t},n)=>b.jsx(U0,{ref:n,className:tt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ow.displayName=U0.displayName;const jT=Bf("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"}}),sw=v.forwardRef(({className:e,variant:t,...n},r)=>b.jsx(W0,{ref:r,className:tt(jT({variant:t}),e),...n}));sw.displayName=W0.displayName;const _T=v.forwardRef(({className:e,...t},n)=>b.jsx(G0,{ref:n,className:tt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));_T.displayName=G0.displayName;const iw=v.forwardRef(({className:e,...t},n)=>b.jsx(Y0,{ref:n,className:tt("absolute right-2 top-2 rounded-md p-1 text-foreground
65/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:b.jsx(Z0,{className:"h-4 w-4"})}));iw.displayName=Y0.displayName;const aw=v.forwardRef(({className:e,...t},n)=>b.jsx(H0,{ref:n,className:tt("text-sm font-semibold",e),...t}));aw.displayName=H0.displayName;const lw=v.forwardRef(({className:e,...t},n)=>b.jsx(K0,{ref:n,className:tt("text-sm opacity-90",e),...t}));lw.displayName=K0.displayName;function IT(){const{toasts:e}=oC();return b.jsxs(OT,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return b.jsxs(sw,{...s,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(aw,{children:n}),r&&b.jsx(lw,{children:r})]}),o,b.jsx(iw,{})]},t)}),b.jsx(ow,{})]})}var tm=["light","dark"],FT="(prefers-color-scheme: dark)",VT=v.createContext(void 0),$T={setTheme:e=>{},themes:[]},zT=()=>{var e;return(e=v.useContext(VT))!=null?e:$T};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?tm.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(w,p=!1,x=!0)=>{let g=i?i[w]:w,m=p?w+"|| ''":`'${g}'`,y="";return o&&x&&!p&&tm.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),n==="class"?p||g?y+=`c.add(${m})`:y+="null":g&&(y+=`d[s](n,${m})`),y},h=e?`!function(){${c}${f(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${FT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${d}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var BT=e=>{switch(e){case"success":return HT;case"info":return GT;case"warning":return KT;case"error":return YT;default:return null}},UT=Array(12).fill(0),WT=({visible:e,className:t})=>_.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},_.createElement("div",{className:"sonner-spinner"},UT.map((n,r)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),HT=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),KT=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),GT=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),YT=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),QT=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),XT=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};
65return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},cd=1,qT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:cd++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
65this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],_.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(JT(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||cd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},nt=new qT,ZT=(e,t)=>{let n=(t==null?void 0:t.id)||cd++;return nt.addToast({title:e,...t,id:n}),n},JT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",eP=ZT,tP=()=>nt.toasts,nP=()=>nt.getActiveToasts();Object.assign(eP,{success:nt.success,info:nt.info,warning:nt.warning,error:nt.error,custom:nt.custom,message:nt.message,promise:nt.promise,dismiss:nt.dismiss,loading:nt.loading},{getHistory:tP,getToasts:nP});function rP(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}rP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
65left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
65:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
65--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
66`);function Ji(e){return e.label!==void 0}var oP=3,sP="32px",iP="16px",nm=4e3,aP=356,lP=14,uP=20,cP=200;function Ot(...e){return e.filter(Boolean).join(" ")}function dP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var fP=e=>{var t,n,r,o,s,i,a,l,u,c,d;let{invert:f,toast:h,unstyled:w,interacting:p,setHeights:x,visibleToasts:g,heights:m,index:y,toasts:S,expanded:E,removeToast:C,defaultRichColors:T,closeButton:P,style:N,cancelButtonStyle:R,actionButtonStyle:L,className:A="",descriptionClassName:U="",duration:j,position:H,gap:$,loadingIcon:K,expandByDefault:k,classNames:M,icons:I,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:z}=e,[Q,q]=_.useState(null),[he,Ne]=_.useState(null),[ee,vt]=_.useState(!1),[Xt,Ve]=_.useState(!1),[ut,wn]=_.useState(!1),[qt,B]=_.useState(!1),[Z,re]=_.useState(!1),[wt,xn]=_.useState(0),[Zt,Ni]=_.useState(0),Fn=_.useRef(h.duration||j||nm),Vn=_.useRef(null),Pr=_.useRef(null),vS=y===0,wS=y+1<=g,xt=h.type,no=h.dismissible!==!1,xS=h.className||"",SS=h.descriptionClassName||"",Di=_.useMemo(()=>m.findIndex(G=>G.toastId===h.id)||0,[m,h.id]),bS=_.useMemo(()=>{var G;return(G=h.closeButton)!=null?G:P},[h.closeButton,P]),Dh=_.useMemo(()=>h.duration||j||nm,[h.duration,j]),su=_.useRef(0),ro=_.useRef(0),Lh=_.useRef(0),oo=_.useRef(null),[ES,CS]=H.split("-"),Oh=_.useMemo(()=>m.reduce((G,ie,pe)=>pe>=Di?G:G+ie.height,0),[m,Di]),jh=XT(),TS=h.invert||f,iu=xt==="loading";ro.current=_.useMemo(()=>Di*$+Oh,[Di,Oh]),_.useEffect(()=>{Fn.current=Dh},[Dh]),_.useEffect(()=>{vt(!0)},[]),_.useEffect(()=>{let G=Pr.current;if(G){let ie=G.getBoundingClientRect().height;return Ni(ie),x(pe=>[{toastId:h.id,height:ie,position:h.position},...pe]),()=>x(pe=>pe.filter(Mt=>Mt.toastId!==h.id))}},[x,h.id]),_.useLayoutEffect(()=>{if(!ee)return;let G=Pr.current,ie=G.style.height;G.style.height="auto";let pe=G.getBoundingClientRect().height;G.style.height=ie,Ni(pe),x(Mt=>Mt.find(Nt=>Nt.toastId===h.id)?Mt.map(Nt=>Nt.toastId===h.id?{...Nt,height:pe}:Nt):[{toastId:h.id,height:pe,position:h.position},...Mt])},[ee,h.title,h.description,x,h.id]);let $n=_.useCallback(()=>{Ve(!0),xn(ro.current),x(G=>G.filter(ie=>ie.toastId!==h.id)),setTimeout(()=>{C(h)},cP)},[h,C,x,ro]);_.useEffect(()=>{if(h.promise&&xt==="loading"||h.duration===1/0||h.type==="loading")return;let G;return E||p||z&&jh?(()=>{if(Lh.current<su.current){let ie=new Date().getTime()-su.current;Fn.current=Fn.current-ie}
66Lh.current=new Date().getTime()})():Fn.current!==1/0&&(su.current=new Date().getTime(),G=setTimeout(()=>{var ie;(ie=h.onAutoClose)==null||ie.call(h,h),$n()},Fn.current)),()=>clearTimeout(G)},[E,p,h,xt,z,jh,$n]),_.useEffect(()=>{h.delete&&$n()},[$n,h.delete]);function PS(){var G,ie,pe;return I!=null&&I.loading?_.createElement("div",{className:Ot(M==null?void 0:M.loader,(G=h==null?void 0:h.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":xt==="loading"},I.loading):K?_.createElement("div",{className:Ot(M==null?void 0:M.loader,(ie=h==null?void 0:h.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":xt==="loading"},K):_.createElement(WT,{className:Ot(M==null?void 0:M.loader,(pe=h==null?void 0:h.classNames)==null?void 0:pe.loader),visible:xt==="loading"})}return _.createElement("li",{tabIndex:0,ref:Pr,className:Ot(A,xS,M==null?void 0:M.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[xt],(n=h==null?void 0:h.classNames)==null?void 0:n[xt]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:T,"data-styled":!(h.jsx||h.unstyled||w),"data-mounted":ee,"data-promise":!!h.promise,"data-swiped":Z,"data-removed":Xt,"data-visible":wS,"data-y-position":ES,"data-x-position":CS,"data-index":y,"data-front":vS,"data-swiping":ut,"data-dismissible":no,"data-type":xt,"data-invert":TS,"data-swipe-out":qt,"data-swipe-direction":he,"data-expanded":!!(E||k&&ee),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${Xt?wt:ro.current}px`,"--initial-height":k?"auto":`${Zt}px`,...N,...h.style},onDragEnd:()=>{wn(!1),q(null),oo.current=null},onPointerDown:G=>{iu||!no||(Vn.current=new Date,xn(ro.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(wn(!0),oo.current={x:G.clientX,y:G.clientY}))},onPointerUp:()=>{var G,ie,pe,Mt;if(qt||!no)return;oo.current=null;let Nt=Number(((G=Pr.current)==null?void 0:G.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),zn=Number(((ie=Pr.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),kr=new Date().getTime()-((pe=Vn.current)==null?void 0:pe.getTime()),Dt=Q==="x"?Nt:zn,Bn=Math.abs(Dt)/kr;if(Math.abs(Dt)>=uP||Bn>.11){xn(ro.current),(Mt=h.onDismiss)==null||Mt.call(h,h),Ne(Q==="x"?Nt>0?"right":"left":zn>0?"down":"up"),$n(),B(!0),re(!1);return}wn(!1),q(null)},onPointerMove:G=>{var ie,pe,Mt,Nt;if(!oo.current||!no||((ie=window.getSelection())==null?void 0:ie.toString().length)>0)return;let zn=G.clientY-oo.current.y,kr=G.clientX-oo.current.x,Dt=(pe=e.swipeDirections)!=null?pe:dP(H);!Q&&(Math.abs(kr)>1||Math.abs(zn)>1)&&q(Math.abs(kr)>Math.abs(zn)?"x":"y");let Bn={x:0,y:0};Q==="y"?(Dt.includes("top")||Dt.includes("bottom"))&&(Dt.includes("top")&&zn<0||Dt.includes("bottom")&&zn>0)&&(Bn.y=zn):Q==="x"&&(Dt.includes("left")||Dt.includes("right"))&&(Dt.includes("left")&&kr<0||Dt.includes("right")&&kr>0)&&(Bn.x=kr),(Math.abs(Bn.x)>0||Math.abs(Bn.y)>0)&&re(!0),(Mt=Pr.current)==null||Mt.style.setProperty("--swipe-amount-x",`${Bn.x}px`),(Nt=Pr.current)==null||Nt.style.setProperty("--swipe-amount-y",`${Bn.y}px`)}},bS&&!h.jsx?_.createElement("button",{"aria-label":W,"data-disabled":iu,"data-close-button":!0,onClick:iu||!no?()=>{}:()=>{var G;$n(),(G=h.onDismiss)==null||G.call(h,h)},className:Ot(M==null?void 0:M.closeButton,(o=h==null?void 0:h.classNames)==null?void 0:o.closeButton)},(s=I==null?void 0:I.close)!=null?s:QT):null,h.jsx||v.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:_.createElement(_.Fragment,null,xt||h.icon||h.promise?_.createElement("div",{"data-icon":"",className:Ot(M==null?void 0:M.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||PS():null,h.type!=="loading"?h.icon||(I==null?void 0:I[xt])||BT(xt):null):null,_.createElement("div",{"data-content":"",className:Ot(M==null?void 0:M.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},_.createElement("div",{"data-title":"",className:Ot(M==null?void 0:M.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?_.createElement("div",{"data-description":"",className:Ot(U,SS,M==null?void 0:M.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),v.isValidElement(h.cancel)?h.cancel:h.cancel&&Ji(h.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||R,onClick:G=>{var ie,pe;Ji(h.cancel)&&no&&((pe=(ie=h.cancel).onClick)==null||pe.call(ie,G),$n())},className:Ot(M==null?void 0:M.cancelButton,(c=h==null?void 0:h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,v.isValidElement(h.action)?h.action:h.action&&Ji(h.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||L,onClick:G=>{var ie,pe;Ji(h.action)&&((pe=(ie=h.action).onClick)==null||pe.call(ie,G),!G.defaultPrevented&&$n())},className:Ot(M==null?void 0:M.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function rm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function hP(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?iP:sP;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var pP=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:f,style:h,visibleToasts:w=oP,toastOptions:p,dir:x=rm(),gap:g=lP,loadingIcon:m,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[C,T]=_.useState([]),P=_.useMemo(()=>Array.from(new Set([r].concat(C.filter(z=>z.position).map(z=>z.position)))),[C,r]),[N,R]=_.useState([]),[L,A]=_.useState(!1),[U,j]=_.useState(!1),[H,$]=_.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
66k":"light"),K=_.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=_.useRef(null),I=_.useRef(!1),W=_.useCallback(z=>{T(Q=>{var q;return(q=Q.find(he=>he.id===z.id))!=null&&q.delete||nt.dismiss(z.id),Q.filter(({id:he})=>he!==z.id)})},[]);return _.useEffect(()=>nt.subscribe(z=>{if(z.dismiss){T(Q=>Q.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{b0.flushSync(()=>{T(Q=>{let q=Q.findIndex(he=>he.id===z.id);return q!==-1?[...Q.slice(0,q),{...Q[q],...z},...Q.slice(q+1)]:[z,...Q]})})})}),[]),_.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Q})=>{$(Q?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(he){console.error(he)}})}},[c]),_.useEffect(()=>{C.length<=1&&A(!1)},[C]),_.useEffect(()=>{let z=Q=>{var q,he;o.every(Ne=>Q[Ne]||Q.code===Ne)&&(A(!0),(q=K.current)==null||q.focus()),Q.code==="Escape"&&(document.activeElement===K.current||(he=K.current)!=null&&he.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),_.useEffect(()=>{if(K.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,I.current=!1)}},[K.current]),_.createElement("section",{ref:t,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((z,Q)=>{var q;let[he,Ne]=z.split("-");return C.length?_.createElement("ol",{key:z,dir:x==="auto"?rm():x,tabIndex:-1,ref:K,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":he,"data-lifted":L&&C.length>1&&!s,"data-x-position":Ne,style:{"--front-toast-height":`${((q=N[0])==null?void 0:q.height)||0}px`,"--width":`${aP}px`,"--gap":`${g}px`,...h,...hP(l,u)},onBlur:ee=>{I.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(I.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||I.current||(I.current=!0,M.current=ee.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{U||A(!1)},onDragEnd:()=>A(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},C.filter(ee=>!ee.position&&Q===0||ee.position===z).map((ee,vt)=>{var Xt,Ve;return _.createElement(fP,{key:ee.id,icons:y,index:vt,toast:ee,defaultRichColors:d,duration:(Xt=p==null?void 0:p.duration)!=null?Xt:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Ve=p==null?void 0:p.closeButton)!=null?Ve:i,interacting:U,position:z,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:W,toasts:C.filter(ut=>ut.position==ee.position),heights:N.filter(ut=>ut.position==ee.position),setHeights:R,expandByDefault:s,gap:g,loadingIcon:m,expanded:L,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const mP=({...e})=>{const{theme:t="system"}=zT();return b.jsx(pP,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var gP=wy[" useId ".trim().toString()]||(()=>{}),yP=0;function Fu(e){const[t,n]=v.useState(gP());return On(()=>{e||n(r=>r??String(yP++))},[e]),e||(t?`radix-${t}`:"")}const vP=["top","right","bottom","left"],vr=Math.min,dt=Math.max,ul=Math.round,ea=Math.floor,hn=e=>({x:e,y:e}
vendor: 13,459 bytes, line 66
66),wP={left:"right",right:"left",bottom:"top",top:"bottom"},xP={start:"end",end:"start"};function dd(e,t,n){return dt(e,vr(t,n))}function jn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function is(e){return e.split("-")[1]}function Wf(e){return e==="x"?"y":"x"}function Hf(e){return e==="y"?"height":"width"}const SP=new Set(["top","bottom"]);function cn(e){return SP.has(_n(e))?"y":"x"}function Kf(e){return Wf(cn(e))}function bP(e,t,n){n===void 0&&(n=!1);const r=is(e),o=Kf(e),s=Hf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=cl(i)),[i,cl(i)]}function EP(e){const t=cl(e);return[fd(e),t,fd(t)]}function fd(e){return e.replace(/start|end/g,t=>xP[t])}const om=["left","right"],sm=["right","left"],CP=["top","bottom"],TP=["bottom","top"];function PP(e,t,n){switch(e){case"top":case"bottom":return n?t?sm:om:t?om:sm;case"left":case"right":return t?CP:TP;default:return[]}}function kP(e,t,n,r){const o=is(e);let s=PP(_n(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(fd)))),s}function cl(e){return e.replace(/left|right|bottom|top/g,t=>wP[t])}function RP(e){return{top:0,right:0,bottom:0,left:0,...e}}function uw(e){return typeof e!="number"?RP(e):{top:e,right:e,bottom:e,left:e}}function dl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function im(e,t,n){let{reference:r,floating:o}=e;const s=cn(t),i=Kf(t),a=Hf(i),l=_n(t),u=s==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(is(t)){case"start":h[i]-=f*(n&&u?-1:1);break;case"end":h[i]+=f*(n&&u?-1:1);break}return h}const AP=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=im(u,r,l),f=r,h={},w=0;for(let p=0;p<a.length;p++){const{name:x,fn:g}=a[p],{x:m,y,data:S,reset:E}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});c=m??c,d=y??d,h={...h,[x]:{...h[x],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:c,y:d}=im(u,f,l)),p=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};async function li(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=jn(t,e),w=uw(h),x=a[f?d==="floating"?"reference":"floating":d],g=dl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),m=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=dl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:y,strategy:l}):m);return{top:(g.top-E.top+w.top)/S.y,bottom:(E.bottom-g.bottom+w.bottom)/S.y,left:(g.left-E.left+w.left)/S.x,right:(E.right-g.right+w.right)/S.x}}const MP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=jn(e,t)||{};if(u==null)return{};const d=uw(c),f={x:n,y:r},h=Kf(o),w=Hf(h),p=await i.getDimensions(u),x=h==="y",g=x?"top":"left",m=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[h]-f[h]-s.floating[w],E=f[h]-s.reference[h],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let T=C?C[y]:0;(!T||!await(i.isElement==null?void 0:i.isElement(C)))&&(T=a.floating[y]||s.floating[w]);const P=S/2-E/2,N=T/2-p[w]/2-1,R=vr(d[g],N),L=vr(d[m],N),A=R,U=T-p[w]-L,j=T/2-p[w]/2+P,H=dd(A,j,U),$=!l.arrow&&is(o)!=null&&j!==H&&s.reference[w]/2-(j<A?R:L)-p[w]/2<0,K=$?j<A?j-A:j-U:0;return{[h]:f[h]+K,data:{[h]:H,centerOffset:j-H-K,...$&&{alignmentOffset:K}},reset:$}}}),NP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...x}=jn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=_n(o),m=cn(a),y=_n(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(y||!p?[cl(a)]:EP(a)),C=w!=="none";!f&&C&&E.push(...kP(a,p,w,S));const T=[a,...E],P=await li(t,x),N=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&N.push(P[g]),d){const j=bP(o,i,S);N.push(P[j[0]],P[j[1]])}if(R=[...R,{placement:o,overflows:N}],!N.every(j=>j<=0)){var L,A;const j=(((L=s.flip)==null?void 0:L.index)||0)+1,H=T[j];if(H&&(!(d==="alignment"?m!==cn(H):!1)||R.every(k=>k.overflows[0]>0&&cn(k.placement)===m)))return{data:{index:j,overflows:R},reset:{placement:H}};let $=(A=R.filter(K=>K.overflows[0]<=0).sort((K,k)=>K.overflows[1]-k.overflows[1])[0])==null?void 0:A.placement;if(!$)switch(h){case"bestFit":{var U;const K=(U=R.filter(k=>{if(C){const M=cn(k.placement);return M===m||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,I)=>M+I,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:U[0];K&&($=K);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function am(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lm(e){return vP.some(t=>e[t]>=0)}const DP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=jn(e,t);switch(r){case"referenceHidden":{const s=await li(t,{...o,elementContext:"reference"}),i=am(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:lm(i)}}}case"escaped":{const s=await li(t,{...o,altBoundary:!0}),i=am(s,n.floating);return{data:{escapedOffsets:i,escaped:lm(i)}}}default:return{}}}}},cw=new Set(["left","top"]);async function LP(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=_n(n),a=is(n),l=cn(n)==="y",u=cw.has(i)?-1:1,c=s&&l?-1:1,d=jn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(h=a==="end"?w*-1:w),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const OP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await LP(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},jP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:g,y:m}=x;return{x:g,y:m}}},...l}=jn(e,t),u={x:n,y:r},c=await li(t,l),d=cn(_n(o)),f=Wf(d);let h=u[f],w=u[d];if(s){const x=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=h+c[x],y=h-c[g];h=dd(m,h,y)}if(i){const x=d==="y"?"top":"left",g=d==="y"?"bottom":"right",m=w+c[x],y=w-c[g];w=dd(m,w,y)}const p=a.fn({...t,[f]:h,[d]:w});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:s,[d]:i}}}}}},_P=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=jn(e,t),c={x:n,y:r},d=cn(o),f=Wf(d);let h=c[f],w=c[d];const p=jn(a,t),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const y=f==="y"?"height":"width",S=s.reference[f]-s.floating[y]+x.mainAxis,E=s.reference[f]+s.reference[y]-x.mainAxis;h<S?h=S:h>E&&(h=E)}if(u){var g,m;const y=f==="y"?"width":"height",S=cw.has(_n(o)),E=s.reference[d]-s.floating[y]+(S&&((g=i.offset)==null?void 0:g[d])||0)+(S?0:x.crossAxis),C=s.reference[d]+s.reference[y]+(S?0:((m=i.offset)==null?void 0:m[d])||0)-(S?x.crossAxis:0);w<E?w=E:w>C&&(w=C)}return{[f]:h,[d]:w}}}},IP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=jn(e,t),c=await li(t,u),d=_n(o),f=is(o),h=cn(o)==="y",{width:w,height:p}=s.floating;let x,g;d==="top"||d==="bottom"?(x=d,g=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,x=f==="end"?"top":"bottom");const m=p-c.top-c.bottom,y=w-c.left-c.right,S=vr(p-c[x],m),E=vr(w-c[g],y),C=!t.middlewareData.shift;let T=S,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=m),C&&!f){const R=dt(c.left,0),L=dt(c.right,0),A=dt(c.top,0),U=dt(c.bottom,0);h?P=w-2*(R!==0||L!==0?R+L:dt(c.left,c.right)):T=p-2*(A!==0||U!==0?A+U:dt(c.top,c.bottom))}await l({...t,availableWidth:P,availableHeight:T});const N=await i.getDimensions(a.floating);return w!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function Wl(){return typeof window<"u"}function as(e){return dw(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vn(e){var t;return(t=(dw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dw(e){return Wl()?e instanceof Node||e instanceof pt(e).Node:!1}function Gt(e){return Wl()?e instanceof Element||e instanceof pt(e).Element:!1}function gn(e){return Wl()?e instanceof HTMLElement||e instanceof pt(e).HTMLElement:!1}function um(e){return!Wl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot}const FP=new Set(["inline","contents"]);function Pi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!FP.has(o)}const VP=new Set(["table","td","th"]);function $P(e){return VP.has(as(e))}const zP=[":popover-open",":modal"];function Hl(e){return zP.some(t=>{try{return e.matches(t)}catch{return!1}})}const BP=["transform","translate","scale","rotate","perspective"],UP=["transform","translate","scale","rotate","perspective","filter"],WP=["paint","layout","strict","content"];function Gf(e){const t=Yf(),n=Gt(e)?Yt(e):e;return BP.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||UP.some(r=>(n.willChange||"").includes(r))||WP.some(r=>(n.contain||"").includes(r))}function HP(e){let t=wr(e);for(;gn(t)&&!Xo(t);){if(Gf(t))return t;if(Hl(t))return null;t=wr(t)}return null}function Yf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KP=new Set(["html","body","#document"]);function Xo(e){return KP.has(as(e))}function Yt(e){return pt(e).getComputedStyle(e)}function Kl(e){return Gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wr(e){if(as(e)==="html")return e;const t=e.assignedSlot||e.parentNode||um(e)&&e.host||vn(e);return um(t)?t.host:t}function fw(e){const t=wr(e);return Xo(t)?e.ownerDocument?e.ownerDocument.body:e.body:gn(t)&&Pi(t)?t:fw(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=pt(o);if(s){const a=hd(i);return t.concat(i,i.visualViewport||[],Pi(o)?o:[],a&&n?ui(a):[])}return t.concat(o,ui(o,[],n))}function hd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hw(e){const t=Yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ul(n)!==s||ul(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Qf(e){return Gt(e)?e:e.contextElement}function Lo(e){const t=Qf(e);if(!gn(t))return hn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=hw(t);let i=(s?ul(n.width):n.width)/r,a=(s?ul(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const GP=hn(0);function pw(e){const t=pt(e);return!Yf()||!t.visualViewport?GP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pt(e)?!1:t}function Zr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Qf(e);let i=hn(1);t&&(r?Gt(r)&&(i=Lo(r)):i=Lo(e));const a=YP(s,n,r)?pw(s):hn(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(s){const f=pt(s),h=r&&Gt(r)?pt(r):r;let w=f,p=hd(w);for(;p&&r&&h!==w;){const x=Lo(p),g=p.getBoundingClientRect(),m=Yt(p),y=g.left+(p.clientLeft+parseFloat(m.paddingLeft))*x.x,S=g.top+(p.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,d*=x.y,l+=y,u+=S,w=pt(p),p=hd(w)}}return dl({width:c,height:d,x:l,y:u})}function Xf(e,t){const n=Kl(e).scrollLeft;return t?t.left+n:Zr(vn(e)).left+n}
vendor: 4,964 bytes, line 66
66function mw(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Xf(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function QP(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=vn(r),a=t?Hl(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=hn(1);const c=hn(0),d=gn(r);if((d||!d&&!s)&&((as(r)!=="body"||Pi(i))&&(l=Kl(r)),gn(r))){const h=Zr(r);u=Lo(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=i&&!d&&!s?mw(i,l,!0):hn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function XP(e){return Array.from(e.getClientRects())}function qP(e){const t=vn(e),n=Kl(e),r=e.ownerDocument.body,o=dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Xf(e);const a=-n.scrollTop;return Yt(r).direction==="rtl"&&(i+=dt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function ZP(e,t){const n=pt(e),r=vn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=Yf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const JP=new Set(["absolute","fixed"]);function ek(e,t){const n=Zr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gn(e)?Lo(e):hn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function cm(e,t,n){let r;if(t==="viewport")r=ZP(e,n);else if(t==="document")r=qP(vn(e));else if(Gt(t))r=ek(t,n);else{const o=pw(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dl(r)}function gw(e,t){const n=wr(e);return n===t||!Gt(n)||Xo(n)?!1:Yt(n).position==="fixed"||gw(n,t)}function tk(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Gt(a)&&as(a)!=="body"),o=null;const s=Yt(e).position==="fixed";let i=s?wr(e):e;for(;Gt(i)&&!Xo(i);){const a=Yt(i),l=Gf(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&JP.has(o.position)||Pi(i)&&!l&&gw(e,i))?r=r.filter(c=>c!==i):o=a,i=wr(i)}return t.set(e,r),r}function nk(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Hl(t)?[]:tk(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const d=cm(t,c,o);return u.top=dt(d.top,u.top),u.right=vr(d.right,u.right),u.bottom=vr(d.bottom,u.bottom),u.left=dt(d.left,u.left),u},cm(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function rk(e){const{width:t,height:n}=hw(e);return{width:t,height:n}}function ok(e,t,n){const r=gn(t),o=vn(t),s=n==="fixed",i=Zr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=hn(0);function u(){l.x=Xf(o)}if(r||!r&&!s)if((as(t)!=="body"||Pi(o))&&(a=Kl(t)),r){const h=Zr(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const c=o&&!r&&!s?mw(o,a):hn(0),d=i.left+a.scrollLeft-l.x-c.x,f=i.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:i.width,height:i.height}}function Vu(e){return Yt(e).position==="static"}function dm(e,t){if(!gn(e)||Yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vn(e)===n&&(n=n.ownerDocument.body),n}function yw(e,t){const n=pt(e);if(Hl(e))return n;if(!gn(e)){let o=wr(e);for(;o&&!Xo(o);){if(Gt(o)&&!Vu(o))return o;o=wr(o)}return n}let r=dm(e,t);for(;r&&$P(r)&&Vu(r);)r=dm(r,t);return r&&Xo(r)&&Vu(r)&&!Gf(r)?n:r||HP(e)||n}const sk=async function(e){const t=this.getOffsetParent||yw,n=this.getDimensions,r=await n(e.floating);return{reference:ok(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ik(e){return Yt(e).direction==="rtl"}const ak={convertOffsetParentRelativeRectToViewportRelativeRect:QP,getDocumentElement:vn,getClippingRect:nk,getOffsetParent:yw,getElementRects:sk,getClientRects:XP,getDimensions:rk,getScale:Lo,isElement:Gt,isRTL:ik};function vw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lk(e,t){let n=null,r;const o=vn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(a||t(),!f||!h)return;const w=ea(d),p=ea(o.clientWidth-(c+f)),x=ea(o.clientHeight-(d+h)),g=ea(c),y={rootMargin:-w+"px "+-p+"px "+-x+"px "+-g+"px",threshold:dt(0,vr(1,l))||1};let S=!0;function E(C){const T=C[0].intersectionRatio;if(T!==l){if(!S)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!vw(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(e)}return i(!0),s}function uk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qf(e),c=o||s?[...u?ui(u):[],...ui(t)]:[];
vendor: 9,325 bytes, line 66
66c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const d=u&&a?lk(u,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let w,p=l?Zr(e):null;l&&x();function x(){const g=Zr(e);p&&!vw(p,g)&&n(),p=g,w=requestAnimationFrame(x)}return n(),()=>{var g;c.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),d==null||d(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const ck=OP,dk=jP,fk=NP,hk=IP,pk=DP,fm=MP,mk=_P,gk=(e,t,n)=>{const r=new Map,o={platform:ak,...n},s={...o.platform,_c:r};return AP(e,t,{...o,platform:s})};var yk=typeof document<"u",vk=function(){},Pa=yk?v.useLayoutEffect:vk;function fl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!fl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ww(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hm(e,t){const n=ww(e);return Math.round(t*n)/n}function $u(e){const t=v.useRef(e);return Pa(()=>{t.current=e}),t}function wk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=v.useState(r);fl(f,r)||h(r);const[w,p]=v.useState(null),[x,g]=v.useState(null),m=v.useCallback(k=>{k!==C.current&&(C.current=k,p(k))},[]),y=v.useCallback(k=>{k!==T.current&&(T.current=k,g(k))},[]),S=s||w,E=i||x,C=v.useRef(null),T=v.useRef(null),P=v.useRef(c),N=l!=null,R=$u(l),L=$u(o),A=$u(u),U=v.useCallback(()=>{if(!C.current||!T.current)return;const k={placement:t,strategy:n,middleware:f};L.current&&(k.platform=L.current),gk(C.current,T.current,k).then(M=>{const I={...M,isPositioned:A.current!==!1};j.current&&!fl(P.current,I)&&(P.current=I,Ei.flushSync(()=>{d(I)}))})},[f,t,n,L,A]);Pa(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const j=v.useRef(!1);Pa(()=>(j.current=!0,()=>{j.current=!1}),[]),Pa(()=>{if(S&&(C.current=S),E&&(T.current=E),S&&E){if(R.current)return R.current(S,E,U);U()}},[S,E,U,R,N]);const H=v.useMemo(()=>({reference:C,floating:T,setReference:m,setFloating:y}),[m,y]),$=v.useMemo(()=>({reference:S,floating:E}),[S,E]),K=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const M=hm($.floating,c.x),I=hm($.floating,c.y);return a?{...k,transform:"translate("+M+"px, "+I+"px)",...ww($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:I}},[n,a,$.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:U,refs:H,elements:$,floatingStyles:K}),[c,U,H,$,K])}const xk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?fm({element:r.current,padding:o}).fn(n):{}:r?fm({element:r,padding:o}).fn(n):{}}}},Sk=(e,t)=>({...ck(e),options:[e,t]}),bk=(e,t)=>({...dk(e),options:[e,t]}),Ek=(e,t)=>({...mk(e),options:[e,t]}),Ck=(e,t)=>({...fk(e),options:[e,t]}),Tk=(e,t)=>({...hk(e),options:[e,t]}),Pk=(e,t)=>({...pk(e),options:[e,t]}),kk=(e,t)=>({...xk(e),options:[e,t]});var Rk="Arrow",xw=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return b.jsx(Te.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});xw.displayName=Rk;var Ak=xw;function Mk(e){const[t,n]=v.useState(void 0);return On(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Sw="Popper",[bw,Ew]=Ci(Sw),[dO,Cw]=bw(Sw),Tw="PopperAnchor",Pw=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Cw(Tw,n),i=v.useRef(null),a=Ze(t,i);return v.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:b.jsx(Te.div,{...o,ref:a})});Pw.displayName=Tw;var qf="PopperContent",[Nk,Dk]=bw(qf),kw=v.forwardRef((e,t)=>{var ee,vt,Xt,Ve,ut,wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:w,...p}=e,x=Cw(qf,n),[g,m]=v.useState(null),y=Ze(t,qt=>m(qt)),[S,E]=v.useState(null),C=Mk(S),T=(C==null?void 0:C.width)??0,P=(C==null?void 0:C.height)??0,N=r+(s!=="center"?"-"+s:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},L=Array.isArray(u)?u:[u],A=L.length>0,U={padding:R,boundary:L.filter(Ok),altBoundary:A},{refs:j,floatingStyles:H,placement:$,isPositioned:K,middlewareData:k}=wk({strategy:"fixed",placement:N,whileElementsMounted:(...qt)=>uk(...qt,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Sk({mainAxis:o+P,alignmentAxis:i}),l&&bk({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ek():void 0,...U}),l&&Ck({...U}),Tk({...U,apply:({elements:qt,rects:B,availableWidth:Z,availableHeight:re})=>{const{width:wt,height:xn}=B.reference,Zt=qt.floating.style;Zt.setProperty("--radix-popper-available-width",`${Z}px`),Zt.setProperty("--radix-popper-available-height",`${re}px`),Zt.setProperty("--radix-popper-anchor-width",`${wt}px`),Zt.setProperty("--radix-popper-anchor-height",`${xn}px`)}}),S&&kk({element:S,padding:a}),jk({arrowWidth:T,arrowHeight:P}),f&&Pk({strategy:"referenceHidden",...U})]}),[M,I]=Mw($),W=mn(w);On(()=>{K&&(W==null||W())},[K,W]);const z=(ee=k.arrow)==null?void 0:ee.x,Q=(vt=k.arrow)==null?void 0:vt.y,q=((Xt=k.arrow)==null?void 0:Xt.centerOffset)!==0,[he,Ne]=v.useState();return On(()=>{g&&Ne(window.getComputedStyle(g).zIndex)},[g]),b.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:K?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Ve=k.transformOrigin)==null?void 0:Ve.x,(ut=k.transformOrigin)==null?void 0:ut.y].join(" "),...((wn=k.hide)==null?void 0:wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Nk,{scope:n,placedSide:M,onArrowChange:E,arrowX:z,arrowY:Q,shouldHideArrow:q,children:b.jsx(Te.div,{"data-side":M,"data-align":I,...p,ref:y,style:{...p.style,animation:K?void 0:"none"}})})})});kw.displayName=qf;var Rw="PopperArrow",Lk={top:"bottom",right:"left",bottom:"top",left:"right"},Aw=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Dk(Rw,r),i=Lk[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(Ak,{...o,ref:n,style:{...o.style,display:"block"}})})});Aw.displayName=Rw;function Ok(e){return e!==null}var jk=e=>({name:"transformOrigin",options:e,fn(t){var x,g,m;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=Mw(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((g=o.arrow)==null?void 0:g.x)??0)+a/2,h=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let w="",p="";return u==="bottom"?(w=i?d:`${f}px`,p=`${-l}px`):u==="top"?(w=i?d:`${f}px`,p=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,p=i?d:`${h}px`):u==="left"&&(w=`${r.floating.width+l}px`,p=i?d:`${h}px`),{data:{x:w,y:p}}}});function Mw(e){const[t,n="center"]=e.split("-");return[t,n]}var _k=Pw,Ik=kw,Fk=Aw,[Gl,fO]=Ci("Tooltip",[Ew]),Zf=Ew(),Nw="TooltipProvider",Vk=700,pm="tooltip.open",[$k,Dw]=Gl(Nw),Lw=e=>{const{__scopeTooltip:t,delayDuration:n=Vk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),b.jsx($k,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Lw.displayName=Nw;var Ow="Tooltip",[hO,Yl]=Gl(Ow),pd="TooltipTrigger",zk=v.forwardRef((e,t)=>
vendor: 5,226 bytes, line 66
66{const{__scopeTooltip:n,...r}=e,o=Yl(pd,n),s=Dw(pd,n),i=Zf(n),a=v.useRef(null),l=Ze(t,a,o.onTriggerChange),u=v.useRef(!1),c=v.useRef(!1),d=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(_k,{asChild:!0,...i,children:b.jsx(Te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ge(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ge(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ge(e.onBlur,o.onClose),onClick:ge(e.onClick,o.onClose)})})});zk.displayName=pd;var Bk="TooltipPortal",[pO,Uk]=Gl(Bk,{forceMount:void 0}),qo="TooltipContent",jw=v.forwardRef((e,t)=>{const n=Uk(qo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Yl(qo,e.__scopeTooltip);return b.jsx(os,{present:r||i.open,children:i.disableHoverableContent?b.jsx(_w,{side:o,...s,ref:t}):b.jsx(Wk,{side:o,...s,ref:t})})}),Wk=v.forwardRef((e,t)=>{const n=Yl(qo,e.__scopeTooltip),r=Dw(qo,e.__scopeTooltip),o=v.useRef(null),s=Ze(t,o),[i,a]=v.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{a(null),d(!1)},[d]),h=v.useCallback((w,p)=>{const x=w.currentTarget,g={x:w.clientX,y:w.clientY},m=Qk(g,x.getBoundingClientRect()),y=Xk(g,m),S=qk(p.getBoundingClientRect()),E=Jk([...y,...S]);a(E),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&c){const w=x=>h(x,c),p=x=>h(x,l);return l.addEventListener("pointerleave",w),c.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",p)}}},[l,c,h,f]),v.useEffect(()=>{if(i){const w=p=>{const x=p.target,g={x:p.clientX,y:p.clientY},m=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),y=!Zk(g,i);m?f():y&&(f(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,c,i,u,f]),b.jsx(_w,{...e,ref:s})}),[Hk,Kk]=Gl(Ow,{isInside:!1}),Gk=uC("TooltipContent"),_w=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Yl(qo,n),u=Zf(n),{onClose:c}=l;return v.useEffect(()=>(document.addEventListener(pm,c),()=>document.removeEventListener(pm,c)),[c]),v.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),b.jsx(zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:b.jsxs(Ik,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.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:[b.jsx(Gk,{children:r}),b.jsx(Hk,{scope:n,isInside:!0,children:b.jsx(LC,{id:l.contentId,role:"tooltip",children:o||r})})]})})});jw.displayName=qo;var Iw="TooltipArrow",Yk=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zf(n);return Kk(Iw,n).isInside?null:b.jsx(Fk,{...o,...r,ref:t})});Yk.displayName=Iw;function Qk(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Xk(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function qk(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Zk(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(o=!o)}return o}function Jk(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),eR(t)}function eR(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tR=Lw,Fw=jw;const nR=tR,rR=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 10,013 bytes, line 66
66b.jsx(Fw,{ref:r,sideOffset:t,className:tt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));rR.displayName=Fw.displayName;var Ql=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xl=typeof window>"u"||"Deno"in globalThis;function Ft(){}function oR(e,t){return typeof e=="function"?e(t):e}function sR(e){return typeof e=="number"&&e>=0&&e!==1/0}function iR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function md(e,t){return typeof e=="function"?e(t):e}function aR(e,t){return typeof e=="function"?e(t):e}function mm(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Jf(i,t.options))return!1}else if(!di(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function gm(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ci(t.options.mutationKey)!==ci(s))return!1}else if(!di(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Jf(e,t){return((t==null?void 0:t.queryKeyHashFn)||ci)(e)}function ci(e){return JSON.stringify(e,(t,n)=>gd(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function di(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>di(e[n],t[n])):!1}function Vw(e,t){if(e===t)return e;const n=ym(e)&&ym(t);if(n||gd(e)&&gd(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const d=n?c:s[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=Vw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function ym(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gd(e){if(!vm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function lR(e){return new Promise(t=>{setTimeout(t,e)})}function uR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Vw(e,t):t}function cR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var eh=Symbol();function $w(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===eh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ir,er,jo,ey,fR=(ey=class extends Ql{constructor(){super();ne(this,Ir);ne(this,er);ne(this,jo);Y(this,jo,t=>{if(!Xl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){D(this,er)||this.setEventListener(D(this,jo))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,er))==null||t.call(this),Y(this,er,void 0))}setEventListener(t){var n;Y(this,jo,t),(n=D(this,er))==null||n.call(this),Y(this,er,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,Ir)!==t&&(Y(this,Ir,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,Ir)=="boolean"?D(this,Ir):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ir=new WeakMap,er=new WeakMap,jo=new WeakMap,ey),zw=new fR,_o,tr,Io,ty,hR=(ty=class extends Ql{constructor(){super();ne(this,_o,!0);ne(this,tr);ne(this,Io);Y(this,Io,t=>{if(!Xl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,tr)||this.setEventListener(D(this,Io))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,tr))==null||t.call(this),Y(this,tr,void 0))}setEventListener(t){var n;Y(this,Io,t),(n=D(this,tr))==null||n.call(this),Y(this,tr,t(this.setOnline.bind(this)))}setOnline(t){D(this,_o)!==t&&(Y(this,_o,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,_o)}},_o=new WeakMap,tr=new WeakMap,Io=new WeakMap,ty),hl=new hR;function pR(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function mR(e){return Math.min(1e3*2**e,3e4)}function Bw(e){return(e??"online")==="online"?hl.isOnline():!0}var Uw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zu(e){return e instanceof Uw}function Ww(e){let t=!1,n=0,r=!1,o;const s=pR(),i=p=>{var x;r||(f(new Uw(p)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>zw.isFocused()&&(e.networkMode==="always"||hl.isOnline())&&e.canRun(),c=()=>Bw(e.networkMode)&&e.canRun(),d=p=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,p),o==null||o(),s.resolve(p))},f=p=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,p),o==null||o(),s.reject(p))},h=()=>new Promise(p=>{var x;o=g=>{(r||u())&&p(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),w=()=>{if(r)return;let p;const x=n===0?e.initialPromise:void 0;try{p=x??e.fn()}catch(g){p=Promise.reject(g)}Promise.resolve(p).then(d).catch(g=>{var C;if(r)return;const m=e.retry??(Xl?0:3),y=e.retryDelay??mR,S=typeof y=="function"?y(n,g):y,E=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!E){f(g);return}n++,(C=e.onFail)==null||C.call(e,n,g),lR(S).then(()=>u()?void 0:h()).then(()=>{t?f(g):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?w():h().then(w),s)}}var gR=e=>setTimeout(e,0);function yR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=gR;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ye=yR(),Fr,ny,Hw=(ny=class{constructor(){ne(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sR(this.gcTime)&&Y(this,Fr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xl?1/0:5*60*1e3))}clearGcTimeout(){D(this,Fr)&&(clearTimeout(D(this,Fr)),Y(this,Fr,void 0))}},Fr=new WeakMap,ny),Fo,Vr,St,$r,Ue,gi,zr,Vt,En,ry,vR=(ry=class extends Hw{constructor(t){super();ne(this,Vt);ne(this,Fo);ne(this,Vr);ne(this,St);ne(this,$r);ne(this,Ue);ne(this,gi);ne(this,zr);Y(this,zr,!1),Y(this,gi,t.defaultOptions),this.setOptions(t.options),this.observers=[],Y(this,$r,t.client),Y(this,St,D(this,$r).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Y(this,Fo,xR(this.options)),this.state=t.state??D(this,Fo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,Ue))==null?void 0:t.promise}setOptions(t){this.options={...D(this,gi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,St).remove(this)}setData(t,n){const r=uR(this.state.data,t,this.options);return $e(this,Vt,En).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$e(this,Vt,En).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=D(this,Ue))==null?void 0:r.promise;return(o=D(this,Ue))==null||o.cancel(t),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,Fo))}isActive(){return this.observers.some(t=>aR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>md(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!iR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,Ue))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,Ue))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,St).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,Ue)&&(D(this,zr)?D(this,Ue).cancel({revert:!0}):D(this,Ue).cancelRetry()),this.scheduleGc()),D(this,St).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}
66invalidate(){this.state.isInvalidated||$e(this,Vt,En).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,Ue))return D(this,Ue).continueRetry(),D(this,Ue).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Y(this,zr,!0),r.signal)})},s=()=>{const f=$w(this.options,n),w=(()=>{const p={client:D(this,$r),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return Y(this,zr,!1),this.options.persister?this.options.persister(f,w,this):f(w)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,$r),state:this.state,fetchFn:s};return o(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),Y(this,Vr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&$e(this,Vt,
vendor: 5,534 bytes, line 66
66En).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var h,w,p,x;zu(f)&&f.silent||$e(this,Vt,En).call(this,{type:"error",error:f}),zu(f)||((w=(h=D(this,St).config).onError)==null||w.call(h,f,this),(x=(p=D(this,St).config).onSettled)==null||x.call(p,this.state.data,f,this)),this.scheduleGc()};return Y(this,Ue,Ww({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,w,p,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){l(g);return}(w=(h=D(this,St).config).onSuccess)==null||w.call(h,f,this),(x=(p=D(this,St).config).onSettled)==null||x.call(p,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{$e(this,Vt,En).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{$e(this,Vt,En).call(this,{type:"pause"})},onContinue:()=>{$e(this,Vt,En).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),D(this,Ue).start()}},Fo=new WeakMap,Vr=new WeakMap,St=new WeakMap,$r=new WeakMap,Ue=new WeakMap,gi=new WeakMap,zr=new WeakMap,Vt=new WeakSet,En=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...wR(r.data,this.options),fetchMeta:t.meta??null};case"success":return Y(this,Vr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return zu(o)&&o.revert&&D(this,Vr)?{...D(this,Vr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,St).notify({query:this,type:"updated",action:t})})},ry);function wR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var rn,oy,SR=(oy=class extends Ql{constructor(t={}){super();ne(this,rn);this.config=t,Y(this,rn,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Jf(o,n);let i=this.get(s);return i||(i=new vR({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){D(this,rn).has(t.queryHash)||(D(this,rn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,rn).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,rn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,rn).get(t)}getAll(){return[...D(this,rn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mm(t,r)):n}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},rn=new WeakMap,oy),on,Ke,Br,sn,Kn,sy,bR=(sy=class extends Hw{constructor(t){super();ne(this,sn);ne(this,on);ne(this,Ke);ne(this,Br);this.mutationId=t.mutationId,Y(this,Ke,t.mutationCache),Y(this,on,[]),this.state=t.state||ER(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,on).includes(t)||(D(this,on).push(t),this.clearGcTimeout(),D(this,Ke).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Y(this,on,D(this,on).filter(n=>n!==t)),this.scheduleGc(),D(this,Ke).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,on).length||(this.state.status==="pending"?this.scheduleGc():D(this,Ke).remove(this))}continue(){var t;return((t=D(this,Br))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,c,d,f,h,w,p,x,g,m,y,S,E,C,T,P;const n=()=>{$e(this,sn,Kn).call(this,{type:"continue"})};Y(this,Br,Ww({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,R)=>{$e(this,sn,Kn).call(this,{type:"failed",failureCount:N,error:R})},onPause:()=>{$e(this,sn,Kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Ke).canRun(this)}));const r=this.state.status==="pending",o=!D(this,Br).canStart();try{if(r)n();else{$e(this,sn,Kn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=D(this,Ke).config).onMutate)==null?void 0:i.call(s,t,this));
66const R=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));R!==this.state.context&&$e(this,sn,Kn).call(this,{type:"pending",context:R,variables:t,isPaused:o})}const N=await D(this,Br).start();return await((c=(u=D(this,Ke).config).onSuccess)==null?void 0:c.call(u,N,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,N,t,this.state.context)),await((w=(h=D(this,Ke).config).onSettled)==null?void 0:w.call(h,N,null,this.state.variables,this.state.context,this)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,N,null,t,this.state.context)),$e(this,sn,Kn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((m=(g=D(this,Ke).config).onError)==null?void 0:m.call(g,N,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,N,t,this.state.context)),await((C=(E=D(this,Ke).config).onSettled)==null?void 0:C.call(E,void 0,N,this.state.variables,this.state.context,this)),await((P=(T=this.options).onSettled)==null?void 0:P.call(T,void 0,N,t,this.state.context)),N}finally{$e(this,sn,Kn).call(this,{type:"error",error:N})}}finally{D(this,Ke).runNext(this)}}},on=new WeakMap,Ke=new WeakMap,Br=new WeakMap,sn=new WeakSet,Kn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ye.batch(()=>{D(this,on).forEach(r=>{r.onMutationUpdate(t)}),D(this,Ke).notify({mutation:this,type:"updated",action:t})})},sy);function ER(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pn,$t,yi,iy,CR=(iy=class extends Ql{constructor(t={}){super();ne(this,Pn);ne(this,$t);ne(this,yi);this.config=t,Y(this,Pn,new Set),Y(this,$t,new Map),Y(this,yi,0)}build(t,n,r){const o=new bR({mutationCache:this,mutationId:++Li(this,yi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){D(this,Pn).add(t);const n=ta(t);if(typeof n=="string"){const r=D(this,$t).get(n);r?r.push(t):D(this,$t).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Pn).delete(t)){const n=ta(t);if(typeof n=="string"){const r=D(this,$t).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&D(this,$t).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ta(t);if(typeof n=="string"){const r=D(this,$t).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ta(t);if(typeof n=="string"){const o=(r=D(this,$t).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ye.batch(()=>{D(this,Pn).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Pn).clear(),D(this,$t).clear()})}getAll(){return Array.from(D(this,Pn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gm(n,r))}findAll(t={}){return this.getAll().filter(n=>gm(t,n))}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ft))))}},Pn=new WeakMap,$t=new WeakMap,yi=new WeakMap,iy);function ta(e){var t;return(t=e.options.scope)==null?void 0:t.id}function wm(e){return{onFetch:(t,n)=>{var c,d,f,h,w;const r=t.options,o=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)}
vendor: 6,331 bytes, line 66
66)},g=$w(t.options,t.fetchOptions),m=async(y,S,E)=>{if(p)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const T=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return x(L),L})(),P=await g(T),{maxPages:N}=t.options,R=E?dR:cR;return{pages:R(y.pages,P,N),pageParams:R(y.pageParams,S,N)}};if(o&&s.length){const y=o==="backward",S=y?TR:xm,E={pages:s,pageParams:i},C=S(r,E);a=await m(E,C,y)}else{const y=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:xm(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var p,x;return(x=(p=t.options).persister)==null?void 0:x.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function xm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function TR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Se,nr,rr,Vo,$o,or,zo,Bo,ay,PR=(ay=class{constructor(e={}){ne(this,Se);ne(this,nr);ne(this,rr);ne(this,Vo);ne(this,$o);ne(this,or);ne(this,zo);ne(this,Bo);Y(this,Se,e.queryCache||new SR),Y(this,nr,e.mutationCache||new CR),Y(this,rr,e.defaultOptions||{}),Y(this,Vo,new Map),Y(this,$o,new Map),Y(this,or,0)}mount(){Li(this,or)._++,D(this,or)===1&&(Y(this,zo,zw.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Se).onFocus())})),Y(this,Bo,hl.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Se).onOnline())})))}unmount(){var e,t;Li(this,or)._--,D(this,or)===0&&((e=D(this,zo))==null||e.call(this),Y(this,zo,void 0),(t=D(this,Bo))==null||t.call(this),Y(this,Bo,void 0))}isFetching(e){return D(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,nr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,Se).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(md(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=D(this,Se).get(r.queryHash),s=o==null?void 0:o.state.data,i=oR(t,s);if(i!==void 0)return D(this,Se).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ye.batch(()=>D(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,Se);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,Se);return Ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ye.batch(()=>D(this,Se).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return Ye.batch(()=>(D(this,Se).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ye.batch(()=>D(this,Se).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ft)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,Se).build(this,t);return n.isStaleByTime(md(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=wm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=wm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hl.isOnline()?D(this,nr).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Se)}getMutationCache(){return D(this,nr)}getDefaultOptions(){return D(this,rr)}setDefaultOptions(e){Y(this,rr,e)}setQueryDefaults(e,t){D(this,Vo).set(ci(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,Vo).values()],n={};return t.forEach(r=>{di(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,$o).set(ci(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,$o).values()],n={};return t.forEach(r=>{di(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,rr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===eh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,rr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Se).clear(),D(this,nr).clear()}},Se=new WeakMap,nr=new WeakMap,rr=new WeakMap,Vo=new WeakMap,$o=new WeakMap,or=new WeakMap,zo=new WeakMap,Bo=new WeakMap,ay),kR=v.createContext(void 0),RR=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(kR.Provider,{value:e,children:t}));const th=v.createContext({});function nh(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const AR=typeof window<"u",Kw=AR?v.useLayoutEffect:v.useEffect,ql=v.createContext(null);function rh(e,t){e.indexOf(t)===-1&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const yn=(e,t,n)=>n>t?t:n<e?e:n;let Zl=()=>{},Zo=()=>{};const xr={},Gw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Yw(e){return typeof e=="object"&&e!==null}
vendor: 9,145 bytes, line 66
66const Qw=e=>/^0[^.\s]+$/u.test(e);function Xw(e){let t;return()=>(t===void 0&&(t=e()),t)}const kt=e=>e,MR=(e,t)=>n=>t(e(n)),ki=(...e)=>e.reduce(MR),fi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class oh{constructor(){this.subscriptions=[]}add(t){return rh(this.subscriptions,t),()=>pl(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const lt=e=>e*1e3,Tt=e=>e/1e3;function qw(e,t){return t?e*(1e3/t):0}const Zw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NR=1e-7,DR=12;function LR(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=Zw(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>NR&&++a<DR);return i}function Ri(e,t,n,r){if(e===t&&n===r)return kt;const o=s=>LR(s,0,1,e,n);return s=>s===0||s===1?s:Zw(o(s),t,r)}const Jw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ex=e=>t=>1-e(1-t),tx=Ri(.33,1.53,.69,.99),sh=ex(tx),nx=Jw(sh),rx=e=>e>=1?1:(e*=2)<1?.5*sh(e):.5*(2-Math.pow(2,-10*(e-1))),ih=e=>1-Math.sin(Math.acos(e)),ox=ex(ih),sx=Jw(ih),OR=Ri(.42,0,1,1),jR=Ri(0,0,.58,1),ix=Ri(.42,0,.58,1),_R=e=>Array.isArray(e)&&typeof e[0]!="number",ax=e=>Array.isArray(e)&&typeof e[0]=="number",Sm={linear:kt,easeIn:OR,easeInOut:ix,easeOut:jR,circIn:ih,circInOut:sx,circOut:ox,backIn:sh,backInOut:nx,backOut:tx,anticipate:rx},IR=e=>typeof e=="string",bm=e=>{if(ax(e)){Zo(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ri(t,n,r,o)}else if(IR(e))return Zo(Sm[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Sm[e];return e},na=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Em={value:null,addProjectionMetrics:null};function FR(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){i.has(d)&&(c.schedule(d),e()),l++,d(a)}const c={schedule:(d,f=!1,h=!1)=>{const p=h&&o?n:r;return f&&i.add(d),p.add(d),d},cancel:d=>{r.delete(d),i.delete(d)},process:d=>{if(a=d,o){s=!0;return}o=!0;const f=n;n=r,r=f,n.forEach(u),t&&Em.value&&Em.value.frameloop[t].push(l),l=0,n.clear(),o=!1,s&&(s=!1,c.process(d))}};return c}const VR=40;function lx(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=na.reduce((y,S)=>(y[S]=FR(s,t?S:void 0),y),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:w}=i,p=()=>{const y=xr.useManualTiming,S=y?o.timestamp:performance.now();n=!1,y||(o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,VR),1)),o.timestamp=S,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),h.process(o),w.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},x=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:na.reduce((y,S)=>{const E=i[S];return y[S]=(C,T=!1,P=!1)=>(n||x(),E.schedule(C,T,P)),y},{}),cancel:y=>{for(let S=0;S<na.length;S++)i[na[S]].cancel(y)},state:o,steps:i}}const{schedule:ae,cancel:Sr,state:je,steps:Bu}=lx(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0);let ka;function $R(){ka=void 0}const Qe={now:()=>(ka===void 0&&Qe.set(je.isProcessing||xr.useManualTiming?je.timestamp:performance.now()),ka),set:e=>{ka=e,queueMicrotask($R)}},ux=e=>t=>typeof t=="string"&&t.startsWith(e),cx=ux("--"),zR=ux("var(--"),ah=e=>zR(e)?BR.test(e.split("/*")[0].trim()):!1,BR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Cm(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ls={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hi={...ls,transform:e=>yn(0,1,e)},ra={...ls,default:1},Fs=e=>Math.round(e*1e5)/1e5,lh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UR(e){return e==null}const WR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uh=(e,t)=>n=>!!(typeof n=="string"&&WR.test(n)&&n.startsWith(e)||t&&!UR(n)&&Object.prototype.hasOwnProperty.call(n,t)),dx=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(lh);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},HR=e=>yn(0,255,e),Uu={...ls,transform:e=>Math.round(HR(e))},jr={test:uh("rgb","red"),parse:dx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uu.transform(e)+", "+Uu.transform(t)+", "+Uu.transform(n)+", "+Fs(hi.transform(r))+")"};function KR(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const yd={test:uh("#"),parse:KR,transform:jr.transform},Ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gn=Ai("deg"),pn=Ai("%"),V=Ai("px"),GR=Ai("vh"),YR=Ai("vw"),Tm={...pn,parse:e=>pn.parse(e)/100,transform:e=>pn.transform(e*100)},Eo={test:uh("hsl","hue"),parse:dx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pn.transform(Fs(t))+", "+pn.transform(Fs(n))+", "+Fs(hi.transform(r))+")"},Pe={test:e=>jr.test(e)||yd.test(e)||Eo.test(e),parse:e=>jr.test(e)?jr.parse(e):Eo.test(e)?Eo.parse(e):yd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?jr.transform(e):Eo.transform(e),getAnimatableNone:e=>{const t=Pe.parse(e);return t.alpha=0,Pe.transform(t)}},QR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function XR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lh))==null?void 0:t.length)||0)+(((n=e.match(QR))==null?void 0:n.length)||0)>0}const fx="number",hx="color",qR="var",ZR="var(",Pm="${}",JR=/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 Jo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(JR,l=>(Pe.test(l)?(r.color.push(s),o.push(hx),n.push(Pe.parse(l))):l.startsWith(ZR)?(r.var.push(s),o.push(qR),n.push(l)):(r.number.push(s),o.push(fx),n.push(parseFloat(l))),++s,Pm)).split(Pm);return{values:n,split:a,indexes:r,types:o}}function eA(e){return Jo(e).values}function px({split:e,types:t}){const n=e.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],r[s]!==void 0){const i=t[s];i===fx?o+=Fs(r[s]):i===hx?o+=Pe.transform(r[s]):o+=r[s]}return o}}function tA(e){return px(Jo(e))}const nA=e=>typeof e=="number"?0:Pe.test(e)?Pe.getAnimatableNone(e):e,rA=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:nA(e);function oA(e){const t=Jo(e);return px(t)(t.values.map((r,o)=>rA(r,t.split[o])))}const Ht={test:XR,parse:eA,createTransformer:tA,getAnimatableNone:oA};function Wu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Wu(l,a,e+1/3),s=Wu(l,a,e),i=Wu(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function ml(e,t){return n=>n>0?t:e}const de=(e,t,n)=>e+(t-e)*n,Hu=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},iA=[yd,jr,Eo],aA=e=>iA.find(t=>t.test(e));function km(e){const t=aA(e);if(Zl(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Eo&&(n=sA(n)),n}const Rm=(e,t)=>{const n=km(e),r=km(t);if(!n||!r)return ml(e,t);const o={...n};return s=>(o.red=Hu(n.red,r.red,s),o.green=Hu(n.green,r.green,s),o.blue=Hu(n.blue,r.blue,s),o.alpha=de(n.alpha,r.alpha,s),jr.transform(o))},vd=new Set(["none","hidden"]);function lA(e,t){return vd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function uA(e,t){return n=>de(e,t,n)}function ch(e){return typeof e=="number"?uA:typeof e=="string"?ah(e)?ml:Pe.test(e)?Rm:fA:Array.isArray(e)?mx:typeof e=="object"?Pe.test(e)?Rm:cA:ml}function mx(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>ch(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function cA(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ch(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function dA(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const fA=(e,t)=>{const n=Ht.createTransformer(t),r=Jo(e),o=Jo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?vd.has(e)&&!o.values.length||vd.has(t)&&!r.values.length?lA(e,t):ki(mx(dA(r,o),o.values),n):(Zl(!0,`Complex values '${e}' and '${t}
66' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ml(e,t))};function gx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?de(e,t,n):ch(e)(e,t)}const hA=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ae.update(t,n),stop:()=>Sr(t),now:()=>je.isProcessing?je.timestamp:Qe.now()}},yx=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},gl=2e4;function dh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<gl;)t+=n,r=e.next(t);return t>=gl?1/0:t}function pA(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(dh(r),gl);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Tt(o)}}const ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function wd(e,t){return e*Math.sqrt(1-t*t)}const mA=12;function gA(e,t,n){let r=n;for(let o=1;o<mA;o++)r=r-e(r)/t(r);return r}const Ku=.001;function yA({duration:e=ye.duration,bounce:t=ye.bounce,velocity:n=ye.velocity,mass:r=ye.mass}){let o,s;Zl(e<=lt(ye.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=yn(ye.minDamping,ye.maxDamping,i),e=yn(ye.minDuration,ye.maxDuration,Tt(e)),i<1?(o=u=>{const c=u*i,d=c*e,f=c-n,h=wd(u,i),w=Math.exp(-d);return Ku-f/h*w},s=u=>{const d=u*i*e,f=d*n+n,h=Math.pow(i,2)*Math.pow(u,2)*e,w=Math.exp(-d),p=wd(Math.pow(u,2),i);return(-o(u)+Ku>0?-1:1)*((f-h)*w)/p}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ku+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=gA(o,s,a);if(e=lt(e),isNaN(l))return{stiffness:ye.stiffness,damping:ye.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const vA=["duration","bounce"],wA=["stiffness","damping","mass"];function Am(e,t){return t.some(n=>e[n]!==void 0)}function xA(e){let t={velocity:ye.velocity,stiffness:ye.stiffness,damping:ye.damping,mass:ye.mass,isResolvedFromDuration:!1,...e};if(!Am(e,wA)&&Am(e,vA))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*yn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ye.mass,stiffness:o,damping:s}}else{const n=yA({...e,velocity:0});t={...t,...n,mass:ye.mass},t.isResolvedFromDuration=!0}return t}function yl(e=ye.visualDuration,t=ye.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=xA({...n,velocity:-Tt(n.velocity||0)}),w=f||0,p=u/(2*Math.sqrt(l*c)),x=i-s,g=Tt(Math.sqrt(l/c)),m=Math.abs(x)<5;r||(r=m?ye.restSpeed.granular:ye.restSpeed.default),o||(o=m?ye.restDelta.granular:ye.restDelta.default);let y,S,E,C,T,P;if(p<1)E=wd(g,p),C=(w+p*g*x)/E,y=R=>{const L=Math.exp(-p*g*R);return i-L*(C*Math.sin(E*R)+x*Math.cos(E*R))},T=p*g*C+x*E,P=p*g*x-C*E,S=R=>Math.exp(-p*g*R)*(T*Math.sin(E*R)+P*Math.cos(E*R));else if(p===1){y=L=>i-Math.exp(-g*L)*(x+(w+g*x)*L);const R=w+g*x;S=L=>Math.exp(-g*L)*(g*R*L-w)}else{const R=g*Math.sqrt(p*p-1);y=j=>{const H=Math.exp(-p*g*j),$=Math.min(R*j,300);return i-H*((w+p*g*x)*Math.sinh($)+R*x*Math.cosh($))/R};const L=(w+p*g*x)/R,A=p*g*L-x*R,U=p*g*x-L*R;S=j=>{const H=Math.exp(-p*g*j),$=Math.min(R*j,300);return H*(A*Math.sinh($)+U*Math.cosh($))}}const N={calculatedDuration:h&&d||null,velocity:R=>lt(S(R)),next:R=>{if(!h&&p<1){const A=Math.exp(-p*g*R),U=Math.sin(E*R),j=Math.cos(E*R),H=i-A*(C*U+x*j),$=lt(A*(T*U+P*j));return a.done=Math.abs($)<=r&&Math.abs(i-H)<=o,a.value=a.done?i:H,a}const L=y(R);if(h)a.done=R>=d;else{const A=lt(S(R));a.done=Math.abs(A)<=r&&Math.abs(i-L)<=o}return a.value=a.done?i:L,a},toString:()=>{const R=Math.min(dh(N),gl),L=yx(A=>N.next(R*A).value,R,30);return R+"ms "+L},toTransition:()=>{}};return N}yl.applyToOptions=e=>{const t=pA(e,100,yl);return e.ease=t.ease,e.duration=lt(t.duration),e.type="keyframes",e};const SA=5;function vx(e,t,n){const r=Math.max(t-SA,0);return qw(n-e(r),t-r)}function xd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,w=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let p=n*t;const x=d+p,g=i===void 0?x:i(x);g!==x&&(p=g-d);const m=P=>-p*Math.exp(-P/r),y=P=>g+m(P),S=P=>{const N=m(P),R=y(P);f.done=Math.abs(N)<=u,f.value=f.done?g:R};let E,C;const T=P=>{h(f.value)&&(E=P,C=yl({keyframes:[f.value,w(f.value)],velocity:vx(y,P,f.value),damping:o,stiffness:s,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let N=!1;return!C&&E===void 0&&(N=!0,S(P),T(P)),E!==void 0&&P>=E?C.next(P-E):(!N&&S(P),f)}}}function bA(e,t,n){const r=[],o=n||xr.mix||gx,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||kt:t;a=ki(l,a)}r.push(a)}return r}function EA(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Zo(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=bA(t,r,o),l=a.length,u=c=>{if(i&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=fi(e[d],e[d+1],c);return a[d](f)};return n?c=>u(yn(e[0],e[s-1],c)):u}function CA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=fi(0,t,r);e.push(de(n,1,o))}}function TA(e){const t=[0];return CA(t,e.length-1),t}function PA(e,t){return e.map(n=>n*t)}function kA(e,t){return e.map(()=>t||ix).splice(0,e.length-1)}function Vs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=_R(r)?r.map(bm):bm(r),s={done:!1,value:t[0]},i=PA(n&&n.length===t.length?n:TA(t),e),a=EA(i,t,{ease:Array.isArray(o)?o:kA(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const RA=e=>e!==null;function Jl(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(RA),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const AA={decay:xd,inertia:xd,tween:Vs,keyframes:Vs,spring:yl};function wx(e){typeof e.type=="string"&&(e.type=AA[e.type])}class fh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const MA=e=>e/100;class vl extends fh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Qe.now()&&this.tick(Qe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;wx(t);const{type:n=Vs,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Vs;l!==Vs&&typeof a[0]!="number"&&(this.mixKeyframes=ki(MA,gx(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=dh(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}
vendor: 12,452 bytes, line 66
66tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:h,type:w,onUpdate:p,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?g<0:g>o;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let y=this.currentTime,S=r;if(d){const P=Math.min(this.currentTime,o)/a;let N=Math.floor(P),R=P%1;!R&&P>=1&&(R=1),R===1&&N--,N=Math.min(N,d+1),!!(N%2)&&(f==="reverse"?(R=1-R,h&&(R-=h/a)):f==="mirror"&&(S=i)),y=yn(0,1,R)*a}let E;m?(this.delayState.value=c[0],E=this.delayState):E=S.next(y),s&&!m&&(E.value=s(E.value));let{done:C}=E;!m&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return T&&w!==xd&&(E.value=Jl(c,this.options,x,this.speed)),p&&p(E.value),T&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Tt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Tt(t)}get time(){return Tt(this.currentTime)}set time(t){t=lt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return vx(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Qe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Tt(this.currentTime))}play(){var o,s;if(this.isStopped)return;const{driver:t=hA,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),(s=(o=this.options).onPlay)==null||s.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Qe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function NA(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const _r=e=>e*180/Math.PI,Sd=e=>{const t=_r(Math.atan2(e[1],e[0]));return bd(t)},DA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sd,rotateZ:Sd,skewX:e=>_r(Math.atan(e[1])),skewY:e=>_r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bd=e=>(e=e%360,e<0&&(e+=360),e),Mm=Sd,Nm=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Dm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),LA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nm,scaleY:Dm,scale:e=>(Nm(e)+Dm(e))/2,rotateX:e=>bd(_r(Math.atan2(e[6],e[5]))),rotateY:e=>bd(_r(Math.atan2(-e[2],e[0]))),rotateZ:Mm,rotate:Mm,skewX:e=>_r(Math.atan(e[4])),skewY:e=>_r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ed(e){return e.includes("scale")?1:0}function Cd(e,t){if(!e||e==="none")return Ed(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=LA,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=DA,o=a}if(!o)return Ed(t);const s=r[t],i=o[1].split(",").map(jA);return typeof s=="function"?s(i):i[s]}const OA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Cd(n,t)};function jA(e){return parseFloat(e.trim())}const us=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cs=new Set(us),Lm=e=>e===ls||e===V,_A=new Set(["x","y","z"]),IA=us.filter(e=>!_A.has(e));function FA(e){const t=[];return IA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ar={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Cd(t,"x"),y:(e,{transform:t})=>Cd(t,"y")};ar.translateX=ar.x;ar.translateY=ar.y;const Hr=new Set;let Td=!1,Pd=!1,kd=!1;function xx(){if(Pd){const e=Array.from(Hr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=FA(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{var a;(a=r.getValue(s))==null||a.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pd=!1,Td=!1,Hr.forEach(e=>e.complete(kd)),Hr.clear()}function Sx(){Hr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pd=!0)})}function VA(){kd=!0,Sx(),xx(),kd=!1}class hh{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Hr.add(this),Td||(Td=!0,ae.read(Sx),ae.resolveKeyframes(xx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o==null?void 0:o.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}NA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Hr.delete(this)}cancel(){this.state==="scheduled"&&(Hr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const $A=e=>e.startsWith("--");function bx(e,t,n){$A(t)?e.style.setProperty(t,n):e.style[t]=n}const zA={};function Ex(e,t){const n=Xw(e);return()=>zA[t]??n()}const BA=Ex(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Cx=Ex(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ps=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Om={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ps([0,.65,.55,1]),circOut:Ps([.55,0,1,.45]),backIn:Ps([.31,.01,.66,-.59]),backOut:Ps([.33,1.53,.69,.99])};function Tx(e,t){if(e)return typeof e=="function"?Cx()?yx(e,t):"ease-out":ax(e)?Ps(e):Array.isArray(e)?e.map(n=>Tx(n,t)||Om.easeOut):Om[e]}function UA(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Tx(a,o);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Px(e){return typeof e=="function"&&"applyToOptions"in e}function WA({type:e,...t}){return Px(e)&&Cx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class kx extends fh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,Zo(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=WA(t);this.animation=UA(n,r,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Jl(o,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),bx(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,o;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(r=this.animation).commitStyles)==null||o.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Tt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Tt(t)}get time(){return Tt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=lt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&BA()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),kt):o(this)}}const Rx={anticipate:rx,backInOut:nx,circInOut:sx};function HA(e){return e in Rx}function KA(e){typeof e.ease=="string"&&HA(e.ease)&&(e.ease=Rx[e.ease])}const Gu=10;class GA extends kx{constructor(t){KA(t),wx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new vl({...i,autoplay:!1}),l=Math.max(Gu,Qe.now()-this.startTime),u=yn(0,Gu,l-Gu),c=a.sample(l).value,{name:d}=this.options;s&&d&&bx(s,d,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const jm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ht.test(e)||e==="0")&&!e.startsWith("url("));function YA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function QA(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=jm(o,t),a=jm(s,t);return Zl(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:YA(e)||(n==="spring"||Px(n))&&r}function Rd(e){e.duration=0,e.type="keyframes"}const Ax=new Set(["opacity","clipPath","filter","transform"]),XA=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function qA(e){for(let t=0;t<e.length;
66t++)if(typeof e[t]=="string"&&XA.test(e[t]))return!0;return!1}const ZA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),JA=Xw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eM(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return JA()&&n&&(Ax.has(n)||ZA.has(n)&&qA(a))&&(n!=="transform"||!c)&&!u&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const tM=40;class nM extends fh{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var w;super(),this.stop=()=>{var p,x;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Qe.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:u,element:c,...d},h=(c==null?void 0:c.KeyframeResolver)||hh;this.keyframeResolver=new h(a,(p,x,g)=>this.onKeyframesResolved(p,x,f,!g),l,u,c),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,o){var g,m;this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Qe.now();let d=!0;QA(t,s,i,a)||(d=!1,(xr.instantAnimations||!l)&&(c==null||c(Jl(t,r,n))),t[0]=t[t.length-1],Rd(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>tM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=d&&!u&&eM(h),p=(m=(g=h.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let x;if(w)try{x=new GA({...h,element:p})}catch{x=new vl(h)}else x=new vl(h);x.finished.then(()=>{this.notifyFinished()}).catch(kt),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),VA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Mx(e,t,n,r=0,o=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}const rM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oM(e){const t=rM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const sM=4;function Nx(e,t,n=1){Zo(n<=sM,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=oM(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return Gw(i)?parseFloat(i):i}return ah(o)?Nx(o,t,n+1):o}const iM={type:"spring",stiffness:500,damping:25,restSpeed:10},aM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lM={type:"keyframes",duration:.8},uM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cM=(e,{keyframes:t})=>t.length>2?lM:cs.has(e)?e.startsWith("scale")?aM(t[1]):iM:uM;function Dx(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function ph(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Dx(n,e):n}const dM=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function fM(e){for(const t in e)if(!dM.has(t))return!0;return!1}const mh=(e,t,n,r={},o,s)=>i=>{const a=ph(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-lt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};
vendor: 60,960 bytes, line 66
66fM(a)||Object.assign(c,cM(e,c)),c.duration&&(c.duration=lt(c.duration)),c.repeatDelay&&(c.repeatDelay=lt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Rd(c),c.delay===0&&(d=!0)),(xr.instantAnimations||xr.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(d=!0,Rd(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=Jl(c.keyframes,a);if(f!==void 0){ae.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new vl(c):new nM(c)};function _m(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function gh(e,t,n,r){if(typeof t=="function"){const[o,s]=_m(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=_m(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Kr(e,t,n){const r=e.getProps();return gh(r,t,n!==void 0?n:r.custom,e)}const Lx=new Set(["width","height","top","left","right","bottom",...us]),Im=30,hM=e=>!isNaN(parseFloat(e));class pM{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const o=Qe.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Qe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=hM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oh);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Qe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Im)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Im);return qw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function es(e,t){return new pM(e,t)}const Ad=e=>Array.isArray(e);function mM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,es(n))}function gM(e){return Ad(e)?e[e.length-1]||0:e}function yM(e,t){const n=Kr(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=gM(s[i]);mM(e,i,a)}}const _e=e=>!!(e&&e.getVelocity);function vM(e){return!!(_e(e)&&e.add)}function Md(e,t){const n=e.getValue("willChange");if(vM(n))return n.add(t);if(!n&&xr.WillChange){const r=new xr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function yh(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const wM="framerAppearId",Ox="data-"+yh(wM);function jx(e){return e.props[Ox]}function xM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _x(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s,transitionEnd:i,...a}=t;const l=e.getDefaultTransition();s=s?Dx(s,l):l;const u=s==null?void 0:s.reduceMotion;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in a){const h=e.getValue(f,e.latestValues[f]??null),w=a[f];if(w===void 0||d&&xM(d,f))continue;const p={delay:n,...ph(s||{},f)},x=h.get();if(x!==void 0&&!h.isAnimating()&&!Array.isArray(w)&&w===x&&!p.velocity){ae.update(()=>h.set(w));continue}let g=!1;if(window.MotionHandoffAnimation){const S=jx(e);if(S){const E=window.MotionHandoffAnimation(S,f,ae);E!==null&&(p.startTime=E,g=!0)}}Md(e,f);const m=u??e.shouldReduceMotion;h.start(mh(f,h,w,m&&Lx.has(f)?{type:!1}:p,e,g));const y=h.animation;y&&c.push(y)}if(i){const f=()=>ae.update(()=>{i&&yM(e,i)});c.length?Promise.all(c).then(f):f()}return c}function Nd(e,t,n={}){var l;const r=Kr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(_x(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return SM(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,c]=a==="beforeChildren"?[s,i]:[i,s];return u().then(()=>c())}else return Promise.all([s(),i(n.delay)])}function SM(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Nd(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Mx(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function bM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Nd(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Nd(e,t,n);else{const o=typeof t=="function"?Kr(e,t,n.custom):t;r=Promise.all(_x(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const EM={test:e=>e==="auto",parse:e=>e},Ix=e=>t=>t.test(e),Fx=[ls,V,pn,Gn,YR,GR,EM],Fm=e=>Fx.find(Ix(e));function CM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qw(e):!0}const TM=new Set(["brightness","contrast","saturate","opacity"]);function PM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(lh)||[];if(!r)return e;const o=n.replace(r,"");let s=TM.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const kM=/\b([a-z-]*)\(.*?\)/gu,Dd={...Ht,getAnimatableNone:e=>{const t=e.match(kM);return t?t.map(PM).join(" "):e}},Ld={...Ht,getAnimatableNone:e=>{const t=Ht.parse(e);return Ht.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Vm={...ls,transform:Math.round},RM={rotate:Gn,rotateX:Gn,rotateY:Gn,rotateZ:Gn,scale:ra,scaleX:ra,scaleY:ra,scaleZ:ra,skew:Gn,skewX:Gn,skewY:Gn,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:hi,originX:Tm,originY:Tm,originZ:V},vh={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...RM,zIndex:Vm,fillOpacity:hi,strokeOpacity:hi,numOctaves:Vm},AM={...vh,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:Dd,WebkitFilter:Dd,mask:Ld,WebkitMask:Ld},Vx=e=>AM[e],MM=new Set([Dd,Ld]);function $x(e,t){let n=Vx(e);return MM.has(n)||(n=Ht),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const NM=new Set(["auto","none","0"]);function DM(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!NM.has(s)&&Jo(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=$x(n,o)}class LM extends hh{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),ah(d))){const f=Nx(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Lx.has(r)||t.length!==2)return;const[o,s]=t,i=Fm(o),a=Fm(s),l=Cm(o),u=Cm(s);if(l!==u&&ar[r]){this.needsMeasurement=!0;return}if(i!==a)if(Lm(i)&&Lm(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else ar[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||CM(t[o]))&&r.push(o);r.length&&DM(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ar[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=ar[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function zx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Bx=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ra(e){return Yw(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:wh,cancel:mO}=lx(queueMicrotask,!1),_t={x:!1,y:!1};function Ux(){return _t.x||_t.y}function OM(e){return e==="x"||e==="y"?_t[e]?null:(_t[e]=!0,()=>{_t[e]=!1}):_t.x||_t.y?null:(_t.x=_t.y=!0,()=>{_t.x=_t.y=!1})}function Wx(e,t){const n=zx(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function jM(e){return!(e.pointerType==="touch"||Ux())}function _M(e,t,n={}){const[r,o,s]=Wx(e,n);return r.forEach(i=>{let a=!1,l=!1,u;const c=()=>{i.removeEventListener("pointerleave",w)},d=x=>{u&&(u(x),u=void 0),c()},f=x=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(x))},h=()=>{a=!0,window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",f,o)},w=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}d(x)}},p=x=>{if(!jM(x))return;l=!1;const g=t(i,x);typeof g=="function"&&(u=g,i.addEventListener("pointerleave",w,o))};i.addEventListener("pointerenter",p,o),i.addEventListener("pointerdown",h,o)}),s}const Hx=(e,t)=>t?e===t?!0:Hx(e,t.parentElement):!1,xh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,IM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FM(e){return IM.has(e.tagName)||e.isContentEditable===!0}const VM=new Set(["INPUT","SELECT","TEXTAREA"]);function $M(e){return VM.has(e.tagName)||e.isContentEditable===!0}const Aa=new WeakSet;function $m(e){return t=>{t.key==="Enter"&&e(t)}}function Yu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zM=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=$m(()=>{if(Aa.has(n))return;Yu(n,"down");const o=$m(()=>{Yu(n,"up")}),s=()=>Yu(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function zm(e){return xh(e)&&!Ux()}const Bm=new WeakSet;function BM(e,t,n={}){const[r,o,s]=Wx(e,n),i=a=>{const l=a.currentTarget;if(!zm(a)||Bm.has(a))return;Aa.add(l),n.stopPropagation&&Bm.add(a);const u=t(l,a),c=(h,w)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Aa.has(l)&&Aa.delete(l),zm(h)&&typeof u=="function"&&u(h,{success:w})},d=h=>{c(h,l===window||l===document||n.useGlobalTarget||Hx(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),Ra(a)&&(a.addEventListener("focus",u=>zM(u,o)),!FM(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Sh(e){return Yw(e)&&"ownerSVGElement"in e}const Ma=new WeakMap;let Yn;const Kx=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Sh(r)&&"getBBox"in r?r.getBBox()[t]:r[n],UM=Kx("inline","width","offsetWidth"),WM=Kx("block","height","offsetHeight");function HM({target:e,borderBoxSize:t}){var n;(n=Ma.get(e))==null||n.forEach(r=>{r(e,{get width(){return UM(e,t)},get height(){return WM(e,t)}})})}function KM(e){e.forEach(HM)}function GM(){typeof ResizeObserver>"u"||(Yn=new ResizeObserver(KM))}function YM(e,t){Yn||GM();const n=zx(e);return n.forEach(r=>{let o=Ma.get(r);o||(o=new Set,Ma.set(r,o)),o.add(t),Yn==null||Yn.observe(r)}),()=>{n.forEach(r=>{const o=Ma.get(r);o==null||o.delete(t),o!=null&&o.size||Yn==null||Yn.unobserve(r)})}}const Na=new Set;let Co;function QM(){Co=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Na.forEach(t=>t(e))},window.addEventListener("resize",Co)}function XM(e){return Na.add(e),Co||QM(),()=>{Na.delete(e),!Na.size&&typeof Co=="function"&&(window.removeEventListener("resize",Co),Co=void 0)}}function Um(e,t){return typeof e=="function"?XM(e):YM(e,t)}function qM(e){return Sh(e)&&e.tagName==="svg"}const ZM=[...Fx,Pe,Ht],JM=e=>ZM.find(Ix(e)),Wm=()=>({translate:0,scale:1,origin:0,originPoint:0}),To=()=>({x:Wm(),y:Wm()}),Hm=()=>({min:0,max:0}),Re=()=>({x:Hm(),y:Hm()}),eN=new WeakMap;function eu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function pi(e){return typeof e=="string"||Array.isArray(e)}const bh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Eh=["initial",...bh];function tu(e){return eu(e.animate)||Eh.some(t=>pi(e[t]))}function Gx(e){return!!(tu(e)||e.variants)}function tN(e,t,n){for(const r in t){const o=t[r],s=n[r];if(_e(o))e.addValue(r,o);else if(_e(s))e.addValue(r,es(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,es(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Od={current:null},Yx={current:!1},nN=typeof window<"u";function rN(){if(Yx.current=!0,!!nN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addEventListener("change",t),t()}else Od.current=!1}const Km=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wl={};function Qx(e){wl=e}function oN(){return wl}class sN{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Qe.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ae.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=tu(n),this.isVariantNode=Gx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const w=f[h];u[h]!==void 0&&_e(w)&&w.set(u[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const o in this.initialValues)(n=this.values.get(o))==null||n.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,eN.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,s)=>this.bindToMotionValue(s,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Yx.current||rN(),this.shouldReduceMotion=Od.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Sr(this.notifyUpdate),Sr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Ax.has(t)&&this.current instanceof HTMLElement){const{factory:i,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new kx({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:lt(c)}),f=i(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=cs.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in wl){const n=wl[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Km.length;r++){const o=Km[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=tN(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=es(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Gw(r)||Qw(r))?r=parseFloat(r):!JM(r)&&Ht.test(n)&&(r=$x(t,n)),this.setBaseTarget(t,_e(r)?r.get():r)),_e(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=gh(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!_e(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){wh.render(this.render)}}class Xx extends sN{constructor(){super(...arguments),this.KeyframeResolver=LM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Tr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qu(e){return e===void 0||e===1}function jd({scale:e,scaleX:t,scaleY:n}){return!Qu(e)||!Qu(t)||!Qu(n)}function Nr(e){return jd(e)||Zx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zx(e){return Gm(e.x)||Gm(e.y)}function Gm(e){return e&&e!=="0%"}function xl(e,t,n){const r=e-n,o=t*r;return n+o}function Ym(e,t,n,r,o){return o!==void 0&&(e=xl(e,o,r)),xl(e,n,r)+t}function _d(e,t=0,n=1,r,o){e.min=Ym(e.min,t,n,r,o),e.max=Ym(e.max,t,n,r,o)}function Jx(e,{x:t,y:n}){_d(e.x,t.translate,t.scale,t.originPoint),_d(e.y,n.translate,n.scale,n.originPoint)}const Qm=.999999999999,Xm=1.0000000000001;function lN(e,t,n,r=!1){var a;const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let l=0;l<o;l++){s=n[l],i=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(an(e.x,-s.scroll.offset.x),an(e.y,-s.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Jx(e,i)),r&&Nr(s.latestValues)&&Da(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<Xm&&t.x>Qm&&(t.x=1),t.y<Xm&&t.y>Qm&&(t.y=1)}function an(e,t){e.min+=t,e.max+=t}function qm(e,t,n,r,o=.5){const s=de(e.min,e.max,o);_d(e,t,n,s,r)}function Zm(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Da(e,t,n){const r=n??e;qm(e.x,Zm(t.x,r.x),t.scaleX,t.scale,t.originX),qm(e.y,Zm(t.y,r.y),t.scaleY,t.scale,t.originY)}function e1(e,t){return qx(aN(e.getBoundingClientRect(),t))}function uN(e,t,n){const r=e1(e,n),{scroll:o}=t;return o&&(an(r.x,o.offset.x),an(r.y,o.offset.y)),r}const cN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dN=us.length;function fN(e,t,n){let r="",o=!0;for(let s=0;s<dN;s++){const i=us[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(i.startsWith("scale")?1:0);else{const u=parseFloat(a);l=i.startsWith("scale")?u===1:u===0}if(!l||n){const u=Bx(a,vh[i]);if(!l){o=!1;const c=cN[i]||i;r+=`${c}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ch(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const u=t[l];if(cs.has(l)){i=!0;continue}else if(cx(l)){o[l]=u;continue}else{const c=Bx(u,vh[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(i||n?r.transform=fN(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}function t1(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o==null||o.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Jm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ss={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Jm(e,t.target.x),r=Jm(e,t.target.y);return`${n}% ${r}%`}},hN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ht.parse(e);if(o.length>5)return r;const s=Ht.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const u=de(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=u),typeof o[3+i]=="number"&&(o[3+i]/=u),s(o)}},Id={borderRadius:{...Ss,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ss,borderTopRightRadius:Ss,borderBottomLeftRadius:Ss,borderBottomRightRadius:Ss,boxShadow:hN};function n1(e,{layout:t,layoutId:n}){return cs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Id[e]||e==="opacity")}function Th(e,t,n){var i;const r=e.style,o=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(_e(r[a])||o&&_e(o[a])||n1(a,e)||((i=n==null?void 0:n.getValue(a))==null?void 0:i.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function pN(e){return window.getComputedStyle(e)}class mN extends Xx{constructor(){super(...arguments),this.type="html",this.renderInstance=t1}readValueFromInstance(t,n){var r;if(cs.has(n))return(r=this.projection)!=null&&r.isProjecting?Ed(n):OA(t,n);{const o=pN(t),s=(cx(n)?o.getPropertyValue(n):o[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return e1(t,n)}build(t,n,r){Ch(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Th(t,n,r)}}const gN={offset:"stroke-dashoffset",array:"stroke-dasharray"},yN={offset:"strokeDashoffset",array:"strokeDasharray"};function vN(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?gN:yN;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const wN=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function r1(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,u,c){if(Ch(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const h of wN)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&vN(d,o,s,i,!1)}const o1=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"]),s1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xN(e,t,n,r){t1(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(o1.has(o)?o:yh(o),t.attrs[o])}function i1(e,t,n){const r=Th(e,t,n);for(const o in e)if(_e(e[o])||_e(t[o])){const s=us.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}class SN extends Xx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(cs.has(n)){const r=Vx(n);return r&&r.default||0}return n=o1.has(n)?n:yh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return i1(t,n,r)}build(t,n,r){r1(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){xN(t,n,r,o)}mount(t){this.isSVGTag=s1(t.tagName),super.mount(t)}}const bN=Eh.length;function a1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?a1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<bN;n++){const r=Eh[n],o=e.props[r];(pi(o)||o===!1)&&(t[r]=o)}return t}function l1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const EN=[...bh].reverse(),CN=bh.length;function TN(e){return t=>Promise.all(t.map(({animation:n,options:r})=>bM(e,n,r)))}function PN(e){let t=TN(e),n=eg(),r=!0,o=!1;const s=u=>(c,d)=>{var h;const f=Kr(e,d,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(f){const{transition:w,transitionEnd:p,...x}=f;c={...c,...x,...p}}return c};function i(u){t=u(e)}function a(u){const{props:c}=e,d=a1(e.parent)||{},f=[],h=new Set;let w={},p=1/0;for(let g=0;g<CN;g++){const m=EN[g],y=n[m],S=c[m]!==void 0?c[m]:d[m],E=pi(S),C=m===u?y.isActive:null;C===!1&&(p=g);let T=S===d[m]&&S!==c[m]&&E;if(T&&(r||o)&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...w},!y.isActive&&C===null||!S&&!y.prevProp||eu(S)||typeof S=="boolean")continue;if(m==="exit"&&y.isActive&&C!==!0){y.prevResolvedValues&&(w={...w,...y.prevResolvedValues});continue}const P=kN(y.prevProp,S);let N=P||m===u&&y.isActive&&!T&&E||g>p&&E,R=!1;const L=Array.isArray(S)?S:[S];let A=L.reduce(s(m),{});C===!1&&(A={});const{prevResolvedValues:U={}}=y,j={...U,...A},H=k=>{N=!0,h.has(k)&&(R=!0,h.delete(k)),y.needsAnimating[k]=!0;const M=e.getValue(k);M&&(M.liveStyle=!1)};for(const k in j){const M=A[k],I=U[k];if(w.hasOwnProperty(k))continue;let W=!1;Ad(M)&&Ad(I)?W=!l1(M,I):W=M!==I,W?M!=null?H(k):h.add(k):M!==void 0&&h.has(k)?H(k):y.protectedKeys[k]=!0}y.prevProp=S,y.prevResolvedValues=A,y.isActive&&(w={...w,...A}),(r||o)&&e.blockInitialAnimation&&(N=!1);const $=T&&P;N&&(!$||R)&&f.push(...L.map(k=>{const M={type:m};if(typeof k=="string"&&(r||o)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,W=Kr(I,k);if(I.enteringChildren&&W){const{delayChildren:z}=W.transition||{};M.delay=Mx(I.enteringChildren,e,z)}}return{animation:k,options:M}}))}if(h.size){const g={};if(typeof c.initial!="boolean"){const m=Kr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(g.transition=m.transition)}h.forEach(m=>{const y=e.getBaseTarget(m),S=e.getValue(m);S&&(S.liveStyle=!0),g[m]=y??null}),f.push({animation:g})}let x=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,o=!1,x?t(f):Promise.resolve()}function l(u,c){var f;if(n[u].isActive===c)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(h=>{var w;return(w=h.animationState)==null?void 0:w.setActive(u,c)}),n[u].isActive=c;const d=a(u);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=eg(),o=!0}}}function kN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!l1(t,e):!1}function Rr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eg(){return{animate:Rr(!0),whileInView:Rr(),whileHover:Rr(),whileTap:Rr(),whileDrag:Rr(),whileFocus:Rr(),exit:Rr()}}function Fd(e,t){e.min=t.min,e.max=t.max}function jt(e,t){Fd(e.x,t.x),Fd(e.y,t.y)}function tg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const u1=1e-4,RN=1-u1,AN=1+u1,c1=.01,MN=0-c1,NN=0+c1;function Xe(e){return e.max-e.min}function DN(e,t,n){return Math.abs(e-t)<=n}function ng(e,t,n,r=.5){e.origin=r,e.originPoint=de(t.min,t.max,e.origin),e.scale=Xe(n)/Xe(t),e.translate=de(n.min,n.max,e.origin)-e.originPoint,(e.scale>=RN&&e.scale<=AN||isNaN(e.scale))&&(e.scale=1),(e.translate>=MN&&e.translate<=NN||isNaN(e.translate))&&(e.translate=0)}function $s(e,t,n,r){ng(e.x,t.x,n.x,r?r.originX:void 0),ng(e.y,t.y,n.y,r?r.originY:void 0)}function rg(e,t,n,r=0){const o=r?de(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+Xe(t)}function LN(e,t,n,r){rg(e.x,t.x,n.x,r==null?void 0:r.x),rg(e.y,t.y,n.y,r==null?void 0:r.y)}function og(e,t,n,r=0){const o=r?de(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+Xe(t)}function Sl(e,t,n,r){og(e.x,t.x,n.x,r==null?void 0:r.x),og(e.y,t.y,n.y,r==null?void 0:r.y)}function sg(e,t,n,r,o){return e-=t,e=xl(e,1/n,r),o!==void 0&&(e=xl(e,1/o,r)),e}function ON(e,t=0,n=1,r=.5,o,s=e,i=e){if(pn.test(t)&&(t=parseFloat(t),t=de(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=de(s.min,s.max,r);e===s&&(a-=t),e.min=sg(e.min,t,n,a,o),e.max=sg(e.max,t,n,a,o)}function ig(e,t,[n,r,o],s,i){ON(e,t[n],t[r],t[o],t.scale,s,i)}const jN=["x","scaleX","originX"],_N=["y","scaleY","originY"];function ag(e,t,n,r){ig(e.x,t,jN,n?n.x:void 0,r?r.x:void 0),ig(e.y,t,_N,n?n.y:void 0,r?r.y:void 0)}function lg(e){return e.translate===0&&e.scale===1}function d1(e){return lg(e.x)&&lg(e.y)}function ug(e,t){return e.min===t.min&&e.max===t.max}function IN(e,t){return ug(e.x,t.x)&&ug(e.y,t.y)}function cg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function f1(e,t){return cg(e.x,t.x)&&cg(e.y,t.y)}function dg(e){return Xe(e.x)/Xe(e.y)}function fg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function nn(e){return[e("x"),e("y")]}function FN(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:w}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const h1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],VN=h1.length,hg=e=>typeof e=="string"?parseFloat(e):e,pg=e=>typeof e=="number"||V.test(e);function $N(e,t,n,r,o,s){o?(e.opacity=de(0,n.opacity??1,zN(r)),e.opacityExit=de(t.opacity??1,0,BN(r))):s&&(e.opacity=de(t.opacity??1,n.opacity??1,r));for(let i=0;i<VN;i++){const a=h1[i];let l=mg(t,a),u=mg(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||pg(l)===pg(u)?(e[a]=Math.max(de(hg(l),hg(u),r),0),(pn.test(u)||pn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=de(t.rotate||0,n.rotate||0,r))}function mg(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zN=p1(0,.5,ox),BN=p1(.5,.95,kt);function p1(e,t,n){return r=>r<e?0:r>t?1:n(fi(e,t,r))}function UN(e,t,n){const r=_e(e)?e:es(e);return r.start(mh("",r,t,n)),r.animation}function mi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const WN=(e,t)=>e.depth-t.depth;class HN{constructor(){this.children=[],this.isDirty=!1}add(t){rh(this.children,t),this.isDirty=!0}remove(t){pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WN),this.isDirty=!1,this.children.forEach(t)}}function KN(e,t){const n=Qe.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Sr(r),e(s-t))};return ae.setup(r,!0),()=>Sr(r)}function La(e){return _e(e)?e.get():e}class GN{constructor(){this.members=[]}add(t){rh(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(pl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1&&((n=o.instance)==null?void 0:n.isConnected)!==!1)return this.promote(o),!0}return!1}promote(t,n){var o;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:i}=t.options;(s===void 0||s!==i)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(o=t.root)!=null&&o.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,s,i;(r=(n=t.options).onExitComplete)==null||r.call(n),(i=(o=t.resumingFrom)==null?void 0:(s=o.options).onExitComplete)==null||i.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Oa={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xu=["","X","Y","Z"],YN=1e3;let QN=0;function qu(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function m1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=jx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&m1(r)}function g1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t==null?void 0:t()){this.id=QN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZN),this.nodes.forEach(oD),this.nodes.forEach(sD),this.nodes.forEach(JN)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new HN)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new oh),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Sh(i)&&!qM(i),this.instance=i;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;ae.read(()=>{d=window.innerWidth}),e(i,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,c&&c(),c=KN(f,250),Oa.hasAnimatedSinceResize&&(Oa.hasAnimatedSinceResize=!1,this.nodes.forEach(vg)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||u.getDefaultTransition()||cD,{onLayoutAnimationStart:p,onLayoutAnimationComplete:x}=u.getProps(),g=!this.targetLayout||!f1(this.targetLayout,h),m=!d&&f;if(this.options.layoutRoot||this.resumeFrom||m||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...ph(w,"layout"),onPlay:p,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,m)}else d||vg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Sr(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(iD),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&m1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(tD),this.nodes.forEach(gg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nD),this.nodes.forEach(rD),this.nodes.forEach(XN),this.nodes.forEach(qN)):this.nodes.forEach(yg),this.clearAllSnapshots();const a=Qe.now();je.delta=yn(0,1e3/60,a-je.timestamp),je.timestamp=a,je.isProcessing=!0,Bu.update.process(je),Bu.preRender.process(je),Bu.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eD),this.sharedNodes.forEach(aD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ae.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ae.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Xe(this.snapshot.measuredBox.x)&&!Xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Re()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!d1(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;i&&this.instance&&(a||Nr(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),dD(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:i}=this.options;if(!i)return Re();const a=i.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(fD))){const{scroll:c}=this.root;c&&(an(a.x,c.offset.x),an(a.y,c.offset.y))}return a}removeElementScroll(i){var l;const a=Re();if(jt(a,i),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&jt(a,i),an(a.x,d.offset.x),an(a.y,d.offset.y))}return a}applyTransform(i,a=!1,l){var c,d;const u=l||Re();jt(u,i);for(let f=0;f<this.path.length;f++){const h=this.path[f];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(an(u.x,-h.scroll.offset.x),an(u.y,-h.scroll.offset.y)),Nr(h.latestValues)&&Da(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return Nr(this.latestValues)&&Da(u,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),u}removeTransform(i){var l;const a=Re();jt(a,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Nr(c.latestValues))continue;let d;c.instance&&(jd(c.latestValues)&&c.updateSnapshot(),d=Re(),jt(d,c.measurePageBox())),ag(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,d)}return Nr(this.latestValues)&&ag(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=je.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),LN(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):jt(this.target,this.layout.layoutBox),Jx(this.target,this.targetDelta)):jt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||jd(this.parent.latestValues)||Zx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,l){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Sl(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),jt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const i=this.getLead(),a=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===je.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;jt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;lN(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Re());const{target:h}=i;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tg(this.prevProjectionDelta.x,this.projectionDelta.x),tg(this.prevProjectionDelta.y,this.projectionDelta.y)),$s(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!fg(this.projectionDelta.x,this.prevProjectionDelta.x)||!fg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=To(),this.projectionDelta=To(),this.projectionDeltaWithTransform=To()}setAnimationOrigin(i,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=To();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Re(),h=l?l.source:void 0,w=this.layout?this.layout.source:void 0,p=h!==w,x=this.getStack(),g=!x||x.members.length<=1,m=!!(p&&!g&&this.options.crossfade===!0&&!this.path.some(uD));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const E=S/1e3;wg(d.x,i.x,E),wg(d.y,i.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),lD(this.relativeTarget,this.relativeTargetOrigin,f,E),y&&IN(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Re()),jt(y,this.relativeTarget)),p&&(this.animationValues=c,$N(c,u,this.latestValues,E,m,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{Oa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=es(0)),this.motionValue.jump(0,!1),this.currentAnimation=UN(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),i.onUpdate&&i.onUpdate(c)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=i;if(!(!a||!l||!u)){if(this!==i&&this.layout&&u&&y1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Re();const d=Xe(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;const f=Xe(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}jt(a,l),Da(a,c),$s(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new GN),this.sharedNodes.get(i).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var a;const{layoutId:i}=this.options;return i?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:i}=this.options;return i?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&qu("z",i,u,this.animationValues);for(let c=0;c<Xu.length;c++)qu(`rotate${Xu[c]}`,i,u,this.animationValues),qu(`skew${Xu[c]}`,i,u,this.animationValues);i.render();for(const c in u)i.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=La(a==null?void 0:a.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=La(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Nr(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=FN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),i.transform=d;const{x:f,y:h}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,u.animationValues?i.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:i.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const w in Id){if(c[w]===void 0)continue;const{correct:p,applyTo:x,isCSSVariable:g}=Id[w],m=d==="none"?c[w]:p(c[w],u);if(x){const y=x.length;for(let S=0;S<y;S++)i[x[S]]=m}else g?this.options.visualElement.renderState.vars[w]=m:i[w]=m}this.options.layoutId&&(i.pointerEvents=u===this?La(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(gg),this.root.sharedNodes.clear()}}}function XN(e){e.updateLayout()}function qN(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:s}=e.options,i=t.source!==e.layout.source;if(s==="size")nn(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],h=Xe(f);f.min=r[d].min,f.max=f.min+h});else if(s==="x"||s==="y"){const d=s==="x"?"y":"x";Fd(i?t.measuredBox[d]:t.layoutBox[d],r[d])}else y1(s,t.layoutBox,r)&&nn(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],h=Xe(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=To();$s(a,r,t.layoutBox);const l=To();i?$s(l,e.applyTransform(o,!0),t.measuredBox):$s(l,r,t.layoutBox);const u=!d1(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const w=e.options.layoutAnchor||void 0,p=Re();Sl(p,t.layoutBox,f.layoutBox,w);const x=Re();Sl(x,r,h.layoutBox,w),f1(p,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ZN(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function JN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function eD(e){e.clearSnapshot()}function gg(e){e.clearMeasurements()}function tD(e){e.isLayoutDirty=!0,e.updateLayout()}function yg(e){e.isLayoutDirty=!1}function nD(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function rD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oD(e){e.resolveTargetDelta()}function sD(e){e.calcProjection()}
66function iD(e){e.resetSkewAndRotation()}function aD(e){e.removeLeadSnapshot()}function wg(e,t,n){e.translate=de(t.translate,0,n),e.scale=de(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xg(e,t,n,r){e.min=de(t.min,n.min,r),e.max=de(t.max,n.max,r)}function lD(e,t,n,r){xg(e.x,t.x,n.x,r),xg(e.y,t.y,n.y,r)}function uD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cD={duration:.45,ease:[.4,0,.1,1]},Sg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bg=Sg("applewebkit/")&&!Sg("chrome/")?Math.round:kt;function Eg(e){e.min=bg(e.min),e.max=bg(e.max)}function dD(e){Eg(e.x),Eg(e.y)}function y1(e,t,n){return e==="position"||e==="preserve-aspect"&&!DN(dg(t),dg(n),.2)}function fD(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const hD=g1({attachResizeListener:(e,t)=>mi(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Zu={current:void 0},v1=g1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zu.current){const e=new hD({});e.mount(window),e.setOptions({layoutScroll:!0}),Zu.current=e}return Zu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ph=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Cg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pD(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Cg(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Cg(e[o],null)}}}}function mD(...e){return v.useCallback(pD(...e),e)}class gD extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Ra(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,o=Ra(r)&&r.offsetWidth||0,s=Ra(r)&&r.offsetHeight||0,i=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=o-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function yD({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:s}){var f;const i=v.useId(),a=v.useRef(null),l=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=v.useContext(Ph),c=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=mD(a,c);return v.useInsertionEffect(()=>{const{width:h,height:w,top:p,left:x,right:g,bottom:m}=l.current;if(t||s===!1||!a.current||!h||!w)return;const y=n==="left"?`left: ${x}`:`right: ${g}`,S=r==="bottom"?`bottom: ${m}`:`top: ${p}`;a.current.dataset.motionPopId=i;const E=document.createElement("style");u&&(E.nonce=u);const C=o??document.head;return C.appendChild(E),E.sheet&&E.sheet.insertRule(`
67          [data-motion-pop-id="${i}"] {
68            position: absolute !important;
69            width: ${h}px !important;
70            height: ${w}px !important;
71            ${y}px !important;
72            ${S}px !important;
73          }
74        `),()=>{var T;(T=a.current)==null||T.removeAttribute("data-motion-pop-id"),C.contains(E)&&C.removeChild(E)}},[t]),b.jsx(gD,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?e:v.cloneElement(e,{ref:d})})}const vD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,anchorY:l,root:u})=>{const c=nh(wD),d=v.useId();let f=!0,h=v.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:w=>{c.set(w,!0);for(const p of c.values())if(!p)return;r&&r()},register:w=>(c.set(w,!1),()=>c.delete(w))}),[n,c,r]);return s&&f&&(h={...h}),v.useMemo(()=>{c.forEach((w,p)=>c.set(p,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),e=b.jsx(yD,{pop:i==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),b.jsx(ql.Provider,{value:h,children:e})};function wD(){return new Map}function w1(e=!0){const t=v.useContext(ql);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=v.useId();v.useEffect(()=>{if(e)return o(s)},[e]);const i=v.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const oa=e=>e.key||"";function Tg(e){const t=[];
vendor: 5,485 bytes, line 74
74return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const xD=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,d]=w1(i),f=v.useMemo(()=>Tg(e),[e]),h=i&&!c?[]:f.map(oa),w=v.useRef(!0),p=v.useRef(f),x=nh(()=>new Map),g=v.useRef(new Set),[m,y]=v.useState(f),[S,E]=v.useState(f);Kw(()=>{w.current=!1,p.current=f;for(let P=0;P<S.length;P++){const N=oa(S[P]);h.includes(N)?(x.delete(N),g.current.delete(N)):x.get(N)!==!0&&x.set(N,!1)}},[S,h.length,h.join("-")]);const C=[];if(f!==m){let P=[...f];for(let N=0;N<S.length;N++){const R=S[N],L=oa(R);h.includes(L)||(P.splice(N,0,R),C.push(R))}return s==="wait"&&C.length&&(P=C),E(Tg(P)),y(f),null}const{forceRender:T}=v.useContext(th);return b.jsx(b.Fragment,{children:S.map(P=>{const N=oa(P),R=i&&!c?!1:f===S||h.includes(N),L=()=>{if(g.current.has(N))return;if(x.has(N))g.current.add(N),x.set(N,!0);else return;let A=!0;x.forEach(U=>{U||(A=!1)}),A&&(T==null||T(),E(p.current),i&&(d==null||d()),r&&r())};return b.jsx(vD,{isPresent:R,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:u,onExitComplete:R?void 0:L,anchorX:a,anchorY:l,children:P},N)})})},x1=v.createContext({strict:!1}),Pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let kg=!1;function SD(){if(kg)return;const e={};for(const t in Pg)e[t]={isEnabled:n=>Pg[t].some(r=>!!n[r])};Qx(e),kg=!0}function S1(){return SD(),oN()}function bD(e){const t=S1();for(const n in e)t[n]={...t[n],...e[n]};Qx(t)}const ED=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function bl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ED.has(e)}let b1=e=>!bl(e);function CD(e){typeof e=="function"&&(b1=t=>t.startsWith("on")?!bl(t):e(t))}try{CD(require("@emotion/is-prop-valid").default)}catch{}function TD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||_e(e[o])||(b1(o)||n===!0&&bl(o)||!t&&!bl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const nu=v.createContext({});function PD(e,t){if(tu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||pi(n)?n:void 0,animate:pi(r)?r:void 0}}return e.inherit!==!1?t:{}}function kD(e){const{initial:t,animate:n}=PD(e,v.useContext(nu));return v.useMemo(()=>({initial:t,animate:n}),[Rg(t),Rg(n)])}function Rg(e){return Array.isArray(e)?e.join(" "):e}const kh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function E1(e,t,n){for(const r in t)!_e(t[r])&&!n1(r,n)&&(e[r]=t[r])}function RD({transformTemplate:e},t){return v.useMemo(()=>{const n=kh();return Ch(n,t,e),Object.assign({},n.vars,n.style)},[t])}function AD(e,t){const n=e.style||{},r={};return E1(r,n,e),Object.assign(r,RD(e,t)),r}function MD(e,t){const n={},r=AD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const C1=()=>({...kh(),attrs:{}});function ND(e,t,n,r){const o=v.useMemo(()=>{const s=C1();return r1(s,t,s1(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};E1(s,e.style,e),o.style={...s,...o.style}}return o}const DD=["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 Rh(e){return typeof e!="string"||e.includes("-")?!1:!!(DD.indexOf(e)>-1||/[A-Z]/u.test(e))}function LD(e,t,n,{latestValues:r},o,s=!1,i){const l=(i??Rh(e)?ND:MD)(t,r,o,e),u=TD(t,typeof e=="string",s),c=e!==v.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=v.useMemo(()=>_e(d)?d.get():d,[d]);return v.createElement(e,{...c,children:f})}function OD({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:jD(n,r,o,e),renderState:t()}}function jD(e,t,n,r){const o={},s=r(e,{});for(const f in s)o[f]=La(s[f]);let{initial:i,animate:a}=e;const l=tu(e),u=Gx(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||i===!1;const d=c?a:i;if(d&&typeof d!="boolean"&&!eu(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const w=gh(e,f[h]);if(w){const{transitionEnd:p,transition:x,...g}=w;for(const m in g){let y=g[m];if(Array.isArray(y)){const S=c?y.length-1:0;y=y[S]}y!==null&&(o[m]=y)}for(const m in p)o[m]=p[m]}}}return o}const T1=e=>(t,n)=>{const r=v.useContext(nu),o=v.useContext(ql),s=()=>OD(e,t,r,o);return n?s():nh(s)}
vendor: 21,405 bytes, line 74
74,_D=T1({scrapeMotionValuesFromProps:Th,createRenderState:kh}),ID=T1({scrapeMotionValuesFromProps:i1,createRenderState:C1}),FD=Symbol.for("motionComponentSymbol");function VD(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const o=v.useRef(null);return v.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s));const i=r.current;if(typeof i=="function")if(s){const l=i(s);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):i(s);else i&&(i.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const P1=v.createContext({});function uo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $D(e,t,n,r,o,s){var y,S;const{visualElement:i}=v.useContext(nu),a=v.useContext(x1),l=v.useContext(ql),u=v.useContext(Ph),c=u.reducedMotion,d=u.skipAnimations,f=v.useRef(null),h=v.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const w=f.current,p=v.useContext(P1);w&&!w.projection&&o&&(w.type==="html"||w.type==="svg")&&zD(f.current,n,o,p);const x=v.useRef(!1);v.useInsertionEffect(()=>{w&&x.current&&w.update(n,l)});const g=n[Ox],m=v.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return Kw(()=>{h.current=!0,w&&(x.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),m.current&&w.animationState&&w.animationState.animateChanges())}),v.useEffect(()=>{w&&(!m.current&&w.animationState&&w.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,g)}),m.current=!1),w.enteringChildren=void 0)}),w}function zD(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:k1(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&uo(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function k1(e){if(e)return e.options.allowProjection!==!1?e.projection:k1(e.parent)}function Ju(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&bD(r);const s=n?n==="svg":Rh(e),i=s?ID:_D;function a(u,c){let d;const f={...v.useContext(Ph),...u,layoutId:BD(u)},{isStatic:h}=f,w=kD(u),p=i(u,h);if(!h&&typeof window<"u"){UD();const x=WD(f);d=x.MeasureLayout,w.visualElement=$D(e,p,f,o,x.ProjectionNode,s)}return b.jsxs(nu.Provider,{value:w,children:[d&&w.visualElement?b.jsx(d,{visualElement:w.visualElement,...f}):null,LD(e,u,VD(p,w.visualElement,c),p,h,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[FD]=e,l}function BD({layoutId:e}){const t=v.useContext(th).id;return t&&e!==void 0?t+"-"+e:e}function UD(e,t){v.useContext(x1).strict}function WD(e){const t=S1(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function HD(e,t){if(typeof Proxy>"u")return Ju;const n=new Map,r=(s,i)=>Ju(s,i,e,t),o=(s,i)=>r(s,i);return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,Ju(i,void 0,e,t)),n.get(i))})}const KD=(e,t)=>t.isSVG??Rh(e)?new SN(t):new mN(t,{allowProjection:e!==v.Fragment});class GD extends Tr{constructor(t){super(t),t.animationState||(t.animationState=PN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();eu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let YD=0;class QD extends Tr{constructor(){super(...arguments),this.id=YD++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:i,custom:a}=this.node.getProps();if(typeof i=="string"){const l=Kr(this.node,i,a);if(l){const{transition:u,transitionEnd:c,...d}=l;for(const f in d)(s=this.node.getValue(f))==null||s.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const XD={animation:{Feature:GD},exit:{Feature:QD}};function Mi(e){return{point:{x:e.pageX,y:e.pageY}}}const qD=e=>t=>xh(t)&&e(t,Mi(t));function zs(e,t,n,r){return mi(e,t,qD(n),r)}const R1=({current:e})=>e?e.ownerDocument.defaultView:null,Ag=(e,t)=>Math.abs(e-t);function ZD(e,t){const n=Ag(e.x,t.x),r=Ag(e.y,t.y);return Math.sqrt(n**2+r**2)}const Mg=new Set(["auto","scroll"]);class A1{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sa(this.lastRawMoveEventInfo,this.transformPagePoint));const h=ec(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,p=ZD(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!p)return;const{point:x}=h,{timestamp:g}=je;this.history.push({...x,timestamp:g});const{onStart:m,onMove:y}=this.handlers;w||(m&&m(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,w)=>{this.lastMoveEvent=h,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=sa(w,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(h,w)=>{this.end();const{onEnd:p,onSessionEnd:x,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=ec(h.type==="pointercancel"?this.lastMoveEventInfo:sa(w,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,m),x&&x(h,m)},!xh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const l=Mi(t),u=sa(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=je;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,ec(u,this.history)),this.removeListeners=ki(zs(this.contextWindow,"pointermove",this.handlePointerMove),zs(this.contextWindow,"pointerup",this.handlePointerUp),zs(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Mg.has(r.overflowX)||Mg.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),ae.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Sr(this.updatePoint)}}function sa(e,t){return t?{point:t(e.point)}:e}function Ng(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ec({point:e},t){return{point:e,delta:Ng(e,M1(t)),offset:Ng(e,JD(t)),velocity:e2(t,.1)}}function JD(e){return e[0]}function M1(e){return e[e.length-1]}function e2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=M1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>lt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>lt(t)*2&&(r=e[1]);const s=Tt(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function t2(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?de(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?de(n,e,r.max):Math.min(e,n)),e}function Dg(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function n2(e,{top:t,left:n,bottom:r,right:o}){return{x:Dg(e.x,n,o),y:Dg(e.y,t,r)}}function Lg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function r2(e,t){return{x:Lg(e.x,t.x),y:Lg(e.y,t.y)}}function o2(e,t){let n=.5;const r=Xe(e),o=Xe(t);return o>r?n=fi(t.min,t.max-r,e.min):r>o&&(n=fi(e.min,e.max-o,t.min)),yn(0,1,n)}function s2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vd=.35;function i2(e=Vd){return e===!1?e=0:e===!0&&(e=Vd),{x:Og(e,"left","right"),y:Og(e,"top","bottom")}}function Og(e,t,n){return{min:jg(e,t),max:jg(e,n)}}function jg(e,t){return typeof e=="number"?e:e[t]||0}const a2=new WeakMap;class l2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Re(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=d=>{n&&this.snapToCursor(Mi(d).point),this.stopAnimation()},i=(d,f)=>{const{drag:h,dragPropagation:w,onDragStart:p}=this.getProps();if(h&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=OM(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nn(g=>{let m=this.getAxisMotionValue(g).get()||0;if(pn.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[g];S&&(m=Xe(S)*(parseFloat(m)/100))}}this.originPoint[g]=m}),p&&ae.update(()=>p(d,f),!1,!0),Md(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:w,onDirectionLock:p,onDrag:x}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:g}=f;if(w&&this.currentDirection===null){this.currentDirection=c2(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),x&&ae.update(()=>x(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new A1(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:R1(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ae.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ia(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=t2(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,o=this.constraints;t&&uo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=n2(r.layoutBox,t):this.constraints=!1,this.elastic=i2(n),o!==this.constraints&&!uo(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nn(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=s2(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!uo(t))return!1;const r=t.current;Zo(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=uN(r,o.root,this.visualElement.getTransformPagePoint());let i=r2(o.layout.layoutBox,s);if(n){const a=n(iN(i));this.hasMutatedConstraints=!!a,a&&(i=qx(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=nn(c=>{if(!ia(c,n,this.currentDirection))return;let d=l&&l[c]||{};(i===!0||i===c)&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,w={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,w)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Md(this.visualElement,t),r.start(mh(t,r,0,n,this.visualElement,!1))}stopAnimation(){nn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nn(n=>{const{drag:r}=this.getProps();if(!ia(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-de(i,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!uo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};nn(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=o2({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nn(i=>{if(!ia(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];a.set(de(l,u,o[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;a2.set(this.visualElement,this);const t=this.visualElement.current,n=zs(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,h=f!==t&&$M(f);c&&d&&!h&&this.start(u)});let r;const o=()=>{const{dragConstraints:u}=this.getProps();uo(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=u2(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,i=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ae.read(o);const a=mi(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(nn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=Vd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function _g(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function u2(e,t,n){const r=Um(e,_g(n)),o=Um(t,_g(n));return()=>{r(),o()}}function ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function c2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class d2 extends Tr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new l2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const tc=e=>(t,n)=>{e&&ae.update(()=>e(t,n),!1,!0)};class f2 extends Tr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new A1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:R1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:tc(t),onStart:tc(n),onMove:tc(r),onEnd:(s,i)=>{delete this.session,o&&ae.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=zs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nc=!1;class h2 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),nc&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Oa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),nc=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||ae.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),wh.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;nc=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function N1(e){const[t,n]=w1(),r=v.useContext(th);return b.jsx(h2,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(P1),isPresent:t,safeToRemove:n})}const p2={pan:{Feature:f2},drag:{Feature:d2,ProjectionNode:v1,MeasureLayout:N1}};function Ig(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&ae.postRender(()=>s(t,Mi(t)))}class m2 extends Tr{mount(){const{current:t}=this.node;t&&(this.unmount=_M(t,(n,r)=>(Ig(this.node,r,"Start"),o=>Ig(this.node,o,"End"))))}unmount(){}}class g2 extends Tr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this
vendor: 4,105 bytes, line 74
74.unmount=ki(mi(this.node.current,"focus",()=>this.onFocus()),mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Fg(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&ae.postRender(()=>s(t,Mi(t)))}class y2 extends Tr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=BM(t,(o,s)=>(Fg(this.node,s,"Start"),(i,{success:a})=>Fg(this.node,i,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const $d=new WeakMap,rc=new WeakMap,v2=e=>{const t=$d.get(e.target);t&&t(e)},w2=e=>{e.forEach(v2)};function x2({root:e,...t}){const n=e||document;rc.has(n)||rc.set(n,{});const r=rc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(w2,{root:e,...t})),r[o]}function S2(e,t,n){const r=x2(t);return $d.set(e,n),r.observe(e),()=>{$d.delete(e),r.unobserve(e)}}const b2={some:0,all:1};class E2 extends Tr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:b2[o]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(u)};this.stopObserver=S2(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(C2(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function C2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const T2={inView:{Feature:E2},tap:{Feature:y2},focus:{Feature:g2},hover:{Feature:m2}},P2={layout:{ProjectionNode:v1,MeasureLayout:N1}},k2={...XD,...T2,...p2,...P2},Vg=HD(k2,KD),R2=Bf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-card text-foreground hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",cta:"bg-primary text-primary-foreground font-medium shadow-md hover:brightness-95 transition-all duration-200"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 px-8 py-3.5 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ks=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?aC:"button";return b.jsx(i,{className:tt(R2({variant:t,size:n,className:e})),ref:s,...o})});ks.displayName="Button";const Bs=v.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:tt("flex h-12 w-full rounded-lg border border-border bg-secondary px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Bs.displayName="Input";var A2="Label",D1=v.forwardRef((e,t)=>
vendor: 4,136 bytes, line 74
74b.jsx(Te.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));D1.displayName=A2;var L1=D1;const M2=Bf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Us=v.forwardRef(({className:e,...t},n)=>b.jsx(L1,{ref:n,className:tt(M2(),e),...t}));Us.displayName=L1.displayName;var oc="focusScope.autoFocusOnMount",sc="focusScope.autoFocusOnUnmount",$g={bubbles:!1,cancelable:!0},N2="FocusScope",O1=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=v.useState(null),u=mn(o),c=mn(s),d=v.useRef(null),f=Ze(t,p=>l(p)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let p=function(y){if(h.paused||!a)return;const S=y.target;a.contains(S)?d.current=S:Qn(d.current,{select:!0})},x=function(y){if(h.paused||!a)return;const S=y.relatedTarget;S!==null&&(a.contains(S)||Qn(d.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&Qn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const m=new MutationObserver(g);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),m.disconnect()}}},[r,a,h.paused]),v.useEffect(()=>{if(a){Bg.add(h);const p=document.activeElement;if(!a.contains(p)){const g=new CustomEvent(oc,$g);a.addEventListener(oc,u),a.dispatchEvent(g),g.defaultPrevented||(D2(I2(j1(a)),{select:!0}),document.activeElement===p&&Qn(a))}return()=>{a.removeEventListener(oc,u),setTimeout(()=>{const g=new CustomEvent(sc,$g);a.addEventListener(sc,c),a.dispatchEvent(g),g.defaultPrevented||Qn(p??document.body,{select:!0}),a.removeEventListener(sc,c),Bg.remove(h)},0)}}},[a,u,c,h]);const w=v.useCallback(p=>{if(!n&&!r||h.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(x&&g){const m=p.currentTarget,[y,S]=L2(m);y&&S?!p.shiftKey&&g===S?(p.preventDefault(),n&&Qn(y,{select:!0})):p.shiftKey&&g===y&&(p.preventDefault(),n&&Qn(S,{select:!0})):g===m&&p.preventDefault()}},[n,r,h.paused]);return b.jsx(Te.div,{tabIndex:-1,...i,ref:f,onKeyDown:w})});O1.displayName=N2;function D2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Qn(r,{select:t}),document.activeElement!==n)return}function L2(e){const t=j1(e),n=zg(t,e),r=zg(t.reverse(),e);return[n,r]}function j1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zg(e,t){for(const n of e)if(!O2(n,{upTo:t}))return n}function O2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function j2(e){return e instanceof HTMLInputElement&&"select"in e}function Qn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&j2(e)&&t&&e.select()}}var Bg=_2();function _2(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ug(e,t),e.unshift(t)},remove(t){var n;e=Ug(e,t),(n=e[0])==null||n.resume()}}}function Ug(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function I2(e){return e.filter(t=>t.tagName!=="A")}var ic=0;function F2(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wg()),document.body.insertAdjacentElement("beforeend",e[1]??Wg()),ic++,()=>{ic===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ic--}},[])}function Wg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,125 bytes, line 74
74style.position="fixed",e.style.pointerEvents="none",e}var un=function(){return un=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},un.apply(this,arguments)};function _1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function V2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ja="right-scroll-bar-position",_a="width-before-scroll-bar",$2="with-scroll-bars-hidden",z2="--removed-body-scroll-bar-size";function ac(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function B2(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var U2=typeof window<"u"?v.useLayoutEffect:v.useEffect,Hg=new WeakMap;function W2(e,t){var n=B2(null,function(r){return e.forEach(function(o){return ac(o,r)})});return U2(function(){var r=Hg.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||ac(a,null)}),s.forEach(function(a){o.has(a)||ac(a,i)})}Hg.set(n,e)},[e]),n}function H2(e){return e}function K2(e,t){t===void 0&&(t=H2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var c=i;i=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return o}function G2(e){e===void 0&&(e={});var t=K2(null);return t.options=un({async:!0,ssr:!1},e),t}var I1=function(e){var t=e.sideCar,n=_1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,un({},n))};I1.isSideCarExport=!0;function Y2(e,t){return e.useMedium(t),I1}var F1=G2(),lc=function(){},ru=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:lc,onWheelCapture:lc,onTouchMoveCapture:lc}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,w=e.noIsolation,p=e.inert,x=e.allowPinchZoom,g=e.as,m=g===void 0?"div":g,y=e.gapMode,S=_1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,C=W2([n,t]),T=un(un({},S),o);return v.createElement(v.Fragment,null,c&&v.createElement(E,{sideCar:F1,removeScrollBar:u,shards:d,noRelative:h,noIsolation:w,inert:p,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:y}),i?v.cloneElement(v.Children.only(a),un(un({},T),{ref:C})):v.createElement(m,un({},T,{className:l,ref:C}),a))});ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ru.classNames={fullWidth:_a,zeroRight:ja};var Q2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function X2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Q2();return t&&e.setAttribute("nonce",t),e}function q2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Z2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var J2=function(){var e=0,t=null;
vendor: 4,547 bytes, lines 74-114
74return{add:function(n){e==0&&(t=X2())&&(q2(t,n),Z2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eL=function(){var e=J2();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},V1=function(){var e=eL(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},tL={left:0,top:0,right:0,gap:0},uc=function(e){return parseInt(e||"",10)||0},nL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[uc(n),uc(r),uc(o)]},rL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tL;var t=nL(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},oL=V1(),Oo="data-scroll-locked",sL=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
75  .`.concat($2,` {
76   overflow: hidden `).concat(r,`;
77   padding-right: `).concat(a,"px ").concat(r,`;
78  }
79  body[`).concat(Oo,`] {
80    overflow: hidden `).concat(r,`;
81    overscroll-behavior: contain;
82    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
83    padding-left: `.concat(o,`px;
84    padding-top: `).concat(s,`px;
85    padding-right: `).concat(i,`px;
86    margin-left:0;
87    margin-top:0;
88    margin-right: `).concat(a,"px ").concat(r,`;
89    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
90  }
91  
92  .`).concat(ja,` {
93    right: `).concat(a,"px ").concat(r,`;
94  }
95  
96  .`).concat(_a,` {
97    margin-right: `).concat(a,"px ").concat(r,`;
98  }
99  
100  .`).concat(ja," .").concat(ja,` {
101    right: 0 `).concat(r,`;
102  }
103  
104  .`).concat(_a," .").concat(_a,` {
105    margin-right: 0 `).concat(r,`;
106  }
107  
108  body[`).concat(Oo,`] {
109    `).concat(z2,": ").concat(a,`px;
110  }
111`)},Kg=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},iL=function(){v.useEffect(function(){return document.body.setAttribute(Oo,(Kg()+1).toString()),function(){var e=Kg()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},aL=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;iL();var s=v.useMemo(function(){return rL(o)},[o]);return v.createElement(oL,{styles:sL(s,!t,o,n?"":"!important")})},zd=!1;if(typeof window<"u")try{var aa=Object.defineProperty({},"passive",{get:function(){return zd=!0,!0}});window.addEventListener("test",aa,aa),window.removeEventListener("test",aa,aa)}catch{zd=!1}var io=zd?{passive:!1}:!1,lL=function(e){return e.tagName==="TEXTAREA"},$1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lL(e)&&n[t]==="visible")},uL=function(e){return $1(e,"overflowY")},cL=function(e){return $1(e,"overflowX")},Gg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=z1(e,r);if(o){var s=B1(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dL=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fL=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},z1=function(e,t){return e==="v"?uL(t):cL(t)},B1=function(e,t){return e==="v"?dL(t):fL(t)},hL=function(e,t){return e==="h"&&t==="rtl"?-1:1},pL=function(e,t,n,r,o){var s=hL(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,c=i>0,d=0,f=0;do{if(!a)break;var h=B1(e,a),w=h[0],p=h[1],x=h[2],g=p-x-s*w;(w||g)&&z1(e,a)&&(d+=g,f+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(u=!0),u},la=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yg=function(e){return[e.deltaX,e.deltaY]},Qg=function(e){return e&&"current"in e?e.current:e},mL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gL=function(e){return`
112  .block-interactivity-`.concat(e,` {pointer-events: none;}
113  .allow-interactivity-`).concat(e,` {pointer-events: all;}
114`)},yL=0,ao=[];function vL(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(yL++)[0],s=v.useState(V1)[0],i=v.useRef(e);v.useEffect(function(){i.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));
vendor: 4,629 bytes, line 114
114var p=V2([e.lockRef.current],(e.shards||[]).map(Qg),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(p,x){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var g=la(p),m=n.current,y="deltaX"in p?p.deltaX:m[0]-g[0],S="deltaY"in p?p.deltaY:m[1]-g[1],E,C=p.target,T=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in p&&T==="h"&&C.type==="range")return!1;var P=Gg(T,C);if(!P)return!0;if(P?E=T:(E=T==="v"?"h":"v",P=Gg(T,C)),!P)return!1;if(!r.current&&"changedTouches"in p&&(y||S)&&(r.current=E),!E)return!0;var N=r.current||E;return pL(N,x,p,N==="h"?y:S,!0)},[]),l=v.useCallback(function(p){var x=p;if(!(!ao.length||ao[ao.length-1]!==s)){var g="deltaY"in x?Yg(x):la(x),m=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&mL(E.delta,g)})[0];if(m&&m.should){x.cancelable&&x.preventDefault();return}if(!m){var y=(i.current.shards||[]).map(Qg).filter(Boolean).filter(function(E){return E.contains(x.target)}),S=y.length>0?a(x,y[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=v.useCallback(function(p,x,g,m){var y={name:p,delta:x,target:g,should:m,shadowParent:wL(g)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),c=v.useCallback(function(p){n.current=la(p),r.current=void 0},[]),d=v.useCallback(function(p){u(p.type,Yg(p),p.target,a(p,e.lockRef.current))},[]),f=v.useCallback(function(p){u(p.type,la(p),p.target,a(p,e.lockRef.current))},[]);v.useEffect(function(){return ao.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,io),document.addEventListener("touchmove",l,io),document.addEventListener("touchstart",c,io),function(){ao=ao.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,io),document.removeEventListener("touchmove",l,io),document.removeEventListener("touchstart",c,io)}},[]);var h=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(s,{styles:gL(o)}):null,h?v.createElement(aL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xL=Y2(F1,vL);var U1=v.forwardRef(function(e,t){return v.createElement(ru,un({},e,{ref:t,sideCar:xL}))});U1.classNames=ru.classNames;var SL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,ua=new WeakMap,ca={},cc=0,W1=function(e){return e&&(e.host||W1(e.parentNode))},bL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=W1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EL=function(e,t,n,r){var o=bL(t,Array.isArray(e)?e:[e]);ca[n]||(ca[n]=new WeakMap);var s=ca[n],i=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))c(f);else try{var h=f.getAttribute(r),w=h!==null&&h!=="false",p=(lo.get(f)||0)+1,x=(s.get(f)||0)+1;lo.set(f,p),s.set(f,x),i.push(f),p===1&&w&&ua.set(f,!0),x===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return c(t),a.clear(),cc++,function(){i.forEach(function(d){var f=lo.get(d)-1,h=s.get(d)-1;lo.set(d,f),s.set(d,h),f||(ua.has(d)||d.removeAttribute(r),ua.delete(d)),h||d.removeAttribute(n)}),cc--,cc||(lo=new WeakMap,lo=new WeakMap,ua=new WeakMap,ca={})}},CL=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=SL(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),EL(r,o,n,"aria-hidden")):function(){return null}},ou="Dialog",[H1,yO]=Ci(ou),[TL,Qt]=H1(ou),K1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=v.useRef(null),l=v.useRef(null),[u,c]=A0({prop:r,defaultProp:o??!1,onChange:s,caller:ou});return b.jsx(TL,{scope:t,triggerRef:a,contentRef:l,contentId:Fu(),titleId:Fu(),descriptionId:Fu(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),modal:i,children:n})};K1.displayName=ou;var G1="DialogTrigger",PL=v.forwardRef((e,t)=>
vendor: 4,499 bytes, lines 114-118
114{const{__scopeDialog:n,...r}=e,o=Qt(G1,n),s=Ze(t,o.triggerRef);return b.jsx(Te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nh(o.open),...r,ref:s,onClick:ge(e.onClick,o.onOpenToggle)})});PL.displayName=G1;var Ah="DialogPortal",[kL,Y1]=H1(Ah,{forceMount:void 0}),Q1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Qt(Ah,t);return b.jsx(kL,{scope:t,forceMount:n,children:v.Children.map(r,i=>b.jsx(os,{present:n||s.open,children:b.jsx(Ff,{asChild:!0,container:o,children:i})}))})};Q1.displayName=Ah;var El="DialogOverlay",X1=v.forwardRef((e,t)=>{const n=Y1(El,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Qt(El,e.__scopeDialog);return s.modal?b.jsx(os,{present:r||s.open,children:b.jsx(AL,{...o,ref:t})}):null});X1.displayName=El;var RL=ai("DialogOverlay.RemoveScroll"),AL=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(El,n);return b.jsx(U1,{as:RL,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(Te.div,{"data-state":Nh(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Jr="DialogContent",q1=v.forwardRef((e,t)=>{const n=Y1(Jr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Qt(Jr,e.__scopeDialog);return b.jsx(os,{present:r||s.open,children:s.modal?b.jsx(ML,{...o,ref:t}):b.jsx(NL,{...o,ref:t})})});q1.displayName=Jr;var ML=v.forwardRef((e,t)=>{const n=Qt(Jr,e.__scopeDialog),r=v.useRef(null),o=Ze(t,n.contentRef,r);return v.useEffect(()=>{const s=r.current;if(s)return CL(s)},[]),b.jsx(Z1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault())})}),NL=v.forwardRef((e,t)=>{const n=Qt(Jr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return b.jsx(Z1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Z1=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Qt(Jr,n),l=v.useRef(null),u=Ze(t,l);return F2(),b.jsxs(b.Fragment,{children:[b.jsx(O1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:b.jsx(zl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Nh(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(DL,{titleId:a.titleId}),b.jsx(OL,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Mh="DialogTitle",J1=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(Mh,n);return b.jsx(Te.h2,{id:o.titleId,...r,ref:t})});J1.displayName=Mh;var eS="DialogDescription",tS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(eS,n);return b.jsx(Te.p,{id:o.descriptionId,...r,ref:t})});tS.displayName=eS;var nS="DialogClose",rS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(nS,n);return b.jsx(Te.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,()=>o.onOpenChange(!1))})});rS.displayName=nS;function Nh(e){return e?"open":"closed"}var oS="DialogTitleWarning",[vO,sS]=sC(oS,{contentName:Jr,titleName:Mh,docsSlug:"dialog"}),DL=({titleId:e})=>{const t=sS(oS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
115
116If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
117
118For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},LL="DialogDescriptionWarning",OL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sS(LL).contentName}}.`;return v.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");
118t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},jL=K1,_L=Q1,iS=X1,aS=q1,lS=J1,uS=tS,IL=rS;const FL=jL,VL=_L,cS=v.forwardRef(({className:e,...t},n)=>b.jsx(iS,{ref:n,className:tt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));cS.displayName=iS.displayName;const dS=v.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(VL,{children:[b.jsx(cS,{}),b.jsxs(aS,{ref:r,className:tt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,b.jsxs(IL,{className:"absolute right-4 top-4 roun
118ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[b.jsx(Z0,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));dS.displayName=aS.displayName;const fS=({className:e,...t})=>b.jsx("div",{className:tt("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});fS.displayName="DialogHeader";const hS=v.forwardRef(({className:e,...t},n)=>b.jsx(lS,{ref:n,className:tt("text-lg font-semibold leading-none tracking-tight",e),...t}));hS.displayName=lS.displayName;const pS=v.forwardRef(({className:e,...t},n)=>b.jsx(uS,{ref:n,className:tt("text-sm text-muted-foreground",e),...t}));pS.displayName=uS.displayName;const $L="/assets/gymdesk-logo-K_8WktSh.png",mS=15,zL=30,BL=.05,UL=.1,gS="1:4 for ages 3–5, 1:6 for 6–8, 1:8 for 9–12",Xg=8;function Ia(e){const t=e.daysPerWeek*e.weeks,n=e.campers*e.weeklyPrice*e.weeks,r=e.juniorStaff*e.juniorRate*e.hoursPerDay*t,o=1*e.headRate*e.hoursPerDay*t,s=r+o,i=n-s,a=n>0?s/n:0,l=e.weeklyPrice*e.weeks,u=l>0?Math.ceil(s/l):0,c=l-mS*e.weeks,d=e.campers>0?s/e.campers:0,f=l-d;return{grossRevenue:n,juniorLabor:r,headLabor:o,totalLabor:s,grossMargin:i,laborPctOfRevenue:a,breakEvenCampers:u,perCamperContribution:c,revenuePerCamper:l,laborPerCamper:d,marginPerCamper:f}}function WL(e,t){const n=[],r=Ia({...e,weeklyPrice:e.weeklyPrice+25});n.push({label:`Raise weekly price by $25 (to ${"$"+(e.weeklyPrice+25)})`,margin:r.grossMargin,delta:r.grossMargin-t.grossMargin,note:"A common rule of thumb: many camps price $25–$50/wk below local daycare. Check what daycares near you charge."});const o=Ia({...e,campers:e.campers+5});if(n.push({label:`Add 5 more campers (to ${e.campers+5})`,margin:o.grossMargin,delta:o.grossMargin-t.grossMargin,note:"Labor is fixed for the staff you've set, so extra campers go straight to gross margin (before supplies)."}),e.juniorStaff>0){const s=Ia({...e,juniorStaff:e.juniorStaff-1});n.push({label:`Run with ${e.juniorStaff-1} junior staff instead of ${e.juniorStaff}`,margin:s.grossMargin,delta:s.grossMargin-t.grossMargin,note:`Only viable if your camper:staff ratio stays inside common guidelines (${gS}; check your state's licensing rules).`})}return n}function HL(e,t){const n=e.campers*e.weeks,r=n*mS,o=n*zL,s=t.grossRevenue*BL,i=t.grossRevenue*UL;return{suppliesLow:r,suppliesHigh:o,rentLow:s,rentHigh:i,netLow:t.grossMargin-o-i,netHigh:t.grossMargin-r-s}}function KL(e){return e<.35?{label:"Healthy by a common rule of thumb (under 35%).",tone:"good"}:e<.5?{label:"In the typical range for a well-staffed camp (35–50%, rule of thumb).",tone:"ok"}:e<.65?{label:"Tight. Watch supplies and rent on top of this.",tone:"warn"}:{label:"Labor is eating the camp. Raise price, add campers, or cut a staff slot.",tone:"bad"}}const oe=e=>(e<0?"−":"")+"$"+Math.round(Math.abs(e)).toLocaleString("en-US"),bn=e=>{if(e==null)return 0;const t=String(e).replace(/[$,\s]/g,"");if(t===""||t==="-")return 0;const n=Number(t);return Number.isFinite(n)?n:0},GL="G-VDW16YQBJV";function YL(){typeof window>"u"||(window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",GL,{send_page_view:!1})))}function en(e,t){typeof window>"u"||!window.gtag||window.gtag("event",e,{event_category:"Summer Camp Profitability Calculator",...t})}const yS=1500,QL=["https://gymdesk.com","https://www.gymdesk.com","http://localhost:5173","http://localhost:3000"];let Cl=null,da=null,dc=null;const qg=()=>typeof window<"u"&&typeof window.gtag=="function"?window.gtag:null;function XL(e,t){if(typeof e!="string"||!QL.includes(t))return null;try{const n=new URL(e);if(n.origin!==t)return null;const r=new URLSearchParams;n.searchParams.forEach((s,i)=>{i.startsWith("utm_")&&r.set(i,s)});const o=r.toString();return`${n.origin}${n.pathname}${o?`?${o}`:""}`}catch{return null}}function qL(e){if(!Cl)return e.toolPageUrl;const t=new URL(Cl);return`${t.origin}${t.pathname}`}function Zg(){return Cl}function ZL(e,t=yS){return da||(da=new Promise(n=>{if(typeof window>"u"||window.parent===window){n(e.toolPageUrl);return}let r=!1;const o=(i,a)=>{r||(r=!0,window.removeEventListener("message",s),a&&(Cl=i),n(i))},s=i=>{if(i.source!==window.parent)return;const a=i.data;if(!a||a.type!=="gymdesk-host")return;const l=XL(a.url,i.origin);l&&o(l,!0)};window.addEventListener("message",s),window.parent.postMessage({type:"gymdesk-host-request",tool:e.toolId},"*"),setTimeout(()=>
118o(e.toolPageUrl,!1),t)}),da)}function JL(e,t){if(typeof IntersectionObserver>"u"||!document.body)return;const n=new IntersectionObserver(r=>{r.some(o=>o.isIntersecting)&&(n.disconnect(),t("tool_in_view"))},{threshold:.01});n.observe(document.body)}function eO(e){const t=["pointerdown","keydown","input"],n=()=>{t.forEach(r=>document.removeEventListener(r,n,!0)),e("tool_first_interaction")};t.forEach(r=>document.addEventListener(r,n,!0))}function tO(e,t=yS){if(dc)return dc;const n=ZL(e,t).then(o=>{const s=qg();if(s){const i=Zg();i&&s("set",{page_referrer:i,host_page:i}),s("event","page_view",{calculator_name:e.toolId,...i?{host_page:i}:{}})}return o}),r=o=>{n.then(()=>{const s=qg(),i=Zg();s&&s("event",o,{calculator_name:e.toolId,...i?{host_page:i}:{}})})};return typeof document<"u"&&(JL(e,r),eO(r)),dc=n,n}const Bd={toolId:"summer-camp-profitability-calculator",toolPageUrl:"https://gymdesk.com/tools/summer-camp-profitability-calculator",measurementId:"G-VDW16YQBJV"};function Jg(e){return(e.status==="fulfilled"?`HTTP ${e.value.status}`:e.reason instanceof Error?e.reason.message:String(e.reason)).slice(0,100)}const nO={campers:"30",weeklyPrice:"325",weeks:"6",juniorStaff:"3",juniorRate:"15",headRate:"30",daysPerWeek:"5",hoursPerDay:"8"},Fa={basics:[{key:"campers",label:"Campers enrolled",helper:"How many kids you expect enrolled across the camp.",min:1,max:300},{key:"weeklyPrice",label:"Weekly price per camper",helper:"What you charge per camper, per week.",prefix:"$",min:50,max:1e3},{key:"weeks",label:"Camp length",helper:"Total weeks the camp runs.",suffix:"wks",min:1,max:12}],staffing:[{key:"juniorStaff",label:"Junior instructors / counselors",helper:"Paid helpers beyond the head instructor.",min:0,max:20},{key:"juniorRate",label:"Junior pay",helper:"$15–$17/hr is a common floor for junior camp staff; check local rates.",prefix:"$",suffix:"/hr",min:10,max:40},{key:"headRate",label:"Head instructor pay",helper:"If the head instructor is the owner, this is owner pay — set 0 to treat it as profit, not cost.",prefix:"$",suffix:"/hr",min:0,max:150}],schedule:[{key:"daysPerWeek",label:"Days per week",helper:"",min:1,max:7},{key:"hoursPerDay",label:"Hours per day",helper:"Half-day camps ~4 hrs, full-day ~8 hrs.",min:1,max:12}]},rO=[...Fa.basics,...Fa.staffing,...Fa.schedule];function oO(e,t,n=800){const[r,o]=v.useState(e),s=v.useRef(null),i=v.useRef(e),a=v.useRef(null);return v.useEffect(()=>{if(!t){o(e);return}i.current=0,s.current=null;const l=u=>{s.current===null&&(s.current=u);const c=u-s.current,d=Math.min(1,c/n),f=1-Math.pow(1-d,3);o(i.current+(e-i.current)*f),d<1&&(a.current=requestAnimationFrame(l))};return a.current=requestAnimationFrame(l),()=>{a.current&&cancelAnimationFrame(a.current)}},[t]),r}const sO=({cfg:e,value:t,onChange:n,error:r})=>b.jsxs("div",{className:"space-y-1.5",children:[b.jsx(Us,{htmlFor:e.key,className:"text-[13px] font-semibold text-card-foreground",children:e.label}),b.jsxs("div",{className:"relative flex items-center",children:[e.prefix&&b.jsx("span",{className:"absolute left-3 text-[#9ca3af] text-sm select-none pointer-events-none",children:e.prefix}),b.jsx(Bs,{id:e.key,type:"text",inputMode:"decimal",autoComplete:"off",value:t,onChange:o=>n(o.target.value),"aria-invalid":!!r,"aria-describedby":`${e.key}-help`,className:`bg-card border-[#d1d5db] focus:border-primary focus:ring-2 focus:ring-primary/20 text-card-foreground text-[16px] rounded-lg py-3 ${e.prefix?"pl-7":""} ${e.suffix?"pr-12":""} ${r?"border-destructive focus:border-destructive focus:ring-destructive/20":""}`}),e.suffix&&b.jsx("span",{className:"absolute right-3 text-[#9ca3af] text-sm select-none pointer-events-none",children:e.suffix})]}),b.jsx("p",{id:`${e.key}-help`,className:`text-[12px] leading-relaxed ${r?"text-destructive":"text-muted-foreground"}`,children:r||e.helper})]}),iO=()=>{const[e,t]=v.useState(nO),[n,r]=v.useState({}),[o,s]=v.useState(!1),[i,a]=v.useState(0),[l,u]=v.useState(()=>{if(typeof window>"u")return!1;try{return localStorage.getItem("camp-calc:unlocked")==="1"}catch{return!1}}),[c,d]=v.useState(!1),[f,h]=v.useState(()=>{if(typeof window>"u")return"";try{return localStorage.getItem("camp-calc:email")??""}catch{return""}}),[w,p]=v.useState(()=>{if(typeof window>"u")return"";try{return localStorage.getItem("camp-calc:firstName")??""}catch{return""}}),[x,g]=v.useState(()=>{if(typeof window>"u")return"";try{return localStorage.getItem("camp-calc:gymName")??""}catch{return""}}),[m,y]=v.useState(!1),[S,E]=v.useState(null),[C,T]=v.useState(!0),P=v.useRef(null),N=v.useRef(null),R=v.useRef(!1);v.useEffect(()=>{const B=N.current;if(!B||typeof IntersectionObserver>"u")return;const Z=new IntersectionObserver(re=>{!R.current&&re.some(wt=>wt.isIntersecting)&&(R.current=!0,en("calculator_in_view",{calculator:"summer_camp_profit"}),Z.disconnect())},{threshold:.01});return Z.observe(B),()=>Z.disconnect()},[]),v.useEffect(()=>{if(typeof window>"u"||window.parent===window)return;let B=0;const Z=()=>{const wt=document.documentElement.scrollHeight;wt!==B&&(B=wt,window.parent.postMessage({type:"gymdesk:calculator:resize",source:"summer-camp-profit-calculator",height:wt},"*"))};Z();const re=new ResizeObserver(Z);return re.observe(document.documentElement),()=>re.disconnect()});const L=v.useMemo(()=>({campers:bn(e.campers),weeklyPrice:bn(e.weeklyPrice),weeks:bn(e.weeks),juniorStaff:bn(e.juniorStaff),juniorRate:bn(e.juniorRate),headRate:bn(e.headRate),daysPerWeek:bn(e.daysPerWeek),hoursPerDay:bn(e.hoursPerDay)}),[e]),A=v.useMemo(()=>Ia(L),[L]),U=o&&i===1,j=oO(A.grossMargin,U),H=v.useRef(!1),$=B=>Z=>{t(re=>({...re,[B]:Z})),r(re=>({...re,[B]:void 0})),H.current||(H.current=!0,en("calculator_started",{calculator:"summer_camp_profit"}))},K=B=>B<0?"negative":B<1e4?"0-10k":B<25e3?"10k-25k":B<5e4?"25k-50k":B<1e5?"50k-100k":"100k+",k=v.useMemo(()=>{const B=[];L.weeklyPrice>0&&L.weeklyPrice<100&&B.push("That's low for a camp. A common rule of thumb puts half-day camps at $150–$250/wk, so check what camps near you charge.");const Z=L.juniorStaff+1;if(Z>0&&L.campers>0){const re=L.campers/Z;re>Xg&&B.push(`That's ~${re.toFixed(1).replace(/\.0$/,"")} campers per staff member, looser than common guidelines even for the oldest campers (${gS}; check your state's licensing rules). Add staff or expect safety and retention issues.`)}return B},[L]),M=()=>{const B={};for(const Z of rO){const re=bn(e[Z.key]);Z.key!=="juniorStaff"&&Z.key!=="headRate"&&re<=0?B[Z.key]="Enter a number to see your camp's numbers.":(re<Z.min||re>Z.max)&&(B[Z.key]=`Enter a value between ${Z.min} and ${Z.max}.`)}return r(B),Object.keys(B).length===0},I=()=>
118{if(!M())return;const B=o;s(!0),a(re=>re+1),en(B?"recalculated":"camp_calculated",{calculator:"summer_camp_profit",campers:L.campers,weekly_price:L.weeklyPrice,weeks:L.weeks,gross_margin:Math.round(A.grossMargin),gross_margin_bucket:K(A.grossMargin)}),setTimeout(()=>{var re;return(re=P.current)==null?void 0:re.scrollIntoView({behavior:"smooth",block:"start"})},80)},W=()=>{d(!0),en("gate_opened",{calculator:"summer_camp_profit",gross_margin_bucket:K(A.grossMargin)})},z=async B=>{if(B.preventDefault(),!f.trim()){E("Please enter your email.");return}E(null),y(!0);const re="https://vuhoyxwoskxkvbmjijgn.supabase.co/functions/v1",wt={pageUri:qL(Bd),email:f.trim(),firstName:w.trim(),gymName:x.trim(),...L,grossRevenue:A.grossRevenue,totalLabor:A.totalLabor,grossMargin:A.grossMargin,breakEvenCampers:A.breakEvenCampers};try{const[xn,Zt]=await Promise.allSettled([fetch(`${re}/submit-camp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(wt)}),fetch(`${re}/send-camp-results`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:f.trim(),firstName:w.trim(),inputs:L,results:A})})]),Ni=xn.status==="fulfilled"&&xn.value.ok,Fn=Zt.status==="fulfilled"&&Zt.value.ok;if(Ni)en("email_captured",{calculator:"summer_camp_profit",calculator_name:Bd.toolId,has_gym_name:x.trim().length>0?"yes":"no",gross_margin:Math.round(A.grossMargin),gross_margin_bucket:K(A.grossMargin)});else{const Vn=Jg(xn);console.error("submit-camp failed:",Vn),en("lead_capture_failed",{calculator:"summer_camp_profit",function_name:"submit-camp",reason:Vn})}if(Fn)en("results_emailed",{calculator:"summer_camp_profit",gross_margin_bucket:K(A.grossMargin)});else{const Vn=Jg(Zt);console.error("send-camp-results failed:",Vn),en("lead_capture_failed",{calculator:"summer_camp_profit",function_name:"send-camp-results",reason:Vn})}T(Fn);try{localStorage.setItem("camp-calc:unlocked","1"),localStorage.setItem("camp-calc:email",f.trim()),w.trim()&&localStorage.setItem("camp-calc:firstName",w.trim()),x.trim()&&localStorage.setItem("camp-calc:gymName",x.trim())}catch{}u(!0),d(!1)}finally{y(!1)}};v.useEffect(()=>{!o||i===0||en("results_viewed",{calculator:"summer_camp_profit",gross_margin_bucket:K(A.grossMargin),labor_pct_bucket:he.tone})},[i]),v.useEffect(()=>{document.title="Summer Camp Profitability Calculator | Gymdesk"},[]);const Q=A.grossMargin>=0,q=L.headRate===0,he=KL(A.laborPctOfRevenue),Ne={good:"text-[hsl(var(--success))]",ok:"text-[hsl(var(--severity-teal))]",warn:"text-[hsl(var(--severity-orange))]",bad:"text-destructive"}[he.tone],ee=L.daysPerWeek*L.weeks,vt=ee*L.hoursPerDay,Xt=v.useMemo(()=>WL(L,A),[L,A]),Ve=v.useMemo(()=>HL(L,A),[L,A]),ut=L.juniorStaff+1,wn=ut>0?L.campers/ut:0,qt=A.grossRevenue>0?A.grossMargin/A.grossRevenue*100:0;return b.jsxs("div",{className:"min-h-screen bg-background py-8 px-4 sm:py-12 sm:px-6 lg:py-16",children:[b.jsxs("main",{ref:N,className:"max-w-[720px] mx-auto",children:[b.jsxs("div",{className:"bg-card rounded-2xl shadow-card p-6 sm:p-10",children:[b.jsxs("header",{className:"flex flex-col sm:flex-row sm:items-center gap-4 sm:gap-6 mb-8",children:[b.jsx("img",{src:$L,alt:"Gymdesk",className:"w-16 h-16 flex-shrink-0 rounded-xl"}),b.jsxs("div",{children:[b.jsx("h1",{className:"text-headline-mobile sm:text-headline text-card-foreground",children:"Summer Camp Profitability Calculator"}),b.jsx("p",{className:"text-subheadline text-muted-foreground mt-2 max-w-[560px]",children:"See if your summer camp actually makes money — before the first camper shows up."})]})]}),b.jsxs("section",{className:"space-y-6",children:[["basics","staffing","schedule"].map(B=>b.jsxs("div",{children:[b.jsx("h2",{className:"text-[13px] font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:B==="basics"?"Camp basics":B==="staffing"?"Staffing":"Schedule"}),b.jsx("div",{className:`grid grid-cols-1 gap-4 ${B==="schedule"?"sm:grid-cols-2 sm:max-w-md":"sm:grid-cols-3"}`,children:Fa[B].map(Z=>b.jsx(sO,{cfg:Z,value:e[Z.key],onChange:$(Z.key),error:n[Z.key]},Z.key))})]},B)),k.length>0&&b.jsx("div",{className:"space-y-2",children:k.map((B,Z)=>b.jsx("div",{className:"bg-[hsl(var(--severity-orange)/0.08)] border border-[hsl(var(--severity-orange)/0.3)] rounded-md p-3",role:"alert",children:b.jsx("p",{className:"text-[13px] text-[hsl(var(--severity-orange))]",children:B})},Z))}),b.jsxs("div",{className:"pt-2",children:[b.jsx(ks,{type:"button",variant:"cta",size:"xl",className:"w-full sm:w-auto 
118sm:min-w-[320px]",onClick:I,children:o?"Recalculate":"Calculate my camp profit"}),b.jsx("p",{className:"text-helper text-muted-foreground/70 mt-3",children:"No login required. Takes about a minute."})]})]})]}),b.jsx(xD,{children:o&&b.jsxs(Vg.div,{ref:P,initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.4},className:"mt-8 space-y-6",children:[b.jsxs("div",{className:`rounded-2xl p-6 sm:p-8 border-2 ${Q?"bg-[hsl(var(--result-green-bg))] border-[hsl(var(--result-green-border))]":"bg-[hsl(var(--result-red-bg))] border-destructive"}`,children:[b.jsx("p",{className:"text-[13px] font-semibold uppercase tracking-wide text-muted-foreground",children:Q?"💰 Your camp clears":"⚠ Your camp loses"}),b.jsxs("p",{className:`text-4xl sm:text-5xl font-bold mt-2 tabular-nums ${Q?"text-[hsl(var(--success))]":"text-destructive"}`,children:["~",oe(U?j:A.grossMargin)," ",b.jsx("span",{className:"text-2xl sm:text-3xl font-semibold",children:"gross margin"})]}),b.jsxs("p",{className:"text-card-foreground mt-3 text-[15px]",children:["Grosses ",b.jsx("strong",{children:oe(A.grossRevenue)})," · ~",oe(A.totalLabor)," labor · break even at"," ",b.jsxs("strong",{children:[A.breakEvenCampers," ",A.breakEvenCampers===1?"camper":"campers"]})]}),q&&b.jsxs("p",{className:"text-[14px] text-muted-foreground mt-3 italic",children:["Cash to the business (owner's labor counted as profit):"," ",b.jsx("strong",{className:"not-italic text-card-foreground",children:oe(A.grossMargin)})]}),b.jsxs("p",{className:`text-[13px] mt-3 font-medium ${Ne}`,children:["Labor is ",(A.laborPctOfRevenue*100).toFixed(0),"% of revenue —"," ",he.label]}),!l&&b.jsx("div",{className:"mt-6",children:b.jsx(ks,{type:"button",variant:"cta",size:"xl",className:"w-full sm:w-auto",onClick:W,children:"See the full P&L breakdown →"})})]}),l&&b.jsxs(Vg.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},className:"bg-card rounded-2xl shadow-card p-6 sm:p-8 space-y-6",children:[b.jsx("p",{className:"text-[13px] text-[hsl(var(--success))] font-medium",children:C?"✓ Here's your full camp P&L — we've emailed you a copy too.":"✓ Here's your full camp P&L. We couldn't send the email copy, so save or screenshot this page."}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-xl font-bold text-card-foreground mb-4",children:"Your summer camp P&L"}),b.jsxs("div",{className:"divide-y divide-border font-mono text-[14px]",children:[b.jsx(Ee,{label:`Gross revenue (${L.campers} × ${oe(L.weeklyPrice)} × ${L.weeks} wks)`,value:oe(A.grossRevenue)}),b.jsx(Ee,{label:`Junior staff labor (${L.juniorStaff} × ${oe(L.juniorRate)} × ${L.hoursPerDay}h × ${ee}d)`,value:`−${oe(A.juniorLabor)}`}),b.jsx(Ee,{label:`Head instructor labor (1 × ${oe(L.headRate)} × ${L.hoursPerDay}h × ${ee}d)`,value:`−${oe(A.headLabor)}`}),b.jsx(Ee,{label:"Total labor",value:`−${oe(A.totalLabor)}`,strong:!0}),b.jsx(Ee,{label:"Gross margin (before rent/supplies)",value:oe(A.grossMargin),strong:!0,accent:Q?"success":"destructive"}),b.jsx(Ee,{label:"Gross margin %",value:`${qt.toFixed(1)}%`}),b.jsx(Ee,{label:"Labor as % of revenue",value:`${(A.laborPctOfRevenue*100).toFixed(0)}%`})]})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-xl font-bold text-card-foreground mb-4",children:"Per-camper economics"}),b.jsxs("div",{className:"divide-y divide-border font-mono text-[14px]",children:[b.jsx(Ee,{label:"Revenue per camper",value:oe(A.revenuePerCamper)}),b.jsx(Ee,{label:"Allocated labor per camper",value:`−${oe(A.laborPerCamper)}`}),b.jsx(Ee,{label:"Margin per camper",value:oe(A.marginPerCamper),strong:!0,accent:A.marginPerCamper>=0?"success":"destructive"}),b.jsx(Ee,{label:"Revenue per camper per week",value:oe(L.weeklyPrice)}),b.jsx(Ee,{label:"Camp length",value:`${L.weeks} wks · ${ee} days · ${vt} hrs`})]})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-xl font-bold text-card-foreground mb-4",children:"Staffing & capacity"}),b.jsxs("div",{className:"divide-y divide-border font-mono text-[14px]",children:[b.jsx(Ee,{label:"Total staff on payroll",value:`${ut} (1 head + ${L.juniorStaff} junior)`}),b.jsx(Ee,{label:"Camper-to-staff ratio",value:`1 : ${wn.toFixed(1)}`,accent:wn>Xg?"destructive":void 0}),b.jsx(Ee,{label:"Staff hours over camp",value:`${(vt*ut).toLocaleStr
118ing()} hrs`}),b.jsx(Ee,{label:"Blended labor cost / hour",value:oe(vt>0?A.totalLabor/vt:0)}),b.jsx(Ee,{label:"Break-even",value:`${A.breakEvenCampers} ${A.breakEvenCampers===1?"camper":"campers"}`,strong:!0}),b.jsx(Ee,{label:"Each extra camper adds (after supplies)",value:oe(A.perCamperContribution)})]})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-xl font-bold text-card-foreground mb-2",children:"What if you change one lever?"}),b.jsx("p",{className:"text-[13px] text-muted-foreground mb-4",children:"Same camp, single change. The big movers are usually price and capacity, not staff cuts."}),b.jsx("div",{className:"space-y-3",children:Xt.map((B,Z)=>{const re=B.delta>=0;return b.jsxs("div",{className:"rounded-xl border border-border p-4",children:[b.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[b.jsx("p",{className:"text-card-foreground font-semibold text-[14px]",children:B.label}),b.jsxs("p",{className:`tabular-nums font-mono text-[14px] ${re?"text-[hsl(var(--success))]":"text-destructive"}`,children:[re?"+":"−",oe(Math.abs(B.delta))," → ",oe(B.margin)," margin"]})]}),b.jsx("p",{className:"text-[12px] text-muted-foreground mt-1",children:B.note})]},Z)})})]}),b.jsxs("div",{className:"bg-secondary rounded-xl p-5 space-y-3",children:[b.jsx("h3",{className:"text-[15px] font-bold text-card-foreground",children:"Reality check: budget for overhead"}),b.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Your ",oe(A.grossMargin)," gross margin still has to cover the costs we don't ask you about. Common rules of thumb (adjust for your market):"]}),b.jsxs("div",{className:"divide-y divide-border font-mono text-[13px]",children:[b.jsx(Ee,{label:"Supplies & activities ($15–$30 / camper / wk)",value:`−${oe(Ve.suppliesLow)} to ${oe(Ve.suppliesHigh)}`}),b.jsx(Ee,{label:"Rent & utilities (5–10% of camp revenue)",value:`−${oe(Ve.rentLow)} to ${oe(Ve.rentHigh)}`}),b.jsx(Ee,{label:"Estimated net to the camp",value:`${oe(Ve.netLow)} – ${oe(Ve.netHigh)}`,strong:!0,accent:Ve.netLow>=0?"success":Ve.netHigh<0?"destructive":void 0})]}),q&&b.jsxs("p",{className:"text-[12px] text-muted-foreground italic",children:["You set head instructor pay to $0, so the owner's hours flow through as profit. If you'd paid yourself ",oe(20),"/hr it would have cost ~",oe(20*vt)," over the camp."]})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-xl font-bold text-card-foreground mb-3",children:"3 levers to pull before next summer"}),b.jsxs("ol",{className:"space-y-2 text-[14px] text-card-foreground list-decimal pl-5",children:[b.jsxs("li",{children:[b.jsx("strong",{children:"Price."})," A common rule of thumb: many martial-arts camps price $25–$50/wk below local daycare. A $25 bump adds ",oe(25*L.campers*L.weeks)," here if enrollment holds."]}),b.jsxs("li",{children:[b.jsx("strong",{children:"Capacity, not staff."})," Labor is mostly fixed once you've staffed safely, so each camper above break-even adds about ",oe(A.perCamperContribution)," after supplies."]}),b.jsxs("li",{children:[b.jsx("strong",{children:"Sibling & multi-week discounts."})," They lift average weeks-per-camper, which compounds: revenue scales linearly, labor doesn't."]})]})]}),b.jsxs("div",{className:"bg-secondary rounded-xl p-6 text-center",children:[b.jsx(ks,{asChild:!0,variant:"cta",size:"xl",children:b.jsx("a",{href:"https://gymdesk.com/register?utm_source=camp-calculator&utm_medium=tool&utm_campaign=summer-camp",target:"_blank",rel:"noopener noreferrer",onClick:()=>en("gymdesk_trial_cta_clicked",{calculator:"summer_camp_profit",location:"gated_card"}),children:"Run your camp on Gymdesk — free 30-day trial →"})}),b.jsx("p",{className:"text-[12px] text-muted-foreground/70 mt-3",children:"gymdesk.com/register"})]})]}),b.jsx("p",{className:"text-[12px] text-muted-foreground/70 leading-relaxed text-center max-w-[600px] mx-auto px-4",children:"Estimates based on the inputs you provided. Gross margin is before rent, supplies, insurance, and activity costs. Actual results vary by market and programming. Labor is treated as fixed for the staffing you entered — break-even tells you how many campers cover this staff bill."})]})})]}),b.jsx(FL,{open:c,onOpenChange:d,children:b.jsxs(dS,{className:"bg-card text-card-foreground sm:max-w-md",children:[b.jsxs(fS,{children:[b.jsx(hS,{className:"text-card-foreground text-xl",children:"Where should we send your full camp P&L?"}),b.jsx(pS,{className:"text-muted-foreground",children:"We'll unlock the line-by-line breakdown here and email you a copy to share with your team."})]}),b.jsxs("form",{onSubmit:z,className:"space-y-4",children:[b.jsxs("div",{children:[b.jsxs(Us,{htmlFor:"gate-firstName",className:"text-[13px] font-medium",children:["First name ",b.jsx("span",{className:"text-muted-foreground
118/60",children:"(optional)"})]}),b.jsx(Bs,{id:"gate-firstName",type:"text",value:w,onChange:B=>p(B.target.value),maxLength:100,className:"mt-1 bg-secondary border-border"})]}),b.jsxs("div",{children:[b.jsx(Us,{htmlFor:"gate-email",className:"text-[13px] font-medium",children:"Email address"}),b.jsx(Bs,{id:"gate-email",type:"email",required:!0,placeholder:"[email protected]",value:f,onChange:B=>{h(B.target.value),E(null)},maxLength:255,className:"mt-1 bg-secondary border-border"})]}),b.jsxs("div",{children:[b.jsxs(Us,{htmlFor:"gate-gym",className:"text-[13px] font-medium",children:["Gym / camp name ",b.jsx("span",{className:"text-muted-foreground/60",children:"(optional)"})]}),b.jsx(Bs,{id:"gate-gym",type:"text",value:x,onChange:B=>g(B.target.value),maxLength:150,className:"mt-1 bg-secondary border-border"})]}),S&&b.jsx("p",{className:"text-sm text-destructive",children:S}),b.jsx(ks,{type:"submit",variant:"cta",size:"xl",className:"w-full",disabled:m,children:m?"Sending…":"Unlock full P&L"}),b.jsx("p",{className:"text-[11px] text-muted-foreground/60 text-center",children:"No spam. Just your report."})]})]})})]})},Ee=({label:e,value:t,strong:n,accent:r})=>b.jsxs("div",{className:"flex justify-between items-center gap-4 py-2.5",children:[b.jsx("span",{className:`text-[13px] sm:text-[14px] ${n?"text-card-foreground font-semibold":"text-muted-foreground"}`,children:e}),b.jsx("span",{className:`text-[14px] sm:text-[15px] tabular-nums whitespace-nowrap ${r==="success"?"text-[hsl(var(--success))] font-bold":r==="destructive"?"text-destructive font-bold":n?"text-card-foreground font-semibold":"text-card-foreground"}`,children:t})]}),aO=new PR,lO=()=>(v.useEffect(()=>{YL()},[]),v.useEffect(()=>{if(window.parent===window)return;let e=0;const t=()=>{const o=Math.ceil(document.documentElement.scrollHeight);o!==e&&(e=o,window.parent.postMessage({type:"camp-profit-planner-height",height:o},"*"))};t();const n=new ResizeObserver(t);n.observe(document.documentElement),window.addEventListener("load",t);const r=window.setInterval(t,500);return()=>{n.disconnect(),window.removeEventListener("load",t),window.clearInterval(r)}},[]),b.jsx(RR,{client:aO,children:b.jsxs(nR,{children:[b.jsx(IT,{}),b.jsx(mP,{}),b.jsx(iO,{})]})}));tO(Bd);fc.createRoot(document.getElementById("root")).render(b.jsx(_.StrictMode,{children:b.jsx(lO,{})}));

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.