vendor: 8,209 bytes, lines 1-9
1var Tc=e=>{throw TypeError(e)};var vl=(e,t,n)=>t.has(e)||Tc("Cannot "+n);var T=(e,t,n)=>(vl(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Tc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q=(e,t,n,r)=>(vl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ne=(e,t,n)=>(vl(e,t,"access private method"),n);var Ei=(e,t,n,r)=>({set _(o){Q(e,t,o,n)},get _(){return T(e,t,r)}});function I0(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 i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{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 i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Of(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lf={exports:{}},$s={},If={exports:{}},X={};/** 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 ci=Symbol.for("react.element"),F0=Symbol.for("react.portal"),D0=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),$0=Symbol.for("react.profiler"),B0=Symbol.for("react.provider"),U0=Symbol.for("react.context"),V0=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),H0=Symbol.for("react.memo"),Q0=Symbol.for("react.lazy"),kc=Symbol.iterator;function Y0(e){return e===null||typeof e!="object"?null:(e=kc&&e[kc]||e["@@iterator"],typeof e=="function"?e:null)}var Ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Df=Object.assign,zf={};function ao(e,t,n){this.props=e,this.context=t,this.refs=zf,this.updater=n||Ff}ao.prototype.isReactComponent={};ao.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")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $f(){}$f.prototype=ao.prototype;function cu(e,t,n){this.props=e,this.context=t,this.refs=zf,this.updater=n||Ff}var du=cu.prototype=new $f;du.constructor=cu;Df(du,ao.prototype);du.isPureReactComponent=!0;var Pc=Array.isArray,Bf=Object.prototype.hasOwnProperty,fu={current:null},Uf={key:!0,ref:!0,__self:!0,__source:!0};function Vf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Bf.call(t,r)&&!Uf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:ci,type:e,key:i,ref:s,props:o,_owner:fu.current}}function G0(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function K0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rc=/\/+/g;function yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?K0(""+e.key):t.toString(36)}function Yi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ci:case F0:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+yl(s,0):r,Pc(o)?(n="",e!=null&&(n=e.replace(Rc,"$&/")+"/"),Yi(o,t,n,"",function(u){return u})):o!=null&&(pu(o)&&(o=G0(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Rc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Pc(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+yl(i,l);s+=Yi(i,t,n,a,o)}else if(a=Y0(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+yl(i,l++),s+=Yi(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ci(e,t,n){if(e==null)return e;var r=[],o=0;return Yi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function X0(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 Ie={current:null},Gi={transition:null},q0={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:Gi,ReactCurrentOwner:fu};function Wf(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Ci,forEach:function(e,t,n){Ci(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ci(e,function(){t++}),t},toArray:function(e){return Ci(e,function(t){return t})||[]},only:function(e){if(!pu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=ao;X.Fragment=D0;X.Profiler=$0;X.PureComponent=cu;X.StrictMode=z0;X.Suspense=W0;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q0;X.act=Wf;X.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=Df({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=fu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Bf.call(t,a)&&!Uf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ci,type:e.type,key:o,ref:i,props:r,_owner:s}};X.createContext=function(e){return e={$$typeof:U0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:B0,_context:e},e.Consumer=e};X.createElement=Vf;X.createFactory=function(e){var t=Vf.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:V0,render:e}};X.isValidElement=pu;X.lazy=function(e){return{$$typeof:Q0,_payload:{_status:-1,_result:e},_init:X0}};X.memo=function(e,t){return{$$typeof:H0,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Gi.transition;Gi.transition={};try{e()}finally{Gi.transition=t}};X.unstable_act=Wf;X.useCallback=function(e,t){return Ie.current.useCallback(e,t)};X.useContext=function(e){return Ie.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};X.useEffect=function(e,t){return Ie.current.useEffect(e,t)};X.useId=function(){return Ie.current.useId()};X.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Ie.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};X.useRef=function(e){return Ie.current.useRef(e)};
vendor: 4,883 bytes, lines 9-25
9X.useState=function(e){return Ie.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Ie.current.useTransition()};X.version="18.3.1";If.exports=X;var b=If.exports;const A=Of(b),Hf=I0({__proto__:null,default:A},[b]);/** 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 J0=b,Z0=Symbol.for("react.element"),eg=Symbol.for("react.fragment"),tg=Object.prototype.hasOwnProperty,ng=J0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rg={key:!0,ref:!0,__self:!0,__source:!0};function Qf(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)tg.call(t,r)&&!rg.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:Z0,type:e,key:i,ref:s,props:o,_owner:ng.current}}$s.Fragment=eg;$s.jsx=Qf;$s.jsxs=Qf;Lf.exports=$s;var d=Lf.exports,Yf={exports:{}},et={},Gf={exports:{}},Kf={};/** 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,P){var L=k.length;k.push(P);e:for(;0<L;){var V=L-1>>>1,D=k[V];if(0<o(D,P))k[V]=P,k[L]=D,L=V;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var P=k[0],L=k.pop();if(L!==P){k[0]=L;e:for(var V=0,D=k.length,G=D>>>1;V<G;){var K=2*(V+1)-1,se=k[K],ge=K+1,Z=k[ge];if(0>o(se,L))ge<D&&0>o(Z,se)?(k[V]=Z,k[ge]=L,V=ge):(k[V]=se,k[K]=L,V=K);else if(ge<D&&0>o(Z,L))k[V]=Z,k[ge]=L,V=ge;else break e}}return P}function o(k,P){var L=k.sortIndex-P.sortIndex;return L!==0?L:k.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,m=null,h=3,p=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=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 P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=k)r(u),P.sortIndex=P.expirationTime,t(a,P);else break;P=n(u)}}function S(k){if(v=!1,y(k),!w)if(n(a)!==null)w=!0,$(E);else{var P=n(u);P!==null&&U(S,P.startTime-k)}}function E(k,P){w=!1,v&&(v=!1,g(R),R=-1),p=!0;var L=h;try{for(y(P),m=n(a);m!==null&&(!(m.expirationTime>P)||k&&!B());){var V=m.callback;if(typeof V=="function"){m.callback=null,h=m.priorityLevel;var D=V(m.expirationTime<=P);P=e.unstable_now(),typeof D=="function"?m.callback=D:m===n(a)&&r(a),y(P)}else r(a);m=n(a)}if(m!==null)var G=!0;else{var K=n(u);K!==null&&U(S,K.startTime-P),G=!1}return G}finally{m=null,h=L,p=!1}}var C=!1,N=null,R=-1,O=5,M=-1;function B(){return!(e.unstable_now()-M<O)}function I(){if(N!==null){var k=e.unstable_now();M=k;var P=!0;try{P=N(!0,k)}finally{P?W():(C=!1,N=null)}}else C=!1}var W;if(typeof f=="function")W=function(){f(I)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,z=_.port2;_.port1.onmessage=I,W=function(){z.postMessage(null)}}else W=function(){x(I,0)};function $(k){N=k,C||(C=!0,W())}function U(k,P){R=x(function(){k(e.unstable_now())},P)}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||p||(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"):O=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(k){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var L=h;h=P;try{return k()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,P){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=h;h=k;try{return P()}finally{h=L}},e.unstable_scheduleCallback=function(k,P,L){var V=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?V+L:V):L=V,k){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}
vendor: 4,614 bytes, lines 25-33
25return D=L+D,k={id:c++,callback:P,priorityLevel:k,startTime:L,expirationTime:D,sortIndex:-1},L>V?(k.sortIndex=L,t(u,k),n(a)===null&&k===n(u)&&(v?(g(R),R=-1):v=!0,U(S,L-V))):(k.sortIndex=D,t(a,k),w||p||(w=!0,$(E))),k},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(k){var P=h;return function(){var L=h;h=P;try{return k.apply(this,arguments)}finally{h=L}}}})(Kf);Gf.exports=Kf;var og=Gf.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 ig=b,Ze=og;function j(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 Xf=new Set,Bo={};function hr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for(Bo[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ta=Object.prototype.hasOwnProperty,sg=/^[: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]*$/,jc={},Ac={};function lg(e){return ta.call(Ac,e)?!0:ta.call(jc,e)?!1:sg.test(e)?Ac[e]=!0:(jc[e]=!0,!1)}function ag(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 ug(e,t,n,r){if(t===null||typeof t>"u"||ag(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 Fe(e,t,n,r,o,i,s){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=i,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Fe(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){Ce[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var mu=/[\-:]([a-z])/g;function hu(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(mu,hu);Ce[t]=new Fe(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(mu,hu);Ce[t]=new Fe(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(mu,hu);Ce[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function gu(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ug(t,n,o,r)&&(n=null),r||o===null?lg(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 on=ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ni=Symbol.for("react.element"),Er=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),vu=Symbol.for("react.strict_mode"),na=Symbol.for("react.profiler"),qf=Symbol.for("react.provider"),Jf=Symbol.for("react.context"),yu=Symbol.for("react.forward_ref"),ra=Symbol.for("react.suspense"),oa=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),vn=Symbol.for("react.lazy"),Zf=Symbol.for("react.offscreen"),Mc=Symbol.iterator;function go(e){return e===null||typeof e!="object"?null:(e=Mc&&e[Mc]||e["@@iterator"],typeof e=="function"?e:null)}var de=Object.assign,xl;function ko(e){if(xl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xl=t&&t[1]||""}return` 34`+xl+e}var wl=!1;function bl(e,t){if(!e||wl)return"";wl=!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`),i=r.stack.split(` 36`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=` 37`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ko(e):""}function cg(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=bl(e.type,!1),e;case 11:return e=bl(e.type.render,!1),e;case 1:return e=bl(e.type,!0),e;default:return""}}function ia(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 Cr:return"Fragment";case Er:return"Portal";case na:return"Profiler";case vu:return"StrictMode";case ra:return"Suspense";case oa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jf:return(e.displayName||"Context")+".Consumer";case qf:return(e._context.displayName||"Context")+".Provider";case yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xu:return t=e.displayName||null,t!==null?t:ia(e.type)||"Memo";case vn:t=e._payload,e=e._init;try{return ia(e(t))}catch{}}return null}function dg(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 ia(t);case 8:return t===vu?"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 Fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fg(e){var t=ep(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=fg(e))}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(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 sa(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _c(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fn(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}}
vendor: 10,852 bytes, line 37
37function np(e,t){t=t.checked,t!=null&&gu(e,"checked",t,!1)}function la(e,t){np(e,t);var n=Fn(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")?aa(e,t.type,n):t.hasOwnProperty("defaultValue")&&aa(e,t.type,Fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oc(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 aa(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Po=Array.isArray;function Lr(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=""+Fn(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 ua(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return de({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Lc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Po(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fn(n)}}function rp(e,t){var n=Fn(t.value),r=Fn(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 Ic(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function op(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 ca(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?op(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ki,ip=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(ki=ki||document.createElement("div"),ki.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ao={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},pg=["Webkit","ms","Moz","O"];Object.keys(Ao).forEach(function(e){pg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ao[t]=Ao[e]})});function sp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ao.hasOwnProperty(e)&&Ao[e]?(""+t).trim():t+"px"}function lp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mg=de({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 da(e,t){if(t){if(mg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function fa(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 pa=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,Ir=null,Fr=null;function Fc(e){if(e=pi(e)){if(typeof ma!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Hs(t),ma(e.stateNode,e.type,t))}}function ap(e){Ir?Fr?Fr.push(e):Fr=[e]:Ir=e}function up(){if(Ir){var e=Ir,t=Fr;if(Fr=Ir=null,Fc(e),t)for(e=0;e<t.length;e++)Fc(t[e])}}function cp(e,t){return e(t)}function dp(){}var Sl=!1;function fp(e,t,n){if(Sl)return e(t,n);Sl=!0;try{return cp(e,t,n)}finally{Sl=!1,(Ir!==null||Fr!==null)&&(dp(),up())}}function Vo(e,t){var n=e.stateNode;if(n===null)return null;var r=Hs(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(j(231,t,typeof n));return n}var ha=!1;if(Jt)try{var vo={};Object.defineProperty(vo,"passive",{get:function(){ha=!0}}),window.addEventListener("test",vo,vo),window.removeEventListener("test",vo,vo)}catch{ha=!1}function hg(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Mo=!1,us=null,cs=!1,ga=null,gg={onError:function(e){Mo=!0,us=e}};function vg(e,t,n,r,o,i,s,l,a){Mo=!1,us=null,hg.apply(gg,arguments)}function yg(e,t,n,r,o,i,s,l,a){if(vg.apply(this,arguments),Mo){if(Mo){var u=us;Mo=!1,us=null}else throw Error(j(198));cs||(cs=!0,ga=u)}}function gr(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 pp(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 Dc(e){if(gr(e)!==e)throw Error(j(188))}function xg(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Dc(o),e;if(i===r)return Dc(o),t;i=i.sibling}throw Error(j(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function mp(e){return e=xg(e),e!==null?hp(e):null}function hp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hp(e);if(t!==null)return t;e=e.sibling}return null}var gp=Ze.unstable_scheduleCallback,zc=Ze.unstable_cancelCallback,wg=Ze.unstable_shouldYield,bg=Ze.unstable_requestPaint,me=Ze.unstable_now,Sg=Ze.unstable_getCurrentPriorityLevel,bu=Ze.unstable_ImmediatePriority,vp=Ze.unstable_UserBlockingPriority,ds=Ze.unstable_NormalPriority,Eg=Ze.unstable_LowPriority,yp=Ze.unstable_IdlePriority,Bs=null,Dt=null;function Cg(e){if(Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Bs,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:kg,Ng=Math.log,Tg=Math.LN2;function kg(e){return e>>>=0,e===0?32:31-(Ng(e)/Tg|0)|0}var Pi=64,Ri=4194304;function Ro(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 fs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Ro(l):(i&=s,i!==0&&(r=Ro(i)))}else s=n&~o,s!==0?r=Ro(s):i!==0&&(r=Ro(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-Et(t),o=1<<n,r|=e[n],t&=~o;return r}function Pg(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 Rg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Et(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=Pg(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function va(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xp(){var e=Pi;return Pi<<=1,!(Pi&4194240)&&(Pi=64),e}function El(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function jg(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-Et(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Su(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ee=0;function wp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}
vendor: 2,442 bytes, line 37
37var bp,Eu,Sp,Ep,Cp,ya=!1,ji=[],Rn=null,jn=null,An=null,Wo=new Map,Ho=new Map,xn=[],Ag="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 $c(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":Wo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ho.delete(t.pointerId)}}function yo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=pi(t),t!==null&&Eu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Mg(e,t,n,r,o){switch(t){case"focusin":return Rn=yo(Rn,e,t,n,r,o),!0;case"dragenter":return jn=yo(jn,e,t,n,r,o),!0;case"mouseover":return An=yo(An,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Wo.set(i,yo(Wo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ho.set(i,yo(Ho.get(i)||null,e,t,n,r,o)),!0}return!1}function Np(e){var t=qn(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=pp(n),t!==null){e.blockedOn=t,Cp(e.priority,function(){Sp(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 Ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pa=r,n.target.dispatchEvent(r),pa=null}else return t=pi(n),t!==null&&Eu(t),e.blockedOn=n,!1;t.shift()}return!0}function Bc(e,t,n){Ki(e)&&n.delete(t)}function _g(){ya=!1,Rn!==null&&Ki(Rn)&&(Rn=null),jn!==null&&Ki(jn)&&(jn=null),An!==null&&Ki(An)&&(An=null),Wo.forEach(Bc),Ho.forEach(Bc)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,ya||(ya=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,_g)))}function Qo(e){function t(o){return xo(o,e)}if(0<ji.length){xo(ji[0],e);for(var n=1;n<ji.length;n++){var r=ji[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rn!==null&&xo(Rn,e),jn!==null&&xo(jn,e),An!==null&&xo(An,e),Wo.forEach(t),Ho.forEac
vendor: 8,908 bytes, line 37
37h(t),n=0;n<xn.length;n++)r=xn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xn.length&&(n=xn[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&xn.shift()}var Dr=on.ReactCurrentBatchConfig,ps=!0;function Og(e,t,n,r){var o=ee,i=Dr.transition;Dr.transition=null;try{ee=1,Cu(e,t,n,r)}finally{ee=o,Dr.transition=i}}function Lg(e,t,n,r){var o=ee,i=Dr.transition;Dr.transition=null;try{ee=4,Cu(e,t,n,r)}finally{ee=o,Dr.transition=i}}function Cu(e,t,n,r){if(ps){var o=xa(e,t,n,r);if(o===null)_l(e,t,r,ms,n),$c(e,r);else if(Mg(o,e,t,n,r))r.stopPropagation();else if($c(e,r),t&4&&-1<Ag.indexOf(e)){for(;o!==null;){var i=pi(o);if(i!==null&&bp(i),i=xa(e,t,n,r),i===null&&_l(e,t,r,ms,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else _l(e,t,r,null,n)}}var ms=null;function xa(e,t,n,r){if(ms=null,e=wu(r),e=qn(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pp(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 ms=e,null}function Tp(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(Sg()){case bu:return 1;case vp:return 4;case ds:case Eg:return 16;case yp:return 536870912;default:return 16}default:return 16}}var Tn=null,Nu=null,Xi=null;function kp(){if(Xi)return Xi;var e,t=Nu,n=t.length,r,o="value"in Tn?Tn.value:Tn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Xi=o.slice(e,1<r?1-r:void 0)}function qi(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 Ai(){return!0}function Uc(){return!1}function tt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ai:Uc,this.isPropagationStopped=Uc,this}return de(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=Ai)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),t}var uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tu=tt(uo),fi=de({},uo,{view:0,detail:0}),Ig=tt(fi),Cl,Nl,wo,Us=de({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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!==wo&&(wo&&e.type==="mousemove"?(Cl=e.screenX-wo.screenX,Nl=e.screenY-wo.screenY):Nl=Cl=0,wo=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:Nl}}),Vc=tt(Us),Fg=de({},Us,{dataTransfer:0}),Dg=tt(Fg),zg=de({},fi,{relatedTarget:0}),Tl=tt(zg),$g=de({},uo,{animationName:0,elapsedTime:0,pseudoElement:0}),Bg=tt($g),Ug=de({},uo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vg=tt(Ug),Wg=de({},uo,{data:0}),Wc=tt(Wg),Hg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qg={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"},Yg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yg[e])?!!t[e]:!1}function ku(){return Gg}var Kg=de({},fi,{key:function(e){if(e.key){var t=Hg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xg=tt(Kg),qg=de({},Us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hc=tt(qg),Jg=de({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),Zg=tt(Jg),ev=de({},uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),tv=tt(ev),nv=de({},Us,{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}),rv=tt(nv),ov=[9,13,27,32],Pu=Jt&&"CompositionEvent"in window,_o=null;Jt&&"documentMode"in document&&(_o=document.documentMode);var iv=Jt&&"TextEvent"in window&&!_o,Pp=Jt&&(!Pu||_o&&8<_o&&11>=_o),Qc=" ",Yc=!1;function Rp(e,t){switch(e){case"keyup":return ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function sv(e,t){switch(e){case"compositionend":return jp(t);case"keypress":return t.which!==32?null:(Yc=!0,Qc);case"textInput":return e=t.data,e===Qc&&Yc?null:e;default:return null}}function lv(e,t){if(Nr)return e==="compositionend"||!Pu&&Rp(e,t)?(e=kp(),Xi=Nu=Tn=null,Nr=!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 Pp&&t.locale!=="ko"?null:t.data;default:return null}}var av={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 Gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!av[e.type]:t==="textarea"}function Ap(e,t,n,r){ap(r),t=hs(t,"onChange"),0<t.length&&(n=new Tu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Oo=null,Yo=null;function uv(e){Up(e,0)}function Vs(e){var t=Pr(e);if(tp(t))return e}function cv(e,t){if(e==="change")return t}var Mp=!1;if(Jt){var kl;if(Jt){var Pl="oninput"in document;if(!Pl){var Kc=document.createElement("div");Kc.setAttribute("oninput","return;"),Pl=typeof Kc.oninput=="function"}kl=Pl}else kl=!1;Mp=kl&&(!document.documentMode||9<document.documentMode)}function Xc(){Oo&&(Oo.detachEvent("onpropertychange",_p),Yo=Oo=null)}function _p(e){if(e.propertyName==="value"&&Vs(Yo)){var t=[];Ap(t,Yo,e,wu(e)),fp(uv,t)}}function dv(e,t,n){e==="focusin"?(Xc(),Oo=t,Yo=n,Oo.attachEvent("onpropertychange",_p)):e==="focusout"&&Xc()}function fv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(Yo)}function pv(e,t){if(e==="click")return Vs(t)}function mv(e,t){if(e==="input"||e==="change")return Vs(t)}function hv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:hv;function Go(e,t){if(Nt(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(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(!ta.call(t,o)||!Nt(e[o],t[o]))return!1}return!0}function qc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jc(e,t){var n=qc(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=qc(n)}}function Op(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Op(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lp(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function Ru(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 gv(e){var t=Lp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Op(n.ownerDocument.documentElement,n)){if(r!==null&&Ru(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,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jc(n,i);var s=Jc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 vv=Jt&&"documentMode"in document&&11>=document.documentMode,Tr=null,wa=null,Lo=null,ba=!1;function Zc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ba||Tr==null||Tr!==as(r)||(r=Tr,"selectionStart"in r&&Ru(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lo&&Go(Lo,r)||(Lo=r,r=hs(wa,"onSelect"),0<r.length&&(t=new Tu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function Mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},Rl={},Ip={};Jt&&(Ip=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);function Ws(e){if(Rl[e])return Rl[e];if(!kr[e])return e;var t=kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ip)return Rl[e]=t[n];return e}var Fp=Ws("animationend"),Dp=Ws("animationiteration"),zp=Ws("animationstart"),$p=Ws("transitionend"),Bp=new Map,ed="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 Vn(e,t){Bp.set(e,t),hr(t,[e])}for(var jl=0;jl<ed.length;jl++){var Al=ed[jl],yv=Al.toLowerCase(),xv=Al[0].toUpperCase()+Al.slice(1);Vn(yv,"on"+xv)}Vn(Fp,"onAnimationEnd");Vn(Dp,"onAnimationIteration");Vn(zp,"onAnimationStart");Vn("dblclick","onDoubleClick");Vn("focusin","onFocus");Vn("focusout","onBlur");Vn($p,"onTransitionEnd");Zr("onMouseEnter",["mouseout","mouseover"]);Zr("onMouseLeave",["mouseout","mouseover"]);Zr("onPointerEnter",["pointerout","pointerover"]);Zr("onPointerLeave",["pointerout","pointerover"]);hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,388 bytes, line 37
37hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jo="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(" "),wv=new Set("cancel close invalid load scroll toggle".split(" ").concat(jo));function td(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yg(r,t,void 0,e),e.currentTarget=null}function Up(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 i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;td(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;td(o,l,u),i=a}}}if(cs)throw e=ga,cs=!1,ga=null,e}function oe(e,t){var n=t[Ta];n===void 0&&(n=t[Ta]=new Set);var r=e+"__bubble";n.has(r)||(Vp(t,e,2,!1),n.add(r))}function Ml(e,t,n){var r=0;t&&(r|=4),Vp(n,e,r,t)}var _i="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[_i]){e[_i]=!0,Xf.forEach(function(n){n!=="selectionchange"&&(wv.has(n)||Ml(n,!1,e),Ml(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_i]||(t[_i]=!0,Ml("selectionchange",!1,t))}}function Vp(e,t,n,r){switch(Tp(t)){case 1:var o=Og;break;case 4:o=Lg;break;default:o=Cu}n=o.bind(null,t,n,e),o=void 0,!ha||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 _l(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=qn(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}fp(function(){var u=i,c=wu(n),m=[];e:{var h=Bp.get(e);if(h!==void 0){var p=Tu,w=e;switch(e){case"keypress":if(qi(n)===0)break e;case"keydown":case"keyup":p=Xg;break;case"focusin":w="focus",p=Tl;break;case"focusout":w="blur",p=Tl;break;case"beforeblur":case"afterblur":p=Tl;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":p=Vc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Dg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Zg;break;case Fp:case Dp:case zp:p=Bg;break;case $p:p=tv;break;case"scroll":p=Ig;break;case"wheel":p=rv;break;case"copy":case"cut":case"paste":p=Vg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Hc}var v=(t&4)!==0,x=!v&&e==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var f=u,y;f!==null;){y=f;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,g!==null&&(S=Vo(f,g),S!=null&&v.push(Xo(f,S,y)))),x)break;f=f.return}0<v.length&&(h=new p(h,w,null,n,c),m.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==pa&&(w=n.relatedTarget||n.fromElement)&&(qn(w)||w[Zt]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=u,w=w?qn(w):null,w!==null&&(x=gr(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=u),p!==w)){if(v=Vc,S="onMouseLeave",g="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(v=Hc,S="onPointerLeave",g="onPointerEnter",f="pointer"),x=p==null?h:Pr(p),y=w==null?h:Pr(w),h=new v(S,f+"leave",p,n,c
vendor: 6,754 bytes, lines 37-38
37),h.target=x,h.relatedTarget=y,S=null,qn(c)===u&&(v=new v(g,f+"enter",w,n,c),v.target=y,v.relatedTarget=x,S=v),x=S,p&&w)t:{for(v=p,g=w,f=0,y=v;y;y=Sr(y))f++;for(y=0,S=g;S;S=Sr(S))y++;for(;0<f-y;)v=Sr(v),f--;for(;0<y-f;)g=Sr(g),y--;for(;f--;){if(v===g||g!==null&&v===g.alternate)break t;v=Sr(v),g=Sr(g)}v=null}else v=null;p!==null&&nd(m,h,p,v,!1),w!==null&&x!==null&&nd(m,x,w,v,!0)}}e:{if(h=u?Pr(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var E=cv;else if(Gc(h))if(Mp)E=mv;else{E=fv;var C=dv}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=pv);if(E&&(E=E(e,u))){Ap(m,E,n,c);break e}C&&C(e,h,u),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&aa(h,"number",h.value)}switch(C=u?Pr(u):window,e){case"focusin":(Gc(C)||C.contentEditable==="true")&&(Tr=C,wa=u,Lo=null);break;case"focusout":Lo=wa=Tr=null;break;case"mousedown":ba=!0;break;case"contextmenu":case"mouseup":case"dragend":ba=!1,Zc(m,n,c);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":Zc(m,n,c)}var N;if(Pu)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Nr?Rp(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Pp&&n.locale!=="ko"&&(Nr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Nr&&(N=kp()):(Tn=c,Nu="value"in Tn?Tn.value:Tn.textContent,Nr=!0)),C=hs(u,R),0<C.length&&(R=new Wc(R,e,null,n,c),m.push({event:R,listeners:C}),N?R.data=N:(N=jp(n),N!==null&&(R.data=N)))),(N=iv?sv(e,n):lv(e,n))&&(u=hs(u,"onBeforeInput"),0<u.length&&(c=new Wc("onBeforeInput","beforeinput",null,n,c),m.push({event:c,listeners:u}),c.data=N))}Up(m,t)})}function Xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hs(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Vo(e,n),i!=null&&r.unshift(Xo(e,i,o)),i=Vo(e,t),i!=null&&r.push(Xo(e,i,o))),e=e.return}return r}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nd(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=Vo(n,i),a!=null&&s.unshift(Xo(n,a,l))):o||(a=Vo(n,i),a!=null&&s.push(Xo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var bv=/\r\n?/g,Sv=/\u0000|\uFFFD/g;function rd(e){return(typeof e=="string"?e:""+e).replace(bv,` 38`).replace(Sv,"")}function Oi(e,t,n){if(t=rd(t),rd(e)!==t&&n)throw Error(j(425))}function gs(){}var Sa=null,Ea=null;function Ca(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 Na=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,od=typeof Promise=="function"?Promise:void 0,Cv=typeof queueMicrotask=="function"?queueMicrotask:typeof od<"u"?function(e){return od.resolve(null).then(e).catch(Nv)}:Na;function Nv(e){setTimeout(function(){throw e})}function Ol(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),Qo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Qo(t)}function Mn(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 id(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 co=Math.random().toString(36).slice(2),It="__reactFiber$"+co,qo="__reactProps$"+co,Zt="__reactContainer$"+co,Ta="__reactEvents$"+co,Tv="__reactListeners$"+co,kv="__reactHandles$"+co;function qn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zt]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=id(e);e!==null;){if(n=e[It])return n;e=id(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[It]||e[Zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Hs(e){return e[qo]||null}var ka=[],Rr=-1;function Wn(e){return{current:e}}function ie(e){0>Rr||(e.current=ka[Rr],ka[Rr]=null,Rr--)}function ne(e,t){Rr++,ka[Rr]=e.current,e.current=t}var Dn={},je=Wn(Dn),Ve=Wn(!1),ur=Dn;function eo(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function We(e){return e=e.childContextTypes,e!=null}function vs(){ie(Ve),ie(je)}function sd(e,t,n){if(je.current!==Dn)throw Error(j(168));ne(je,t),ne(Ve,n)}function Wp(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(j(108,dg(e)||"Unknown",o));return de({},n,r)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ur=je.current,ne(je,e),ne(Ve,Ve.current),!0}function ld(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Wp(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ve),ie(je),ne(je,e)):ie(Ve),ne(Ve,n)}var Yt=null,Qs=!1,Ll=!1;function Hp(e){Yt===null?Yt=[e]:Yt.push(e)}function Pv(e){Qs=!0,Hp(e)}function Hn(){if(!Ll&&Yt!==null){Ll=!0;var e=0,t=ee;try{var n=Yt;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,Qs=!1}catch(o){throw Yt!==null&&(Yt=Yt.slice(e+1)),gp(bu,Hn),o}finally{ee=t,Ll=!1}}return null}var jr=[],Ar=0,xs=null,ws=0,rt=[],ot=0,cr=null,Kt=1,Xt="";function Kn(e,t){jr[Ar++]=ws,jr[Ar++]=xs,xs=e,ws=t}function Qp(e,t,n){rt[ot++]=Kt,rt[ot++]=Xt,rt[ot++]=cr,cr=e;var r=Kt;e=Xt;var o=32-Et(r)-1;r&=~(1<<o),n+=1;var i=32-Et(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Kt=1<<32-Et(t)+o|n<<o|r,Xt=i+e}else Kt=1<<i|n<<o|r,Xt=e}function ju(e){e.return!==null&&(Kn(e,1),Qp(e,1,0))}function Au(e){for(;e===xs;)xs=jr[--Ar],jr[Ar]=null,ws=jr[--Ar],jr[Ar]=null;for(;e===cr;)cr=rt[--ot],rt[ot]=null,Xt=rt[--ot],rt[ot]=null,Kt=rt[--ot],rt[ot]=null}var qe=null,Xe=null,ae=!1,St=null;function Yp(e,t){var n=it(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 ad(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 26,836 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qe=e,Xe=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qe=e,Xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cr!==null?{id:Kt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=it(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qe=e,Xe=null,!0):!1;default:return!1}}function Pa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ra(e){if(ae){var t=Xe;if(t){var n=t;if(!ad(e,t)){if(Pa(e))throw Error(j(418));t=Mn(n.nextSibling);var r=qe;t&&ad(e,t)?Yp(r,n):(e.flags=e.flags&-4097|2,ae=!1,qe=e)}}else{if(Pa(e))throw Error(j(418));e.flags=e.flags&-4097|2,ae=!1,qe=e}}}function ud(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qe=e}function Li(e){if(e!==qe)return!1;if(!ae)return ud(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ca(e.type,e.memoizedProps)),t&&(t=Xe)){if(Pa(e))throw Gp(),Error(j(418));for(;t;)Yp(e,t),t=Mn(t.nextSibling)}if(ud(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=qe?Mn(e.stateNode.nextSibling):null;return!0}function Gp(){for(var e=Xe;e;)e=Mn(e.nextSibling)}function to(){Xe=qe=null,ae=!1}function Mu(e){St===null?St=[e]:St.push(e)}var Rv=on.ReactCurrentBatchConfig;function bo(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(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Ii(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cd(e){var t=e._init;return t(e._payload)}function Kp(e){function t(g,f){if(e){var y=g.deletions;y===null?(g.deletions=[f],g.flags|=16):y.push(f)}}function n(g,f){if(!e)return null;for(;f!==null;)t(g,f),f=f.sibling;return null}function r(g,f){for(g=new Map;f!==null;)f.key!==null?g.set(f.key,f):g.set(f.index,f),f=f.sibling;return g}function o(g,f){return g=In(g,f),g.index=0,g.sibling=null,g}function i(g,f,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<f?(g.flags|=2,f):y):(g.flags|=2,f)):(g.flags|=1048576,f)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,f,y,S){return f===null||f.tag!==6?(f=Ul(y,g.mode,S),f.return=g,f):(f=o(f,y),f.return=g,f)}function a(g,f,y,S){var E=y.type;return E===Cr?c(g,f,y.props.children,S,y.key):f!==null&&(f.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vn&&cd(E)===f.type)?(S=o(f,y.props),S.ref=bo(g,f,y),S.return=g,S):(S=os(y.type,y.key,y.props,null,g.mode,S),S.ref=bo(g,f,y),S.return=g,S)}function u(g,f,y,S){return f===null||f.tag!==4||f.stateNode.containerInfo!==y.containerInfo||f.stateNode.implementation!==y.implementation?(f=Vl(y,g.mode,S),f.return=g,f):(f=o(f,y.children||[]),f.return=g,f)}function c(g,f,y,S,E){return f===null||f.tag!==7?(f=ar(y,g.mode,S,E),f.return=g,f):(f=o(f,y),f.return=g,f)}function m(g,f,y){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Ul(""+f,g.mode,y),f.return=g,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ni:return y=os(f.type,f.key,f.props,null,g.mode,y),y.ref=bo(g,null,f),y.return=g,y;case Er:return f=Vl(f,g.mode,y),f.return=g,f;case vn:var S=f._init;return m(g,S(f._payload),y)}if(Po(f)||go(f))return f=ar(f,g.mode,y,null),f.return=g,f;Ii(g,f)}return null}function h(g,f,y,S){var E=f!==null?f.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:l(g,f,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ni:return y.key===E?a(g,f,y,S):null;case Er:return y.key===E?u(g,f,y,S):null;case vn:return E=y._init,h(g,f,E(y._payload),S)}if(Po(y)||go(y))return E!==null?null:c(g,f,y,S,null);Ii(g,y)}return null}function p(g,f,y,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(y)||null,l(f,g,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ni:return g=g.get(S.key===null?y:S.key)||null,a(f,g,S,E);case Er:return g=g.get(S.key===null?y:S.key)||null,u(f,g,S,E);case vn:var C=S._init;return p(g,f,y,C(S._payload),E)}if(Po(S)||go(S))return g=g.get(y)||null,c(f,g,S,E,null);Ii(f,S)}return null}function w(g,f,y,S){for(var E=null,C=null,N=f,R=f=0,O=null;N!==null&&R<y.length;R++){N.index>R?(O=N,N=null):O=N.sibling;var M=h(g,N,y[R],S);if(M===null){N===null&&(N=O);break}e&&N&&M.alternate===null&&t(g,N),f=i(M,f,R),C===null?E=M:C.sibling=M,C=M,N=O}if(R===y.length)return n(g,N),ae&&Kn(g,R),E;if(N===null){for(;R<y.length;R++)N=m(g,y[R],S),N!==null&&(f=i(N,f,R),C===null?E=N:C.sibling=N,C=N);return ae&&Kn(g,R),E}for(N=r(g,N);R<y.length;R++)O=p(N,g,R,y[R],S),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?R:O.key),f=i(O,f,R),C===null?E=O:C.sibling=O,C=O);return e&&N.forEach(function(B){return t(g,B)}),ae&&Kn(g,R),E}function v(g,f,y,S){var E=go(y);if(typeof E!="function")throw Error(j(150));if(y=E.call(y),y==null)throw Error(j(151));for(var C=E=null,N=f,R=f=0,O=null,M=y.next();N!==null&&!M.done;R++,M=y.next()){N.index>R?(O=N,N=null):O=N.sibling;var B=h(g,N,M.value,S);if(B===null){N===null&&(N=O);break}e&&N&&B.alternate===null&&t(g,N),f=i(B,f,R),C===null?E=B:C.sibling=B,C=B,N=O}if(M.done)return n(g,N),ae&&Kn(g,R),E;if(N===null){for(;!M.done;R++,M=y.next())M=m(g,M.value,S),M!==null&&(f=i(M,f,R),C===null?E=M:C.sibling=M,C=M);return ae&&Kn(g,R),E}for(N=r(g,N);!M.done;R++,M=y.next())M=p(N,g,R,M.value,S),M!==null&&(e&&M.alternate!==null&&N.delete(M.key===null?R:M.key),f=i(M,f,R),C===null?E=M:C.sibling=M,C=M);return e&&N.forEach(function(I){return t(g,I)}),ae&&Kn(g,R),E}function x(g,f,y,S){if(typeof y=="object"&&y!==null&&y.type===Cr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ni:e:{for(var E=y.key,C=f;C!==null;){if(C.key===E){if(E=y.type,E===Cr){if(C.tag===7){n(g,C.sibling),f=o(C,y.props.children),f.return=g,g=f;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vn&&cd(E)===C.type){n(g,C.sibling),f=o(C,y.props),f.ref=bo(g,C,y),f.return=g,g=f;break e}n(g,C);break}else t(g,C);C=C.sibling}y.type===Cr?(f=ar(y.props.children,g.mode,S,y.key),f.return=g,g=f):(S=os(y.type,y.key,y.props,null,g.mode,S),S.ref=bo(g,f,y),S.return=g,g=S)}return s(g);case Er:e:{for(C=y.key;f!==null;){if(f.key===C)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(g,f.sibling),f=o(f,y.children||[]),f.return=g,g=f;break e}else{n(g,f);break}else t(g,f);f=f.sibling}f=Vl(y,g.mode,S),f.return=g,g=f}return s(g);case vn:return C=y._init,x(g,f,C(y._payload),S)}if(Po(y))return w(g,f,y,S);if(go(y))return v(g,f,y,S);Ii(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(g,f.sibling),f=o(f,y),f.return=g,g=f):(n(g,f),f=Ul(y,g.mode,S),f.return=g,g=f),s(g)):n(g,f)}return x}var no=Kp(!0),Xp=Kp(!1),bs=Wn(null),Ss=null,Mr=null,_u=null;function Ou(){_u=Mr=Ss=null}function Lu(e){var t=bs.current;ie(bs),e._currentValue=t}function ja(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 zr(e,t){Ss=e,_u=Mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(_u!==e)if(e={context:e,memoizedValue:t,next:null},Mr===null){if(Ss===null)throw Error(j(308));Mr=e,Ss.dependencies={lanes:0,firstContext:e}}else Mr=Mr.next=e;return t}var Jn=null;function Iu(e){Jn===null?Jn=[e]:Jn.push(e)}function qp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Iu(t)):(n.next=o.next,o.next=n),t.interleaved=n,en(e,r)}function en(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 yn=!1;function Fu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jp(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 qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,en(e,n)}return o=r.interleaved,o===null?(t.next=t,Iu(r)):(t.next=o.next,o.next=t),r.interleaved=t,en(e,n)}function Ji(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,Su(e,n)}}function dd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Es(e,t,n,r){var o=e.updateQueue;yn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var m=o.baseState;s=0,c=u=a=null,l=i;do{var h=l.lane,p=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,v=l;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){m=w.call(p,m,h);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,m,h):w,h==null)break e;m=de({},m,h);break e;case 2:yn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,a=m):c=c.next=p,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=m),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);fr|=s,e.lanes=s,e.memoizedState=m}}function fd(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(j(191,o));o.call(r)}}}var mi={},zt=Wn(mi),Jo=Wn(mi),Zo=Wn(mi);function Zn(e){if(e===mi)throw Error(j(174));return e}function Du(e,t){switch(ne(Zo,t),ne(Jo,e),ne(zt,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ca(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ca(t,e)}ie(zt),ne(zt,t)}function ro(){ie(zt),ie(Jo),ie(Zo)}function Zp(e){Zn(Zo.current);var t=Zn(zt.current),n=ca(t,e.type);t!==n&&(ne(Jo,e),ne(zt,n))}function zu(e){Jo.current===e&&(ie(zt),ie(Jo))}var ue=Wn(0);function Cs(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 Il=[];function $u(){for(var e=0;e<Il.length;e++)Il[e]._workInProgressVersionPrimary=null;Il.length=0}var Zi=on.ReactCurrentDispatcher,Fl=on.ReactCurrentBatchConfig,dr=0,ce=null,ve=null,we=null,Ns=!1,Io=!1,ei=0,jv=0;function Te(){throw Error(j(321))}function Bu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Uu(e,t,n,r,o,i){if(dr=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zi.current=e===null||e.memoizedState===null?Ov:Lv,e=n(r,o),Io){i=0;do{if(Io=!1,ei=0,25<=i)throw Error(j(301));i+=1,we=ve=null,t.updateQueue=null,Zi.current=Iv,e=n(r,o)}while(Io)}if(Zi.current=Ts,t=ve!==null&&ve.next!==null,dr=0,we=ve=ce=null,Ns=!1,t)throw Error(j(300));return e}function Vu(){var e=ei!==0;return ei=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?ce.memoizedState=we=e:we=we.next=e,we}function at(){if(ve===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=we===null?ce.memoizedState:we.next;if(t!==null)we=t,ve=e;else{if(e===null)throw Error(j(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},we===null?ce.memoizedState=we=e:we=we.next=e}return we}function ti(e,t){return typeof t=="function"?t(e):t}function Dl(e){var t=at(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=ve,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var c=u.lane;if((dr&c)===c)a!==null&&(a=a.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 m={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=m,s=r):a=a.next=m,ce.lanes|=c,fr|=c}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,Nt(r,t.memoizedState)||(Ue=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ce.lanes|=i,fr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zl(e){var t=at(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Nt(i,t.memoizedState)||(Ue=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function em(){}function tm(e,t){var n=ce,r=at(),o=t(),i=!Nt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ue=!0),r=r.queue,Wu(om.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||we!==null&&we.memoizedState.tag&1){if(n.flags|=2048,ni(9,rm.bind(null,n,r,o,t),void 0,null),be===null)throw Error(j(349));dr&30||nm(n,t,o)}return o}function nm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t={lastEffect:null,stores:null},ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rm(e,t,n,r){t.value=n,t.getSnapshot=r,im(t)&&sm(e)}function om(e,t,n){return n(function(){im(t)&&sm(e)})}function im(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function sm(e){var t=en(e,1);t!==null&&Ct(t,e,1,-1)}function pd(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=_v.bind(null,ce,e),[t.memoizedState,e]}function ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ce.updateQueue,t===null?(t={lastEffect:null,stores:null},ce.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 lm(){return at().memoizedState}function es(e,t,n,r){var o=Mt();ce.flags|=e,o.memoizedState=ni(1|t,n,void 0,r===void 0?null:r)}function Ys(e,t,n,r){var o=at();r=r===void 0?null:r;var i=void 0;if(ve!==null){var s=ve.memoizedState;if(i=s.destroy,r!==null&&Bu(r,s.deps)){o.memoizedState=ni(t,n,i,r);return}}ce.flags|=e,o.memoizedState=ni(1|t,n,i,r)}function md(e,t){return es(8390656,8,e,t)}function Wu(e,t){return Ys(2048,8,e,t)}function am(e,t){return Ys(4,2,e,t)}function um(e,t){return Ys(4,4,e,t)}function cm(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 dm(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4,4,cm.bind(null,t,e),n)}function Hu(){}function fm(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pm(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mm(e,t,n){return dr&21?(Nt(n,t)||(n=xp(),ce.lanes|=n,fr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ue=!0),e.memoizedState=n)}function Av(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=Fl.transition;Fl.transition={};try{e(!1),t()}finally{ee=n,Fl.transition=r}}function hm(){return at().memoizedState}function Mv(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gm(e))vm(t,n);else if(n=qp(e,t,n,r),n!==null){var o=Le();Ct(n,e,r,o),ym(n,t,r)}}function _v(e,t,n){var r=Ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gm(e))vm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Nt(l,s)){var a=t.interleaved;a===null?(o.next=o,Iu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=qp(e,t,o,r),n!==null&&(o=Le(),Ct(n,e,r,o),ym(n,t,r))}}function gm(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function vm(e,t){Io=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ym(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Su(e,n)}}var Ts={readContext:lt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Ov={readContext:lt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:md,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,es(4194308,4,cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();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=Mv.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:pd,useDebugValue:Hu,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=pd(!1),t=e[0];return e=Av.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Mt();if(ae){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),be===null)throw Error(j(349));dr&30||nm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,md(om.bind(null,r,i,e),[e]),r.flags|=2048,ni(9,rm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mt(),t=be.identifierPrefix;if(ae){var n=Xt,r=Kt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ei++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=jv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lv={readContext:lt,useCallback:fm,useContext:lt,useEffect:Wu,useImperativeHandle:dm,useInsertionEffect:am,useLayoutEffect:um,useMemo:pm,useReducer:Dl,useRef:lm,useState:function(){return Dl(ti)},useDebugValue:Hu,useDeferredValue:function(e){var t=at();return mm(t,ve.memoizedState,e)},useTransition:function(){var e=Dl(ti)[0],t=at().memoizedState;return[e,t]},useMutableSource:em,useSyncExternalStore:tm,useId:hm,unstable_isNewReconciler:!1},Iv={readContext:lt,useCallback:fm,useContext:lt,useEffect:Wu,useImperativeHandle:dm,useInsertionEffect:am,useLayoutEffect:um,useMemo:pm,useReducer:zl,useRef:lm,useState:function(){return zl(ti)},useDebugValue:Hu,useDeferredValue:function(e){var t=at();return ve===null?t.memoizedState=e:mm(t,ve.memoizedState,e)},useTransition:function(){var e=zl(ti)[0],t=at().memoizedState;return[e,t]},useMutableSource:em,useSyncExternalStore:tm,useId:hm,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=de({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Aa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:de({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),o=Ln(e),i=qt(r,o);i.payload=t,n!=null&&(i.callback=n),t=_n(e,i,o),t!==null&&(Ct(t,e,o,r),Ji(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),o=Ln(e),i=qt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=_n(e,i,o),t!==null&&(Ct(t,e,o,r),Ji(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=Ln(e),o=qt(n,r);o.tag=2,t!=null&&(o.callback=t),t=_n(e,o,r),t!==null&&(Ct(t,e,r,n),Ji(t,e,r))}};function hd(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Go(n,r)||!Go(o,i):!0}function xm(e,t,n){var r=!1,o=Dn,i=t.contextType;return typeof i=="object"&&i!==null?i=lt(i):(o=We(t)?ur:je.current,r=t.contextTypes,i=(r=r!=null)?eo(e,o):Dn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function gd(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&&Gs.enqueueReplaceState(t,t.state,null)}function Ma(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Fu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=lt(i):(i=We(t)?ur:je.current,o.context=eo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Aa(e,t,i,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&&Gs.enqueueReplaceState(o,o.state,null),Es(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function oo(e,t){try{var n="",r=t;do n+=cg(r),r=r.return;while(r);var o=n}catch(i){o=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:o,digest:null}}function $l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _a(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Fv=typeof WeakMap=="function"?WeakMap:Map;function wm(e,t,n){n=qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ps||(Ps=!0,Va=r),_a(e,t)},n}function bm(e,t,n){n=qt(-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(){_a(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){_a(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function vd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fv;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=qv.bind(null,e,t,n),t.then(e,e))}function yd(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 xd(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=qt(-1,1),t.tag=2,_n(n,t,1))),n.lanes|=1),e)}var Dv=on.ReactCurrentOwner,Ue=!1;function _e(e,t,n,r){t.child=e===null?Xp(t,null,n,r):no(t,e.child,n,r)}function wd(e,t,n,r,o){n=n.render;var i=t.ref;return zr(t,o),r=Uu(e,t,n,r,i,o),n=Vu(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tn(e,t,o)):(ae&&n&&ju(t),t.flags|=1,_e(e,t,r,o),t.child)}function bd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Zu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Sm(e,t,i,r,o)):(e=os(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Go,n(s,r)&&e.ref===t.ref)return tn(e,t,o)}return t.flags|=1,e=In(i,r),e.ref=t.ref,e.return=t,t.child=e}function Sm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Go(i,r)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ue=!0);else return t.lanes=e.lanes,tn(e,t,o)}return Oa(e,t,n,r,o)}function Em(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(Or,Ge),Ge|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(Or,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ne(Or,Ge),Ge|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ne(Or,Ge),Ge|=r;return _e(e,t,o,n),t.child}function Cm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 8,779 bytes, line 40
40function Oa(e,t,n,r,o){var i=We(n)?ur:je.current;return i=eo(t,i),zr(t,o),n=Uu(e,t,n,r,i,o),r=Vu(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tn(e,t,o)):(ae&&r&&ju(t),t.flags|=1,_e(e,t,n,o),t.child)}function Sd(e,t,n,r,o){if(We(n)){var i=!0;ys(t)}else i=!1;if(zr(t,o),t.stateNode===null)ts(e,t),xm(t,n,r),Ma(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=lt(u):(u=We(n)?ur:je.current,u=eo(t,u));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&gd(t,s,r,u),yn=!1;var h=t.memoizedState;s.state=h,Es(t,r,s,o),a=t.memoizedState,l!==r||h!==a||Ve.current||yn?(typeof c=="function"&&(Aa(t,n,c,r),a=t.memoizedState),(l=yn||hd(t,n,l,r,h,a,u))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Jp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:vt(t.type,l),s.props=u,m=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=lt(a):(a=We(n)?ur:je.current,a=eo(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==m||h!==a)&&gd(t,s,r,a),yn=!1,h=t.memoizedState,s.state=h,Es(t,r,s,o);var w=t.memoizedState;l!==m||h!==w||Ve.current||yn?(typeof p=="function"&&(Aa(t,n,p,r),w=t.memoizedState),(u=yn||hd(t,n,u,r,h,w,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return La(e,t,n,r,i,o)}function La(e,t,n,r,o,i){Cm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ld(t,n,!1),tn(e,t,i);r=t.stateNode,Dv.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=no(t,e.child,null,i),t.child=no(t,null,l,i)):_e(e,t,l,i),t.memoizedState=r.state,o&&ld(t,n,!0),t.child}function Nm(e){var t=e.stateNode;t.pendingContext?sd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sd(e,t.context,!1),Du(e,t.containerInfo)}function Ed(e,t,n,r,o){return to(),Mu(o),t.flags|=256,_e(e,t,n,r),t.child}var Ia={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tm(e,t,n){var r=t.pendingProps,o=ue.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ue,o&1),e===null)return Ra(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=qs(s,r,0,null),e=ar(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fa(n),t.memoizedState=Ia,e):Qu(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return zv(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=In(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=In(l,i):(i=ar(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Fa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Ia,r}return i=e.child,e=i.sibling,r=In(i,{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 Qu(e,t){return t=qs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fi(e,t,n,r){return r!==null&&Mu(r),no(t,e.child,null,n),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zv(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=$l(Error(j(422))),Fi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=qs({mode:"visible",children:r.children},o,0,null),i=ar(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&no(t,e.child,null,s),t.child.memoizedState=Fa(s),t.memoizedState=Ia,i);if(!(t.mode&1))return Fi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(j(419)),r=$l(i,r,void 0),Fi(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ue||l){if(r=be,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,en(e,o),Ct(r,e,o,-1))}return Ju(),r=$l(Error(j(421))),Fi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Jv.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Xe=Mn(o.nextSibling),qe=t,ae=!0,St=null,e!==null&&(rt[ot++]=Kt,rt[ot++]=Xt,rt[ot++]=cr,Kt=e.id,Xt=e.overflow,cr=t),t=Qu(t,r.children),t.flags|=4096,t)}function Cd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ja(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function km(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(_e(e,t,r.children,n),r=ue.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&&Cd(e,n,t);else if(e.tag===19)Cd(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(ne(ue,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&&Cs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Cs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ts(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=In(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=In(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $v(e,t,n){switch(t.tag){case 3:Nm(t),to();break;case 5:Zp(t);break;case 1:We(t.type)&&ys(t);break;case 4:Du(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ne(bs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ue,ue.current&1),t.flags|=128,null):n&t.child.childLanes?Tm(e,t,n):(ne(ue,ue.current&1),e=tn(e,t,n
vendor: 4,453 bytes, line 40
40),e!==null?e.sibling:null);ne(ue,ue.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return km(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ue,ue.current),r)break;return null;case 22:case 23:return t.lanes=0,Em(e,t,n)}return tn(e,t,n)}var Pm,Da,Rm,jm;Pm=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}};Da=function(){};Rm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zn(zt.current);var i=null;switch(n){case"input":o=sa(e,o),r=sa(e,r),i=[];break;case"select":o=de({},o,{value:void 0}),r=de({},r,{value:void 0}),i=[];break;case"textarea":o=ua(e,o),r=ua(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gs)}da(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&oe("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};jm=function(e,t,n,r){n!==r&&(t.flags|=4)};function So(e,t){if(!ae)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 ke(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 Bv(e,t,n){var r=t.pendingProps;switch(Au(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return We(t.type)&&vs(),ke(t),null;case 3:return r=t.stateNode,ro(),ie(Ve),ie(je),$u(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(Qa(St),St=null))),Da(e,t),ke(t),null;case 5:zu(t);var o=Zn(Zo.current);if(n=t.type,e!==null&&t.stateNode!=null)Rm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ke(t),null}if(e=Zn(zt.current),Li(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[It]=t,r[qo]=i,e=(t.mode&1)!==0,n){case"dialog":oe("cancel",r),oe("close",r);break;case"iframe":case"object":case"embed":oe("load",r);break;case"video":case"audio":for(o=0;o<jo.length;o++)oe(jo[o],r);break;case"source":oe("error",r);break;case"img":case"image":case"link":oe("error",r),oe("load",r);break;case"details":oe("toggle",r);break;case"input":_c(r,i),oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},oe("invalid",r);break;case"textarea":Lc(r,i),oe("invalid",r)}da(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),o=["children",""+l]):Bo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&oe("scroll",r)}
vendor: 32,096 bytes, line 40
40switch(n){case"input":Ti(r),Oc(r,i,!0);break;case"textarea":Ti(r),Ic(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=gs)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=op(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[It]=t,e[qo]=r,Pm(e,t,!1,!1),t.stateNode=e;e:{switch(s=fa(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;o<jo.length;o++)oe(jo[o],e);o=r;break;case"source":oe("error",e),o=r;break;case"img":case"image":case"link":oe("error",e),oe("load",e),o=r;break;case"details":oe("toggle",e),o=r;break;case"input":_c(e,r),o=sa(e,r),oe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=de({},r,{value:void 0}),oe("invalid",e);break;case"textarea":Lc(e,r),o=ua(e,r),oe("invalid",e);break;default:o=r}da(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?lp(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ip(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Uo(e,a):typeof a=="number"&&Uo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&oe("scroll",e):a!=null&&gu(e,i,a,s))}switch(n){case"input":Ti(e),Oc(e,r,!1);break;case"textarea":Ti(e),Ic(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Fn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Lr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Lr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=gs)}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 ke(t),null;case 6:if(e&&t.stateNode!=null)jm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Zn(Zo.current),Zn(zt.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[It]=t,(i=r.nodeValue!==n)&&(e=qe,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[It]=t,t.stateNode=r}return ke(t),null;case 13:if(ie(ue),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&Xe!==null&&t.mode&1&&!(t.flags&128))Gp(),to(),t.flags|=98560,i=!1;else if(i=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[It]=t}else to(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else St!==null&&(Qa(St),St=null),i=!0;if(!i)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||ue.current&1?xe===0&&(xe=3):Ju())),t.updateQueue!==null&&(t.flags|=4),ke(t),null);case 4:return ro(),Da(e,t),e===null&&Ko(t.stateNode.containerInfo),ke(t),null;case 10:return Lu(t.type._context),ke(t),null;case 17:return We(t.type)&&vs(),ke(t),null;case 19:if(ie(ue),i=t.memoizedState,i===null)return ke(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)So(i,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Cs(e),s!==null){for(t.flags|=128,So(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ne(ue,ue.current&1|2),t.child}e=e.sibling}i.tail!==null&&me()>io&&(t.flags|=128,r=!0,So(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),So(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ae)return ke(t),null}else 2*me()-i.renderingStartTime>io&&n!==1073741824&&(t.flags|=128,r=!0,So(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Uv(e,t){switch(Au(t),t.tag){case 1:return We(t.type)&&vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ro(),ie(Ve),ie(je),$u(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zu(t),null;case 13:if(ie(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ue),null;case 4:return ro(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return qu(),null;case 24:return null;default:return null}}var Di=!1,Re=!1,Vv=typeof WeakSet=="function"?WeakSet:Set,F=null;function _r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function za(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Nd=!1;function Wv(e,t){if(Sa=ps,e=Lp(),Ru(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,m=e,h=null;t:for(;;){for(var p;m!==n||o!==0&&m.nodeType!==3||(l=s+o),m!==i||r!==0&&m.nodeType!==3||(a=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(p=m.firstChild)!==null;)h=m,m=p;for(;;){if(m===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(p=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ea={focusedElem:e,selectionRange:n},ps=!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 v=w.memoizedProps,x=w.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:vt(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=f}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(j(163))}}catch(S){pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return w=Nd,Nd=!1,w}function Fo(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 i=o.destroy;o.destroy=void 0,i!==void 0&&za(t,n,i)}o=o.next}while(o!==r)}}function Ks(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 $a(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 Am(e){var t=e.alternate;t!==null&&(e.alternate=null,Am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[qo],delete t[Ta],delete t[Tv],delete t[kv])),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 Mm(e){return e.tag===5||e.tag===3||e.tag===4}function Td(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mm(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 Ba(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=gs));else if(r!==4&&(e=e.child,e!==null))for(Ba(e,t,n),e=e.sibling;e!==null;)Ba(e,t,n),e=e.sibling}function Ua(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(Ua(e,t,n),e=e.sibling;e!==null;)Ua(e,t,n),e=e.sibling}var Se=null,bt=!1;function pn(e,t,n){for(n=n.child;n!==null;)_m(e,t,n),n=n.sibling}function _m(e,t,n){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Bs,n)}catch{}switch(n.tag){case 5:Re||_r(n,t);case 6:var r=Se,o=bt;Se=null,pn(e,t,n),Se=r,bt=o,Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?Ol(e.parentNode,n):e.nodeType===1&&Ol(e,n),Qo(e)):Ol(Se,n.stateNode));break;case 4:r=Se,o=bt,Se=n.stateNode.containerInfo,bt=!0,pn(e,t,n),Se=r,bt=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&za(n,t,s),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Re&&(_r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){pe(n,t,l)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,pn(e,t,n),Re=r):pn(e,t,n);break;default:pn(e,t,n)}}function kd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vv),t.forEach(function(r){var o=Zv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Se=l.stateNode,bt=!1;break e;case 3:Se=l.stateNode.containerInfo,bt=!0;break e;case 4:Se=l.stateNode.containerInfo,bt=!0;break e}l=l.return}if(Se===null)throw Error(j(160));_m(i,s,o),Se=null,bt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){pe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Om(t,e),t=t.sibling}function Om(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),At(e),r&4){try{Fo(3,e,e.return),Ks(3,e)}catch(v){pe(e,e.return,v)}try{Fo(5,e,e.return)}catch(v){pe(e,e.return,v)}}break;case 1:ht(t,e),At(e),r&512&&n!==null&&_r(n,n.return);break;case 5:if(ht(t,e),At(e),r&512&&n!==null&&_r(n,n.return),e.flags&32){var o=e.stateNode;try{Uo(o,"")}catch(v){pe(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&np(o,i),fa(l,s);var u=fa(l,i);for(s=0;s<a.length;s+=2){var c=a[s],m=a[s+1];c==="style"?lp(o,m):c==="dangerouslySetInnerHTML"?ip(o,m):c==="children"?Uo(o,m):gu(o,c,m,u)}switch(l){case"input":la(o,i);break;case"textarea":rp(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Lr(o,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?Lr(o,!!i.multiple,i.defaultValue,!0):Lr(o,!!i.multiple,i.multiple?[]:"",!1))}o[qo]=i}catch(v){pe(e,e.return,v)}}break;case 6:if(ht(t,e),At(e),r&4){if(e.stateNode===null)throw Error(j(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){pe(e,e.return,v)}}break;case 3:if(ht(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qo(t.containerInfo)}catch(v){pe(e,e.return,v)}break;case 4:ht(t,e),At(e);break;case 13:ht(t,e),At(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ku=me())),r&4&&kd(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,ht(t,e),Re=u):ht(t,e),At(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(m=F=c;F!==null;){switch(h=F,p=h.child,h.tag){case 0:case 11:case 14:case 15:Fo(4,h,h.return);break;case 1:_r(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){pe(r,n,v)}}break;case 5:_r(h,h.return);break;case 22:if(h.memoizedState!==null){Rd(m);continue}}p!==null?(p.return=h,F=p):Rd(m)}c=c.sibling}e:for(c=null,m=e;;){if(m.tag===5){if(c===null){c=m;try{o=m.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=m.stateNode,a=m.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=sp("display",s))}catch(v){pe(e,e.return,v)}}}else if(m.tag===6){if(c===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(v){pe(e,e.return,v)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;c===m&&(c=null),m=m.return}c===m&&(c=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:ht(t,e),At(e),r&4&&kd(e);break;case 21:break;default:ht(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Mm(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Uo(o,""),r.flags&=-33);var i=Td(e);Ua(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Td(e);Ba(e,l,s);break;default:throw Error(j(161))}}catch(a){pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hv(e,t,n){F=e,Lm(e)}function Lm(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Di;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Re;l=Di;var u=Re;if(Di=s,(Re=a)&&!u)for(F=o;F!==null;)s=F,a=s.child,s.tag===22&&s.memoizedState!==null?jd(o):a!==null?(a.return=s,F=a):jd(o);for(;i!==null;)F=i,Lm(i),i=i.sibling;F=o,Di=l,Re=u}Pd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,F=i):Pd(e)}}function Pd(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:Re||Ks(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&fd(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fd(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.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 m=c.dehydrated;m!==null&&Qo(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Re||t.flags&512&&$a(t)}catch(h){pe(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Rd(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 jd(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ks(4,t)}catch(a){pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){pe(t,o,a)}}var i=t.return;try{$a(t)}catch(a){pe(t,i,a)}break;case 5:var s=t.return;try{$a(t)}catch(a){pe(t,s,a)}}}catch(a){pe(t,t.return,a)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var Qv=Math.ceil,ks=on.ReactCurrentDispatcher,Yu=on.ReactCurrentOwner,st=on.ReactCurrentBatchConfig,q=0,be=null,he=null,Ee=0,Ge=0,Or=Wn(0),xe=0,ri=null,fr=0,Xs=0,Gu=0,Do=null,Be=null,Ku=0,io=1/0,Qt=null,Ps=!1,Va=null,On=null,zi=!1,kn=null,Rs=0,zo=0,Wa=null,ns=-1,rs=0;function Le(){return q&6?me():ns!==-1?ns:ns=me()}function Ln(e){return e.mode&1?q&2&&Ee!==0?Ee&-Ee:Rv.transition!==null?(rs===0&&(rs=xp()),rs):(e=ee,e!==0||(e=window.event,e=e===void 0?16:Tp(e.type)),e):1}function Ct(e,t,n,r){if(50<zo)throw zo=0,Wa=null,Error(j(185));di(e,n,r),(!(q&2)||e!==be)&&(e===be&&(!(q&2)&&(Xs|=n),xe===4&&wn(e,Ee)),He(e,r),n===1&&q===0&&!(t.mode&1)&&(io=me()+500,Qs&&Hn()))}function He(e,t){var n=e.callbackNode;Rg(e,t);var r=fs(e,e===be?Ee:0);if(r===0)n!==null&&zc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zc(n),t===1)e.tag===0?Pv(Ad.bind(null,e)):Hp(Ad.bind(null,e)),Cv(function(){!(q&6)&&Hn()}),n=null;else{switch(wp(r)){case 1:n=bu;break;case 4:n=vp;break;case 16:n=ds;break;case 536870912:n=yp;break;default:n=ds}n=Vm(n,Im.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Im(e,t){if(ns=-1,rs=0,q&6)throw Error(j(327));var n=e.callbackNode;if($r()&&e.callbackNode!==n)return null;var r=fs(e,e===be?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=js(e,r);else{t=r;var o=q;q|=2;var i=Dm();(be!==e||Ee!==t)&&(Qt=null,io=me()+500,lr(e,t));do try{Kv();break}catch(l){Fm(e,l)}while(!0);Ou(),ks.current=i,q=o,he!==null?t=0:(be=null,Ee=0,t=xe)}if(t!==0){if(t===2&&(o=va(e),o!==0&&(r=o,t=Ha(e,o))),t===1)throw n=ri,lr(e,0),wn(e,r),He(e,me()),n;if(t===6)wn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Yv(o)&&(t=js(e,r),t===2&&(i=va(e),i!==0&&(r=i,t=Ha(e,i))),t===1))throw n=ri,lr(e,0),wn(e,r),He(e,me()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:Xn(e,Be,Qt);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=Ku+500-me(),10<t)){if(fs(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Na(Xn.bind(null,e,Be,Qt),t);break}Xn(e,Be,Qt);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Et(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qv(r/1960))-r,10<r){e.timeoutHandle=Na(Xn.bind(null,e,Be,Qt),r);break}Xn(e,Be,Qt);break;case 5:Xn(e,Be,Qt);break;default:throw Error(j(329))}}}return He(e,me()),e.callbackNode===n?Im.bind(null,e):null}function Ha(e,t){var n=Do;return e.current.memoizedState.isDehydrated&&(lr(e,t).flags|=256),e=js(e,t),e!==2&&(t=Be,Be=n,t!==null&&Qa(t)),e}function Qa(e){Be===null?Be=e:Be.push.apply(Be,e)}function Yv(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],i=o.getSnapshot;o=o.value;try{if(!Nt(i(),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 wn(e,t){for(t&=~Gu,t&=~Xs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Ad(e){if(q&6)throw Error(j(327));$r();var t=fs(e,0);if(!(t&1))return He(e,me()),null;var n=js(e,t);if(e.tag!==0&&n===2){var r=va(e);r!==0&&(t=r,n=Ha(e,r))}if(n===1)throw n=ri,lr(e,0),wn(e,t),He(e,me()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xn(e,Be,Qt),He(e,me()),null}function Xu(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(io=me()+500,Qs&&Hn())}}function pr(e){kn!==null&&kn.tag===0&&!(q&6)&&$r();var t=q;q|=1;var n=st.transition,r=ee;try{if(st.transition=null,ee=1,e)return e()}finally{ee=r,st.transition=n,q=t,!(q&6)&&Hn()}}function qu(){Ge=Or.current,ie(Or)}function lr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ev(n)),he!==null)for(n=he.return;n!==null;){var r=n;switch(Au(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vs();break;case 3:ro(),ie(Ve),ie(je),$u();break;case 5:zu(r);break;case 4:ro();break;case 13:ie(ue);break;case 19:ie(ue);break;case 10:Lu(r.type._context);break;case 22:case 23:qu()}n=n.return}if(be=e,he=e=In(e.current,null),Ee=Ge=t,xe=0,ri=null,Gu=Xs=fr=0,Be=Do=null,Jn!==null){for(t=0;t<Jn.length;t++)if(n=Jn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Jn=null}return e}function Fm(e,t){do{var n=he;try{if(Ou(),Zi.current=Ts,Ns){for(var r=ce.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ns=!1}if(dr=0,we=ve=ce=null,Io=!1,ei=0,Yu.current=null,n===null||n.return===null){xe=1,ri=t,he=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=Ee,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,m=c.tag;if(!(c.mode&1)&&(m===0||m===11||m===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=yd(s);if(p!==null){p.flags&=-257,xd(p,s,l,i,t),p.mode&1&&vd(i,u,t),t=p,a=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(a),t.updateQueue=v}else w.add(a);break e}else{if(!(t&1)){vd(i,u,t),Ju();break e}a=Error(j(426))}}else if(ae&&l.mode&1){var x=yd(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),xd(x,s,l,i,t),Mu(oo(a,l));break e}}i=a=oo(a,l),xe!==4&&(xe=2),Do===null?Do=[i]:Do.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=wm(i,a,t);dd(i,g);break e;case 1:l=a;var f=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(On===null||!On.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=bm(i,l,t);dd(i,S);break e}}i=i.return}while(i!==null)}$m(n)}catch(E){t=E,he===n&&n!==null&&(he=n=n.return);continue}break}while(!0)}function Dm(){var e=ks.current;return ks.current=Ts,e===null?Ts:e}function Ju(){(xe===0||xe===3||xe===2)&&(xe=4),be===null||!(fr&268435455)&&!(Xs&268435455)||wn(be,Ee)}function js(e,t){var n=q;q|=2;var r=Dm();(be!==e||Ee!==t)&&(Qt=null,lr(e,t));do try{Gv();break}catch(o){Fm(e,o)}while(!0);if(Ou(),q=n,ks.current=r,he!==null)throw Error(j(261));return be=null,Ee=0,xe}function Gv(){for(;he!==null;)zm(he)}function Kv(){for(;he!==null&&!wg();)zm(he)}function zm(e){var t=Um(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?$m(e):he=t,Yu.current=null}function $m(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Uv(n,t),n!==null){n.flags&=32767,he=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,he=null;return}}else if(n=Bv(n,t,Ge),n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);xe===0&&(xe=5)}function Xn(e,t,n){var r=ee,o=st.transition;try{st.transition=null,ee=1,Xv(e,t,n,r)}finally{st.transition=o,ee=r}return null}function Xv(e,t,n,r){do $r();while(kn!==null);if(q&6)throw Error(j(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(j(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(jg(e,i),e===be&&(he=be=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zi||(zi=!0,Vm(ds,function(){return $r(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=st.transition,st.transition=null;var s=ee;ee=1;var l=q;q|=4,Yu.current=null,Wv(e,n),Om(n,e),gv(Ea),ps=!!Sa,Ea=Sa=null,e.current=n,Hv(n),bg(),q=l,ee=s,st.transition=i}else e.current=n;if(zi&&(zi=!1,kn=e,Rs=o),i=e.pendingLanes,i===0&&(On=null),Cg(n.stateNode),He(e,me()),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(Ps)throw Ps=!1,e=Va,Va=null,e;return Rs&1&&e.tag!==0&&$r(),i=e.pendingLanes,i&1?e===Wa?zo++:(zo=0,Wa=e):zo=0,Hn(),null}function $r(){if(kn!==null){var e=wp(Rs),t=st.transition,n=ee;try{if(st.transition=null,ee=16>e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,Rs=0,q&6)throw Error(j(331));var o=q;for(q|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Fo(8,c,i)}var m=c.child;if(m!==null)m.return=c,F=m;else for(;F!==null;){c=F;var h=c.sibling,p=c.return;if(Am(c),c===u){F=null;break}if(h!==null){h.return=p,F=h;break}F=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}F=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,F=s;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Fo(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,F=g;break e}F=i.return}}var f=e.current;for(F=f;F!==null;){s=F;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,F=y;else e:for(s=f;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ks(9,l)}}catch(E){pe(l,l.return,E)}if(l===s){F=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,F=S;break e}F=l.return}}if(q=o,Hn(),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Bs,e)}catch{}r=!0}return r}finally{ee=n,st.transition=t}}return!1}function Md(e,t,n){t=oo(n,t),t=wm(e,t,1),e=_n(e,t,1),t=Le(),e!==null&&(di(e,1,t),He(e,t))}function pe(e,t,n){if(e.tag===3)Md(e,e,n);else for(;t!==null;){if(t.tag===3){Md(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(On===null||!On.has(r))){e=oo(n,e),e=bm(t,e,1),t=_n(t,e,1),e=Le(),t!==null&&(di(t,1,e),He(t,e));break}}t=t.return}}function qv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,be===e&&(Ee&n)===n&&(xe===4||xe===3&&(Ee&130023424)===Ee&&500>me()-Ku?lr(e,0):Gu|=n),He(e,t)}function Bm(e,t){t===0&&(e.mode&1?(t=Ri,Ri<<=1,!(Ri&130023424)&&(Ri=4194304)):t=1);var n=Le();e=en(e,t),e!==null&&(di(e,t,n),He(e,n))}function Jv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bm(e,n)}function Zv(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(j(314))}r!==null&&r.delete(t),Bm(e,n)}var Um;Um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,$v(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ae&&t.flags&1048576&&Qp(t,ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ts(e,t),e=t.pendingProps;var o=eo(t,je.current);zr(t,n),o=Uu(null,t,r,e,o,n);var i=Vu();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,We(r)?(i=!0,ys(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Fu(t),o.updater=Gs,t.stateNode=o,o._reactInternals=t,Ma(t,r,e,n),t=La(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&ju(t),_e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ty(r),e=vt(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Sd(null,t,r,e,n);break e;case 11:t=wd(null,t,r,e,n);break e;case 14:t=bd(null,t,r,vt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Oa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Sd(e,t,r,o,n);case 3:e:{if(Nm(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jp(e,t),Es(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=oo(Error(j(423)),t),t=Ed(e,t,r,n,o);break e}else if(r!==o){o=oo(Error(j(424)),t),t=Ed(e,t,r,n,o);break e}else for(Xe=Mn(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,St=null,n=Xp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(to(),r===o){t=tn(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return Zp(t),e===null&&Ra(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ca(r,o)?s=null:i!==null&&Ca(r,i)&&(t.flags|=32),Cm(e,t),_e(e,t,s,n),t.child;case 6:return e===null&&Ra(t),null;case 13:return Tm(e,t,n);case 4:return Du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),wd(e,t,r,o,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(bs,r._currentValue),r._currentValue=s,i!==null)if(Nt(i.value,s)){if(i.children===o.children&&!Ve.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=qt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ja(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ja(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}_e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zr(t,n),o=lt(o),r=r(o),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,o=vt(r,t.pendingProps),o=vt(r.type,o),bd(e,t,r,o,n);case 15:return Sm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),ts(e,t),t.tag=1,We(r)?(e=!0,ys(t)):e=!1,zr(t,n),xm(t,r,o),Ma(t,r,o,n),La(null,t,r,!0,e,n);case 19:return km(e,t,n);case 22:return Em(e,t,n)}throw Error(j(156,t.tag))};function Vm(e,t){return gp(e,t)}function ey(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 it(e,t,n,r){return new ey(e,t,n,r)}function Zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ty(e){if(typeof e=="function")return Zu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yu)return 11;if(e===xu)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=it(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.deleti
vendor: 4,548 bytes, line 40
40ons=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 os(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Zu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cr:return ar(n.children,o,i,t);case vu:s=8,o|=8;break;case na:return e=it(12,n,t,o|2),e.elementType=na,e.lanes=i,e;case ra:return e=it(13,n,t,o),e.elementType=ra,e.lanes=i,e;case oa:return e=it(19,n,t,o),e.elementType=oa,e.lanes=i,e;case Zf:return qs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qf:s=10;break e;case Jf:s=9;break e;case yu:s=11;break e;case xu:s=14;break e;case vn:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=it(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ar(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function qs(e,t,n,r){return e=it(22,e,r,t),e.elementType=Zf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Vl(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ny(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=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ec(e,t,n,r,o,i,s,l,a){return e=new ny(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=it(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fu(i),e}function ry(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Er,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Wm(e){if(!e)return Dn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(We(n))return Wp(e,n,t)}return t}function Hm(e,t,n,r,o,i,s,l,a){return e=ec(n,r,!0,e,o,i,s,l,a),e.context=Wm(null),n=e.current,r=Le(),o=Ln(n),i=qt(r,o),i.callback=t??null,_n(n,i,o),e.current.lanes=o,di(e,o,r),He(e,r),e}function Js(e,t,n,r){var o=t.current,i=Le(),s=Ln(o);return n=Wm(n),t.context===null?t.context=n:t.pendingContext=n,t=qt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=_n(o,t,s),e!==null&&(Ct(e,o,s,i),Ji(e,o,s)),s}function As(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 _d(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tc(e,t){_d(e,t),(e=e.alternate)&&_d(e,t)}function oy(){return null}var Qm=typeof reportError=="function"?reportError:function(e){console.error(e)};function nc(e){this._internalRoot=e}Zs.prototype.render=nc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Js(e,t,null,null)};Zs.prototype.unmount=nc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){Js(null,e,null,null)}),t[Zt]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ep();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xn.length&&t!==0&&t<xn[n].priority;n++);xn.splice(n,0,e),n===0&&Np(e)}};function rc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function el(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Od(){}function iy(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=As(s);i.call(u)}}var s=Hm(t,r,e,0,null,!1,!1,"",Od);return e._reactRootContainer=s,e[Zt]=s.current,Ko(e.nodeType===8?e.parentNode:e),pr(),s}for(;
vendor: 4,655 bytes, line 40
40o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=As(a);l.call(u)}}var a=ec(e,0,!1,null,null,!1,!1,"",Od);return e._reactRootContainer=a,e[Zt]=a.current,Ko(e.nodeType===8?e.parentNode:e),pr(function(){Js(t,a,n,r)}),a}function tl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=As(s);l.call(a)}}Js(t,s,e,o)}else s=iy(n,t,e,o,r);return As(s)}bp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ro(t.pendingLanes);n!==0&&(Su(t,n|1),He(t,me()),!(q&6)&&(io=me()+500,Hn()))}break;case 13:pr(function(){var r=en(e,1);if(r!==null){var o=Le();Ct(r,e,1,o)}}),tc(e,1)}};Eu=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=Le();Ct(t,e,134217728,n)}tc(e,134217728)}};Sp=function(e){if(e.tag===13){var t=Ln(e),n=en(e,t);if(n!==null){var r=Le();Ct(n,e,t,r)}tc(e,t)}};Ep=function(){return ee};Cp=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};ma=function(e,t,n){switch(t){case"input":if(la(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=Hs(r);if(!o)throw Error(j(90));tp(r),la(r,o)}}}break;case"textarea":rp(e,n);break;case"select":t=n.value,t!=null&&Lr(e,!!n.multiple,t,!1)}};cp=Xu;dp=pr;var sy={usingClientEntryPoint:!1,Events:[pi,Pr,Hs,ap,up,Xu]},Eo={findFiberByHostInstance:qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ly={bundleType:Eo.bundleType,version:Eo.version,rendererPackageName:Eo.rendererPackageName,rendererConfig:Eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mp(e),e===null?null:e.stateNode},findFiberByHostInstance:Eo.findFiberByHostInstance||oy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$i.isDisabled&&$i.supportsFiber)try{Bs=$i.inject(ly),Dt=$i}catch{}}et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sy;et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rc(t))throw Error(j(200));return ry(e,t,null,n)};et.createRoot=function(e,t){if(!rc(e))throw Error(j(299));var n=!1,r="",o=Qm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ec(e,1,!1,null,null,n,!1,r,o),e[Zt]=t.current,Ko(e.nodeType===8?e.parentNode:e),new nc(t)};et.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(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=mp(t),e=e===null?null:e.stateNode,e};et.flushSync=function(e){return pr(e)};et.hydrate=function(e,t,n){if(!el(t))throw Error(j(200));return tl(null,e,t,!0,n)};et.hydrateRoot=function(e,t,n){if(!rc(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Qm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Hm(t,null,e,1,n??null,o,!1,i,s),e[Zt]=t.current,Ko(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 Zs(t)};et.render=function(e,t,n){if(!el(t))throw Error(j(200));return tl(null,e,t,!1,n)};et.unmountComponentAtNode=function(e){if(!el(e))throw Error(j(40));return e._reactRootContainer?(pr(function(){tl(null,null,e,!1,function(){e._reactRootContainer=null,e[Zt]=null})}),!0):!1};et.unstable_batchedUpdates=Xu;et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return tl(e,t,n,!1,r)};et.version="18.3.1-next-f1338f8080-20240426";function Ym(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ym)}catch(e){console.error(e)}}Ym(),Yf.exports=et;var hi=Yf.exports;const Gm=Of(hi);var Km,Ld=hi;
vendor: 18,361 bytes, line 40
40Km=Ld.createRoot,Ld.hydrateRoot;var nl=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(){}},rl=typeof window>"u"||"Deno"in globalThis;function yt(){}function ay(e,t){return typeof e=="function"?e(t):e}function uy(e){return typeof e=="number"&&e>=0&&e!==1/0}function cy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ya(e,t){return typeof e=="function"?e(t):e}function dy(e,t){return typeof e=="function"?e(t):e}function Id(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==oc(s,t.options))return!1}else if(!ii(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function Fd(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(oi(t.options.mutationKey)!==oi(i))return!1}else if(!ii(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function oc(e,t){return((t==null?void 0:t.queryKeyHashFn)||oi)(e)}function oi(e){return JSON.stringify(e,(t,n)=>Ga(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ii(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ii(e[n],t[n])):!1}function Xm(e,t){if(e===t)return e;const n=Dd(e)&&Dd(t);if(n||Ga(e)&&Ga(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c<s;c++){const m=n?c:i[c];(!n&&a.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(l[m]=void 0,u++):(l[m]=Xm(e[m],t[m]),l[m]===e[m]&&e[m]!==void 0&&u++)}return o===s&&u===o?e:l}return t}function Dd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ga(e){if(!zd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!zd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function zd(e){return Object.prototype.toString.call(e)==="[object Object]"}function fy(e){return new Promise(t=>{setTimeout(t,e)})}function py(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Xm(e,t):t}function my(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ic=Symbol();function qm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ic?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var tr,bn,Hr,Tf,gy=(Tf=class extends nl{constructor(){super();J(this,tr);J(this,bn);J(this,Hr);Q(this,Hr,t=>{if(!rl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,bn)||this.setEventListener(T(this,Hr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,bn))==null||t.call(this),Q(this,bn,void 0))}setEventListener(t){var n;Q(this,Hr,t),(n=T(this,bn))==null||n.call(this),Q(this,bn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,tr)!==t&&(Q(this,tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,tr)=="boolean"?T(this,tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},tr=new WeakMap,bn=new WeakMap,Hr=new WeakMap,Tf),Jm=new gy,Qr,Sn,Yr,kf,vy=(kf=class extends nl{constructor(){super();J(this,Qr,!0);J(this,Sn);J(this,Yr);Q(this,Yr,t=>{if(!rl&&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(){T(this,Sn)||this.setEventListener(T(this,Yr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Sn))==null||t.call(this),Q(this,Sn,void 0))}setEventListener(t){var n;Q(this,Yr,t),(n=T(this,Sn))==null||n.call(this),Q(this,Sn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Qr)!==t&&(Q(this,Qr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Qr)}},Qr=new WeakMap,Sn=new WeakMap,Yr=new WeakMap,kf),Ms=new vy;function yy(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});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 xy(e){return Math.min(1e3*2**e,3e4)}function Zm(e){return(e??"online")==="online"?Ms.isOnline():!0}var eh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wl(e){return e instanceof eh}function th(e){let t=!1,n=0,r=!1,o;const i=yy(),s=v=>{var x;r||(h(new eh(v)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Jm.isFocused()&&(e.networkMode==="always"||Ms.isOnline())&&e.canRun(),c=()=>Zm(e.networkMode)&&e.canRun(),m=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),o==null||o(),i.resolve(v))},h=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),o==null||o(),i.reject(v))},p=()=>new Promise(v=>{var x;o=g=>{(r||u())&&v(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(m).catch(g=>{var C;if(r)return;const f=e.retry??(rl?0:3),y=e.retryDelay??xy,S=typeof y=="function"?y(n,g):y,E=f===!0||typeof f=="number"&&n<f||typeof f=="function"&&f(n,g);if(t||!E){h(g);return}n++,(C=e.onFail)==null||C.call(e,n,g),fy(S).then(()=>u()?void 0:p()).then(()=>{t?h(g):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?w():p().then(w),i)}}var wy=e=>setTimeout(e,0);function by(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=wy;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Oe=by(),nr,Pf,nh=(Pf=class{constructor(){J(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uy(this.gcTime)&&Q(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rl?1/0:5*60*1e3))}clearGcTimeout(){T(this,nr)&&(clearTimeout(T(this,nr)),Q(this,nr,void 0))}},nr=new WeakMap,Pf),Gr,rr,nt,or,Pe,ai,ir,xt,Ht,Rf,Sy=(Rf=class extends nh{constructor(t){super();J(this,xt);J(this,Gr);J(this,rr);J(this,nt);J(this,or);J(this,Pe);J(this,ai);J(this,ir);Q(this,ir,!1),Q(this,ai,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,or,t.client),Q(this,nt,T(this,or).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,Gr,Cy(this.options)),this.state=t.state??T(this,Gr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Pe))==null?void 0:t.promise}setOptions(t){this.options={...T(this,ai),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,nt).remove(this)}setData(t,n){const r=py(this.state.data,t,this.options);return Ne(this,xt,Ht).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ne(this,xt,Ht).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,Pe))==null?void 0:r.promise;return(o=T(this,Pe))==null||o.cancel(t),n?n.then(yt).catch(yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Gr))}isActive(){return this.observers.some(t=>dy(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ic||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ya(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:!cy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Pe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Pe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Pe)&&(T(this,ir)?T(this,Pe).cancel({revert:!0}):T(this,Pe).cancelRetry()),this.scheduleGc()),T(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,xt,Ht).call(this,{type:"invalidate"})}fetch(t,n){var u,c,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Pe))return T(this,Pe).continueRetry(),T(this,Pe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Q(this,ir,!0),r.signal)})},i=()=>{const h=qm(this.options,n),w=(()=>{const v={client:T(this,or),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return Q(this,ir,!1),this.options.persister?this.options.persister(h,w,this):h(w)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,or),state:this.state,fetchFn:i};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),Q(this,rr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Ne(this,xt,Ht).call(this,{type:"fetch",meta:(m=l.fetchOptions)==null?void 0:m.meta});const a=h=>{var p,w,v,x;Wl(h)&&h.silent||Ne(this,xt,Ht).call(this,{type:"error",error:h}),Wl(h)||((w=(p=T(this,nt).config).onError)==null||w.call(p,h,this),(x=(v=T(this,nt).config).onSettled)==null||x.call(v,this.state.data,h,this)),this.scheduleGc()};return Q(this,Pe,th({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,w,v,x;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){a(g);return}(w=(p=T(this,nt).config).onSuccess)==null||w.call(p,h,this),(x=(v=T(this,nt).config).onSettled)==null||x.call(v,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,p)=>{Ne(this,xt,Ht).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{Ne(this,xt,Ht).call(this,{type:"pause"})},onContinue:()=>{Ne(this,xt,Ht).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),T(this,Pe).start()}},Gr=new WeakMap,rr=new WeakMap,nt=new WeakMap,or=new WeakMap,Pe=new WeakMap,ai=new WeakMap,ir=new WeakMap,xt=new WeakSet,Ht=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,...Ey(r.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,rr,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 Wl(o)&&o.revert&&T(this,rr)?{...T(this,rr),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),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,nt).notify({query:this,type:"updated",action:t})})},Rf);function Ey(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Cy(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 _t,jf,Ny=(jf=class extends nl{constructor(t={}){super();J(this,_t);this.config=t,Q(this,_t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??oc(o,n);let s=this.get(i);return s||(s=new Sy({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){T(this,_t).has(t.queryHash)||(T(this,_t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,_t).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,_t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,_t).get(t)}getAll(){return[...T(this,_t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Id(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Id(t,r)):n}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_t=new WeakMap,jf),Ot,Ae,sr,Lt,gn,Af,Ty=(Af=class extends nh{constructor(t){super();J(this,Lt);J(this,Ot);J(this,Ae);J(this,sr);this.mutationId=t.mutationId,Q(this,Ae,t.mutationCache),Q(this,Ot,[]),this.state=t.state||ky(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Ot).includes(t)||(T(this,Ot).push(t),this.clearGcTimeout(),T(this,Ae).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Ot,T(this,Ot).filter(n=>n!==t)),this.scheduleGc(),T(this,Ae).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Ot).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ae).remove(this))}continue(){var t;return((t=T(this,sr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,m,h,p,w,v,x,g,f,y,S,E,C,N,R;const n=()=>{Ne(this,Lt,gn).call(this,{type:"continue"})};Q(this,sr,th({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,M)=>{Ne(this,Lt,gn).call(this,{type:"failed",failureCount:O,error:M})},onPause:()=>{Ne(this,Lt,gn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ae).canRun(this)}));const r=this.state.status==="pending",o=!T(this,sr).canStart();try{if(r)n();else{Ne(this,Lt,gn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=T(this,Ae).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));M!==this.state.context&&Ne(this,Lt,gn).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const O=await T(this,sr).start();return await((c=(u=T(this,Ae).config).onSuccess)==null?void 0:c.call(u,O,t,this.state.context,this)),await((h=(m=this.options).onSuccess)==null?void 0:h.call(m,O,t,this.state.context)),await((w=(p=T(this,Ae).config).onSettled)==null?void 0:w.call(p,O,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,O,null,t,this.state.context)),Ne(this,Lt,gn).call(this,{type:"success",data:O}),O}catch(O){try{throw await((f=(g=T(this,Ae).config).onError)==null?void 0:f.call(g,O,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,O,t,this.state.context)),await((C=(E=T(this,Ae).config).onSettled)==null?void 0:C.call(E,void 0,O,this.state.variables,this.state.context,this)),await((R=(N=this.options).onSettled)==null?void 0:R.call(N,void 0,O,t,this.state.context)),O}finally{Ne(this,Lt,gn).call(this,{type:"error",error:O})}}finally{T(this,Ae).runNext(this)}}},Ot=new WeakMap,Ae=new WeakMap,sr=new WeakMap,Lt=new WeakSet,gn=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),Oe.batch(()=>{T(this,Ot).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ae).notify({mutation:this,type:"updated",action:t})})},Af);function ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gt,wt,ui,Mf,Py=(Mf=class extends nl{constructor(t={}){super();
40J(this,Gt);J(this,wt);J(this,ui);this.config=t,Q(this,Gt,new Set),Q(this,wt,new Map),Q(this,ui,0)}build(t,n,r){const o=new Ty({mutationCache:this,mutationId:++Ei(this,ui)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,Gt).add(t);const n=Bi(t);if(typeof n=="string"){const r=T(this,wt).get(n);r?r.push(t):T(this,wt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Gt).delete(t)){const n=Bi(t);if(typeof n=="string"){const r=T(this,wt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,wt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Bi(t);if(typeof n=="string"){const r=T(this,wt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Bi(t);if(typeof n=="string"){const o=(r=T(this,wt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Oe.batch(()=>{T(this,Gt).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Gt).clear(),T(this,wt).clear()})}getAll(){return Array.from(T(this,Gt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fd(n,r))}findAll(t={}){return this.getAll().filter(n=>Fd(t,n))}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(yt))))}},Gt=new WeakMap,wt=new WeakMap,ui=new WeakMap,Mf);function Bi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function $d(e){return{onFetch:(t,n)=>{var c,m,h,p,w;const r=t.options,o=(h=(m=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:m.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},g=qm(t.options,t.fetchOptions),f=async(y,S,E)=>{if(v)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const N=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return x(B),B})(),R=await g(N),{maxPages:O}=t.options,M=E?hy:my;return{pages:M(y.pages,R,O),pageParams:M(y.pageParams,S,O)}};if(o&&i.length){const y=o==="backward",S=y?Ry:Bd,E={pages:i,pageParams:s},C=S(r,E);l=await f(E,C,y)}else{const y=e??i.length;do{const S=a===0?s[0]??r.initialPageParam:Bd(r,l);if(a>0&&S==null)break;l=await f(l,S),a++}while(a<y)}return l};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Bd(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 Ry(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 fe,En,Cn,Kr,Xr,Nn,qr,Jr,_f,jy=(_f=class{constructor(e={}){J(this,fe);J(this,En);J(this,Cn);J(this,Kr);J(this,Xr);J(this,Nn);J(this,qr);J(this,Jr);Q(this,fe,e.queryCache||new Ny),Q(this,En,e.mutationCache||new Py),Q(this,Cn,e.defaultOptions||{}),Q(this,Kr,new Map),Q(this,Xr,new Map),Q(this,Nn,0)}mount(){Ei(this,Nn)._++,T(this,Nn)===1&&(Q(this,qr,Jm.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,fe).onFocus())})),Q(this,Jr,Ms.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,fe).onOnline())})))}unmount(){var e,t;Ei(this,Nn)._--,T(this,Nn)===0&&((e=T(this,qr))==null||e.call(this),Q(this,qr,void 0),(t=T(this,Jr))==null||t.call(this),Q(this,Jr,void 0))}isFetching(e){return T(this,fe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,En).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,fe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,fe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ya(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,fe).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=T(this,fe).get(r.queryHash),i=o==null?void 0:o.state.data,s=ay(t,i);if(s!==void 0)return T(this,fe).build(this,r).setData(s,{...n,manual:!0})}
40setQueriesData(e,t,n){return Oe.batch(()=>T(this,fe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,fe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,fe);Oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,fe);return Oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Oe.batch(()=>T(this,fe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(yt).catch(yt)}invalidateQueries(e,t={}){return Oe.batch(()=>(T(this,fe).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=Oe.batch(()=>T(this,fe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(yt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,fe).build(this,t);return n.isStaleByTime(Ya(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yt).catch(yt)}fetchInfiniteQuery(e){return e.behavior=$d(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yt).catch(yt)}ensureInfiniteQueryData(e){return e.behavior=$d(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ms.isOnline()?T(this,En).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,fe)}getMutationCache(){return T(this,En)}getDefaultOptions(){return T(this,Cn)}setDefaultOptions(e){Q(this,Cn,e)}setQueryDefaults(e,t){T(this,Kr).set(oi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Kr).values()],n={};return t.forEach(r=>{ii(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Xr).set(oi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Xr).values()],n={};return t.forEach(r=>{ii(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Cn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=oc(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===ic&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Cn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,fe).clear(),T(this,En).clear()}},fe=new WeakMap,En=new WeakMap,Cn=new WeakMap,Kr=new WeakMap,Xr=new WeakMap,Nn=new WeakMap,qr=new WeakMap,Jr=new WeakMap,_f),Ay=b.createContext(void 0),My=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Ay.Provider,{value:e,children:t}));/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(this,arguments)}var Pn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Pn||(Pn={}));const Ud="popstate";function _y(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:l}=r.location;return Ka("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:oh(o)}return Ly(t,n,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Oy(){return Math.random().toString(36).substr(2,8)}function Vd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ka(e,t,n,r){return n===void 0&&(n=null),_s({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ol(t):t,{state:n,key:t&&t.key||r||Oy()})}function oh(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ol(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ly(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=Pn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(_s({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function m(){l=Pn.Pop;let x=c(),g=x==null?null:x-u;u=x,a&&a({action:l,location:v.location,delta:g})}function h(x,g){l=Pn.Push;let f=Ka(v.location,x,g);u=c()+1;let y=Vd(f,u),S=v.createHref(f);
vendor: 3,348 bytes, line 49
49try{s.pushState(y,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(S)}i&&a&&a({action:l,location:v.location,delta:1})}function p(x,g){l=Pn.Replace;let f=Ka(v.location,x,g);u=c();let y=Vd(f,u),S=v.createHref(f);s.replaceState(y,"",S),i&&a&&a({action:l,location:v.location,delta:0})}function w(x){let g=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof x=="string"?x:oh(x);return f=f.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,g)}let v={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Ud,m),a=x,()=>{o.removeEventListener(Ud,m),a=null}},createHref(x){return t(o,x)},createURL:w,encodeLocation(x){let g=w(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(x){return s.go(x)}};return v}var Wd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wd||(Wd={}));function Iy(e,t,n){return n===void 0&&(n="/"),Fy(e,t,n,!1)}function Fy(e,t,n,r){let o=typeof t=="string"?ol(t):t,i=lh(o.pathname||"/",n);if(i==null)return null;let s=ih(e);Dy(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Ky(i);l=Yy(s[a],u,r)}return l}function ih(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,l)=>{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(Qe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Br([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(Qe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ih(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Hy(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of sh(i.path))o(i,s,a)}),t}function sh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=sh(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Dy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zy=/^:[\w-]+$/,$y=3,By=2,Uy=1,Vy=10,Wy=-2,Hd=e=>e==="*";function Hy(e,t){let n=e.split("/"),r=n.length;return n.some(Hd)&&(r+=Wy),t&&(r+=By),n.filter(o=>!Hd(o)).reduce((o,i)=>o+(zy.test(i)?$y:i===""?Uy:Vy),r)}function Qy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Yy(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",m=Qd({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},c),h=a.route;if(!m&&u&&n&&!r[r.length-1].route.index&&(m=Qd({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!m)return null;
vendor: 4,131 bytes, lines 49-58
49Object.assign(o,m.params),s.push({params:o,pathname:Br([i,m.pathname]),pathnameBase:Xy(Br([i,m.pathnameBase])),route:h}),m.pathnameBase!=="/"&&(i=Br([i,m.pathnameBase]))}return s}function Qd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gy(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,m)=>{let{paramName:h,isOptional:p}=c;if(h==="*"){let v=l[m]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=l[m];return p&&!w?u[h]=void 0:u[h]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function Gy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rh(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Ky(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rh(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Br=e=>e.join("/").replace(/\/\/+/g,"/"),Xy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function qy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ah=["post","put","patch","delete"];new Set(ah);const Jy=["get",...ah];new Set(Jy);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Os.apply(this,arguments)}const Zy=b.createContext(null),ex=b.createContext(null),uh=b.createContext(null),il=b.createContext(null),sl=b.createContext({outlet:null,matches:[],isDataRoute:!1}),ch=b.createContext(null);function sc(){return b.useContext(il)!=null}function dh(){return sc()||Qe(!1),b.useContext(il).location}function tx(e,t){return nx(e,t)}function nx(e,t,n,r){sc()||Qe(!1);let{navigator:o}=b.useContext(uh),{matches:i}=b.useContext(sl),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=dh(),c;if(t){var m;let x=typeof t=="string"?ol(t):t;a==="/"||(m=x.pathname)!=null&&m.startsWith(a)||Qe(!1),c=x}else c=u;let h=c.pathname||"/",p=h;if(a!=="/"){let x=a.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=Iy(e,{pathname:p}),v=lx(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Br([a,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Br([a,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&v?b.createElement(il.Provider,{value:{location:Os({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Pn.Pop}},v):v}function rx(){let e=dx(),t=qy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
58Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,null)}const ox=b.createElement(rx,null);class ix extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(sl.Provider,{value:this.props.routeContext},b.createElement(ch.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sx(e){let{routeContext:t,match:n,children:r}=e,o=b.useContext(Zy);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(sl.Provider,{value:t},r)}function lx(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);c>=0||Qe(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let m=s[c];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=c),m.route.id){let{loaderData:h,errors:p}=n,w=m.route.loader&&h[m.route.id]===void 0&&(!p||p[m.route.id]===void 0);if(m.route.lazy||w){a=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,m,h)=>{let p,w=!1,v=null,x=null;n&&(p=l&&m.route.id?l[m.route.id]:void 0,v=m.route.errorElement||ox,a&&(u<0&&h===0?(w=!0,x=null):u===h&&(w=!0,x=m.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,h+1)),f=()=>{let y;return p?y=v:w?y=x:m.route.Component?y=b.createElement(m.route.Component,null):m.route.element?y=m.route.element:y=c,b.createElement(sx,{match:m,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:y})};return n&&(m.route.ErrorBoundary||m.route.errorElement||h===0)?b.createElement(ix,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()},null)}var Xa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xa||{});function ax(e){let t=b.useContext(ex);return t||Qe(!1),t}function ux(e){let t=b.useContext(sl);return t||Qe(!1),t}function cx(e){let t=ux(),n=t.matches[t.matches.length-1];return n.route.id||Qe(!1),n.route.id}function dx(){var e;let t=b.useContext(ch),n=ax(Xa.UseRouteError),r=cx(Xa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fx(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function qa(e){Qe(!1)}function px(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Pn.Pop,navigator:i,static:s=!1,future:l}=e;sc()&&Qe(!1);let a=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:a,navigator:i,static:s,future:Os({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=ol(r));let{pathname:c="/",search:m="",hash:h="",state:p=null,key:w="default"}=r,v=b.useMemo(()=>{let x=lh(c,a);return x==null?null:{location:{pathname:x,search:m,hash:h,state:p,key:w},navigationType:o}},[a,c,m,h,p,w,o]);return v==null?null:b.createElement(uh.Provider,{value:u},b.createElement(il.Provider,{children:n,value:v}))}function mx(e){let{children:t,location:n}=e;return tx(Ja(t),n)}new Promise(()=>{});function Ja(e,t){t===void 0&&(t=[]);let n=[];
58return b.Children.forEach(e,(r,o)=>{if(!b.isValidElement(r))return;let i=[...t,o];if(r.type===b.Fragment){n.push.apply(n,Ja(r.props.children,i));return}r.type!==qa&&Qe(!1),!r.props.index||!r.props.children||Qe(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ja(r.props.children,i)),n.push(s)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */const hx="6";try{window.__reactRouterVersion=hx}catch{}const gx="startTransition",Yd=Hf[gx];function vx(e){let{basename:t,children:n,future:r,window:o}=e,i=b.useRef();i.current==null&&(i.current=_y({window:o,v5Compat:!0}));let s=i.current,[l,a]=b.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=b.useCallback(m=>{u&&Yd?Yd(()=>a(m)):a(m)},[a,u]);return b.useLayoutEffect(()=>s.listen(c),[s,c]),b.useEffect(()=>fx(r),[r]),b.createElement(px,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var Gd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gd||(Gd={}));var Kd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kd||(Kd={}));var Xd=["light","dark"],yx="(prefers-color-scheme: dark)",xx=b.createContext(void 0),wx={setTheme:e=>{},themes:[]},bx=()=>{var e;return(e=b.useContext(xx))!=null?e:wx};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=o?Xd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(w,v=!1,x=!0)=>{let g=s?s[w]:w,f=v?w+"|| ''":`'${g}'`,y="";return o&&x&&!v&&Xd.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),n==="class"?v||g?y+=`c.add(${f})`:y+="null":g&&(y+=`d[s](n,${f})`),y},p=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${yx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${m}}catch(t){}}();`;return b.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:p}})});var Sx=e=>{switch(e){case"success":return Nx;case"info":return kx;case"warning":return Tx;case"error":return Px;default:return null}},Ex=Array(12).fill(0),Cx=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},Ex.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Nx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Tx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
67currentColor",height:"20",width:"20"},A.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"})),kx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Px=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Rx=A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jx=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Za=1,Ax=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:Za++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,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)=>
67this.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,i,s=r.then(async a=>{if(i=["resolve",a],A.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(_x(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.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(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Za++;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}},$e=new Ax,Mx=(e,t)=>{let n=(t==null?void 0:t.id)||Za++;return $e.addToast({title:e,...t,id:n}),n},_x=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ox=Mx,Lx=()=>$e.toasts,Ix=()=>$e.getActiveToasts();Object.assign(Ox,{success:$e.success,info:$e.info,warning:$e.warning,error:$e.error,custom:$e.custom,message:$e.message,promise:$e.promise,dismiss:$e.dismiss,loading:$e.loading},{getHistory:Lx,getToasts:Ix});function Fx(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))}Fx(`: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;
67left: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}
67: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%);
67--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%)} 68`);function Ui(e){return e.label!==void 0}var Dx=3,zx="32px",$x="16px",qd=4e3,Bx=356,Ux=14,Vx=20,Wx=200;function gt(...e){return e.filter(Boolean).join(" ")}function Hx(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Qx=e=>{var t,n,r,o,i,s,l,a,u,c,m;let{invert:h,toast:p,unstyled:w,interacting:v,setHeights:x,visibleToasts:g,heights:f,index:y,toasts:S,expanded:E,removeToast:C,defaultRichColors:N,closeButton:R,style:O,cancelButtonStyle:M,actionButtonStyle:B,className:I="",descriptionClassName:W="",duration:_,position:z,gap:$,loadingIcon:U,expandByDefault:k,classNames:P,icons:L,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:D}=e,[G,K]=A.useState(null),[se,ge]=A.useState(null),[Z,Vt]=A.useState(!1),[ut,Rt]=A.useState(!1),[ct,sn]=A.useState(!1),[dt,ln]=A.useState(!1),[yr,Qn]=A.useState(!1),[yi,an]=A.useState(0),[De,ho]=A.useState(0),Yn=A.useRef(p.duration||_||qd),xr=A.useRef(null),jt=A.useRef(null),xi=y===0,wi=y+1<=g,ze=p.type,un=p.dismissible!==!1,bi=p.className||"",j0=
68p.descriptionClassName||"",Si=A.useMemo(()=>f.findIndex(H=>H.toastId===p.id)||0,[f,p.id]),A0=A.useMemo(()=>{var H;return(H=p.closeButton)!=null?H:R},[p.closeButton,R]),Sc=A.useMemo(()=>p.duration||_||qd,[p.duration,_]),hl=A.useRef(0),wr=A.useRef(0),Ec=A.useRef(0),br=A.useRef(null),[M0,_0]=z.split("-"),Cc=A.useMemo(()=>f.reduce((H,te,le)=>le>=Si?H:H+te.height,0),[f,Si]),Nc=jx(),O0=p.invert||h,gl=ze==="loading";wr.current=A.useMemo(()=>Si*$+Cc,[Si,Cc]),A.useEffect(()=>{Yn.current=Sc},[Sc]),A.useEffect(()=>{Vt(!0)},[]),A.useEffect(()=>{let H=jt.current;if(H){let te=H.getBoundingClientRect().height;return ho(te),x(le=>[{toastId:p.id,height:te,position:p.position},...le]),()=>x(le=>le.filter(ft=>ft.toastId!==p.id))}},[x,p.id]),A.useLayoutEffect(()=>{if(!Z)return;let H=jt.current,te=H.style.height;H.style.height="auto";let le=H.getBoundingClientRect().height;H.style.height=te,ho(le),x(ft=>ft.find(pt=>pt.toastId===p.id)?ft.map(pt=>pt.toastId===p.id?{...pt,height:le}:pt):[{toastId:p.id,height:le,position:p.position},...ft])},[Z,p.title,p.description,x,p.id]);let cn=A.useCallback(()=>{Rt(!0),an(wr.current),x(H=>H.filter(te=>te.toastId!==p.id)),setTimeout(()=>{C(p)},Wx)},[p,C,x,wr]);A.useEffect(()=>{if(p.promise&&ze==="loading"||p.duration===1/0||p.type==="loading")return;let H;return E||v||D&&Nc?(()=>{if(Ec.current<hl.current){let te=new Date().getTime()-hl.current;Yn.current=Yn.current-te}Ec.current=new Date().getTime()})():Yn.current!==1/0&&(hl.current=new Date().getTime(),H=setTimeout(()=>{var te;(te=p.onAutoClose)==null||te.call(p,p),cn()},Yn.current)),()=>clearTimeout(H)},[E,v,p,ze,D,Nc,cn]),A.useEffect(()=>{p.delete&&cn()},[cn,p.delete]);function L0(){var H,te,le;return L!=null&&L.loading?A.createElement("div",{className:gt(P==null?void 0:P.loader,(H=p==null?void 0:p.classNames)==null?void 0:H.loader,"sonner-loader"),"data-visible":ze==="loading"},L.loading):U?A.createElement("div",{className:gt(P==null?void 0:P.loader,(te=p==null?void 0:p.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":ze==="loading"},U):A.createElement(Cx,{className:gt(P==null?void 0:P.loader,(le=p==null?void 0:p.classNames)==null?void 0:le.loader),visible:ze==="loading"})}return A.createElement("li",{tabIndex:0,ref:jt,className:gt(I,bi,P==null?void 0:P.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[ze],(n=p==null?void 0:p.classNames)==null?void 0:n[ze]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:N,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":Z,"data-promise":!!p.promise,"data-swiped":yr,"data-removed":ut,"data-visible":wi,"data-y-position":M0,"data-x-position":_0,"data-index":y,"data-front":xi,"data-swiping":ct,"data-dismissible":un,"data-type":ze,"data-invert":O0,"data-swipe-out":dt,"data-swipe-direction":se,"data-expanded":!!(E||k&&Z),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${ut?yi:wr.current}px`,"--initial-height":k?"auto":`${De}px`,...O,...p.style},onDragEnd:()=>{sn(!1),K(null),br.current=null},onPointerDown:H=>{gl||!un||(xr.current=new Date,an(wr.current),H.target.setPointerCapture(H.pointerId),H.target.tagName!=="BUTTON"&&(sn(!0),br.current={x:H.clientX,y:H.clientY}))},onPointerUp:()=>{var H,te,le,ft;if(dt||!un)return;br.current=null;let pt=Number(((H=jt.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),dn=Number(((te=jt.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Gn=new Date().getTime()-((le=xr.current)==null?void 0:le.getTime()),mt=G==="x"?pt:dn,fn=Math.abs(mt)/Gn;if(Math.abs(mt)>=Vx||fn>.11){an(wr.current),(ft=p.onDismiss)==null||ft.call(p,p),ge(G==="x"?pt>0?"right":"left":dn>0?"down":"up"),cn(),ln(!0),Qn(!1);return}sn(!1),K(null)},onPointerMove:H=>{var te,le,ft,pt;if(!br.current||!un||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let dn=H.clientY-br.current.y,Gn=H.clientX-br.current.x,mt=(le=e.swipeDirections)!=null?le:Hx(z);!G&&(Math.abs(Gn)>1||Math.abs(dn)>1)&&K(Math.abs(Gn)>Math.abs(dn)?"x":"y");let fn={x:0,y:0};G==="y"?(mt.includes("top")||mt.includes("bottom"))&&(mt.includes("top")&&dn<0||mt.includes("bottom")&&dn>0)&&(fn.y=dn):G==="x"&&(mt.includes("left")||mt.includes("right"))&&(mt.includes("left")&&Gn<0||mt.includes("right")&&Gn>0)&&(fn.x=Gn),(Math.abs(fn.x)>0||Math.abs(fn.y)>0)&&Qn(!0),(ft=jt.current)==null||ft.style.setProperty("--swipe-amount-x",`${fn.x}px`),(pt=jt.current)==null||pt.style.setProperty("--swipe-amount-y",`${fn.y}px`)}},A0&&!p.jsx?A.createElement("button",{"aria-label":V,"data-disabled":gl,"data-close-button":!0,onClick:gl||!un?()=>{}:()=>{var H;cn(),(H=p.onDismiss)==null||H.call(p,p)},className:gt(P==null?void 0:P.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:Rx):null,p.jsx||b.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:A.createElement(A.Fragment,null,ze||p.icon||p.promise?A.createElement("div",{"data-icon":"",className:gt(P==null?void 0:P.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)}
68,p.promise||p.type==="loading"&&!p.icon?p.icon||L0():null,p.type!=="loading"?p.icon||(L==null?void 0:L[ze])||Sx(ze):null):null,A.createElement("div",{"data-content":"",className:gt(P==null?void 0:P.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},A.createElement("div",{"data-title":"",className:gt(P==null?void 0:P.title,(a=p==null?void 0:p.classNames)==null?void 0:a.title)},typeof p.title=="function"?p.title():p.title),p.description?A.createElement("div",{"data-description":"",className:gt(W,j0,P==null?void 0:P.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),b.isValidElement(p.cancel)?p.cancel:p.cancel&&Ui(p.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||M,onClick:H=>{var te,le;Ui(p.cancel)&&un&&((le=(te=p.cancel).onClick)==null||le.call(te,H),cn())},className:gt(P==null?void 0:P.cancelButton,(c=p==null?void 0:p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,b.isValidElement(p.action)?p.action:p.action&&Ui(p.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||B,onClick:H=>{var te,le;Ui(p.action)&&((le=(te=p.action).onClick)==null||le.call(te,H),!H.defaultPrevented&&cn())},className:gt(P==null?void 0:P.actionButton,(m=p==null?void 0:p.classNames)==null?void 0:m.actionButton)},p.action.label):null))};function Jd(){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 Yx(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?$x:zx;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var Gx=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:m,duration:h,style:p,visibleToasts:w=Dx,toastOptions:v,dir:x=Jd(),gap:g=Ux,loadingIcon:f,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[C,N]=A.useState([]),R=A.useMemo(()=>Array.from(new Set([r].concat(C.filter(D=>D.position).map(D=>D.position)))),[C,r]),[O,M]=A.useState([]),[B,I]=A.useState(!1),[W,_]=A.useState(!1),[z,$]=A.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=A.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=A.useRef(null),L=A.useRef(!1),V=A.useCallback(D=>{N(G=>{var K;return(K=G.find(se=>se.id===D.id))!=null&&K.delete||$e.dismiss(D.id),G.filter(({id:se})=>se!==D.id)})},[]);return A.useEffect(()=>$e.subscribe(D=>{if(D.dismiss){N(G=>G.map(K=>K.id===D.id?{...K,delete:!0}:K));return}setTimeout(()=>{Gm.flushSync(()=>{N(G=>{let K=G.findIndex(se=>se.id===D.id);return K!==-1?[...G.slice(0,K),{...G[K],...D},...G.slice(K+1)]:[D,...G]})})})}),[]),A.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 D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:G})=>{$(G?"dark":"light")})}catch{D.addListener(({matches:K})=>{try{$(K?"dark":"light")}catch(se){console.error(se)}})}},[c]),A.useEffect(()=>{C.length<=1&&I(!1)},[C]),A.useEffect(()=>{let D=G=>{var K,se;o.every(ge=>G[ge]||G.code===ge)&&(I(!0),(K=U.current)==null||K.focus()),G.code==="Escape"&&(document.activeElement===U.current||(se=U.current)!=null&&se.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),A.useEffect(()=>{if(U.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[U.current]),A.createElement("section",{ref:t,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((D,G)=>{var K;let[se,ge]=D.split("-");return C.length?A.createElement("ol",{key:D,dir:x==="auto"?Jd():x,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":se,"data-lifted":B&&C.length>1&&!i,"data-x-position":ge,style:{"--front-toast-height":`${((K=O[0])==null?void 0:K.height)||0}px`,"--width":`${Bx}px`,"--gap":`${g}px`,...p,...Yx(a,u)},onBlur:Z=>{L.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=Z.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{W||I(!1)},onDragEnd:()=>I(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},C.filter(Z=>!Z.position&&G===0||Z.position===D).map((Z,Vt)=>{var ut,Rt;return A.createElement(Qx,{key:Z.id,icons:y,index:Vt,toast:Z,defaultRichColors:m,duration:(ut=v==null?void 0:v.duration)!=null?ut:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Rt=v==null?void 0:v.closeButton)!=null?Rt:s,interacting:W,position:D,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:V,toasts:C.filter(ct=>ct.position==Z.position),heights:O.filter(ct=>ct.position==Z.position),setHeights:M,expandByDefault:i,gap:g,loadingIcon:f,expanded:B,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const Kx=({...e})=>{const{theme:t="system"}=bx();return d.jsx(Gx,{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})},Xx=1,qx=1e6;let Hl=0;function Jx(){return Hl=(Hl+1)%Number.MAX_SAFE_INTEGER,Hl.toString()}const Ql=new Map,Zd=e=>{if(Ql.has(e))return;const t=setTimeout(()=>{Ql.delete(e),$o({type:"REMOVE_TOAST",toastId:e})},qx);Ql.set(e,t)},Zx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Xx)};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;
68return n?Zd(n):e.toasts.forEach(r=>{Zd(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)}}},is=[];let ss={toasts:[]};function $o(e){ss=Zx(ss,e),is.forEach(t=>{t(ss)})}function e1({...e}){const t=Jx(),n=o=>$o({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>$o({type:"DISMISS_TOAST",toastId:t});return $o({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function t1(){const[e,t]=b.useState(ss);return b.useEffect(()=>(is.push(t),()=>{const n=is.indexOf(t);n>-1&&is.splice(n,1)}),[e]),{...e,toast:e1,dismiss:n=>$o({type:"DISMISS_TOAST",toastId:n})}}function ye(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 ef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=ef(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():ef(e[o],null)}}}}function Tt(...e){return b.useCallback(fh(...e),e)}function ll(e,t=[]){let n=[];function r(i,s){const l=b.createContext(s),a=n.length;n=[...n,s];const u=m=>{var g;const{scope:h,children:p,...w}=m,v=((g=h==null?void 0:h[e])==null?void 0:g[a])||l,x=b.useMemo(()=>w,Object.values(w));return d.jsx(v.Provider,{value:x,children:p})};u.displayName=i+"Provider";function c(m,h){var v;const p=((v=h==null?void 0:h[e])==null?void 0:v[a])||l,w=b.useContext(p);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>b.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,n1(o,...t)]}function n1(...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(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const m=a(i)[`__scope${u}`];return{...l,...m}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function eu(e){const t=r1(e),n=b.forwardRef((r,o)=>{const{children:i,...s}=r,l=b.Children.toArray(i),a=l.find(i1);if(a){const u=a.props.children,c=l.map(m=>m===a?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:m);return d.jsx(t,{...s,ref:o,children:b.isValidElement(u)?b.cloneElement(u,void 0,c):null})}return d.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function r1(e){const t=b.forwardRef((n,r)=>{const{children:o,...i}=n;if(b.isValidElement(o)){const s=l1(o),l=s1(i,o.props);return o.type!==b.Fragment&&(l.ref=r?fh(r,s):s),b.cloneElement(o,l)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ph=Symbol("radix.slottable");function o1(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ph,t}function i1(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ph}function s1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function l1(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 a1(e){const t=e+"CollectionProvider",[n,r]=ll(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:x,children:g}=v,f=A.useRef(null),y=A.useRef(new Map).current;return d.jsx(o,{scope:x,itemMap:y,collectionRef:f,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=eu(l),u=A.forwardRef((v,x)=>{const{scope:g,children:f}=v,y=i(l,g),S=Tt(x,y.collectionRef);return d.jsx(a,{ref:S,children:f})});u.displayName=l;const c=e+"CollectionItemSlot",m="data-radix-collection-item",h=eu(c),p=A.forwardRef((v,x)=>{const{scope:g,children:f,...y}=v,S=A.useRef(null),E=Tt(x,S),C=i(c,g);return A.useEffect(()=>(C.itemMap.set(S,{ref:S,...y}),()=>void C.itemMap.delete(S))),d.jsx(h,{[m]:"",ref:E,children:f})});p.displayName=c;function w(v){const x=i(e+"CollectionConsumer",v);return A.useCallback(()=>{const f=x.collectionRef.current;if(!f)return[];const y=Array.from(f.querySelectorAll(`[${m}]`));return Array.from(x.itemMap.values()).sort((C,N)=>y.indexOf(C.ref.current)-y.indexOf(N.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},w,r]}var u1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=u1.reduce((e,t)=>
vendor: 8,608 bytes, line 68
68{const n=eu(`Primitive.${t}`),r=b.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mh(e,t){e&&hi.flushSync(()=>e.dispatchEvent(t))}function zn(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function c1(e,t=globalThis==null?void 0:globalThis.document){const n=zn(e);b.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 d1="DismissableLayer",tu="dismissableLayer.update",f1="dismissableLayer.pointerDownOutside",p1="dismissableLayer.focusOutside",tf,hh=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lc=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=b.useContext(hh),[c,m]=b.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),w=Tt(t,N=>m(N)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(x),f=c?v.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=f>=g,E=h1(N=>{const R=N.target,O=[...u.branches].some(M=>M.contains(R));!S||O||(o==null||o(N),s==null||s(N),N.defaultPrevented||l==null||l())},h),C=g1(N=>{const R=N.target;[...u.branches].some(M=>M.contains(R))||(i==null||i(N),s==null||s(N),N.defaultPrevented||l==null||l())},h);return c1(N=>{f===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},h),b.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(tf=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),nf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=tf)}},[c,h,n,u]),b.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),nf())},[c,u]),b.useEffect(()=>{const N=()=>p({});return document.addEventListener(tu,N),()=>document.removeEventListener(tu,N)},[]),d.jsx(Ye.div,{...a,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,E.onPointerDownCapture)})});lc.displayName=d1;var m1="DismissableLayerBranch",gh=b.forwardRef((e,t)=>{const n=b.useContext(hh),r=b.useRef(null),o=Tt(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),d.jsx(Ye.div,{...e,ref:o})});gh.displayName=m1;function h1(e,t=globalThis==null?void 0:globalThis.document){const n=zn(e),r=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){vh(f1,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function g1(e,t=globalThis==null?void 0:globalThis.document){const n=zn(e),r=b.useRef(!1);return b.useEffect(()=>{const o=i=>{i.target&&!r.current&&vh(p1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nf(){const e=new CustomEvent(tu);document.dispatchEvent(e)}function vh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mh(o,i):o.dispatchEvent(i)}var v1=lc,y1=gh,$n=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},x1="Portal",yh=b.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=b.useState(!1);$n(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Gm.createPortal(d.jsx(Ye.div,{...r,ref:t}),s):null});yh.displayName=x1;function w1(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var ac=e=>{const{present:t,children:n}=e,r=b1(t),o=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=Tt(r.ref,S1(o));return typeof n=="function"||r.isPresent?b.cloneElement(o,{ref:i}):null};ac.displayName="Presence";function b1(e){const[t,n]=b.useState(),r=b.useRef(null),o=b.useRef(e),i=b.useRef("none"),s=e?"mounted":"unmounted",[l,a]=w1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=Vi(r.current);i.current=l==="mounted"?u:"none"},[l]),$n(()=>{const u=r.current,c=o.current;if(c!==e){const h=i.current,p=Vi(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),$n(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,m=p=>{const v=Vi(r.current).includes(p.animationName);if(p.target===t&&v&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=p=>{p.target===t&&(i.current=Vi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Vi(e){return(e==null?void 0:e.animationName)||"none"}function S1(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 E1=Hf[" useInsertionEffect ".trim().toString()]||$n;function C1({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=N1({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=b.useRef(e!==void 0);b.useEffect(()=>{const m=c.current;m!==l&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=b.useCallback(c=>{var m;if(l){const h=T1(c)?c(e):c;h!==e&&((m=s.current)==null||m.call(s,h))}else i(c)},[l,e,i,s]);return[a,u]}function N1({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),o=b.useRef(n),i=b.useRef(t);return E1(()=>{i.current=t},[t]),b.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function T1(e){return typeof e=="function"}var k1=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"}),P1="VisuallyHidden",al=b.forwardRef((e,t)=>d.jsx(Ye.span,{...e,ref:t,style:{...k1,...e.style}}));al.displayName=P1;var R1=al,uc="ToastProvider",[cc,j1,A1]=a1("Toast"),[xh,nS]=ll("Toast",[A1]),[M1,ul]=xh(uc),wh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=b.useState(null),[u,c]=b.useState(0),m=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${uc}\`. Expected non-empty \`string\`.`),d.jsx(cc.Provider,{scope:t,children:d.jsx(M1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:b.useCallback(()=>c(p=>p+1),[]),onToastRemove:b.useCallback(()=>c(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:h,children:s})})};wh.displayName=uc;var bh="ToastViewport",_1=["F8"],nu="toast.viewportPause",ru="toast.viewportResume",Sh=b.forwardRef((e,t)=>
68{const{__scopeToast:n,hotkey:r=_1,label:o="Notifications ({hotkey})",...i}=e,s=ul(bh,n),l=j1(n),a=b.useRef(null),u=b.useRef(null),c=b.useRef(null),m=b.useRef(null),h=Tt(t,m,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;b.useEffect(()=>{const x=g=>{var y;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((y=m.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=a.current,g=m.current;if(w&&x&&g){const f=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(nu);g.dispatchEvent(C),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(ru);g.dispatchEvent(C),s.isClosePausedRef.current=!1}},S=C=>{!x.contains(C.relatedTarget)&&y()},E=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",f),x.addEventListener("focusout",S),x.addEventListener("pointermove",f),x.addEventListener("pointerleave",E),window.addEventListener("blur",f),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",f),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",f),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",f),window.removeEventListener("focus",y)}}},[w,s.isClosePausedRef]);const v=b.useCallback(({tabbingDirection:x})=>{const f=l().map(y=>{const S=y.ref.current,E=[S,...Q1(S)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?f.reverse():f).flat()},[l]);return b.useEffect(()=>{const x=m.current;if(x){const g=f=>{var E,C,N;const y=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!y){const R=document.activeElement,O=f.shiftKey;if(f.target===x&&O){(E=u.current)==null||E.focus();return}const I=v({tabbingDirection:O?"backwards":"forwards"}),W=I.findIndex(_=>_===R);Yl(I.slice(W+1))?f.preventDefault():O?(C=u.current)==null||C.focus():(N=c.current)==null||N.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[l,v]),d.jsxs(y1,{ref:a,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&d.jsx(ou,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});Yl(x)}}),d.jsx(cc.Slot,{scope:n,children:d.jsx(Ye.ol,{tabIndex:-1,...i,ref:h})}),w&&d.jsx(ou,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});Yl(x)}})]})});Sh.displayName=bh;var Eh="ToastFocusProxy",ou=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}
68=e,i=ul(Eh,n);return d.jsx(al,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});ou.displayName=Eh;var gi="Toast",O1="toast.swipeStart",L1="toast.swipeMove",I1="toast.swipeCancel",F1="toast.swipeEnd",Ch=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=C1({prop:r,defaultProp:o??!0,onChange:i,caller:gi});return d.jsx(ac,{present:n||l,children:d.jsx($1,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:zn(e.onPause),onResume:zn(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:c,y:m}=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",`${m}px`)}),onSwipeCancel:ye(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:ye(e.onSwipeEnd,u=>{const{x:c,y:m}=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",`${m}px`),a(!1)})})})});Ch.displayName=gi;var[D1,z1]=xh(gi,{onClose(){}}),$1=b.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:m,onSwipeCancel:h,onSwipeEnd:p,...w}=e,v=ul(gi,n),[x,g]=b.useState(null),f=Tt(t,_=>g(_)),y=b.useRef(null),S=b.useRef(null),E=o||v.duration,C=b.useRef(0),N=b.useRef(E),R=b.useRef(0),{onToastAdd:O,onToastRemove:M}=v,B=zn(()=>{var z;(x==null?void 0:x.contains(document.activeElement))&&((z=v.viewport)==null||z.focus()),s()}),I=b.useCallback(_=>{!_||_===1/0||(window.clearTimeout(R.current),C.current=new Date().getTime(),R.current=window.setTimeout(B,_))},[B]);b.useEffect(()=>{const _=v.viewport;if(_){const z=()=>{I(N.current),u==null||u()},$=()=>{const U=new Date().getTime()-C.current;N.current=N.current-U,window.clearTimeout(R.current),a==null||a()};return _.addEventListener(nu,$),_.addEventListener(ru,z),()=>{_.removeEventListener(nu,$),_.removeEventListener(ru,z)}}},[v.viewport,E,a,u,I]),b.useEffect(()=>{i&&!v.isClosePausedRef.current&&I(E)},[i,E,v.isClosePausedRef,I]),b.useEffect(()=>(O(),()=>M()),[O,M]);const W=b.useMemo(()=>x?Ah(x):null,[x]);return v.viewport?d.jsxs(d.Fragment,{children:[W&&d.jsx(B1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),d.jsx(D1,{scope:n,onClose:B,children:hi.createPortal(d.jsx(cc.ItemSlot,{scope:n,children:d.jsx(v1,{asChild:!0,onEscapeKeyDown:ye(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||B(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(Ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,_=>{_.key==="Escape"&&(l==null||l(_.nativeEvent),_.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ye(e.onPointerDown,_=>{_.button===0&&(y.current={x:_.clientX,y:_.clientY})}),onPointerMove:ye(e.onPointerMove,_=>{if(!y.current)return;const z=_.clientX-y.current.x,$=_.clientY-y.current.y,U=!!S.current,k=["left","right"].includes(v.swipeDirection),P=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=k?P(0,z):0,V=k?0:P(0,$),D=_.pointerType==="touch"?10:2,G={x:L,y:V},K={originalEvent:_,delta:G};U?(S.current=G,Wi(L1,m,K,{discrete:!1})):rf(G,v.swipeDirection,D)?(S.current=G,Wi(O1,c,K,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(z)>D||Math.abs($)>D)&&(y.current=null)}),onPointerUp:ye(e.onPointerUp,_=>{const z=S.current,$=_.target;if($.hasPointerCapture(_.pointerId)&&$.releasePointerCapture(_.pointerId),S.current=null,y.current=null,z){const U=_.currentTarget,k={originalEvent:_,delta:z};rf(z,v.swipeDirection,v.swipeThreshold)?Wi(F1,p,k,{discrete:!0}):Wi(I1,h,k,{discrete:!0}),U.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),B1=e=>{const{__scopeToast:t,children:n,...r}=e,o=ul(gi,t),[i,s]=b.useState(!1),[l,a]=b.useState(!1);return W1(()=>s(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:d.jsx(yh,{asChild:!0,children:d.jsx(al,{...r,children:i&&d.jsxs(d.Fragment,{children:[o.label," ",n]})})})},U1="ToastTitle",Nh=b.forwardRef((e,t)=>
68{const{__scopeToast:n,...r}=e;return d.jsx(Ye.div,{...r,ref:t})});Nh.displayName=U1;var V1="ToastDescription",Th=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(Ye.div,{...r,ref:t})});Th.displayName=V1;var kh="ToastAction",Ph=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(jh,{altText:n,asChild:!0,children:d.jsx(dc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kh}\`. Expected non-empty \`string\`.`),null)});Ph.displayName=kh;var Rh="ToastClose",dc=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=z1(Rh,n);return d.jsx(jh,{asChild:!0,children:d.jsx(Ye.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});dc.displayName=Rh;var jh=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return d.jsx(Ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Ah(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),H1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Ah(r))}}),t}function Wi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mh(o,i):o.dispatchEvent(i)}var rf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function W1(e=()=>{}){const t=zn(e);$n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function H1(e){return e.nodeType===e.ELEMENT_NODE}function Q1(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 Yl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Y1=wh,Mh=Sh,_h=Ch,Oh=Nh,Lh=Th,Ih=Ph,Fh=dc;function Dh(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=Dh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dh(e))&&(r&&(r+=" "),r+=t);return r}const of=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sf=zh,G1=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return sf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],m=i==null?void 0:i[u];if(c===null)return null;const h=of(c)||of(m);return o[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[m,h]=c;return h===void 0||(u[m]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:m,className:h,...p}=c;return Object.entries(p).every(w=>{let[v,x]=w;return Array.isArray(x)?x.includes({...i,...l}[v]):{...i,...l}[v]===x})?[...u,m,h]:u},[]);return sf(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const K1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$h=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var X1={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"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const q1=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>b.createElement("svg",{ref:a,...X1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$h("lucide",o),...l},[...s.map(([u,c])=>b.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const J1=(e,t)=>{const n=b.forwardRef(({className:r,...o},i)=>b.createElement(q1,{ref:i,iconNode:t,className:$h(`lucide-${K1(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Z1=J1("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 93
93],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),fc="-",ew=e=>{const t=nw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(fc);return l[0]===""&&l.length!==1&&l.shift(),Bh(l,t)||tw(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Bh=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Bh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(fc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},lf=/^\[(.+)\]$/,tw=e=>{if(lf.test(e)){const t=lf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},nw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ow(Object.entries(e.classGroups),n).forEach(([i,s])=>{iu(s,r,i,t)}),r},iu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:af(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(rw(o)){iu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{iu(s,af(t,i),n,r)})})},af=(e,t)=>{let n=e;return t.split(fc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},rw=e=>e.isThemeGetter,ow=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,iw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Uh="!",sw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,m;for(let x=0;x<l.length;x++){let g=l[x];if(u===0){if(g===o&&(r||l.slice(x,x+i)===t)){a.push(l.slice(c,x)),c=x+i;continue}if(g==="/"){m=x;continue}}g==="["?u++:g==="]"&&u--}const h=a.length===0?l:l.substring(c),p=h.startsWith(Uh),w=p?h.substring(1):h,v=m&&m>c?m-c:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},lw=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},aw=e=>({cache:iw(e.cacheSize),parseClassName:sw(e),...ew(e)}),uw=/\s+/,cw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(uw);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}=n(u);let w=!!p,v=r(w?h.substring(0,p):h);if(!v){if(!w){l=u+(l.length>0?" "+l:l);continue}if(v=r(h),!v){l=u+(l.length>0?" "+l:l);continue}w=!1}const x=lw(c).join(":"),g=m?x+Uh:x,f=g+v;if(i.includes(f))continue;i.push(f);const y=o(v,w);for(let S=0;S<y.length;++S){const E=y[S];i.push(g+E)}l=u+(l.length>0?" "+l:l)}return l};function dw(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Vh(t))&&(r&&(r+=" "),r+=n);return r}const Vh=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vh(e[r]))&&(n&&(n+=" "),n+=t);return n};function fw(e,...t){let n,r,o,i=s;function s(a){const u=t.reduce((c,m)=>m(c),e());return n=aw(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=cw(a,n);return o(a,c),c}return function(){return i(dw.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Wh=/^\[(?:([a-z-]+):)?(.+)\]$/i,pw=/^\d+\/\d+$/,mw=new Set(["px","full","screen"]),hw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gw=/\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$/,vw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wt=e=>Ur(e)||mw.has(e)||pw.test(e),mn=e=>fo(e,"length",kw),Ur=e=>!!e&&!Number.isNaN(Number(e)),Gl=e=>fo(e,"number",Ur),Co=e=>!!e&&Number.isInteger(Number(e)),ww=e=>e.endsWith("%")&&Ur(e.slice(0,-1)),Y=e=>Wh.test(e),hn=e=>hw.test(e),bw=new Set(["length","size","percentage"]),Sw=e=>fo(e,bw,Hh),Ew=e=>fo(e,"position",Hh),Cw=new Set(["image","url"]),Nw=e=>fo(e,Cw,Rw),Tw=e=>fo(e,"",Pw),No=()=>!0,fo=(e,t,n)=>{const r=Wh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},kw=e=>gw.test(e)&&!vw.test(e),Hh=()=>!1,Pw=e=>yw.test(e),Rw=e=>xw.test(e),jw=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),m=re("invert"),h=re("gap"),p=re("gradientColorStops"),w=re("gradientColorStopPositions"),v=re("inset"),x=re("margin"),g=re("opacity"),f=re("padding"),y=re("saturate"),S=re("scale"),E=re("sepia"),C=re("skew"),N=re("space"),R=re("translate"),O=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Y,t],I=()=>[Y,t],W=()=>["",Wt,mn],_=()=>["auto",Ur,Y],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],U=()=>["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"],P=()=>["","0",Y],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Ur,Y];return{cacheSize:500,separator:":",theme:{colors:[No],spacing:[Wt,mn],blur:["none","",hn,Y],brightness:V(),borderColor:[e],borderRadius:["n
93one","","full",hn,Y],borderSpacing:I(),borderWidth:W(),contrast:V(),grayscale:P(),hueRotate:V(),invert:P(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[ww,mn],inset:B(),margin:B(),opacity:V(),padding:I(),saturate:V(),scale:V(),sepia:P(),skew:V(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...z(),Y]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Co,Y]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Co,Y]}],"grid-cols":[{"grid-cols":[No]}],"col-start-end":[{col:["auto",{span:["full",Co,Y]},Y]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[No]}],"row-start-end":[{row:["auto",{span:[Co,Y]},Y]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"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:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],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":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[hn]},hn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",hn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gl]}],"font-family":[{font:[No]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",Ur,Gl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"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",Wt,mn]}],"underline-offset":[{"underline-offset":["auto",Wt,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"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:[...z(),Ew]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Nw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}
vendor: 5,172 bytes, line 93
93],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[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":[Wt,Y]}],"outline-w":[{outline:[Wt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Wt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,Tw]}],"shadow-color":[{shadow:[No]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",hn,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[m]}],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":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Co,Y]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"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",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 93
93],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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Wt,mn,Gl]}],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"]}}},Aw=fw(jw);function vr(...e){return Aw(zh(e))}const Mw=Y1,Qh=b.forwardRef(({className:e,...t},n)=>d.jsx(Mh,{ref:n,className:vr("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}));Qh.displayName=Mh.displayName;const _w=G1("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"}}),Yh=b.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(_h,{ref:r,className:vr(_w({variant:t}),e),...n}));Yh.displayName=_h.displayName;const Ow=b.forwardRef(({className:e,...t},n)=>d.jsx(Ih,{ref:n,className:vr("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}));Ow.displayName=Ih.displayName;const Gh=b.forwardRef(({className:e,...t},n)=>d.jsx(Fh,{ref:n,className:vr("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 11,414 bytes, line 93
93/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:d.jsx(Z1,{className:"h-4 w-4"})}));Gh.displayName=Fh.displayName;const Kh=b.forwardRef(({className:e,...t},n)=>d.jsx(Oh,{ref:n,className:vr("text-sm font-semibold",e),...t}));Kh.displayName=Oh.displayName;const Xh=b.forwardRef(({className:e,...t},n)=>d.jsx(Lh,{ref:n,className:vr("text-sm opacity-90",e),...t}));Xh.displayName=Lh.displayName;function Lw(){const{toasts:e}=t1();return d.jsxs(Mw,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return d.jsxs(Yh,{...i,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(Kh,{children:n}),r&&d.jsx(Xh,{children:r})]}),o,d.jsx(Gh,{})]},t)}),d.jsx(Qh,{})]})}const Iw=["top","right","bottom","left"],Bn=Math.min,Ke=Math.max,Ls=Math.round,Hi=Math.floor,$t=e=>({x:e,y:e}),Fw={left:"right",right:"left",bottom:"top",top:"bottom"},Dw={start:"end",end:"start"};function su(e,t,n){return Ke(e,Bn(t,n))}function nn(e,t){return typeof e=="function"?e(t):e}function rn(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function pc(e){return e==="x"?"y":"x"}function mc(e){return e==="y"?"height":"width"}const zw=new Set(["top","bottom"]);function Ft(e){return zw.has(rn(e))?"y":"x"}function hc(e){return pc(Ft(e))}function $w(e,t,n){n===void 0&&(n=!1);const r=po(e),o=hc(e),i=mc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Is(s)),[s,Is(s)]}function Bw(e){const t=Is(e);return[lu(e),t,lu(t)]}function lu(e){return e.replace(/start|end/g,t=>Dw[t])}const uf=["left","right"],cf=["right","left"],Uw=["top","bottom"],Vw=["bottom","top"];function Ww(e,t,n){switch(e){case"top":case"bottom":return n?t?cf:uf:t?uf:cf;case"left":case"right":return t?Uw:Vw;default:return[]}}function Hw(e,t,n,r){const o=po(e);let i=Ww(rn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(lu)))),i}function Is(e){return e.replace(/left|right|bottom|top/g,t=>Fw[t])}function Qw(e){return{top:0,right:0,bottom:0,left:0,...e}}function qh(e){return typeof e!="number"?Qw(e):{top:e,right:e,bottom:e,left:e}}function Fs(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 df(e,t,n){let{reference:r,floating:o}=e;const i=Ft(t),s=hc(t),l=mc(s),a=rn(t),u=i==="y",c=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(po(t)){case"start":p[s]-=h*(n&&u?-1:1);break;case"end":p[s]+=h*(n&&u?-1:1);break}return p}const Yw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:m}=df(u,r,a),h=r,p={},w=0;for(let v=0;v<l.length;v++){const{name:x,fn:g}=l[v],{x:f,y,data:S,reset:E}=await g({x:c,y:m,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=f??c,m=y??m,p={...p,[x]:{...p[x],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:c,y:m}=df(u,h,a)),v=-1)}return{x:c,y:m,placement:h,strategy:o,middlewareData:p}};async function si(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=nn(t,e),w=qh(p),x=l[h?m==="floating"?"reference":"floating":m],g=Fs(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),f=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Fs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:f,offsetParent:y,strategy:a}):f);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 Gw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=nn(e,t)||{};if(u==null)return{};const m=qh(c),h={x:n,y:r},p=hc(o),w=mc(p),v=await s.getDimensions(u),x=p==="y",g=x?"top":"left",f=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[p]-h[p]-i.floating[w],E=h[p]-i.reference[p],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let N=C?C[y]:0;(!N||!await(s.isElement==null?void 0:s.isElement(C)))&&(N=l.floating[y]||i.floating[w]);const R=S/2-E/2,O=N/2-v[w]/2-1,M=Bn(m[g],O),B=Bn(m[f],O),I=M,W=N-v[w]-B,_=N/2-v[w]/2+R,z=su(I,_,W),$=!a.arrow&&po(o)!=null&&_!==z&&i.reference[w]/2-(_<I?M:B)-v[w]/2<0,U=$?_<I?_-I:_-W:0;return{[p]:h[p]+U,data:{[p]:z,centerOffset:_-z-U,...$&&{alignmentOffset:U}},reset:$}}}),Kw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...x}=nn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=rn(o),f=Ft(l),y=rn(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),E=h||(y||!v?[Is(l)]:Bw(l)),C=w!=="none";!h&&C&&E.push(...Hw(l,v,w,S));const N=[l,...E],R=await si(t,x),O=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&O.push(R[g]),m){const _=$w(o,s,S);O.push(R[_[0]],R[_[1]])}if(M=[...M,{placement:o,overflows:O}],!O.every(_=>_<=0)){var B,I;const _=(((B=i.flip)==null?void 0:B.index)||0)+1,z=N[_];if(z&&(!(m==="alignment"?f!==Ft(z):!1)||M.every(k=>k.overflows[0]>0&&Ft(k.placement)===f)))return{data:{index:_,overflows:M},reset:{placement:z}};let $=(I=M.filter(U=>U.overflows[0]<=0).sort((U,k)=>U.overflows[1]-k.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(p){case"bestFit":{var W;const U=(W=M.filter(k=>{if(C){const P=Ft(k.placement);return P===f||P==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((k,P)=>k[1]-P[1])[0])==null?void 0:W[0];U&&($=U);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function ff(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pf(e){return Iw.some(t=>e[t]>=0)}const Xw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=nn(e,t);switch(r){case"referenceHidden":{const i=await si(t,{...o,elementContext:"reference"}),s=ff(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:pf(s)}}}case"escaped":{const i=await si(t,{...o,altBoundary:!0}),s=ff(i,n.floating);return{data:{escapedOffsets:s,escaped:pf(s)}}}default:return{}}}}},Jh=new Set(["left","top"]);async function qw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=rn(n),l=po(n),a=Ft(n)==="y",u=Jh.has(s)?-1:1,c=i&&a?-1:1,m=nn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),a?{x:p*c,y:h*u}:{x:h*u,y:p*c}}const Jw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await qw(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Zw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:g,y:f}=x;return{x:g,y:f}}},...a}=nn(e,t),u={x:n,y:r},c=await si(t,a),m=Ft(rn(o)),h=pc(m);let p=u[h],w=u[m];if(i){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",f=p+c[x],y=p-c[g];p=su(f,p,y)}if(s){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",f=w+c[x],y=w-c[g];w=su(f,w,y)}const v=l.fn({...t,[h]:p,[m]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:i,[m]:s}}}}}},eb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=nn(e,t),c={x:n,y:r},m=Ft(o),h=pc(m);let p=c[h],w=c[m];const v=nn(l,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const y=h==="y"?"height":"width",S=i.reference[h]-i.floating[y]+x.mainAxis,E=i.reference[h]+i.reference[y]-x.mainAxis;p<S?p=S:p>E&&(p=E)}if(u){var g,f;const y=h==="y"?"width":"height",S=Jh.has(rn(o)),E=i.reference[m]-i.floating[y]+(S&&((g=s.offset)==null?void 0:g[m])||0)+(S?0:x.crossAxis),C=i.reference[m]+i.reference[y]+(S?0:((f=s.offset)==null?void 0:f[m])||0)-(S?x.crossAxis:0);w<E?w=E:w>C&&(w=C)}return{[h]:p,[m]:w}}}},tb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=nn(e,t),c=await si(t,u),m=rn(o),h=po(o),p=Ft(o)==="y",{width:w,height:v}=i.floating;let x,g;m==="top"||m==="bottom"?(x=m,g=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(g=m,x=h==="end"?"top":"bottom");const f=v-c.top-c.bottom,y=w-c.left-c.right,S=Bn(v-c[x],f),E=Bn(w-c[g],y),C=!t.middlewareData.shift;let N=S,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=f),C&&!h){const M=Ke(c.left,0),B=Ke(c.right,0),I=Ke(c.top,0),W=Ke(c.bottom,0);p?R=w-2*(M!==0||B!==0?M+B:Ke(c.left,c.right)):N=v-2*(I!==0||W!==0?I+W:Ke(c.top,c.bottom))}await a({...t,availableWidth:R,availableHeight:N});const O=await s.getDimensions(l.floating);return w!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function cl(){return typeof window<"u"}function mo(e){return Zh(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ut(e){var t;return(t=(Zh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zh(e){return cl()?e instanceof Node||e instanceof Je(e).Node:!1}function kt(e){return cl()?e instanceof Element||e instanceof Je(e).Element:!1}function Bt(e){return cl()?e instanceof HTMLElement||e instanceof Je(e).HTMLElement:!1}function mf(e){return!cl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}const nb=new Set(["inline","contents"]);function vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pt(e);
vendor: 4,121 bytes, line 93
93return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!nb.has(o)}const rb=new Set(["table","td","th"]);function ob(e){return rb.has(mo(e))}const ib=[":popover-open",":modal"];function dl(e){return ib.some(t=>{try{return e.matches(t)}catch{return!1}})}const sb=["transform","translate","scale","rotate","perspective"],lb=["transform","translate","scale","rotate","perspective","filter"],ab=["paint","layout","strict","content"];function gc(e){const t=vc(),n=kt(e)?Pt(e):e;return sb.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)||lb.some(r=>(n.willChange||"").includes(r))||ab.some(r=>(n.contain||"").includes(r))}function ub(e){let t=Un(e);for(;Bt(t)&&!so(t);){if(gc(t))return t;if(dl(t))return null;t=Un(t)}return null}function vc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cb=new Set(["html","body","#document"]);function so(e){return cb.has(mo(e))}function Pt(e){return Je(e).getComputedStyle(e)}function fl(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Un(e){if(mo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mf(e)&&e.host||Ut(e);return mf(t)?t.host:t}function e0(e){const t=Un(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&vi(t)?t:e0(t)}function li(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=e0(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Je(o);if(i){const l=au(s);return t.concat(s,s.visualViewport||[],vi(o)?o:[],l&&n?li(l):[])}return t.concat(o,li(o,[],n))}function au(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function t0(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Ls(n)!==i||Ls(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function yc(e){return kt(e)?e:e.contextElement}function Vr(e){const t=yc(e);if(!Bt(t))return $t(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=t0(t);let s=(i?Ls(n.width):n.width)/r,l=(i?Ls(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const db=$t(0);function n0(e){const t=Je(e);return!vc()||!t.visualViewport?db:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=yc(e);let s=$t(1);t&&(r?kt(r)&&(s=Vr(r)):s=Vr(e));const l=fb(i,n,r)?n0(i):$t(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,m=o.height/s.y;if(i){const h=Je(i),p=r&&kt(r)?Je(r):r;let w=h,v=au(w);for(;v&&r&&p!==w;){const x=Vr(v),g=v.getBoundingClientRect(),f=Pt(v),y=g.left+(v.clientLeft+parseFloat(f.paddingLeft))*x.x,S=g.top+(v.clientTop+parseFloat(f.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,m*=x.y,a+=y,u+=S,w=Je(v),v=au(w)}}return Fs({width:c,height:m,x:a,y:u})}function xc(e,t){const n=fl(e).scrollLeft;return t?t.left+n:mr(Ut(e)).left+n}function r0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:xc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function pb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ut(r),l=t?dl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=$t(1);const c=$t(0),m=Bt(r);if((m||!m&&!i)&&((mo(r)!=="body"||vi(s))&&(a=fl(r)),Bt(r))){const p=mr(r);u=Vr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const h=s&&!m&&!i?r0(s,a,!0):$t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}}function mb(e){return Array.from(e.getClientRects())}function hb(e){const t=Ut(e),n=fl(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+xc(e);const l=-n.scrollTop;return Pt(r).direction==="rtl"&&(s+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}
vendor: 13,284 bytes, line 93
93function gb(e,t){const n=Je(e),r=Ut(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=vc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const vb=new Set(["absolute","fixed"]);function yb(e,t){const n=mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bt(e)?Vr(e):$t(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function hf(e,t,n){let r;if(t==="viewport")r=gb(e,n);else if(t==="document")r=hb(Ut(e));else if(kt(t))r=yb(t,n);else{const o=n0(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fs(r)}function o0(e,t){const n=Un(e);return n===t||!kt(n)||so(n)?!1:Pt(n).position==="fixed"||o0(n,t)}function xb(e,t){const n=t.get(e);if(n)return n;let r=li(e,[],!1).filter(l=>kt(l)&&mo(l)!=="body"),o=null;const i=Pt(e).position==="fixed";let s=i?Un(e):e;for(;kt(s)&&!so(s);){const l=Pt(s),a=gc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&vb.has(o.position)||vi(s)&&!a&&o0(e,s))?r=r.filter(c=>c!==s):o=l,s=Un(s)}return t.set(e,r),r}function wb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?dl(t)?[]:xb(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const m=hf(t,c,o);return u.top=Ke(m.top,u.top),u.right=Bn(m.right,u.right),u.bottom=Bn(m.bottom,u.bottom),u.left=Ke(m.left,u.left),u},hf(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function bb(e){const{width:t,height:n}=t0(e);return{width:t,height:n}}function Sb(e,t,n){const r=Bt(t),o=Ut(t),i=n==="fixed",s=mr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=$t(0);function u(){a.x=xc(o)}if(r||!r&&!i)if((mo(t)!=="body"||vi(o))&&(l=fl(t)),r){const p=mr(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?r0(o,l):$t(0),m=s.left+l.scrollLeft-a.x-c.x,h=s.top+l.scrollTop-a.y-c.y;return{x:m,y:h,width:s.width,height:s.height}}function Kl(e){return Pt(e).position==="static"}function gf(e,t){if(!Bt(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ut(e)===n&&(n=n.ownerDocument.body),n}function i0(e,t){const n=Je(e);if(dl(e))return n;if(!Bt(e)){let o=Un(e);for(;o&&!so(o);){if(kt(o)&&!Kl(o))return o;o=Un(o)}return n}let r=gf(e,t);for(;r&&ob(r)&&Kl(r);)r=gf(r,t);return r&&so(r)&&Kl(r)&&!gc(r)?n:r||ub(e)||n}const Eb=async function(e){const t=this.getOffsetParent||i0,n=this.getDimensions,r=await n(e.floating);return{reference:Sb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cb(e){return Pt(e).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:pb,getDocumentElement:Ut,getClippingRect:wb,getOffsetParent:i0,getElementRects:Eb,getClientRects:mb,getDimensions:bb,getScale:Vr,isElement:kt,isRTL:Cb};function s0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tb(e,t){let n=null,r;const o=Ut(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:m,width:h,height:p}=u;if(l||t(),!h||!p)return;const w=Hi(m),v=Hi(o.clientWidth-(c+h)),x=Hi(o.clientHeight-(m+p)),g=Hi(c),y={rootMargin:-w+"px "+-v+"px "+-x+"px "+-g+"px",threshold:Ke(0,Bn(1,a))||1};let S=!0;function E(C){const N=C[0].intersectionRatio;if(N!==a){if(!S)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!s0(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(e)}return s(!0),i}function kb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=yc(e),c=o||i?[...u?li(u):[],...li(t)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const m=u&&l?Tb(u,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(g=>{let[f]=g;f&&f.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let w,v=a?mr(e):null;a&&x();function x(){const g=mr(e);v&&!s0(v,g)&&n(),v=g,w=requestAnimationFrame(x)}return n(),()=>{var g;c.forEach(f=>{o&&f.removeEventListener("scroll",n),i&&f.removeEventListener("resize",n)}),m==null||m(),(g=p)==null||g.disconnect(),p=null,a&&cancelAnimationFrame(w)}}const Pb=Jw,Rb=Zw,jb=Kw,Ab=tb,Mb=Xw,vf=Gw,_b=eb,Ob=(e,t,n)=>{const r=new Map,o={platform:Nb,...n},i={...o.platform,_c:r};return Yw(e,t,{...o,platform:i})};var Lb=typeof document<"u",Ib=function(){},ls=Lb?b.useLayoutEffect:Ib;function Ds(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(!Ds(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ds(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function l0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yf(e,t){const n=l0(e);return Math.round(t*n)/n}function Xl(e){const t=b.useRef(e);return ls(()=>{t.current=e}),t}function Fb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,m]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=b.useState(r);Ds(h,r)||p(r);const[w,v]=b.useState(null),[x,g]=b.useState(null),f=b.useCallback(k=>{k!==C.current&&(C.current=k,v(k))},[]),y=b.useCallback(k=>{k!==N.current&&(N.current=k,g(k))},[]),S=i||w,E=s||x,C=b.useRef(null),N=b.useRef(null),R=b.useRef(c),O=a!=null,M=Xl(a),B=Xl(o),I=Xl(u),W=b.useCallback(()=>{if(!C.current||!N.current)return;const k={placement:t,strategy:n,middleware:h};B.current&&(k.platform=B.current),Ob(C.current,N.current,k).then(P=>{const L={...P,isPositioned:I.current!==!1};_.current&&!Ds(R.current,L)&&(R.current=L,hi.flushSync(()=>{m(L)}))})},[h,t,n,B,I]);ls(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,m(k=>({...k,isPositioned:!1})))},[u]);const _=b.useRef(!1);ls(()=>(_.current=!0,()=>{_.current=!1}),[]),ls(()=>{if(S&&(C.current=S),E&&(N.current=E),S&&E){if(M.current)return M.current(S,E,W);W()}},[S,E,W,M,O]);const z=b.useMemo(()=>({reference:C,floating:N,setReference:f,setFloating:y}),[f,y]),$=b.useMemo(()=>({reference:S,floating:E}),[S,E]),U=b.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const P=yf($.floating,c.x),L=yf($.floating,c.y);return l?{...k,transform:"translate("+P+"px, "+L+"px)",...l0($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:L}},[n,l,$.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:W,refs:z,elements:$,floatingStyles:U}),[c,W,z,$,U])}const Db=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?vf({element:r.current,padding:o}).fn(n):{}:r?vf({element:r,padding:o}).fn(n):{}}}},zb=(e,t)=>({...Pb(e),options:[e,t]}),$b=(e,t)=>({...Rb(e),options:[e,t]}),Bb=(e,t)=>({..._b(e),options:[e,t]}),Ub=(e,t)=>({...jb(e),options:[e,t]}),Vb=(e,t)=>({...Ab(e),options:[e,t]}),Wb=(e,t)=>({...Mb(e),options:[e,t]}),Hb=(e,t)=>({...Db(e),options:[e,t]});var Qb="Arrow",a0=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d.jsx(Ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});a0.displayName=Qb;var Yb=a0;function Gb(e){const[t,n]=b.useState(void 0);return $n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var u0="Popper",[c0,d0]=ll(u0),[rS,f0]=c0(u0),p0="PopperAnchor",m0=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=f0(p0,n),s=b.useRef(null),l=Tt(t,s);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.jsx(Ye.div,{...o,ref:l})});m0.displayName=p0;var wc="PopperContent",[Kb,Xb]=c0(wc),h0=b.forwardRef((e,t)=>{var Z,Vt,ut,Rt,ct,sn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:w,...v}=e,x=f0(wc,n),[g,f]=b.useState(null),y=Tt(t,dt=>f(dt)),[S,E]=b.useState(null),C=Gb(S),N=(C==null?void 0:C.width)??0,R=(C==null?void 0:C.height)??0,O=r+(i!=="center"?"-"+i:""),M=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},B=Array.isArray(u)?u:[u],I=B.length>0,W={padding:M,boundary:B.filter(Jb),altBoundary:I},{refs:_,floatingStyles:z,placement:$,isPositioned:U,middlewareData:k}=Fb({strategy:"fixed",placement:O,whileElementsMounted:(...dt)=>kb(...dt,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[zb({mainAxis:o+R,alignmentAxis:s}),a&&$b({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Bb():void 0,...W}),a&&Ub({...W}),Vb({...W,apply:({elements:dt,rects:ln,availableWidth:yr,availableHeight:Qn})=>{const{width:yi,height:an}=ln.reference,De=dt.floating.style;De.setProperty("--radix-popper-available-width",`${yr}px`),De.setProperty("--radix-popper-available-height",`${Qn}px`),De.setProperty("--radix-popper-anchor-width",`${yi}px`),De.setProperty("--radix-popper-anchor-height",`${an}px`)}}),S&&Hb({element:S,padding:l}),Zb({arrowWidth:N,arrowHeight:R}),h&&Wb({strategy:"referenceHidden",...W})]}),[P,L]=y0($),V=zn(w);$n(()=>{U&&(V==null||V())},[U,V]);const D=(Z=k.arrow)==null?void 0:Z.x,G=(Vt=k.arrow)==null?void 0:Vt.y,K=((ut=k.arrow)==null?void 0:ut.centerOffset)!==0,[se,ge]=b.useState();return $n(()=>{g&&ge(window.getComputedStyle(g).zIndex)},[g]),d.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:U?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Rt=k.transformOrigin)==null?void 0:Rt.x,(ct=k.transformOrigin)==null?void 0:ct.y].join(" "),...((sn=k.hide)==null?void 0:sn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Kb,{scope:n,placedSide:P,onArrowChange:E,arrowX:D,arrowY:G,shouldHideArrow:K,children:d.jsx(Ye.div,{"data-side":P,"data-align":L,...v,ref:y,style:{...v.style,animation:U?void 0:"none"}})})})});h0.displayName=wc;var g0="PopperArrow",qb={top:"bottom",right:"left",bottom:"top",left:"right"},v0=b.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Xb(g0,r),s=qb[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(Yb,{...o,ref:n,style:{...o.style,display:"block"}})})});v0.displayName=g0;function Jb(e){return e!==null}var Zb=e=>({name:"transformOrigin",options:e,fn(t){var x,g,f;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=y0(n),m={start:"0%",center:"50%",end:"100%"}[c],h=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,p=(((f=o.arrow)==null?void 0:f.y)??0)+a/2;let w="",v="";return u==="bottom"?(w=s?m:`${h}px`,v=`${-a}px`):u==="top"?(w=s?m:`${h}px`,v=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,v=s?m:`${p}px`):u==="left"&&(w=`${r.floating.width+a}px`,v=s?m:`${p}px`),{data:{x:w,y:v}}}});function y0(e){const[t,n="center"]=e.split("-");return[t,n]}var e2=m0,t2=h0,n2=v0,[pl,oS]=ll("Tooltip",[d0]),bc=d0(),x0="TooltipProvider",r2=700,xf="tooltip.open",[o2,w0]=pl(x0),b0=e=>{const{__scopeTooltip:t,delayDuration:n=r2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=b.useRef(!0),l=b.useRef(!1),a=b.useRef(0);return b.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),d.jsx(o2,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};b0.displayName=x0;var S0="Tooltip",[iS,ml]=pl(S0),uu="TooltipTrigger",i2=b.forwardRef((e,t)=>
vendor: 5,599 bytes, line 93
93{const{__scopeTooltip:n,...r}=e,o=ml(uu,n),i=w0(uu,n),s=bc(n),l=b.useRef(null),a=Tt(t,l,o.onTriggerChange),u=b.useRef(!1),c=b.useRef(!1),m=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),d.jsx(e2,{asChild:!0,...s,children:d.jsx(Ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});i2.displayName=uu;var s2="TooltipPortal",[sS,l2]=pl(s2,{forceMount:void 0}),lo="TooltipContent",E0=b.forwardRef((e,t)=>{const n=l2(lo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=ml(lo,e.__scopeTooltip);return d.jsx(ac,{present:r||s.open,children:s.disableHoverableContent?d.jsx(C0,{side:o,...i,ref:t}):d.jsx(a2,{side:o,...i,ref:t})})}),a2=b.forwardRef((e,t)=>{const n=ml(lo,e.__scopeTooltip),r=w0(lo,e.__scopeTooltip),o=b.useRef(null),i=Tt(t,o),[s,l]=b.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:m}=r,h=b.useCallback(()=>{l(null),m(!1)},[m]),p=b.useCallback((w,v)=>{const x=w.currentTarget,g={x:w.clientX,y:w.clientY},f=p2(g,x.getBoundingClientRect()),y=m2(g,f),S=h2(v.getBoundingClientRect()),E=v2([...y,...S]);l(E),m(!0)},[m]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(a&&c){const w=x=>p(x,c),v=x=>p(x,a);return a.addEventListener("pointerleave",w),c.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",v)}}},[a,c,p,h]),b.useEffect(()=>{if(s){const w=v=>{const x=v.target,g={x:v.clientX,y:v.clientY},f=(a==null?void 0:a.contains(x))||(c==null?void 0:c.contains(x)),y=!g2(g,s);f?h():y&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,c,s,u,h]),d.jsx(C0,{...e,ref:i})}),[u2,c2]=pl(S0,{isInside:!1}),d2=o1("TooltipContent"),C0=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=ml(lo,n),u=bc(n),{onClose:c}=a;return b.useEffect(()=>(document.addEventListener(xf,c),()=>document.removeEventListener(xf,c)),[c]),b.useEffect(()=>{if(a.trigger){const m=h=>{const p=h.target;p!=null&&p.contains(a.trigger)&&c()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[a.trigger,c]),d.jsx(lc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:m=>m.preventDefault(),onDismiss:c,children:d.jsxs(t2,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(d2,{children:r}),d.jsx(u2,{scope:n,isInside:!0,children:d.jsx(R1,{id:a.contentId,role:"tooltip",children:o||r})})]})})});E0.displayName=lo;var N0="TooltipArrow",f2=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bc(n);return c2(N0,n).isInside?null:d.jsx(n2,{...o,...r,ref:t})});f2.displayName=N0;function p2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function m2(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 h2(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 g2(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,c=l.y,m=a.x,h=a.y;c>r!=h>r&&n<(m-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function v2(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),y2(t)}function y2(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 i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 x2=b0,T0=E0;const w2=x2,b2=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(T0,{ref:r,sideOffset:t,className:vr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
93de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));b2.displayName=T0.displayName;const k0={2024:173205,2025:177882,2026:181440},S2=k0,E2={2024:15705,2025:16129,2026:16452},C2={2024:.15,2025:.145,2026:.14},N2={2024:14156,2025:14538,2026:14829},T2={2024:173205,2025:177882,2026:181440},k2={2024:1433,2025:1471,2026:1500};function P2(e){return e<=2e4?0:e<=36e3?Math.min(300,(e-2e4)*.06):e<=48e3?300+Math.min(150,(e-36e3)*.06):e<=72e3?450+Math.min(150,(e-48e3)*.06):e<=2e5?600+Math.min(150,(e-72e3)*.06):750+Math.min(150,(e-2e5)*.06)}function wf(e,t){const n=E2[t]||16129,r=N2[t]||14538,o=T2[t]||177882,i=zs[t]||zs[2025],s=i[0][0]+i[1][0]+i[2][0]+i[3][0];return e<=o?n:e>=s?r:n-(n-r)*((e-o)/(s-o))}const P0={2024:125e4,2025:125e4,2026:1275e3},R2=7/5,ql=.5,j2=1,A2=.3,bf={AB:.35,BC:.33,MB:.5,NB:.57,NL:.67,NS:.7,ON:.2463,PE:.57,QC:0,SK:.5},zs={2024:[[55867,.15],[55866,.205],[61472,.26],[73547,.29],[1/0,.33]],2025:[[57375,.145],[57375,.205],[63132,.26],[75532,.29],[1/0,.33]],2026:[[58523,.14],[58522,.205],[64395,.26],[77042,.29],[1/0,.33]]},M2={ON:{2024:[{limit:51446,rate:.0505},{limit:102894,rate:.0915},{limit:15e4,rate:.1116},{limit:22e4,rate:.1216},{limit:1/0,rate:.1316}],2025:[{limit:52886,rate:.0505},{limit:105775,rate:.0915},{limit:15e4,rate:.1116},{limit:22e4,rate:.1216},{limit:1/0,rate:.1316}],2026:[{limit:53891,rate:.0505},{limit:107785,rate:.0915},{limit:15e4,rate:.1116},{limit:22e4,rate:.1216},{limit:1/0,rate:.1316}]},BC:{2024:[{limit:45654,rate:.0506},{limit:91310,rate:.077},{limit:104835,rate:.105},{limit:127299,rate:.1229},{limit:172602,rate:.147},{limit:240716,rate:.168},{limit:1/0,rate:.205}],2025:[{limit:49279,rate:.0506},{limit:98560,rate:.077},{limit:113158,rate:.105},{limit:137407,rate:.1229},{limit:186306,rate:.147},{limit:259829,rate:.168},{limit:1/0,rate:.205}],2026:[{limit:50363,rate:.0506},{limit:100728,rate:.077},{limit:115648,rate:.105},{limit:140430,rate:.1229},{limit:190405,rate:.147},{limit:265545,rate:.168},{limit:1/0,rate:.205}]},AB:{2024:[{limit:148269,rate:.1},{limit:177922,rate:.12},{limit:237230,rate:.13},{limit:355845,rate:.14},{limit:1/0,rate:.15}],2025:[{limit:6e4,rate:.08},{limit:151234,rate:.1},{limit:181481,rate:.12},{limit:241974,rate:.13},{limit:362961,rate:.14},{limit:1/0,rate:.15}],2026:[{limit:61200,rate:.08},{limit:154259,rate:.1},{limit:185111,rate:.12},{limit:246813,rate:.13},{limit:370220,rate:.14},{limit:1/0,rate:.15}]},MB:{2024:[{limit:47e3,rate:.108},{limit:1e5,rate:.1275},{limit:1/0,rate:.174}],2025:[{limit:47e3,rate:.108},{limit:1e5,rate:.1275},{limit:1/0,rate:.174}],2026:[{limit:47e3,rate:.108},{limit:1e5,rate:.1275},{limit:1/0,rate:.174}]},SK:{2024:[{limit:49720,rate:.105},{limit:142058,rate:.125},{limit:1/0,rate:.145}],2025:[{limit:53463,rate:.105},{limit:152750,rate:.125},{limit:1/0,rate:.145}],2026:[{limit:54532,rate:.105},{limit:155805,rate:.125},{limit:1/0,rate:.145}]},NB:{2024:[{limit:47715,rate:.094},{limit:95431,rate:.1482},{limit:176756,rate:.1652},{limit:1/0,rate:.1952}],2025:[{limit:51306,rate:.094},{limit:102614,rate:.14},{limit:190060,rate:.16},{limit:1/0,rate:.195}],2026:[{limit:52333,rate:.094},{limit:104666,rate:.14},{limit:193861,rate:.16},{limit:1/0,rate:.195}]},NL:{2024:[{limit:43198,rate:.087},{limit:86395,rate:.145},{limit:154244,rate:.158},{limit:215943,rate:.178},{limit:275870,rate:.198},{limit:551739,rate:.208},{limit:1/0,rate:.213}],2025:[{limit:44192,rate:.087},{limit:88382,rate:.145},{limit:157792,rate:.158},{limit:220910,rate:.178},{limit:282214,rate:.198},{limit:564429,rate:.208},{limit:1/0,rate:.213}],2026:[{limit:44678,rate:.087},{limit:89354,rate:.145},{limit:159528,rate:.158},{limit:223340,rate:.178},{limit:285319,rate:.198},{limit:570638,rate:.208},{limit:1141275,rate:.213},{limit:1/0,rate:.218}]},NS:{2024:[{limit:29590,rate:.0879},{limit:59180,rate:.1495},{limit:93e3,rate:.1667},{limit:15e4,rate:.175},{limit:1/0,rate:.21}],2025:[{limit:30507,rate:.0879},{limit:61015,rate:.1495},{limit:95883,rate:.1667},{limit:154650,rate:.175},{limit:1/0,rate:.21}],2026:[{limit:30995,rate:.0879},{limit:61991,rate:.1495},{limit:97417,rate:.1667},{limit:157124,rate:.175},{limit:1/0,rate:.21}]},PE:{2024:[{limit:32656,rate:.0965},{limit:64313,rate:.1363}
93,{limit:105e3,rate:.1665},{limit:14e4,rate:.18},{limit:1/0,rate:.1875}],2025:[{limit:33328,rate:.095},{limit:64656,rate:.1347},{limit:105e3,rate:.166},{limit:14e4,rate:.1762},{limit:1/0,rate:.19}],2026:[{limit:33928,rate:.095},{limit:65820,rate:.1347},{limit:106890,rate:.166},{limit:142250,rate:.1762},{limit:2e5,rate:.19},{limit:1/0,rate:.2}]},QC:"SEPARATE_SYSTEM"},_2={ON:{2024:12399,2025:12747,2026:12989},BC:{2024:11981,2025:12932,2026:13216},AB:{2024:21003,2025:22323,2026:22769},MB:{2024:15780,2025:15780,2026:15780},SK:{2024:17661,2025:19491,2026:20381},NB:{2024:13044,2025:13396,2026:13664},NL:{2024:10818,2025:11067,2026:11188},NS:{2024:8481,2025:11744,2026:11932},PE:{2024:13500,2025:14650,2026:15e3}},O2={ON:.1,BC:.12,AB:.1,MB:.08,SK:.11,NB:.14,NL:.05,NS:.0885,PE:.065},L2={ON:.029863,BC:.022471,AB:.02342,MB:.007835,SK:.03362,NB:.03626,NL:.029,NS:.0325,PE:.0197},I2={NS:{2024:.0325,2025:.015,2026:.015}},Sf={2024:{t1:5554,t2:7108},2025:{t1:5710,t2:7307},2026:{t1:5818,t2:7446}};function F2(e,t){if(e<=0)return 0;const n=zs[t]||zs[2025];let r=0,o=e;for(const[i,s]of n){const l=Math.min(o,i);if(r+=l*s,o-=l,o<=0)break}return r}function D2(e,t){if(e<=0)return 0;let n=0,r=0;for(const{limit:o,rate:i}of t){if(e<=r)break;n+=(Math.min(e,o)-r)*i,r=o}return n}function z2(e,t,n,r,o){var x,g;const i=M2[t];if(!i||i==="SEPARATE_SYSTEM")return{before:0,surtax:0,ohp:0,after:0};const s=i[n]||i[2025],l=s[0].rate,a=D2(e,s),u=(((x=_2[t])==null?void 0:x[n])||0)*l,c=Math.max(0,a-u);let m=0;if(t==="ON"){const{t1:f,t2:y}=Sf[n]||Sf[2025];m=.2*Math.max(0,c-f)+.36*Math.max(0,c-y)}const h=r*(O2[t]||0),p=o*(((g=I2[t])==null?void 0:g[n])??L2[t]??0),w=t==="ON"?P2(e):0,v=Math.max(0,c+m-h-p)+w;return{before:c,surtax:m,ohp:w,after:v}}function Ef(e){const{yr:t,prov:n,sal:r,cg:o,so:i,don:s,donSec:l,ii:a,cl:u,abil:c,rrsp:m,de:h,dne:p,amtcf:w}=e,x=(e.cgType??"QSBCS")==="Other"?0:e.lcge,g=S2[t]||177882,f=C2[t]||.145,y=bf[n]!==void 0?bf[n]:.33,S=n==="QC",E=h*1.38,C=p*1.15,N=s<=200?s*f:200*f+(s-200)*.33,R=E*.150198,O=C*.090301,M=o*ql,B=r+M+i*.5+E+C,W=x*ql+u*.5+c*.5+m+a,_=Math.max(0,B-W),z=F2(_,t),$=wf(_,t),U=Math.min(k2[t]||0,Math.max(0,r)),P=($+U)*f+N+R+O,L=Math.max(0,z-P),V=z2(_,n,t,E,C),D=V.before,G=V.surtax,K=V.ohp,se=V.after,ge=L+se,Vt=x>0?0:l*A2,ut=o*j2,Rt=r+ut+i*1+h+p+Vt,ct=u*.5+c*.5+m+a*.5,sn=x*ql,dt=
93Math.min(sn*R2,ut),ln=Math.max(0,Rt-ct-dt),yr=Math.max(0,ln-g),Qn=yr*.205,an=(wf(ln,t)+U)*f*.5+N*.8,De=Math.max(0,Qn-an),ho=De*y,Yn=De+ho,xr=De>L,jt=Math.max(0,De-L),xi=De+se,wi=r+o+i+h+p,ze=wi>0?Math.max(xi,ge)/wi:0,un=Math.max(0,L-De),bi=!xr&&w>0?Math.min(w,un):0;return{yr:t,prov:n,EX:g,bpa:$,PR:y,applies:xr,prem:jt,rTot:ge,aTot:Yn,aTotPay:xi,ATI:ln,nATI:yr,eff:ze,cf:xr?jt:bi,cfRecovered:bi,rGross:B,aGross:Rt,cg:o,lcge:x,so:i,de:h,dne:p,rDed:W,aDed:ct,rTI:_,rFedBfr:z,aFedBfr:Qn,rCr:P,aCr:an,rFedNet:L,aFedNet:De,rProvTax:se,aProvTax:ho,rProvBfr:D,rProvSurtax:G,rProvOHP:K,bpaEffective:$,rCgIncluded:M,donSecAddback:Vt,aLcgeOffset:dt,qcEstimate:S}}const Me=e=>"$"+Math.round(e).toLocaleString("en-CA"),$2=e=>(e*100).toFixed(1)+"%",R0=[{value:"AB",label:"Alberta"},{value:"BC",label:"British Columbia"},{value:"MB",label:"Manitoba"},{value:"NB",label:"New Brunswick"},{value:"NL",label:"Newfoundland & Labrador"},{value:"NS",label:"Nova Scotia"},{value:"ON",label:"Ontario"},{value:"PE",label:"Prince Edward Island"},{value:"QC",label:"Quebec"},{value:"SK",label:"Saskatchewan"}];function B2(e,t,n){const r=[];return e.lcge>0&&r.push({icon:"ð·ï¸",title:"LCGE Under AMT: Taxed at 30%, Not Sheltered to Zero",body:`Under regular tax your LCGE shelters the gain completely. Under AMT it is only partially allowed â a 7/5 offset against a 100%-included gain leaves a net 30% inclusion on the exempt portion. On your claim that puts roughly ${Me(e.aLcgeOffset)} of offset against an AMT gain, and the residual is what drives your minimum tax. Timing the claim and using a family trust can soften the hit.`}),e.cg>5e5&&r.push({icon:"ð",title:"Large Gain: Consider Staging the Sale",body:`A gain of ${Me(e.cg)} puts you squarely in AMT territory because AMT includes 100% of the gain (vs 50% under regular tax). Where the structure allows, spreading proceeds across two tax years can split the AMT base and cut your peak exposure.`}),e.so>0&&r.push({icon:"ð¯",title:"Stock Options: Regular 50% Deduction Disallowed Under AMT",body:"Regular tax allows a 50% deduction on the option benefit. AMT disallows it, so 100% of the benefit hits your adjusted income. Modelling the exercise date against your income is critical before acting."}),t>0&&r.push({icon:"ð³",title:"Investment Interest Now Partially Restricted",body:"Since 2024, only 50% of investment interest is deductible under AMT, down from 100%. A financing restructure can often recover this deduction for leveraged investors."}),n>0&&r.push({icon:"ð¤",title:"Donation Credit Capped at 80% Under AMT",body:"AMT keeps the two-tier structure but multiplies the entire credit by 80%. Large donors in high-gain years often find AMT applies regardless. A Donor Advised Fund can spread donations to preserve full credit value."}),e.donSecAddback>0&&r.push({icon:"ðª",title:"Donated Securities: 30% AMT Add-Back",body:`Post-2024, in-kind donations of listed securities trigger a 30% capital gains add-back in the AMT base (was 0%). On your figures that adds ${Me(e.donSecAddback)} to AMT income â worth modelling before donating appreciated stock.`}),e.qcEstimate&&r.push({icon:"âï¸",title:"Quebec: Provincial Figures Are Estimates",body:"Quebec runs an entirely separate tax system through Revenu Québec, including its own AMT and a 16.5% federal abatement. The provincial figures here are not filing numbers â a full Revenu Québec calculation is required."}),e.applies&&r.push({icon:"ð",title:`${Me(e.prem)} Paid Is a Prepayment, Not a Loss`,body:"The AMT premium you pay today goes into a credit pool you can draw from over the next 7 years. In any future year, recovery is ceilinged at the gap between regular tax and AMT. A multi-year income plan ensures you recover every dollar before the window closes."}),e.applies||r.push({icon:"ð",title:"No AMT Now: Lock In a Proactive Plan",body:"Your current inputs show limited exposure. An LCGE claim, a rising capital gain, or an acquisition could change this quickly. Structuring before a transaction is always less costly than correcting after."}),r}const To=["Your Inputs","Deductions","Unlock Report","Your Results"],U2=({currentStep:e})=>{const t=Math.min(Math.max(e,1),To.length),n=(t-1)/(To.length-1)*100;return d.jsxs("div",{className:"mb-9 px-2",children:[d.jsxs("div",{className:"flex items-center justify-between mb-2 text-[0.7rem] font-semibold tracking-[0.05em] uppercase",children:[d.jsxs("span",{className:"text-primary",children:["Step ",t," of ",To.length]}),d.jsx("span",{className:"text-mist",children:To[t-1]})]}),d.jsx("div",{className:"relative h-2 w-full rounded-full bg-muted overflow-hidden border border-border",children:d.jsx("div",{className:"absolute inset-y-0 left-0 bg-primary rounded-full transition-all duration-500 ease-out",style:{width:`${n}%`}})}),d.jsx("div",{className:"flex justify-between mt-2",children:To.map((r,o)=>{const s=o+1<=t;return d.jsx("div",{className:`text-[0.63rem] text-center leading-tight max-w-[80px] transition-colors duration-300 94 ${s?"text-primary font-medium":"text-fog"}`,children:r},o)})})]})},er=({text:e})=>{const[t,n]=b.useState(!1),[r,o]=b.useState({left:"50%",transform:"translateX(-50%)"}),i=b.useRef(null),s=b.useRef(null);return b.useLayoutEffect(()=>{if(!t||!i.current||!s.current)return;const l=i.current.getBoundingClientRect(),a=s.current.getBoundingClientRect(),u=8,c=window.innerWidth,m=a.width;let h=l.left+l.width/2-m/2;h<u&&(h=u),h+m>c-u&&(h=c-u-m);const p=h-l.left;o({left:`${p}px`,transform:"none"})},[t]),d.jsxs("span",{className:"relative inline-flex ml-1 align-middle",children:[d.jsx("span",{ref:i,className:"w-[15px] h-[15px] rounded-full bg-primary/15 text-primary text-[0.6rem] font-bold cursor-help inline-flex items-center justify-center",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:"?"}
94),t&&d.jsx("span",{ref:s,style:r,className:"absolute bottom-[130%] bg-foreground text-background border border-border rounded-[9px] py-[9px] px-3 text-[0.73rem] leading-[1.5] w-[230px] z-50 pointer-events-none shadow-lg",children:e})]})},Jl=e=>{if(e===""||e==null)return"";const t=Number(e);if(!Number.isFinite(t))return e;const[n,r]=e.split("."),o=Number(n||"0").toLocaleString("en-CA");return r!==void 0?`${o}.${r}`:o},V2=e=>e.replace(/,/g,"").replace(/[^\d.]/g,""),Wr=({value:e,onChange:t,placeholder:n,min:r,max:o,className:i})=>{const[s,l]=b.useState(!1),[a,u]=b.useState(e?Jl(e):"");return b.useEffect(()=>{s||u(e?Jl(e):"")},[e,s]),d.jsx("input",{type:"text",inputMode:"decimal",value:s?e??"":a,onFocus:()=>l(!0),onBlur:()=>{l(!1),u(e?Jl(e):"")},onChange:c=>{const m=V2(c.target.value),h=m.split("."),p=h.length>2?h[0]+"."+h.slice(1).join(""):m;t(p)},placeholder:n,className:i,...r!==void 0?{"aria-valuemin":r}:{},...o!==void 0?{"aria-valuemax":o}:{}})},Zl="w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/15",W2=({prov:e,yr:t,sal:n,cg:r,cgType:o,lcge:i,onChange:s,onSubmit:l})=>{const a=P0[t]||125e4,u=k0[t]||177882,c=`Cap: $${a.toLocaleString("en-CA")} (${t})`,m=(o||"QSBCS")!=="Other";return d.jsxs("div",{className:"bg-card border border-border rounded-[20px] p-7 sm:p-9 mb-5 shadow-[0_4px_24px_rgba(0,0,0,.06)] animate-rise",children:[d.jsxs("div",{className:"flex items-start gap-3.5 mb-6 pb-5 border-b border-border",children:[d.jsx("div",{className:"w-[42px] h-[42px] rounded-[10px] bg-primary/10 border border-primary/20 flex items-center justify-center text-lg shrink-0",children:"â¡"}),d.jsxs("div",{children:[d.jsx("div",{className:"font-display text-xl",children:"Your Core Inputs"}),d.jsx("div",{className:"text-sm text-fog mt-[3px]",children:"Start with the essentials â province, year, income, and gain."})]})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Province ",d.jsx("span",{className:"text-primary text-xs",children:"*"})]}),d.jsxs("select",{value:e,onChange:h=>s("prov",h.target.value),className:"w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all focus:border-primary focus:ring-2 focus:ring-primary/15 cursor-pointer",children:[d.jsx("option",{value:"",children:"Select province"}),R0.map(h=>d.jsx("option",{value:h.value,children:h.label},h.value))]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Tax Year ",d.jsx("span",{className:"text-primary text-xs",children:"*"})]}),d.jsxs("select",{value:t,onChange:h=>s("yr",h.target.value),className:"w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all focus:border-primary focus:ring-2 focus:ring-primary/15 cursor-pointer",children:[d.jsx("option",{value:"2026",children:"2026 current year"}),d.jsx("option",{value:"2025",children:"2025"}),d.jsx("option",{value:"2024",children:"2024"})]}),d.jsxs("div",{className:"text-[0.73rem] text-fog mt-1.5 flex items-start gap-[5px] leading-[1.5]",children:[d.jsx("span",{className:"text-primary/60 shrink-0 text-[0.7rem] mt-[1px]",children:"â³"}),t," uses CRA-indexed figures (AMT exemption $",u.toLocaleString("en-CA"),")."]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Employment / Business Income",d.jsx(er,{text:"Include T4 employment income and/or self-employment or professional income. AMT treatment can differ depending on the type of income and related deductions. Employment expenses may be subject to a 50% AMT adjustment, while ordinary business expenses used to calculate net self-employment income are generally allowed unless specifically limited under the AMT rules. If you have both types of income or significant related deductions, consult a CPA."})]}),d.jsxs("div",{className:"relative",children:[d.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary font-semibold text-[0.93rem] pointer-events-none",children:"$"}),d.jsx(Wr,{value:n,onChange:h=>s("sal",h),placeholder:"e.g. 250,000",min:0,className:Zl+" pl-8"})]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Capital Gain on Sale",d.jsx(er,{text:"Your total gain = proceeds minus your original cost (ACB). Regular tax: 50% included (the proposed 202
946 hike to 66.67% was cancelled March 21, 2025). AMT: 100% included."})]}),d.jsxs("div",{className:"relative",children:[d.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary font-semibold text-[0.93rem] pointer-events-none",children:"$"}),d.jsx(Wr,{value:r,onChange:h=>s("cg",h),placeholder:"e.g. 1,500,000",min:0,className:Zl+" pl-8"})]}),d.jsxs("div",{className:"text-[0.73rem] text-fog mt-1.5 flex items-start gap-[5px] leading-[1.5]",children:[d.jsx("span",{className:"text-primary/60 shrink-0 text-[0.7rem] mt-[1px]",children:"â³"}),"Sold for $2M, bought for $500K? Enter $1,500,000."]})]}),d.jsxs("div",{className:"sm:col-span-2",children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Capital Gain Type",d.jsx(er,{text:"Only Qualified Small Business Corporation shares (QSBC), Qualified Farm property, and Qualified Fishing property are eligible for the Lifetime Capital Gains Exemption. Any other gain (public shares, real estate, etc.) cannot claim the LCGE and is included at 100% under AMT."})]}),d.jsxs("select",{value:o||"QSBCS",onChange:h=>s("cgType",h.target.value),className:"w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all focus:border-primary focus:ring-2 focus:ring-primary/15 cursor-pointer",children:[d.jsx("option",{value:"QSBCS",children:"QSBC shares (small business) â LCGE eligible"}),d.jsx("option",{value:"Farm",children:"Qualified farm property â LCGE eligible"}),d.jsx("option",{value:"Fishing",children:"Qualified fishing property â LCGE eligible"}),d.jsx("option",{value:"Other",children:"Other gain (public shares, real estate, etc.)"})]})]}),m?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"sm:col-span-2",children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["LCGE Claimed â Lifetime Capital Gains Exemption",d.jsx(er,{text:"For qualifying shares/property. Under AMT the LCGE is only partially allowed: a 7/5 offset against a 100%-included gain leaves a net 30% inclusion on the exempt portion (T691 Line 87). It remains the #1 AMT trigger for founders."})]}),d.jsxs("div",{className:"relative",children:[d.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary font-semibold text-[0.93rem] pointer-events-none",children:"$"}),d.jsx(Wr,{value:i,onChange:h=>s("lcge",h),placeholder:`Up to $${a.toLocaleString("en-CA")} for ${t}`,min:0,max:a,className:Zl+" pl-8 pr-[120px]"}),d.jsx("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-fog text-[0.7rem] pointer-events-none whitespace-nowrap",children:c})]}),d.jsxs("div",{className:"text-[0.73rem] text-fog mt-1.5 flex items-start gap-[5px] leading-[1.5]",children:[d.jsx("span",{className:"text-primary/60 shrink-0 text-[0.7rem] mt-[1px]",children:"â³"}),"Leave $0 if not applicable. Entering this will likely trigger AMT."]})]})}):d.jsx("div",{className:"sm:col-span-2",children:d.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg px-4 py-3 text-[0.78rem] text-mist leading-[1.55] flex items-start gap-2",children:[d.jsx("span",{className:"text-primary shrink-0",children:"â¹ï¸"}),d.jsx("span",{children:"LCGE is not available for this gain type. The full gain is included at 100% in the AMT base with no exemption offset."})]})})]}),d.jsxs("div",{className:"mt-6",children:[d.jsx("button",{onClick:l,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg py-4 px-7 text-[0.95rem] font-semibold cursor-pointer border-none shadow-[0_4px_16px_rgba(70,127,247,.25)] transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(70,127,247,.35)] active:translate-y-0",children:"Next: Add Deductions â"}),d.jsx("p",{className:"text-center text-[0.72rem] text-fog mt-2.5",children:"Your data stays private. No account needed yet."})]})]})},ea="w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/15",H2=[{id:"so",label:"Stock Option Benefit (T4 Box 38)",tip:"Regular: 50% deductible. AMT: the 50% deduction is fully disallowed â 100% of the benefit hits the AMT base."},{id:"don",label:"Charitable Donations (cash)",tip:"Regular: tiered credit (15% on first $200, 33% on excess). AMT: same tiered structure à 80%."},{id:"donSec",label:"Donated Publicly-Listed Securities (gain portion)",tip:"Post-2024 rule: donations of publicly-listed securities in-kind add 30% of the capital gain back into the AMT base (was 0% pre-2024). Enter the embedded capital gain on the donated securities."},{id:"ii",label:"Investment Interest Expense",tip:"Regular: 100% deductible. AMT (2024+): only 50% allowed."},{id:"cl",label:"Capital Loss Carryforward",tip:"Net capital losses from prior years. 50% deductible under both regular and AMT (current rules)."},{id:"abil",label:"Allowable Business Investment Loss (ABIL)",tip:"ABILs are losses on shares/debt of a small business corporation. Treated separately from ordinary capital losses; 50% deductible under both regimes."},{id:"amtcf",label:"Prior AMT Carryforward (past 7 yrs)",tip:"AMT paid in the past 7 years can be recovered in years where regular tax exceeds AMT. Recovery is ceilinged at (Regular Tax â AMT) for the current year."},{id:"de",label:"Eligible Dividends",tip:"Regular: grossed up 38%, with 15.0198% federal DTC. AMT: face value, no gross-up, no DTC (there is no grossed-up income to credit against)."},{id:"dne",label:"Non-Eligible Dividends",tip:"Regular: grossed up 15%, smaller DTC. AMT: face value, no gross-up, no DTC."}],Q2=e=>{const{rrsp:t,rrspLimit:n,rrspConfirmed:r,onChange:o,onSubmit:i,onBack:s}=e,l=parseFloat(t)||0,a=parseFloat(n)||0,u=a>0&&l>a;return d.jsxs("div",{className:"bg-card border border-border rounded-[20px] p-7 sm:p-9 mb-5 shadow-[0_4px_24px_rgba(0,0,0,.06)] animate-rise",children:[d.jsxs("div",{className:"flex items-start gap-3.5 mb-6 pb-5 border-b border-border",children:[d.jsx("div",{className:"w-[42px] h-[42px] rounded-[10px] bg-primary/10 border border-primary/20 flex items-center justify-center text-lg shrink-0",children:"ð§"}),d.jsxs("div",{children:[d.jsx("div",{className:"font-display text-xl",children:"Add Deductions & Advanced Inputs"}),d.jsx("div",{className:"text-sm text-fog mt-[3px]",children:"RRSP, stock options, donations, dividends, prior AMT carryforward & more."})]})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"sm:col-span-2 bg-muted/40 border border-border rounded-xl p-4",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["RRSP Contributions",d.jsx(er,{text:"Cannot exceed your RRSP deduction limit. Find your limit on your prior year Notice of Assessment or in CRA My Account."})]}),d.jsxs("div",{className:"relative",children:[d.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary font-semibold text-[0.93rem] pointer-events-none",children:"$"}),d.jsx(Wr,{value:t,onChange:c=>o("rrsp",c),placeholder:"0",min:0,className:ea+" pl-8"})]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Your RRSP Deduction Limit",d.jsx(er,{text:"Your available RRSP room from your latest CRA Notice of Assessment. We'll cap the deduction used in the AMT calculation at the lesser of your contribution and this limit."})]}),d.jsxs("div",{className:"relative",children:[d.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary font-semibold text-[0.93rem] pointer-events-none",children:"$"}),d.jsx(Wr,{value:n,onChange:c=>o("rrspLimit",c),placeholder:"From your CRA NOA",min:0,className:ea+" pl-8"})]})]})]}),u&&d.jsxs("div",{className:"mt-3 text-[0.74rem] text-danger bg-danger/10 border border-danger/30 rounded-lg px-3 py-2 leading-[1.5]",children:["â Your contribution ($",l.toLocaleStr
94ing("en-CA"),") exceeds your deduction limit ($",a.toLocaleString("en-CA"),"). The calculation will cap the deductible portion at your limit."]}),l>0&&a===0&&d.jsxs("label",{className:"mt-3 flex items-start gap-2 text-[0.76rem] text-mist cursor-pointer select-none",children:[d.jsx("input",{type:"checkbox",checked:r,onChange:c=>o("rrspConfirmed",c.target.checked?"1":""),className:"mt-[3px] accent-primary"}),d.jsx("span",{children:"I confirm this contribution does not exceed my available RRSP deduction limit."})]})]}),H2.map(c=>d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:[c.label,c.tip&&d.jsx(er,{text:c.tip})]}),d.jsxs("div",{className:"relative",children:[d.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary font-semibold text-[0.93rem] pointer-events-none",children:"$"}),d.jsx(Wr,{value:e[c.id],onChange:m=>o(c.id,m),placeholder:"0",min:0,className:ea+" pl-8"})]})]},c.id))]}),d.jsxs("div",{className:"mt-6 flex flex-col-reverse sm:flex-row gap-3",children:[d.jsx("button",{onClick:s,className:"bg-transparent border border-border text-mist rounded-lg py-[13px] px-[22px] text-[0.85rem] font-semibold cursor-pointer transition-all hover:border-foreground
94/30 hover:text-foreground sm:w-auto",children:"â Back"}),d.jsx("button",{onClick:i,className:"flex-1 bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg py-4 px-7 text-[0.95rem] font-semibold cursor-pointer border-none shadow-[0_4px_16px_rgba(70,127,247,.25)] transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(70,127,247,.35)] active:translate-y-0",children:"See My AMT Exposure â"})]}),d.jsx("p",{className:"text-center text-[0.72rem] text-fog mt-2.5",children:"All deductions optional. Skip any that don't apply."})]})},Qi="w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/15",Y2="w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/15 min-h-[100px] resize-y",G2=({fn:e,ln:t,em:n,ph:r,rev:o,cm:i,cr:s,onChange:l,onSubmit:a,onBack:u})=>d.jsxs("div",{className:"relative mb-5",children:[d.jsxs("div",{className:"bg-card border border-border rounded-[20px] p-7 blur-[6px] pointer-events-none select-none relative overflow-hidden -mb-5 z-0",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-card z-10"}),d.jsxs("div",{className:"grid grid-cols-2 gap-3.5 mb-4",children:[d.jsxs("div",{className:"bg-muted rounded-[10px] p-[18px]",children:[d.jsx("div",{className:"text-[0.68rem] uppercase tracking-[0.1em] text-fog mb-2",children:"Regular Tax"}),d.jsx("div",{className:"font-display text-3xl blur-[10px] text-mist",children:"$ââ,âââ"})]}),d.jsxs("div",{className:"bg-primary/[0.06] border border-primary/20 rounded-[10px] p-[18px]",children:[d.jsx("div",{className:"text-[0.68rem] uppercase tracking-[0.1em] text-fog mb-2",children:"AMT Owing"}),d.jsx("div",{className:"font-display text-3xl blur-[10px] text-danger",children:"$ââ,âââ"})]})]}),d.jsx("div",{className:"h-2 bg-muted rounded-full mb-3.5"}),d.jsx("div",{className:"grid grid-cols-4 gap-2.5",children:["AMT Premium","Eff. Rate","ATI Base","7-Yr Credit"].map(c=>d.jsxs("div",{className:"bg-muted rounded-lg p-3",children:[d.jsx("div",{className:"text-[0.62rem] uppercase tracking-[0.1em] text-fog",children:c}),d.jsx("div",{className:"text-base font-semibold blur-[8px] mt-1.5",children:"$ââ,âââ"})]},c))})]}),d.jsxs("div",{className:"bg-background border border-border rounded-[20px] p-8 sm:p-10 relative z-10 shadow-[0_4px_32px_rgba(0,0,0,.08)] animate-rise",children:[d.jsx("div",{className:"w-14 h-14 rounded-[14px] bg-primary/10 border border-primary/20 flex items-center justify-center text-[1.6rem] mx-auto mb-[18px]",children:"ð"}),d.jsx("div",{className:"font-display text-[1.75rem] text-center mb-2.5",children:"Your Report Is Ready"}),d.jsx("p",{className:"text-center text-[0.9rem] text-mist leading-[1.68] max-w-[440px] mx-auto mb-6 font-light",children:"Enter your name and email to instantly unlock your full AMT breakdown â line-by-line calculations, planning insights, and your 7-year recovery strategy."}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5 mb-6",children:["Full federal + provincial AMT vs. regular tax comparison","Line-by-line AMT adjustment breakdown","Personalised planning insights for your scenario","7-year AMT carryforward recovery analysis","Option to refine with advanced inputs after unlocking","Priority access to a free strategy call with Jonathan, CPA"].map((c,m)=>d.jsxs("div",{className:"flex items-start gap-[9px] bg-muted/60 border border-border rounded-[10px] py-3 px-3.5 text-[0.8rem] text-mist leading-[1.5]",children:[d.jsx("span",{className:"text-primary text-[0.55rem] mt-[3px] shrink-0",children:"â¦"}),c]},m))}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["First Name ",d.jsx("span",{className:"text-primary text-xs",children:"*"})]}
94),d.jsx("input",{type:"text",value:e,onChange:c=>l("fn",c.target.value),placeholder:"Jonathan",className:Qi})]}),d.jsxs("div",{children:[d.jsx("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:"Last Name"}),d.jsx("input",{type:"text",value:t,onChange:c=>l("ln",c.target.value),placeholder:"Smith",className:Qi})]}),d.jsxs("div",{className:"sm:col-span-2",children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Business Email ",d.jsx("span",{className:"text-primary text-xs",children:"*"})]}),d.jsx("input",{type:"email",value:n,onChange:c=>l("em",c.target.value),placeholder:"[email protected]",className:Qi})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Phone ",d.jsx("span",{className:"text-fog text-[0.72rem]",children:"(optional)"})]}),d.jsx("input",{type:"tel",value:r,onChange:c=>l("ph",c.target.value),placeholder:"+1 (647) 000-0000",className:Qi})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Revenue Range ",d.jsx("span",{className:"text-fog text-[0.72rem]",children:"(optional)"})]}),d.jsxs("select",{value:o,onChange:c=>l("rev",c.target.value),className:"w-full bg-background border border-border rounded-lg px-4 py-3 text-[0.95rem] font-body text-foreground outline-none transition-all focus:border-primary focus:ring-2 focus:ring-primary/15 cursor-pointer",children:[d.jsx("option",{value:"",children:"Select"}),d.jsx("option",{children:"Under $1M"}),d.jsx("option",{children:"$1M to $5M"}),d.jsx("option",{children:"$5M to $15M"}),d.jsx("option",{children:"$15M to $30M"}),d.jsx("option",{children:"$30M to $50M"}),d.jsx("option",{children:"$50M+"})]})]}),d.jsx("div",{className:"sm:col-span-2",children:d.jsxs("label",{className:"flex items-start gap-2.5 text-[0.8rem] font-medium text-mist cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s==="true",onChange:c=>l("cr",String(c.target.checked)),className:"mt-0.5 w-4 h-4 rounded border-border text-primary focus:ring-primary/15 shrink-0 cursor-pointer"}),d.jsx("span",{children:"Please select if you would like us to reach out to you and how we can be of help."})]})}),d.jsxs("div",{className:"sm:col-span-2",children:[d.jsxs("label",{className:"flex items-center gap-1.5 text-[0.8rem] font-medium text-mist mb-2",children:["Comments ",d.jsx("span",{className:"text-fog text-[0.72rem]",children:"(optional)"})]}),d.jsx("textarea",{value:i,onChange:c=>l("cm",c.target.value),placeholder:"How can we help you further?",className:Y2})]}),d.jsxs("div",{className:"sm:col-span-2 mt-1",children:[d.jsx("button",{onClick:a,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg py-4 px-7 text-[0.95rem] font-semibold cursor-pointer border-none shadow-[0_4px_16px_rgba(70,127,247,.25)] transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(70,127,247,.35)] active:translate-y-0",children:"ð Â Unlock My Full AMT Report"}),d.jsx("p",{className:"text-center text-[0.71rem] text-fog mt-3",children:"ð Private. Never shared. No spam."})]})]}),d.jsx("div",{className:"mt-4",children:d.jsx("button",{onClick:u,className:"bg-transparent border border-border text-mist rounded-lg py-[11px] px-[18px] text-[0.82rem] font-semibold cursor-pointer transition-all hover:border-foreground
94/30 hover:text-foreground",children:"â Adjust my inputs"})})]})]}),K2=({result:e,firstName:t,refineValues:n,onBack:r,onNext:o})=>{const i=B2(e,parseFloat(n.ii)||0,parseFloat(n.don)||0),s=e.applies?Math.min(100,32+e.prem/5e4*68):Math.min(22,4+e.aFedNet/Math.max(e.rFedNet,1)*18),l=e.applies?e.prem>1e5?"Significant":e.prem>3e4?"High":"Moderate":"Low / None";return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"bg-card border border-border rounded-[20px] p-7 sm:p-9 mb-5 shadow-[0_4px_24px_rgba(0,0,0,.06)] animate-rise",children:[d.jsxs("div",{className:"text-center pb-7 border-b border-border mb-6",children:[d.jsxs("div",{className:"text-[0.72rem] font-semibold tracking-[0.16em] uppercase text-primary mb-2.5",children:[t.toUpperCase(),"'S ",e.yr," AMT REPORT"]}),d.jsxs("div",{className:"font-display text-[1.9rem] mb-1.5 leading-tight",children:[t,"'s AMT Analysis"]}),d.jsxs("div",{className:"text-[0.83rem] text-fog font-light",children:["Federal + ",e.prov," provincial estimates · ",e.yr," rates"]})]}),d.jsxs("div",{className:`flex items-start gap-4 roun
94ded-[14px] p-5 mb-5 animate-rise ${e.applies?"bg-destructive/5 border border-destructive/20":"bg-success/10 border border-success/20"}`,children:[d.jsx("div",{className:"text-[2rem] shrink-0 leading-none",children:e.applies?"â ï¸":"â
"}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[1.05rem] font-semibold mb-1",children:e.applies?`AMT Applies: ${Me(e.prem)} extra owing`:"AMT Does Not Apply This Year"}),d.jsx("div",{className:"text-[0.84rem] text-mist leading-[1.65]",children:e.applies?`Your federal minimum amount (${Me(e.aFedNet)}) exceeds your regular federal tax (${Me(e.rFedNet)}) by ${Me(e.prem)}. This AMT premium is a credit recoverable over the next 7 years, but only with the right plan in place.`:`Your federal minimum amount (${Me(e.aFedNet)}) is below your regular federal tax (${Me(e.rFedNet)}), so no AMT applies this year. However your inputs show a significant transaction â proactive structuring keeps it this way.`})]})]}),d.jsxs("div",{className:"bg-primary/[0.06] border border-primary/15 rounded-[14px] p-6 mb-5 flex items-center justify-between gap-5 flex-wrap",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"font-display text-xl mb-1",children:"Turn This Into a Strategy"}),d.jsx("p",{className:"text-[0.82rem] text-mist leading-[1.6] max-w-[400px] font-light",children:"Jonathan and the JS CPA Strategic Solutions team help 7â to 8âfigure Canadian founders reduce AMT exposure before deals close â not after. Book a free 30-min session."})]}),d.jsx("a",{href:"https://cpastrategicsolutions.com/contact/",target:"_blank",rel:"noopener noreferrer",onClick:()=>window.parent.postMessage({event:"jscpa_amt_cta_click"},"*"),children:d.jsx("button",{className:"bg-primary hover:bg-primary/90 text-primary-foreground py-3 px-6 rounded-[10px] font-body text-[0.9rem] font-bold cursor-pointer border-none whitespace-nowrap shadow-[0_4px_16px_rgba(70,127,247,.25)] transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(70,127,247,.35)]",children:"Book Free Strategy Call"})})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3.5 mb-5",children:[d.jsxs("div",{className:"bg-muted/60 border border-border rounded-[13px] p-5",children:[d.jsx("div",{className:"text-[0.68rem] uppercase tracking-[0.1em] text-fog mb-2",children:"Regular Tax (Fed + Prov.)"}),d.jsx("div",{className:"font-display text-[1.85rem]",children:Me(e.rTot)}),d.jsx("div",{className:"text-xs text-fog mt-1",children:"Standard marginal-rate result"})]}),d.jsxs("div",{className:"bg-primary/[0.06] border border-primary/15 rounded-[13px] p-5",children:[d.jsx("div",{className:"text-[0.68rem] uppercase tracking-[0.1em] text-fog mb-2",children:"Alternative Minimum Tax"}),d.jsx("div",{className:`font-display text-[1.85rem] ${e.applies?"text-destructive":"text-success"}`,children:Me(e.aFedNet)}),d.jsx("div",{className:"text-xs text-fog mt-1",children:"Federal minimum amount (T691)"})]})]}),d.jsxs("div",{className:"mb-5",children:[d.jsxs("div",{className:"flex justify-between mb-[7px] text-[0.79rem]",children:[d.jsx("span",{className:"text-mist",children:"AMT Exposure Level"}),d.jsx("span",{className:"text-primary font-semibold",children:l})]}),d.jsx("div",{className:"h-[9px] bg-muted rounded-full overflow-hidden",children:d.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-success via-primary to-destructive transition-all duration-1000",style:{width:`${s}%`}})}),d.jsx("div",{className:"flex justify-between mt-1",children:["None","Low","Moderate","High","Significant"].map(a=>d.jsx("span",{className:"text-[0.62rem] text-fog",children:a},a))})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-2",children:[d.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg p-4",children:[d.jsx("div",{className:"text-[0.67rem] uppercase tracking-[0.09em] text-fog mb-[5px]",children:"AMT Premium Owing"}),d.jsx("div",{className:`text-lg font-semibold ${e.prem>0?"text-destructive":"text-success"}`,children:Me(e.prem)}),d.jsx("div",{className:"text-[0.71rem] text-fog mt-[3px]",children:"Extra tax vs. regular"})]}),d.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg p-4",children:[d.jsx("div",{className:"text-[0.67rem] uppercase tracking-[0.09em] text-fog mb-[5px]",children:"Effective Tax Rate"}),d.jsx("div",{className:"text-lg font-semibold",children:$2(e.eff)}),d.jsx("div",{className:"text-[0.71rem] text-fog mt-[3px]",children:"On total income inc. gains"})]}),d.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg p-4",children:[d.jsx("div",{className:"text-[0.67rem] uppercase tracking-[0.09em] text-fog mb-[5px]",children:"AMT Adjusted Income"}),d.jsx("div",{className:"text-lg font-semibold",children:Me(e.ATI)}),d.jsx("div",{className:"text-[0.71rem] text-fog mt-[3px]",children:"Base for AMT calculation"})]}),d.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg p-4",children:[d.jsx("div",{className:"text-[0.67rem] uppercase tracking-[0.09em] text-fog mb-[5px]",children:"7-Yr Carryforward Credit"}),d.jsx("div",{className:"text-lg font-semibold",children:e.cf>0?Me(e.cf):"None"}),d.jsx("div",{className:"text-[0.71rem] text-fog mt-[3px]",children:"Recoverable vs. future tax"})]})]})]}),d.jsxs("div",{className:"bg-card border border-border rounded-[20px] p-7 sm:p-9 mb-5 shadow-[0_4px_24px_rgba(0,0,0,.06)] animate-rise",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-5 pb-[18px] border-b border-border",children:[d.jsx("div",{className:"w-[38px] h-[38px] rounded-[9px] bg-primary/10 border border-primary/20 flex items-center justify-center text-base shrink-0",children:"ðºï¸"}),d.jsxs("div",{children:[d.jsx("div",{className:"font-display text-xl",children:"What This Means For You"}),d.jsx("div",{className:"text-[0.79rem] text-fog mt-[2px]",children:"Based on your specific inputs â not generic advice."})]})]}),d.jsx("div",{className:"space-y-3",children:i.map((a,u)=>d.jsxs("div",{className:"flex gap-[13px] bg-muted/50 border border-border rounded-lg p-4",children:[d.jsx("div",{className:"text-xl shrink-0 mt-[1px]",children:a.icon}),d.jsxs("div",{children:[d.jsx("div",{className:"font-semibold text-[0.88rem] mb-[3px]",children:a.title}),d.jsx("div",{className:"text-[0.8rem] text-mist leading-[1.62]",children:a.body})]})]},u))})]}),d.jsxs("div",{className:"flex gap-3 mt-6 mb-6",children:[d.jsx("button",{onClick:r,className:"bg-transparent border border-border text-mist rounded-lg py-3 px-5 text-[0.95rem] font-semibold cursor-pointer transition-all hover:border-foreground
94/30 hover:text-foreground",children:"â Adjust my inputs"}),d.jsx("button",{onClick:o,className:"flex-1 bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg py-3 px-7 text-[0.95rem] font-semibold cursor-pointer border-none shadow-[0_4px_16px_rgba(70,127,247,.25)] transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(70,127,247,.35)] active:translate-y-0",children:"What Happens Next â"})]})]})},X2=({firstName:e})=>d.jsx("div",{className:"bg-card border border-border rounded-[20px] p-7 sm:p-9 mb-5 shadow-[0_4px_24px_rgba(0,0,0,.06)] animate-rise",children:d.jsxs("div",{className:"text-center py-6 px-5",children:[d.jsx("div",{className:"text-[3.2rem] mb-4",children:"â
"}),d.jsxs("h2",{className:"font-display text-[1.9rem] mb-3",children:["You're all set, ",e]}),d.jsx("p",{className:"text-mist text-[0.88rem] leading-[1.7] max-w-[420px] mx-auto mb-5 font-light",children:"Jonathan and the JS CPA team will reach out within 1 business day to schedule your complimentary strategy session."}),d.jsx("p",{className:"text-[0.8rem] text-fog -mt-2 mb-5",children:"In the meantime, explore our M&A and tax planning resources below."}),d.jsxs("div",{className:"flex gap-3 justify-center flex-wrap",children:[d.jsx("a",{href:"https://cpastrategicsolutions.com/blogs/",target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:d.jsx("button",{className:"bg-transparent border border-border text-mist rounded-lg py-3 px-5 font-body text-[0.95rem] font-semibold cursor-pointer transition-all hover:border-foreground
94/30 hover:text-foreground",children:"Read Our Blog â"})}),d.jsx("a",{href:"https://cpastrategicsolutions.com/ma-advisory/",target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:d.jsx("button",{className:"bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg py-3 px-5 font-body text-[0.95rem] font-semibold cursor-pointer border-none shadow-[0_4px_16px_rgba(70,127,247,.25)] transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(70,127,247,.35)]",children:"M&A Advisory â"})})]})]})}),Cf=e=>{var t;try{(t=window.parent)==null||t.postMessage({event:e},"*")}catch{}};let Nf=!1;const q2=()=>{const[e,t]=b.useState(1),[n,r]=b.useState({prov:"ON",yr:"2026",sal:"",cg:"",cgType:"QSBCS",lcge:"",fn:"",ln:"",em:"",ph:"",rev:"",cm:"",cr:"false",so:"",don:"",donSec:"",ii:"",cl:"",abil:"",rrsp:"",rrspLimit:"",rrspConfirmed:"",amtcf:"",de:"",dne:""}),[o,i]=b.useState(null),[s,l]=b.useState(""),a=b.useCallback((w,v)=>{Nf||(Nf=!0,Cf("jscpa_amt_cal_start")),r(x=>({...x,[w]:v}))},[]),u=w=>{t(w),window.scrollTo({top:0,behavior:"smooth"})},c=()=>{if(!n.prov){alert("Please select your province.");return}const w=parseFloat(n.cg)||0,v=parseFloat(n.sal)||0,x=parseFloat(n.lcge)||0;if(w===0&&v===0&&x===0){alert("Please enter at least one income or gain figure.");return}u(2)},m=()=>{u(3)},h=b.useCallback(()=>{const w=parseFloat(n.rrsp)||0,v=parseFloat(n.rrspLimit)||0,x=v>0?Math.min(w,v):w,g=n.cgType||"QSBCS",f=g!=="Other";return{yr:n.yr,prov:n.prov||"ON",sal:parseFloat(n.sal)||0,cg:parseFloat(n.cg)||0,cgType:g,lcge:f?Math.min(parseFloat(n.lcge)||0,P0[n.yr]||125e4):0,so:parseFloat(n.so)||0,don:parseFloat(n.don)||0,donSec:parseFloat(n.donSec)||0,ii:parseFloat(n.ii)||0,cl:parseFloat(n.cl)||0,abil:parseFloat(n.abil)||0,rrsp:x,de:parseFloat(n.de)||0,dne:parseFloat(n.dne)||0,amtcf:parseFloat(n.amtcf)||0}},[n]);b.useEffect(()=>{o&&i(Ef(h()))},[n]);const p=()=>{var _;const w=n.fn.trim(),v=n.em.trim();if(!w){alert("Please enter your first name.");return}if(!v||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)){alert("Please enter a valid email.");return}l(w);const x=h(),g=Ef(x);i(g);const f=z=>{const $=typeof z=="number"&&Number.isFinite(z)?z:0;return"$"+Math.round($).toLocaleString("en-CA")},y=z=>(z*100).toFixed(2)+"%",S=((_=R0.find(z=>z.value===x.prov))==null?void 0:_.label)||x.prov,C={QSBCS:"QSBC shares (small business) â LCGE eligible",Farm:"Qualified farm property â LCGE eligible",Fishing:"Qualified fishing property â LCGE eligible",Other:"Other gain (public shares, real estate, etc.)"}[x.cgType||"QSBCS"],N={Province:S,"Tax Year":String(x.yr),"Employment / Business Income":f(x.sal),"Capital Gain on Sale":f(x.cg),"Capital Gain Type":C,"LCGE Claimed (Lifetime Capital Gains Exemption)":f(x.lcge),"Stock Option Benefit (T4 Box 38)":f(x.so),"Charitable Donations (cash)":f(x.don),"Donated Publicly-Listed Securities (gain portion)":f(x.donSec),"Investment Interest Expense":f(x.ii),"Capital Loss Carryforward":f(x.cl),"Allowable Business Investment Loss (ABIL)":f(x.abil),"RRSP Contributions (effective, capped at limit)":f(x.rrsp),"Eligible Dividends":f(x.de),"Non-Eligible Dividends":f(x.dne),"Capital Gains Exemption Election Income (CEI)":"Not needed"},R={"AMT Applies":g.applies?"Yes":"No","AMT Premium Owing":f(g.prem),"Regular Tax (Federal + Provincial)":f(g.rTot),"Regular Federal Tax (net)":f(g.rFedNet),"Regular Provincial Tax":f(g.rProvTax),"Federal Minimum Amount (AMT, T691)":f(g.aFedNet),"Estimated Provincial AMT":f(g.aProvTax),"Total Tax If AMT Applies":f(g.aTotPay),"AMT Adjusted Taxable Income (ATI)":f(g.ATI),"AMT Base After Exemption":f(g.nATI),"AMT Basic Exemption":f(g.EX),"Effective Tax Rate":y(g.eff),"7-Year Carryforward Credit":f(g.cf),"Prior AMT Recovered This Year":f(g.cfRecovered),"Quebec Estimate Flag":g.qcEstimate?"Yes (Revenu Québec uses a separate system)":"No"},O=z=>Object.entries(z).map(([$,U])=>`<tr><td style="padding:8px 12px;border-bottom:1px solid #eaeaea;color:#555;font-size:13px;">${$}</td><td style="padding:8px 12px;border-bottom:1px solid #eaeaea;color:#111;font-size:13px;font-weight:600;text-align:right;">${U}</td></tr>`).join(""),M=g.applies?`<div style="background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:14px 16px;margin:14px 0;color:#991b1b;font-size:14px;"><strong>â ï¸ AMT Applies â ${f(g.prem)} extra owing.</strong> Your federal minimum amount (${f(g.aFedNet)}) exceeds your regular federal tax (${f(g.rFedNet)}).</div>`:`<div style="background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;padding:14px 16px;margin:14px 0;color:#065f46;font-size:14px;"><strong>â AMT Does Not Apply This Year.</strong> Federal minimum (${f(g.aFedNet)}) is below regular federal tax (${f(g.rFedNet)}).</div>`,B=`<div style="font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;max-width:640px;margin:0 auto;color:#111;"> 95 <h2 style="font-size:20px;margin:0 0 4px;">${w}'s ${x.yr} AMT Report</h2>
96 <div style="color:#666;font-size:13px;margin-bottom:8px;">Federal + ${S} provincial estimates · ${x.yr} rates</div> 97 ${M} 98 <h3 style="font-size:15px;margin:18px 0 6px;color:#111;">Your Inputs</h3> 99 <table style="width:100%;border-collapse:collapse;border:1px solid #eaeaea;border-radius:8px;overflow:hidden;">${O(N)}</table> 100 <h3 style="font-size:15px;margin:18px 0 6px;color:#111;">Your Results</h3> 101 <table style="width:100%;border-collapse:collapse;border:1px solid #eaeaea;border-radius:8px;overflow:hidden;">${O(R)}</table> 102 <p style="font-size:11px;color:#888;margin-top:14px;line-height:1.6;">Educational tool only. Results are estimates using ${x.yr} indexed projections â not tax advice. Provincial figures are simplified. Always consult a qualified CPA before making financial or filing decisions.</p> 103 <p style="font-size:12px;color:#444;margin-top:10px;"><strong>JS CPA Strategic Solutions</strong> · 101-320 Bay Street, Toronto ON M5H 4A6 · 647-980-4955 · [email protected]</p> 104</div>`,I=n.cr==="true",W={lead:{"First Name":w,"Last Name":n.ln.trim(),Email:v,Phone:n.ph,"Annual Revenue":n.rev,"Would you like us to reach out?":I?"Yes":"No","Comments / How can we help you further?":n.cm.trim()||"Not provided"},inputs:N,result:R,contact_requested:I,outputHtml:B,submittedAt:new Date().toISOString()};console.log("ð JS CPA Strategic Solutions Lead:",W),fetch("https://hook.us2.make.com/int70ai7osr42sb9tljpq2ka0tcwcq7m",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(W)}).then(z=>{z.ok&&Cf("jscpa_amt_lead_submit")}).catch(z=>console.error("Webhook error:",z)),u(4)};return d.jsxs("div",{className:"max-w-[780px] mx-auto px-5 relative z-[1]",children:[d.jsxs("header",{className:"flex items-center justify-between h-[68px] mt-4",children:[d.jsxs("a",{href:"https://cpastrategicsolutions.com/",target:"_blank",rel:"noreferrer",className:"flex items-center gap-3 no-underline",children:[d.jsx("div",{className:"bg-primary text-primary-foreground font-bold text-sm w-[38px] h-[38px] rounded-md flex items-center justify-center",children:"JS"}),d.jsxs("div",{className:"hidden sm:flex flex-col leading-tight",children:[d.jsx("span",{className:"text-[14.5px] font-semibold text-foreground tracking-wide",children:"JS CPA Strategic Solutions"}),d.jsx("span",{className:"text-[10.5px] text-mist font-light tracking-wide",children:"M&A Advisory  | CFO Services  | Tax Strategy"})]})]}),d.jsx("a",{href:"https://cpastrategicsolutions.com/contact/",target:"_blank",rel:"noreferrer",className:"border border-border text-foreground text-[13px] font-medium px-5 py-2 rounded-md hover:border-primary hover:bg-primary/10 hover:text-primary transition-colors no-underline",children:"Talk With Our Team"})]}),d.jsxs("div",{className:"py-[52px] pb-11 text-center",children:[d.jsxs("div",{className:"text-[0.7rem] font-semibold tracking-[0.2em] uppercase text-primary mb-[18px] flex items-center justify-center gap-3",children:[d.jsx("span",{className:"h-px w-8 bg-primary/40"}),"Free AMT Diagnostic",d.jsx("span",{className:"h-px w-8 bg-primary/40"})]}),d.jsxs("h1",{className:"font-display text-[clamp(1.9rem,5vw,3rem)] leading-[1.13] tracking-[-0.01em] mb-4",children:["Is ",d.jsx("em",{className:"not-italic text-primary",children:"Alternative Minimum Tax"}),d.jsx("br",{}),"quietly draining your exit?"]}),d.jsx("p",{className:"text-[0.97rem] leading-[1.72] text-mist max-w-[520px] mx-auto mb-8 font-light",children:"A few quick inputs. Instant AMT exposure report personalised to your province, tax year, and deal type. Used by Canadian founders planning exits, acquisitions, and LCGE claims."}),d.jsx("div",{className:"flex flex-wrap gap-2 justify-center mb-11",children:[{bold:"20.5%",text:"AMT rate"},{bold:"$1.275M",text:"LCGE 2026"},{bold:"",text:"2026 rates (est.)"},{bold:"",text:"All 10 provinces"},{bold:"",text:"M&A / Exit focus"}].map((w,v)=>d.jsxs("div",{className:"bg-muted/60 border border-border rounded-lg py-1.5 px-3.5 text-[0.74rem] text-mist flex items-center gap-1.5",children:[d.jsx("span",{className:"w-[5px] h-[5px] rounded-full bg-primary shrink-0"}),w.bold&&d.jsx("strong",{className:"text-foreground",children:w.bold}),w.text]},v))})]}),d.jsx(U2,{currentStep:e>4?4:e}),e===1&&d.jsx(W2,{prov:n.prov,yr:n.yr,sal:n.sal,cg:n.cg,cgType:n.cgType,lcge:n.lcge,onChange:a,onSubmit:c}
104),e===2&&d.jsx(Q2,{so:n.so,don:n.don,donSec:n.donSec,ii:n.ii,cl:n.cl,abil:n.abil,rrsp:n.rrsp,rrspLimit:n.rrspLimit,rrspConfirmed:!!n.rrspConfirmed,amtcf:n.amtcf,de:n.de,dne:n.dne,onChange:a,onSubmit:m,onBack:()=>u(1)}),e===3&&d.jsx(G2,{fn:n.fn,ln:n.ln,em:n.em,ph:n.ph,rev:n.rev,cm:n.cm,cr:n.cr,onChange:a,onSubmit:p,onBack:()=>u(2)}),e===4&&o&&d.jsx(K2,{result:o,firstName:s,refineValues:n,onBack:()=>u(2),onNext:()=>u(5)}),e===5&&d.jsx(X2,{firstName:s}),d.jsx("p",{className:"text-[0.7rem] text-fog text-center leading-[1.6] px-3.5 mb-8",children:"Educational tool only. Results are estimates using 2026 indexed projections â not tax advice. Provincial figures are simplified. Always consult a qualified CPA before making financial or filing decisions."}),d.jsxs("footer",{className:"text-center py-5 pb-9 text-[0.72rem] text-fog border-t border-border",children:[d.jsx("strong",{className:"text-primary",children:"JS CPA Strategic Solutions"}),"  | 101-320 Bay Street, Toronto ON M5H 4A6  | ",d.jsx("a",{href:"tel:6479804955",className:"text-primary no-underline hover:text-primary/80",children:"647-980-4955"}),"  | ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary no-underline hover:text-primary/80",children:"[email protected]"}),d.jsx("br",{}),d.jsx("br",{}),"© 2026 JS CPA Strategic Solutions · All rights reserved ·"," ",d.jsx("a",{href:"https://cpastrategicsolutions.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"text-primary no-underline hover:text-primary/80",children:"Privacy Policy"})]})]})},J2=()=>{const e=dh();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),d.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},Z2=new jy,eS=()=>d.jsx(My,{client:Z2,children:d.jsxs(w2,{children:[d.jsx(Lw,{}),d.jsx(Kx,{}),d.jsx(vx,{children:d.jsxs(mx,{children:[d.jsx(qa,{path:"/",element:d.jsx(q2,{})}),d.jsx(qa,{path:"*",element:d.jsx(J2,{})})]})})]})});Km(document.getElementById("root")).render(d.jsx(eS,{}));
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.