strade-stx 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -1
- package/contracts/CoreMarketPlace.clar +0 -227
- package/contracts/DisputeResolution_clar.clar +0 -265
- package/contracts/EscrowService.clar +0 -171
- package/contracts/UserProfile.clar +0 -280
- package/contracts/ft-trait.clar +0 -24
- package/contracts/token.clar +0 -178
- package/frontend/README.md +0 -10
- package/frontend/components.json +0 -22
- package/frontend/dist/assets/index-BacuuL66.css +0 -1
- package/frontend/dist/assets/index-jryypd5B.js +0 -194
- package/frontend/dist/favicon.png +0 -0
- package/frontend/dist/index.html +0 -15
- package/frontend/dist/manifest.json +0 -15
- package/frontend/dist/vite.svg +0 -1
- package/frontend/empty-mock.js +0 -1
- package/frontend/eslint.config.js +0 -23
- package/frontend/eslint.config.mjs +0 -25
- package/frontend/index.html +0 -14
- package/frontend/next.config.ts +0 -17
- package/frontend/package-lock.json +0 -14740
- package/frontend/package.json +0 -56
- package/frontend/postcss.config.js +0 -5
- package/frontend/postcss.config.mjs +0 -5
- package/frontend/public/favicon.png +0 -0
- package/frontend/public/file.svg +0 -1
- package/frontend/public/globe.svg +0 -1
- package/frontend/public/manifest.json +0 -15
- package/frontend/public/next.svg +0 -1
- package/frontend/public/vercel.svg +0 -1
- package/frontend/public/vite.svg +0 -1
- package/frontend/public/window.svg +0 -1
- package/frontend/src/App.css +0 -42
- package/frontend/src/App.tsx +0 -177
- package/frontend/src/app/about/page.tsx +0 -208
- package/frontend/src/app/favicon.ico +0 -0
- package/frontend/src/app/globals.css +0 -129
- package/frontend/src/app/help/page.tsx +0 -167
- package/frontend/src/app/how-it-works/page.tsx +0 -274
- package/frontend/src/app/layout.tsx +0 -55
- package/frontend/src/app/marketplace/page.tsx +0 -324
- package/frontend/src/app/my-listings/page.tsx +0 -318
- package/frontend/src/app/page.tsx +0 -15
- package/frontend/src/assets/react.svg +0 -1
- package/frontend/src/components/ConfirmDialog.tsx +0 -54
- package/frontend/src/components/CreateListingForm.tsx +0 -231
- package/frontend/src/components/ErrorBoundary.tsx +0 -73
- package/frontend/src/components/FilterPanel.tsx +0 -10
- package/frontend/src/components/Footer.tsx +0 -100
- package/frontend/src/components/Header.tsx +0 -268
- package/frontend/src/components/ImageUpload.tsx +0 -147
- package/frontend/src/components/LandingPage.tsx +0 -322
- package/frontend/src/components/ListingCard.tsx +0 -154
- package/frontend/src/components/LoadingSkeleton.tsx +0 -44
- package/frontend/src/components/MobileNav.tsx +0 -89
- package/frontend/src/components/NotificationBell.tsx +0 -8
- package/frontend/src/components/NotificationPanel.tsx +0 -14
- package/frontend/src/components/README.md +0 -14
- package/frontend/src/components/SearchBar.tsx +0 -10
- package/frontend/src/components/TestnetBanner.tsx +0 -29
- package/frontend/src/components/ThemeToggle.tsx +0 -32
- package/frontend/src/components/__tests__/Header.test.tsx +0 -70
- package/frontend/src/components/__tests__/ListingCard.test.tsx +0 -86
- package/frontend/src/components/providers/ThemeProvider.tsx +0 -9
- package/frontend/src/components/ui/alert-dialog.tsx +0 -141
- package/frontend/src/components/ui/avatar.tsx +0 -53
- package/frontend/src/components/ui/badge.tsx +0 -46
- package/frontend/src/components/ui/button.tsx +0 -60
- package/frontend/src/components/ui/card.tsx +0 -92
- package/frontend/src/components/ui/dialog.tsx +0 -143
- package/frontend/src/components/ui/dropdown-menu.tsx +0 -257
- package/frontend/src/components/ui/input.tsx +0 -21
- package/frontend/src/components/ui/label.tsx +0 -24
- package/frontend/src/components/ui/select.tsx +0 -187
- package/frontend/src/components/ui/sonner.tsx +0 -40
- package/frontend/src/components/ui/textarea.tsx +0 -18
- package/frontend/src/context/README.md +0 -27
- package/frontend/src/index.css +0 -166
- package/frontend/src/lib/notificationEvents.ts +0 -10
- package/frontend/src/lib/notificationStore.ts +0 -13
- package/frontend/src/lib/notifications.ts +0 -13
- package/frontend/src/lib/search.ts +0 -28
- package/frontend/src/lib/stacks.ts +0 -189
- package/frontend/src/lib/utils.ts +0 -6
- package/frontend/src/main.tsx +0 -10
- package/frontend/src/test/setup.ts +0 -23
- package/frontend/src/types.d.ts +0 -9
- package/frontend/tsconfig.app.json +0 -28
- package/frontend/tsconfig.json +0 -41
- package/frontend/tsconfig.node.json +0 -26
- package/frontend/vercel.json +0 -4
- package/frontend/vite.config.ts +0 -6
- package/frontend/vitest.config.ts +0 -17
- package/scripts/auto-activity.sh +0 -9
- package/scripts/cancel-pending.ts +0 -67
- package/scripts/check-balances.ts +0 -23
- package/scripts/distribute-evenly.ts +0 -56
- package/scripts/drain-accounts.ts +0 -70
- package/scripts/fund-accounts.ts +0 -88
- package/scripts/fund-active.ts +0 -59
- package/scripts/fund-unfunded.ts +0 -88
- package/scripts/generate-activity.ts +0 -181
- package/scripts/git-activity-generator.ts +0 -154
- package/scripts/mobile-server.ts +0 -123
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function o(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(l){if(l.ep)return;l.ep=!0;const f=o(l);fetch(l.href,f)}})();var Cl={exports:{}},gi={},Pl={exports:{}},se={};var th;function $v(){if(th)return se;th=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,M={};function D(k,I,oe){this.props=k,this.context=I,this.refs=M,this.updater=oe||P}D.prototype.isReactComponent={},D.prototype.setState=function(k,I){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,I,"setState")},D.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function _(){}_.prototype=D.prototype;function N(k,I,oe){this.props=k,this.context=I,this.refs=M,this.updater=oe||P}var V=N.prototype=new _;V.constructor=N,A(V,D.prototype),V.isPureReactComponent=!0;var H=Array.isArray,U=Object.prototype.hasOwnProperty,ee={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function $(k,I,oe){var le,fe={},de=null,ye=null;if(I!=null)for(le in I.ref!==void 0&&(ye=I.ref),I.key!==void 0&&(de=""+I.key),I)U.call(I,le)&&!J.hasOwnProperty(le)&&(fe[le]=I[le]);var pe=arguments.length-2;if(pe===1)fe.children=oe;else if(1<pe){for(var Se=Array(pe),ct=0;ct<pe;ct++)Se[ct]=arguments[ct+2];fe.children=Se}if(k&&k.defaultProps)for(le in pe=k.defaultProps,pe)fe[le]===void 0&&(fe[le]=pe[le]);return{$$typeof:n,type:k,key:de,ref:ye,props:fe,_owner:ee.current}}function ae(k,I){return{$$typeof:n,type:k.type,key:I,ref:k.ref,props:k.props,_owner:k._owner}}function ce(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function ze(k){var I={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(oe){return I[oe]})}var Qe=/\/+/g;function Xe(k,I){return typeof k=="object"&&k!==null&&k.key!=null?ze(""+k.key):I.toString(36)}function nt(k,I,oe,le,fe){var de=typeof k;(de==="undefined"||de==="boolean")&&(k=null);var ye=!1;if(k===null)ye=!0;else switch(de){case"string":case"number":ye=!0;break;case"object":switch(k.$$typeof){case n:case r:ye=!0}}if(ye)return ye=k,fe=fe(ye),k=le===""?"."+Xe(ye,0):le,H(fe)?(oe="",k!=null&&(oe=k.replace(Qe,"$&/")+"/"),nt(fe,I,oe,"",function(ct){return ct})):fe!=null&&(ce(fe)&&(fe=ae(fe,oe+(!fe.key||ye&&ye.key===fe.key?"":(""+fe.key).replace(Qe,"$&/")+"/")+k)),I.push(fe)),1;if(ye=0,le=le===""?".":le+":",H(k))for(var pe=0;pe<k.length;pe++){de=k[pe];var Se=le+Xe(de,pe);ye+=nt(de,I,oe,Se,fe)}else if(Se=w(k),typeof Se=="function")for(k=Se.call(k),pe=0;!(de=k.next()).done;)de=de.value,Se=le+Xe(de,pe++),ye+=nt(de,I,oe,Se,fe);else if(de==="object")throw I=String(k),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.");return ye}function ut(k,I,oe){if(k==null)return k;var le=[],fe=0;return nt(k,le,"","",function(de){return I.call(oe,de,fe++)}),le}function Ze(k){if(k._status===-1){var I=k._result;I=I(),I.then(function(oe){(k._status===0||k._status===-1)&&(k._status=1,k._result=oe)},function(oe){(k._status===0||k._status===-1)&&(k._status=2,k._result=oe)}),k._status===-1&&(k._status=0,k._result=I)}if(k._status===1)return k._result.default;throw k._result}var ie={current:null},z={transition:null},q={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:z,ReactCurrentOwner:ee};function W(){throw Error("act(...) is not supported in production builds of React.")}return se.Children={map:ut,forEach:function(k,I,oe){ut(k,function(){I.apply(this,arguments)},oe)},count:function(k){var I=0;return ut(k,function(){I++}),I},toArray:function(k){return ut(k,function(I){return I})||[]},only:function(k){if(!ce(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},se.Component=D,se.Fragment=o,se.Profiler=l,se.PureComponent=N,se.StrictMode=a,se.Suspense=p,se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,se.act=W,se.cloneElement=function(k,I,oe){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var le=A({},k.props),fe=k.key,de=k.ref,ye=k._owner;if(I!=null){if(I.ref!==void 0&&(de=I.ref,ye=ee.current),I.key!==void 0&&(fe=""+I.key),k.type&&k.type.defaultProps)var pe=k.type.defaultProps;for(Se in I)U.call(I,Se)&&!J.hasOwnProperty(Se)&&(le[Se]=I[Se]===void 0&&pe!==void 0?pe[Se]:I[Se])}var Se=arguments.length-2;if(Se===1)le.children=oe;else if(1<Se){pe=Array(Se);for(var ct=0;ct<Se;ct++)pe[ct]=arguments[ct+2];le.children=pe}return{$$typeof:n,type:k.type,key:fe,ref:de,props:le,_owner:ye}},se.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:f,_context:k},k.Consumer=k},se.createElement=$,se.createFactory=function(k){var I=$.bind(null,k);return I.type=k,I},se.createRef=function(){return{current:null}},se.forwardRef=function(k){return{$$typeof:h,render:k}},se.isValidElement=ce,se.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:Ze}},se.memo=function(k,I){return{$$typeof:g,type:k,compare:I===void 0?null:I}},se.startTransition=function(k){var I=z.transition;z.transition={};try{k()}finally{z.transition=I}},se.unstable_act=W,se.useCallback=function(k,I){return ie.current.useCallback(k,I)},se.useContext=function(k){return ie.current.useContext(k)},se.useDebugValue=function(){},se.useDeferredValue=function(k){return ie.current.useDeferredValue(k)},se.useEffect=function(k,I){return ie.current.useEffect(k,I)},se.useId=function(){return ie.current.useId()},se.useImperativeHandle=function(k,I,oe){return ie.current.useImperativeHandle(k,I,oe)},se.useInsertionEffect=function(k,I){return ie.current.useInsertionEffect(k,I)},se.useLayoutEffect=function(k,I){return ie.current.useLayoutEffect(k,I)},se.useMemo=function(k,I){return ie.current.useMemo(k,I)},se.useReducer=function(k,I,oe){return ie.current.useReducer(k,I,oe)},se.useRef=function(k){return ie.current.useRef(k)},se.useState=function(k){return ie.current.useState(k)},se.useSyncExternalStore=function(k,I,oe){return ie.current.useSyncExternalStore(k,I,oe)},se.useTransition=function(){return ie.current.useTransition()},se.version="18.3.1",se}var nh;function Su(){return nh||(nh=1,Pl.exports=$v()),Pl.exports}var rh;function Wv(){if(rh)return gi;rh=1;var n=Su(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(h,p,g){var y,v={},w=null,P=null;g!==void 0&&(w=""+g),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(P=p.ref);for(y in p)a.call(p,y)&&!f.hasOwnProperty(y)&&(v[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)v[y]===void 0&&(v[y]=p[y]);return{$$typeof:r,type:h,key:w,ref:P,props:v,_owner:l.current}}return gi.Fragment=o,gi.jsx=c,gi.jsxs=c,gi}var ih;function Hv(){return ih||(ih=1,Cl.exports=Wv()),Cl.exports}var Q=Hv(),S=Su(),qo={},kl={exports:{}},lt={},Tl={exports:{}},Rl={};var oh;function bv(){return oh||(oh=1,(function(n){function r(z,q){var W=z.length;z.push(q);e:for(;0<W;){var k=W-1>>>1,I=z[k];if(0<l(I,q))z[k]=q,z[W]=I,W=k;else break e}}function o(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var q=z[0],W=z.pop();if(W!==q){z[0]=W;e:for(var k=0,I=z.length,oe=I>>>1;k<oe;){var le=2*(k+1)-1,fe=z[le],de=le+1,ye=z[de];if(0>l(fe,W))de<I&&0>l(ye,fe)?(z[k]=ye,z[de]=W,k=de):(z[k]=fe,z[le]=W,k=le);else if(de<I&&0>l(ye,W))z[k]=ye,z[de]=W,k=de;else break e}}return q}function l(z,q){var W=z.sortIndex-q.sortIndex;return W!==0?W:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var p=[],g=[],y=1,v=null,w=3,P=!1,A=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(z){for(var q=o(g);q!==null;){if(q.callback===null)a(g);else if(q.startTime<=z)a(g),q.sortIndex=q.expirationTime,r(p,q);else break;q=o(g)}}function H(z){if(M=!1,V(z),!A)if(o(p)!==null)A=!0,Ze(U);else{var q=o(g);q!==null&&ie(H,q.startTime-z)}}function U(z,q){A=!1,M&&(M=!1,_($),$=-1),P=!0;var W=w;try{for(V(q),v=o(p);v!==null&&(!(v.expirationTime>q)||z&&!ze());){var k=v.callback;if(typeof k=="function"){v.callback=null,w=v.priorityLevel;var I=k(v.expirationTime<=q);q=n.unstable_now(),typeof I=="function"?v.callback=I:v===o(p)&&a(p),V(q)}else a(p);v=o(p)}if(v!==null)var oe=!0;else{var le=o(g);le!==null&&ie(H,le.startTime-q),oe=!1}return oe}finally{v=null,w=W,P=!1}}var ee=!1,J=null,$=-1,ae=5,ce=-1;function ze(){return!(n.unstable_now()-ce<ae)}function Qe(){if(J!==null){var z=n.unstable_now();ce=z;var q=!0;try{q=J(!0,z)}finally{q?Xe():(ee=!1,J=null)}}else ee=!1}var Xe;if(typeof N=="function")Xe=function(){N(Qe)};else if(typeof MessageChannel<"u"){var nt=new MessageChannel,ut=nt.port2;nt.port1.onmessage=Qe,Xe=function(){ut.postMessage(null)}}else Xe=function(){D(Qe,0)};function Ze(z){J=z,ee||(ee=!0,Xe())}function ie(z,q){$=D(function(){z(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_continueExecution=function(){A||P||(A=!0,Ze(U))},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_getFirstCallbackNode=function(){return o(p)},n.unstable_next=function(z){switch(w){case 1:case 2:case 3:var q=3;break;default:q=w}var W=w;w=q;try{return z()}finally{w=W}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=w;w=z;try{return q()}finally{w=W}},n.unstable_scheduleCallback=function(z,q,W){var k=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,z){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=W+I,z={id:y++,callback:q,priorityLevel:z,startTime:W,expirationTime:I,sortIndex:-1},W>k?(z.sortIndex=W,r(g,z),o(p)===null&&z===o(g)&&(M?(_($),$=-1):M=!0,ie(H,W-k))):(z.sortIndex=I,r(p,z),A||P||(A=!0,Ze(U))),z},n.unstable_shouldYield=ze,n.unstable_wrapCallback=function(z){var q=w;return function(){var W=w;w=q;try{return z.apply(this,arguments)}finally{w=W}}}})(Rl)),Rl}var sh;function Kv(){return sh||(sh=1,Tl.exports=bv()),Tl.exports}var ah;function Gv(){if(ah)return lt;ah=1;var n=Su(),r=Kv();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);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 a=new Set,l={};function f(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},v={};function w(e){return p.call(v,e)?!0:p.call(y,e)?!1:g.test(e)?v[e]=!0:(y[e]=!0,!1)}function P(e,t,i,s){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A(e,t,i,s){if(t===null||typeof t>"u"||P(e,t,i,s))return!0;if(s)return!1;if(i!==null)switch(i.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 M(e,t,i,s,u,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=u,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new M(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){D[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function N(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_,N);D[t]=new M(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(_,N);D[t]=new M(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(_,N);D[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function V(e,t,i,s){var u=D.hasOwnProperty(t)?D[t]:null;(u!==null?u.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A(t,i,u,s)&&(i=null),s||u===null?w(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):u.mustUseProperty?e[u.propertyName]=i===null?u.type===3?!1:"":i:(t=u.attributeName,s=u.attributeNamespace,i===null?e.removeAttribute(t):(u=u.type,i=u===3||u===4&&i===!0?"":""+i,s?e.setAttributeNS(s,t,i):e.setAttribute(t,i))))}var H=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),ee=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),ze=Symbol.for("react.context"),Qe=Symbol.for("react.forward_ref"),Xe=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),ut=Symbol.for("react.memo"),Ze=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),z=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,k;function I(e){if(k===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
2
|
-
`+k+e}var oe=!1;function le(e,t){if(!e||oe)return"";oe=!0;var i=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(L){var s=L}Reflect.construct(e,[],t)}else{try{t.call()}catch(L){s=L}e.call(t.prototype)}else{try{throw Error()}catch(L){s=L}e()}}catch(L){if(L&&s&&typeof L.stack=="string"){for(var u=L.stack.split(`
|
|
3
|
-
`),d=s.stack.split(`
|
|
4
|
-
`),m=u.length-1,x=d.length-1;1<=m&&0<=x&&u[m]!==d[x];)x--;for(;1<=m&&0<=x;m--,x--)if(u[m]!==d[x]){if(m!==1||x!==1)do if(m--,x--,0>x||u[m]!==d[x]){var E=`
|
|
5
|
-
`+u[m].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),E}while(1<=m&&0<=x);break}}}finally{oe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?I(e):""}function fe(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function de(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 J:return"Fragment";case ee:return"Portal";case ae:return"Profiler";case $:return"StrictMode";case Xe:return"Suspense";case nt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ze:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case Qe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ut:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Ze:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function ye(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 de(t);case 8:return t===$?"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 pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Se(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ct(e){var t=Se(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){s=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(m){s=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=ct(e))}function sc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),s="";return e&&(s=Se(e)?e.checked?"true":"false":e.value),e=s,e!==i?(t.setValue(e),!0):!1}function $i(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 Ms(e,t){var i=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function ac(e,t){var i=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;i=pe(t.value!=null?t.value:i),e._wrapperState={initialChecked:s,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lc(e,t){t=t.checked,t!=null&&V(e,"checked",t,!1)}function As(e,t){lc(e,t);var i=pe(t.value),s=t.type;if(i!=null)s==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vs(e,t.type,i):t.hasOwnProperty("defaultValue")&&Vs(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uc(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function Vs(e,t,i){(t!=="number"||$i(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Vr=Array.isArray;function Xn(e,t,i,s){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&s&&(e[i].defaultSelected=!0)}else{for(i=""+pe(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Ns(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function cc(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(o(92));if(Vr(i)){if(1<i.length)throw Error(o(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:pe(i)}}function fc(e,t){var i=pe(t.value),s=pe(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),s!=null&&(e.defaultValue=""+s)}function dc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hc(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 _s(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wi,pc=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,s,u){MSApp.execUnsafeLocalFunction(function(){return e(t,i,s,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wi=Wi||document.createElement("div"),Wi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var _r={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},Ky=["Webkit","ms","Moz","O"];Object.keys(_r).forEach(function(e){Ky.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_r[t]=_r[e]})});function mc(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||_r.hasOwnProperty(e)&&_r[e]?(""+t).trim():t+"px"}function yc(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var s=i.indexOf("--")===0,u=mc(i,t[i],s);i==="float"&&(i="cssFloat"),s?e.setProperty(i,u):e[i]=u}}var Gy=W({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 Fs(e,t){if(t){if(Gy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Is(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 js=null;function Os(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bs=null,Zn=null,qn=null;function gc(e){if(e=ni(e)){if(typeof Bs!="function")throw Error(o(280));var t=e.stateNode;t&&(t=ho(t),Bs(e.stateNode,e.type,t))}}function vc(e){Zn?qn?qn.push(e):qn=[e]:Zn=e}function wc(){if(Zn){var e=Zn,t=qn;if(qn=Zn=null,gc(e),t)for(e=0;e<t.length;e++)gc(t[e])}}function xc(e,t){return e(t)}function Sc(){}var zs=!1;function Ec(e,t,i){if(zs)return e(t,i);zs=!0;try{return xc(e,t,i)}finally{zs=!1,(Zn!==null||qn!==null)&&(Sc(),wc())}}function Fr(e,t){var i=e.stateNode;if(i===null)return null;var s=ho(i);if(s===null)return null;i=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Us=!1;if(h)try{var Ir={};Object.defineProperty(Ir,"passive",{get:function(){Us=!0}}),window.addEventListener("test",Ir,Ir),window.removeEventListener("test",Ir,Ir)}catch{Us=!1}function Yy(e,t,i,s,u,d,m,x,E){var L=Array.prototype.slice.call(arguments,3);try{t.apply(i,L)}catch(j){this.onError(j)}}var jr=!1,Hi=null,bi=!1,$s=null,Qy={onError:function(e){jr=!0,Hi=e}};function Xy(e,t,i,s,u,d,m,x,E){jr=!1,Hi=null,Yy.apply(Qy,arguments)}function Zy(e,t,i,s,u,d,m,x,E){if(Xy.apply(this,arguments),jr){if(jr){var L=Hi;jr=!1,Hi=null}else throw Error(o(198));bi||(bi=!0,$s=L)}}function Vn(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function Cc(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 Pc(e){if(Vn(e)!==e)throw Error(o(188))}function qy(e){var t=e.alternate;if(!t){if(t=Vn(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,s=t;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){i=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return Pc(u),e;if(d===s)return Pc(u),t;d=d.sibling}throw Error(o(188))}if(i.return!==s.return)i=u,s=d;else{for(var m=!1,x=u.child;x;){if(x===i){m=!0,i=u,s=d;break}if(x===s){m=!0,s=u,i=d;break}x=x.sibling}if(!m){for(x=d.child;x;){if(x===i){m=!0,i=d,s=u;break}if(x===s){m=!0,s=d,i=u;break}x=x.sibling}if(!m)throw Error(o(189))}}if(i.alternate!==s)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function kc(e){return e=qy(e),e!==null?Tc(e):null}function Tc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tc(e);if(t!==null)return t;e=e.sibling}return null}var Rc=r.unstable_scheduleCallback,Dc=r.unstable_cancelCallback,Jy=r.unstable_shouldYield,eg=r.unstable_requestPaint,Le=r.unstable_now,tg=r.unstable_getCurrentPriorityLevel,Ws=r.unstable_ImmediatePriority,Lc=r.unstable_UserBlockingPriority,Ki=r.unstable_NormalPriority,ng=r.unstable_LowPriority,Mc=r.unstable_IdlePriority,Gi=null,Ft=null;function rg(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:sg,ig=Math.log,og=Math.LN2;function sg(e){return e>>>=0,e===0?32:31-(ig(e)/og|0)|0}var Yi=64,Qi=4194304;function Or(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 Xi(e,t){var i=e.pendingLanes;if(i===0)return 0;var s=0,u=e.suspendedLanes,d=e.pingedLanes,m=i&268435455;if(m!==0){var x=m&~u;x!==0?s=Or(x):(d&=m,d!==0&&(s=Or(d)))}else m=i&~u,m!==0?s=Or(m):d!==0&&(s=Or(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&u)===0&&(u=s&-s,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)i=31-kt(t),u=1<<i,s|=e[i],t&=~u;return s}function ag(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 lg(e,t){for(var i=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes;0<d;){var m=31-kt(d),x=1<<m,E=u[m];E===-1?((x&i)===0||(x&s)!==0)&&(u[m]=ag(x,t)):E<=t&&(e.expiredLanes|=x),d&=~x}}function Hs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ac(){var e=Yi;return Yi<<=1,(Yi&4194240)===0&&(Yi=64),e}function bs(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Br(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=i}function ug(e,t){var i=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 s=e.eventTimes;for(e=e.expirationTimes;0<i;){var u=31-kt(i),d=1<<u;t[u]=0,s[u]=-1,e[u]=-1,i&=~d}}function Ks(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var s=31-kt(i),u=1<<s;u&t|e[s]&t&&(e[s]|=t),i&=~u}}var me=0;function Vc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Nc,Gs,_c,Fc,Ic,Ys=!1,Zi=[],sn=null,an=null,ln=null,zr=new Map,Ur=new Map,un=[],cg="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 jc(e,t){switch(e){case"focusin":case"focusout":sn=null;break;case"dragenter":case"dragleave":an=null;break;case"mouseover":case"mouseout":ln=null;break;case"pointerover":case"pointerout":zr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(t.pointerId)}}function $r(e,t,i,s,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},t!==null&&(t=ni(t),t!==null&&Gs(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function fg(e,t,i,s,u){switch(t){case"focusin":return sn=$r(sn,e,t,i,s,u),!0;case"dragenter":return an=$r(an,e,t,i,s,u),!0;case"mouseover":return ln=$r(ln,e,t,i,s,u),!0;case"pointerover":var d=u.pointerId;return zr.set(d,$r(zr.get(d)||null,e,t,i,s,u)),!0;case"gotpointercapture":return d=u.pointerId,Ur.set(d,$r(Ur.get(d)||null,e,t,i,s,u)),!0}return!1}function Oc(e){var t=Nn(e.target);if(t!==null){var i=Vn(t);if(i!==null){if(t=i.tag,t===13){if(t=Cc(i),t!==null){e.blockedOn=t,Ic(e.priority,function(){_c(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Xs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);js=s,i.target.dispatchEvent(s),js=null}else return t=ni(i),t!==null&&Gs(t),e.blockedOn=i,!1;t.shift()}return!0}function Bc(e,t,i){qi(e)&&i.delete(t)}function dg(){Ys=!1,sn!==null&&qi(sn)&&(sn=null),an!==null&&qi(an)&&(an=null),ln!==null&&qi(ln)&&(ln=null),zr.forEach(Bc),Ur.forEach(Bc)}function Wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ys||(Ys=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dg)))}function Hr(e){function t(u){return Wr(u,e)}if(0<Zi.length){Wr(Zi[0],e);for(var i=1;i<Zi.length;i++){var s=Zi[i];s.blockedOn===e&&(s.blockedOn=null)}}for(sn!==null&&Wr(sn,e),an!==null&&Wr(an,e),ln!==null&&Wr(ln,e),zr.forEach(t),Ur.forEach(t),i=0;i<un.length;i++)s=un[i],s.blockedOn===e&&(s.blockedOn=null);for(;0<un.length&&(i=un[0],i.blockedOn===null);)Oc(i),i.blockedOn===null&&un.shift()}var Jn=H.ReactCurrentBatchConfig,Ji=!0;function hg(e,t,i,s){var u=me,d=Jn.transition;Jn.transition=null;try{me=1,Qs(e,t,i,s)}finally{me=u,Jn.transition=d}}function pg(e,t,i,s){var u=me,d=Jn.transition;Jn.transition=null;try{me=4,Qs(e,t,i,s)}finally{me=u,Jn.transition=d}}function Qs(e,t,i,s){if(Ji){var u=Xs(e,t,i,s);if(u===null)ha(e,t,s,eo,i),jc(e,s);else if(fg(u,e,t,i,s))s.stopPropagation();else if(jc(e,s),t&4&&-1<cg.indexOf(e)){for(;u!==null;){var d=ni(u);if(d!==null&&Nc(d),d=Xs(e,t,i,s),d===null&&ha(e,t,s,eo,i),d===u)break;u=d}u!==null&&s.stopPropagation()}else ha(e,t,s,null,i)}}var eo=null;function Xs(e,t,i,s){if(eo=null,e=Os(s),e=Nn(e),e!==null)if(t=Vn(e),t===null)e=null;else if(i=t.tag,i===13){if(e=Cc(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eo=e,null}function zc(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(tg()){case Ws:return 1;case Lc:return 4;case Ki:case ng:return 16;case Mc:return 536870912;default:return 16}default:return 16}}var cn=null,Zs=null,to=null;function Uc(){if(to)return to;var e,t=Zs,i=t.length,s,u="value"in cn?cn.value:cn.textContent,d=u.length;for(e=0;e<i&&t[e]===u[e];e++);var m=i-e;for(s=1;s<=m&&t[i-s]===u[d-s];s++);return to=u.slice(e,1<s?1-s:void 0)}function no(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 ro(){return!0}function $c(){return!1}function ft(e){function t(i,s,u,d,m){this._reactName=i,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(i=e[x],this[x]=i?i(d):d[x]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ro:$c,this.isPropagationStopped=$c,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=ft(er),br=W({},er,{view:0,detail:0}),mg=ft(br),Js,ea,Kr,io=W({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:na,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!==Kr&&(Kr&&e.type==="mousemove"?(Js=e.screenX-Kr.screenX,ea=e.screenY-Kr.screenY):ea=Js=0,Kr=e),Js)},movementY:function(e){return"movementY"in e?e.movementY:ea}}),Wc=ft(io),yg=W({},io,{dataTransfer:0}),gg=ft(yg),vg=W({},br,{relatedTarget:0}),ta=ft(vg),wg=W({},er,{animationName:0,elapsedTime:0,pseudoElement:0}),xg=ft(wg),Sg=W({},er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eg=ft(Sg),Cg=W({},er,{data:0}),Hc=ft(Cg),Pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kg={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"},Tg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tg[e])?!!t[e]:!1}function na(){return Rg}var Dg=W({},br,{key:function(e){if(e.key){var t=Pg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=no(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:na,charCode:function(e){return e.type==="keypress"?no(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?no(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lg=ft(Dg),Mg=W({},io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bc=ft(Mg),Ag=W({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:na}),Vg=ft(Ag),Ng=W({},er,{propertyName:0,elapsedTime:0,pseudoElement:0}),_g=ft(Ng),Fg=W({},io,{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}),Ig=ft(Fg),jg=[9,13,27,32],ra=h&&"CompositionEvent"in window,Gr=null;h&&"documentMode"in document&&(Gr=document.documentMode);var Og=h&&"TextEvent"in window&&!Gr,Kc=h&&(!ra||Gr&&8<Gr&&11>=Gr),Gc=" ",Yc=!1;function Qc(e,t){switch(e){case"keyup":return jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function Bg(e,t){switch(e){case"compositionend":return Xc(t);case"keypress":return t.which!==32?null:(Yc=!0,Gc);case"textInput":return e=t.data,e===Gc&&Yc?null:e;default:return null}}function zg(e,t){if(tr)return e==="compositionend"||!ra&&Qc(e,t)?(e=Uc(),to=Zs=cn=null,tr=!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 Kc&&t.locale!=="ko"?null:t.data;default:return null}}var Ug={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 Zc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ug[e.type]:t==="textarea"}function qc(e,t,i,s){vc(s),t=uo(t,"onChange"),0<t.length&&(i=new qs("onChange","change",null,i,s),e.push({event:i,listeners:t}))}var Yr=null,Qr=null;function $g(e){gf(e,0)}function oo(e){var t=sr(e);if(sc(t))return e}function Wg(e,t){if(e==="change")return t}var Jc=!1;if(h){var ia;if(h){var oa="oninput"in document;if(!oa){var ef=document.createElement("div");ef.setAttribute("oninput","return;"),oa=typeof ef.oninput=="function"}ia=oa}else ia=!1;Jc=ia&&(!document.documentMode||9<document.documentMode)}function tf(){Yr&&(Yr.detachEvent("onpropertychange",nf),Qr=Yr=null)}function nf(e){if(e.propertyName==="value"&&oo(Qr)){var t=[];qc(t,Qr,e,Os(e)),Ec($g,t)}}function Hg(e,t,i){e==="focusin"?(tf(),Yr=t,Qr=i,Yr.attachEvent("onpropertychange",nf)):e==="focusout"&&tf()}function bg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(Qr)}function Kg(e,t){if(e==="click")return oo(t)}function Gg(e,t){if(e==="input"||e==="change")return oo(t)}function Yg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Yg;function Xr(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var u=i[s];if(!p.call(t,u)||!Tt(e[u],t[u]))return!1}return!0}function rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function of(e,t){var i=rf(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=t&&s>=t)return{node:i,offset:t-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=rf(i)}}function sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function af(){for(var e=window,t=$i();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=$i(e.document)}return t}function sa(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 Qg(e){var t=af(),i=e.focusedElem,s=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&sf(i.ownerDocument.documentElement,i)){if(s!==null&&sa(i)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=i.textContent.length,d=Math.min(s.start,u);s=s.end===void 0?d:Math.min(s.end,u),!e.extend&&d>s&&(u=s,s=d,d=u),u=of(i,d);var m=of(i,s);u&&m&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xg=h&&"documentMode"in document&&11>=document.documentMode,nr=null,aa=null,Zr=null,la=!1;function lf(e,t,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;la||nr==null||nr!==$i(s)||(s=nr,"selectionStart"in s&&sa(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Zr&&Xr(Zr,s)||(Zr=s,s=uo(aa,"onSelect"),0<s.length&&(t=new qs("onSelect","select",null,t,i),e.push({event:t,listeners:s}),t.target=nr)))}function so(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var rr={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},ua={},uf={};h&&(uf=document.createElement("div").style,"AnimationEvent"in window||(delete rr.animationend.animation,delete rr.animationiteration.animation,delete rr.animationstart.animation),"TransitionEvent"in window||delete rr.transitionend.transition);function ao(e){if(ua[e])return ua[e];if(!rr[e])return e;var t=rr[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in uf)return ua[e]=t[i];return e}var cf=ao("animationend"),ff=ao("animationiteration"),df=ao("animationstart"),hf=ao("transitionend"),pf=new Map,mf="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 fn(e,t){pf.set(e,t),f(t,[e])}for(var ca=0;ca<mf.length;ca++){var fa=mf[ca],Zg=fa.toLowerCase(),qg=fa[0].toUpperCase()+fa.slice(1);fn(Zg,"on"+qg)}fn(cf,"onAnimationEnd"),fn(ff,"onAnimationIteration"),fn(df,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(hf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qr="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(" "),Jg=new Set("cancel close invalid load scroll toggle".split(" ").concat(qr));function yf(e,t,i){var s=e.type||"unknown-event";e.currentTarget=i,Zy(s,t,void 0,e),e.currentTarget=null}function gf(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],u=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var m=s.length-1;0<=m;m--){var x=s[m],E=x.instance,L=x.currentTarget;if(x=x.listener,E!==d&&u.isPropagationStopped())break e;yf(u,x,L),d=E}else for(m=0;m<s.length;m++){if(x=s[m],E=x.instance,L=x.currentTarget,x=x.listener,E!==d&&u.isPropagationStopped())break e;yf(u,x,L),d=E}}}if(bi)throw e=$s,bi=!1,$s=null,e}function ve(e,t){var i=t[wa];i===void 0&&(i=t[wa]=new Set);var s=e+"__bubble";i.has(s)||(vf(t,e,2,!1),i.add(s))}function da(e,t,i){var s=0;t&&(s|=4),vf(i,e,s,t)}var lo="_reactListening"+Math.random().toString(36).slice(2);function Jr(e){if(!e[lo]){e[lo]=!0,a.forEach(function(i){i!=="selectionchange"&&(Jg.has(i)||da(i,!1,e),da(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lo]||(t[lo]=!0,da("selectionchange",!1,t))}}function vf(e,t,i,s){switch(zc(t)){case 1:var u=hg;break;case 4:u=pg;break;default:u=Qs}i=u.bind(null,t,i,e),u=void 0,!Us||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function ha(e,t,i,s,u){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var x=s.stateNode.containerInfo;if(x===u||x.nodeType===8&&x.parentNode===u)break;if(m===4)for(m=s.return;m!==null;){var E=m.tag;if((E===3||E===4)&&(E=m.stateNode.containerInfo,E===u||E.nodeType===8&&E.parentNode===u))return;m=m.return}for(;x!==null;){if(m=Nn(x),m===null)return;if(E=m.tag,E===5||E===6){s=d=m;continue e}x=x.parentNode}}s=s.return}Ec(function(){var L=d,j=Os(i),O=[];e:{var F=pf.get(e);if(F!==void 0){var b=qs,Y=e;switch(e){case"keypress":if(no(i)===0)break e;case"keydown":case"keyup":b=Lg;break;case"focusin":Y="focus",b=ta;break;case"focusout":Y="blur",b=ta;break;case"beforeblur":case"afterblur":b=ta;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":b=Wc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=gg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=Vg;break;case cf:case ff:case df:b=xg;break;case hf:b=_g;break;case"scroll":b=mg;break;case"wheel":b=Ig;break;case"copy":case"cut":case"paste":b=Eg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=bc}var X=(t&4)!==0,Me=!X&&e==="scroll",T=X?F!==null?F+"Capture":null:F;X=[];for(var C=L,R;C!==null;){R=C;var B=R.stateNode;if(R.tag===5&&B!==null&&(R=B,T!==null&&(B=Fr(C,T),B!=null&&X.push(ei(C,B,R)))),Me)break;C=C.return}0<X.length&&(F=new b(F,Y,null,i,j),O.push({event:F,listeners:X}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",F&&i!==js&&(Y=i.relatedTarget||i.fromElement)&&(Nn(Y)||Y[Wt]))break e;if((b||F)&&(F=j.window===j?j:(F=j.ownerDocument)?F.defaultView||F.parentWindow:window,b?(Y=i.relatedTarget||i.toElement,b=L,Y=Y?Nn(Y):null,Y!==null&&(Me=Vn(Y),Y!==Me||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(b=null,Y=L),b!==Y)){if(X=Wc,B="onMouseLeave",T="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(X=bc,B="onPointerLeave",T="onPointerEnter",C="pointer"),Me=b==null?F:sr(b),R=Y==null?F:sr(Y),F=new X(B,C+"leave",b,i,j),F.target=Me,F.relatedTarget=R,B=null,Nn(j)===L&&(X=new X(T,C+"enter",Y,i,j),X.target=R,X.relatedTarget=Me,B=X),Me=B,b&&Y)t:{for(X=b,T=Y,C=0,R=X;R;R=ir(R))C++;for(R=0,B=T;B;B=ir(B))R++;for(;0<C-R;)X=ir(X),C--;for(;0<R-C;)T=ir(T),R--;for(;C--;){if(X===T||T!==null&&X===T.alternate)break t;X=ir(X),T=ir(T)}X=null}else X=null;b!==null&&wf(O,F,b,X,!1),Y!==null&&Me!==null&&wf(O,Me,Y,X,!0)}}e:{if(F=L?sr(L):window,b=F.nodeName&&F.nodeName.toLowerCase(),b==="select"||b==="input"&&F.type==="file")var Z=Wg;else if(Zc(F))if(Jc)Z=Gg;else{Z=bg;var te=Hg}else(b=F.nodeName)&&b.toLowerCase()==="input"&&(F.type==="checkbox"||F.type==="radio")&&(Z=Kg);if(Z&&(Z=Z(e,L))){qc(O,Z,i,j);break e}te&&te(e,F,L),e==="focusout"&&(te=F._wrapperState)&&te.controlled&&F.type==="number"&&Vs(F,"number",F.value)}switch(te=L?sr(L):window,e){case"focusin":(Zc(te)||te.contentEditable==="true")&&(nr=te,aa=L,Zr=null);break;case"focusout":Zr=aa=nr=null;break;case"mousedown":la=!0;break;case"contextmenu":case"mouseup":case"dragend":la=!1,lf(O,i,j);break;case"selectionchange":if(Xg)break;case"keydown":case"keyup":lf(O,i,j)}var ne;if(ra)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else tr?Qc(e,i)&&(re="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(re="onCompositionStart");re&&(Kc&&i.locale!=="ko"&&(tr||re!=="onCompositionStart"?re==="onCompositionEnd"&&tr&&(ne=Uc()):(cn=j,Zs="value"in cn?cn.value:cn.textContent,tr=!0)),te=uo(L,re),0<te.length&&(re=new Hc(re,e,null,i,j),O.push({event:re,listeners:te}),ne?re.data=ne:(ne=Xc(i),ne!==null&&(re.data=ne)))),(ne=Og?Bg(e,i):zg(e,i))&&(L=uo(L,"onBeforeInput"),0<L.length&&(j=new Hc("onBeforeInput","beforeinput",null,i,j),O.push({event:j,listeners:L}),j.data=ne))}gf(O,t)})}function ei(e,t,i){return{instance:e,listener:t,currentTarget:i}}function uo(e,t){for(var i=t+"Capture",s=[];e!==null;){var u=e,d=u.stateNode;u.tag===5&&d!==null&&(u=d,d=Fr(e,i),d!=null&&s.unshift(ei(e,d,u)),d=Fr(e,t),d!=null&&s.push(ei(e,d,u))),e=e.return}return s}function ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,t,i,s,u){for(var d=t._reactName,m=[];i!==null&&i!==s;){var x=i,E=x.alternate,L=x.stateNode;if(E!==null&&E===s)break;x.tag===5&&L!==null&&(x=L,u?(E=Fr(i,d),E!=null&&m.unshift(ei(i,E,x))):u||(E=Fr(i,d),E!=null&&m.push(ei(i,E,x)))),i=i.return}m.length!==0&&e.push({event:t,listeners:m})}var ev=/\r\n?/g,tv=/\u0000|\uFFFD/g;function xf(e){return(typeof e=="string"?e:""+e).replace(ev,`
|
|
6
|
-
`).replace(tv,"")}function co(e,t,i){if(t=xf(t),xf(e)!==t&&i)throw Error(o(425))}function fo(){}var pa=null,ma=null;function ya(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 ga=typeof setTimeout=="function"?setTimeout:void 0,nv=typeof clearTimeout=="function"?clearTimeout:void 0,Sf=typeof Promise=="function"?Promise:void 0,rv=typeof queueMicrotask=="function"?queueMicrotask:typeof Sf<"u"?function(e){return Sf.resolve(null).then(e).catch(iv)}:ga;function iv(e){setTimeout(function(){throw e})}function va(e,t){var i=t,s=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(s===0){e.removeChild(u),Hr(t);return}s--}else i!=="$"&&i!=="$?"&&i!=="$!"||s++;i=u}while(i);Hr(t)}function dn(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 Ef(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var or=Math.random().toString(36).slice(2),It="__reactFiber$"+or,ti="__reactProps$"+or,Wt="__reactContainer$"+or,wa="__reactEvents$"+or,ov="__reactListeners$"+or,sv="__reactHandles$"+or;function Nn(e){var t=e[It];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Wt]||i[It]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Ef(e);e!==null;){if(i=e[It])return i;e=Ef(e)}return t}e=i,i=e.parentNode}return null}function ni(e){return e=e[It]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function ho(e){return e[ti]||null}var xa=[],ar=-1;function hn(e){return{current:e}}function we(e){0>ar||(e.current=xa[ar],xa[ar]=null,ar--)}function ge(e,t){ar++,xa[ar]=e.current,e.current=t}var pn={},He=hn(pn),rt=hn(!1),_n=pn;function lr(e,t){var i=e.type.contextTypes;if(!i)return pn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in i)u[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function it(e){return e=e.childContextTypes,e!=null}function po(){we(rt),we(He)}function Cf(e,t,i){if(He.current!==pn)throw Error(o(168));ge(He,t),ge(rt,i)}function Pf(e,t,i){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return i;s=s.getChildContext();for(var u in s)if(!(u in t))throw Error(o(108,ye(e)||"Unknown",u));return W({},i,s)}function mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,_n=He.current,ge(He,e),ge(rt,rt.current),!0}function kf(e,t,i){var s=e.stateNode;if(!s)throw Error(o(169));i?(e=Pf(e,t,_n),s.__reactInternalMemoizedMergedChildContext=e,we(rt),we(He),ge(He,e)):we(rt),ge(rt,i)}var Ht=null,yo=!1,Sa=!1;function Tf(e){Ht===null?Ht=[e]:Ht.push(e)}function av(e){yo=!0,Tf(e)}function mn(){if(!Sa&&Ht!==null){Sa=!0;var e=0,t=me;try{var i=Ht;for(me=1;e<i.length;e++){var s=i[e];do s=s(!0);while(s!==null)}Ht=null,yo=!1}catch(u){throw Ht!==null&&(Ht=Ht.slice(e+1)),Rc(Ws,mn),u}finally{me=t,Sa=!1}}return null}var ur=[],cr=0,go=null,vo=0,mt=[],yt=0,Fn=null,bt=1,Kt="";function In(e,t){ur[cr++]=vo,ur[cr++]=go,go=e,vo=t}function Rf(e,t,i){mt[yt++]=bt,mt[yt++]=Kt,mt[yt++]=Fn,Fn=e;var s=bt;e=Kt;var u=32-kt(s)-1;s&=~(1<<u),i+=1;var d=32-kt(t)+u;if(30<d){var m=u-u%5;d=(s&(1<<m)-1).toString(32),s>>=m,u-=m,bt=1<<32-kt(t)+u|i<<u|s,Kt=d+e}else bt=1<<d|i<<u|s,Kt=e}function Ea(e){e.return!==null&&(In(e,1),Rf(e,1,0))}function Ca(e){for(;e===go;)go=ur[--cr],ur[cr]=null,vo=ur[--cr],ur[cr]=null;for(;e===Fn;)Fn=mt[--yt],mt[yt]=null,Kt=mt[--yt],mt[yt]=null,bt=mt[--yt],mt[yt]=null}var dt=null,ht=null,Ee=!1,Rt=null;function Df(e,t){var i=xt(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function Lf(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dt=e,ht=dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dt=e,ht=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Fn!==null?{id:bt,overflow:Kt}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=xt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,dt=e,ht=null,!0):!1;default:return!1}}function Pa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ka(e){if(Ee){var t=ht;if(t){var i=t;if(!Lf(e,t)){if(Pa(e))throw Error(o(418));t=dn(i.nextSibling);var s=dt;t&&Lf(e,t)?Df(s,i):(e.flags=e.flags&-4097|2,Ee=!1,dt=e)}}else{if(Pa(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ee=!1,dt=e}}}function Mf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dt=e}function wo(e){if(e!==dt)return!1;if(!Ee)return Mf(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ya(e.type,e.memoizedProps)),t&&(t=ht)){if(Pa(e))throw Af(),Error(o(418));for(;t;)Df(e,t),t=dn(t.nextSibling)}if(Mf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){ht=dn(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}ht=null}}else ht=dt?dn(e.stateNode.nextSibling):null;return!0}function Af(){for(var e=ht;e;)e=dn(e.nextSibling)}function fr(){ht=dt=null,Ee=!1}function Ta(e){Rt===null?Rt=[e]:Rt.push(e)}var lv=H.ReactCurrentBatchConfig;function ri(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(o(309));var s=i.stateNode}if(!s)throw Error(o(147,e));var u=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(m){var x=u.refs;m===null?delete x[d]:x[d]=m},t._stringRef=d,t)}if(typeof e!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,e))}return e}function xo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vf(e){var t=e._init;return t(e._payload)}function Nf(e){function t(T,C){if(e){var R=T.deletions;R===null?(T.deletions=[C],T.flags|=16):R.push(C)}}function i(T,C){if(!e)return null;for(;C!==null;)t(T,C),C=C.sibling;return null}function s(T,C){for(T=new Map;C!==null;)C.key!==null?T.set(C.key,C):T.set(C.index,C),C=C.sibling;return T}function u(T,C){return T=Cn(T,C),T.index=0,T.sibling=null,T}function d(T,C,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<C?(T.flags|=2,C):R):(T.flags|=2,C)):(T.flags|=1048576,C)}function m(T){return e&&T.alternate===null&&(T.flags|=2),T}function x(T,C,R,B){return C===null||C.tag!==6?(C=gl(R,T.mode,B),C.return=T,C):(C=u(C,R),C.return=T,C)}function E(T,C,R,B){var Z=R.type;return Z===J?j(T,C,R.props.children,B,R.key):C!==null&&(C.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Ze&&Vf(Z)===C.type)?(B=u(C,R.props),B.ref=ri(T,C,R),B.return=T,B):(B=Ho(R.type,R.key,R.props,null,T.mode,B),B.ref=ri(T,C,R),B.return=T,B)}function L(T,C,R,B){return C===null||C.tag!==4||C.stateNode.containerInfo!==R.containerInfo||C.stateNode.implementation!==R.implementation?(C=vl(R,T.mode,B),C.return=T,C):(C=u(C,R.children||[]),C.return=T,C)}function j(T,C,R,B,Z){return C===null||C.tag!==7?(C=Hn(R,T.mode,B,Z),C.return=T,C):(C=u(C,R),C.return=T,C)}function O(T,C,R){if(typeof C=="string"&&C!==""||typeof C=="number")return C=gl(""+C,T.mode,R),C.return=T,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case U:return R=Ho(C.type,C.key,C.props,null,T.mode,R),R.ref=ri(T,null,C),R.return=T,R;case ee:return C=vl(C,T.mode,R),C.return=T,C;case Ze:var B=C._init;return O(T,B(C._payload),R)}if(Vr(C)||q(C))return C=Hn(C,T.mode,R,null),C.return=T,C;xo(T,C)}return null}function F(T,C,R,B){var Z=C!==null?C.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return Z!==null?null:x(T,C,""+R,B);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case U:return R.key===Z?E(T,C,R,B):null;case ee:return R.key===Z?L(T,C,R,B):null;case Ze:return Z=R._init,F(T,C,Z(R._payload),B)}if(Vr(R)||q(R))return Z!==null?null:j(T,C,R,B,null);xo(T,R)}return null}function b(T,C,R,B,Z){if(typeof B=="string"&&B!==""||typeof B=="number")return T=T.get(R)||null,x(C,T,""+B,Z);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case U:return T=T.get(B.key===null?R:B.key)||null,E(C,T,B,Z);case ee:return T=T.get(B.key===null?R:B.key)||null,L(C,T,B,Z);case Ze:var te=B._init;return b(T,C,R,te(B._payload),Z)}if(Vr(B)||q(B))return T=T.get(R)||null,j(C,T,B,Z,null);xo(C,B)}return null}function Y(T,C,R,B){for(var Z=null,te=null,ne=C,re=C=0,Oe=null;ne!==null&&re<R.length;re++){ne.index>re?(Oe=ne,ne=null):Oe=ne.sibling;var he=F(T,ne,R[re],B);if(he===null){ne===null&&(ne=Oe);break}e&&ne&&he.alternate===null&&t(T,ne),C=d(he,C,re),te===null?Z=he:te.sibling=he,te=he,ne=Oe}if(re===R.length)return i(T,ne),Ee&&In(T,re),Z;if(ne===null){for(;re<R.length;re++)ne=O(T,R[re],B),ne!==null&&(C=d(ne,C,re),te===null?Z=ne:te.sibling=ne,te=ne);return Ee&&In(T,re),Z}for(ne=s(T,ne);re<R.length;re++)Oe=b(ne,T,re,R[re],B),Oe!==null&&(e&&Oe.alternate!==null&&ne.delete(Oe.key===null?re:Oe.key),C=d(Oe,C,re),te===null?Z=Oe:te.sibling=Oe,te=Oe);return e&&ne.forEach(function(Pn){return t(T,Pn)}),Ee&&In(T,re),Z}function X(T,C,R,B){var Z=q(R);if(typeof Z!="function")throw Error(o(150));if(R=Z.call(R),R==null)throw Error(o(151));for(var te=Z=null,ne=C,re=C=0,Oe=null,he=R.next();ne!==null&&!he.done;re++,he=R.next()){ne.index>re?(Oe=ne,ne=null):Oe=ne.sibling;var Pn=F(T,ne,he.value,B);if(Pn===null){ne===null&&(ne=Oe);break}e&&ne&&Pn.alternate===null&&t(T,ne),C=d(Pn,C,re),te===null?Z=Pn:te.sibling=Pn,te=Pn,ne=Oe}if(he.done)return i(T,ne),Ee&&In(T,re),Z;if(ne===null){for(;!he.done;re++,he=R.next())he=O(T,he.value,B),he!==null&&(C=d(he,C,re),te===null?Z=he:te.sibling=he,te=he);return Ee&&In(T,re),Z}for(ne=s(T,ne);!he.done;re++,he=R.next())he=b(ne,T,re,he.value,B),he!==null&&(e&&he.alternate!==null&&ne.delete(he.key===null?re:he.key),C=d(he,C,re),te===null?Z=he:te.sibling=he,te=he);return e&&ne.forEach(function(Uv){return t(T,Uv)}),Ee&&In(T,re),Z}function Me(T,C,R,B){if(typeof R=="object"&&R!==null&&R.type===J&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case U:e:{for(var Z=R.key,te=C;te!==null;){if(te.key===Z){if(Z=R.type,Z===J){if(te.tag===7){i(T,te.sibling),C=u(te,R.props.children),C.return=T,T=C;break e}}else if(te.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Ze&&Vf(Z)===te.type){i(T,te.sibling),C=u(te,R.props),C.ref=ri(T,te,R),C.return=T,T=C;break e}i(T,te);break}else t(T,te);te=te.sibling}R.type===J?(C=Hn(R.props.children,T.mode,B,R.key),C.return=T,T=C):(B=Ho(R.type,R.key,R.props,null,T.mode,B),B.ref=ri(T,C,R),B.return=T,T=B)}return m(T);case ee:e:{for(te=R.key;C!==null;){if(C.key===te)if(C.tag===4&&C.stateNode.containerInfo===R.containerInfo&&C.stateNode.implementation===R.implementation){i(T,C.sibling),C=u(C,R.children||[]),C.return=T,T=C;break e}else{i(T,C);break}else t(T,C);C=C.sibling}C=vl(R,T.mode,B),C.return=T,T=C}return m(T);case Ze:return te=R._init,Me(T,C,te(R._payload),B)}if(Vr(R))return Y(T,C,R,B);if(q(R))return X(T,C,R,B);xo(T,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,C!==null&&C.tag===6?(i(T,C.sibling),C=u(C,R),C.return=T,T=C):(i(T,C),C=gl(R,T.mode,B),C.return=T,T=C),m(T)):i(T,C)}return Me}var dr=Nf(!0),_f=Nf(!1),So=hn(null),Eo=null,hr=null,Ra=null;function Da(){Ra=hr=Eo=null}function La(e){var t=So.current;we(So),e._currentValue=t}function Ma(e,t,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===i)break;e=e.return}}function pr(e,t){Eo=e,Ra=hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ot=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Ra!==e)if(e={context:e,memoizedValue:t,next:null},hr===null){if(Eo===null)throw Error(o(308));hr=e,Eo.dependencies={lanes:0,firstContext:e}}else hr=hr.next=e;return t}var jn=null;function Aa(e){jn===null?jn=[e]:jn.push(e)}function Ff(e,t,i,s){var u=t.interleaved;return u===null?(i.next=i,Aa(t)):(i.next=u.next,u.next=i),t.interleaved=i,Gt(e,s)}function Gt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var yn=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function If(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 Yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gn(e,t,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ue&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,Gt(e,i)}return u=s.interleaved,u===null?(t.next=t,Aa(s)):(t.next=u.next,u.next=t),s.interleaved=t,Gt(e,i)}function Co(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,Ks(e,i)}}function jf(e,t){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var m={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};d===null?u=d=m:d=d.next=m,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function Po(e,t,i,s){var u=e.updateQueue;yn=!1;var d=u.firstBaseUpdate,m=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var E=x,L=E.next;E.next=null,m===null?d=L:m.next=L,m=E;var j=e.alternate;j!==null&&(j=j.updateQueue,x=j.lastBaseUpdate,x!==m&&(x===null?j.firstBaseUpdate=L:x.next=L,j.lastBaseUpdate=E))}if(d!==null){var O=u.baseState;m=0,j=L=E=null,x=d;do{var F=x.lane,b=x.eventTime;if((s&F)===F){j!==null&&(j=j.next={eventTime:b,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var Y=e,X=x;switch(F=t,b=i,X.tag){case 1:if(Y=X.payload,typeof Y=="function"){O=Y.call(b,O,F);break e}O=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=X.payload,F=typeof Y=="function"?Y.call(b,O,F):Y,F==null)break e;O=W({},O,F);break e;case 2:yn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,F=u.effects,F===null?u.effects=[x]:F.push(x))}else b={eventTime:b,lane:F,tag:x.tag,payload:x.payload,callback:x.callback,next:null},j===null?(L=j=b,E=O):j=j.next=b,m|=F;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;F=x,x=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);if(j===null&&(E=O),u.baseState=E,u.firstBaseUpdate=L,u.lastBaseUpdate=j,t=u.shared.interleaved,t!==null){u=t;do m|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);zn|=m,e.lanes=m,e.memoizedState=O}}function Of(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],u=s.callback;if(u!==null){if(s.callback=null,s=i,typeof u!="function")throw Error(o(191,u));u.call(s)}}}var ii={},jt=hn(ii),oi=hn(ii),si=hn(ii);function On(e){if(e===ii)throw Error(o(174));return e}function Na(e,t){switch(ge(si,t),ge(oi,e),ge(jt,ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_s(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_s(t,e)}we(jt),ge(jt,t)}function mr(){we(jt),we(oi),we(si)}function Bf(e){On(si.current);var t=On(jt.current),i=_s(t,e.type);t!==i&&(ge(oi,e),ge(jt,i))}function _a(e){oi.current===e&&(we(jt),we(oi))}var Ce=hn(0);function ko(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 Fa=[];function Ia(){for(var e=0;e<Fa.length;e++)Fa[e]._workInProgressVersionPrimary=null;Fa.length=0}var To=H.ReactCurrentDispatcher,ja=H.ReactCurrentBatchConfig,Bn=0,Pe=null,Ne=null,Ie=null,Ro=!1,ai=!1,li=0,uv=0;function be(){throw Error(o(321))}function Oa(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Tt(e[i],t[i]))return!1;return!0}function Ba(e,t,i,s,u,d){if(Bn=d,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,To.current=e===null||e.memoizedState===null?hv:pv,e=i(s,u),ai){d=0;do{if(ai=!1,li=0,25<=d)throw Error(o(301));d+=1,Ie=Ne=null,t.updateQueue=null,To.current=mv,e=i(s,u)}while(ai)}if(To.current=Mo,t=Ne!==null&&Ne.next!==null,Bn=0,Ie=Ne=Pe=null,Ro=!1,t)throw Error(o(300));return e}function za(){var e=li!==0;return li=0,e}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?Pe.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function vt(){if(Ne===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ie===null?Pe.memoizedState:Ie.next;if(t!==null)Ie=t,Ne=e;else{if(e===null)throw Error(o(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ie===null?Pe.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function ui(e,t){return typeof t=="function"?t(e):t}function Ua(e){var t=vt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var s=Ne,u=s.baseQueue,d=i.pending;if(d!==null){if(u!==null){var m=u.next;u.next=d.next,d.next=m}s.baseQueue=u=d,i.pending=null}if(u!==null){d=u.next,s=s.baseState;var x=m=null,E=null,L=d;do{var j=L.lane;if((Bn&j)===j)E!==null&&(E=E.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),s=L.hasEagerState?L.eagerState:e(s,L.action);else{var O={lane:j,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};E===null?(x=E=O,m=s):E=E.next=O,Pe.lanes|=j,zn|=j}L=L.next}while(L!==null&&L!==d);E===null?m=s:E.next=x,Tt(s,t.memoizedState)||(ot=!0),t.memoizedState=s,t.baseState=m,t.baseQueue=E,i.lastRenderedState=s}if(e=i.interleaved,e!==null){u=e;do d=u.lane,Pe.lanes|=d,zn|=d,u=u.next;while(u!==e)}else u===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function $a(e){var t=vt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var s=i.dispatch,u=i.pending,d=t.memoizedState;if(u!==null){i.pending=null;var m=u=u.next;do d=e(d,m.action),m=m.next;while(m!==u);Tt(d,t.memoizedState)||(ot=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,s]}function zf(){}function Uf(e,t){var i=Pe,s=vt(),u=t(),d=!Tt(s.memoizedState,u);if(d&&(s.memoizedState=u,ot=!0),s=s.queue,Wa(Hf.bind(null,i,s,e),[e]),s.getSnapshot!==t||d||Ie!==null&&Ie.memoizedState.tag&1){if(i.flags|=2048,ci(9,Wf.bind(null,i,s,u,t),void 0,null),je===null)throw Error(o(349));(Bn&30)!==0||$f(i,t,u)}return u}function $f(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Wf(e,t,i,s){t.value=i,t.getSnapshot=s,bf(t)&&Kf(e)}function Hf(e,t,i){return i(function(){bf(t)&&Kf(e)})}function bf(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Tt(e,i)}catch{return!0}}function Kf(e){var t=Gt(e,1);t!==null&&At(t,e,1,-1)}function Gf(e){var t=Ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:e},t.queue=e,e=e.dispatch=dv.bind(null,Pe,e),[t.memoizedState,e]}function ci(e,t,i,s){return e={tag:e,create:t,destroy:i,deps:s,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,t.lastEffect=e)),e}function Yf(){return vt().memoizedState}function Do(e,t,i,s){var u=Ot();Pe.flags|=e,u.memoizedState=ci(1|t,i,void 0,s===void 0?null:s)}function Lo(e,t,i,s){var u=vt();s=s===void 0?null:s;var d=void 0;if(Ne!==null){var m=Ne.memoizedState;if(d=m.destroy,s!==null&&Oa(s,m.deps)){u.memoizedState=ci(t,i,d,s);return}}Pe.flags|=e,u.memoizedState=ci(1|t,i,d,s)}function Qf(e,t){return Do(8390656,8,e,t)}function Wa(e,t){return Lo(2048,8,e,t)}function Xf(e,t){return Lo(4,2,e,t)}function Zf(e,t){return Lo(4,4,e,t)}function qf(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 Jf(e,t,i){return i=i!=null?i.concat([e]):null,Lo(4,4,qf.bind(null,t,e),i)}function Ha(){}function ed(e,t){var i=vt();t=t===void 0?null:t;var s=i.memoizedState;return s!==null&&t!==null&&Oa(t,s[1])?s[0]:(i.memoizedState=[e,t],e)}function td(e,t){var i=vt();t=t===void 0?null:t;var s=i.memoizedState;return s!==null&&t!==null&&Oa(t,s[1])?s[0]:(e=e(),i.memoizedState=[e,t],e)}function nd(e,t,i){return(Bn&21)===0?(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=i):(Tt(i,t)||(i=Ac(),Pe.lanes|=i,zn|=i,e.baseState=!0),t)}function cv(e,t){var i=me;me=i!==0&&4>i?i:4,e(!0);var s=ja.transition;ja.transition={};try{e(!1),t()}finally{me=i,ja.transition=s}}function rd(){return vt().memoizedState}function fv(e,t,i){var s=Sn(e);if(i={lane:s,action:i,hasEagerState:!1,eagerState:null,next:null},id(e))od(t,i);else if(i=Ff(e,t,i,s),i!==null){var u=Je();At(i,e,s,u),sd(i,t,s)}}function dv(e,t,i){var s=Sn(e),u={lane:s,action:i,hasEagerState:!1,eagerState:null,next:null};if(id(e))od(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,x=d(m,i);if(u.hasEagerState=!0,u.eagerState=x,Tt(x,m)){var E=t.interleaved;E===null?(u.next=u,Aa(t)):(u.next=E.next,E.next=u),t.interleaved=u;return}}catch{}i=Ff(e,t,u,s),i!==null&&(u=Je(),At(i,e,s,u),sd(i,t,s))}}function id(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function od(e,t){ai=Ro=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function sd(e,t,i){if((i&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,Ks(e,i)}}var Mo={readContext:gt,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},hv={readContext:gt,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Qf,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Do(4194308,4,qf.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Do(4194308,4,e,t)},useInsertionEffect:function(e,t){return Do(4,2,e,t)},useMemo:function(e,t){var i=Ot();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var s=Ot();return t=i!==void 0?i(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=fv.bind(null,Pe,e),[s.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:Gf,useDebugValue:Ha,useDeferredValue:function(e){return Ot().memoizedState=e},useTransition:function(){var e=Gf(!1),t=e[0];return e=cv.bind(null,e[1]),Ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var s=Pe,u=Ot();if(Ee){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),je===null)throw Error(o(349));(Bn&30)!==0||$f(s,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,Qf(Hf.bind(null,s,d,e),[e]),s.flags|=2048,ci(9,Wf.bind(null,s,d,i,t),void 0,null),i},useId:function(){var e=Ot(),t=je.identifierPrefix;if(Ee){var i=Kt,s=bt;i=(s&~(1<<32-kt(s)-1)).toString(32)+i,t=":"+t+"R"+i,i=li++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=uv++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pv={readContext:gt,useCallback:ed,useContext:gt,useEffect:Wa,useImperativeHandle:Jf,useInsertionEffect:Xf,useLayoutEffect:Zf,useMemo:td,useReducer:Ua,useRef:Yf,useState:function(){return Ua(ui)},useDebugValue:Ha,useDeferredValue:function(e){var t=vt();return nd(t,Ne.memoizedState,e)},useTransition:function(){var e=Ua(ui)[0],t=vt().memoizedState;return[e,t]},useMutableSource:zf,useSyncExternalStore:Uf,useId:rd,unstable_isNewReconciler:!1},mv={readContext:gt,useCallback:ed,useContext:gt,useEffect:Wa,useImperativeHandle:Jf,useInsertionEffect:Xf,useLayoutEffect:Zf,useMemo:td,useReducer:$a,useRef:Yf,useState:function(){return $a(ui)},useDebugValue:Ha,useDeferredValue:function(e){var t=vt();return Ne===null?t.memoizedState=e:nd(t,Ne.memoizedState,e)},useTransition:function(){var e=$a(ui)[0],t=vt().memoizedState;return[e,t]},useMutableSource:zf,useSyncExternalStore:Uf,useId:rd,unstable_isNewReconciler:!1};function Dt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function ba(e,t,i,s){t=e.memoizedState,i=i(s,t),i=i==null?t:W({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ao={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var s=Je(),u=Sn(e),d=Yt(s,u);d.payload=t,i!=null&&(d.callback=i),t=gn(e,d,u),t!==null&&(At(t,e,u,s),Co(t,e,u))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var s=Je(),u=Sn(e),d=Yt(s,u);d.tag=1,d.payload=t,i!=null&&(d.callback=i),t=gn(e,d,u),t!==null&&(At(t,e,u,s),Co(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Je(),s=Sn(e),u=Yt(i,s);u.tag=2,t!=null&&(u.callback=t),t=gn(e,u,s),t!==null&&(At(t,e,s,i),Co(t,e,s))}};function ad(e,t,i,s,u,d,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,m):t.prototype&&t.prototype.isPureReactComponent?!Xr(i,s)||!Xr(u,d):!0}function ld(e,t,i){var s=!1,u=pn,d=t.contextType;return typeof d=="object"&&d!==null?d=gt(d):(u=it(t)?_n:He.current,s=t.contextTypes,d=(s=s!=null)?lr(e,u):pn),t=new t(i,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ao,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=d),t}function ud(e,t,i,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,s),t.state!==e&&Ao.enqueueReplaceState(t,t.state,null)}function Ka(e,t,i,s){var u=e.stateNode;u.props=i,u.state=e.memoizedState,u.refs={},Va(e);var d=t.contextType;typeof d=="object"&&d!==null?u.context=gt(d):(d=it(t)?_n:He.current,u.context=lr(e,d)),u.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(ba(e,t,d,i),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&Ao.enqueueReplaceState(u,u.state,null),Po(e,i,u,s),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function yr(e,t){try{var i="",s=t;do i+=fe(s),s=s.return;while(s);var u=i}catch(d){u=`
|
|
7
|
-
Error generating stack: `+d.message+`
|
|
8
|
-
`+d.stack}return{value:e,source:t,stack:u,digest:null}}function Ga(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function Ya(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var yv=typeof WeakMap=="function"?WeakMap:Map;function cd(e,t,i){i=Yt(-1,i),i.tag=3,i.payload={element:null};var s=t.value;return i.callback=function(){Oo||(Oo=!0,ul=s),Ya(e,t)},i}function fd(e,t,i){i=Yt(-1,i),i.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var u=t.value;i.payload=function(){return s(u)},i.callback=function(){Ya(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(i.callback=function(){Ya(e,t),typeof s!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),i}function dd(e,t,i){var s=e.pingCache;if(s===null){s=e.pingCache=new yv;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(i)||(u.add(i),e=Mv.bind(null,e,t,i),t.then(e,e))}function hd(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 pd(e,t,i,s,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Yt(-1,1),t.tag=2,gn(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var gv=H.ReactCurrentOwner,ot=!1;function qe(e,t,i,s){t.child=e===null?_f(t,null,i,s):dr(t,e.child,i,s)}function md(e,t,i,s,u){i=i.render;var d=t.ref;return pr(t,u),s=Ba(e,t,i,s,d,u),i=za(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Qt(e,t,u)):(Ee&&i&&Ea(t),t.flags|=1,qe(e,t,s,u),t.child)}function yd(e,t,i,s,u){if(e===null){var d=i.type;return typeof d=="function"&&!yl(d)&&d.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=d,gd(e,t,d,s,u)):(e=Ho(i.type,null,s,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&u)===0){var m=d.memoizedProps;if(i=i.compare,i=i!==null?i:Xr,i(m,s)&&e.ref===t.ref)return Qt(e,t,u)}return t.flags|=1,e=Cn(d,s),e.ref=t.ref,e.return=t,t.child=e}function gd(e,t,i,s,u){if(e!==null){var d=e.memoizedProps;if(Xr(d,s)&&e.ref===t.ref)if(ot=!1,t.pendingProps=s=d,(e.lanes&u)!==0)(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,Qt(e,t,u)}return Qa(e,t,i,s,u)}function vd(e,t,i){var s=t.pendingProps,u=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(vr,pt),pt|=i;else{if((i&1073741824)===0)return e=d!==null?d.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(vr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:i,ge(vr,pt),pt|=s}else d!==null?(s=d.baseLanes|i,t.memoizedState=null):s=i,ge(vr,pt),pt|=s;return qe(e,t,u,i),t.child}function wd(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function Qa(e,t,i,s,u){var d=it(i)?_n:He.current;return d=lr(t,d),pr(t,u),i=Ba(e,t,i,s,d,u),s=za(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Qt(e,t,u)):(Ee&&s&&Ea(t),t.flags|=1,qe(e,t,i,u),t.child)}function xd(e,t,i,s,u){if(it(i)){var d=!0;mo(t)}else d=!1;if(pr(t,u),t.stateNode===null)No(e,t),ld(t,i,s),Ka(t,i,s,u),s=!0;else if(e===null){var m=t.stateNode,x=t.memoizedProps;m.props=x;var E=m.context,L=i.contextType;typeof L=="object"&&L!==null?L=gt(L):(L=it(i)?_n:He.current,L=lr(t,L));var j=i.getDerivedStateFromProps,O=typeof j=="function"||typeof m.getSnapshotBeforeUpdate=="function";O||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==s||E!==L)&&ud(t,m,s,L),yn=!1;var F=t.memoizedState;m.state=F,Po(t,s,m,u),E=t.memoizedState,x!==s||F!==E||rt.current||yn?(typeof j=="function"&&(ba(t,i,j,s),E=t.memoizedState),(x=yn||ad(t,i,x,s,F,E,L))?(O||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=E),m.props=s,m.state=E,m.context=L,s=x):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{m=t.stateNode,If(e,t),x=t.memoizedProps,L=t.type===t.elementType?x:Dt(t.type,x),m.props=L,O=t.pendingProps,F=m.context,E=i.contextType,typeof E=="object"&&E!==null?E=gt(E):(E=it(i)?_n:He.current,E=lr(t,E));var b=i.getDerivedStateFromProps;(j=typeof b=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==O||F!==E)&&ud(t,m,s,E),yn=!1,F=t.memoizedState,m.state=F,Po(t,s,m,u);var Y=t.memoizedState;x!==O||F!==Y||rt.current||yn?(typeof b=="function"&&(ba(t,i,b,s),Y=t.memoizedState),(L=yn||ad(t,i,L,s,F,Y,E)||!1)?(j||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,Y,E),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,Y,E)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=Y),m.props=s,m.state=Y,m.context=E,s=L):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),s=!1)}return Xa(e,t,i,s,d,u)}function Xa(e,t,i,s,u,d){wd(e,t);var m=(t.flags&128)!==0;if(!s&&!m)return u&&kf(t,i,!1),Qt(e,t,d);s=t.stateNode,gv.current=t;var x=m&&typeof i.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&m?(t.child=dr(t,e.child,null,d),t.child=dr(t,null,x,d)):qe(e,t,x,d),t.memoizedState=s.state,u&&kf(t,i,!0),t.child}function Sd(e){var t=e.stateNode;t.pendingContext?Cf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cf(e,t.context,!1),Na(e,t.containerInfo)}function Ed(e,t,i,s,u){return fr(),Ta(u),t.flags|=256,qe(e,t,i,s),t.child}var Za={dehydrated:null,treeContext:null,retryLane:0};function qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cd(e,t,i){var s=t.pendingProps,u=Ce.current,d=!1,m=(t.flags&128)!==0,x;if((x=m)||(x=e!==null&&e.memoizedState===null?!1:(u&2)!==0),x?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ge(Ce,u&1),e===null)return ka(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(m=s.children,e=s.fallback,d?(s=t.mode,d=t.child,m={mode:"hidden",children:m},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=m):d=bo(m,s,0,null),e=Hn(e,s,i,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=qa(i),t.memoizedState=Za,e):Ja(t,m));if(u=e.memoizedState,u!==null&&(x=u.dehydrated,x!==null))return vv(e,t,m,s,x,u,i);if(d){d=s.fallback,m=t.mode,u=e.child,x=u.sibling;var E={mode:"hidden",children:s.children};return(m&1)===0&&t.child!==u?(s=t.child,s.childLanes=0,s.pendingProps=E,t.deletions=null):(s=Cn(u,E),s.subtreeFlags=u.subtreeFlags&14680064),x!==null?d=Cn(x,d):(d=Hn(d,m,i,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,m=e.child.memoizedState,m=m===null?qa(i):{baseLanes:m.baseLanes|i,cachePool:null,transitions:m.transitions},d.memoizedState=m,d.childLanes=e.childLanes&~i,t.memoizedState=Za,s}return d=e.child,e=d.sibling,s=Cn(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=i),s.return=t,s.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=s,t.memoizedState=null,s}function Ja(e,t){return t=bo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vo(e,t,i,s){return s!==null&&Ta(s),dr(t,e.child,null,i),e=Ja(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vv(e,t,i,s,u,d,m){if(i)return t.flags&256?(t.flags&=-257,s=Ga(Error(o(422))),Vo(e,t,m,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,u=t.mode,s=bo({mode:"visible",children:s.children},u,0,null),d=Hn(d,u,m,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&dr(t,e.child,null,m),t.child.memoizedState=qa(m),t.memoizedState=Za,d);if((t.mode&1)===0)return Vo(e,t,m,null);if(u.data==="$!"){if(s=u.nextSibling&&u.nextSibling.dataset,s)var x=s.dgst;return s=x,d=Error(o(419)),s=Ga(d,s,void 0),Vo(e,t,m,s)}if(x=(m&e.childLanes)!==0,ot||x){if(s=je,s!==null){switch(m&-m){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(s.suspendedLanes|m))!==0?0:u,u!==0&&u!==d.retryLane&&(d.retryLane=u,Gt(e,u),At(s,e,u,-1))}return ml(),s=Ga(Error(o(421))),Vo(e,t,m,s)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Av.bind(null,e),u._reactRetry=t,null):(e=d.treeContext,ht=dn(u.nextSibling),dt=t,Ee=!0,Rt=null,e!==null&&(mt[yt++]=bt,mt[yt++]=Kt,mt[yt++]=Fn,bt=e.id,Kt=e.overflow,Fn=t),t=Ja(t,s.children),t.flags|=4096,t)}function Pd(e,t,i){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ma(e.return,t,i)}function el(e,t,i,s,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=i,d.tailMode=u)}function kd(e,t,i){var s=t.pendingProps,u=s.revealOrder,d=s.tail;if(qe(e,t,s.children,i),s=Ce.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pd(e,i,t);else if(e.tag===19)Pd(e,i,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}s&=1}if(ge(Ce,s),(t.mode&1)===0)t.memoizedState=null;else switch(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&ko(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),el(t,!1,u,i,d);break;case"backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&ko(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}el(t,!0,i,null,d);break;case"together":el(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function No(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qt(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=Cn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Cn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function wv(e,t,i){switch(t.tag){case 3:Sd(t),fr();break;case 5:Bf(t);break;case 1:it(t.type)&&mo(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,u=t.memoizedProps.value;ge(So,s._currentValue),s._currentValue=u;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ge(Ce,Ce.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?Cd(e,t,i):(ge(Ce,Ce.current&1),e=Qt(e,t,i),e!==null?e.sibling:null);ge(Ce,Ce.current&1);break;case 19:if(s=(i&t.childLanes)!==0,(e.flags&128)!==0){if(s)return kd(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ge(Ce,Ce.current),s)break;return null;case 22:case 23:return t.lanes=0,vd(e,t,i)}return Qt(e,t,i)}var Td,tl,Rd,Dd;Td=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},tl=function(){},Rd=function(e,t,i,s){var u=e.memoizedProps;if(u!==s){e=t.stateNode,On(jt.current);var d=null;switch(i){case"input":u=Ms(e,u),s=Ms(e,s),d=[];break;case"select":u=W({},u,{value:void 0}),s=W({},s,{value:void 0}),d=[];break;case"textarea":u=Ns(e,u),s=Ns(e,s),d=[];break;default:typeof u.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=fo)}Fs(i,s);var m;i=null;for(L in u)if(!s.hasOwnProperty(L)&&u.hasOwnProperty(L)&&u[L]!=null)if(L==="style"){var x=u[L];for(m in x)x.hasOwnProperty(m)&&(i||(i={}),i[m]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?d||(d=[]):(d=d||[]).push(L,null));for(L in s){var E=s[L];if(x=u?.[L],s.hasOwnProperty(L)&&E!==x&&(E!=null||x!=null))if(L==="style")if(x){for(m in x)!x.hasOwnProperty(m)||E&&E.hasOwnProperty(m)||(i||(i={}),i[m]="");for(m in E)E.hasOwnProperty(m)&&x[m]!==E[m]&&(i||(i={}),i[m]=E[m])}else i||(d||(d=[]),d.push(L,i)),i=E;else L==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,x=x?x.__html:void 0,E!=null&&x!==E&&(d=d||[]).push(L,E)):L==="children"?typeof E!="string"&&typeof E!="number"||(d=d||[]).push(L,""+E):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(E!=null&&L==="onScroll"&&ve("scroll",e),d||x===E||(d=[])):(d=d||[]).push(L,E))}i&&(d=d||[]).push("style",i);var L=d;(t.updateQueue=L)&&(t.flags|=4)}},Dd=function(e,t,i,s){i!==s&&(t.flags|=4)};function fi(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,s|=u.subtreeFlags&14680064,s|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=i,t}function xv(e,t,i){var s=t.pendingProps;switch(Ca(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 it(t.type)&&po(),Ke(t),null;case 3:return s=t.stateNode,mr(),we(rt),we(He),Ia(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rt!==null&&(dl(Rt),Rt=null))),tl(e,t),Ke(t),null;case 5:_a(t);var u=On(si.current);if(i=t.type,e!==null&&t.stateNode!=null)Rd(e,t,i,s,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Ke(t),null}if(e=On(jt.current),wo(t)){s=t.stateNode,i=t.type;var d=t.memoizedProps;switch(s[It]=t,s[ti]=d,e=(t.mode&1)!==0,i){case"dialog":ve("cancel",s),ve("close",s);break;case"iframe":case"object":case"embed":ve("load",s);break;case"video":case"audio":for(u=0;u<qr.length;u++)ve(qr[u],s);break;case"source":ve("error",s);break;case"img":case"image":case"link":ve("error",s),ve("load",s);break;case"details":ve("toggle",s);break;case"input":ac(s,d),ve("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},ve("invalid",s);break;case"textarea":cc(s,d),ve("invalid",s)}Fs(i,d),u=null;for(var m in d)if(d.hasOwnProperty(m)){var x=d[m];m==="children"?typeof x=="string"?s.textContent!==x&&(d.suppressHydrationWarning!==!0&&co(s.textContent,x,e),u=["children",x]):typeof x=="number"&&s.textContent!==""+x&&(d.suppressHydrationWarning!==!0&&co(s.textContent,x,e),u=["children",""+x]):l.hasOwnProperty(m)&&x!=null&&m==="onScroll"&&ve("scroll",s)}switch(i){case"input":Ui(s),uc(s,d,!0);break;case"textarea":Ui(s),dc(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=fo)}s=u,t.updateQueue=s,s!==null&&(t.flags|=4)}else{m=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=hc(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=m.createElement(i,{is:s.is}):(e=m.createElement(i),i==="select"&&(m=e,s.multiple?m.multiple=!0:s.size&&(m.size=s.size))):e=m.createElementNS(e,i),e[It]=t,e[ti]=s,Td(e,t,!1,!1),t.stateNode=e;e:{switch(m=Is(i,s),i){case"dialog":ve("cancel",e),ve("close",e),u=s;break;case"iframe":case"object":case"embed":ve("load",e),u=s;break;case"video":case"audio":for(u=0;u<qr.length;u++)ve(qr[u],e);u=s;break;case"source":ve("error",e),u=s;break;case"img":case"image":case"link":ve("error",e),ve("load",e),u=s;break;case"details":ve("toggle",e),u=s;break;case"input":ac(e,s),u=Ms(e,s),ve("invalid",e);break;case"option":u=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},u=W({},s,{value:void 0}),ve("invalid",e);break;case"textarea":cc(e,s),u=Ns(e,s),ve("invalid",e);break;default:u=s}Fs(i,u),x=u;for(d in x)if(x.hasOwnProperty(d)){var E=x[d];d==="style"?yc(e,E):d==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&pc(e,E)):d==="children"?typeof E=="string"?(i!=="textarea"||E!=="")&&Nr(e,E):typeof E=="number"&&Nr(e,""+E):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?E!=null&&d==="onScroll"&&ve("scroll",e):E!=null&&V(e,d,E,m))}switch(i){case"input":Ui(e),uc(e,s,!1);break;case"textarea":Ui(e),dc(e);break;case"option":s.value!=null&&e.setAttribute("value",""+pe(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Xn(e,!!s.multiple,d,!1):s.defaultValue!=null&&Xn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=fo)}switch(i){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ke(t),null;case 6:if(e&&t.stateNode!=null)Dd(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(i=On(si.current),On(jt.current),wo(t)){if(s=t.stateNode,i=t.memoizedProps,s[It]=t,(d=s.nodeValue!==i)&&(e=dt,e!==null))switch(e.tag){case 3:co(s.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&co(s.nodeValue,i,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(i.nodeType===9?i:i.ownerDocument).createTextNode(s),s[It]=t,t.stateNode=s}return Ke(t),null;case 13:if(we(Ce),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&ht!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Af(),fr(),t.flags|=98560,d=!1;else if(d=wo(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(o(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[It]=t}else fr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),d=!1}else Rt!==null&&(dl(Rt),Rt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?_e===0&&(_e=3):ml())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return mr(),tl(e,t),e===null&&Jr(t.stateNode.containerInfo),Ke(t),null;case 10:return La(t.type._context),Ke(t),null;case 17:return it(t.type)&&po(),Ke(t),null;case 19:if(we(Ce),d=t.memoizedState,d===null)return Ke(t),null;if(s=(t.flags&128)!==0,m=d.rendering,m===null)if(s)fi(d,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=ko(e),m!==null){for(t.flags|=128,fi(d,!1),s=m.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=i,i=t.child;i!==null;)d=i,e=s,d.flags&=14680066,m=d.alternate,m===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=m.childLanes,d.lanes=m.lanes,d.child=m.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=m.memoizedProps,d.memoizedState=m.memoizedState,d.updateQueue=m.updateQueue,d.type=m.type,e=m.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return ge(Ce,Ce.current&1|2),t.child}e=e.sibling}d.tail!==null&&Le()>wr&&(t.flags|=128,s=!0,fi(d,!1),t.lanes=4194304)}else{if(!s)if(e=ko(m),e!==null){if(t.flags|=128,s=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),fi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!Ee)return Ke(t),null}else 2*Le()-d.renderingStartTime>wr&&i!==1073741824&&(t.flags|=128,s=!0,fi(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(i=d.last,i!==null?i.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Le(),t.sibling=null,i=Ce.current,ge(Ce,s?i&1|2:i&1),t):(Ke(t),null);case 22:case 23:return pl(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(pt&1073741824)!==0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Sv(e,t){switch(Ca(t),t.tag){case 1:return it(t.type)&&po(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),we(rt),we(He),Ia(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return _a(t),null;case 13:if(we(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Ce),null;case 4:return mr(),null;case 10:return La(t.type._context),null;case 22:case 23:return pl(),null;case 24:return null;default:return null}}var _o=!1,Ge=!1,Ev=typeof WeakSet=="function"?WeakSet:Set,G=null;function gr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(s){Re(e,t,s)}else i.current=null}function nl(e,t,i){try{i()}catch(s){Re(e,t,s)}}var Ld=!1;function Cv(e,t){if(pa=Ji,e=af(),sa(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var m=0,x=-1,E=-1,L=0,j=0,O=e,F=null;t:for(;;){for(var b;O!==i||u!==0&&O.nodeType!==3||(x=m+u),O!==d||s!==0&&O.nodeType!==3||(E=m+s),O.nodeType===3&&(m+=O.nodeValue.length),(b=O.firstChild)!==null;)F=O,O=b;for(;;){if(O===e)break t;if(F===i&&++L===u&&(x=m),F===d&&++j===s&&(E=m),(b=O.nextSibling)!==null)break;O=F,F=O.parentNode}O=b}i=x===-1||E===-1?null:{start:x,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(ma={focusedElem:e,selectionRange:i},Ji=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var Y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var X=Y.memoizedProps,Me=Y.memoizedState,T=t.stateNode,C=T.getSnapshotBeforeUpdate(t.elementType===t.type?X:Dt(t.type,X),Me);T.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(B){Re(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return Y=Ld,Ld=!1,Y}function di(e,t,i){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&nl(t,i,d)}u=u.next}while(u!==s)}}function Fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var s=i.create;i.destroy=s()}i=i.next}while(i!==t)}}function rl(e){var t=e.ref;if(t!==null){var i=e.stateNode;e.tag,e=i,typeof t=="function"?t(e):t.current=e}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[ti],delete t[wa],delete t[ov],delete t[sv])),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 Ad(e){return e.tag===5||e.tag===3||e.tag===4}function Vd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(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 il(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=fo));else if(s!==4&&(e=e.child,e!==null))for(il(e,t,i),e=e.sibling;e!==null;)il(e,t,i),e=e.sibling}function ol(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(ol(e,t,i),e=e.sibling;e!==null;)ol(e,t,i),e=e.sibling}var Ue=null,Lt=!1;function vn(e,t,i){for(i=i.child;i!==null;)Nd(e,t,i),i=i.sibling}function Nd(e,t,i){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Gi,i)}catch{}switch(i.tag){case 5:Ge||gr(i,t);case 6:var s=Ue,u=Lt;Ue=null,vn(e,t,i),Ue=s,Lt=u,Ue!==null&&(Lt?(e=Ue,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):Ue.removeChild(i.stateNode));break;case 18:Ue!==null&&(Lt?(e=Ue,i=i.stateNode,e.nodeType===8?va(e.parentNode,i):e.nodeType===1&&va(e,i),Hr(e)):va(Ue,i.stateNode));break;case 4:s=Ue,u=Lt,Ue=i.stateNode.containerInfo,Lt=!0,vn(e,t,i),Ue=s,Lt=u;break;case 0:case 11:case 14:case 15:if(!Ge&&(s=i.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){u=s=s.next;do{var d=u,m=d.destroy;d=d.tag,m!==void 0&&((d&2)!==0||(d&4)!==0)&&nl(i,t,m),u=u.next}while(u!==s)}vn(e,t,i);break;case 1:if(!Ge&&(gr(i,t),s=i.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=i.memoizedProps,s.state=i.memoizedState,s.componentWillUnmount()}catch(x){Re(i,t,x)}vn(e,t,i);break;case 21:vn(e,t,i);break;case 22:i.mode&1?(Ge=(s=Ge)||i.memoizedState!==null,vn(e,t,i),Ge=s):vn(e,t,i);break;default:vn(e,t,i)}}function _d(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Ev),t.forEach(function(s){var u=Vv.bind(null,e,s);i.has(s)||(i.add(s),s.then(u,u))})}}function Mt(e,t){var i=t.deletions;if(i!==null)for(var s=0;s<i.length;s++){var u=i[s];try{var d=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 5:Ue=x.stateNode,Lt=!1;break e;case 3:Ue=x.stateNode.containerInfo,Lt=!0;break e;case 4:Ue=x.stateNode.containerInfo,Lt=!0;break e}x=x.return}if(Ue===null)throw Error(o(160));Nd(d,m,u),Ue=null,Lt=!1;var E=u.alternate;E!==null&&(E.return=null),u.return=null}catch(L){Re(u,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Fd(t,e),t=t.sibling}function Fd(e,t){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Bt(e),s&4){try{di(3,e,e.return),Fo(3,e)}catch(X){Re(e,e.return,X)}try{di(5,e,e.return)}catch(X){Re(e,e.return,X)}}break;case 1:Mt(t,e),Bt(e),s&512&&i!==null&&gr(i,i.return);break;case 5:if(Mt(t,e),Bt(e),s&512&&i!==null&&gr(i,i.return),e.flags&32){var u=e.stateNode;try{Nr(u,"")}catch(X){Re(e,e.return,X)}}if(s&4&&(u=e.stateNode,u!=null)){var d=e.memoizedProps,m=i!==null?i.memoizedProps:d,x=e.type,E=e.updateQueue;if(e.updateQueue=null,E!==null)try{x==="input"&&d.type==="radio"&&d.name!=null&&lc(u,d),Is(x,m);var L=Is(x,d);for(m=0;m<E.length;m+=2){var j=E[m],O=E[m+1];j==="style"?yc(u,O):j==="dangerouslySetInnerHTML"?pc(u,O):j==="children"?Nr(u,O):V(u,j,O,L)}switch(x){case"input":As(u,d);break;case"textarea":fc(u,d);break;case"select":var F=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!d.multiple;var b=d.value;b!=null?Xn(u,!!d.multiple,b,!1):F!==!!d.multiple&&(d.defaultValue!=null?Xn(u,!!d.multiple,d.defaultValue,!0):Xn(u,!!d.multiple,d.multiple?[]:"",!1))}u[ti]=d}catch(X){Re(e,e.return,X)}}break;case 6:if(Mt(t,e),Bt(e),s&4){if(e.stateNode===null)throw Error(o(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(X){Re(e,e.return,X)}}break;case 3:if(Mt(t,e),Bt(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(X){Re(e,e.return,X)}break;case 4:Mt(t,e),Bt(e);break;case 13:Mt(t,e),Bt(e),u=e.child,u.flags&8192&&(d=u.memoizedState!==null,u.stateNode.isHidden=d,!d||u.alternate!==null&&u.alternate.memoizedState!==null||(ll=Le())),s&4&&_d(e);break;case 22:if(j=i!==null&&i.memoizedState!==null,e.mode&1?(Ge=(L=Ge)||j,Mt(t,e),Ge=L):Mt(t,e),Bt(e),s&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!j&&(e.mode&1)!==0)for(G=e,j=e.child;j!==null;){for(O=G=j;G!==null;){switch(F=G,b=F.child,F.tag){case 0:case 11:case 14:case 15:di(4,F,F.return);break;case 1:gr(F,F.return);var Y=F.stateNode;if(typeof Y.componentWillUnmount=="function"){s=F,i=F.return;try{t=s,Y.props=t.memoizedProps,Y.state=t.memoizedState,Y.componentWillUnmount()}catch(X){Re(s,i,X)}}break;case 5:gr(F,F.return);break;case 22:if(F.memoizedState!==null){Od(O);continue}}b!==null?(b.return=F,G=b):Od(O)}j=j.sibling}e:for(j=null,O=e;;){if(O.tag===5){if(j===null){j=O;try{u=O.stateNode,L?(d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(x=O.stateNode,E=O.memoizedProps.style,m=E!=null&&E.hasOwnProperty("display")?E.display:null,x.style.display=mc("display",m))}catch(X){Re(e,e.return,X)}}}else if(O.tag===6){if(j===null)try{O.stateNode.nodeValue=L?"":O.memoizedProps}catch(X){Re(e,e.return,X)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;j===O&&(j=null),O=O.return}j===O&&(j=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Mt(t,e),Bt(e),s&4&&_d(e);break;case 21:break;default:Mt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(Ad(i)){var s=i;break e}i=i.return}throw Error(o(160))}switch(s.tag){case 5:var u=s.stateNode;s.flags&32&&(Nr(u,""),s.flags&=-33);var d=Vd(e);ol(e,d,u);break;case 3:case 4:var m=s.stateNode.containerInfo,x=Vd(e);il(e,x,m);break;default:throw Error(o(161))}}catch(E){Re(e,e.return,E)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pv(e,t,i){G=e,Id(e)}function Id(e,t,i){for(var s=(e.mode&1)!==0;G!==null;){var u=G,d=u.child;if(u.tag===22&&s){var m=u.memoizedState!==null||_o;if(!m){var x=u.alternate,E=x!==null&&x.memoizedState!==null||Ge;x=_o;var L=Ge;if(_o=m,(Ge=E)&&!L)for(G=u;G!==null;)m=G,E=m.child,m.tag===22&&m.memoizedState!==null?Bd(u):E!==null?(E.return=m,G=E):Bd(u);for(;d!==null;)G=d,Id(d),d=d.sibling;G=u,_o=x,Ge=L}jd(e)}else(u.subtreeFlags&8772)!==0&&d!==null?(d.return=u,G=d):jd(e)}}function jd(e){for(;G!==null;){var t=G;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ge||Fo(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ge)if(i===null)s.componentDidMount();else{var u=t.elementType===t.type?i.memoizedProps:Dt(t.type,i.memoizedProps);s.componentDidUpdate(u,i.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Of(t,d,s);break;case 3:var m=t.updateQueue;if(m!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}Of(t,m,i)}break;case 5:var x=t.stateNode;if(i===null&&t.flags&4){i=x;var E=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&i.focus();break;case"img":E.src&&(i.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var L=t.alternate;if(L!==null){var j=L.memoizedState;if(j!==null){var O=j.dehydrated;O!==null&&Hr(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ge||t.flags&512&&rl(t)}catch(F){Re(t,t.return,F)}}if(t===e){G=null;break}if(i=t.sibling,i!==null){i.return=t.return,G=i;break}G=t.return}}function Od(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var i=t.sibling;if(i!==null){i.return=t.return,G=i;break}G=t.return}}function Bd(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{Fo(4,t)}catch(E){Re(t,i,E)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var u=t.return;try{s.componentDidMount()}catch(E){Re(t,u,E)}}var d=t.return;try{rl(t)}catch(E){Re(t,d,E)}break;case 5:var m=t.return;try{rl(t)}catch(E){Re(t,m,E)}}}catch(E){Re(t,t.return,E)}if(t===e){G=null;break}var x=t.sibling;if(x!==null){x.return=t.return,G=x;break}G=t.return}}var kv=Math.ceil,Io=H.ReactCurrentDispatcher,sl=H.ReactCurrentOwner,wt=H.ReactCurrentBatchConfig,ue=0,je=null,Ae=null,$e=0,pt=0,vr=hn(0),_e=0,hi=null,zn=0,jo=0,al=0,pi=null,st=null,ll=0,wr=1/0,Xt=null,Oo=!1,ul=null,wn=null,Bo=!1,xn=null,zo=0,mi=0,cl=null,Uo=-1,$o=0;function Je(){return(ue&6)!==0?Le():Uo!==-1?Uo:Uo=Le()}function Sn(e){return(e.mode&1)===0?1:(ue&2)!==0&&$e!==0?$e&-$e:lv.transition!==null?($o===0&&($o=Ac()),$o):(e=me,e!==0||(e=window.event,e=e===void 0?16:zc(e.type)),e)}function At(e,t,i,s){if(50<mi)throw mi=0,cl=null,Error(o(185));Br(e,i,s),((ue&2)===0||e!==je)&&(e===je&&((ue&2)===0&&(jo|=i),_e===4&&En(e,$e)),at(e,s),i===1&&ue===0&&(t.mode&1)===0&&(wr=Le()+500,yo&&mn()))}function at(e,t){var i=e.callbackNode;lg(e,t);var s=Xi(e,e===je?$e:0);if(s===0)i!==null&&Dc(i),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(i!=null&&Dc(i),t===1)e.tag===0?av(Ud.bind(null,e)):Tf(Ud.bind(null,e)),rv(function(){(ue&6)===0&&mn()}),i=null;else{switch(Vc(s)){case 1:i=Ws;break;case 4:i=Lc;break;case 16:i=Ki;break;case 536870912:i=Mc;break;default:i=Ki}i=Qd(i,zd.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function zd(e,t){if(Uo=-1,$o=0,(ue&6)!==0)throw Error(o(327));var i=e.callbackNode;if(xr()&&e.callbackNode!==i)return null;var s=Xi(e,e===je?$e:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Wo(e,s);else{t=s;var u=ue;ue|=2;var d=Wd();(je!==e||$e!==t)&&(Xt=null,wr=Le()+500,$n(e,t));do try{Dv();break}catch(x){$d(e,x)}while(!0);Da(),Io.current=d,ue=u,Ae!==null?t=0:(je=null,$e=0,t=_e)}if(t!==0){if(t===2&&(u=Hs(e),u!==0&&(s=u,t=fl(e,u))),t===1)throw i=hi,$n(e,0),En(e,s),at(e,Le()),i;if(t===6)En(e,s);else{if(u=e.current.alternate,(s&30)===0&&!Tv(u)&&(t=Wo(e,s),t===2&&(d=Hs(e),d!==0&&(s=d,t=fl(e,d))),t===1))throw i=hi,$n(e,0),En(e,s),at(e,Le()),i;switch(e.finishedWork=u,e.finishedLanes=s,t){case 0:case 1:throw Error(o(345));case 2:Wn(e,st,Xt);break;case 3:if(En(e,s),(s&130023424)===s&&(t=ll+500-Le(),10<t)){if(Xi(e,0)!==0)break;if(u=e.suspendedLanes,(u&s)!==s){Je(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=ga(Wn.bind(null,e,st,Xt),t);break}Wn(e,st,Xt);break;case 4:if(En(e,s),(s&4194240)===s)break;for(t=e.eventTimes,u=-1;0<s;){var m=31-kt(s);d=1<<m,m=t[m],m>u&&(u=m),s&=~d}if(s=u,s=Le()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*kv(s/1960))-s,10<s){e.timeoutHandle=ga(Wn.bind(null,e,st,Xt),s);break}Wn(e,st,Xt);break;case 5:Wn(e,st,Xt);break;default:throw Error(o(329))}}}return at(e,Le()),e.callbackNode===i?zd.bind(null,e):null}function fl(e,t){var i=pi;return e.current.memoizedState.isDehydrated&&($n(e,t).flags|=256),e=Wo(e,t),e!==2&&(t=st,st=i,t!==null&&dl(t)),e}function dl(e){st===null?st=e:st.push.apply(st,e)}function Tv(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var s=0;s<i.length;s++){var u=i[s],d=u.getSnapshot;u=u.value;try{if(!Tt(d(),u))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 En(e,t){for(t&=~al,t&=~jo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-kt(t),s=1<<i;e[i]=-1,t&=~s}}function Ud(e){if((ue&6)!==0)throw Error(o(327));xr();var t=Xi(e,0);if((t&1)===0)return at(e,Le()),null;var i=Wo(e,t);if(e.tag!==0&&i===2){var s=Hs(e);s!==0&&(t=s,i=fl(e,s))}if(i===1)throw i=hi,$n(e,0),En(e,t),at(e,Le()),i;if(i===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e,st,Xt),at(e,Le()),null}function hl(e,t){var i=ue;ue|=1;try{return e(t)}finally{ue=i,ue===0&&(wr=Le()+500,yo&&mn())}}function Un(e){xn!==null&&xn.tag===0&&(ue&6)===0&&xr();var t=ue;ue|=1;var i=wt.transition,s=me;try{if(wt.transition=null,me=1,e)return e()}finally{me=s,wt.transition=i,ue=t,(ue&6)===0&&mn()}}function pl(){pt=vr.current,we(vr)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,nv(i)),Ae!==null)for(i=Ae.return;i!==null;){var s=i;switch(Ca(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&po();break;case 3:mr(),we(rt),we(He),Ia();break;case 5:_a(s);break;case 4:mr();break;case 13:we(Ce);break;case 19:we(Ce);break;case 10:La(s.type._context);break;case 22:case 23:pl()}i=i.return}if(je=e,Ae=e=Cn(e.current,null),$e=pt=t,_e=0,hi=null,al=jo=zn=0,st=pi=null,jn!==null){for(t=0;t<jn.length;t++)if(i=jn[t],s=i.interleaved,s!==null){i.interleaved=null;var u=s.next,d=i.pending;if(d!==null){var m=d.next;d.next=u,s.next=m}i.pending=s}jn=null}return e}function $d(e,t){do{var i=Ae;try{if(Da(),To.current=Mo,Ro){for(var s=Pe.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}Ro=!1}if(Bn=0,Ie=Ne=Pe=null,ai=!1,li=0,sl.current=null,i===null||i.return===null){_e=1,hi=t,Ae=null;break}e:{var d=e,m=i.return,x=i,E=t;if(t=$e,x.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var L=E,j=x,O=j.tag;if((j.mode&1)===0&&(O===0||O===11||O===15)){var F=j.alternate;F?(j.updateQueue=F.updateQueue,j.memoizedState=F.memoizedState,j.lanes=F.lanes):(j.updateQueue=null,j.memoizedState=null)}var b=hd(m);if(b!==null){b.flags&=-257,pd(b,m,x,d,t),b.mode&1&&dd(d,L,t),t=b,E=L;var Y=t.updateQueue;if(Y===null){var X=new Set;X.add(E),t.updateQueue=X}else Y.add(E);break e}else{if((t&1)===0){dd(d,L,t),ml();break e}E=Error(o(426))}}else if(Ee&&x.mode&1){var Me=hd(m);if(Me!==null){(Me.flags&65536)===0&&(Me.flags|=256),pd(Me,m,x,d,t),Ta(yr(E,x));break e}}d=E=yr(E,x),_e!==4&&(_e=2),pi===null?pi=[d]:pi.push(d),d=m;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var T=cd(d,E,t);jf(d,T);break e;case 1:x=E;var C=d.type,R=d.stateNode;if((d.flags&128)===0&&(typeof C.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(wn===null||!wn.has(R)))){d.flags|=65536,t&=-t,d.lanes|=t;var B=fd(d,x,t);jf(d,B);break e}}d=d.return}while(d!==null)}bd(i)}catch(Z){t=Z,Ae===i&&i!==null&&(Ae=i=i.return);continue}break}while(!0)}function Wd(){var e=Io.current;return Io.current=Mo,e===null?Mo:e}function ml(){(_e===0||_e===3||_e===2)&&(_e=4),je===null||(zn&268435455)===0&&(jo&268435455)===0||En(je,$e)}function Wo(e,t){var i=ue;ue|=2;var s=Wd();(je!==e||$e!==t)&&(Xt=null,$n(e,t));do try{Rv();break}catch(u){$d(e,u)}while(!0);if(Da(),ue=i,Io.current=s,Ae!==null)throw Error(o(261));return je=null,$e=0,_e}function Rv(){for(;Ae!==null;)Hd(Ae)}function Dv(){for(;Ae!==null&&!Jy();)Hd(Ae)}function Hd(e){var t=Yd(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?bd(e):Ae=t,sl.current=null}function bd(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=xv(i,t,pt),i!==null){Ae=i;return}}else{if(i=Sv(i,t),i!==null){i.flags&=32767,Ae=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Ae=null;return}}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);_e===0&&(_e=5)}function Wn(e,t,i){var s=me,u=wt.transition;try{wt.transition=null,me=1,Lv(e,t,i,s)}finally{wt.transition=u,me=s}return null}function Lv(e,t,i,s){do xr();while(xn!==null);if((ue&6)!==0)throw Error(o(327));i=e.finishedWork;var u=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var d=i.lanes|i.childLanes;if(ug(e,d),e===je&&(Ae=je=null,$e=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Bo||(Bo=!0,Qd(Ki,function(){return xr(),null})),d=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||d){d=wt.transition,wt.transition=null;var m=me;me=1;var x=ue;ue|=4,sl.current=null,Cv(e,i),Fd(i,e),Qg(ma),Ji=!!pa,ma=pa=null,e.current=i,Pv(i),eg(),ue=x,me=m,wt.transition=d}else e.current=i;if(Bo&&(Bo=!1,xn=e,zo=u),d=e.pendingLanes,d===0&&(wn=null),rg(i.stateNode),at(e,Le()),t!==null)for(s=e.onRecoverableError,i=0;i<t.length;i++)u=t[i],s(u.value,{componentStack:u.stack,digest:u.digest});if(Oo)throw Oo=!1,e=ul,ul=null,e;return(zo&1)!==0&&e.tag!==0&&xr(),d=e.pendingLanes,(d&1)!==0?e===cl?mi++:(mi=0,cl=e):mi=0,mn(),null}function xr(){if(xn!==null){var e=Vc(zo),t=wt.transition,i=me;try{if(wt.transition=null,me=16>e?16:e,xn===null)var s=!1;else{if(e=xn,xn=null,zo=0,(ue&6)!==0)throw Error(o(331));var u=ue;for(ue|=4,G=e.current;G!==null;){var d=G,m=d.child;if((G.flags&16)!==0){var x=d.deletions;if(x!==null){for(var E=0;E<x.length;E++){var L=x[E];for(G=L;G!==null;){var j=G;switch(j.tag){case 0:case 11:case 15:di(8,j,d)}var O=j.child;if(O!==null)O.return=j,G=O;else for(;G!==null;){j=G;var F=j.sibling,b=j.return;if(Md(j),j===L){G=null;break}if(F!==null){F.return=b,G=F;break}G=b}}}var Y=d.alternate;if(Y!==null){var X=Y.child;if(X!==null){Y.child=null;do{var Me=X.sibling;X.sibling=null,X=Me}while(X!==null)}}G=d}}if((d.subtreeFlags&2064)!==0&&m!==null)m.return=d,G=m;else e:for(;G!==null;){if(d=G,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:di(9,d,d.return)}var T=d.sibling;if(T!==null){T.return=d.return,G=T;break e}G=d.return}}var C=e.current;for(G=C;G!==null;){m=G;var R=m.child;if((m.subtreeFlags&2064)!==0&&R!==null)R.return=m,G=R;else e:for(m=C;G!==null;){if(x=G,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:Fo(9,x)}}catch(Z){Re(x,x.return,Z)}if(x===m){G=null;break e}var B=x.sibling;if(B!==null){B.return=x.return,G=B;break e}G=x.return}}if(ue=u,mn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Gi,e)}catch{}s=!0}return s}finally{me=i,wt.transition=t}}return!1}function Kd(e,t,i){t=yr(i,t),t=cd(e,t,1),e=gn(e,t,1),t=Je(),e!==null&&(Br(e,1,t),at(e,t))}function Re(e,t,i){if(e.tag===3)Kd(e,e,i);else for(;t!==null;){if(t.tag===3){Kd(t,e,i);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(wn===null||!wn.has(s))){e=yr(i,e),e=fd(t,e,1),t=gn(t,e,1),e=Je(),t!==null&&(Br(t,1,e),at(t,e));break}}t=t.return}}function Mv(e,t,i){var s=e.pingCache;s!==null&&s.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&i,je===e&&($e&i)===i&&(_e===4||_e===3&&($e&130023424)===$e&&500>Le()-ll?$n(e,0):al|=i),at(e,t)}function Gd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Qi,Qi<<=1,(Qi&130023424)===0&&(Qi=4194304)));var i=Je();e=Gt(e,t),e!==null&&(Br(e,t,i),at(e,i))}function Av(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Gd(e,i)}function Vv(e,t){var i=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(t),Gd(e,i)}var Yd;Yd=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)ot=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return ot=!1,wv(e,t,i);ot=(e.flags&131072)!==0}else ot=!1,Ee&&(t.flags&1048576)!==0&&Rf(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;No(e,t),e=t.pendingProps;var u=lr(t,He.current);pr(t,i),u=Ba(null,t,s,e,u,i);var d=za();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(s)?(d=!0,mo(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Va(t),u.updater=Ao,t.stateNode=u,u._reactInternals=t,Ka(t,s,e,i),t=Xa(null,t,s,!0,d,i)):(t.tag=0,Ee&&d&&Ea(t),qe(null,t,u,i),t=t.child),t;case 16:s=t.elementType;e:{switch(No(e,t),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=_v(s),e=Dt(s,e),u){case 0:t=Qa(null,t,s,e,i);break e;case 1:t=xd(null,t,s,e,i);break e;case 11:t=md(null,t,s,e,i);break e;case 14:t=yd(null,t,s,Dt(s.type,e),i);break e}throw Error(o(306,s,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Dt(s,u),Qa(e,t,s,u,i);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Dt(s,u),xd(e,t,s,u,i);case 3:e:{if(Sd(t),e===null)throw Error(o(387));s=t.pendingProps,d=t.memoizedState,u=d.element,If(e,t),Po(t,s,null,i);var m=t.memoizedState;if(s=m.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=yr(Error(o(423)),t),t=Ed(e,t,s,i,u);break e}else if(s!==u){u=yr(Error(o(424)),t),t=Ed(e,t,s,i,u);break e}else for(ht=dn(t.stateNode.containerInfo.firstChild),dt=t,Ee=!0,Rt=null,i=_f(t,null,s,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(fr(),s===u){t=Qt(e,t,i);break e}qe(e,t,s,i)}t=t.child}return t;case 5:return Bf(t),e===null&&ka(t),s=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,m=u.children,ya(s,u)?m=null:d!==null&&ya(s,d)&&(t.flags|=32),wd(e,t),qe(e,t,m,i),t.child;case 6:return e===null&&ka(t),null;case 13:return Cd(e,t,i);case 4:return Na(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=dr(t,null,s,i):qe(e,t,s,i),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Dt(s,u),md(e,t,s,u,i);case 7:return qe(e,t,t.pendingProps,i),t.child;case 8:return qe(e,t,t.pendingProps.children,i),t.child;case 12:return qe(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(s=t.type._context,u=t.pendingProps,d=t.memoizedProps,m=u.value,ge(So,s._currentValue),s._currentValue=m,d!==null)if(Tt(d.value,m)){if(d.children===u.children&&!rt.current){t=Qt(e,t,i);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var x=d.dependencies;if(x!==null){m=d.child;for(var E=x.firstContext;E!==null;){if(E.context===s){if(d.tag===1){E=Yt(-1,i&-i),E.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var j=L.pending;j===null?E.next=E:(E.next=j.next,j.next=E),L.pending=E}}d.lanes|=i,E=d.alternate,E!==null&&(E.lanes|=i),Ma(d.return,i,t),x.lanes|=i;break}E=E.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(o(341));m.lanes|=i,x=m.alternate,x!==null&&(x.lanes|=i),Ma(m,i,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}qe(e,t,u.children,i),t=t.child}return t;case 9:return u=t.type,s=t.pendingProps.children,pr(t,i),u=gt(u),s=s(u),t.flags|=1,qe(e,t,s,i),t.child;case 14:return s=t.type,u=Dt(s,t.pendingProps),u=Dt(s.type,u),yd(e,t,s,u,i);case 15:return gd(e,t,t.type,t.pendingProps,i);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Dt(s,u),No(e,t),t.tag=1,it(s)?(e=!0,mo(t)):e=!1,pr(t,i),ld(t,s,u),Ka(t,s,u,i),Xa(null,t,s,!0,e,i);case 19:return kd(e,t,i);case 22:return vd(e,t,i)}throw Error(o(156,t.tag))};function Qd(e,t){return Rc(e,t)}function Nv(e,t,i,s){this.tag=e,this.key=i,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,i,s){return new Nv(e,t,i,s)}function yl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _v(e){if(typeof e=="function")return yl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qe)return 11;if(e===ut)return 14}return 2}function Cn(e,t){var i=e.alternate;return i===null?(i=xt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Ho(e,t,i,s,u,d){var m=2;if(s=e,typeof e=="function")yl(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case J:return Hn(i.children,u,d,t);case $:m=8,u|=8;break;case ae:return e=xt(12,i,t,u|2),e.elementType=ae,e.lanes=d,e;case Xe:return e=xt(13,i,t,u),e.elementType=Xe,e.lanes=d,e;case nt:return e=xt(19,i,t,u),e.elementType=nt,e.lanes=d,e;case ie:return bo(i,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:m=10;break e;case ze:m=9;break e;case Qe:m=11;break e;case ut:m=14;break e;case Ze:m=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=xt(m,i,t,u),t.elementType=e,t.type=s,t.lanes=d,t}function Hn(e,t,i,s){return e=xt(7,e,s,t),e.lanes=i,e}function bo(e,t,i,s){return e=xt(22,e,s,t),e.elementType=ie,e.lanes=i,e.stateNode={isHidden:!1},e}function gl(e,t,i){return e=xt(6,e,null,t),e.lanes=i,e}function vl(e,t,i){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fv(e,t,i,s,u){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=bs(0),this.expirationTimes=bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bs(0),this.identifierPrefix=s,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function wl(e,t,i,s,u,d,m,x,E){return e=new Fv(e,t,i,x,E),t===1?(t=1,d===!0&&(t|=8)):t=0,d=xt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Va(d),e}function Iv(e,t,i){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:s==null?null:""+s,children:e,containerInfo:t,implementation:i}}function Xd(e){if(!e)return pn;e=e._reactInternals;e:{if(Vn(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var i=e.type;if(it(i))return Pf(e,i,t)}return t}function Zd(e,t,i,s,u,d,m,x,E){return e=wl(i,s,!0,e,u,d,m,x,E),e.context=Xd(null),i=e.current,s=Je(),u=Sn(i),d=Yt(s,u),d.callback=t??null,gn(i,d,u),e.current.lanes=u,Br(e,u,s),at(e,s),e}function Ko(e,t,i,s){var u=t.current,d=Je(),m=Sn(u);return i=Xd(i),t.context===null?t.context=i:t.pendingContext=i,t=Yt(d,m),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=gn(u,t,m),e!==null&&(At(e,u,m,d),Co(e,u,m)),m}function Go(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function qd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function xl(e,t){qd(e,t),(e=e.alternate)&&qd(e,t)}function jv(){return null}var Jd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Sl(e){this._internalRoot=e}Yo.prototype.render=Sl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));Ko(e,t,null,null)},Yo.prototype.unmount=Sl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Un(function(){Ko(null,e,null,null)}),t[Wt]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fc();e={blockedOn:null,target:e,priority:t};for(var i=0;i<un.length&&t!==0&&t<un[i].priority;i++);un.splice(i,0,e),i===0&&Oc(e)}};function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function eh(){}function Ov(e,t,i,s,u){if(u){if(typeof s=="function"){var d=s;s=function(){var L=Go(m);d.call(L)}}var m=Zd(t,s,e,0,null,!1,!1,"",eh);return e._reactRootContainer=m,e[Wt]=m.current,Jr(e.nodeType===8?e.parentNode:e),Un(),m}for(;u=e.lastChild;)e.removeChild(u);if(typeof s=="function"){var x=s;s=function(){var L=Go(E);x.call(L)}}var E=wl(e,0,!1,null,null,!1,!1,"",eh);return e._reactRootContainer=E,e[Wt]=E.current,Jr(e.nodeType===8?e.parentNode:e),Un(function(){Ko(t,E,i,s)}),E}function Xo(e,t,i,s,u){var d=i._reactRootContainer;if(d){var m=d;if(typeof u=="function"){var x=u;u=function(){var E=Go(m);x.call(E)}}Ko(t,m,e,u)}else m=Ov(i,t,e,u,s);return Go(m)}Nc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Or(t.pendingLanes);i!==0&&(Ks(t,i|1),at(t,Le()),(ue&6)===0&&(wr=Le()+500,mn()))}break;case 13:Un(function(){var s=Gt(e,1);if(s!==null){var u=Je();At(s,e,1,u)}}),xl(e,1)}},Gs=function(e){if(e.tag===13){var t=Gt(e,134217728);if(t!==null){var i=Je();At(t,e,134217728,i)}xl(e,134217728)}},_c=function(e){if(e.tag===13){var t=Sn(e),i=Gt(e,t);if(i!==null){var s=Je();At(i,e,t,s)}xl(e,t)}},Fc=function(){return me},Ic=function(e,t){var i=me;try{return me=e,t()}finally{me=i}},Bs=function(e,t,i){switch(t){case"input":if(As(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var s=i[t];if(s!==e&&s.form===e.form){var u=ho(s);if(!u)throw Error(o(90));sc(s),As(s,u)}}}break;case"textarea":fc(e,i);break;case"select":t=i.value,t!=null&&Xn(e,!!i.multiple,t,!1)}},xc=hl,Sc=Un;var Bv={usingClientEntryPoint:!1,Events:[ni,sr,ho,vc,wc,hl]},yi={findFiberByHostInstance:Nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zv={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:H.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kc(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||jv,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 Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{Gi=Zo.inject(zv),Ft=Zo}catch{}}return lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bv,lt.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!El(t))throw Error(o(200));return Iv(e,t,null,i)},lt.createRoot=function(e,t){if(!El(e))throw Error(o(299));var i=!1,s="",u=Jd;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=wl(e,1,!1,null,null,i,!1,s,u),e[Wt]=t.current,Jr(e.nodeType===8?e.parentNode:e),new Sl(t)},lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=kc(t),e=e===null?null:e.stateNode,e},lt.flushSync=function(e){return Un(e)},lt.hydrate=function(e,t,i){if(!Qo(t))throw Error(o(200));return Xo(null,e,t,!0,i)},lt.hydrateRoot=function(e,t,i){if(!El(e))throw Error(o(405));var s=i!=null&&i.hydratedSources||null,u=!1,d="",m=Jd;if(i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),t=Zd(t,null,e,1,i??null,u,!1,d,m),e[Wt]=t.current,Jr(e),s)for(e=0;e<s.length;e++)i=s[e],u=i._getVersion,u=u(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,u]:t.mutableSourceEagerHydrationData.push(i,u);return new Yo(t)},lt.render=function(e,t,i){if(!Qo(t))throw Error(o(200));return Xo(null,e,t,!1,i)},lt.unmountComponentAtNode=function(e){if(!Qo(e))throw Error(o(40));return e._reactRootContainer?(Un(function(){Xo(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1},lt.unstable_batchedUpdates=hl,lt.unstable_renderSubtreeIntoContainer=function(e,t,i,s){if(!Qo(i))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return Xo(e,t,i,!1,s)},lt.version="18.3.1-next-f1338f8080-20240426",lt}var lh;function Yv(){if(lh)return kl.exports;lh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),kl.exports=Gv(),kl.exports}var uh;function Qv(){if(uh)return qo;uh=1;var n=Yv();return qo.createRoot=n.createRoot,qo.hydrateRoot=n.hydrateRoot,qo}var Xv=Qv();var ch="popstate";function Zv(n={}){function r(a,l){let{pathname:f,search:c,hash:h}=a.location;return Gl("",{pathname:f,search:c,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function o(a,l){return typeof l=="string"?l:Ti(l)}return Jv(r,o,null,n)}function Te(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function _t(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function qv(){return Math.random().toString(36).substring(2,10)}function fh(n,r){return{usr:n.state,key:n.key,idx:r}}function Gl(n,r,o=null,a){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Rr(r):r,state:o,key:r&&r.key||a||qv()}}function Ti({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Rr(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let a=n.indexOf("?");a>=0&&(r.search=n.substring(a),n=n.substring(0,a)),n&&(r.pathname=n)}return r}function Jv(n,r,o,a={}){let{window:l=document.defaultView,v5Compat:f=!1}=a,c=l.history,h="POP",p=null,g=y();g==null&&(g=0,c.replaceState({...c.state,idx:g},""));function y(){return(c.state||{idx:null}).idx}function v(){h="POP";let D=y(),_=D==null?null:D-g;g=D,p&&p({action:h,location:M.location,delta:_})}function w(D,_){h="PUSH";let N=Gl(M.location,D,_);g=y()+1;let V=fh(N,g),H=M.createHref(N);try{c.pushState(V,"",H)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;l.location.assign(H)}f&&p&&p({action:h,location:M.location,delta:1})}function P(D,_){h="REPLACE";let N=Gl(M.location,D,_);g=y();let V=fh(N,g),H=M.createHref(N);c.replaceState(V,"",H),f&&p&&p({action:h,location:M.location,delta:0})}function A(D){return e0(D)}let M={get action(){return h},get location(){return n(l,c)},listen(D){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(ch,v),p=D,()=>{l.removeEventListener(ch,v),p=null}},createHref(D){return r(l,D)},createURL:A,encodeLocation(D){let _=A(D);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:P,go(D){return c.go(D)}};return M}function e0(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Te(o,"No window.location.(origin|href) available to create URL");let a=typeof n=="string"?n:Ti(n);return a=a.replace(/ $/,"%20"),!r&&a.startsWith("//")&&(a=o+a),new URL(a,o)}function _p(n,r,o="/"){return t0(n,r,o,!1)}function t0(n,r,o,a){let l=typeof r=="string"?Rr(r):r,f=en(l.pathname||"/",o);if(f==null)return null;let c=Fp(n);n0(c);let h=null;for(let p=0;h==null&&p<c.length;++p){let g=h0(f);h=f0(c[p],g,a)}return h}function Fp(n,r=[],o=[],a="",l=!1){let f=(c,h,p=l,g)=>{let y={relativePath:g===void 0?c.path||"":g,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&p)return;Te(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let v=qt([a,y.relativePath]),w=o.concat(y);c.children&&c.children.length>0&&(Te(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Fp(c.children,r,w,v,p)),!(c.path==null&&!c.index)&&r.push({path:v,score:u0(v,c.index),routesMeta:w})};return n.forEach((c,h)=>{if(c.path===""||!c.path?.includes("?"))f(c,h);else for(let p of Ip(c.path))f(c,h,!0,p)}),r}function Ip(n){let r=n.split("/");if(r.length===0)return[];let[o,...a]=r,l=o.endsWith("?"),f=o.replace(/\?$/,"");if(a.length===0)return l?[f,""]:[f];let c=Ip(a.join("/")),h=[];return h.push(...c.map(p=>p===""?f:[f,p].join("/"))),l&&h.push(...c),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function n0(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:c0(r.routesMeta.map(a=>a.childrenIndex),o.routesMeta.map(a=>a.childrenIndex)))}var r0=/^:[\w-]+$/,i0=3,o0=2,s0=1,a0=10,l0=-2,dh=n=>n==="*";function u0(n,r){let o=n.split("/"),a=o.length;return o.some(dh)&&(a+=l0),r&&(a+=o0),o.filter(l=>!dh(l)).reduce((l,f)=>l+(r0.test(f)?i0:f===""?s0:a0),a)}function c0(n,r){return n.length===r.length&&n.slice(0,-1).every((a,l)=>a===r[l])?n[n.length-1]-r[r.length-1]:0}function f0(n,r,o=!1){let{routesMeta:a}=n,l={},f="/",c=[];for(let h=0;h<a.length;++h){let p=a[h],g=h===a.length-1,y=f==="/"?r:r.slice(f.length)||"/",v=hs({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!v&&g&&o&&!a[a.length-1].route.index&&(v=hs({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(l,v.params),c.push({params:l,pathname:qt([f,v.pathname]),pathnameBase:g0(qt([f,v.pathnameBase])),route:w}),v.pathnameBase!=="/"&&(f=qt([f,v.pathnameBase]))}return c}function hs(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,a]=d0(n.path,n.caseSensitive,n.end),l=r.match(o);if(!l)return null;let f=l[0],c=f.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:a.reduce((g,{paramName:y,isOptional:v},w)=>{if(y==="*"){let A=h[w]||"";c=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const P=h[w];return v&&!P?g[y]=void 0:g[y]=(P||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:c,pattern:n}}function d0(n,r=!1,o=!0){_t(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let a=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,p)=>(a.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(a.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,r?void 0:"i"),a]}function h0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return _t(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function en(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,a=n.charAt(o);return a&&a!=="/"?null:n.slice(o)||"/"}var jp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p0=n=>jp.test(n);function m0(n,r="/"){let{pathname:o,search:a="",hash:l=""}=typeof n=="string"?Rr(n):n,f;if(o)if(p0(o))f=o;else{if(o.includes("//")){let c=o;o=o.replace(/\/\/+/g,"/"),_t(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${o}`)}o.startsWith("/")?f=hh(o.substring(1),"/"):f=hh(o,r)}else f=r;return{pathname:f,search:v0(a),hash:w0(l)}}function hh(n,r){let o=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(l=>{l===".."?o.length>1&&o.pop():l!=="."&&o.push(l)}),o.length>1?o.join("/"):"/"}function Dl(n,r,o,a){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function y0(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Op(n){let r=y0(n);return r.map((o,a)=>a===r.length-1?o.pathname:o.pathnameBase)}function Bp(n,r,o,a=!1){let l;typeof n=="string"?l=Rr(n):(l={...n},Te(!l.pathname||!l.pathname.includes("?"),Dl("?","pathname","search",l)),Te(!l.pathname||!l.pathname.includes("#"),Dl("#","pathname","hash",l)),Te(!l.search||!l.search.includes("#"),Dl("#","search","hash",l)));let f=n===""||l.pathname==="",c=f?"/":l.pathname,h;if(c==null)h=o;else{let v=r.length-1;if(!a&&c.startsWith("..")){let w=c.split("/");for(;w[0]==="..";)w.shift(),v-=1;l.pathname=w.join("/")}h=v>=0?r[v]:"/"}let p=m0(l,h),g=c&&c!=="/"&&c.endsWith("/"),y=(f||c===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var qt=n=>n.join("/").replace(/\/\/+/g,"/"),g0=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),v0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,w0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,x0=class{constructor(n,r,o,a=!1){this.status=n,this.statusText=r||"",this.internal=a,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function S0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function E0(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var zp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Up(n,r){let o=n;if(typeof o!="string"||!jp.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let a=o,l=!1;if(zp)try{let f=new URL(window.location.href),c=o.startsWith("//")?new URL(f.protocol+o):new URL(o),h=en(c.pathname,r);c.origin===f.origin&&h!=null?o=h+c.search+c.hash:l=!0}catch{_t(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:l,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $p=["POST","PUT","PATCH","DELETE"];new Set($p);var C0=["GET",...$p];new Set(C0);var Dr=S.createContext(null);Dr.displayName="DataRouter";var Es=S.createContext(null);Es.displayName="DataRouterState";var P0=S.createContext(!1),Wp=S.createContext({isTransitioning:!1});Wp.displayName="ViewTransition";var k0=S.createContext(new Map);k0.displayName="Fetchers";var T0=S.createContext(null);T0.displayName="Await";var Pt=S.createContext(null);Pt.displayName="Navigation";var Ni=S.createContext(null);Ni.displayName="Location";var rn=S.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var Eu=S.createContext(null);Eu.displayName="RouteError";var Hp="REACT_ROUTER_ERROR",R0="REDIRECT",D0="ROUTE_ERROR_RESPONSE";function L0(n){if(n.startsWith(`${Hp}:${R0}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function M0(n){if(n.startsWith(`${Hp}:${D0}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new x0(r.status,r.statusText,r.data)}catch{}}function A0(n,{relative:r}={}){Te(_i(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:a}=S.useContext(Pt),{hash:l,pathname:f,search:c}=Fi(n,{relative:r}),h=f;return o!=="/"&&(h=f==="/"?o:qt([o,f])),a.createHref({pathname:h,search:c,hash:l})}function _i(){return S.useContext(Ni)!=null}function on(){return Te(_i(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Ni).location}var bp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kp(n){S.useContext(Pt).static||S.useLayoutEffect(n)}function V0(){let{isDataRoute:n}=S.useContext(rn);return n?b0():N0()}function N0(){Te(_i(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(Dr),{basename:r,navigator:o}=S.useContext(Pt),{matches:a}=S.useContext(rn),{pathname:l}=on(),f=JSON.stringify(Op(a)),c=S.useRef(!1);return Kp(()=>{c.current=!0}),S.useCallback((p,g={})=>{if(_t(c.current,bp),!c.current)return;if(typeof p=="number"){o.go(p);return}let y=Bp(p,JSON.parse(f),l,g.relative==="path");n==null&&r!=="/"&&(y.pathname=y.pathname==="/"?r:qt([r,y.pathname])),(g.replace?o.replace:o.push)(y,g.state,g)},[r,o,f,l,n])}S.createContext(null);function Fi(n,{relative:r}={}){let{matches:o}=S.useContext(rn),{pathname:a}=on(),l=JSON.stringify(Op(o));return S.useMemo(()=>Bp(n,JSON.parse(l),a,r==="path"),[n,l,a,r])}function _0(n,r){return Gp(n,r)}function Gp(n,r,o,a,l){Te(_i(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=S.useContext(Pt),{matches:c}=S.useContext(rn),h=c[c.length-1],p=h?h.params:{},g=h?h.pathname:"/",y=h?h.pathnameBase:"/",v=h&&h.route;{let N=v&&v.path||"";Qp(g,!v||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
9
|
-
|
|
10
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let w=on(),P;if(r){let N=typeof r=="string"?Rr(r):r;Te(y==="/"||N.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${N.pathname}" was given in the \`location\` prop.`),P=N}else P=w;let A=P.pathname||"/",M=A;if(y!=="/"){let N=y.replace(/^\//,"").split("/");M="/"+A.replace(/^\//,"").split("/").slice(N.length).join("/")}let D=_p(n,{pathname:M});_t(v||D!=null,`No routes matched location "${P.pathname}${P.search}${P.hash}" `),_t(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${P.pathname}${P.search}${P.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=B0(D&&D.map(N=>Object.assign({},N,{params:Object.assign({},p,N.params),pathname:qt([y,f.encodeLocation?f.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?y:qt([y,f.encodeLocation?f.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),c,o,a,l);return r&&_?S.createElement(Ni.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...P},navigationType:"POP"}},_):_}function F0(){let n=H0(),r=S0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},f={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",n),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},r),o?S.createElement("pre",{style:l},o):null,c)}var I0=S.createElement(F0,null),Yp=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=M0(n.digest);o&&(n=o)}let r=n!==void 0?S.createElement(rn.Provider,{value:this.props.routeContext},S.createElement(Eu.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?S.createElement(j0,{error:n},r):r}};Yp.contextType=P0;var Ll=new WeakMap;function j0({children:n,error:r}){let{basename:o}=S.useContext(Pt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let a=L0(r.digest);if(a){let l=Ll.get(r);if(l)throw l;let f=Up(a.location,o);if(zp&&!Ll.get(r))if(f.isExternal||a.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:a.replace}));throw Ll.set(r,c),c}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function O0({routeContext:n,match:r,children:o}){let a=S.useContext(Dr);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(rn.Provider,{value:n},o)}function B0(n,r=[],o=null,a=null,l=null){if(n==null){if(!o)return null;if(o.errors)n=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)n=o.matches;else return null}let f=n,c=o?.errors;if(c!=null){let y=f.findIndex(v=>v.route.id&&c?.[v.route.id]!==void 0);Te(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),f=f.slice(0,Math.min(f.length,y+1))}let h=!1,p=-1;if(o)for(let y=0;y<f.length;y++){let v=f[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=y),v.route.id){let{loaderData:w,errors:P}=o,A=v.route.loader&&!w.hasOwnProperty(v.route.id)&&(!P||P[v.route.id]===void 0);if(v.route.lazy||A){h=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}let g=o&&a?(y,v)=>{a(y,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:E0(o.matches),errorInfo:v})}:void 0;return f.reduceRight((y,v,w)=>{let P,A=!1,M=null,D=null;o&&(P=c&&v.route.id?c[v.route.id]:void 0,M=v.route.errorElement||I0,h&&(p<0&&w===0?(Qp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,D=null):p===w&&(A=!0,D=v.route.hydrateFallbackElement||null)));let _=r.concat(f.slice(0,w+1)),N=()=>{let V;return P?V=M:A?V=D:v.route.Component?V=S.createElement(v.route.Component,null):v.route.element?V=v.route.element:V=y,S.createElement(O0,{match:v,routeContext:{outlet:y,matches:_,isDataRoute:o!=null},children:V})};return o&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?S.createElement(Yp,{location:o.location,revalidation:o.revalidation,component:M,error:P,children:N(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:g}):N()},null)}function Cu(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function z0(n){let r=S.useContext(Dr);return Te(r,Cu(n)),r}function U0(n){let r=S.useContext(Es);return Te(r,Cu(n)),r}function $0(n){let r=S.useContext(rn);return Te(r,Cu(n)),r}function Pu(n){let r=$0(n),o=r.matches[r.matches.length-1];return Te(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function W0(){return Pu("useRouteId")}function H0(){let n=S.useContext(Eu),r=U0("useRouteError"),o=Pu("useRouteError");return n!==void 0?n:r.errors?.[o]}function b0(){let{router:n}=z0("useNavigate"),r=Pu("useNavigate"),o=S.useRef(!1);return Kp(()=>{o.current=!0}),S.useCallback(async(l,f={})=>{_t(o.current,bp),o.current&&(typeof l=="number"?await n.navigate(l):await n.navigate(l,{fromRouteId:r,...f}))},[n,r])}var ph={};function Qp(n,r,o){!r&&!ph[n]&&(ph[n]=!0,_t(!1,o))}S.memo(K0);function K0({routes:n,future:r,state:o,onError:a}){return Gp(n,void 0,o,a,r)}function os(n){Te(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function G0({basename:n="/",children:r=null,location:o,navigationType:a="POP",navigator:l,static:f=!1,unstable_useTransitions:c}){Te(!_i(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:h,navigator:l,static:f,unstable_useTransitions:c,future:{}}),[h,l,f,c]);typeof o=="string"&&(o=Rr(o));let{pathname:g="/",search:y="",hash:v="",state:w=null,key:P="default"}=o,A=S.useMemo(()=>{let M=en(g,h);return M==null?null:{location:{pathname:M,search:y,hash:v,state:w,key:P},navigationType:a}},[h,g,y,v,w,P,a]);return _t(A!=null,`<Router basename="${h}"> is not able to match the URL "${g}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:S.createElement(Pt.Provider,{value:p},S.createElement(Ni.Provider,{children:r,value:A}))}function Y0({children:n,location:r}){return _0(Yl(n),r)}function Yl(n,r=[]){let o=[];return S.Children.forEach(n,(a,l)=>{if(!S.isValidElement(a))return;let f=[...r,l];if(a.type===S.Fragment){o.push.apply(o,Yl(a.props.children,f));return}Te(a.type===os,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Te(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||f.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=Yl(a.props.children,f)),o.push(c)}),o}var ss="get",as="application/x-www-form-urlencoded";function Cs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Q0(n){return Cs(n)&&n.tagName.toLowerCase()==="button"}function X0(n){return Cs(n)&&n.tagName.toLowerCase()==="form"}function Z0(n){return Cs(n)&&n.tagName.toLowerCase()==="input"}function q0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function J0(n,r){return n.button===0&&(!r||r==="_self")&&!q0(n)}var Jo=null;function ew(){if(Jo===null)try{new FormData(document.createElement("form"),0),Jo=!1}catch{Jo=!0}return Jo}var tw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ml(n){return n!=null&&!tw.has(n)?(_t(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${as}"`),null):n}function nw(n,r){let o,a,l,f,c;if(X0(n)){let h=n.getAttribute("action");a=h?en(h,r):null,o=n.getAttribute("method")||ss,l=Ml(n.getAttribute("enctype"))||as,f=new FormData(n)}else if(Q0(n)||Z0(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||h.getAttribute("action");if(a=p?en(p,r):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||ss,l=Ml(n.getAttribute("formenctype"))||Ml(h.getAttribute("enctype"))||as,f=new FormData(h,n),!ew()){let{name:g,type:y,value:v}=n;if(y==="image"){let w=g?`${g}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else g&&f.append(g,v)}}else{if(Cs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ss,a=null,l=as,c=n}return f&&l==="text/plain"&&(c=f,f=void 0),{action:a,method:o.toLowerCase(),encType:l,formData:f,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ku(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function rw(n,r,o,a){let l=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${a}`:l.pathname=`${l.pathname}.${a}`:l.pathname==="/"?l.pathname=`_root.${a}`:r&&en(l.pathname,r)==="/"?l.pathname=`${r.replace(/\/$/,"")}/_root.${a}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${a}`,l}async function iw(n,r){if(n.id in r)return r[n.id];try{let o=await import(n.module);return r[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ow(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function sw(n,r,o){let a=await Promise.all(n.map(async l=>{let f=r.routes[l.route.id];if(f){let c=await iw(f,o);return c.links?c.links():[]}return[]}));return cw(a.flat(1).filter(ow).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function mh(n,r,o,a,l,f){let c=(p,g)=>o[g]?p.route.id!==o[g].route.id:!0,h=(p,g)=>o[g].pathname!==p.pathname||o[g].route.path?.endsWith("*")&&o[g].params["*"]!==p.params["*"];return f==="assets"?r.filter((p,g)=>c(p,g)||h(p,g)):f==="data"?r.filter((p,g)=>{let y=a.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(c(p,g)||h(p,g))return!0;if(p.route.shouldRevalidate){let v=p.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function aw(n,r,{includeHydrateFallback:o}={}){return lw(n.map(a=>{let l=r.routes[a.route.id];if(!l)return[];let f=[l.module];return l.clientActionModule&&(f=f.concat(l.clientActionModule)),l.clientLoaderModule&&(f=f.concat(l.clientLoaderModule)),o&&l.hydrateFallbackModule&&(f=f.concat(l.hydrateFallbackModule)),l.imports&&(f=f.concat(l.imports)),f}).flat(1))}function lw(n){return[...new Set(n)]}function uw(n){let r={},o=Object.keys(n).sort();for(let a of o)r[a]=n[a];return r}function cw(n,r){let o=new Set;return new Set(r),n.reduce((a,l)=>{let f=JSON.stringify(uw(l));return o.has(f)||(o.add(f),a.push({key:f,link:l})),a},[])}function Xp(){let n=S.useContext(Dr);return ku(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function fw(){let n=S.useContext(Es);return ku(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Tu=S.createContext(void 0);Tu.displayName="FrameworkContext";function Zp(){let n=S.useContext(Tu);return ku(n,"You must render this element inside a <HydratedRouter> element"),n}function dw(n,r){let o=S.useContext(Tu),[a,l]=S.useState(!1),[f,c]=S.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:v}=r,w=S.useRef(null);S.useEffect(()=>{if(n==="render"&&c(!0),n==="viewport"){let M=_=>{_.forEach(N=>{c(N.isIntersecting)})},D=new IntersectionObserver(M,{threshold:.5});return w.current&&D.observe(w.current),()=>{D.disconnect()}}},[n]),S.useEffect(()=>{if(a){let M=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(M)}}},[a]);let P=()=>{l(!0)},A=()=>{l(!1),c(!1)};return o?n!=="intent"?[f,w,{}]:[f,w,{onFocus:vi(h,P),onBlur:vi(p,A),onMouseEnter:vi(g,P),onMouseLeave:vi(y,A),onTouchStart:vi(v,P)}]:[!1,w,{}]}function vi(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function hw({page:n,...r}){let{router:o}=Xp(),a=S.useMemo(()=>_p(o.routes,n,o.basename),[o.routes,n,o.basename]);return a?S.createElement(mw,{page:n,matches:a,...r}):null}function pw(n){let{manifest:r,routeModules:o}=Zp(),[a,l]=S.useState([]);return S.useEffect(()=>{let f=!1;return sw(n,r,o).then(c=>{f||l(c)}),()=>{f=!0}},[n,r,o]),a}function mw({page:n,matches:r,...o}){let a=on(),{future:l,manifest:f,routeModules:c}=Zp(),{basename:h}=Xp(),{loaderData:p,matches:g}=fw(),y=S.useMemo(()=>mh(n,r,g,f,a,"data"),[n,r,g,f,a]),v=S.useMemo(()=>mh(n,r,g,f,a,"assets"),[n,r,g,f,a]),w=S.useMemo(()=>{if(n===a.pathname+a.search+a.hash)return[];let M=new Set,D=!1;if(r.forEach(N=>{let V=f.routes[N.route.id];!V||!V.hasLoader||(!y.some(H=>H.route.id===N.route.id)&&N.route.id in p&&c[N.route.id]?.shouldRevalidate||V.hasClientLoader?D=!0:M.add(N.route.id))}),M.size===0)return[];let _=rw(n,h,l.unstable_trailingSlashAwareDataRequests,"data");return D&&M.size>0&&_.searchParams.set("_routes",r.filter(N=>M.has(N.route.id)).map(N=>N.route.id).join(",")),[_.pathname+_.search]},[h,l.unstable_trailingSlashAwareDataRequests,p,a,f,y,r,n,c]),P=S.useMemo(()=>aw(v,f),[v,f]),A=pw(v);return S.createElement(S.Fragment,null,w.map(M=>S.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...o})),P.map(M=>S.createElement("link",{key:M,rel:"modulepreload",href:M,...o})),A.map(({key:M,link:D})=>S.createElement("link",{key:M,nonce:o.nonce,...D})))}function yw(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var gw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gw&&(window.__reactRouterVersion="7.12.0")}catch{}function vw({basename:n,children:r,unstable_useTransitions:o,window:a}){let l=S.useRef();l.current==null&&(l.current=Zv({window:a,v5Compat:!0}));let f=l.current,[c,h]=S.useState({action:f.action,location:f.location}),p=S.useCallback(g=>{o===!1?h(g):S.startTransition(()=>h(g))},[o]);return S.useLayoutEffect(()=>f.listen(p),[f,p]),S.createElement(G0,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:f,unstable_useTransitions:o})}var qp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ri=S.forwardRef(function({onClick:r,discover:o="render",prefetch:a="none",relative:l,reloadDocument:f,replace:c,state:h,target:p,to:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:w,...P},A){let{basename:M,unstable_useTransitions:D}=S.useContext(Pt),_=typeof g=="string"&&qp.test(g),N=Up(g,M);g=N.to;let V=A0(g,{relative:l}),[H,U,ee]=dw(a,P),J=Ew(g,{replace:c,state:h,target:p,preventScrollReset:y,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:w,unstable_useTransitions:D});function $(ce){r&&r(ce),ce.defaultPrevented||J(ce)}let ae=S.createElement("a",{...P,...ee,href:N.absoluteURL||V,onClick:N.isExternal||f?r:$,ref:yw(A,U),target:p,"data-discover":!_&&o==="render"?"true":void 0});return H&&!_?S.createElement(S.Fragment,null,ae,S.createElement(hw,{page:V})):ae});Ri.displayName="Link";var ww=S.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:a="",end:l=!1,style:f,to:c,viewTransition:h,children:p,...g},y){let v=Fi(c,{relative:g.relative}),w=on(),P=S.useContext(Es),{navigator:A,basename:M}=S.useContext(Pt),D=P!=null&&Rw(v)&&h===!0,_=A.encodeLocation?A.encodeLocation(v).pathname:v.pathname,N=w.pathname,V=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;o||(N=N.toLowerCase(),V=V?V.toLowerCase():null,_=_.toLowerCase()),V&&M&&(V=en(V,M)||V);const H=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let U=N===_||!l&&N.startsWith(_)&&N.charAt(H)==="/",ee=V!=null&&(V===_||!l&&V.startsWith(_)&&V.charAt(_.length)==="/"),J={isActive:U,isPending:ee,isTransitioning:D},$=U?r:void 0,ae;typeof a=="function"?ae=a(J):ae=[a,U?"active":null,ee?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let ce=typeof f=="function"?f(J):f;return S.createElement(Ri,{...g,"aria-current":$,className:ae,ref:y,style:ce,to:c,viewTransition:h},typeof p=="function"?p(J):p)});ww.displayName="NavLink";var xw=S.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:a,replace:l,state:f,method:c=ss,action:h,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:w,...P},A)=>{let{unstable_useTransitions:M}=S.useContext(Pt),D=kw(),_=Tw(h,{relative:g}),N=c.toLowerCase()==="get"?"get":"post",V=typeof h=="string"&&qp.test(h),H=U=>{if(p&&p(U),U.defaultPrevented)return;U.preventDefault();let ee=U.nativeEvent.submitter,J=ee?.getAttribute("formmethod")||c,$=()=>D(ee||U.currentTarget,{fetcherKey:r,method:J,navigate:o,replace:l,state:f,relative:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:w});M&&o!==!1?S.startTransition(()=>$()):$()};return S.createElement("form",{ref:A,method:N,action:_,onSubmit:a?p:H,...P,"data-discover":!V&&n==="render"?"true":void 0})});xw.displayName="Form";function Sw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jp(n){let r=S.useContext(Dr);return Te(r,Sw(n)),r}function Ew(n,{target:r,replace:o,state:a,preventScrollReset:l,relative:f,viewTransition:c,unstable_defaultShouldRevalidate:h,unstable_useTransitions:p}={}){let g=V0(),y=on(),v=Fi(n,{relative:f});return S.useCallback(w=>{if(J0(w,r)){w.preventDefault();let P=o!==void 0?o:Ti(y)===Ti(v),A=()=>g(n,{replace:P,state:a,preventScrollReset:l,relative:f,viewTransition:c,unstable_defaultShouldRevalidate:h});p?S.startTransition(()=>A()):A()}},[y,g,v,o,a,r,n,l,f,c,h,p])}var Cw=0,Pw=()=>`__${String(++Cw)}__`;function kw(){let{router:n}=Jp("useSubmit"),{basename:r}=S.useContext(Pt),o=W0(),a=n.fetch,l=n.navigate;return S.useCallback(async(f,c={})=>{let{action:h,method:p,encType:g,formData:y,body:v}=nw(f,r);if(c.navigate===!1){let w=c.fetcherKey||Pw();await a(w,o,c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||p,formEncType:c.encType||g,flushSync:c.flushSync})}else await l(c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||p,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:o,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,l,r,o])}function Tw(n,{relative:r}={}){let{basename:o}=S.useContext(Pt),a=S.useContext(rn);Te(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),f={...Fi(n||".",{relative:r})},c=on();if(n==null){f.search=c.search;let h=new URLSearchParams(f.search),p=h.getAll("index");if(p.some(y=>y==="")){h.delete("index"),p.filter(v=>v).forEach(v=>h.append("index",v));let y=h.toString();f.search=y?`?${y}`:""}}return(!n||n===".")&&l.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:qt([o,f.pathname])),Ti(f)}function Rw(n,{relative:r}={}){let o=S.useContext(Wp);Te(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Jp("useViewTransitionState"),l=Fi(n,{relative:r});if(!o.isTransitioning)return!1;let f=en(o.currentLocation.pathname,a)||o.currentLocation.pathname,c=en(o.nextLocation.pathname,a)||o.nextLocation.pathname;return hs(l.pathname,c)!=null||hs(l.pathname,f)!=null}const Ru=S.createContext({});function Du(n){const r=S.useRef(null);return r.current===null&&(r.current=n()),r.current}const em=typeof window<"u",tm=em?S.useLayoutEffect:S.useEffect,Ps=S.createContext(null);function Lu(n,r){n.indexOf(r)===-1&&n.push(r)}function Mu(n,r){const o=n.indexOf(r);o>-1&&n.splice(o,1)}const $t=(n,r,o)=>o>r?r:o<n?n:o;let Au=()=>{};const tn={},nm=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function rm(n){return typeof n=="object"&&n!==null}const im=n=>/^0[^.\s]+$/u.test(n);function Vu(n){let r;return()=>(r===void 0&&(r=n()),r)}const Ct=n=>n,Dw=(n,r)=>o=>r(n(o)),Ii=(...n)=>n.reduce(Dw),Di=(n,r,o)=>{const a=r-n;return a===0?1:(o-n)/a};class Nu{constructor(){this.subscriptions=[]}add(r){return Lu(this.subscriptions,r),()=>Mu(this.subscriptions,r)}notify(r,o,a){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](r,o,a);else for(let f=0;f<l;f++){const c=this.subscriptions[f];c&&c(r,o,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jt=n=>n*1e3,Et=n=>n/1e3;function om(n,r){return r?n*(1e3/r):0}const sm=(n,r,o)=>(((1-3*o+3*r)*n+(3*o-6*r))*n+3*r)*n,Lw=1e-7,Mw=12;function Aw(n,r,o,a,l){let f,c,h=0;do c=r+(o-r)/2,f=sm(c,a,l)-n,f>0?o=c:r=c;while(Math.abs(f)>Lw&&++h<Mw);return c}function ji(n,r,o,a){if(n===r&&o===a)return Ct;const l=f=>Aw(f,0,1,n,o);return f=>f===0||f===1?f:sm(l(f),r,a)}const am=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,lm=n=>r=>1-n(1-r),um=ji(.33,1.53,.69,.99),_u=lm(um),cm=am(_u),fm=n=>(n*=2)<1?.5*_u(n):.5*(2-Math.pow(2,-10*(n-1))),Fu=n=>1-Math.sin(Math.acos(n)),dm=lm(Fu),hm=am(Fu),Vw=ji(.42,0,1,1),Nw=ji(0,0,.58,1),pm=ji(.42,0,.58,1),_w=n=>Array.isArray(n)&&typeof n[0]!="number",mm=n=>Array.isArray(n)&&typeof n[0]=="number",Fw={linear:Ct,easeIn:Vw,easeInOut:pm,easeOut:Nw,circIn:Fu,circInOut:hm,circOut:dm,backIn:_u,backInOut:cm,backOut:um,anticipate:fm},Iw=n=>typeof n=="string",yh=n=>{if(mm(n)){Au(n.length===4);const[r,o,a,l]=n;return ji(r,o,a,l)}else if(Iw(n))return Fw[n];return n},es=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jw(n,r){let o=new Set,a=new Set,l=!1,f=!1;const c=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function p(y){c.has(y)&&(g.schedule(y),n()),y(h)}const g={schedule:(y,v=!1,w=!1)=>{const A=w&&l?o:a;return v&&c.add(y),A.has(y)||A.add(y),y},cancel:y=>{a.delete(y),c.delete(y)},process:y=>{if(h=y,l){f=!0;return}l=!0,[o,a]=[a,o],o.forEach(p),o.clear(),l=!1,f&&(f=!1,g.process(y))}};return g}const Ow=40;function ym(n,r){let o=!1,a=!0;const l={delta:0,timestamp:0,isProcessing:!1},f=()=>o=!0,c=es.reduce((V,H)=>(V[H]=jw(f),V),{}),{setup:h,read:p,resolveKeyframes:g,preUpdate:y,update:v,preRender:w,render:P,postRender:A}=c,M=()=>{const V=tn.useManualTiming?l.timestamp:performance.now();o=!1,tn.useManualTiming||(l.delta=a?1e3/60:Math.max(Math.min(V-l.timestamp,Ow),1)),l.timestamp=V,l.isProcessing=!0,h.process(l),p.process(l),g.process(l),y.process(l),v.process(l),w.process(l),P.process(l),A.process(l),l.isProcessing=!1,o&&r&&(a=!1,n(M))},D=()=>{o=!0,a=!0,l.isProcessing||n(M)};return{schedule:es.reduce((V,H)=>{const U=c[H];return V[H]=(ee,J=!1,$=!1)=>(o||D(),U.schedule(ee,J,$)),V},{}),cancel:V=>{for(let H=0;H<es.length;H++)c[es[H]].cancel(V)},state:l,steps:c}}const{schedule:xe,cancel:Dn,state:We,steps:Al}=ym(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ct,!0);let ls;function Bw(){ls=void 0}const et={now:()=>(ls===void 0&&et.set(We.isProcessing||tn.useManualTiming?We.timestamp:performance.now()),ls),set:n=>{ls=n,queueMicrotask(Bw)}},gm=n=>r=>typeof r=="string"&&r.startsWith(n),vm=gm("--"),zw=gm("var(--"),Iu=n=>zw(n)?Uw.test(n.split("/*")[0].trim()):!1,Uw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gh(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Lr={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Li={...Lr,transform:n=>$t(0,1,n)},ts={...Lr,default:1},Ei=n=>Math.round(n*1e5)/1e5,ju=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $w(n){return n==null}const Ww=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ou=(n,r)=>o=>!!(typeof o=="string"&&Ww.test(o)&&o.startsWith(n)||r&&!$w(o)&&Object.prototype.hasOwnProperty.call(o,r)),wm=(n,r,o)=>a=>{if(typeof a!="string")return a;const[l,f,c,h]=a.match(ju);return{[n]:parseFloat(l),[r]:parseFloat(f),[o]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},Hw=n=>$t(0,255,n),Vl={...Lr,transform:n=>Math.round(Hw(n))},Gn={test:Ou("rgb","red"),parse:wm("red","green","blue"),transform:({red:n,green:r,blue:o,alpha:a=1})=>"rgba("+Vl.transform(n)+", "+Vl.transform(r)+", "+Vl.transform(o)+", "+Ei(Li.transform(a))+")"};function bw(n){let r="",o="",a="",l="";return n.length>5?(r=n.substring(1,3),o=n.substring(3,5),a=n.substring(5,7),l=n.substring(7,9)):(r=n.substring(1,2),o=n.substring(2,3),a=n.substring(3,4),l=n.substring(4,5),r+=r,o+=o,a+=a,l+=l),{red:parseInt(r,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:l?parseInt(l,16)/255:1}}const Ql={test:Ou("#"),parse:bw,transform:Gn.transform},Oi=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),kn=Oi("deg"),Ut=Oi("%"),K=Oi("px"),Kw=Oi("vh"),Gw=Oi("vw"),vh={...Ut,parse:n=>Ut.parse(n)/100,transform:n=>Ut.transform(n*100)},Sr={test:Ou("hsl","hue"),parse:wm("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:o,alpha:a=1})=>"hsla("+Math.round(n)+", "+Ut.transform(Ei(r))+", "+Ut.transform(Ei(o))+", "+Ei(Li.transform(a))+")"},Ve={test:n=>Gn.test(n)||Ql.test(n)||Sr.test(n),parse:n=>Gn.test(n)?Gn.parse(n):Sr.test(n)?Sr.parse(n):Ql.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Gn.transform(n):Sr.transform(n),getAnimatableNone:n=>{const r=Ve.parse(n);return r.alpha=0,Ve.transform(r)}},Yw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qw(n){return isNaN(n)&&typeof n=="string"&&(n.match(ju)?.length||0)+(n.match(Yw)?.length||0)>0}const xm="number",Sm="color",Xw="var",Zw="var(",wh="${}",qw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Mi(n){const r=n.toString(),o=[],a={color:[],number:[],var:[]},l=[];let f=0;const h=r.replace(qw,p=>(Ve.test(p)?(a.color.push(f),l.push(Sm),o.push(Ve.parse(p))):p.startsWith(Zw)?(a.var.push(f),l.push(Xw),o.push(p)):(a.number.push(f),l.push(xm),o.push(parseFloat(p))),++f,wh)).split(wh);return{values:o,split:h,indexes:a,types:l}}function Em(n){return Mi(n).values}function Cm(n){const{split:r,types:o}=Mi(n),a=r.length;return l=>{let f="";for(let c=0;c<a;c++)if(f+=r[c],l[c]!==void 0){const h=o[c];h===xm?f+=Ei(l[c]):h===Sm?f+=Ve.transform(l[c]):f+=l[c]}return f}}const Jw=n=>typeof n=="number"?0:Ve.test(n)?Ve.getAnimatableNone(n):n;function ex(n){const r=Em(n);return Cm(n)(r.map(Jw))}const Ln={test:Qw,parse:Em,createTransformer:Cm,getAnimatableNone:ex};function Nl(n,r,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?n+(r-n)*6*o:o<1/2?r:o<2/3?n+(r-n)*(2/3-o)*6:n}function tx({hue:n,saturation:r,lightness:o,alpha:a}){n/=360,r/=100,o/=100;let l=0,f=0,c=0;if(!r)l=f=c=o;else{const h=o<.5?o*(1+r):o+r-o*r,p=2*o-h;l=Nl(p,h,n+1/3),f=Nl(p,h,n),c=Nl(p,h,n-1/3)}return{red:Math.round(l*255),green:Math.round(f*255),blue:Math.round(c*255),alpha:a}}function ps(n,r){return o=>o>0?r:n}const ke=(n,r,o)=>n+(r-n)*o,_l=(n,r,o)=>{const a=n*n,l=o*(r*r-a)+a;return l<0?0:Math.sqrt(l)},nx=[Ql,Gn,Sr],rx=n=>nx.find(r=>r.test(n));function xh(n){const r=rx(n);if(!r)return!1;let o=r.parse(n);return r===Sr&&(o=tx(o)),o}const Sh=(n,r)=>{const o=xh(n),a=xh(r);if(!o||!a)return ps(n,r);const l={...o};return f=>(l.red=_l(o.red,a.red,f),l.green=_l(o.green,a.green,f),l.blue=_l(o.blue,a.blue,f),l.alpha=ke(o.alpha,a.alpha,f),Gn.transform(l))},Xl=new Set(["none","hidden"]);function ix(n,r){return Xl.has(n)?o=>o<=0?n:r:o=>o>=1?r:n}function ox(n,r){return o=>ke(n,r,o)}function Bu(n){return typeof n=="number"?ox:typeof n=="string"?Iu(n)?ps:Ve.test(n)?Sh:lx:Array.isArray(n)?Pm:typeof n=="object"?Ve.test(n)?Sh:sx:ps}function Pm(n,r){const o=[...n],a=o.length,l=n.map((f,c)=>Bu(f)(f,r[c]));return f=>{for(let c=0;c<a;c++)o[c]=l[c](f);return o}}function sx(n,r){const o={...n,...r},a={};for(const l in o)n[l]!==void 0&&r[l]!==void 0&&(a[l]=Bu(n[l])(n[l],r[l]));return l=>{for(const f in a)o[f]=a[f](l);return o}}function ax(n,r){const o=[],a={color:0,var:0,number:0};for(let l=0;l<r.values.length;l++){const f=r.types[l],c=n.indexes[f][a[f]],h=n.values[c]??0;o[l]=h,a[f]++}return o}const lx=(n,r)=>{const o=Ln.createTransformer(r),a=Mi(n),l=Mi(r);return a.indexes.var.length===l.indexes.var.length&&a.indexes.color.length===l.indexes.color.length&&a.indexes.number.length>=l.indexes.number.length?Xl.has(n)&&!l.values.length||Xl.has(r)&&!a.values.length?ix(n,r):Ii(Pm(ax(a,l),l.values),o):ps(n,r)};function km(n,r,o){return typeof n=="number"&&typeof r=="number"&&typeof o=="number"?ke(n,r,o):Bu(n)(n,r)}const ux=n=>{const r=({timestamp:o})=>n(o);return{start:(o=!0)=>xe.update(r,o),stop:()=>Dn(r),now:()=>We.isProcessing?We.timestamp:et.now()}},Tm=(n,r,o=10)=>{let a="";const l=Math.max(Math.round(r/o),2);for(let f=0;f<l;f++)a+=Math.round(n(f/(l-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},ms=2e4;function zu(n){let r=0;const o=50;let a=n.next(r);for(;!a.done&&r<ms;)r+=o,a=n.next(r);return r>=ms?1/0:r}function cx(n,r=100,o){const a=o({...n,keyframes:[0,r]}),l=Math.min(zu(a),ms);return{type:"keyframes",ease:f=>a.next(l*f).value/r,duration:Et(l)}}const fx=5;function Rm(n,r,o){const a=Math.max(r-fx,0);return om(o-n(a),r-a)}const De={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Fl=.001;function dx({duration:n=De.duration,bounce:r=De.bounce,velocity:o=De.velocity,mass:a=De.mass}){let l,f,c=1-r;c=$t(De.minDamping,De.maxDamping,c),n=$t(De.minDuration,De.maxDuration,Et(n)),c<1?(l=g=>{const y=g*c,v=y*n,w=y-o,P=Zl(g,c),A=Math.exp(-v);return Fl-w/P*A},f=g=>{const v=g*c*n,w=v*o+o,P=Math.pow(c,2)*Math.pow(g,2)*n,A=Math.exp(-v),M=Zl(Math.pow(g,2),c);return(-l(g)+Fl>0?-1:1)*((w-P)*A)/M}):(l=g=>{const y=Math.exp(-g*n),v=(g-o)*n+1;return-Fl+y*v},f=g=>{const y=Math.exp(-g*n),v=(o-g)*(n*n);return y*v});const h=5/n,p=px(l,f,h);if(n=Jt(n),isNaN(p))return{stiffness:De.stiffness,damping:De.damping,duration:n};{const g=Math.pow(p,2)*a;return{stiffness:g,damping:c*2*Math.sqrt(a*g),duration:n}}}const hx=12;function px(n,r,o){let a=o;for(let l=1;l<hx;l++)a=a-n(a)/r(a);return a}function Zl(n,r){return n*Math.sqrt(1-r*r)}const mx=["duration","bounce"],yx=["stiffness","damping","mass"];function Eh(n,r){return r.some(o=>n[o]!==void 0)}function gx(n){let r={velocity:De.velocity,stiffness:De.stiffness,damping:De.damping,mass:De.mass,isResolvedFromDuration:!1,...n};if(!Eh(n,yx)&&Eh(n,mx))if(n.visualDuration){const o=n.visualDuration,a=2*Math.PI/(o*1.2),l=a*a,f=2*$t(.05,1,1-(n.bounce||0))*Math.sqrt(l);r={...r,mass:De.mass,stiffness:l,damping:f}}else{const o=dx(n);r={...r,...o,mass:De.mass},r.isResolvedFromDuration=!0}return r}function ys(n=De.visualDuration,r=De.bounce){const o=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:a,restDelta:l}=o;const f=o.keyframes[0],c=o.keyframes[o.keyframes.length-1],h={done:!1,value:f},{stiffness:p,damping:g,mass:y,duration:v,velocity:w,isResolvedFromDuration:P}=gx({...o,velocity:-Et(o.velocity||0)}),A=w||0,M=g/(2*Math.sqrt(p*y)),D=c-f,_=Et(Math.sqrt(p/y)),N=Math.abs(D)<5;a||(a=N?De.restSpeed.granular:De.restSpeed.default),l||(l=N?De.restDelta.granular:De.restDelta.default);let V;if(M<1){const U=Zl(_,M);V=ee=>{const J=Math.exp(-M*_*ee);return c-J*((A+M*_*D)/U*Math.sin(U*ee)+D*Math.cos(U*ee))}}else if(M===1)V=U=>c-Math.exp(-_*U)*(D+(A+_*D)*U);else{const U=_*Math.sqrt(M*M-1);V=ee=>{const J=Math.exp(-M*_*ee),$=Math.min(U*ee,300);return c-J*((A+M*_*D)*Math.sinh($)+U*D*Math.cosh($))/U}}const H={calculatedDuration:P&&v||null,next:U=>{const ee=V(U);if(P)h.done=U>=v;else{let J=U===0?A:0;M<1&&(J=U===0?Jt(A):Rm(V,U,ee));const $=Math.abs(J)<=a,ae=Math.abs(c-ee)<=l;h.done=$&&ae}return h.value=h.done?c:ee,h},toString:()=>{const U=Math.min(zu(H),ms),ee=Tm(J=>H.next(U*J).value,U,30);return U+"ms "+ee},toTransition:()=>{}};return H}ys.applyToOptions=n=>{const r=cx(n,100,ys);return n.ease=r.ease,n.duration=Jt(r.duration),n.type="keyframes",n};function ql({keyframes:n,velocity:r=0,power:o=.8,timeConstant:a=325,bounceDamping:l=10,bounceStiffness:f=500,modifyTarget:c,min:h,max:p,restDelta:g=.5,restSpeed:y}){const v=n[0],w={done:!1,value:v},P=$=>h!==void 0&&$<h||p!==void 0&&$>p,A=$=>h===void 0?p:p===void 0||Math.abs(h-$)<Math.abs(p-$)?h:p;let M=o*r;const D=v+M,_=c===void 0?D:c(D);_!==D&&(M=_-v);const N=$=>-M*Math.exp(-$/a),V=$=>_+N($),H=$=>{const ae=N($),ce=V($);w.done=Math.abs(ae)<=g,w.value=w.done?_:ce};let U,ee;const J=$=>{P(w.value)&&(U=$,ee=ys({keyframes:[w.value,A(w.value)],velocity:Rm(V,$,w.value),damping:l,stiffness:f,restDelta:g,restSpeed:y}))};return J(0),{calculatedDuration:null,next:$=>{let ae=!1;return!ee&&U===void 0&&(ae=!0,H($),J($)),U!==void 0&&$>=U?ee.next($-U):(!ae&&H($),w)}}}function vx(n,r,o){const a=[],l=o||tn.mix||km,f=n.length-1;for(let c=0;c<f;c++){let h=l(n[c],n[c+1]);if(r){const p=Array.isArray(r)?r[c]||Ct:r;h=Ii(p,h)}a.push(h)}return a}function wx(n,r,{clamp:o=!0,ease:a,mixer:l}={}){const f=n.length;if(Au(f===r.length),f===1)return()=>r[0];if(f===2&&r[0]===r[1])return()=>r[1];const c=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),r=[...r].reverse());const h=vx(r,a,l),p=h.length,g=y=>{if(c&&y<n[0])return r[0];let v=0;if(p>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const w=Di(n[v],n[v+1],y);return h[v](w)};return o?y=>g($t(n[0],n[f-1],y)):g}function xx(n,r){const o=n[n.length-1];for(let a=1;a<=r;a++){const l=Di(0,r,a);n.push(ke(o,1,l))}}function Sx(n){const r=[0];return xx(r,n.length-1),r}function Ex(n,r){return n.map(o=>o*r)}function Cx(n,r){return n.map(()=>r||pm).splice(0,n.length-1)}function Ci({duration:n=300,keyframes:r,times:o,ease:a="easeInOut"}){const l=_w(a)?a.map(yh):yh(a),f={done:!1,value:r[0]},c=Ex(o&&o.length===r.length?o:Sx(r),n),h=wx(c,r,{ease:Array.isArray(l)?l:Cx(r,l)});return{calculatedDuration:n,next:p=>(f.value=h(p),f.done=p>=n,f)}}const Px=n=>n!==null;function Uu(n,{repeat:r,repeatType:o="loop"},a,l=1){const f=n.filter(Px),h=l<0||r&&o!=="loop"&&r%2===1?0:f.length-1;return!h||a===void 0?f[h]:a}const kx={decay:ql,inertia:ql,tween:Ci,keyframes:Ci,spring:ys};function Dm(n){typeof n.type=="string"&&(n.type=kx[n.type])}class $u{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,o){return this.finished.then(r,o)}}const Tx=n=>n/100;class Wu extends $u{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;Dm(r);const{type:o=Ci,repeat:a=0,repeatDelay:l=0,repeatType:f,velocity:c=0}=r;let{keyframes:h}=r;const p=o||Ci;p!==Ci&&typeof h[0]!="number"&&(this.mixKeyframes=Ii(Tx,km(h[0],h[1])),h=[0,100]);const g=p({...r,keyframes:h});f==="mirror"&&(this.mirroredGenerator=p({...r,keyframes:[...h].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=zu(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(a+1)-l,this.generator=g}updateTime(r){const o=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(r,o=!1){const{generator:a,totalDuration:l,mixKeyframes:f,mirroredGenerator:c,resolvedDuration:h,calculatedDuration:p}=this;if(this.startTime===null)return a.next(0);const{delay:g=0,keyframes:y,repeat:v,repeatType:w,repeatDelay:P,type:A,onUpdate:M,finalKeyframe:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-l/this.speed,this.startTime)),o?this.currentTime=r:this.updateTime(r);const _=this.currentTime-g*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?_<0:_>l;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let V=this.currentTime,H=a;if(v){const $=Math.min(this.currentTime,l)/h;let ae=Math.floor($),ce=$%1;!ce&&$>=1&&(ce=1),ce===1&&ae--,ae=Math.min(ae,v+1),ae%2&&(w==="reverse"?(ce=1-ce,P&&(ce-=P/h)):w==="mirror"&&(H=c)),V=$t(0,1,ce)*h}const U=N?{done:!1,value:y[0]}:H.next(V);f&&(U.value=f(U.value));let{done:ee}=U;!N&&p!==null&&(ee=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return J&&A!==ql&&(U.value=Uu(y,this.options,D,this.speed)),M&&M(U.value),J&&this.finish(),U}then(r,o){return this.finished.then(r,o)}get duration(){return Et(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Et(r)}get time(){return Et(this.currentTime)}set time(r){r=Jt(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(et.now());const o=this.playbackSpeed!==r;this.playbackSpeed=r,o&&(this.time=Et(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=ux,startTime:o}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),this.options.onPlay?.();const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=o??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function Rx(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const Yn=n=>n*180/Math.PI,Jl=n=>{const r=Yn(Math.atan2(n[1],n[0]));return eu(r)},Dx={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Jl,rotateZ:Jl,skewX:n=>Yn(Math.atan(n[1])),skewY:n=>Yn(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},eu=n=>(n=n%360,n<0&&(n+=360),n),Ch=Jl,Ph=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),kh=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Lx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ph,scaleY:kh,scale:n=>(Ph(n)+kh(n))/2,rotateX:n=>eu(Yn(Math.atan2(n[6],n[5]))),rotateY:n=>eu(Yn(Math.atan2(-n[2],n[0]))),rotateZ:Ch,rotate:Ch,skewX:n=>Yn(Math.atan(n[4])),skewY:n=>Yn(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function tu(n){return n.includes("scale")?1:0}function nu(n,r){if(!n||n==="none")return tu(r);const o=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,l;if(o)a=Lx,l=o;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=Dx,l=h}if(!l)return tu(r);const f=a[r],c=l[1].split(",").map(Ax);return typeof f=="function"?f(c):c[f]}const Mx=(n,r)=>{const{transform:o="none"}=getComputedStyle(n);return nu(o,r)};function Ax(n){return parseFloat(n.trim())}const Mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ar=new Set(Mr),Th=n=>n===Lr||n===K,Vx=new Set(["x","y","z"]),Nx=Mr.filter(n=>!Vx.has(n));function _x(n){const r=[];return Nx.forEach(o=>{const a=n.getValue(o);a!==void 0&&(r.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),r}const Rn={width:({x:n},{paddingLeft:r="0",paddingRight:o="0"})=>n.max-n.min-parseFloat(r)-parseFloat(o),height:({y:n},{paddingTop:r="0",paddingBottom:o="0"})=>n.max-n.min-parseFloat(r)-parseFloat(o),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:(n,{transform:r})=>nu(r,"x"),y:(n,{transform:r})=>nu(r,"y")};Rn.translateX=Rn.x;Rn.translateY=Rn.y;const Qn=new Set;let ru=!1,iu=!1,ou=!1;function Lm(){if(iu){const n=Array.from(Qn).filter(a=>a.needsMeasurement),r=new Set(n.map(a=>a.element)),o=new Map;r.forEach(a=>{const l=_x(a);l.length&&(o.set(a,l),a.render())}),n.forEach(a=>a.measureInitialState()),r.forEach(a=>{a.render();const l=o.get(a);l&&l.forEach(([f,c])=>{a.getValue(f)?.set(c)})}),n.forEach(a=>a.measureEndState()),n.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}iu=!1,ru=!1,Qn.forEach(n=>n.complete(ou)),Qn.clear()}function Mm(){Qn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(iu=!0)})}function Fx(){ou=!0,Mm(),Lm(),ou=!1}class Hu{constructor(r,o,a,l,f,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=o,this.name=a,this.motionValue=l,this.element=f,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Qn.add(this),ru||(ru=!0,xe.read(Mm),xe.resolveKeyframes(Lm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:o,element:a,motionValue:l}=this;if(r[0]===null){const f=l?.get(),c=r[r.length-1];if(f!==void 0)r[0]=f;else if(a&&o){const h=a.readValue(o,c);h!=null&&(r[0]=h)}r[0]===void 0&&(r[0]=c),l&&f===void 0&&l.set(r[0])}Rx(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Qn.delete(this)}cancel(){this.state==="scheduled"&&(Qn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ix=n=>n.startsWith("--");function jx(n,r,o){Ix(r)?n.style.setProperty(r,o):n.style[r]=o}const Ox=Vu(()=>window.ScrollTimeline!==void 0),Bx={};function zx(n,r){const o=Vu(n);return()=>Bx[r]??o()}const Am=zx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xi=([n,r,o,a])=>`cubic-bezier(${n}, ${r}, ${o}, ${a})`,Rh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xi([0,.65,.55,1]),circOut:xi([.55,0,1,.45]),backIn:xi([.31,.01,.66,-.59]),backOut:xi([.33,1.53,.69,.99])};function Vm(n,r){if(n)return typeof n=="function"?Am()?Tm(n,r):"ease-out":mm(n)?xi(n):Array.isArray(n)?n.map(o=>Vm(o,r)||Rh.easeOut):Rh[n]}function Ux(n,r,o,{delay:a=0,duration:l=300,repeat:f=0,repeatType:c="loop",ease:h="easeOut",times:p}={},g=void 0){const y={[r]:o};p&&(y.offset=p);const v=Vm(h,l);Array.isArray(v)&&(y.easing=v);const w={delay:a,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:c==="reverse"?"alternate":"normal"};return g&&(w.pseudoElement=g),n.animate(y,w)}function Nm(n){return typeof n=="function"&&"applyToOptions"in n}function $x({type:n,...r}){return Nm(n)&&Am()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class Wx extends $u{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!r)return;const{element:o,name:a,keyframes:l,pseudoElement:f,allowFlatten:c=!1,finalKeyframe:h,onComplete:p}=r;this.isPseudoElement=!!f,this.allowFlatten=c,this.options=r,Au(typeof r.type!="string");const g=$x(r);this.animation=Ux(o,a,l,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=Uu(l,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(y):jx(o,a,y),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Et(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Et(r)}get time(){return Et(Number(this.animation.currentTime)||0)}set time(r){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Jt(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(r){this.manualStartTime=this.animation.startTime=r}attachTimeline({timeline:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&Ox()?(this.animation.timeline=r,Ct):o(this)}}const _m={anticipate:fm,backInOut:cm,circInOut:hm};function Hx(n){return n in _m}function bx(n){typeof n.ease=="string"&&Hx(n.ease)&&(n.ease=_m[n.ease])}const Il=10;class Kx extends Wx{constructor(r){bx(r),Dm(r),super(r),r.startTime!==void 0&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:o,onUpdate:a,onComplete:l,element:f,...c}=this.options;if(!o)return;if(r!==void 0){o.set(r);return}const h=new Wu({...c,autoplay:!1}),p=Math.max(Il,et.now()-this.startTime),g=$t(0,Il,p-Il);o.setWithVelocity(h.sample(Math.max(0,p-g)).value,h.sample(p).value,g),h.stop()}}const Dh=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Ln.test(n)||n==="0")&&!n.startsWith("url("));function Gx(n){const r=n[0];if(n.length===1)return!0;for(let o=0;o<n.length;o++)if(n[o]!==r)return!0}function Yx(n,r,o,a){const l=n[0];if(l===null)return!1;if(r==="display"||r==="visibility")return!0;const f=n[n.length-1],c=Dh(l,r),h=Dh(f,r);return!c||!h?!1:Gx(n)||(o==="spring"||Nm(o))&&a}function su(n){n.duration=0,n.type="keyframes"}const Qx=new Set(["opacity","clipPath","filter","transform"]),Xx=Vu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Zx(n){const{motionValue:r,name:o,repeatDelay:a,repeatType:l,damping:f,type:c}=n;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=r.owner.getProps();return Xx()&&o&&Qx.has(o)&&(o!=="transform"||!g)&&!p&&!a&&l!=="mirror"&&f!==0&&c!=="inertia"}const qx=40;class Jx extends $u{constructor({autoplay:r=!0,delay:o=0,type:a="keyframes",repeat:l=0,repeatDelay:f=0,repeatType:c="loop",keyframes:h,name:p,motionValue:g,element:y,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();const w={autoplay:r,delay:o,type:a,repeat:l,repeatDelay:f,repeatType:c,name:p,motionValue:g,element:y,...v},P=y?.KeyframeResolver||Hu;this.keyframeResolver=new P(h,(A,M,D)=>this.onKeyframesResolved(A,M,w,!D),p,g,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,o,a,l){this.keyframeResolver=void 0;const{name:f,type:c,velocity:h,delay:p,isHandoff:g,onUpdate:y}=a;this.resolvedAt=et.now(),Yx(r,f,c,h)||((tn.instantAnimations||!p)&&y?.(Uu(r,a,o)),r[0]=r[r.length-1],su(a),a.repeat=0);const w={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>qx?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...a,keyframes:r},P=!g&&Zx(w)?new Kx({...w,element:w.motionValue.owner.current}):new Wu(w);P.finished.then(()=>this.notifyFinished()).catch(Ct),this.pendingTimeline&&(this.stopTimeline=P.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=P}get finished(){return this._animation?this.animation.finished:this._finished}then(r,o){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Fx()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const e1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t1(n){const r=e1.exec(n);if(!r)return[,];const[,o,a,l]=r;return[`--${o??a}`,l]}function Fm(n,r,o=1){const[a,l]=t1(n);if(!a)return;const f=window.getComputedStyle(r).getPropertyValue(a);if(f){const c=f.trim();return nm(c)?parseFloat(c):c}return Iu(l)?Fm(l,r,o+1):l}function bu(n,r){return n?.[r]??n?.default??n}const n1={type:"spring",stiffness:500,damping:25,restSpeed:10},r1=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),i1={type:"keyframes",duration:.8},o1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},s1=(n,{keyframes:r})=>r.length>2?i1:Ar.has(n)?n.startsWith("scale")?r1(r[1]):n1:o1;function a1({when:n,delay:r,delayChildren:o,staggerChildren:a,staggerDirection:l,repeat:f,repeatType:c,repeatDelay:h,from:p,elapsed:g,...y}){return!!Object.keys(y).length}const l1=n=>n!==null;function u1(n,{repeat:r,repeatType:o="loop"},a){const l=n.filter(l1),f=r&&o!=="loop"&&r%2===1?0:l.length-1;return l[f]}function Im(n,r,o,a=0,l=1){const f=Array.from(n).sort((g,y)=>g.sortNodePosition(y)).indexOf(r),c=n.size,h=(c-1)*a;return typeof o=="function"?o(f,c):l===1?f*a:h-f*a}const Ku=(n,r,o,a={},l,f)=>c=>{const h=bu(a,n)||{},p=h.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Jt(p);const y={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-g,onUpdate:w=>{r.set(w),h.onUpdate&&h.onUpdate(w)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:l};a1(h)||Object.assign(y,s1(n,y)),y.duration&&(y.duration=Jt(y.duration)),y.repeatDelay&&(y.repeatDelay=Jt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(su(y),y.delay===0&&(v=!0)),(tn.instantAnimations||tn.skipAnimations)&&(v=!0,su(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!f&&r.get()!==void 0){const w=u1(y.keyframes,h);if(w!==void 0){xe.update(()=>{y.onUpdate(w),y.onComplete()});return}}return h.isSync?new Wu(y):new Jx(y)},jm=new Set(["width","height","top","left","right","bottom",...Mr]),Lh=30,c1=n=>!isNaN(parseFloat(n));class f1{constructor(r,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{const l=et.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=o.owner}setCurrent(r){this.current=r,this.updatedAt=et.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=c1(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,o){this.events[r]||(this.events[r]=new Nu);const a=this.events[r].add(o);return r==="change"?()=>{a(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,o){this.passiveEffect=r,this.stopPassiveEffect=o}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-a}jump(r,o=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>Lh)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,Lh);return om(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(r){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=r(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tr(n,r){return new f1(n,r)}function Mh(n){const r=[{},{}];return n?.values.forEach((o,a)=>{r[0][a]=o.get(),r[1][a]=o.getVelocity()}),r}function Gu(n,r,o,a){if(typeof r=="function"){const[l,f]=Mh(a);r=r(o!==void 0?o:n.custom,l,f)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[l,f]=Mh(a);r=r(o!==void 0?o:n.custom,l,f)}return r}function kr(n,r,o){const a=n.getProps();return Gu(a,r,o!==void 0?o:a.custom,n)}const au=n=>Array.isArray(n);function d1(n,r,o){n.hasValue(r)?n.getValue(r).set(o):n.addValue(r,Tr(o))}function h1(n){return au(n)?n[n.length-1]||0:n}function p1(n,r){const o=kr(n,r);let{transitionEnd:a={},transition:l={},...f}=o||{};f={...f,...a};for(const c in f){const h=h1(f[c]);d1(n,c,h)}}const Ye=n=>!!(n&&n.getVelocity);function m1(n){return!!(Ye(n)&&n.add)}function lu(n,r){const o=n.getValue("willChange");if(m1(o))return o.add(r);if(!o&&tn.WillChange){const a=new tn.WillChange("auto");n.addValue("willChange",a),a.add(r)}}function Yu(n){return n.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}const y1="framerAppearId",Om="data-"+Yu(y1);function Bm(n){return n.props[Om]}function g1({protectedKeys:n,needsAnimating:r},o){const a=n.hasOwnProperty(o)&&r[o]!==!0;return r[o]=!1,a}function zm(n,r,{delay:o=0,transitionOverride:a,type:l}={}){let{transition:f=n.getDefaultTransition(),transitionEnd:c,...h}=r;a&&(f=a);const p=[],g=l&&n.animationState&&n.animationState.getState()[l];for(const y in h){const v=n.getValue(y,n.latestValues[y]??null),w=h[y];if(w===void 0||g&&g1(g,y))continue;const P={delay:o,...bu(f||{},y)},A=v.get();if(A!==void 0&&!v.isAnimating&&!Array.isArray(w)&&w===A&&!P.velocity)continue;let M=!1;if(window.MotionHandoffAnimation){const _=Bm(n);if(_){const N=window.MotionHandoffAnimation(_,y,xe);N!==null&&(P.startTime=N,M=!0)}}lu(n,y),v.start(Ku(y,v,w,n.shouldReduceMotion&&jm.has(y)?{type:!1}:P,n,M));const D=v.animation;D&&p.push(D)}return c&&Promise.all(p).then(()=>{xe.update(()=>{c&&p1(n,c)})}),p}function uu(n,r,o={}){const a=kr(n,r,o.type==="exit"?n.presenceContext?.custom:void 0);let{transition:l=n.getDefaultTransition()||{}}=a||{};o.transitionOverride&&(l=o.transitionOverride);const f=a?()=>Promise.all(zm(n,a,o)):()=>Promise.resolve(),c=n.variantChildren&&n.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:v}=l;return v1(n,r,p,g,y,v,o)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,g]=h==="beforeChildren"?[f,c]:[c,f];return p().then(()=>g())}else return Promise.all([f(),c(o.delay)])}function v1(n,r,o=0,a=0,l=0,f=1,c){const h=[];for(const p of n.variantChildren)p.notify("AnimationStart",r),h.push(uu(p,r,{...c,delay:o+(typeof a=="function"?0:a)+Im(n.variantChildren,p,a,l,f)}).then(()=>p.notify("AnimationComplete",r)));return Promise.all(h)}function w1(n,r,o={}){n.notify("AnimationStart",r);let a;if(Array.isArray(r)){const l=r.map(f=>uu(n,f,o));a=Promise.all(l)}else if(typeof r=="string")a=uu(n,r,o);else{const l=typeof r=="function"?kr(n,r,o.custom):r;a=Promise.all(zm(n,l,o))}return a.then(()=>{n.notify("AnimationComplete",r)})}const x1={test:n=>n==="auto",parse:n=>n},Um=n=>r=>r.test(n),$m=[Lr,K,Ut,kn,Gw,Kw,x1],Ah=n=>$m.find(Um(n));function S1(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||im(n):!0}const E1=new Set(["brightness","contrast","saturate","opacity"]);function C1(n){const[r,o]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[a]=o.match(ju)||[];if(!a)return n;const l=o.replace(a,"");let f=E1.has(r)?1:0;return a!==o&&(f*=100),r+"("+f+l+")"}const P1=/\b([a-z-]*)\(.*?\)/gu,cu={...Ln,getAnimatableNone:n=>{const r=n.match(P1);return r?r.map(C1).join(" "):n}},Vh={...Lr,transform:Math.round},k1={rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:ts,scaleX:ts,scaleY:ts,scaleZ:ts,skew:kn,skewX:kn,skewY:kn,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Li,originX:vh,originY:vh,originZ:K},Qu={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,inset:K,insetBlock:K,insetBlockStart:K,insetBlockEnd:K,insetInline:K,insetInlineStart:K,insetInlineEnd:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockStart:K,paddingBlockEnd:K,paddingInline:K,paddingInlineStart:K,paddingInlineEnd:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockStart:K,marginBlockEnd:K,marginInline:K,marginInlineStart:K,marginInlineEnd:K,backgroundPositionX:K,backgroundPositionY:K,...k1,zIndex:Vh,fillOpacity:Li,strokeOpacity:Li,numOctaves:Vh},T1={...Qu,color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:cu,WebkitFilter:cu},Wm=n=>T1[n];function Hm(n,r){let o=Wm(n);return o!==cu&&(o=Ln),o.getAnimatableNone?o.getAnimatableNone(r):void 0}const R1=new Set(["auto","none","0"]);function D1(n,r,o){let a=0,l;for(;a<n.length&&!l;){const f=n[a];typeof f=="string"&&!R1.has(f)&&Mi(f).values.length&&(l=n[a]),a++}if(l&&o)for(const f of r)n[f]=Hm(o,l)}class L1 extends Hu{constructor(r,o,a,l,f){super(r,o,a,l,f,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let y=0;y<r.length;y++){let v=r[y];if(typeof v=="string"&&(v=v.trim(),Iu(v))){const w=Fm(v,o.current);w!==void 0&&(r[y]=w),y===r.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!jm.has(a)||r.length!==2)return;const[l,f]=r,c=Ah(l),h=Ah(f),p=gh(l),g=gh(f);if(p!==g&&Rn[a]){this.needsMeasurement=!0;return}if(c!==h)if(Th(c)&&Th(h))for(let y=0;y<r.length;y++){const v=r[y];typeof v=="string"&&(r[y]=parseFloat(v))}else Rn[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:o}=this,a=[];for(let l=0;l<r.length;l++)(r[l]===null||S1(r[l]))&&a.push(l);a.length&&D1(r,a,o)}measureInitialState(){const{element:r,unresolvedKeyframes:o,name:a}=this;if(!r||!r.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Rn[a](r.measureViewportBox(),window.getComputedStyle(r.current)),o[0]=this.measuredOrigin;const l=o[o.length-1];l!==void 0&&r.getValue(a,l).jump(l,!1)}measureEndState(){const{element:r,name:o,unresolvedKeyframes:a}=this;if(!r||!r.current)return;const l=r.getValue(o);l&&l.jump(this.measuredOrigin,!1);const f=a.length-1,c=a[f];a[f]=Rn[o](r.measureViewportBox(),window.getComputedStyle(r.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,p])=>{r.getValue(h).set(p)}),this.resolveNoneKeyframes()}}function M1(n,r,o){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let a=document;const l=o?.[n]??a.querySelectorAll(n);return l?Array.from(l):[]}return Array.from(n)}const bm=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function Km(n){return rm(n)&&"offsetHeight"in n}const{schedule:Xu}=ym(queueMicrotask,!1),Nt={x:!1,y:!1};function Gm(){return Nt.x||Nt.y}function A1(n){return n==="x"||n==="y"?Nt[n]?null:(Nt[n]=!0,()=>{Nt[n]=!1}):Nt.x||Nt.y?null:(Nt.x=Nt.y=!0,()=>{Nt.x=Nt.y=!1})}function Ym(n,r){const o=M1(n),a=new AbortController,l={passive:!0,...r,signal:a.signal};return[o,l,()=>a.abort()]}function Nh(n){return!(n.pointerType==="touch"||Gm())}function V1(n,r,o={}){const[a,l,f]=Ym(n,o),c=h=>{if(!Nh(h))return;const{target:p}=h,g=r(p,h);if(typeof g!="function"||!p)return;const y=v=>{Nh(v)&&(g(v),p.removeEventListener("pointerleave",y))};p.addEventListener("pointerleave",y,l)};return a.forEach(h=>{h.addEventListener("pointerenter",c,l)}),f}const Qm=(n,r)=>r?n===r?!0:Qm(n,r.parentElement):!1,Zu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,N1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xm(n){return N1.has(n.tagName)||n.isContentEditable===!0}const us=new WeakSet;function _h(n){return r=>{r.key==="Enter"&&n(r)}}function jl(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const _1=(n,r)=>{const o=n.currentTarget;if(!o)return;const a=_h(()=>{if(us.has(o))return;jl(o,"down");const l=_h(()=>{jl(o,"up")}),f=()=>jl(o,"cancel");o.addEventListener("keyup",l,r),o.addEventListener("blur",f,r)});o.addEventListener("keydown",a,r),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),r)};function Fh(n){return Zu(n)&&!Gm()}function F1(n,r,o={}){const[a,l,f]=Ym(n,o),c=h=>{const p=h.currentTarget;if(!Fh(h))return;us.add(p);const g=r(p,h),y=(P,A)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),us.has(p)&&us.delete(p),Fh(P)&&typeof g=="function"&&g(P,{success:A})},v=P=>{y(P,p===window||p===document||o.useGlobalTarget||Qm(p,P.target))},w=P=>{y(P,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",w,l)};return a.forEach(h=>{(o.useGlobalTarget?window:h).addEventListener("pointerdown",c,l),Km(h)&&(h.addEventListener("focus",g=>_1(g,l)),!Xm(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Zm(n){return rm(n)&&"ownerSVGElement"in n}function I1(n){return Zm(n)&&n.tagName==="svg"}const j1=[...$m,Ve,Ln],O1=n=>j1.find(Um(n)),Ih=()=>({translate:0,scale:1,origin:0,originPoint:0}),Er=()=>({x:Ih(),y:Ih()}),jh=()=>({min:0,max:0}),Fe=()=>({x:jh(),y:jh()}),fu={current:null},qm={current:!1},B1=typeof window<"u";function z1(){if(qm.current=!0,!!B1)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>fu.current=n.matches;n.addEventListener("change",r),r()}else fu.current=!1}const U1=new WeakMap;function ks(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ai(n){return typeof n=="string"||Array.isArray(n)}const qu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ju=["initial",...qu];function Ts(n){return ks(n.animate)||Ju.some(r=>Ai(n[r]))}function Jm(n){return!!(Ts(n)||n.variants)}function $1(n,r,o){for(const a in r){const l=r[a],f=o[a];if(Ye(l))n.addValue(a,l);else if(Ye(f))n.addValue(a,Tr(l,{owner:n}));else if(f!==l)if(n.hasValue(a)){const c=n.getValue(a);c.liveStyle===!0?c.jump(l):c.hasAnimated||c.set(l)}else{const c=n.getStaticValue(a);n.addValue(a,Tr(c!==void 0?c:l,{owner:n}))}}for(const a in o)r[a]===void 0&&n.removeValue(a);return r}const Oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let gs={};function ey(n){gs=n}function W1(){return gs}class H1{scrapeMotionValuesFromProps(r,o,a){return{}}constructor({parent:r,props:o,presenceContext:a,reducedMotionConfig:l,blockInitialAnimation:f,visualState:c},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=et.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,xe.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=c;this.latestValues=p,this.baseTarget={...p},this.initialValues=o.initial?{...p}:{},this.renderState=g,this.parent=r,this.props=o,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=l,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=Ts(o),this.isVariantNode=Jm(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(o,{},this);for(const w in v){const P=v[w];p[w]!==void 0&&Ye(P)&&P.set(p[w])}}mount(r){this.current=r,U1.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,a)=>this.bindToMotionValue(a,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(qm.current||z1(),this.shouldReduceMotion=fu.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Dn(this.notifyUpdate),Dn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const o=this.features[r];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,o){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const a=Ar.has(r);a&&this.onBindTransform&&this.onBindTransform();const l=o.on("change",c=>{this.latestValues[r]=c,this.props.onUpdate&&xe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,r,o)),this.valueSubscriptions.set(r,()=>{l(),f&&f(),o.owner&&o.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in gs){const o=gs[r];if(!o)continue;const{isEnabled:a,Feature:l}=o;if(!this.features[r]&&l&&a(this.props)&&(this.features[r]=new l(this)),this.features[r]){const f=this.features[r];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,o){this.latestValues[r]=o}update(r,o){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<Oh.length;a++){const l=Oh[a];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const f="on"+l,c=r[f];c&&(this.propEventSubscriptions[l]=this.on(l,c))}this.prevMotionValues=$1(this,this.scrapeMotionValuesFromProps(r,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(r),()=>o.variantChildren.delete(r)}addValue(r,o){const a=this.values.get(r);o!==a&&(a&&this.removeValue(r),this.bindToMotionValue(r,o),this.values.set(r,o),this.latestValues[r]=o.get())}removeValue(r){this.values.delete(r);const o=this.valueSubscriptions.get(r);o&&(o(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,o){if(this.props.values&&this.props.values[r])return this.props.values[r];let a=this.values.get(r);return a===void 0&&o!==void 0&&(a=Tr(o===null?void 0:o,{owner:this}),this.addValue(r,a)),a}readValue(r,o){let a=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return a!=null&&(typeof a=="string"&&(nm(a)||im(a))?a=parseFloat(a):!O1(a)&&Ln.test(o)&&(a=Hm(r,o)),this.setBaseTarget(r,Ye(a)?a.get():a)),Ye(a)?a.get():a}setBaseTarget(r,o){this.baseTarget[r]=o}getBaseTarget(r){const{initial:o}=this.props;let a;if(typeof o=="string"||typeof o=="object"){const f=Gu(this.props,o,this.presenceContext?.custom);f&&(a=f[r])}if(o&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,r);return l!==void 0&&!Ye(l)?l:this.initialValues[r]!==void 0&&a===void 0?void 0:this.baseTarget[r]}on(r,o){return this.events[r]||(this.events[r]=new Nu),this.events[r].add(o)}notify(r,...o){this.events[r]&&this.events[r].notify(...o)}scheduleRenderMicrotask(){Xu.render(this.render)}}class Mn{constructor(r){this.isMounted=!1,this.node=r}update(){}}class ty extends H1{constructor(){super(...arguments),this.KeyframeResolver=L1}sortInstanceNodePosition(r,o){return r.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(r,o){const a=r.style;return a?a[o]:void 0}removeValueFromRenderState(r,{vars:o,style:a}){delete o[r],delete a[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Ye(r)&&(this.childSubscription=r.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function ny({top:n,left:r,right:o,bottom:a}){return{x:{min:r,max:o},y:{min:n,max:a}}}function b1({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function K1(n,r){if(!r)return n;const o=r({x:n.left,y:n.top}),a=r({x:n.right,y:n.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function Ol(n){return n===void 0||n===1}function du({scale:n,scaleX:r,scaleY:o}){return!Ol(n)||!Ol(r)||!Ol(o)}function Kn(n){return du(n)||ry(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function ry(n){return Bh(n.x)||Bh(n.y)}function Bh(n){return n&&n!=="0%"}function vs(n,r,o){const a=n-o,l=r*a;return o+l}function zh(n,r,o,a,l){return l!==void 0&&(n=vs(n,l,a)),vs(n,o,a)+r}function hu(n,r=0,o=1,a,l){n.min=zh(n.min,r,o,a,l),n.max=zh(n.max,r,o,a,l)}function iy(n,{x:r,y:o}){hu(n.x,r.translate,r.scale,r.originPoint),hu(n.y,o.translate,o.scale,o.originPoint)}const Uh=.999999999999,$h=1.0000000000001;function G1(n,r,o,a=!1){const l=o.length;if(!l)return;r.x=r.y=1;let f,c;for(let h=0;h<l;h++){f=o[h],c=f.projectionDelta;const{visualElement:p}=f.options;p&&p.props.style&&p.props.style.display==="contents"||(a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Pr(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),c&&(r.x*=c.x.scale,r.y*=c.y.scale,iy(n,c)),a&&Kn(f.latestValues)&&Pr(n,f.latestValues))}r.x<$h&&r.x>Uh&&(r.x=1),r.y<$h&&r.y>Uh&&(r.y=1)}function Cr(n,r){n.min=n.min+r,n.max=n.max+r}function Wh(n,r,o,a,l=.5){const f=ke(n.min,n.max,l);hu(n,r,o,f,a)}function Pr(n,r){Wh(n.x,r.x,r.scaleX,r.scale,r.originX),Wh(n.y,r.y,r.scaleY,r.scale,r.originY)}function oy(n,r){return ny(K1(n.getBoundingClientRect(),r))}function Y1(n,r,o){const a=oy(n,o),{scroll:l}=r;return l&&(Cr(a.x,l.offset.x),Cr(a.y,l.offset.y)),a}const Q1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X1=Mr.length;function Z1(n,r,o){let a="",l=!0;for(let f=0;f<X1;f++){const c=Mr[f],h=n[c];if(h===void 0)continue;let p=!0;if(typeof h=="number"?p=h===(c.startsWith("scale")?1:0):p=parseFloat(h)===0,!p||o){const g=bm(h,Qu[c]);if(!p){l=!1;const y=Q1[c]||c;a+=`${y}(${g}) `}o&&(r[c]=g)}}return a=a.trim(),o?a=o(r,l?"":a):l&&(a="none"),a}function ec(n,r,o){const{style:a,vars:l,transformOrigin:f}=n;let c=!1,h=!1;for(const p in r){const g=r[p];if(Ar.has(p)){c=!0;continue}else if(vm(p)){l[p]=g;continue}else{const y=bm(g,Qu[p]);p.startsWith("origin")?(h=!0,f[p]=y):a[p]=y}}if(r.transform||(c||o?a.transform=Z1(r,n.transform,o):a.transform&&(a.transform="none")),h){const{originX:p="50%",originY:g="50%",originZ:y=0}=f;a.transformOrigin=`${p} ${g} ${y}`}}function sy(n,{style:r,vars:o},a,l){const f=n.style;let c;for(c in r)f[c]=r[c];l?.applyProjectionStyles(f,a);for(c in o)f.setProperty(c,o[c])}function Hh(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const wi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(K.test(n))n=parseFloat(n);else return n;const o=Hh(n,r.target.x),a=Hh(n,r.target.y);return`${o}% ${a}%`}},q1={correct:(n,{treeScale:r,projectionDelta:o})=>{const a=n,l=Ln.parse(n);if(l.length>5)return a;const f=Ln.createTransformer(n),c=typeof l[0]!="number"?1:0,h=o.x.scale*r.x,p=o.y.scale*r.y;l[0+c]/=h,l[1+c]/=p;const g=ke(h,p,.5);return typeof l[2+c]=="number"&&(l[2+c]/=g),typeof l[3+c]=="number"&&(l[3+c]/=g),f(l)}},pu={borderRadius:{...wi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wi,borderTopRightRadius:wi,borderBottomLeftRadius:wi,borderBottomRightRadius:wi,boxShadow:q1};function ay(n,{layout:r,layoutId:o}){return Ar.has(n)||n.startsWith("origin")||(r||o!==void 0)&&(!!pu[n]||n==="opacity")}function tc(n,r,o){const a=n.style,l=r?.style,f={};if(!a)return f;for(const c in a)(Ye(a[c])||l&&Ye(l[c])||ay(c,n)||o?.getValue(c)?.liveStyle!==void 0)&&(f[c]=a[c]);return f}function J1(n){return window.getComputedStyle(n)}class eS extends ty{constructor(){super(...arguments),this.type="html",this.renderInstance=sy}readValueFromInstance(r,o){if(Ar.has(o))return this.projection?.isProjecting?tu(o):Mx(r,o);{const a=J1(r),l=(vm(o)?a.getPropertyValue(o):a[o])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(r,{transformPagePoint:o}){return oy(r,o)}build(r,o,a){ec(r,o,a.transformTemplate)}scrapeMotionValuesFromProps(r,o,a){return tc(r,o,a)}}const tS={offset:"stroke-dashoffset",array:"stroke-dasharray"},nS={offset:"strokeDashoffset",array:"strokeDasharray"};function rS(n,r,o=1,a=0,l=!0){n.pathLength=1;const f=l?tS:nS;n[f.offset]=K.transform(-a);const c=K.transform(r),h=K.transform(o);n[f.array]=`${c} ${h}`}const iS=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ly(n,{attrX:r,attrY:o,attrScale:a,pathLength:l,pathSpacing:f=1,pathOffset:c=0,...h},p,g,y){if(ec(n,h,g),p){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:w}=n;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.transformBox=y?.transformBox??"fill-box",delete v.transformBox);for(const P of iS)v[P]!==void 0&&(w[P]=v[P],delete v[P]);r!==void 0&&(v.x=r),o!==void 0&&(v.y=o),a!==void 0&&(v.scale=a),l!==void 0&&rS(v,l,f,c,!1)}const uy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),cy=n=>typeof n=="string"&&n.toLowerCase()==="svg";function oS(n,r,o,a){sy(n,r,void 0,a);for(const l in r.attrs)n.setAttribute(uy.has(l)?l:Yu(l),r.attrs[l])}function fy(n,r,o){const a=tc(n,r,o);for(const l in n)if(Ye(n[l])||Ye(r[l])){const f=Mr.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;a[f]=n[l]}return a}class sS extends ty{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe}getBaseTargetFromProps(r,o){return r[o]}readValueFromInstance(r,o){if(Ar.has(o)){const a=Wm(o);return a&&a.default||0}return o=uy.has(o)?o:Yu(o),r.getAttribute(o)}scrapeMotionValuesFromProps(r,o,a){return fy(r,o,a)}build(r,o,a){ly(r,o,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(r,o,a,l){oS(r,o,a,l)}mount(r){this.isSVGTag=cy(r.tagName),super.mount(r)}}const aS=Ju.length;function dy(n){if(!n)return;if(!n.isControllingVariants){const o=n.parent?dy(n.parent)||{}:{};return n.props.initial!==void 0&&(o.initial=n.props.initial),o}const r={};for(let o=0;o<aS;o++){const a=Ju[o],l=n.props[a];(Ai(l)||l===!1)&&(r[a]=l)}return r}function hy(n,r){if(!Array.isArray(r))return!1;const o=r.length;if(o!==n.length)return!1;for(let a=0;a<o;a++)if(r[a]!==n[a])return!1;return!0}const lS=[...qu].reverse(),uS=qu.length;function cS(n){return r=>Promise.all(r.map(({animation:o,options:a})=>w1(n,o,a)))}function fS(n){let r=cS(n),o=bh(),a=!0;const l=p=>(g,y)=>{const v=kr(n,y,p==="exit"?n.presenceContext?.custom:void 0);if(v){const{transition:w,transitionEnd:P,...A}=v;g={...g,...A,...P}}return g};function f(p){r=p(n)}function c(p){const{props:g}=n,y=dy(n.parent)||{},v=[],w=new Set;let P={},A=1/0;for(let D=0;D<uS;D++){const _=lS[D],N=o[_],V=g[_]!==void 0?g[_]:y[_],H=Ai(V),U=_===p?N.isActive:null;U===!1&&(A=D);let ee=V===y[_]&&V!==g[_]&&H;if(ee&&a&&n.manuallyAnimateOnMount&&(ee=!1),N.protectedKeys={...P},!N.isActive&&U===null||!V&&!N.prevProp||ks(V)||typeof V=="boolean")continue;const J=dS(N.prevProp,V);let $=J||_===p&&N.isActive&&!ee&&H||D>A&&H,ae=!1;const ce=Array.isArray(V)?V:[V];let ze=ce.reduce(l(_),{});U===!1&&(ze={});const{prevResolvedValues:Qe={}}=N,Xe={...Qe,...ze},nt=ie=>{$=!0,w.has(ie)&&(ae=!0,w.delete(ie)),N.needsAnimating[ie]=!0;const z=n.getValue(ie);z&&(z.liveStyle=!1)};for(const ie in Xe){const z=ze[ie],q=Qe[ie];if(P.hasOwnProperty(ie))continue;let W=!1;au(z)&&au(q)?W=!hy(z,q):W=z!==q,W?z!=null?nt(ie):w.add(ie):z!==void 0&&w.has(ie)?nt(ie):N.protectedKeys[ie]=!0}N.prevProp=V,N.prevResolvedValues=ze,N.isActive&&(P={...P,...ze}),a&&n.blockInitialAnimation&&($=!1);const ut=ee&&J;$&&(!ut||ae)&&v.push(...ce.map(ie=>{const z={type:_};if(typeof ie=="string"&&a&&!ut&&n.manuallyAnimateOnMount&&n.parent){const{parent:q}=n,W=kr(q,ie);if(q.enteringChildren&&W){const{delayChildren:k}=W.transition||{};z.delay=Im(q.enteringChildren,n,k)}}return{animation:ie,options:z}}))}if(w.size){const D={};if(typeof g.initial!="boolean"){const _=kr(n,Array.isArray(g.initial)?g.initial[0]:g.initial);_&&_.transition&&(D.transition=_.transition)}w.forEach(_=>{const N=n.getBaseTarget(_),V=n.getValue(_);V&&(V.liveStyle=!0),D[_]=N??null}),v.push({animation:D})}let M=!!v.length;return a&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(M=!1),a=!1,M?r(v):Promise.resolve()}function h(p,g){if(o[p].isActive===g)return Promise.resolve();n.variantChildren?.forEach(v=>v.animationState?.setActive(p,g)),o[p].isActive=g;const y=c(p);for(const v in o)o[v].protectedKeys={};return y}return{animateChanges:c,setActive:h,setAnimateFunction:f,getState:()=>o,reset:()=>{o=bh()}}}function dS(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!hy(r,n):!1}function bn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bh(){return{animate:bn(!0),whileInView:bn(),whileHover:bn(),whileTap:bn(),whileDrag:bn(),whileFocus:bn(),exit:bn()}}const py=1e-4,hS=1-py,pS=1+py,my=.01,mS=0-my,yS=0+my;function tt(n){return n.max-n.min}function gS(n,r,o){return Math.abs(n-r)<=o}function Kh(n,r,o,a=.5){n.origin=a,n.originPoint=ke(r.min,r.max,n.origin),n.scale=tt(o)/tt(r),n.translate=ke(o.min,o.max,n.origin)-n.originPoint,(n.scale>=hS&&n.scale<=pS||isNaN(n.scale))&&(n.scale=1),(n.translate>=mS&&n.translate<=yS||isNaN(n.translate))&&(n.translate=0)}function Pi(n,r,o,a){Kh(n.x,r.x,o.x,a?a.originX:void 0),Kh(n.y,r.y,o.y,a?a.originY:void 0)}function Gh(n,r,o){n.min=o.min+r.min,n.max=n.min+tt(r)}function vS(n,r,o){Gh(n.x,r.x,o.x),Gh(n.y,r.y,o.y)}function Yh(n,r,o){n.min=r.min-o.min,n.max=n.min+tt(r)}function ws(n,r,o){Yh(n.x,r.x,o.x),Yh(n.y,r.y,o.y)}function Qh(n,r,o,a,l){return n-=r,n=vs(n,1/o,a),l!==void 0&&(n=vs(n,1/l,a)),n}function wS(n,r=0,o=1,a=.5,l,f=n,c=n){if(Ut.test(r)&&(r=parseFloat(r),r=ke(c.min,c.max,r/100)-c.min),typeof r!="number")return;let h=ke(f.min,f.max,a);n===f&&(h-=r),n.min=Qh(n.min,r,o,h,l),n.max=Qh(n.max,r,o,h,l)}function Xh(n,r,[o,a,l],f,c){wS(n,r[o],r[a],r[l],r.scale,f,c)}const xS=["x","scaleX","originX"],SS=["y","scaleY","originY"];function Zh(n,r,o,a){Xh(n.x,r,xS,o?o.x:void 0,a?a.x:void 0),Xh(n.y,r,SS,o?o.y:void 0,a?a.y:void 0)}function qh(n,r){n.min=r.min,n.max=r.max}function Vt(n,r){qh(n.x,r.x),qh(n.y,r.y)}function Jh(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function ep(n){return n.translate===0&&n.scale===1}function yy(n){return ep(n.x)&&ep(n.y)}function tp(n,r){return n.min===r.min&&n.max===r.max}function ES(n,r){return tp(n.x,r.x)&&tp(n.y,r.y)}function np(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function gy(n,r){return np(n.x,r.x)&&np(n.y,r.y)}function rp(n){return tt(n.x)/tt(n.y)}function ip(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}function St(n){return[n("x"),n("y")]}function CS(n,r,o){let a="";const l=n.x.translate/r.x,f=n.y.translate/r.y,c=o?.z||0;if((l||f||c)&&(a=`translate3d(${l}px, ${f}px, ${c}px) `),(r.x!==1||r.y!==1)&&(a+=`scale(${1/r.x}, ${1/r.y}) `),o){const{transformPerspective:g,rotate:y,rotateX:v,rotateY:w,skewX:P,skewY:A}=o;g&&(a=`perspective(${g}px) ${a}`),y&&(a+=`rotate(${y}deg) `),v&&(a+=`rotateX(${v}deg) `),w&&(a+=`rotateY(${w}deg) `),P&&(a+=`skewX(${P}deg) `),A&&(a+=`skewY(${A}deg) `)}const h=n.x.scale*r.x,p=n.y.scale*r.y;return(h!==1||p!==1)&&(a+=`scale(${h}, ${p})`),a||"none"}const vy=["TopLeft","TopRight","BottomLeft","BottomRight"],PS=vy.length,op=n=>typeof n=="string"?parseFloat(n):n,sp=n=>typeof n=="number"||K.test(n);function kS(n,r,o,a,l,f){l?(n.opacity=ke(0,o.opacity??1,TS(a)),n.opacityExit=ke(r.opacity??1,0,RS(a))):f&&(n.opacity=ke(r.opacity??1,o.opacity??1,a));for(let c=0;c<PS;c++){const h=`border${vy[c]}Radius`;let p=ap(r,h),g=ap(o,h);if(p===void 0&&g===void 0)continue;p||(p=0),g||(g=0),p===0||g===0||sp(p)===sp(g)?(n[h]=Math.max(ke(op(p),op(g),a),0),(Ut.test(g)||Ut.test(p))&&(n[h]+="%")):n[h]=g}(r.rotate||o.rotate)&&(n.rotate=ke(r.rotate||0,o.rotate||0,a))}function ap(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const TS=wy(0,.5,dm),RS=wy(.5,.95,Ct);function wy(n,r,o){return a=>a<n?0:a>r?1:o(Di(n,r,a))}function DS(n,r){const o=et.now(),a=({timestamp:l})=>{const f=l-o;f>=r&&(Dn(a),n(f-r))};return xe.setup(a,!0),()=>Dn(a)}function Vi(n,r,o,a={passive:!0}){return n.addEventListener(r,o,a),()=>n.removeEventListener(r,o)}function cs(n){return Ye(n)?n.get():n}function LS(n,r,o){const a=Ye(n)?n:Tr(n);return a.start(Ku("",a,r,o)),a.animation}const MS=(n,r)=>n.depth-r.depth;class AS{constructor(){this.children=[],this.isDirty=!1}add(r){Lu(this.children,r),this.isDirty=!0}remove(r){Mu(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(MS),this.isDirty=!1,this.children.forEach(r)}}class VS{constructor(){this.members=[]}add(r){Lu(this.members,r),r.scheduleRender()}remove(r){if(Mu(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(r){const o=this.members.findIndex(l=>r===l);if(o===0)return!1;let a;for(let l=o;l>=0;l--){const f=this.members[l];if(f.isPresent!==!1){a=f;break}}return a?(this.promote(a),!0):!1}promote(r,o){const a=this.lead;if(r!==a&&(this.prevLead=a,this.lead=r,r.show(),a)){a.instance&&a.scheduleRender(),r.scheduleRender(),r.resumeFrom=a,o&&(r.resumeFrom.preserveOpacity=!0),a.snapshot&&(r.snapshot=a.snapshot,r.snapshot.latestValues=a.animationValues||a.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:l}=r.options;l===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:o,resumingFrom:a}=r;o.onExitComplete&&o.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const fs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Bl=["","X","Y","Z"],NS=1e3;let _S=0;function zl(n,r,o,a){const{latestValues:l}=r;l[n]&&(o[n]=l[n],r.setStaticValue(n,0),a&&(a[n]=0))}function xy(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const o=Bm(r);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:l,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(o,"transform",xe,!(l||f))}const{parent:a}=n;a&&!a.hasCheckedOptimisedAppear&&xy(a)}function Sy({attachResizeListener:n,defaultParent:r,measureScroll:o,checkIsScrollRoot:a,resetTransform:l}){return class{constructor(c={},h=r?.()){this.id=_S++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(jS),this.nodes.forEach(US),this.nodes.forEach($S),this.nodes.forEach(OS)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new AS)}addEventListener(c,h){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Nu),this.eventHandlers.get(c).add(h)}notifyListeners(c,...h){const p=this.eventHandlers.get(c);p&&p.notify(...h)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Zm(c)&&!I1(c),this.instance=c;const{layoutId:h,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||h)&&(this.isLayoutDirty=!0),n){let y,v=0;const w=()=>this.root.updateBlockedByResize=!1;xe.read(()=>{v=window.innerWidth}),n(c,()=>{const P=window.innerWidth;P!==v&&(v=P,this.root.updateBlockedByResize=!0,y&&y(),y=DS(w,250),fs.hasAnimatedSinceResize&&(fs.hasAnimatedSinceResize=!1,this.nodes.forEach(cp)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||g.getDefaultTransition()||GS,{onLayoutAnimationStart:M,onLayoutAnimationComplete:D}=g.getProps(),_=!this.targetLayout||!gy(this.targetLayout,P),N=!v&&w;if(this.options.layoutRoot||this.resumeFrom||N||v&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const V={...bu(A,"layout"),onPlay:M,onComplete:D};(g.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V),this.setAnimationOrigin(y,N)}else v||cp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WS),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:p}=this.options;if(h===void 0&&!p)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(up);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zS),this.nodes.forEach(FS),this.nodes.forEach(IS)):this.nodes.forEach(up),this.clearAllSnapshots();const h=et.now();We.delta=$t(0,1e3/60,h-We.timestamp),We.timestamp=h,We.isProcessing=!0,Al.update.process(We),Al.preRender.process(We),Al.render.process(We),We.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(BS),this.sharedNodes.forEach(HS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tt(this.snapshot.measuredBox.x)&&!tt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Fe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(h=!1),h&&this.instance){const p=a(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:p,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!l)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!yy(this.projectionDelta),p=this.getTransformTemplate(),g=p?p(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;c&&this.instance&&(h||Kn(this.latestValues)||y)&&(l(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const h=this.measurePageBox();let p=this.removeElementScroll(h);return c&&(p=this.removeTransform(p)),YS(p),{animationId:this.root.animationId,measuredBox:h,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Fe();const h=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(QS))){const{scroll:g}=this.root;g&&(Cr(h.x,g.offset.x),Cr(h.y,g.offset.y))}return h}removeElementScroll(c){const h=Fe();if(Vt(h,c),this.scroll?.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:v}=g;g!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&Vt(h,c),Cr(h.x,y.offset.x),Cr(h.y,y.offset.y))}return h}applyTransform(c,h=!1){const p=Fe();Vt(p,c);for(let g=0;g<this.path.length;g++){const y=this.path[g];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Pr(p,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Kn(y.latestValues)&&Pr(p,y.latestValues)}return Kn(this.latestValues)&&Pr(p,this.latestValues),p}removeTransform(c){const h=Fe();Vt(h,c);for(let p=0;p<this.path.length;p++){const g=this.path[p];if(!g.instance||!Kn(g.latestValues))continue;du(g.latestValues)&&g.updateSnapshot();const y=Fe(),v=g.measurePageBox();Vt(y,v),Zh(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return Kn(this.latestValues)&&Zh(h,this.latestValues),h}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==We.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=We.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vt(this.target,this.layout.layoutBox),iy(this.target,this.targetDelta)):Vt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||du(this.parent.latestValues)||ry(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,h,p){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),ws(this.relativeTargetOrigin,h,p),Vt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),h=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===We.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;Vt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;G1(this.layoutCorrected,this.treeScale,this.path,h),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Fe());const{target:P}=c;if(!P){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jh(this.prevProjectionDelta.x,this.projectionDelta.x),Jh(this.prevProjectionDelta.y,this.projectionDelta.y)),Pi(this.projectionDelta,this.layoutCorrected,P,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!ip(this.projectionDelta.x,this.prevProjectionDelta.x)||!ip(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",P))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Er(),this.projectionDelta=Er(),this.projectionDeltaWithTransform=Er()}setAnimationOrigin(c,h=!1){const p=this.snapshot,g=p?p.latestValues:{},y={...this.latestValues},v=Er();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const w=Fe(),P=p?p.source:void 0,A=this.layout?this.layout.source:void 0,M=P!==A,D=this.getStack(),_=!D||D.members.length<=1,N=!!(M&&!_&&this.options.crossfade===!0&&!this.path.some(KS));this.animationProgress=0;let V;this.mixTargetDelta=H=>{const U=H/1e3;fp(v.x,c.x,U),fp(v.y,c.y,U),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ws(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bS(this.relativeTarget,this.relativeTargetOrigin,w,U),V&&ES(this.relativeTarget,V)&&(this.isProjectionDirty=!1),V||(V=Fe()),Vt(V,this.relativeTarget)),M&&(this.animationValues=y,kS(y,g,this.latestValues,U,N,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{fs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Tr(0)),this.currentAnimation=LS(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),c.onUpdate&&c.onUpdate(h)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:p,layout:g,latestValues:y}=c;if(!(!h||!p||!g)){if(this!==c&&this.layout&&g&&Ey(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||Fe();const v=tt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+v;const w=tt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+w}Vt(h,p),Pr(h,y),Pi(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new VS),this.sharedNodes.get(c).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const g={};p.z&&zl("z",c,g,this.animationValues);for(let y=0;y<Bl.length;y++)zl(`rotate${Bl[y]}`,c,g,this.animationValues),zl(`skew${Bl[y]}`,c,g,this.animationValues);c.render();for(const y in g)c.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);c.scheduleRender()}applyProjectionStyles(c,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=cs(h?.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=cs(h?.pointerEvents)||""),this.hasProjected&&!Kn(this.latestValues)&&(c.transform=p?p({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let v=CS(this.projectionDeltaWithTransform,this.treeScale,y);p&&(v=p(y,v)),c.transform=v;const{x:w,y:P}=this.projectionDelta;c.transformOrigin=`${w.origin*100}% ${P.origin*100}% 0`,g.animationValues?c.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const A in pu){if(y[A]===void 0)continue;const{correct:M,applyTo:D,isCSSVariable:_}=pu[A],N=v==="none"?y[A]:M(y[A],g);if(D){const V=D.length;for(let H=0;H<V;H++)c[D[H]]=N}else _?this.options.visualElement.renderState.vars[A]=N:c[A]=N}this.options.layoutId&&(c.pointerEvents=g===this?cs(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(lp),this.root.sharedNodes.clear()}}}function FS(n){n.updateLayout()}function IS(n){const r=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&r&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=n.layout,{animationType:l}=n.options,f=r.source!==n.layout.source;l==="size"?St(y=>{const v=f?r.measuredBox[y]:r.layoutBox[y],w=tt(v);v.min=o[y].min,v.max=v.min+w}):Ey(l,r.layoutBox,o)&&St(y=>{const v=f?r.measuredBox[y]:r.layoutBox[y],w=tt(o[y]);v.max=v.min+w,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[y].max=n.relativeTarget[y].min+w)});const c=Er();Pi(c,o,r.layoutBox);const h=Er();f?Pi(h,n.applyTransform(a,!0),r.measuredBox):Pi(h,o,r.layoutBox);const p=!yy(c);let g=!1;if(!n.resumeFrom){const y=n.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:w}=y;if(v&&w){const P=Fe();ws(P,r.layoutBox,v.layoutBox);const A=Fe();ws(A,o,w.layoutBox),gy(P,A)||(g=!0),y.options.layoutRoot&&(n.relativeTarget=A,n.relativeTargetOrigin=P,n.relativeParent=y)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:h,layoutDelta:c,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function jS(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function OS(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function BS(n){n.clearSnapshot()}function lp(n){n.clearMeasurements()}function up(n){n.isLayoutDirty=!1}function zS(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function cp(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function US(n){n.resolveTargetDelta()}function $S(n){n.calcProjection()}function WS(n){n.resetSkewAndRotation()}function HS(n){n.removeLeadSnapshot()}function fp(n,r,o){n.translate=ke(r.translate,0,o),n.scale=ke(r.scale,1,o),n.origin=r.origin,n.originPoint=r.originPoint}function dp(n,r,o,a){n.min=ke(r.min,o.min,a),n.max=ke(r.max,o.max,a)}function bS(n,r,o,a){dp(n.x,r.x,o.x,a),dp(n.y,r.y,o.y,a)}function KS(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const GS={duration:.45,ease:[.4,0,.1,1]},hp=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),pp=hp("applewebkit/")&&!hp("chrome/")?Math.round:Ct;function mp(n){n.min=pp(n.min),n.max=pp(n.max)}function YS(n){mp(n.x),mp(n.y)}function Ey(n,r,o){return n==="position"||n==="preserve-aspect"&&!gS(rp(r),rp(o),.2)}function QS(n){return n!==n.root&&n.scroll?.wasRoot}const XS=Sy({attachResizeListener:(n,r)=>Vi(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ul={current:void 0},Cy=Sy({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Ul.current){const n=new XS({});n.mount(window),n.setOptions({layoutScroll:!0}),Ul.current=n}return Ul.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),nc=S.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function yp(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function ZS(...n){return r=>{let o=!1;const a=n.map(l=>{const f=yp(l,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let l=0;l<a.length;l++){const f=a[l];typeof f=="function"?f():yp(n[l],null)}}}}function qS(...n){return S.useCallback(ZS(...n),n)}class JS extends S.Component{getSnapshotBeforeUpdate(r){const o=this.props.childRef.current;if(o&&r.isPresent&&!this.props.isPresent){const a=o.offsetParent,l=Km(a)&&a.offsetWidth||0,f=this.props.sizeRef.current;f.height=o.offsetHeight||0,f.width=o.offsetWidth||0,f.top=o.offsetTop,f.left=o.offsetLeft,f.right=l-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function eE({children:n,isPresent:r,anchorX:o,root:a}){const l=S.useId(),f=S.useRef(null),c=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=S.useContext(nc),p=n.props?.ref??n?.ref,g=qS(f,p);return S.useInsertionEffect(()=>{const{width:y,height:v,top:w,left:P,right:A}=c.current;if(r||!f.current||!y||!v)return;const M=o==="left"?`left: ${P}`:`right: ${A}`;f.current.dataset.motionPopId=l;const D=document.createElement("style");h&&(D.nonce=h);const _=a??document.head;return _.appendChild(D),D.sheet&&D.sheet.insertRule(`
|
|
11
|
-
[data-motion-pop-id="${l}"] {
|
|
12
|
-
position: absolute !important;
|
|
13
|
-
width: ${y}px !important;
|
|
14
|
-
height: ${v}px !important;
|
|
15
|
-
${M}px !important;
|
|
16
|
-
top: ${w}px !important;
|
|
17
|
-
}
|
|
18
|
-
`),()=>{_.contains(D)&&_.removeChild(D)}},[r]),Q.jsx(JS,{isPresent:r,childRef:f,sizeRef:c,children:S.cloneElement(n,{ref:g})})}const tE=({children:n,initial:r,isPresent:o,onExitComplete:a,custom:l,presenceAffectsLayout:f,mode:c,anchorX:h,root:p})=>{const g=Du(nE),y=S.useId();let v=!0,w=S.useMemo(()=>(v=!1,{id:y,initial:r,isPresent:o,custom:l,onExitComplete:P=>{g.set(P,!0);for(const A of g.values())if(!A)return;a&&a()},register:P=>(g.set(P,!1),()=>g.delete(P))}),[o,g,a]);return f&&v&&(w={...w}),S.useMemo(()=>{g.forEach((P,A)=>g.set(A,!1))},[o]),S.useEffect(()=>{!o&&!g.size&&a&&a()},[o]),c==="popLayout"&&(n=Q.jsx(eE,{isPresent:o,anchorX:h,root:p,children:n})),Q.jsx(Ps.Provider,{value:w,children:n})};function nE(){return new Map}function Py(n=!0){const r=S.useContext(Ps);if(r===null)return[!0,null];const{isPresent:o,onExitComplete:a,register:l}=r,f=S.useId();S.useEffect(()=>{if(n)return l(f)},[n]);const c=S.useCallback(()=>n&&a&&a(f),[f,a,n]);return!o&&a?[!1,c]:[!0]}const ns=n=>n.key||"";function gp(n){const r=[];return S.Children.forEach(n,o=>{S.isValidElement(o)&&r.push(o)}),r}const rE=({children:n,custom:r,initial:o=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:f="sync",propagate:c=!1,anchorX:h="left",root:p})=>{const[g,y]=Py(c),v=S.useMemo(()=>gp(n),[n]),w=c&&!g?[]:v.map(ns),P=S.useRef(!0),A=S.useRef(v),M=Du(()=>new Map),D=S.useRef(new Set),[_,N]=S.useState(v),[V,H]=S.useState(v);tm(()=>{P.current=!1,A.current=v;for(let J=0;J<V.length;J++){const $=ns(V[J]);w.includes($)?(M.delete($),D.current.delete($)):M.get($)!==!0&&M.set($,!1)}},[V,w.length,w.join("-")]);const U=[];if(v!==_){let J=[...v];for(let $=0;$<V.length;$++){const ae=V[$],ce=ns(ae);w.includes(ce)||(J.splice($,0,ae),U.push(ae))}return f==="wait"&&U.length&&(J=U),H(gp(J)),N(v),null}const{forceRender:ee}=S.useContext(Ru);return Q.jsx(Q.Fragment,{children:V.map(J=>{const $=ns(J),ae=c&&!g?!1:v===V||w.includes($),ce=()=>{if(D.current.has($))return;if(D.current.add($),M.has($))M.set($,!0);else return;let ze=!0;M.forEach(Qe=>{Qe||(ze=!1)}),ze&&(ee?.(),H(A.current),c&&y?.(),a&&a())};return Q.jsx(tE,{isPresent:ae,initial:!P.current||o?void 0:!1,custom:r,presenceAffectsLayout:l,mode:f,root:p,onExitComplete:ae?void 0:ce,anchorX:h,children:J},$)})})},ky=S.createContext({strict:!1}),vp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let wp=!1;function iE(){if(wp)return;const n={};for(const r in vp)n[r]={isEnabled:o=>vp[r].some(a=>!!o[a])};ey(n),wp=!0}function Ty(){return iE(),W1()}function oE(n){const r=Ty();for(const o in n)r[o]={...r[o],...n[o]};ey(r)}const sE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xs(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||sE.has(n)}let Ry=n=>!xs(n);function aE(n){typeof n=="function"&&(Ry=r=>r.startsWith("on")?!xs(r):n(r))}try{aE(require("@emotion/is-prop-valid").default)}catch{}function lE(n,r,o){const a={};for(const l in n)l==="values"&&typeof n.values=="object"||(Ry(l)||o===!0&&xs(l)||!r&&!xs(l)||n.draggable&&l.startsWith("onDrag"))&&(a[l]=n[l]);return a}const Rs=S.createContext({});function uE(n,r){if(Ts(n)){const{initial:o,animate:a}=n;return{initial:o===!1||Ai(o)?o:void 0,animate:Ai(a)?a:void 0}}return n.inherit!==!1?r:{}}function cE(n){const{initial:r,animate:o}=uE(n,S.useContext(Rs));return S.useMemo(()=>({initial:r,animate:o}),[xp(r),xp(o)])}function xp(n){return Array.isArray(n)?n.join(" "):n}const rc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dy(n,r,o){for(const a in r)!Ye(r[a])&&!ay(a,o)&&(n[a]=r[a])}function fE({transformTemplate:n},r){return S.useMemo(()=>{const o=rc();return ec(o,r,n),Object.assign({},o.vars,o.style)},[r])}function dE(n,r){const o=n.style||{},a={};return Dy(a,o,n),Object.assign(a,fE(n,r)),a}function hE(n,r){const o={},a=dE(n,r);return n.drag&&n.dragListener!==!1&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(o.tabIndex=0),o.style=a,o}const Ly=()=>({...rc(),attrs:{}});function pE(n,r,o,a){const l=S.useMemo(()=>{const f=Ly();return ly(f,r,cy(a),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Dy(f,n.style,n),l.style={...f,...l.style}}return l}const mE=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ic(n){return typeof n!="string"||n.includes("-")?!1:!!(mE.indexOf(n)>-1||/[A-Z]/u.test(n))}function yE(n,r,o,{latestValues:a},l,f=!1,c){const p=(c??ic(n)?pE:hE)(r,a,l,n),g=lE(r,typeof n=="string",f),y=n!==S.Fragment?{...g,...p,ref:o}:{},{children:v}=r,w=S.useMemo(()=>Ye(v)?v.get():v,[v]);return S.createElement(n,{...y,children:w})}function gE({scrapeMotionValuesFromProps:n,createRenderState:r},o,a,l){return{latestValues:vE(o,a,l,n),renderState:r()}}function vE(n,r,o,a){const l={},f=a(n,{});for(const w in f)l[w]=cs(f[w]);let{initial:c,animate:h}=n;const p=Ts(n),g=Jm(n);r&&g&&!p&&n.inherit!==!1&&(c===void 0&&(c=r.initial),h===void 0&&(h=r.animate));let y=o?o.initial===!1:!1;y=y||c===!1;const v=y?h:c;if(v&&typeof v!="boolean"&&!ks(v)){const w=Array.isArray(v)?v:[v];for(let P=0;P<w.length;P++){const A=Gu(n,w[P]);if(A){const{transitionEnd:M,transition:D,..._}=A;for(const N in _){let V=_[N];if(Array.isArray(V)){const H=y?V.length-1:0;V=V[H]}V!==null&&(l[N]=V)}for(const N in M)l[N]=M[N]}}}return l}const My=n=>(r,o)=>{const a=S.useContext(Rs),l=S.useContext(Ps),f=()=>gE(n,r,a,l);return o?f():Du(f)},wE=My({scrapeMotionValuesFromProps:tc,createRenderState:rc}),xE=My({scrapeMotionValuesFromProps:fy,createRenderState:Ly}),SE=Symbol.for("motionComponentSymbol");function EE(n,r,o){const a=S.useRef(o);S.useInsertionEffect(()=>{a.current=o});const l=S.useRef(null);return S.useCallback(f=>{f&&n.onMount?.(f),r&&(f?r.mount(f):r.unmount());const c=a.current;if(typeof c=="function")if(f){const h=c(f);typeof h=="function"&&(l.current=h)}else l.current?(l.current(),l.current=null):c(f);else c&&(c.current=f)},[r])}const Ay=S.createContext({});function Si(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function CE(n,r,o,a,l,f){const{visualElement:c}=S.useContext(Rs),h=S.useContext(ky),p=S.useContext(Ps),g=S.useContext(nc).reducedMotion,y=S.useRef(null);a=a||h.renderer,!y.current&&a&&(y.current=a(n,{visualState:r,parent:c,props:o,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g,isSVG:f}));const v=y.current,w=S.useContext(Ay);v&&!v.projection&&l&&(v.type==="html"||v.type==="svg")&&PE(y.current,o,l,w);const P=S.useRef(!1);S.useInsertionEffect(()=>{v&&P.current&&v.update(o,p)});const A=o[Om],M=S.useRef(!!A&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return tm(()=>{v&&(P.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),M.current&&v.animationState&&v.animationState.animateChanges())}),S.useEffect(()=>{v&&(!M.current&&v.animationState&&v.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),M.current=!1),v.enteringChildren=void 0)}),v}function PE(n,r,o,a){const{layoutId:l,layout:f,drag:c,dragConstraints:h,layoutScroll:p,layoutRoot:g,layoutCrossfade:y}=r;n.projection=new o(n.latestValues,r["data-framer-portal-id"]?void 0:Vy(n.parent)),n.projection.setOptions({layoutId:l,layout:f,alwaysMeasureLayout:!!c||h&&Si(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,crossfade:y,layoutScroll:p,layoutRoot:g})}function Vy(n){if(n)return n.options.allowProjection!==!1?n.projection:Vy(n.parent)}function $l(n,{forwardMotionProps:r=!1,type:o}={},a,l){a&&oE(a);const f=o?o==="svg":ic(n),c=f?xE:wE;function h(g,y){let v;const w={...S.useContext(nc),...g,layoutId:kE(g)},{isStatic:P}=w,A=cE(g),M=c(g,P);if(!P&&em){TE();const D=RE(w);v=D.MeasureLayout,A.visualElement=CE(n,M,w,l,D.ProjectionNode,f)}return Q.jsxs(Rs.Provider,{value:A,children:[v&&A.visualElement?Q.jsx(v,{visualElement:A.visualElement,...w}):null,yE(n,g,EE(M,A.visualElement,y),M,P,r,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const p=S.forwardRef(h);return p[SE]=n,p}function kE({layoutId:n}){const r=S.useContext(Ru).id;return r&&n!==void 0?r+"-"+n:n}function TE(n,r){S.useContext(ky).strict}function RE(n){const r=Ty(),{drag:o,layout:a}=r;if(!o&&!a)return{};const l={...o,...a};return{MeasureLayout:o?.isEnabled(n)||a?.isEnabled(n)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function DE(n,r){if(typeof Proxy>"u")return $l;const o=new Map,a=(f,c)=>$l(f,c,n,r),l=(f,c)=>a(f,c);return new Proxy(l,{get:(f,c)=>c==="create"?a:(o.has(c)||o.set(c,$l(c,void 0,n,r)),o.get(c))})}const LE=(n,r)=>r.isSVG??ic(n)?new sS(r):new eS(r,{allowProjection:n!==S.Fragment});class ME extends Mn{constructor(r){super(r),r.animationState||(r.animationState=fS(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();ks(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:o}=this.node.prevProps||{};r!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let AE=0;class VE extends Mn{constructor(){super(...arguments),this.id=AE++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===a)return;const l=this.node.animationState.setActive("exit",!r);o&&!r&&l.then(()=>{o(this.id)})}mount(){const{register:r,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const NE={animation:{Feature:ME},exit:{Feature:VE}};function Bi(n){return{point:{x:n.pageX,y:n.pageY}}}const _E=n=>r=>Zu(r)&&n(r,Bi(r));function ki(n,r,o,a){return Vi(n,r,_E(o),a)}const Ny=({current:n})=>n?n.ownerDocument.defaultView:null,Sp=(n,r)=>Math.abs(n-r);function FE(n,r){const o=Sp(n.x,r.x),a=Sp(n.y,r.y);return Math.sqrt(o**2+a**2)}const Ep=new Set(["auto","scroll"]);class _y{constructor(r,o,{transformPagePoint:a,contextWindow:l=window,dragSnapToOrigin:f=!1,distanceThreshold:c=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=P=>{this.handleScroll(P.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Hl(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,M=FE(P.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!M)return;const{point:D}=P,{timestamp:_}=We;this.history.push({...D,timestamp:_});const{onStart:N,onMove:V}=this.handlers;A||(N&&N(this.lastMoveEvent,P),this.startEvent=this.lastMoveEvent),V&&V(this.lastMoveEvent,P)},this.handlePointerMove=(P,A)=>{this.lastMoveEvent=P,this.lastMoveEventInfo=Wl(A,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(P,A)=>{this.end();const{onEnd:M,onSessionEnd:D,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Hl(P.type==="pointercancel"?this.lastMoveEventInfo:Wl(A,this.transformPagePoint),this.history);this.startEvent&&M&&M(P,N),D&&D(P,N)},!Zu(r))return;this.dragSnapToOrigin=f,this.handlers=o,this.transformPagePoint=a,this.distanceThreshold=c,this.contextWindow=l||window;const p=Bi(r),g=Wl(p,this.transformPagePoint),{point:y}=g,{timestamp:v}=We;this.history=[{...y,timestamp:v}];const{onSessionStart:w}=o;w&&w(r,Hl(g,this.history)),this.removeListeners=Ii(ki(this.contextWindow,"pointermove",this.handlePointerMove),ki(this.contextWindow,"pointerup",this.handlePointerUp),ki(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(r){let o=r.parentElement;for(;o;){const a=getComputedStyle(o);(Ep.has(a.overflowX)||Ep.has(a.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(r){const o=this.scrollPositions.get(r);if(!o)return;const a=r===window,l=a?{x:window.scrollX,y:window.scrollY}:{x:r.scrollLeft,y:r.scrollTop},f={x:l.x-o.x,y:l.y-o.y};f.x===0&&f.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(r,l),xe.update(this.updatePoint,!0))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Dn(this.updatePoint)}}function Wl(n,r){return r?{point:r(n.point)}:n}function Cp(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Hl({point:n},r){return{point:n,delta:Cp(n,Fy(r)),offset:Cp(n,IE(r)),velocity:jE(r,.1)}}function IE(n){return n[0]}function Fy(n){return n[n.length-1]}function jE(n,r){if(n.length<2)return{x:0,y:0};let o=n.length-1,a=null;const l=Fy(n);for(;o>=0&&(a=n[o],!(l.timestamp-a.timestamp>Jt(r)));)o--;if(!a)return{x:0,y:0};const f=Et(l.timestamp-a.timestamp);if(f===0)return{x:0,y:0};const c={x:(l.x-a.x)/f,y:(l.y-a.y)/f};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function OE(n,{min:r,max:o},a){return r!==void 0&&n<r?n=a?ke(r,n,a.min):Math.max(n,r):o!==void 0&&n>o&&(n=a?ke(o,n,a.max):Math.min(n,o)),n}function Pp(n,r,o){return{min:r!==void 0?n.min+r:void 0,max:o!==void 0?n.max+o-(n.max-n.min):void 0}}function BE(n,{top:r,left:o,bottom:a,right:l}){return{x:Pp(n.x,o,l),y:Pp(n.y,r,a)}}function kp(n,r){let o=r.min-n.min,a=r.max-n.max;return r.max-r.min<n.max-n.min&&([o,a]=[a,o]),{min:o,max:a}}function zE(n,r){return{x:kp(n.x,r.x),y:kp(n.y,r.y)}}function UE(n,r){let o=.5;const a=tt(n),l=tt(r);return l>a?o=Di(r.min,r.max-a,n.min):a>l&&(o=Di(n.min,n.max-l,r.min)),$t(0,1,o)}function $E(n,r){const o={};return r.min!==void 0&&(o.min=r.min-n.min),r.max!==void 0&&(o.max=r.max-n.min),o}const mu=.35;function WE(n=mu){return n===!1?n=0:n===!0&&(n=mu),{x:Tp(n,"left","right"),y:Tp(n,"top","bottom")}}function Tp(n,r,o){return{min:Rp(n,r),max:Rp(n,o)}}function Rp(n,r){return typeof n=="number"?n:n[r]||0}const HE=new WeakMap;class bE{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:o=!1,distanceThreshold:a}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const f=v=>{o?(this.stopAnimation(),this.snapToCursor(Bi(v).point)):this.pauseAnimation()},c=(v,w)=>{this.stopAnimation();const{drag:P,dragPropagation:A,onDragStart:M}=this.getProps();if(P&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=A1(P),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(_=>{let N=this.getAxisMotionValue(_).get()||0;if(Ut.test(N)){const{projection:V}=this.visualElement;if(V&&V.layout){const H=V.layout.layoutBox[_];H&&(N=tt(H)*(parseFloat(N)/100))}}this.originPoint[_]=N}),M&&xe.postRender(()=>M(v,w)),lu(this.visualElement,"transform");const{animationState:D}=this.visualElement;D&&D.setActive("whileDrag",!0)},h=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:P,dragDirectionLock:A,onDirectionLock:M,onDrag:D}=this.getProps();if(!P&&!this.openDragLock)return;const{offset:_}=w;if(A&&this.currentDirection===null){this.currentDirection=KE(_),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",w.point,_),this.updateAxis("y",w.point,_),this.visualElement.render(),D&&D(v,w)},p=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>St(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new _y(r,{onSessionStart:f,onStart:c,onMove:h,onSessionEnd:p,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:a,contextWindow:Ny(this.visualElement),element:this.visualElement.current})}stop(r,o){const a=r||this.latestPointerEvent,l=o||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!l||!a)return;const{velocity:c}=l;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&xe.postRender(()=>h(a,l))}cancel(){this.isDragging=!1;const{projection:r,animationState:o}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(r,o,a){const{drag:l}=this.getProps();if(!a||!rs(r,l,this.currentDirection))return;const f=this.getAxisMotionValue(r);let c=this.originPoint[r]+a[r];this.constraints&&this.constraints[r]&&(c=OE(c,this.constraints[r],this.elastic[r])),f.set(c)}resolveConstraints(){const{dragConstraints:r,dragElastic:o}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;r&&Si(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=BE(a.layoutBox,r):this.constraints=!1,this.elastic=WE(o),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&St(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=$E(a.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:o}=this.getProps();if(!r||!Si(r))return!1;const a=r.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const f=Y1(a,l.root,this.visualElement.getTransformPagePoint());let c=zE(l.layout.layoutBox,f);if(o){const h=o(b1(c));this.hasMutatedConstraints=!!h,h&&(c=ny(h))}return c}startAnimation(r){const{drag:o,dragMomentum:a,dragElastic:l,dragTransition:f,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},g=St(y=>{if(!rs(y,o,this.currentDirection))return;let v=p&&p[y]||{};c&&(v={min:0,max:0});const w=l?200:1e6,P=l?40:1e7,A={type:"inertia",velocity:a?r[y]:0,bounceStiffness:w,bounceDamping:P,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,A)});return Promise.all(g).then(h)}startAxisValueAnimation(r,o){const a=this.getAxisMotionValue(r);return lu(this.visualElement,r),a.start(Ku(r,a,0,o,this.visualElement,!1))}stopAnimation(){St(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){St(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const o=`_drag${r.toUpperCase()}`,a=this.visualElement.getProps(),l=a[o];return l||this.visualElement.getValue(r,(a.initial?a.initial[r]:void 0)||0)}snapToCursor(r){St(o=>{const{drag:a}=this.getProps();if(!rs(o,a,this.currentDirection))return;const{projection:l}=this.visualElement,f=this.getAxisMotionValue(o);if(l&&l.layout){const{min:c,max:h}=l.layout.layoutBox[o],p=f.get()||0;f.set(r[o]-ke(c,h,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!Si(o)||!a||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};St(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const p=h.get();l[c]=UE({min:p,max:p},this.constraints[c])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),St(c=>{if(!rs(c,r,null))return;const h=this.getAxisMotionValue(c),{min:p,max:g}=this.constraints[c];h.set(ke(p,g,l[c]))})}addListeners(){if(!this.visualElement.current)return;HE.set(this.visualElement,this);const r=this.visualElement.current,o=ki(r,"pointerdown",p=>{const{drag:g,dragListener:y=!0}=this.getProps();g&&y&&!Xm(p.target)&&this.start(p)}),a=()=>{const{dragConstraints:p}=this.getProps();Si(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,f=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),xe.read(a);const c=Vi(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(St(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=p[y].translate,v.set(v.get()+p[y].translate))}),this.visualElement.render())}));return()=>{c(),o(),f(),h&&h()}}getProps(){const r=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:l=!1,dragConstraints:f=!1,dragElastic:c=mu,dragMomentum:h=!0}=r;return{...r,drag:o,dragDirectionLock:a,dragPropagation:l,dragConstraints:f,dragElastic:c,dragMomentum:h}}}function rs(n,r,o){return(r===!0||r===n)&&(o===null||o===n)}function KE(n,r=10){let o=null;return Math.abs(n.y)>r?o="y":Math.abs(n.x)>r&&(o="x"),o}class GE extends Mn{constructor(r){super(r),this.removeGroupControls=Ct,this.removeListeners=Ct,this.controls=new bE(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ct}update(){const{dragControls:r}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};r!==o&&(this.removeGroupControls(),r&&(this.removeGroupControls=r.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Dp=n=>(r,o)=>{n&&xe.postRender(()=>n(r,o))};class YE extends Mn{constructor(){super(...arguments),this.removePointerDownListener=Ct}onPointerDown(r){this.session=new _y(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ny(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:o,onPan:a,onPanEnd:l}=this.node.getProps();return{onSessionStart:Dp(r),onStart:Dp(o),onMove:a,onEnd:(f,c)=>{delete this.session,l&&xe.postRender(()=>l(f,c))}}}mount(){this.removePointerDownListener=ki(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let bl=!1;class QE extends S.Component{componentDidMount(){const{visualElement:r,layoutGroup:o,switchLayoutGroup:a,layoutId:l}=this.props,{projection:f}=r;f&&(o.group&&o.group.add(f),a&&a.register&&l&&a.register(f),bl&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),fs.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:o,visualElement:a,drag:l,isPresent:f}=this.props,{projection:c}=a;return c&&(c.isPresent=f,bl=!0,l||r.layoutDependency!==o||o===void 0||r.isPresent!==f?c.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?c.promote():c.relegate()||xe.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),Xu.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:l}=r;bl=!0,l&&(l.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(l),a&&a.deregister&&a.deregister(l))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function Iy(n){const[r,o]=Py(),a=S.useContext(Ru);return Q.jsx(QE,{...n,layoutGroup:a,switchLayoutGroup:S.useContext(Ay),isPresent:r,safeToRemove:o})}const XE={pan:{Feature:YE},drag:{Feature:GE,ProjectionNode:Cy,MeasureLayout:Iy}};function Lp(n,r,o){const{props:a}=n;n.animationState&&a.whileHover&&n.animationState.setActive("whileHover",o==="Start");const l="onHover"+o,f=a[l];f&&xe.postRender(()=>f(r,Bi(r)))}class ZE extends Mn{mount(){const{current:r}=this.node;r&&(this.unmount=V1(r,(o,a)=>(Lp(this.node,a,"Start"),l=>Lp(this.node,l,"End"))))}unmount(){}}class qE extends Mn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ii(Vi(this.node.current,"focus",()=>this.onFocus()),Vi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mp(n,r,o){const{props:a}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&a.whileTap&&n.animationState.setActive("whileTap",o==="Start");const l="onTap"+(o==="End"?"":o),f=a[l];f&&xe.postRender(()=>f(r,Bi(r)))}class JE extends Mn{mount(){const{current:r}=this.node;r&&(this.unmount=F1(r,(o,a)=>(Mp(this.node,a,"Start"),(l,{success:f})=>Mp(this.node,l,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yu=new WeakMap,Kl=new WeakMap,eC=n=>{const r=yu.get(n.target);r&&r(n)},tC=n=>{n.forEach(eC)};function nC({root:n,...r}){const o=n||document;Kl.has(o)||Kl.set(o,{});const a=Kl.get(o),l=JSON.stringify(r);return a[l]||(a[l]=new IntersectionObserver(tC,{root:n,...r})),a[l]}function rC(n,r,o){const a=nC(r);return yu.set(n,o),a.observe(n),()=>{yu.delete(n),a.unobserve(n)}}const iC={some:0,all:1};class oC extends Mn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:o,margin:a,amount:l="some",once:f}=r,c={root:o?o.current:void 0,rootMargin:a,threshold:typeof l=="number"?l:iC[l]},h=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),w=g?y:v;w&&w(p)};return rC(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:o}=this.node;["amount","margin","root"].some(sC(r,o))&&this.startObserver()}unmount(){}}function sC({viewport:n={}},{viewport:r={}}={}){return o=>n[o]!==r[o]}const aC={inView:{Feature:oC},tap:{Feature:JE},focus:{Feature:qE},hover:{Feature:ZE}},lC={layout:{ProjectionNode:Cy,MeasureLayout:Iy}},uC={...NE,...aC,...XE,...lC},gu=DE(uC,LE);var Ap={},cC="@vercel/analytics",fC="1.6.1",dC=()=>{window.va||(window.va=function(...r){(window.vaq=window.vaq||[]).push(r)})};function jy(){return typeof window<"u"}function Oy(){try{const n="production"}catch{}return"production"}function hC(n="auto"){if(n==="auto"){window.vam=Oy();return}window.vam=n}function pC(){return(jy()?window.vam:Oy())||"production"}function vu(){return pC()==="development"}function mC(n){return n.scriptSrc?n.scriptSrc:vu()?"https://va.vercel-scripts.com/v1/script.debug.js":n.basePath?`${n.basePath}/insights/script.js`:"/_vercel/insights/script.js"}function yC(n={debug:!0}){var r;if(!jy())return;hC(n.mode),dC(),n.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",n.beforeSend));const o=mC(n);if(document.head.querySelector(`script[src*="${o}"]`))return;const a=document.createElement("script");a.src=o,a.defer=!0,a.dataset.sdkn=cC+(n.framework?`/${n.framework}`:""),a.dataset.sdkv=fC,n.disableAutoTrack&&(a.dataset.disableAutoTrack="1"),n.endpoint?a.dataset.endpoint=n.endpoint:n.basePath&&(a.dataset.endpoint=`${n.basePath}/insights`),n.dsn&&(a.dataset.dsn=n.dsn),a.onerror=()=>{const l=vu()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${o}. ${l}`)},vu()&&n.debug===!1&&(a.dataset.debug="false"),document.head.appendChild(a)}function gC({route:n,path:r}){var o;(o=window.va)==null||o.call(window,"pageview",{route:n,path:r})}function vC(){if(!(typeof process>"u"||typeof Ap>"u"))return Ap.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function wC(n){return S.useEffect(()=>{var r;n.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",n.beforeSend))},[n.beforeSend]),S.useEffect(()=>{yC({framework:n.framework||"react",basePath:n.basePath??vC(),...n.route!==void 0&&{disableAutoTrack:!0},...n})},[]),S.useEffect(()=>{n.route&&n.path&&gC({route:n.route,path:n.path})},[n.route,n.path]),null}let xC={data:""},SC=n=>{if(typeof window=="object"){let r=(n?n.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return r.nonce=window.__nonce__,r.parentNode||(n||document.head).appendChild(r),r.firstChild}return n||xC},EC=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,CC=/\/\*[^]*?\*\/| +/g,Vp=/\n+/g,Tn=(n,r)=>{let o="",a="",l="";for(let f in n){let c=n[f];f[0]=="@"?f[1]=="i"?o=f+" "+c+";":a+=f[1]=="f"?Tn(c,f):f+"{"+Tn(c,f[1]=="k"?"":r)+"}":typeof c=="object"?a+=Tn(c,r?r.replace(/([^,])+/g,h=>f.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,h):h?h+" "+p:p)):f):c!=null&&(f=/^--/.test(f)?f:f.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=Tn.p?Tn.p(f,c):f+":"+c+";")}return o+(r&&l?r+"{"+l+"}":l)+a},Zt={},By=n=>{if(typeof n=="object"){let r="";for(let o in n)r+=o+By(n[o]);return r}return n},PC=(n,r,o,a,l)=>{let f=By(n),c=Zt[f]||(Zt[f]=(p=>{let g=0,y=11;for(;g<p.length;)y=101*y+p.charCodeAt(g++)>>>0;return"go"+y})(f));if(!Zt[c]){let p=f!==n?n:(g=>{let y,v,w=[{}];for(;y=EC.exec(g.replace(CC,""));)y[4]?w.shift():y[3]?(v=y[3].replace(Vp," ").trim(),w.unshift(w[0][v]=w[0][v]||{})):w[0][y[1]]=y[2].replace(Vp," ").trim();return w[0]})(n);Zt[c]=Tn(l?{["@keyframes "+c]:p}:p,o?"":"."+c)}let h=o&&Zt.g?Zt.g:null;return o&&(Zt.g=Zt[c]),((p,g,y,v)=>{v?g.data=g.data.replace(v,p):g.data.indexOf(p)===-1&&(g.data=y?p+g.data:g.data+p)})(Zt[c],r,a,h),c},kC=(n,r,o)=>n.reduce((a,l,f)=>{let c=r[f];if(c&&c.call){let h=c(o),p=h&&h.props&&h.props.className||/^go/.test(h)&&h;c=p?"."+p:h&&typeof h=="object"?h.props?"":Tn(h,""):h===!1?"":h}return a+l+(c??"")},"");function Ds(n){let r=this||{},o=n.call?n(r.p):n;return PC(o.unshift?o.raw?kC(o,[].slice.call(arguments,1),r.p):o.reduce((a,l)=>Object.assign(a,l&&l.call?l(r.p):l),{}):o,SC(r.target),r.g,r.o,r.k)}let zy,wu,xu;Ds.bind({g:1});let nn=Ds.bind({k:1});function TC(n,r,o,a){Tn.p=r,zy=n,wu=o,xu=a}function An(n,r){let o=this||{};return function(){let a=arguments;function l(f,c){let h=Object.assign({},f),p=h.className||l.className;o.p=Object.assign({theme:wu&&wu()},h),o.o=/ *go\d+/.test(p),h.className=Ds.apply(o,a)+(p?" "+p:"");let g=n;return n[0]&&(g=h.as||n,delete h.as),xu&&g[0]&&xu(h),zy(g,h)}return l}}var RC=n=>typeof n=="function",Ss=(n,r)=>RC(n)?n(r):n,DC=(()=>{let n=0;return()=>(++n).toString()})(),Uy=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let r=matchMedia("(prefers-reduced-motion: reduce)");n=!r||r.matches}return n}})(),LC=20,oc="default",$y=(n,r)=>{let{toastLimit:o}=n.settings;switch(r.type){case 0:return{...n,toasts:[r.toast,...n.toasts].slice(0,o)};case 1:return{...n,toasts:n.toasts.map(c=>c.id===r.toast.id?{...c,...r.toast}:c)};case 2:let{toast:a}=r;return $y(n,{type:n.toasts.find(c=>c.id===a.id)?1:0,toast:a});case 3:let{toastId:l}=r;return{...n,toasts:n.toasts.map(c=>c.id===l||l===void 0?{...c,dismissed:!0,visible:!1}:c)};case 4:return r.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(c=>c.id!==r.toastId)};case 5:return{...n,pausedAt:r.time};case 6:let f=r.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+f}))}}},ds=[],Wy={toasts:[],pausedAt:void 0,settings:{toastLimit:LC}},zt={},Hy=(n,r=oc)=>{zt[r]=$y(zt[r]||Wy,n),ds.forEach(([o,a])=>{o===r&&a(zt[r])})},by=n=>Object.keys(zt).forEach(r=>Hy(n,r)),MC=n=>Object.keys(zt).find(r=>zt[r].toasts.some(o=>o.id===n)),Ls=(n=oc)=>r=>{Hy(r,n)},AC={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},VC=(n={},r=oc)=>{let[o,a]=S.useState(zt[r]||Wy),l=S.useRef(zt[r]);S.useEffect(()=>(l.current!==zt[r]&&a(zt[r]),ds.push([r,a]),()=>{let c=ds.findIndex(([h])=>h===r);c>-1&&ds.splice(c,1)}),[r]);let f=o.toasts.map(c=>{var h,p,g;return{...n,...n[c.type],...c,removeDelay:c.removeDelay||((h=n[c.type])==null?void 0:h.removeDelay)||n?.removeDelay,duration:c.duration||((p=n[c.type])==null?void 0:p.duration)||n?.duration||AC[c.type],style:{...n.style,...(g=n[c.type])==null?void 0:g.style,...c.style}}});return{...o,toasts:f}},NC=(n,r="blank",o)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:r,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...o,id:o?.id||DC()}),zi=n=>(r,o)=>{let a=NC(r,n,o);return Ls(a.toasterId||MC(a.id))({type:2,toast:a}),a.id},Be=(n,r)=>zi("blank")(n,r);Be.error=zi("error");Be.success=zi("success");Be.loading=zi("loading");Be.custom=zi("custom");Be.dismiss=(n,r)=>{let o={type:3,toastId:n};r?Ls(r)(o):by(o)};Be.dismissAll=n=>Be.dismiss(void 0,n);Be.remove=(n,r)=>{let o={type:4,toastId:n};r?Ls(r)(o):by(o)};Be.removeAll=n=>Be.remove(void 0,n);Be.promise=(n,r,o)=>{let a=Be.loading(r.loading,{...o,...o?.loading});return typeof n=="function"&&(n=n()),n.then(l=>{let f=r.success?Ss(r.success,l):void 0;return f?Be.success(f,{id:a,...o,...o?.success}):Be.dismiss(a),l}).catch(l=>{let f=r.error?Ss(r.error,l):void 0;f?Be.error(f,{id:a,...o,...o?.error}):Be.dismiss(a)}),n};var _C=1e3,FC=(n,r="default")=>{let{toasts:o,pausedAt:a}=VC(n,r),l=S.useRef(new Map).current,f=S.useCallback((v,w=_C)=>{if(l.has(v))return;let P=setTimeout(()=>{l.delete(v),c({type:4,toastId:v})},w);l.set(v,P)},[]);S.useEffect(()=>{if(a)return;let v=Date.now(),w=o.map(P=>{if(P.duration===1/0)return;let A=(P.duration||0)+P.pauseDuration-(v-P.createdAt);if(A<0){P.visible&&Be.dismiss(P.id);return}return setTimeout(()=>Be.dismiss(P.id,r),A)});return()=>{w.forEach(P=>P&&clearTimeout(P))}},[o,a,r]);let c=S.useCallback(Ls(r),[r]),h=S.useCallback(()=>{c({type:5,time:Date.now()})},[c]),p=S.useCallback((v,w)=>{c({type:1,toast:{id:v,height:w}})},[c]),g=S.useCallback(()=>{a&&c({type:6,time:Date.now()})},[a,c]),y=S.useCallback((v,w)=>{let{reverseOrder:P=!1,gutter:A=8,defaultPosition:M}=w||{},D=o.filter(V=>(V.position||M)===(v.position||M)&&V.height),_=D.findIndex(V=>V.id===v.id),N=D.filter((V,H)=>H<_&&V.visible).length;return D.filter(V=>V.visible).slice(...P?[N+1]:[0,N]).reduce((V,H)=>V+(H.height||0)+A,0)},[o]);return S.useEffect(()=>{o.forEach(v=>{if(v.dismissed)f(v.id,v.removeDelay);else{let w=l.get(v.id);w&&(clearTimeout(w),l.delete(v.id))}})},[o,f]),{toasts:o,handlers:{updateHeight:p,startPause:h,endPause:g,calculateOffset:y}}},IC=nn`
|
|
19
|
-
from {
|
|
20
|
-
transform: scale(0) rotate(45deg);
|
|
21
|
-
opacity: 0;
|
|
22
|
-
}
|
|
23
|
-
to {
|
|
24
|
-
transform: scale(1) rotate(45deg);
|
|
25
|
-
opacity: 1;
|
|
26
|
-
}`,jC=nn`
|
|
27
|
-
from {
|
|
28
|
-
transform: scale(0);
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
to {
|
|
32
|
-
transform: scale(1);
|
|
33
|
-
opacity: 1;
|
|
34
|
-
}`,OC=nn`
|
|
35
|
-
from {
|
|
36
|
-
transform: scale(0) rotate(90deg);
|
|
37
|
-
opacity: 0;
|
|
38
|
-
}
|
|
39
|
-
to {
|
|
40
|
-
transform: scale(1) rotate(90deg);
|
|
41
|
-
opacity: 1;
|
|
42
|
-
}`,BC=An("div")`
|
|
43
|
-
width: 20px;
|
|
44
|
-
opacity: 0;
|
|
45
|
-
height: 20px;
|
|
46
|
-
border-radius: 10px;
|
|
47
|
-
background: ${n=>n.primary||"#ff4b4b"};
|
|
48
|
-
position: relative;
|
|
49
|
-
transform: rotate(45deg);
|
|
50
|
-
|
|
51
|
-
animation: ${IC} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
52
|
-
forwards;
|
|
53
|
-
animation-delay: 100ms;
|
|
54
|
-
|
|
55
|
-
&:after,
|
|
56
|
-
&:before {
|
|
57
|
-
content: '';
|
|
58
|
-
animation: ${jC} 0.15s ease-out forwards;
|
|
59
|
-
animation-delay: 150ms;
|
|
60
|
-
position: absolute;
|
|
61
|
-
border-radius: 3px;
|
|
62
|
-
opacity: 0;
|
|
63
|
-
background: ${n=>n.secondary||"#fff"};
|
|
64
|
-
bottom: 9px;
|
|
65
|
-
left: 4px;
|
|
66
|
-
height: 2px;
|
|
67
|
-
width: 12px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:before {
|
|
71
|
-
animation: ${OC} 0.15s ease-out forwards;
|
|
72
|
-
animation-delay: 180ms;
|
|
73
|
-
transform: rotate(90deg);
|
|
74
|
-
}
|
|
75
|
-
`,zC=nn`
|
|
76
|
-
from {
|
|
77
|
-
transform: rotate(0deg);
|
|
78
|
-
}
|
|
79
|
-
to {
|
|
80
|
-
transform: rotate(360deg);
|
|
81
|
-
}
|
|
82
|
-
`,UC=An("div")`
|
|
83
|
-
width: 12px;
|
|
84
|
-
height: 12px;
|
|
85
|
-
box-sizing: border-box;
|
|
86
|
-
border: 2px solid;
|
|
87
|
-
border-radius: 100%;
|
|
88
|
-
border-color: ${n=>n.secondary||"#e0e0e0"};
|
|
89
|
-
border-right-color: ${n=>n.primary||"#616161"};
|
|
90
|
-
animation: ${zC} 1s linear infinite;
|
|
91
|
-
`,$C=nn`
|
|
92
|
-
from {
|
|
93
|
-
transform: scale(0) rotate(45deg);
|
|
94
|
-
opacity: 0;
|
|
95
|
-
}
|
|
96
|
-
to {
|
|
97
|
-
transform: scale(1) rotate(45deg);
|
|
98
|
-
opacity: 1;
|
|
99
|
-
}`,WC=nn`
|
|
100
|
-
0% {
|
|
101
|
-
height: 0;
|
|
102
|
-
width: 0;
|
|
103
|
-
opacity: 0;
|
|
104
|
-
}
|
|
105
|
-
40% {
|
|
106
|
-
height: 0;
|
|
107
|
-
width: 6px;
|
|
108
|
-
opacity: 1;
|
|
109
|
-
}
|
|
110
|
-
100% {
|
|
111
|
-
opacity: 1;
|
|
112
|
-
height: 10px;
|
|
113
|
-
}`,HC=An("div")`
|
|
114
|
-
width: 20px;
|
|
115
|
-
opacity: 0;
|
|
116
|
-
height: 20px;
|
|
117
|
-
border-radius: 10px;
|
|
118
|
-
background: ${n=>n.primary||"#61d345"};
|
|
119
|
-
position: relative;
|
|
120
|
-
transform: rotate(45deg);
|
|
121
|
-
|
|
122
|
-
animation: ${$C} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
123
|
-
forwards;
|
|
124
|
-
animation-delay: 100ms;
|
|
125
|
-
&:after {
|
|
126
|
-
content: '';
|
|
127
|
-
box-sizing: border-box;
|
|
128
|
-
animation: ${WC} 0.2s ease-out forwards;
|
|
129
|
-
opacity: 0;
|
|
130
|
-
animation-delay: 200ms;
|
|
131
|
-
position: absolute;
|
|
132
|
-
border-right: 2px solid;
|
|
133
|
-
border-bottom: 2px solid;
|
|
134
|
-
border-color: ${n=>n.secondary||"#fff"};
|
|
135
|
-
bottom: 6px;
|
|
136
|
-
left: 6px;
|
|
137
|
-
height: 10px;
|
|
138
|
-
width: 6px;
|
|
139
|
-
}
|
|
140
|
-
`,bC=An("div")`
|
|
141
|
-
position: absolute;
|
|
142
|
-
`,KC=An("div")`
|
|
143
|
-
position: relative;
|
|
144
|
-
display: flex;
|
|
145
|
-
justify-content: center;
|
|
146
|
-
align-items: center;
|
|
147
|
-
min-width: 20px;
|
|
148
|
-
min-height: 20px;
|
|
149
|
-
`,GC=nn`
|
|
150
|
-
from {
|
|
151
|
-
transform: scale(0.6);
|
|
152
|
-
opacity: 0.4;
|
|
153
|
-
}
|
|
154
|
-
to {
|
|
155
|
-
transform: scale(1);
|
|
156
|
-
opacity: 1;
|
|
157
|
-
}`,YC=An("div")`
|
|
158
|
-
position: relative;
|
|
159
|
-
transform: scale(0.6);
|
|
160
|
-
opacity: 0.4;
|
|
161
|
-
min-width: 20px;
|
|
162
|
-
animation: ${GC} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
163
|
-
forwards;
|
|
164
|
-
`,QC=({toast:n})=>{let{icon:r,type:o,iconTheme:a}=n;return r!==void 0?typeof r=="string"?S.createElement(YC,null,r):r:o==="blank"?null:S.createElement(KC,null,S.createElement(UC,{...a}),o!=="loading"&&S.createElement(bC,null,o==="error"?S.createElement(BC,{...a}):S.createElement(HC,{...a})))},XC=n=>`
|
|
165
|
-
0% {transform: translate3d(0,${n*-200}%,0) scale(.6); opacity:.5;}
|
|
166
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
167
|
-
`,ZC=n=>`
|
|
168
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
169
|
-
100% {transform: translate3d(0,${n*-150}%,-1px) scale(.6); opacity:0;}
|
|
170
|
-
`,qC="0%{opacity:0;} 100%{opacity:1;}",JC="0%{opacity:1;} 100%{opacity:0;}",eP=An("div")`
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
background: #fff;
|
|
174
|
-
color: #363636;
|
|
175
|
-
line-height: 1.3;
|
|
176
|
-
will-change: transform;
|
|
177
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
178
|
-
max-width: 350px;
|
|
179
|
-
pointer-events: auto;
|
|
180
|
-
padding: 8px 10px;
|
|
181
|
-
border-radius: 8px;
|
|
182
|
-
`,tP=An("div")`
|
|
183
|
-
display: flex;
|
|
184
|
-
justify-content: center;
|
|
185
|
-
margin: 4px 10px;
|
|
186
|
-
color: inherit;
|
|
187
|
-
flex: 1 1 auto;
|
|
188
|
-
white-space: pre-line;
|
|
189
|
-
`,nP=(n,r)=>{let o=n.includes("top")?1:-1,[a,l]=Uy()?[qC,JC]:[XC(o),ZC(o)];return{animation:r?`${nn(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${nn(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},rP=S.memo(({toast:n,position:r,style:o,children:a})=>{let l=n.height?nP(n.position||r||"top-center",n.visible):{opacity:0},f=S.createElement(QC,{toast:n}),c=S.createElement(tP,{...n.ariaProps},Ss(n.message,n));return S.createElement(eP,{className:n.className,style:{...l,...o,...n.style}},typeof a=="function"?a({icon:f,message:c}):S.createElement(S.Fragment,null,f,c))});TC(S.createElement);var iP=({id:n,className:r,style:o,onHeightUpdate:a,children:l})=>{let f=S.useCallback(c=>{if(c){let h=()=>{let p=c.getBoundingClientRect().height;a(n,p)};h(),new MutationObserver(h).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[n,a]);return S.createElement("div",{ref:f,className:r,style:o},l)},oP=(n,r)=>{let o=n.includes("top"),a=o?{top:0}:{bottom:0},l=n.includes("center")?{justifyContent:"center"}:n.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Uy()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${r*(o?1:-1)}px)`,...a,...l}},sP=Ds`
|
|
190
|
-
z-index: 9999;
|
|
191
|
-
> * {
|
|
192
|
-
pointer-events: auto;
|
|
193
|
-
}
|
|
194
|
-
`,is=16,aP=({reverseOrder:n,position:r="top-center",toastOptions:o,gutter:a,children:l,toasterId:f,containerStyle:c,containerClassName:h})=>{let{toasts:p,handlers:g}=FC(o,f);return S.createElement("div",{"data-rht-toaster":f||"",style:{position:"fixed",zIndex:9999,top:is,left:is,right:is,bottom:is,pointerEvents:"none",...c},className:h,onMouseEnter:g.startPause,onMouseLeave:g.endPause},p.map(y=>{let v=y.position||r,w=g.calculateOffset(y,{reverseOrder:n,gutter:a,defaultPosition:r}),P=oP(v,w);return S.createElement(iP,{id:y.id,key:y.id,onHeightUpdate:g.updateHeight,className:y.visible?sP:"",style:P},y.type==="custom"?Ss(y.message,y):l?l(y):S.createElement(rP,{toast:y,position:v}))}))};const lP=[{path:"/dashboard",label:"Dashboard",icon:"📊"},{path:"/about",label:"About",icon:"📖"}];function uP(){const n=on();return Q.jsx("nav",{className:"fixed top-6 left-1/2 -translate-x-1/2 z-50 w-[95%] max-w-7xl",children:Q.jsxs("div",{className:"glass rounded-2xl px-6 py-4 border border-app-border shadow-floating flex items-center justify-between",children:[Q.jsx(Ri,{to:"/",className:"flex items-center group",children:Q.jsxs("span",{className:"font-serif font-bold text-2xl tracking-tighter text-text-main group-hover:text-accent-indigo transition-colors duration-300",children:["Your",Q.jsx("span",{className:"italic",children:"Brand"})]})}),Q.jsx("div",{className:"flex items-center gap-2",children:lP.map(r=>{const o=n.pathname===r.path;return Q.jsxs(Ri,{to:r.path,className:`px-4 py-2 rounded-xl text-sm font-medium transition-all duration-200 ${o?"bg-accent-indigo text-white shadow-premium":"text-text-dim hover:text-accent-indigo hover:bg-app-hover"}`,children:[r.icon," ",r.label]},r.path)})})]})})}function cP(){const n=on();return Q.jsx(rE,{mode:"wait",children:Q.jsxs(Y0,{location:n,children:[Q.jsx(os,{path:"/",element:Q.jsx(fP,{})}),Q.jsx(os,{path:"/dashboard",element:Q.jsx(Np,{children:Q.jsx(dP,{})})}),Q.jsx(os,{path:"/about",element:Q.jsx(Np,{children:Q.jsx(hP,{})})})]},n.pathname)})}function Np({children:n}){return Q.jsx(gu.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},exit:{opacity:0,y:-15},transition:{duration:.4,ease:[.16,1,.3,1]},className:"pt-44 pb-24 px-6 min-h-screen",children:Q.jsx("div",{className:"max-w-7xl mx-auto",children:n})})}function fP(){return Q.jsx("div",{className:"pt-32 pb-24 px-6",children:Q.jsxs("div",{className:"max-w-6xl mx-auto",children:[Q.jsxs(gu.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-20",children:[Q.jsxs("h1",{className:"font-serif font-bold text-6xl md:text-7xl tracking-tighter text-text-main mb-6",children:["Welcome to Your",Q.jsx("br",{}),Q.jsx("span",{className:"italic text-accent-indigo",children:"New Project"})]}),Q.jsx("p",{className:"text-xl text-text-dim max-w-2xl mx-auto mb-10",children:"A modern React template with Tailwind CSS, Framer Motion, and React Router."}),Q.jsx(Ri,{to:"/dashboard",className:"inline-flex items-center gap-2 px-8 py-4 bg-accent-indigo text-white rounded-xl font-medium hover:shadow-premium transition-all",children:"Get Started →"})]}),Q.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{icon:"⚡",title:"Fast",desc:"Built with Vite for lightning-fast development"},{icon:"🎨",title:"Beautiful",desc:"Tailwind CSS with custom design system"},{icon:"✨",title:"Animated",desc:"Smooth animations with Framer Motion"}].map((n,r)=>Q.jsxs(gu.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"glass rounded-2xl p-8 border border-app-border",children:[Q.jsx("div",{className:"text-4xl mb-4",children:n.icon}),Q.jsx("h3",{className:"font-bold text-xl mb-2",children:n.title}),Q.jsx("p",{className:"text-text-dim",children:n.desc})]},r))})]})})}function dP(){return Q.jsxs("div",{className:"glass rounded-2xl p-8 border border-app-border",children:[Q.jsx("h2",{className:"font-serif font-bold text-3xl mb-4",children:"Dashboard"}),Q.jsx("p",{className:"text-text-dim",children:"Build your dashboard here."})]})}function hP(){return Q.jsxs("div",{className:"glass rounded-2xl p-8 border border-app-border",children:[Q.jsx("h2",{className:"font-serif font-bold text-3xl mb-4",children:"About"}),Q.jsx("p",{className:"text-text-dim",children:"Add your about content here."})]})}function pP(){return Q.jsxs(vw,{children:[Q.jsx(wC,{}),Q.jsx(aP,{position:"top-right"}),Q.jsxs("div",{className:"min-h-screen bg-app-bg grid-subtle selection:bg-accent-indigo/10 selection:text-accent-indigo",children:[Q.jsx(uP,{}),Q.jsx("main",{className:"relative",children:Q.jsx(cP,{})}),Q.jsx("footer",{className:"border-t border-app-border py-16 px-6 bg-white",children:Q.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-10",children:[Q.jsxs("div",{className:"flex flex-col items-center md:items-start gap-5",children:[Q.jsxs("span",{className:"font-serif font-bold text-2xl tracking-tighter text-text-main",children:["Your",Q.jsx("span",{className:"italic",children:"Brand"})]}),Q.jsx("p",{className:"text-sm text-text-pale max-w-xs text-center md:text-left leading-relaxed",children:"Your tagline or description here"})]}),Q.jsx("div",{className:"flex flex-col items-center md:items-end gap-4",children:Q.jsx("p",{className:"text-xs text-text-pale uppercase tracking-widest font-medium",children:"© 2026 YOUR BRAND"})})]})})]})]})}Xv.createRoot(document.getElementById("root")).render(Q.jsx(S.StrictMode,{children:Q.jsx(pP,{})}));
|