@scenar/cli 0.8.0 → 0.9.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.
Files changed (78) hide show
  1. package/example-bundle/assets/index-DlmG1Uh7.js +388 -0
  2. package/example-bundle/assets/style-BjquDnTE.css +1 -0
  3. package/example-bundle/index.html +2 -2
  4. package/example-bundle/pack-manifest.json +9 -9
  5. package/example-bundle/scenario.json +6 -2
  6. package/package.json +9 -5
  7. package/src/__tests__/collect-pack-shots.test.ts +97 -0
  8. package/src/__tests__/pack-generate-embed-entry.test.ts +68 -3
  9. package/src/__tests__/pack-manifest.test.ts +17 -0
  10. package/src/__tests__/read-shots.test.ts +57 -0
  11. package/src/__tests__/run-shoot.test.ts +319 -0
  12. package/src/api.d.ts +3 -0
  13. package/src/api.d.ts.map +1 -1
  14. package/src/api.js +2 -0
  15. package/src/api.js.map +1 -1
  16. package/src/api.ts +5 -0
  17. package/src/bundle/read-shots.d.ts +28 -0
  18. package/src/bundle/read-shots.d.ts.map +1 -0
  19. package/src/bundle/read-shots.js +28 -0
  20. package/src/bundle/read-shots.js.map +1 -0
  21. package/src/bundle/read-shots.ts +38 -0
  22. package/src/commands/shoot.d.ts +3 -0
  23. package/src/commands/shoot.d.ts.map +1 -0
  24. package/src/commands/shoot.js +52 -0
  25. package/src/commands/shoot.js.map +1 -0
  26. package/src/commands/shoot.ts +72 -0
  27. package/src/index.d.ts.map +1 -1
  28. package/src/index.js +2 -0
  29. package/src/index.js.map +1 -1
  30. package/src/index.ts +2 -0
  31. package/src/pack/build.d.ts +33 -1
  32. package/src/pack/build.d.ts.map +1 -1
  33. package/src/pack/build.js +35 -10
  34. package/src/pack/build.js.map +1 -1
  35. package/src/pack/build.ts +63 -17
  36. package/src/pack/collect-pack-shots.d.ts +40 -0
  37. package/src/pack/collect-pack-shots.d.ts.map +1 -0
  38. package/src/pack/collect-pack-shots.js +59 -0
  39. package/src/pack/collect-pack-shots.js.map +1 -0
  40. package/src/pack/collect-pack-shots.ts +76 -0
  41. package/src/pack/generate-embed-entry.d.ts +18 -0
  42. package/src/pack/generate-embed-entry.d.ts.map +1 -1
  43. package/src/pack/generate-embed-entry.js +92 -3
  44. package/src/pack/generate-embed-entry.js.map +1 -1
  45. package/src/pack/generate-embed-entry.ts +94 -3
  46. package/src/pack/pack-manifest.d.ts +12 -3
  47. package/src/pack/pack-manifest.d.ts.map +1 -1
  48. package/src/pack/pack-manifest.js +13 -3
  49. package/src/pack/pack-manifest.js.map +1 -1
  50. package/src/pack/pack-manifest.ts +13 -2
  51. package/src/pack/run-pack.d.ts +6 -0
  52. package/src/pack/run-pack.d.ts.map +1 -1
  53. package/src/pack/run-pack.js +41 -14
  54. package/src/pack/run-pack.js.map +1 -1
  55. package/src/pack/run-pack.ts +55 -14
  56. package/src/shoot/playwright-browser.d.ts +9 -0
  57. package/src/shoot/playwright-browser.d.ts.map +1 -0
  58. package/src/shoot/playwright-browser.js +92 -0
  59. package/src/shoot/playwright-browser.js.map +1 -0
  60. package/src/shoot/playwright-browser.ts +121 -0
  61. package/src/shoot/run-shoot.d.ts +58 -0
  62. package/src/shoot/run-shoot.d.ts.map +1 -0
  63. package/src/shoot/run-shoot.js +190 -0
  64. package/src/shoot/run-shoot.js.map +1 -0
  65. package/src/shoot/run-shoot.ts +270 -0
  66. package/src/shoot/types.d.ts +40 -0
  67. package/src/shoot/types.d.ts.map +1 -0
  68. package/src/shoot/types.js +2 -0
  69. package/src/shoot/types.js.map +1 -0
  70. package/src/shoot/types.ts +40 -0
  71. package/src/util/load-ts.d.ts +12 -2
  72. package/src/util/load-ts.d.ts.map +1 -1
  73. package/src/util/load-ts.js +25 -10
  74. package/src/util/load-ts.js.map +1 -1
  75. package/src/util/load-ts.ts +25 -11
  76. package/tsconfig.tsbuildinfo +1 -1
  77. package/example-bundle/assets/index-CBaiZ4ek.js +0 -147
  78. package/example-bundle/assets/style-Ci-h7jik.css +0 -1
@@ -1,147 +0,0 @@
1
- var lc={exports:{}},Ml={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var _p;function qS(){if(_p)return Ml;_p=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:a,type:u,key:f,ref:c!==void 0?c:null,props:d}}return Ml.Fragment=i,Ml.jsx=s,Ml.jsxs=s,Ml}var Vp;function GS(){return Vp||(Vp=1,lc.exports=qS()),lc.exports}var C=GS(),sc={exports:{}},ct={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Np;function XS(){if(Np)return ct;Np=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function B(M,Y,I){this.props=M,this.context=Y,this.refs=j,this.updater=I||A}B.prototype.isReactComponent={},B.prototype.setState=function(M,Y){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Y,"setState")},B.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function q(){}q.prototype=B.prototype;function H(M,Y,I){this.props=M,this.context=Y,this.refs=j,this.updater=I||A}var J=H.prototype=new q;J.constructor=H,w(J,B.prototype),J.isPureReactComponent=!0;var W=Array.isArray;function P(){}var X={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function Q(M,Y,I){var et=I.ref;return{$$typeof:a,type:M,key:Y,ref:et!==void 0?et:null,props:I}}function k(M,Y){return Q(M.type,Y,M.props)}function $(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function K(M){var Y={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(I){return Y[I]})}var rt=/\/+/g;function Tt(M,Y){return typeof M=="object"&&M!==null&&M.key!=null?K(""+M.key):Y.toString(36)}function xt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(P,P):(M.status="pending",M.then(function(Y){M.status==="pending"&&(M.status="fulfilled",M.value=Y)},function(Y){M.status==="pending"&&(M.status="rejected",M.reason=Y)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function V(M,Y,I,et,ot){var ht=typeof M;(ht==="undefined"||ht==="boolean")&&(M=null);var pt=!1;if(M===null)pt=!0;else switch(ht){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(M.$$typeof){case a:case i:pt=!0;break;case g:return pt=M._init,V(pt(M._payload),Y,I,et,ot)}}if(pt)return ot=ot(M),pt=et===""?"."+Tt(M,0):et,W(ot)?(I="",pt!=null&&(I=pt.replace(rt,"$&/")+"/"),V(ot,Y,I,"",function(Xe){return Xe})):ot!=null&&($(ot)&&(ot=k(ot,I+(ot.key==null||M&&M.key===ot.key?"":(""+ot.key).replace(rt,"$&/")+"/")+pt)),Y.push(ot)),1;pt=0;var kt=et===""?".":et+":";if(W(M))for(var Ut=0;Ut<M.length;Ut++)et=M[Ut],ht=kt+Tt(et,Ut),pt+=V(et,Y,I,ht,ot);else if(Ut=x(M),typeof Ut=="function")for(M=Ut.call(M),Ut=0;!(et=M.next()).done;)et=et.value,ht=kt+Tt(et,Ut++),pt+=V(et,Y,I,ht,ot);else if(ht==="object"){if(typeof M.then=="function")return V(xt(M),Y,I,et,ot);throw Y=String(M),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return pt}function F(M,Y,I){if(M==null)return M;var et=[],ot=0;return V(M,et,"","",function(ht){return Y.call(I,ht,ot++)}),et}function tt(M){if(M._status===-1){var Y=M._result;Y=Y(),Y.then(function(I){(M._status===0||M._status===-1)&&(M._status=1,M._result=I)},function(I){(M._status===0||M._status===-1)&&(M._status=2,M._result=I)}),M._status===-1&&(M._status=0,M._result=Y)}if(M._status===1)return M._result.default;throw M._result}var ut=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ft={map:F,forEach:function(M,Y,I){F(M,function(){Y.apply(this,arguments)},I)},count:function(M){var Y=0;return F(M,function(){Y++}),Y},toArray:function(M){return F(M,function(Y){return Y})||[]},only:function(M){if(!$(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ct.Activity=v,ct.Children=ft,ct.Component=B,ct.Fragment=s,ct.Profiler=c,ct.PureComponent=H,ct.StrictMode=u,ct.Suspense=y,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ct.__COMPILER_RUNTIME={__proto__:null,c:function(M){return X.H.useMemoCache(M)}},ct.cache=function(M){return function(){return M.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(M,Y,I){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var et=w({},M.props),ot=M.key;if(Y!=null)for(ht in Y.key!==void 0&&(ot=""+Y.key),Y)!Z.call(Y,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&Y.ref===void 0||(et[ht]=Y[ht]);var ht=arguments.length-2;if(ht===1)et.children=I;else if(1<ht){for(var pt=Array(ht),kt=0;kt<ht;kt++)pt[kt]=arguments[kt+2];et.children=pt}return Q(M.type,ot,et)},ct.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},ct.createElement=function(M,Y,I){var et,ot={},ht=null;if(Y!=null)for(et in Y.key!==void 0&&(ht=""+Y.key),Y)Z.call(Y,et)&&et!=="key"&&et!=="__self"&&et!=="__source"&&(ot[et]=Y[et]);var pt=arguments.length-2;if(pt===1)ot.children=I;else if(1<pt){for(var kt=Array(pt),Ut=0;Ut<pt;Ut++)kt[Ut]=arguments[Ut+2];ot.children=kt}if(M&&M.defaultProps)for(et in pt=M.defaultProps,pt)ot[et]===void 0&&(ot[et]=pt[et]);return Q(M,ht,ot)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(M){return{$$typeof:m,render:M}},ct.isValidElement=$,ct.lazy=function(M){return{$$typeof:g,_payload:{_status:-1,_result:M},_init:tt}},ct.memo=function(M,Y){return{$$typeof:p,type:M,compare:Y===void 0?null:Y}},ct.startTransition=function(M){var Y=X.T,I={};X.T=I;try{var et=M(),ot=X.S;ot!==null&&ot(I,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(P,ut)}catch(ht){ut(ht)}finally{Y!==null&&I.types!==null&&(Y.types=I.types),X.T=Y}},ct.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ct.use=function(M){return X.H.use(M)},ct.useActionState=function(M,Y,I){return X.H.useActionState(M,Y,I)},ct.useCallback=function(M,Y){return X.H.useCallback(M,Y)},ct.useContext=function(M){return X.H.useContext(M)},ct.useDebugValue=function(){},ct.useDeferredValue=function(M,Y){return X.H.useDeferredValue(M,Y)},ct.useEffect=function(M,Y){return X.H.useEffect(M,Y)},ct.useEffectEvent=function(M){return X.H.useEffectEvent(M)},ct.useId=function(){return X.H.useId()},ct.useImperativeHandle=function(M,Y,I){return X.H.useImperativeHandle(M,Y,I)},ct.useInsertionEffect=function(M,Y){return X.H.useInsertionEffect(M,Y)},ct.useLayoutEffect=function(M,Y){return X.H.useLayoutEffect(M,Y)},ct.useMemo=function(M,Y){return X.H.useMemo(M,Y)},ct.useOptimistic=function(M,Y){return X.H.useOptimistic(M,Y)},ct.useReducer=function(M,Y,I){return X.H.useReducer(M,Y,I)},ct.useRef=function(M){return X.H.useRef(M)},ct.useState=function(M){return X.H.useState(M)},ct.useSyncExternalStore=function(M,Y,I){return X.H.useSyncExternalStore(M,Y,I)},ct.useTransition=function(){return X.H.useTransition()},ct.version="19.2.5",ct}var Bp;function lf(){return Bp||(Bp=1,sc.exports=XS()),sc.exports}var E=lf(),uc={exports:{}},Cl={},rc={exports:{}},oc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Up;function kS(){return Up||(Up=1,function(a){function i(V,F){var tt=V.length;V.push(F);t:for(;0<tt;){var ut=tt-1>>>1,ft=V[ut];if(0<c(ft,F))V[ut]=F,V[tt]=ft,tt=ut;else break t}}function s(V){return V.length===0?null:V[0]}function u(V){if(V.length===0)return null;var F=V[0],tt=V.pop();if(tt!==F){V[0]=tt;t:for(var ut=0,ft=V.length,M=ft>>>1;ut<M;){var Y=2*(ut+1)-1,I=V[Y],et=Y+1,ot=V[et];if(0>c(I,tt))et<ft&&0>c(ot,I)?(V[ut]=ot,V[et]=tt,ut=et):(V[ut]=I,V[Y]=tt,ut=Y);else if(et<ft&&0>c(ot,tt))V[ut]=ot,V[et]=tt,ut=et;else break t}}return F}function c(V,F){var tt=V.sortIndex-F.sortIndex;return tt!==0?tt:V.id-F.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],p=[],g=1,v=null,b=3,x=!1,A=!1,w=!1,j=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function J(V){for(var F=s(p);F!==null;){if(F.callback===null)u(p);else if(F.startTime<=V)u(p),F.sortIndex=F.expirationTime,i(y,F);else break;F=s(p)}}function W(V){if(w=!1,J(V),!A)if(s(y)!==null)A=!0,P||(P=!0,K());else{var F=s(p);F!==null&&xt(W,F.startTime-V)}}var P=!1,X=-1,Z=5,Q=-1;function k(){return j?!0:!(a.unstable_now()-Q<Z)}function $(){if(j=!1,P){var V=a.unstable_now();Q=V;var F=!0;try{t:{A=!1,w&&(w=!1,q(X),X=-1),x=!0;var tt=b;try{e:{for(J(V),v=s(y);v!==null&&!(v.expirationTime>V&&k());){var ut=v.callback;if(typeof ut=="function"){v.callback=null,b=v.priorityLevel;var ft=ut(v.expirationTime<=V);if(V=a.unstable_now(),typeof ft=="function"){v.callback=ft,J(V),F=!0;break e}v===s(y)&&u(y),J(V)}else u(y);v=s(y)}if(v!==null)F=!0;else{var M=s(p);M!==null&&xt(W,M.startTime-V),F=!1}}break t}finally{v=null,b=tt,x=!1}F=void 0}}finally{F?K():P=!1}}}var K;if(typeof H=="function")K=function(){H($)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,Tt=rt.port2;rt.port1.onmessage=$,K=function(){Tt.postMessage(null)}}else K=function(){B($,0)};function xt(V,F){X=B(function(){V(a.unstable_now())},F)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(V){V.callback=null},a.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<V?Math.floor(1e3/V):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(V){switch(b){case 1:case 2:case 3:var F=3;break;default:F=b}var tt=b;b=F;try{return V()}finally{b=tt}},a.unstable_requestPaint=function(){j=!0},a.unstable_runWithPriority=function(V,F){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var tt=b;b=V;try{return F()}finally{b=tt}},a.unstable_scheduleCallback=function(V,F,tt){var ut=a.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?ut+tt:ut):tt=ut,V){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=tt+ft,V={id:g++,callback:F,priorityLevel:V,startTime:tt,expirationTime:ft,sortIndex:-1},tt>ut?(V.sortIndex=tt,i(p,V),s(y)===null&&V===s(p)&&(w?(q(X),X=-1):w=!0,xt(W,tt-ut))):(V.sortIndex=ft,i(y,V),A||x||(A=!0,P||(P=!0,K()))),V},a.unstable_shouldYield=k,a.unstable_wrapCallback=function(V){var F=b;return function(){var tt=b;b=F;try{return V.apply(this,arguments)}finally{b=tt}}}}(oc)),oc}var Lp;function ZS(){return Lp||(Lp=1,rc.exports=kS()),rc.exports}var cc={exports:{}},fe={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Hp;function QS(){if(Hp)return fe;Hp=1;var a=lf();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:y,containerInfo:p,implementation:g}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,fe.createPortal=function(y,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(y,p,null,g)},fe.flushSync=function(y){var p=f.T,g=u.p;try{if(f.T=null,u.p=2,y)return y()}finally{f.T=p,u.p=g,u.d.f()}},fe.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},fe.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},fe.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:x}):g==="script"&&u.d.X(y,{crossOrigin:v,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},fe.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(y)},fe.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);u.d.L(y,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},fe.preloadModule=function(y,p){if(typeof y=="string")if(p){var g=m(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(y)},fe.requestFormReset=function(y){u.d.r(y)},fe.unstable_batchedUpdates=function(y,p){return y(p)},fe.useFormState=function(y,p,g){return f.H.useFormState(y,p,g)},fe.useFormStatus=function(){return f.H.useHostTransitionStatus()},fe.version="19.2.5",fe}var Yp;function KS(){if(Yp)return cc.exports;Yp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),cc.exports=QS(),cc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var qp;function JS(){if(qp)return Cl;qp=1;var a=ZS(),i=lf(),s=KS();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(u(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return y(r),t;if(o===l)return y(r),e;o=o.sibling}throw Error(u(188))}if(n.return!==l.return)n=r,l=o;else{for(var h=!1,S=r.child;S;){if(S===n){h=!0,n=r,l=o;break}if(S===l){h=!0,l=r,n=o;break}S=S.sibling}if(!h){for(S=o.child;S;){if(S===n){h=!0,n=o,l=r;break}if(S===l){h=!0,l=o,n=r;break}S=S.sibling}if(!h)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var rt=Symbol.for("react.client.reference");function Tt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case B:return"Profiler";case j:return"StrictMode";case W:return"Suspense";case P:return"SuspenseList";case Q:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case H:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return e=t.displayName||null,e!==null?e:Tt(t.type)||"Memo";case Z:e=t._payload,t=t._init;try{return Tt(t(e))}catch{}}return null}var xt=Array.isArray,V=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt={pending:!1,data:null,method:null,action:null},ut=[],ft=-1;function M(t){return{current:t}}function Y(t){0>ft||(t.current=ut[ft],ut[ft]=null,ft--)}function I(t,e){ft++,ut[ft]=t.current,t.current=e}var et=M(null),ot=M(null),ht=M(null),pt=M(null);function kt(t,e){switch(I(ht,e),I(ot,t),I(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?np(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=np(e),t=ap(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(et),I(et,t)}function Ut(){Y(et),Y(ot),Y(ht)}function Xe(t){t.memoizedState!==null&&I(pt,t);var e=et.current,n=ap(e,t.type);e!==n&&(I(ot,t),I(et,n))}function aa(t){ot.current===t&&(Y(et),Y(ot)),pt.current===t&&(Y(pt),Tl._currentValue=tt)}var ia,Ci;function ke(t){if(ia===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ia=e&&e[1]||"",Ci=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ia+t+Ci}var Di=!1;function Ri(t,e){if(!t||Di)return"";Di=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(N){var _=N}Reflect.construct(t,[],G)}else{try{G.call()}catch(N){_=N}t.call(G.prototype)}}else{try{throw Error()}catch(N){_=N}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(N){if(N&&_&&typeof N.stack=="string")return[N.stack,_.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),h=o[0],S=o[1];if(h&&S){var T=h.split(`
44
- `),O=S.split(`
45
- `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===O.length)for(l=T.length-1,r=O.length-1;1<=l&&0<=r&&T[l]!==O[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==O[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==O[r]){var U=`
46
- `+T[l].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=l&&0<=r);break}}}finally{Di=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ke(n):""}function Gu(t,e){switch(t.tag){case 26:case 27:case 5:return ke(t.type);case 16:return ke("Lazy");case 13:return t.child!==e&&e!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Ri(t.type,!1);case 11:return Ri(t.type.render,!1);case 1:return Ri(t.type,!0);case 31:return ke("Activity");default:return""}}function ql(t){try{var e="",n=null;do e+=Gu(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var wi=Object.prototype.hasOwnProperty,zi=a.unstable_scheduleCallback,la=a.unstable_cancelCallback,Xu=a.unstable_shouldYield,Gl=a.unstable_requestPaint,ce=a.unstable_now,Xl=a.unstable_getCurrentPriorityLevel,Oi=a.unstable_ImmediatePriority,ji=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,ku=a.unstable_LowPriority,_i=a.unstable_IdlePriority,Zu=a.log,qt=a.unstable_setDisableYieldValue,Zt=null,Qt=null;function $e(t){if(typeof Zu=="function"&&qt(t),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Zt,t)}catch{}}var xe=Math.clz32?Math.clz32:Dv,Mv=Math.log,Cv=Math.LN2;function Dv(t){return t>>>=0,t===0?32:31-(Mv(t)/Cv|0)|0}var kl=256,Zl=262144,Ql=4194304;function sa(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Kl(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,o=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~o,l!==0?r=sa(l):(h&=S,h!==0?r=sa(h):n||(n=S&~t,n!==0&&(r=sa(n))))):(S=l&~o,S!==0?r=sa(S):h!==0?r=sa(h):n||(n=l&~t,n!==0&&(r=sa(n)))),r===0?0:e!==0&&e!==r&&(e&o)===0&&(o=r&-r,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:r}function Vi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Rv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uf(){var t=Ql;return Ql<<=1,(Ql&62914560)===0&&(Ql=4194304),t}function Qu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ni(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wv(t,e,n,l,r,o){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var S=t.entanglements,T=t.expirationTimes,O=t.hiddenUpdates;for(n=h&~n;0<n;){var U=31-xe(n),G=1<<U;S[U]=0,T[U]=-1;var _=O[U];if(_!==null)for(O[U]=null,U=0;U<_.length;U++){var N=_[U];N!==null&&(N.lane&=-536870913)}n&=~G}l!==0&&Lf(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(h&~e))}function Lf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-xe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Hf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-xe(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Yf(t,e){var n=e&-e;return n=(n&42)!==0?1:Ku(n),(n&(t.suspendedLanes|e))!==0?0:n}function Ku(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ju(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function qf(){var t=F.p;return t!==0?t:(t=window.event,t===void 0?32:Cp(t.type))}function Gf(t,e){var n=F.p;try{return F.p=t,e()}finally{F.p=n}}var Dn=Math.random().toString(36).slice(2),ae="__reactFiber$"+Dn,pe="__reactProps$"+Dn,Oa="__reactContainer$"+Dn,Pu="__reactEvents$"+Dn,zv="__reactListeners$"+Dn,Ov="__reactHandles$"+Dn,Xf="__reactResources$"+Dn,Bi="__reactMarker$"+Dn;function Fu(t){delete t[ae],delete t[pe],delete t[Pu],delete t[zv],delete t[Ov]}function ja(t){var e=t[ae];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oa]||n[ae]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=cp(t);t!==null;){if(n=t[ae])return n;t=cp(t)}return e}t=n,n=t.parentNode}return null}function _a(t){if(t=t[ae]||t[Oa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ui(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Va(t){var e=t[Xf];return e||(e=t[Xf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[Bi]=!0}var kf=new Set,Zf={};function ua(t,e){Na(t,e),Na(t+"Capture",e)}function Na(t,e){for(Zf[t]=e,t=0;t<e.length;t++)kf.add(e[t])}var jv=RegExp("^[: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]*$"),Qf={},Kf={};function _v(t){return wi.call(Kf,t)?!0:wi.call(Qf,t)?!1:jv.test(t)?Kf[t]=!0:(Qf[t]=!0,!1)}function Jl(t,e,n){if(_v(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Pl(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function rn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,o=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,o.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wu(t){if(!t._valueTracker){var e=Jf(t)?"checked":"value";t._valueTracker=Vv(t,e,""+t[e])}}function Pf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Jf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Fl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Nv=/[\n"\\]/g;function je(t){return t.replace(Nv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $u(t,e,n,l,r,o,h,S){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Iu(t,h,Oe(e)):n!=null?Iu(t,h,Oe(n)):l!=null&&t.removeAttribute("value"),r==null&&o!=null&&(t.defaultChecked=!!o),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+Oe(S):t.removeAttribute("name")}function Ff(t,e,n,l,r,o,h,S){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){Wu(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Wu(t)}function Iu(t,e,n){e==="number"&&Fl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ba(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Wf(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function $f(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(u(92));if(xt(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Wu(t)}function Ua(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Bv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function If(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Bv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function td(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&If(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&If(t,o,e[o])}function tr(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Uv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wl(t){return Lv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function on(){}var er=null;function nr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,Ha=null;function ed(t){var e=_a(t);if(e&&(t=e.stateNode)){var n=t[pe]||null;t:switch(t=e.stateNode,e.type){case"input":if($u(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+je(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[pe]||null;if(!r)throw Error(u(90));$u(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Pf(l)}break t;case"textarea":Wf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ba(t,!!n.multiple,e,!1)}}}var ar=!1;function nd(t,e,n){if(ar)return t(e,n);ar=!0;try{var l=t(e);return l}finally{if(ar=!1,(La!==null||Ha!==null)&&(Ls(),La&&(e=La,t=Ha,Ha=La=null,ed(e),t)))for(e=0;e<t.length;e++)ed(t[e])}}function Li(t,e){var n=t.stateNode;if(n===null)return null;var l=n[pe]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ir=!1;if(cn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){ir=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{ir=!1}var Rn=null,lr=null,$l=null;function ad(){if($l)return $l;var t,e=lr,n=e.length,l,r="value"in Rn?Rn.value:Rn.textContent,o=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[o-l];l++);return $l=r.slice(t,1<l?1-l:void 0)}function Il(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ts(){return!0}function id(){return!1}function ye(t){function e(n,l,r,o,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(n=t[S],this[S]=n?n(o):o[S]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ts:id,this.isPropagationStopped=id,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ts)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ts)},persist:function(){},isPersistent:ts}),e}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=ye(ra),Yi=v({},ra,{view:0,detail:0}),Hv=ye(Yi),sr,ur,qi,ns=v({},Yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:or,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==qi&&(qi&&t.type==="mousemove"?(sr=t.screenX-qi.screenX,ur=t.screenY-qi.screenY):ur=sr=0,qi=t),sr)},movementY:function(t){return"movementY"in t?t.movementY:ur}}),ld=ye(ns),Yv=v({},ns,{dataTransfer:0}),qv=ye(Yv),Gv=v({},Yi,{relatedTarget:0}),rr=ye(Gv),Xv=v({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),kv=ye(Xv),Zv=v({},ra,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Qv=ye(Zv),Kv=v({},ra,{data:0}),sd=ye(Kv),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pv={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"},Fv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Fv[t])?!!e[t]:!1}function or(){return Wv}var $v=v({},Yi,{key:function(t){if(t.key){var e=Jv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Il(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Pv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:or,charCode:function(t){return t.type==="keypress"?Il(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Il(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Iv=ye($v),t1=v({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=ye(t1),e1=v({},Yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:or}),n1=ye(e1),a1=v({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),i1=ye(a1),l1=v({},ns,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),s1=ye(l1),u1=v({},ra,{newState:0,oldState:0}),r1=ye(u1),o1=[9,13,27,32],cr=cn&&"CompositionEvent"in window,Gi=null;cn&&"documentMode"in document&&(Gi=document.documentMode);var c1=cn&&"TextEvent"in window&&!Gi,rd=cn&&(!cr||Gi&&8<Gi&&11>=Gi),od=" ",cd=!1;function fd(t,e){switch(t){case"keyup":return o1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ya=!1;function f1(t,e){switch(t){case"compositionend":return dd(e);case"keypress":return e.which!==32?null:(cd=!0,od);case"textInput":return t=e.data,t===od&&cd?null:t;default:return null}}function d1(t,e){if(Ya)return t==="compositionend"||!cr&&fd(t,e)?(t=ad(),$l=lr=Rn=null,Ya=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return rd&&e.locale!=="ko"?null:e.data;default:return null}}var h1={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 hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!h1[t.type]:e==="textarea"}function md(t,e,n,l){La?Ha?Ha.push(l):Ha=[l]:La=l,e=Zs(e,"onChange"),0<e.length&&(n=new es("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Xi=null,ki=null;function m1(t){Fm(t,0)}function as(t){var e=Ui(t);if(Pf(e))return t}function pd(t,e){if(t==="change")return e}var yd=!1;if(cn){var fr;if(cn){var dr="oninput"in document;if(!dr){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),dr=typeof gd.oninput=="function"}fr=dr}else fr=!1;yd=fr&&(!document.documentMode||9<document.documentMode)}function vd(){Xi&&(Xi.detachEvent("onpropertychange",Sd),ki=Xi=null)}function Sd(t){if(t.propertyName==="value"&&as(ki)){var e=[];md(e,ki,t,nr(t)),nd(m1,e)}}function p1(t,e,n){t==="focusin"?(vd(),Xi=e,ki=n,Xi.attachEvent("onpropertychange",Sd)):t==="focusout"&&vd()}function y1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return as(ki)}function g1(t,e){if(t==="click")return as(e)}function v1(t,e){if(t==="input"||t==="change")return as(e)}function S1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:S1;function Zi(t,e){if(Ee(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!wi.call(e,r)||!Ee(t[r],e[r]))return!1}return!0}function bd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Td(t,e){var n=bd(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=bd(n)}}function xd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?xd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ed(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Fl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Fl(t.document)}return e}function hr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var b1=cn&&"documentMode"in document&&11>=document.documentMode,qa=null,mr=null,Qi=null,pr=!1;function Ad(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pr||qa==null||qa!==Fl(l)||(l=qa,"selectionStart"in l&&hr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Zi(Qi,l)||(Qi=l,l=Zs(mr,"onSelect"),0<l.length&&(e=new es("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=qa)))}function oa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ga={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},yr={},Md={};cn&&(Md=document.createElement("div").style,"AnimationEvent"in window||(delete Ga.animationend.animation,delete Ga.animationiteration.animation,delete Ga.animationstart.animation),"TransitionEvent"in window||delete Ga.transitionend.transition);function ca(t){if(yr[t])return yr[t];if(!Ga[t])return t;var e=Ga[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Md)return yr[t]=e[n];return t}var Cd=ca("animationend"),Dd=ca("animationiteration"),Rd=ca("animationstart"),T1=ca("transitionrun"),x1=ca("transitionstart"),E1=ca("transitioncancel"),wd=ca("transitionend"),zd=new Map,gr="abort auxClick beforeToggle 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(" ");gr.push("scrollEnd");function Ze(t,e){zd.set(t,e),ua(e,[t])}var is=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},_e=[],Xa=0,vr=0;function ls(){for(var t=Xa,e=vr=Xa=0;e<t;){var n=_e[e];_e[e++]=null;var l=_e[e];_e[e++]=null;var r=_e[e];_e[e++]=null;var o=_e[e];if(_e[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}o!==0&&Od(n,r,o)}}function ss(t,e,n,l){_e[Xa++]=t,_e[Xa++]=e,_e[Xa++]=n,_e[Xa++]=l,vr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Sr(t,e,n,l){return ss(t,e,n,l),us(t)}function fa(t,e){return ss(t,null,null,e),us(t)}function Od(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,o=t.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(r=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,r&&e!==null&&(r=31-xe(n),t=o.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),o):null}function us(t){if(50<ml)throw ml=0,wo=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ka={};function A1(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ae(t,e,n,l){return new A1(t,e,n,l)}function br(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fn(t,e){var n=t.alternate;return n===null?(n=Ae(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function jd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function rs(t,e,n,l,r,o){var h=0;if(l=t,typeof t=="function")br(t)&&(h=1);else if(typeof t=="string")h=wS(t,n,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Q:return t=Ae(31,n,e,r),t.elementType=Q,t.lanes=o,t;case w:return da(n.children,r,o,e);case j:h=8,r|=24;break;case B:return t=Ae(12,n,e,r|2),t.elementType=B,t.lanes=o,t;case W:return t=Ae(13,n,e,r),t.elementType=W,t.lanes=o,t;case P:return t=Ae(19,n,e,r),t.elementType=P,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:h=10;break t;case q:h=9;break t;case J:h=11;break t;case X:h=14;break t;case Z:h=16,l=null;break t}h=29,n=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Ae(h,n,e,r),e.elementType=t,e.type=l,e.lanes=o,e}function da(t,e,n,l){return t=Ae(7,t,l,e),t.lanes=n,t}function Tr(t,e,n){return t=Ae(6,t,null,e),t.lanes=n,t}function _d(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function xr(t,e,n){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Vd=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=Vd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ql(e)},Vd.set(t,e),e)}return{value:t,source:e,stack:ql(e)}}var Za=[],Qa=0,os=null,Ki=0,Ne=[],Be=0,wn=null,Ie=1,tn="";function dn(t,e){Za[Qa++]=Ki,Za[Qa++]=os,os=t,Ki=e}function Nd(t,e,n){Ne[Be++]=Ie,Ne[Be++]=tn,Ne[Be++]=wn,wn=t;var l=Ie;t=tn;var r=32-xe(l)-1;l&=~(1<<r),n+=1;var o=32-xe(e)+r;if(30<o){var h=r-r%5;o=(l&(1<<h)-1).toString(32),l>>=h,r-=h,Ie=1<<32-xe(e)+r|n<<r|l,tn=o+t}else Ie=1<<o|n<<r|l,tn=t}function Er(t){t.return!==null&&(dn(t,1),Nd(t,1,0))}function Ar(t){for(;t===os;)os=Za[--Qa],Za[Qa]=null,Ki=Za[--Qa],Za[Qa]=null;for(;t===wn;)wn=Ne[--Be],Ne[Be]=null,tn=Ne[--Be],Ne[Be]=null,Ie=Ne[--Be],Ne[Be]=null}function Bd(t,e){Ne[Be++]=Ie,Ne[Be++]=tn,Ne[Be++]=wn,Ie=e.id,tn=e.overflow,wn=t}var ie=null,_t=null,bt=!1,zn=null,Ue=!1,Mr=Error(u(519));function On(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ji(Ve(e,t)),Mr}function Ud(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ae]=t,e[pe]=l,n){case"dialog":gt("cancel",e),gt("close",e);break;case"iframe":case"object":case"embed":gt("load",e);break;case"video":case"audio":for(n=0;n<yl.length;n++)gt(yl[n],e);break;case"source":gt("error",e);break;case"img":case"image":case"link":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"input":gt("invalid",e),Ff(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":gt("invalid",e);break;case"textarea":gt("invalid",e),$f(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||tp(e.textContent,n)?(l.popover!=null&&(gt("beforetoggle",e),gt("toggle",e)),l.onScroll!=null&&gt("scroll",e),l.onScrollEnd!=null&&gt("scrollend",e),l.onClick!=null&&(e.onclick=on),e=!0):e=!1,e||On(t,!0)}function Ld(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:ie=ie.return}}function Ka(t){if(t!==ie)return!1;if(!bt)return Ld(t),bt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ko(t.type,t.memoizedProps)),n=!n),n&&_t&&On(t),Ld(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=op(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=op(t)}else e===27?(e=_t,Zn(t.type)?(t=Po,Po=null,_t=t):_t=e):_t=ie?He(t.stateNode.nextSibling):null;return!0}function ha(){_t=ie=null,bt=!1}function Cr(){var t=zn;return t!==null&&(be===null?be=t:be.push.apply(be,t),zn=null),t}function Ji(t){zn===null?zn=[t]:zn.push(t)}var Dr=M(null),ma=null,hn=null;function jn(t,e,n){I(Dr,e._currentValue),e._currentValue=n}function mn(t){t._currentValue=Dr.current,Y(Dr)}function Rr(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function wr(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var o=r.dependencies;if(o!==null){var h=r.child;o=o.firstContext;t:for(;o!==null;){var S=o;o=r;for(var T=0;T<e.length;T++)if(S.context===e[T]){o.lanes|=n,S=o.alternate,S!==null&&(S.lanes|=n),Rr(o.return,n,t),l||(h=null);break t}o=S.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(u(341));h.lanes|=n,o=h.alternate,o!==null&&(o.lanes|=n),Rr(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Ja(t,e,n,l){t=null;for(var r=e,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var S=r.type;Ee(r.pendingProps.value,h.value)||(t!==null?t.push(S):t=[S])}}else if(r===pt.current){if(h=r.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Tl):t=[Tl])}r=r.return}t!==null&&wr(e,t,n,l),e.flags|=262144}function cs(t){for(t=t.firstContext;t!==null;){if(!Ee(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pa(t){ma=t,hn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return Hd(ma,t)}function fs(t,e){return ma===null&&pa(t),Hd(t,e)}function Hd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},hn===null){if(t===null)throw Error(u(308));hn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else hn=hn.next=e;return n}var M1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},C1=a.unstable_scheduleCallback,D1=a.unstable_NormalPriority,Kt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zr(){return{controller:new M1,data:new Map,refCount:0}}function Pi(t){t.refCount--,t.refCount===0&&C1(D1,function(){t.controller.abort()})}var Fi=null,Or=0,Pa=0,Fa=null;function R1(t,e){if(Fi===null){var n=Fi=[];Or=0,Pa=No(),Fa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Or++,e.then(Yd,Yd),e}function Yd(){if(--Or===0&&Fi!==null){Fa!==null&&(Fa.status="fulfilled");var t=Fi;Fi=null,Pa=0,Fa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function w1(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var qd=V.S;V.S=function(t,e){Am=ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&R1(t,e),qd!==null&&qd(t,e)};var ya=M(null);function jr(){var t=ya.current;return t!==null?t:Ot.pooledCache}function ds(t,e){e===null?I(ya,ya.current):I(ya,e.pool)}function Gd(){var t=jr();return t===null?null:{parent:Kt._currentValue,pool:t}}var Wa=Error(u(460)),_r=Error(u(474)),hs=Error(u(542)),ms={then:function(){}};function Xd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(on,on),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qd(t),t;default:if(typeof e.status=="string")e.then(on,on);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qd(t),t}throw va=e,Wa}}function ga(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(va=n,Wa):n}}var va=null;function Zd(){if(va===null)throw Error(u(459));var t=va;return va=null,t}function Qd(t){if(t===Wa||t===hs)throw Error(u(483))}var $a=null,Wi=0;function ps(t){var e=Wi;return Wi+=1,$a===null&&($a=[]),kd($a,t,e)}function $i(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ys(t,e){throw e.$$typeof===b?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Kd(t){function e(R,D){if(t){var z=R.deletions;z===null?(R.deletions=[D],R.flags|=16):z.push(D)}}function n(R,D){if(!t)return null;for(;D!==null;)e(R,D),D=D.sibling;return null}function l(R){for(var D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function r(R,D){return R=fn(R,D),R.index=0,R.sibling=null,R}function o(R,D,z){return R.index=z,t?(z=R.alternate,z!==null?(z=z.index,z<D?(R.flags|=67108866,D):z):(R.flags|=67108866,D)):(R.flags|=1048576,D)}function h(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function S(R,D,z,L){return D===null||D.tag!==6?(D=Tr(z,R.mode,L),D.return=R,D):(D=r(D,z),D.return=R,D)}function T(R,D,z,L){var lt=z.type;return lt===w?U(R,D,z.props.children,L,z.key):D!==null&&(D.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Z&&ga(lt)===D.type)?(D=r(D,z.props),$i(D,z),D.return=R,D):(D=rs(z.type,z.key,z.props,null,R.mode,L),$i(D,z),D.return=R,D)}function O(R,D,z,L){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=xr(z,R.mode,L),D.return=R,D):(D=r(D,z.children||[]),D.return=R,D)}function U(R,D,z,L,lt){return D===null||D.tag!==7?(D=da(z,R.mode,L,lt),D.return=R,D):(D=r(D,z),D.return=R,D)}function G(R,D,z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Tr(""+D,R.mode,z),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return z=rs(D.type,D.key,D.props,null,R.mode,z),$i(z,D),z.return=R,z;case A:return D=xr(D,R.mode,z),D.return=R,D;case Z:return D=ga(D),G(R,D,z)}if(xt(D)||K(D))return D=da(D,R.mode,z,null),D.return=R,D;if(typeof D.then=="function")return G(R,ps(D),z);if(D.$$typeof===H)return G(R,fs(R,D),z);ys(R,D)}return null}function _(R,D,z,L){var lt=D!==null?D.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return lt!==null?null:S(R,D,""+z,L);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===lt?T(R,D,z,L):null;case A:return z.key===lt?O(R,D,z,L):null;case Z:return z=ga(z),_(R,D,z,L)}if(xt(z)||K(z))return lt!==null?null:U(R,D,z,L,null);if(typeof z.then=="function")return _(R,D,ps(z),L);if(z.$$typeof===H)return _(R,D,fs(R,z),L);ys(R,z)}return null}function N(R,D,z,L,lt){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return R=R.get(z)||null,S(D,R,""+L,lt);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return R=R.get(L.key===null?z:L.key)||null,T(D,R,L,lt);case A:return R=R.get(L.key===null?z:L.key)||null,O(D,R,L,lt);case Z:return L=ga(L),N(R,D,z,L,lt)}if(xt(L)||K(L))return R=R.get(z)||null,U(D,R,L,lt,null);if(typeof L.then=="function")return N(R,D,z,ps(L),lt);if(L.$$typeof===H)return N(R,D,z,fs(D,L),lt);ys(D,L)}return null}function nt(R,D,z,L){for(var lt=null,Et=null,it=D,mt=D=0,St=null;it!==null&&mt<z.length;mt++){it.index>mt?(St=it,it=null):St=it.sibling;var At=_(R,it,z[mt],L);if(At===null){it===null&&(it=St);break}t&&it&&At.alternate===null&&e(R,it),D=o(At,D,mt),Et===null?lt=At:Et.sibling=At,Et=At,it=St}if(mt===z.length)return n(R,it),bt&&dn(R,mt),lt;if(it===null){for(;mt<z.length;mt++)it=G(R,z[mt],L),it!==null&&(D=o(it,D,mt),Et===null?lt=it:Et.sibling=it,Et=it);return bt&&dn(R,mt),lt}for(it=l(it);mt<z.length;mt++)St=N(it,R,mt,z[mt],L),St!==null&&(t&&St.alternate!==null&&it.delete(St.key===null?mt:St.key),D=o(St,D,mt),Et===null?lt=St:Et.sibling=St,Et=St);return t&&it.forEach(function(Fn){return e(R,Fn)}),bt&&dn(R,mt),lt}function st(R,D,z,L){if(z==null)throw Error(u(151));for(var lt=null,Et=null,it=D,mt=D=0,St=null,At=z.next();it!==null&&!At.done;mt++,At=z.next()){it.index>mt?(St=it,it=null):St=it.sibling;var Fn=_(R,it,At.value,L);if(Fn===null){it===null&&(it=St);break}t&&it&&Fn.alternate===null&&e(R,it),D=o(Fn,D,mt),Et===null?lt=Fn:Et.sibling=Fn,Et=Fn,it=St}if(At.done)return n(R,it),bt&&dn(R,mt),lt;if(it===null){for(;!At.done;mt++,At=z.next())At=G(R,At.value,L),At!==null&&(D=o(At,D,mt),Et===null?lt=At:Et.sibling=At,Et=At);return bt&&dn(R,mt),lt}for(it=l(it);!At.done;mt++,At=z.next())At=N(it,R,mt,At.value,L),At!==null&&(t&&At.alternate!==null&&it.delete(At.key===null?mt:At.key),D=o(At,D,mt),Et===null?lt=At:Et.sibling=At,Et=At);return t&&it.forEach(function(YS){return e(R,YS)}),bt&&dn(R,mt),lt}function zt(R,D,z,L){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:t:{for(var lt=z.key;D!==null;){if(D.key===lt){if(lt=z.type,lt===w){if(D.tag===7){n(R,D.sibling),L=r(D,z.props.children),L.return=R,R=L;break t}}else if(D.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Z&&ga(lt)===D.type){n(R,D.sibling),L=r(D,z.props),$i(L,z),L.return=R,R=L;break t}n(R,D);break}else e(R,D);D=D.sibling}z.type===w?(L=da(z.props.children,R.mode,L,z.key),L.return=R,R=L):(L=rs(z.type,z.key,z.props,null,R.mode,L),$i(L,z),L.return=R,R=L)}return h(R);case A:t:{for(lt=z.key;D!==null;){if(D.key===lt)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){n(R,D.sibling),L=r(D,z.children||[]),L.return=R,R=L;break t}else{n(R,D);break}else e(R,D);D=D.sibling}L=xr(z,R.mode,L),L.return=R,R=L}return h(R);case Z:return z=ga(z),zt(R,D,z,L)}if(xt(z))return nt(R,D,z,L);if(K(z)){if(lt=K(z),typeof lt!="function")throw Error(u(150));return z=lt.call(z),st(R,D,z,L)}if(typeof z.then=="function")return zt(R,D,ps(z),L);if(z.$$typeof===H)return zt(R,D,fs(R,z),L);ys(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,D!==null&&D.tag===6?(n(R,D.sibling),L=r(D,z),L.return=R,R=L):(n(R,D),L=Tr(z,R.mode,L),L.return=R,R=L),h(R)):n(R,D)}return function(R,D,z,L){try{Wi=0;var lt=zt(R,D,z,L);return $a=null,lt}catch(it){if(it===Wa||it===hs)throw it;var Et=Ae(29,it,null,R.mode);return Et.lanes=L,Et.return=R,Et}finally{}}}var Sa=Kd(!0),Jd=Kd(!1),_n=!1;function Vr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Vn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Mt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=us(t),Od(t,null,n),e}return ss(t,l,e,n),us(t)}function Ii(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Hf(t,n)}}function Br(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=h:o=o.next=h,n=n.next}while(n!==null);o===null?r=o=e:o=o.next=e}else r=o=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ur=!1;function tl(){if(Ur){var t=Fa;if(t!==null)throw t}}function el(t,e,n,l){Ur=!1;var r=t.updateQueue;_n=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,S=r.shared.pending;if(S!==null){r.shared.pending=null;var T=S,O=T.next;T.next=null,h===null?o=O:h.next=O,h=T;var U=t.alternate;U!==null&&(U=U.updateQueue,S=U.lastBaseUpdate,S!==h&&(S===null?U.firstBaseUpdate=O:S.next=O,U.lastBaseUpdate=T))}if(o!==null){var G=r.baseState;h=0,U=O=T=null,S=o;do{var _=S.lane&-536870913,N=_!==S.lane;if(N?(vt&_)===_:(l&_)===_){_!==0&&_===Pa&&(Ur=!0),U!==null&&(U=U.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var nt=t,st=S;_=e;var zt=n;switch(st.tag){case 1:if(nt=st.payload,typeof nt=="function"){G=nt.call(zt,G,_);break t}G=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=st.payload,_=typeof nt=="function"?nt.call(zt,G,_):nt,_==null)break t;G=v({},G,_);break t;case 2:_n=!0}}_=S.callback,_!==null&&(t.flags|=64,N&&(t.flags|=8192),N=r.callbacks,N===null?r.callbacks=[_]:N.push(_))}else N={lane:_,tag:S.tag,payload:S.payload,callback:S.callback,next:null},U===null?(O=U=N,T=G):U=U.next=N,h|=_;if(S=S.next,S===null){if(S=r.shared.pending,S===null)break;N=S,S=N.next,N.next=null,r.lastBaseUpdate=N,r.shared.pending=null}}while(!0);U===null&&(T=G),r.baseState=T,r.firstBaseUpdate=O,r.lastBaseUpdate=U,o===null&&(r.shared.lanes=0),Yn|=h,t.lanes=h,t.memoizedState=G}}function Pd(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Fd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Pd(n[t],e)}var Ia=M(null),gs=M(0);function Wd(t,e){t=En,I(gs,t),I(Ia,e),En=t|e.baseLanes}function Lr(){I(gs,En),I(Ia,Ia.current)}function Hr(){En=gs.current,Y(Ia),Y(gs)}var Me=M(null),Le=null;function Bn(t){var e=t.alternate;I(Gt,Gt.current&1),I(Me,t),Le===null&&(e===null||Ia.current!==null||e.memoizedState!==null)&&(Le=t)}function Yr(t){I(Gt,Gt.current),I(Me,t),Le===null&&(Le=t)}function $d(t){t.tag===22?(I(Gt,Gt.current),I(Me,t),Le===null&&(Le=t)):Un()}function Un(){I(Gt,Gt.current),I(Me,Me.current)}function Ce(t){Y(Me),Le===t&&(Le=null),Y(Gt)}var Gt=M(0);function vs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ko(n)||Jo(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var pn=0,dt=null,Rt=null,Jt=null,Ss=!1,ti=!1,ba=!1,bs=0,nl=0,ei=null,z1=0;function Lt(){throw Error(u(321))}function qr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ee(t[n],e[n]))return!1;return!0}function Gr(t,e,n,l,r,o){return pn=o,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?Nh:ao,ba=!1,o=n(l,r),ba=!1,ti&&(o=th(e,n,l,r)),Id(t),o}function Id(t){V.H=ll;var e=Rt!==null&&Rt.next!==null;if(pn=0,Jt=Rt=dt=null,Ss=!1,nl=0,ei=null,e)throw Error(u(300));t===null||Pt||(t=t.dependencies,t!==null&&cs(t)&&(Pt=!0))}function th(t,e,n,l){dt=t;var r=0;do{if(ti&&(ei=null),nl=0,ti=!1,25<=r)throw Error(u(301));if(r+=1,Jt=Rt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=Bh,o=e(n,l)}while(ti);return o}function O1(){var t=V.H,e=t.useState()[0];return e=typeof e.then=="function"?al(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(dt.flags|=1024),e}function Xr(){var t=bs!==0;return bs=0,t}function kr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Zr(t){if(Ss){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ss=!1}pn=0,Jt=Rt=dt=null,ti=!1,nl=bs=0,ei=null}function de(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?dt.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Xt(){if(Rt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Jt===null?dt.memoizedState:Jt.next;if(e!==null)Jt=e,Rt=t;else{if(t===null)throw dt.alternate===null?Error(u(467)):Error(u(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Jt===null?dt.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function Ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function al(t){var e=nl;return nl+=1,ei===null&&(ei=[]),t=kd(ei,t,e),e=dt,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?Nh:ao),t}function xs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return al(t);if(t.$$typeof===H)return le(t)}throw Error(u(438,String(t)))}function Qr(t){var e=null,n=dt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=dt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ts(),dt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=k;return e.index++,n}function yn(t,e){return typeof e=="function"?e(t):e}function Es(t){var e=Xt();return Kr(e,Rt,t)}function Kr(t,e,n){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var r=t.baseQueue,o=l.pending;if(o!==null){if(r!==null){var h=r.next;r.next=o.next,o.next=h}e.baseQueue=r=o,l.pending=null}if(o=t.baseState,r===null)t.memoizedState=o;else{e=r.next;var S=h=null,T=null,O=e,U=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(vt&G)===G:(pn&G)===G){var _=O.revertLane;if(_===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Pa&&(U=!0);else if((pn&_)===_){O=O.next,_===Pa&&(U=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=G,h=o):T=T.next=G,dt.lanes|=_,Yn|=_;G=O.action,ba&&n(o,G),o=O.hasEagerState?O.eagerState:n(o,G)}else _={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=_,h=o):T=T.next=_,dt.lanes|=G,Yn|=G;O=O.next}while(O!==null&&O!==e);if(T===null?h=o:T.next=S,!Ee(o,t.memoizedState)&&(Pt=!0,U&&(n=Fa,n!==null)))throw n;t.memoizedState=o,t.baseState=h,t.baseQueue=T,l.lastRenderedState=o}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Jr(t){var e=Xt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,o=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do o=t(o,h.action),h=h.next;while(h!==r);Ee(o,e.memoizedState)||(Pt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function eh(t,e,n){var l=dt,r=Xt(),o=bt;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var h=!Ee((Rt||r).memoizedState,n);if(h&&(r.memoizedState=n,Pt=!0),r=r.queue,Wr(ih.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Jt!==null&&Jt.memoizedState.tag&1){if(l.flags|=2048,ni(9,{destroy:void 0},ah.bind(null,l,r,n,e),null),Ot===null)throw Error(u(349));o||(pn&127)!==0||nh(l,e,n)}return n}function nh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=dt.updateQueue,e===null?(e=Ts(),dt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ah(t,e,n,l){e.value=n,e.getSnapshot=l,lh(e)&&sh(t)}function ih(t,e,n){return n(function(){lh(e)&&sh(t)})}function lh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ee(t,n)}catch{return!0}}function sh(t){var e=fa(t,2);e!==null&&Te(e,t,2)}function Pr(t){var e=de();if(typeof t=="function"){var n=t;if(t=n(),ba){$e(!0);try{n()}finally{$e(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:t},e}function uh(t,e,n,l){return t.baseState=n,Kr(t,Rt,typeof l=="function"?l:yn)}function j1(t,e,n,l,r){if(Cs(t))throw Error(u(485));if(t=e.action,t!==null){var o={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){o.listeners.push(h)}};V.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,rh(e,o)):(o.next=n.next,e.pending=n.next=o)}}function rh(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=V.T,h={};V.T=h;try{var S=n(r,l),T=V.S;T!==null&&T(h,S),oh(t,e,S)}catch(O){Fr(t,e,O)}finally{o!==null&&h.types!==null&&(o.types=h.types),V.T=o}}else try{o=n(r,l),oh(t,e,o)}catch(O){Fr(t,e,O)}}function oh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ch(t,e,l)},function(l){return Fr(t,e,l)}):ch(t,e,n)}function ch(t,e,n){e.status="fulfilled",e.value=n,fh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,rh(t,n)))}function Fr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,fh(e),e=e.next;while(e!==l)}t.action=null}function fh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function dh(t,e){return e}function hh(t,e){if(bt){var n=Ot.formState;if(n!==null){t:{var l=dt;if(bt){if(_t){e:{for(var r=_t,o=Ue;r.nodeType!==8;){if(!o){r=null;break e}if(r=He(r.nextSibling),r===null){r=null;break e}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){_t=He(r.nextSibling),l=r.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=de(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:e},n.queue=l,n=jh.bind(null,dt,l),l.dispatch=n,l=Pr(!1),o=no.bind(null,dt,!1,l.queue),l=de(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=j1.bind(null,dt,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function mh(t){var e=Xt();return ph(e,Rt,t)}function ph(t,e,n){if(e=Kr(t,e,dh)[0],t=Es(yn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=al(e)}catch(h){throw h===Wa?hs:h}else l=e;e=Xt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(dt.flags|=2048,ni(9,{destroy:void 0},_1.bind(null,r,n),null)),[l,o,t]}function _1(t,e){t.action=e}function yh(t){var e=Xt(),n=Rt;if(n!==null)return ph(e,n,t);Xt(),e=e.memoizedState,n=Xt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ni(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=dt.updateQueue,e===null&&(e=Ts(),dt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function gh(){return Xt().memoizedState}function As(t,e,n,l){var r=de();dt.flags|=t,r.memoizedState=ni(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ms(t,e,n,l){var r=Xt();l=l===void 0?null:l;var o=r.memoizedState.inst;Rt!==null&&l!==null&&qr(l,Rt.memoizedState.deps)?r.memoizedState=ni(e,o,n,l):(dt.flags|=t,r.memoizedState=ni(1|e,o,n,l))}function vh(t,e){As(8390656,8,t,e)}function Wr(t,e){Ms(2048,8,t,e)}function V1(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=Ts(),dt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Sh(t){var e=Xt().memoizedState;return V1({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function bh(t,e){return Ms(4,2,t,e)}function Th(t,e){return Ms(4,4,t,e)}function xh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Eh(t,e,n){n=n!=null?n.concat([t]):null,Ms(4,4,xh.bind(null,e,t),n)}function $r(){}function Ah(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&qr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Mh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&qr(e,l[1]))return l[0];if(l=t(),ba){$e(!0);try{t()}finally{$e(!1)}}return n.memoizedState=[l,e],l}function Ir(t,e,n){return n===void 0||(pn&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Cm(),dt.lanes|=t,Yn|=t,n)}function Ch(t,e,n,l){return Ee(n,e)?n:Ia.current!==null?(t=Ir(t,n,l),Ee(t,e)||(Pt=!0),t):(pn&42)===0||(pn&1073741824)!==0&&(vt&261930)===0?(Pt=!0,t.memoizedState=n):(t=Cm(),dt.lanes|=t,Yn|=t,e)}function Dh(t,e,n,l,r){var o=F.p;F.p=o!==0&&8>o?o:8;var h=V.T,S={};V.T=S,no(t,!1,e,n);try{var T=r(),O=V.S;if(O!==null&&O(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=w1(T,l);il(t,e,U,we(t))}else il(t,e,l,we(t))}catch(G){il(t,e,{then:function(){},status:"rejected",reason:G},we())}finally{F.p=o,h!==null&&S.types!==null&&(h.types=S.types),V.T=h}}function N1(){}function to(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=Rh(t).queue;Dh(t,r,e,tt,n===null?N1:function(){return wh(t),n(l)})}function Rh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:tt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function wh(t){var e=Rh(t);e.next===null&&(e=t.alternate.memoizedState),il(t,e.next.queue,{},we())}function eo(){return le(Tl)}function zh(){return Xt().memoizedState}function Oh(){return Xt().memoizedState}function B1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=we();t=Vn(n);var l=Nn(e,t,n);l!==null&&(Te(l,e,n),Ii(l,e,n)),e={cache:zr()},t.payload=e;return}e=e.return}}function U1(t,e,n){var l=we();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Cs(t)?_h(e,n):(n=Sr(t,e,n,l),n!==null&&(Te(n,t,l),Vh(n,e,l)))}function jh(t,e,n){var l=we();il(t,e,n,l)}function il(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cs(t))_h(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var h=e.lastRenderedState,S=o(h,n);if(r.hasEagerState=!0,r.eagerState=S,Ee(S,h))return ss(t,e,r,0),Ot===null&&ls(),!1}catch{}finally{}if(n=Sr(t,e,r,l),n!==null)return Te(n,t,l),Vh(n,e,l),!0}return!1}function no(t,e,n,l){if(l={lane:2,revertLane:No(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cs(t)){if(e)throw Error(u(479))}else e=Sr(t,n,l,2),e!==null&&Te(e,t,2)}function Cs(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function _h(t,e){ti=Ss=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Hf(t,n)}}var ll={readContext:le,use:xs,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};ll.useEffectEvent=Lt;var Nh={readContext:le,use:xs,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:vh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,As(4194308,4,xh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return As(4194308,4,t,e)},useInsertionEffect:function(t,e){As(4,2,t,e)},useMemo:function(t,e){var n=de();e=e===void 0?null:e;var l=t();if(ba){$e(!0);try{t()}finally{$e(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=de();if(n!==void 0){var r=n(e);if(ba){$e(!0);try{n(e)}finally{$e(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=U1.bind(null,dt,t),[l.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=Pr(t);var e=t.queue,n=jh.bind(null,dt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:$r,useDeferredValue:function(t,e){var n=de();return Ir(n,t,e)},useTransition:function(){var t=Pr(!1);return t=Dh.bind(null,dt,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=dt,r=de();if(bt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Ot===null)throw Error(u(349));(vt&127)!==0||nh(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,vh(ih.bind(null,l,o,t),[t]),l.flags|=2048,ni(9,{destroy:void 0},ah.bind(null,l,o,n,e),null),n},useId:function(){var t=de(),e=Ot.identifierPrefix;if(bt){var n=tn,l=Ie;n=(l&~(1<<32-xe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=bs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=z1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:eo,useFormState:hh,useActionState:hh,useOptimistic:function(t){var e=de();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=no.bind(null,dt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Qr,useCacheRefresh:function(){return de().memoizedState=B1.bind(null,dt)},useEffectEvent:function(t){var e=de(),n={impl:t};return e.memoizedState=n,function(){if((Mt&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},ao={readContext:le,use:xs,useCallback:Ah,useContext:le,useEffect:Wr,useImperativeHandle:Eh,useInsertionEffect:bh,useLayoutEffect:Th,useMemo:Mh,useReducer:Es,useRef:gh,useState:function(){return Es(yn)},useDebugValue:$r,useDeferredValue:function(t,e){var n=Xt();return Ch(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Es(yn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:al(t),e]},useSyncExternalStore:eh,useId:zh,useHostTransitionStatus:eo,useFormState:mh,useActionState:mh,useOptimistic:function(t,e){var n=Xt();return uh(n,Rt,t,e)},useMemoCache:Qr,useCacheRefresh:Oh};ao.useEffectEvent=Sh;var Bh={readContext:le,use:xs,useCallback:Ah,useContext:le,useEffect:Wr,useImperativeHandle:Eh,useInsertionEffect:bh,useLayoutEffect:Th,useMemo:Mh,useReducer:Jr,useRef:gh,useState:function(){return Jr(yn)},useDebugValue:$r,useDeferredValue:function(t,e){var n=Xt();return Rt===null?Ir(n,t,e):Ch(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Jr(yn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:al(t),e]},useSyncExternalStore:eh,useId:zh,useHostTransitionStatus:eo,useFormState:yh,useActionState:yh,useOptimistic:function(t,e){var n=Xt();return Rt!==null?uh(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Qr,useCacheRefresh:Oh};Bh.useEffectEvent=Sh;function io(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var lo={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=we(),r=Vn(l);r.payload=e,n!=null&&(r.callback=n),e=Nn(t,r,l),e!==null&&(Te(e,t,l),Ii(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=we(),r=Vn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Nn(t,r,l),e!==null&&(Te(e,t,l),Ii(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=we(),l=Vn(n);l.tag=2,e!=null&&(l.callback=e),e=Nn(t,l,n),e!==null&&(Te(e,t,n),Ii(e,t,n))}};function Uh(t,e,n,l,r,o,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,h):e.prototype&&e.prototype.isPureReactComponent?!Zi(n,l)||!Zi(r,o):!0}function Lh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&lo.enqueueReplaceState(e,e.state,null)}function Ta(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Hh(t){is(t)}function Yh(t){console.error(t)}function qh(t){is(t)}function Ds(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Gh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function so(t,e,n){return n=Vn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ds(t,e)},n}function Xh(t){return t=Vn(t),t.tag=3,t}function kh(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=l.value;t.payload=function(){return r(o)},t.callback=function(){Gh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Gh(e,n,l),typeof r!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function L1(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ja(e,n,r,!0),n=Me.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Hs():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===ms?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),jo(t,l,r)),!1;case 22:return n.flags|=65536,l===ms?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),jo(t,l,r)),!1}throw Error(u(435,n.tag))}return jo(t,l,r),Hs(),!1}if(bt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Mr&&(t=Error(u(422),{cause:l}),Ji(Ve(t,n)))):(l!==Mr&&(e=Error(u(423),{cause:l}),Ji(Ve(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Ve(l,n),r=so(t.stateNode,l,r),Br(t,r),Ht!==4&&(Ht=2)),!1;var o=Error(u(520),{cause:l});if(o=Ve(o,n),hl===null?hl=[o]:hl.push(o),Ht!==4&&(Ht=2),e===null)return!0;l=Ve(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=so(n.stateNode,l,t),Br(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(qn===null||!qn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Xh(r),kh(r,t,n,l),Br(n,r),!1}n=n.return}while(n!==null);return!1}var uo=Error(u(461)),Pt=!1;function se(t,e,n,l){e.child=t===null?Jd(e,null,n,l):Sa(e,t.child,n,l)}function Zh(t,e,n,l,r){n=n.render;var o=e.ref;if("ref"in l){var h={};for(var S in l)S!=="ref"&&(h[S]=l[S])}else h=l;return pa(e),l=Gr(t,e,n,h,o,r),S=Xr(),t!==null&&!Pt?(kr(t,e,r),gn(t,e,r)):(bt&&S&&Er(e),e.flags|=1,se(t,e,l,r),e.child)}function Qh(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!br(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Kh(t,e,o,l,r)):(t=rs(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!yo(t,r)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:Zi,n(h,l)&&t.ref===e.ref)return gn(t,e,r)}return e.flags|=1,t=fn(o,l),t.ref=e.ref,t.return=e,e.child=t}function Kh(t,e,n,l,r){if(t!==null){var o=t.memoizedProps;if(Zi(o,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=o,yo(t,r))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,gn(t,e,r)}return ro(t,e,n,l,r)}function Jh(t,e,n,l){var r=l.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~o}else l=0,e.child=null;return Ph(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ds(e,o!==null?o.cachePool:null),o!==null?Wd(e,o):Lr(),$d(e);else return l=e.lanes=536870912,Ph(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(ds(e,o.cachePool),Wd(e,o),Un(),e.memoizedState=null):(t!==null&&ds(e,null),Lr(),Un());return se(t,e,r,n),e.child}function sl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ph(t,e,n,l,r){var o=jr();return o=o===null?null:{parent:Kt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&ds(e,null),Lr(),$d(e),t!==null&&Ja(t,e,l,!0),e.childLanes=r,null}function Rs(t,e){return e=zs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Fh(t,e,n){return Sa(e,t.child,null,n),t=Rs(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function H1(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(l.mode==="hidden")return t=Rs(e,l),e.lanes=536870912,sl(null,t);if(Yr(e),(t=_t)?(t=rp(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:wn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=_d(t),n.return=e,e.child=n,ie=e,_t=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Rs(e,l)}var o=t.memoizedState;if(o!==null){var h=o.dehydrated;if(Yr(e),r)if(e.flags&256)e.flags&=-257,e=Fh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Pt||Ja(t,e,n,!1),r=(n&t.childLanes)!==0,Pt||r){if(l=Ot,l!==null&&(h=Yf(l,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,fa(t,h),Te(l,t,h),uo;Hs(),e=Fh(t,e,n)}else t=o.treeContext,_t=He(h.nextSibling),ie=e,bt=!0,zn=null,Ue=!1,t!==null&&Bd(e,t),e=Rs(e,l),e.flags|=4096;return e}return t=fn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ws(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ro(t,e,n,l,r){return pa(e),n=Gr(t,e,n,l,void 0,r),l=Xr(),t!==null&&!Pt?(kr(t,e,r),gn(t,e,r)):(bt&&l&&Er(e),e.flags|=1,se(t,e,n,r),e.child)}function Wh(t,e,n,l,r,o){return pa(e),e.updateQueue=null,n=th(e,l,n,r),Id(t),l=Xr(),t!==null&&!Pt?(kr(t,e,o),gn(t,e,o)):(bt&&l&&Er(e),e.flags|=1,se(t,e,n,o),e.child)}function $h(t,e,n,l,r){if(pa(e),e.stateNode===null){var o=ka,h=n.contextType;typeof h=="object"&&h!==null&&(o=le(h)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=lo,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},Vr(e),h=n.contextType,o.context=typeof h=="object"&&h!==null?le(h):ka,o.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(io(e,n,h,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&lo.enqueueReplaceState(o,o.state,null),el(e,l,o,r),tl(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var S=e.memoizedProps,T=Ta(n,S);o.props=T;var O=o.context,U=n.contextType;h=ka,typeof U=="object"&&U!==null&&(h=le(U));var G=n.getDerivedStateFromProps;U=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,U||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||O!==h)&&Lh(e,o,l,h),_n=!1;var _=e.memoizedState;o.state=_,el(e,l,o,r),tl(),O=e.memoizedState,S||_!==O||_n?(typeof G=="function"&&(io(e,n,G,l),O=e.memoizedState),(T=_n||Uh(e,n,T,l,_,O,h))?(U||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),o.props=l,o.state=O,o.context=h,l=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,Nr(t,e),h=e.memoizedProps,U=Ta(n,h),o.props=U,G=e.pendingProps,_=o.context,O=n.contextType,T=ka,typeof O=="object"&&O!==null&&(T=le(O)),S=n.getDerivedStateFromProps,(O=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||_!==T)&&Lh(e,o,l,T),_n=!1,_=e.memoizedState,o.state=_,el(e,l,o,r),tl();var N=e.memoizedState;h!==G||_!==N||_n||t!==null&&t.dependencies!==null&&cs(t.dependencies)?(typeof S=="function"&&(io(e,n,S,l),N=e.memoizedState),(U=_n||Uh(e,n,U,l,_,N,T)||t!==null&&t.dependencies!==null&&cs(t.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,N,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,N,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=N),o.props=l,o.state=N,o.context=T,l=U):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,ws(t,e),l=(e.flags&128)!==0,o||l?(o=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&l?(e.child=Sa(e,t.child,null,r),e.child=Sa(e,null,n,r)):se(t,e,n,r),e.memoizedState=o.state,t=e.child):t=gn(t,e,r),t}function Ih(t,e,n,l){return ha(),e.flags|=256,se(t,e,n,l),e.child}var oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function co(t){return{baseLanes:t,cachePool:Gd()}}function fo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function tm(t,e,n){var l=e.pendingProps,r=!1,o=(e.flags&128)!==0,h;if((h=o)||(h=t!==null&&t.memoizedState===null?!1:(Gt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(r?Bn(e):Un(),(t=_t)?(t=rp(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:wn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=_d(t),n.return=e,e.child=n,ie=e,_t=null)):t=null,t===null)throw On(e);return Jo(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,r?(Un(),r=e.mode,S=zs({mode:"hidden",children:S},r),l=da(l,r,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=co(n),l.childLanes=fo(t,h,n),e.memoizedState=oo,sl(null,l)):(Bn(e),ho(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(o)e.flags&256?(Bn(e),e.flags&=-257,e=mo(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),S=l.fallback,r=e.mode,l=zs({mode:"visible",children:l.children},r),S=da(S,r,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,Sa(e,t.child,null,n),l=e.child,l.memoizedState=co(n),l.childLanes=fo(t,h,n),e.memoizedState=oo,e=sl(null,l));else if(Bn(e),Jo(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var O=h.dgst;h=O,l=Error(u(419)),l.stack="",l.digest=h,Ji({value:l,source:null,stack:null}),e=mo(t,e,n)}else if(Pt||Ja(t,e,n,!1),h=(n&t.childLanes)!==0,Pt||h){if(h=Ot,h!==null&&(l=Yf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,fa(t,l),Te(h,t,l),uo;Ko(S)||Hs(),e=mo(t,e,n)}else Ko(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,_t=He(S.nextSibling),ie=e,bt=!0,zn=null,Ue=!1,t!==null&&Bd(e,t),e=ho(e,l.children),e.flags|=4096);return e}return r?(Un(),S=l.fallback,r=e.mode,T=t.child,O=T.sibling,l=fn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?S=fn(O,S):(S=da(S,r,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,sl(null,l),l=e.child,S=t.child.memoizedState,S===null?S=co(n):(r=S.cachePool,r!==null?(T=Kt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=Gd(),S={baseLanes:S.baseLanes|n,cachePool:r}),l.memoizedState=S,l.childLanes=fo(t,h,n),e.memoizedState=oo,sl(t.child,l)):(Bn(e),n=t.child,t=n.sibling,n=fn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function ho(t,e){return e=zs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function zs(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function mo(t,e,n){return Sa(e,t.child,null,n),t=ho(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function em(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Rr(t.return,e,n)}function po(t,e,n,l,r,o){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:o}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=o)}function nm(t,e,n){var l=e.pendingProps,r=l.revealOrder,o=l.tail;l=l.children;var h=Gt.current,S=(h&2)!==0;if(S?(h=h&1|2,e.flags|=128):h&=1,I(Gt,h),se(t,e,l,n),l=bt?Ki:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&em(t,n,e);else if(t.tag===19)em(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&vs(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),po(e,!1,r,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&vs(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}po(e,!0,n,null,o,l);break;case"together":po(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function gn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Yn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ja(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=fn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=fn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&cs(t)))}function Y1(t,e,n){switch(e.tag){case 3:kt(e,e.stateNode.containerInfo),jn(e,Kt,t.memoizedState.cache),ha();break;case 27:case 5:Xe(e);break;case 4:kt(e,e.stateNode.containerInfo);break;case 10:jn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Yr(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Bn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?tm(t,e,n):(Bn(e),t=gn(t,e,n),t!==null?t.sibling:null);Bn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ja(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return nm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I(Gt,Gt.current),l)break;return null;case 22:return e.lanes=0,Jh(t,e,n,e.pendingProps);case 24:jn(e,Kt,t.memoizedState.cache)}return gn(t,e,n)}function am(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!yo(t,n)&&(e.flags&128)===0)return Pt=!1,Y1(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,bt&&(e.flags&1048576)!==0&&Nd(e,Ki,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ga(e.elementType),e.type=t,typeof t=="function")br(t)?(l=Ta(t,l),e.tag=1,e=$h(null,e,t,l,n)):(e.tag=0,e=ro(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===J){e.tag=11,e=Zh(null,e,t,l,n);break t}else if(r===X){e.tag=14,e=Qh(null,e,t,l,n);break t}}throw e=Tt(t)||t,Error(u(306,e,""))}}return e;case 0:return ro(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Ta(l,e.pendingProps),$h(t,e,l,r,n);case 3:t:{if(kt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var o=e.memoizedState;r=o.element,Nr(t,e),el(e,l,null,n);var h=e.memoizedState;if(l=h.cache,jn(e,Kt,l),l!==o.cache&&wr(e,[Kt],n,!0),tl(),l=h.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=Ih(t,e,l,n);break t}else if(l!==r){r=Ve(Error(u(424)),e),Ji(r),e=Ih(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(_t=He(t.firstChild),ie=e,bt=!0,zn=null,Ue=!0,n=Jd(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ha(),l===r){e=gn(t,e,n);break t}se(t,e,l,n)}e=e.child}return e;case 26:return ws(t,e),t===null?(n=mp(e.type,null,e.pendingProps,null))?e.memoizedState=n:bt||(n=e.type,t=e.pendingProps,l=Qs(ht.current).createElement(n),l[ae]=e,l[pe]=t,ue(l,n,t),te(l),e.stateNode=l):e.memoizedState=mp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Xe(e),t===null&&bt&&(l=e.stateNode=fp(e.type,e.pendingProps,ht.current),ie=e,Ue=!0,r=_t,Zn(e.type)?(Po=r,_t=He(l.firstChild)):_t=r),se(t,e,e.pendingProps.children,n),ws(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((r=l=_t)&&(l=yS(l,e.type,e.pendingProps,Ue),l!==null?(e.stateNode=l,ie=e,_t=He(l.firstChild),Ue=!1,r=!0):r=!1),r||On(e)),Xe(e),r=e.type,o=e.pendingProps,h=t!==null?t.memoizedProps:null,l=o.children,ko(r,o)?l=null:h!==null&&ko(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=Gr(t,e,O1,null,null,n),Tl._currentValue=r),ws(t,e),se(t,e,l,n),e.child;case 6:return t===null&&bt&&((t=n=_t)&&(n=gS(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,ie=e,_t=null,t=!0):t=!1),t||On(e)),null;case 13:return tm(t,e,n);case 4:return kt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Sa(e,null,l,n):se(t,e,l,n),e.child;case 11:return Zh(t,e,e.type,e.pendingProps,n);case 7:return se(t,e,e.pendingProps,n),e.child;case 8:return se(t,e,e.pendingProps.children,n),e.child;case 12:return se(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,jn(e,e.type,l.value),se(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,pa(e),r=le(r),l=l(r),e.flags|=1,se(t,e,l,n),e.child;case 14:return Qh(t,e,e.type,e.pendingProps,n);case 15:return Kh(t,e,e.type,e.pendingProps,n);case 19:return nm(t,e,n);case 31:return H1(t,e,n);case 22:return Jh(t,e,n,e.pendingProps);case 24:return pa(e),l=le(Kt),t===null?(r=jr(),r===null&&(r=Ot,o=zr(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},Vr(e),jn(e,Kt,r)):((t.lanes&n)!==0&&(Nr(t,e),el(e,null,null,n),tl()),r=t.memoizedState,o=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),jn(e,Kt,l)):(l=o.cache,jn(e,Kt,l),l!==r.cache&&wr(e,[Kt],n,!0))),se(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function vn(t){t.flags|=4}function go(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(zm())t.flags|=8192;else throw va=ms,_r}else t.flags&=-16777217}function im(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sp(e))if(zm())t.flags|=8192;else throw va=ms,_r}function Os(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Uf():536870912,t.lanes|=e,si|=e)}function ul(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function q1(t,e,n){var l=e.pendingProps;switch(Ar(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),mn(Kt),Ut(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ka(e)?vn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Cr())),Vt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(vn(e),o!==null?(Vt(e),im(e,o)):(Vt(e),go(e,r,null,l,n))):o?o!==t.memoizedState?(vn(e),Vt(e),im(e,o)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&vn(e),Vt(e),go(e,r,t,l,n)),null;case 27:if(aa(e),n=ht.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&vn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Vt(e),null}t=et.current,Ka(e)?Ud(e):(t=fp(r,l,n),e.stateNode=t,vn(e))}return Vt(e),null;case 5:if(aa(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&vn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Vt(e),null}if(o=et.current,Ka(e))Ud(e);else{var h=Qs(ht.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}o[ae]=e,o[pe]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=o;t:switch(ue(o,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&vn(e)}}return Vt(e),go(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&vn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=ht.current,Ka(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=ie,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ae]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||tp(t.nodeValue,n)),t||On(e,!0)}else t=Qs(t).createTextNode(l),t[ae]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ka(e),n!==null){if(t===null){if(!l)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[ae]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=Cr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ce(e),e):(Ce(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Vt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Ka(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(u(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[ae]=e}else ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),r=!1}else r=Cr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Ce(e),e):(Ce(e),null)}return Ce(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Os(e,e.updateQueue),Vt(e),null);case 4:return Ut(),t===null&&Ho(e.stateNode.containerInfo),Vt(e),null;case 10:return mn(e.type),Vt(e),null;case 19:if(Y(Gt),l=e.memoizedState,l===null)return Vt(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)ul(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=vs(t),o!==null){for(e.flags|=128,ul(l,!1),t=o.updateQueue,e.updateQueue=t,Os(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)jd(n,t),n=n.sibling;return I(Gt,Gt.current&1|2),bt&&dn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ce()>Bs&&(e.flags|=128,r=!0,ul(l,!1),e.lanes=4194304)}else{if(!r)if(t=vs(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Os(e,t),ul(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!bt)return Vt(e),null}else 2*ce()-l.renderingStartTime>Bs&&n!==536870912&&(e.flags|=128,r=!0,ul(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(t=l.last,t!==null?t.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ce(),t.sibling=null,n=Gt.current,I(Gt,r?n&1|2:n&1),bt&&dn(e,l.treeForkCount),t):(Vt(e),null);case 22:case 23:return Ce(e),Hr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),n=e.updateQueue,n!==null&&Os(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Y(ya),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),mn(Kt),Vt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function G1(t,e){switch(Ar(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return mn(Kt),Ut(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return aa(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(u(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ce(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Gt),null;case 4:return Ut(),null;case 10:return mn(e.type),null;case 22:case 23:return Ce(e),Hr(),t!==null&&Y(ya),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return mn(Kt),null;case 25:return null;default:return null}}function lm(t,e){switch(Ar(e),e.tag){case 3:mn(Kt),Ut();break;case 26:case 27:case 5:aa(e);break;case 4:Ut();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:Y(Gt);break;case 10:mn(e.type);break;case 22:case 23:Ce(e),Hr(),t!==null&&Y(ya);break;case 24:mn(Kt)}}function rl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var o=n.create,h=n.inst;l=o(),h.destroy=l}n=n.next}while(n!==r)}}catch(S){Dt(e,e.return,S)}}function Ln(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&t)===t){var h=l.inst,S=h.destroy;if(S!==void 0){h.destroy=void 0,r=e;var T=n,O=S;try{O()}catch(U){Dt(r,T,U)}}}l=l.next}while(l!==o)}}catch(U){Dt(e,e.return,U)}}function sm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Fd(e,n)}catch(l){Dt(t,t.return,l)}}}function um(t,e,n){n.props=Ta(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Dt(t,e,l)}}function ol(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Dt(t,e,r)}}function en(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Dt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Dt(t,e,r)}else n.current=null}function rm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Dt(t,t.return,r)}}function vo(t,e,n){try{var l=t.stateNode;cS(l,t.type,n,e),l[pe]=e}catch(r){Dt(t,t.return,r)}}function om(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zn(t.type)||t.tag===4}function So(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||om(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Zn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bo(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=on));else if(l!==4&&(l===27&&Zn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(bo(t,e,n),t=t.sibling;t!==null;)bo(t,e,n),t=t.sibling}function js(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Zn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(js(t,e,n),t=t.sibling;t!==null;)js(t,e,n),t=t.sibling}function cm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ue(e,l,n),e[ae]=t,e[pe]=n}catch(o){Dt(t,t.return,o)}}var Sn=!1,Ft=!1,To=!1,fm=typeof WeakSet=="function"?WeakSet:Set,ee=null;function X1(t,e){if(t=t.containerInfo,Go=Is,t=Ed(t),hr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var h=0,S=-1,T=-1,O=0,U=0,G=t,_=null;e:for(;;){for(var N;G!==n||r!==0&&G.nodeType!==3||(S=h+r),G!==o||l!==0&&G.nodeType!==3||(T=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(N=G.firstChild)!==null;)_=G,G=N;for(;;){if(G===t)break e;if(_===n&&++O===r&&(S=h),_===o&&++U===l&&(T=h),(N=G.nextSibling)!==null)break;G=_,_=G.parentNode}G=N}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xo={focusedElem:t,selectionRange:n},Is=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,r=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var nt=Ta(n.type,r);t=l.getSnapshotBeforeUpdate(nt,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Dt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Qo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Qo(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ee=t;break}ee=e.return}}function dm(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(t,n),l&4&&rl(5,n);break;case 1:if(Tn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Dt(n,n.return,h)}else{var r=Ta(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Dt(n,n.return,h)}}l&64&&sm(n),l&512&&ol(n,n.return);break;case 3:if(Tn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Fd(t,e)}catch(h){Dt(n,n.return,h)}}break;case 27:e===null&&l&4&&cm(n);case 26:case 5:Tn(t,n),e===null&&l&4&&rm(n),l&512&&ol(n,n.return);break;case 12:Tn(t,n);break;case 31:Tn(t,n),l&4&&pm(t,n);break;case 13:Tn(t,n),l&4&&ym(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=$1.bind(null,n),vS(t,n))));break;case 22:if(l=n.memoizedState!==null||Sn,!l){e=e!==null&&e.memoizedState!==null||Ft,r=Sn;var o=Ft;Sn=l,(Ft=e)&&!o?xn(t,n,(n.subtreeFlags&8772)!==0):Tn(t,n),Sn=r,Ft=o}break;case 30:break;default:Tn(t,n)}}function hm(t){var e=t.alternate;e!==null&&(t.alternate=null,hm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Fu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,ge=!1;function bn(t,e,n){for(n=n.child;n!==null;)mm(t,e,n),n=n.sibling}function mm(t,e,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Zt,n)}catch{}switch(n.tag){case 26:Ft||en(n,e),bn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ft||en(n,e);var l=Bt,r=ge;Zn(n.type)&&(Bt=n.stateNode,ge=!1),bn(t,e,n),vl(n.stateNode),Bt=l,ge=r;break;case 5:Ft||en(n,e);case 6:if(l=Bt,r=ge,Bt=null,bn(t,e,n),Bt=l,ge=r,Bt!==null)if(ge)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(o){Dt(n,e,o)}else try{Bt.removeChild(n.stateNode)}catch(o){Dt(n,e,o)}break;case 18:Bt!==null&&(ge?(t=Bt,sp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),mi(t)):sp(Bt,n.stateNode));break;case 4:l=Bt,r=ge,Bt=n.stateNode.containerInfo,ge=!0,bn(t,e,n),Bt=l,ge=r;break;case 0:case 11:case 14:case 15:Ln(2,n,e),Ft||Ln(4,n,e),bn(t,e,n);break;case 1:Ft||(en(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&um(n,e,l)),bn(t,e,n);break;case 21:bn(t,e,n);break;case 22:Ft=(l=Ft)||n.memoizedState!==null,bn(t,e,n),Ft=l;break;default:bn(t,e,n)}}function pm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{mi(t)}catch(n){Dt(e,e.return,n)}}}function ym(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{mi(t)}catch(n){Dt(e,e.return,n)}}function k1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new fm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new fm),e;default:throw Error(u(435,t.tag))}}function _s(t,e){var n=k1(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=I1.bind(null,t,l);l.then(r,r)}})}function ve(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],o=t,h=e,S=h;t:for(;S!==null;){switch(S.tag){case 27:if(Zn(S.type)){Bt=S.stateNode,ge=!1;break t}break;case 5:Bt=S.stateNode,ge=!1;break t;case 3:case 4:Bt=S.stateNode.containerInfo,ge=!0;break t}S=S.return}if(Bt===null)throw Error(u(160));mm(o,h,r),Bt=null,ge=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)gm(e,t),e=e.sibling}var Qe=null;function gm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),Se(t),l&4&&(Ln(3,t,t.return),rl(3,t),Ln(5,t,t.return));break;case 1:ve(e,t),Se(t),l&512&&(Ft||n===null||en(n,n.return)),l&64&&Sn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Qe;if(ve(e,t),Se(t),l&512&&(Ft||n===null||en(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Bi]||o[ae]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),ue(o,l,n),o[ae]=t,te(o),l=o;break t;case"link":var h=gp("link","href",r).get(l+(n.href||""));if(h){for(var S=0;S<h.length;S++)if(o=h[S],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(S,1);break e}}o=r.createElement(l),ue(o,l,n),r.head.appendChild(o);break;case"meta":if(h=gp("meta","content",r).get(l+(n.content||""))){for(S=0;S<h.length;S++)if(o=h[S],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(S,1);break e}}o=r.createElement(l),ue(o,l,n),r.head.appendChild(o);break;default:throw Error(u(468,l))}o[ae]=t,te(o),l=o}t.stateNode=l}else vp(r,t.type,t.stateNode);else t.stateNode=yp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?vp(r,t.type,t.stateNode):yp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&vo(t,t.memoizedProps,n.memoizedProps)}break;case 27:ve(e,t),Se(t),l&512&&(Ft||n===null||en(n,n.return)),n!==null&&l&4&&vo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ve(e,t),Se(t),l&512&&(Ft||n===null||en(n,n.return)),t.flags&32){r=t.stateNode;try{Ua(r,"")}catch(nt){Dt(t,t.return,nt)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,vo(t,r,n!==null?n.memoizedProps:r)),l&1024&&(To=!0);break;case 6:if(ve(e,t),Se(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(nt){Dt(t,t.return,nt)}}break;case 3:if(Ps=null,r=Qe,Qe=Ks(e.containerInfo),ve(e,t),Qe=r,Se(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{mi(e.containerInfo)}catch(nt){Dt(t,t.return,nt)}To&&(To=!1,vm(t));break;case 4:l=Qe,Qe=Ks(t.stateNode.containerInfo),ve(e,t),Se(t),Qe=l;break;case 12:ve(e,t),Se(t);break;case 31:ve(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 13:ve(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ns=ce()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=Sn,U=Ft;if(Sn=O||r,Ft=U||T,ve(e,t),Ft=U,Sn=O,Se(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||Sn||Ft||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,r)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{S=T.stateNode;var G=T.memoizedProps.style,_=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(nt){Dt(T,T.return,nt)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(nt){Dt(T,T.return,nt)}}}else if(e.tag===18){if(n===null){T=e;try{var N=T.stateNode;r?up(N,!0):up(T.stateNode,!1)}catch(nt){Dt(T,T.return,nt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,_s(t,n))));break;case 19:ve(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 30:break;case 21:break;default:ve(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(om(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=So(t);js(t,o,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ua(h,""),n.flags&=-33);var S=So(t);js(t,S,h);break;case 3:case 4:var T=n.stateNode.containerInfo,O=So(t);bo(t,O,T);break;default:throw Error(u(161))}}catch(U){Dt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function vm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;vm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Tn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)dm(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ln(4,e,e.return),xa(e);break;case 1:en(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&um(e,e.return,n),xa(e);break;case 27:vl(e.stateNode);case 26:case 5:en(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function xn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,o=e,h=o.flags;switch(o.tag){case 0:case 11:case 15:xn(r,o,n),rl(4,o);break;case 1:if(xn(r,o,n),l=o,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Dt(l,l.return,O)}if(l=o,r=l.updateQueue,r!==null){var S=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)Pd(T[r],S)}catch(O){Dt(l,l.return,O)}}n&&h&64&&sm(o),ol(o,o.return);break;case 27:cm(o);case 26:case 5:xn(r,o,n),n&&l===null&&h&4&&rm(o),ol(o,o.return);break;case 12:xn(r,o,n);break;case 31:xn(r,o,n),n&&h&4&&pm(r,o);break;case 13:xn(r,o,n),n&&h&4&&ym(r,o);break;case 22:o.memoizedState===null&&xn(r,o,n),ol(o,o.return);break;case 30:break;default:xn(r,o,n)}e=e.sibling}}function xo(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Pi(n))}function Eo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Pi(t))}function Ke(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sm(t,e,n,l),e=e.sibling}function Sm(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ke(t,e,n,l),r&2048&&rl(9,e);break;case 1:Ke(t,e,n,l);break;case 3:Ke(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Pi(t)));break;case 12:if(r&2048){Ke(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,h=o.id,S=o.onPostCommit;typeof S=="function"&&S(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Dt(e,e.return,T)}}else Ke(t,e,n,l);break;case 31:Ke(t,e,n,l);break;case 13:Ke(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,h=e.alternate,e.memoizedState!==null?o._visibility&2?Ke(t,e,n,l):cl(t,e):o._visibility&2?Ke(t,e,n,l):(o._visibility|=2,ai(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&xo(h,e);break;case 24:Ke(t,e,n,l),r&2048&&Eo(e.alternate,e);break;default:Ke(t,e,n,l)}}function ai(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,h=e,S=n,T=l,O=h.flags;switch(h.tag){case 0:case 11:case 15:ai(o,h,S,T,r),rl(8,h);break;case 23:break;case 22:var U=h.stateNode;h.memoizedState!==null?U._visibility&2?ai(o,h,S,T,r):cl(o,h):(U._visibility|=2,ai(o,h,S,T,r)),r&&O&2048&&xo(h.alternate,h);break;case 24:ai(o,h,S,T,r),r&&O&2048&&Eo(h.alternate,h);break;default:ai(o,h,S,T,r)}e=e.sibling}}function cl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:cl(n,l),r&2048&&xo(l.alternate,l);break;case 24:cl(n,l),r&2048&&Eo(l.alternate,l);break;default:cl(n,l)}e=e.sibling}}var fl=8192;function ii(t,e,n){if(t.subtreeFlags&fl)for(t=t.child;t!==null;)bm(t,e,n),t=t.sibling}function bm(t,e,n){switch(t.tag){case 26:ii(t,e,n),t.flags&fl&&t.memoizedState!==null&&zS(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:ii(t,e,n);break;case 3:case 4:var l=Qe;Qe=Ks(t.stateNode.containerInfo),ii(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=fl,fl=16777216,ii(t,e,n),fl=l):ii(t,e,n));break;default:ii(t,e,n)}}function Tm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function dl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ee=l,Em(l,t)}Tm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(t),t=t.sibling}function xm(t){switch(t.tag){case 0:case 11:case 15:dl(t),t.flags&2048&&Ln(9,t,t.return);break;case 3:dl(t);break;case 12:dl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Vs(t)):dl(t);break;default:dl(t)}}function Vs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ee=l,Em(l,t)}Tm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ln(8,e,e.return),Vs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Vs(e));break;default:Vs(e)}t=t.sibling}}function Em(t,e){for(;ee!==null;){var n=ee;switch(n.tag){case 0:case 11:case 15:Ln(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Pi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ee=l;else t:for(n=t;ee!==null;){l=ee;var r=l.sibling,o=l.return;if(hm(l),l===n){ee=null;break t}if(r!==null){r.return=o,ee=r;break t}ee=o}}}var Z1={getCacheForType:function(t){var e=le(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return le(Kt).controller.signal}},Q1=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Ot=null,yt=null,vt=0,Ct=0,De=null,Hn=!1,li=!1,Ao=!1,En=0,Ht=0,Yn=0,Ea=0,Mo=0,Re=0,si=0,hl=null,be=null,Co=!1,Ns=0,Am=0,Bs=1/0,Us=null,qn=null,$t=0,Gn=null,ui=null,An=0,Do=0,Ro=null,Mm=null,ml=0,wo=null;function we(){return(Mt&2)!==0&&vt!==0?vt&-vt:V.T!==null?No():qf()}function Cm(){if(Re===0)if((vt&536870912)===0||bt){var t=Zl;Zl<<=1,(Zl&3932160)===0&&(Zl=262144),Re=t}else Re=536870912;return t=Me.current,t!==null&&(t.flags|=32),Re}function Te(t,e,n){(t===Ot&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(ri(t,0),Xn(t,vt,Re,!1)),Ni(t,n),((Mt&2)===0||t!==Ot)&&(t===Ot&&((Mt&2)===0&&(Ea|=n),Ht===4&&Xn(t,vt,Re,!1)),nn(t))}function Dm(t,e,n){if((Mt&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Vi(t,e),r=l?P1(t,e):Oo(t,e,!0),o=l;do{if(r===0){li&&!l&&Xn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!K1(n)){r=Oo(t,e,!1),o=!1;continue}if(r===2){if(o=e,t.errorRecoveryDisabledLanes&o)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var S=t;r=hl;var T=S.current.memoizedState.isDehydrated;if(T&&(ri(S,h).flags|=256),h=Oo(S,h,!1),h!==2){if(Ao&&!T){S.errorRecoveryDisabledLanes|=o,Ea|=o,r=4;break t}o=be,be=r,o!==null&&(be===null?be=o:be.push.apply(be,o))}r=h}if(o=!1,r!==2)continue}}if(r===1){ri(t,0),Xn(t,e,0,!0);break}t:{switch(l=t,o=r,o){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Xn(l,e,Re,!Hn);break t;case 2:be=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=Ns+300-ce(),10<r)){if(Xn(l,e,Re,!Hn),Kl(l,0,!0)!==0)break t;An=e,l.timeoutHandle=ip(Rm.bind(null,l,n,be,Us,Co,e,Re,Ea,si,Hn,o,"Throttled",-0,0),r);break t}Rm(l,n,be,Us,Co,e,Re,Ea,si,Hn,o,null,-0,0)}}break}while(!0);nn(t)}function Rm(t,e,n,l,r,o,h,S,T,O,U,G,_,N){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},bm(e,o,G);var nt=(o&62914560)===o?Ns-ce():(o&4194048)===o?Am-ce():0;if(nt=OS(G,nt),nt!==null){An=o,t.cancelPendingCommit=nt(Bm.bind(null,t,e,o,n,l,r,h,S,T,U,G,null,_,N)),Xn(t,o,h,!O);return}}Bm(t,e,o,n,l,r,h,S,T)}function K1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],o=r.getSnapshot;r=r.value;try{if(!Ee(o(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Xn(t,e,n,l){e&=~Mo,e&=~Ea,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var o=31-xe(r),h=1<<o;l[o]=-1,r&=~h}n!==0&&Lf(t,n,e)}function Ls(){return(Mt&6)===0?(pl(0),!1):!0}function zo(){if(yt!==null){if(Ct===0)var t=yt.return;else t=yt,hn=ma=null,Zr(t),$a=null,Wi=0,t=yt;for(;t!==null;)lm(t.alternate,t),t=t.return;yt=null}}function ri(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,hS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),An=0,zo(),Ot=t,yt=n=fn(t.current,null),vt=e,Ct=0,De=null,Hn=!1,li=Vi(t,e),Ao=!1,si=Re=Mo=Ea=Yn=Ht=0,be=hl=null,Co=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-xe(l),o=1<<r;e|=t[r],l&=~o}return En=e,ls(),n}function wm(t,e){dt=null,V.H=ll,e===Wa||e===hs?(e=Zd(),Ct=3):e===_r?(e=Zd(),Ct=4):Ct=e===uo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,yt===null&&(Ht=1,Ds(t,Ve(e,t.current)))}function zm(){var t=Me.current;return t===null?!0:(vt&4194048)===vt?Le===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Le:!1}function Om(){var t=V.H;return V.H=ll,t===null?ll:t}function jm(){var t=V.A;return V.A=Z1,t}function Hs(){Ht=4,Hn||(vt&4194048)!==vt&&Me.current!==null||(li=!0),(Yn&134217727)===0&&(Ea&134217727)===0||Ot===null||Xn(Ot,vt,Re,!1)}function Oo(t,e,n){var l=Mt;Mt|=2;var r=Om(),o=jm();(Ot!==t||vt!==e)&&(Us=null,ri(t,e)),e=!1;var h=Ht;t:do try{if(Ct!==0&&yt!==null){var S=yt,T=De;switch(Ct){case 8:zo(),h=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var O=Ct;if(Ct=0,De=null,oi(t,S,T,O),n&&li){h=0;break t}break;default:O=Ct,Ct=0,De=null,oi(t,S,T,O)}}J1(),h=Ht;break}catch(U){wm(t,U)}while(!0);return e&&t.shellSuspendCounter++,hn=ma=null,Mt=l,V.H=r,V.A=o,yt===null&&(Ot=null,vt=0,ls()),h}function J1(){for(;yt!==null;)_m(yt)}function P1(t,e){var n=Mt;Mt|=2;var l=Om(),r=jm();Ot!==t||vt!==e?(Us=null,Bs=ce()+500,ri(t,e)):li=Vi(t,e);t:do try{if(Ct!==0&&yt!==null){e=yt;var o=De;e:switch(Ct){case 1:Ct=0,De=null,oi(t,e,o,1);break;case 2:case 9:if(Xd(o)){Ct=0,De=null,Vm(e);break}e=function(){Ct!==2&&Ct!==9||Ot!==t||(Ct=7),nn(t)},o.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:Xd(o)?(Ct=0,De=null,Vm(e)):(Ct=0,De=null,oi(t,e,o,7));break;case 5:var h=null;switch(yt.tag){case 26:h=yt.memoizedState;case 5:case 27:var S=yt;if(h?Sp(h):S.stateNode.complete){Ct=0,De=null;var T=S.sibling;if(T!==null)yt=T;else{var O=S.return;O!==null?(yt=O,Ys(O)):yt=null}break e}}Ct=0,De=null,oi(t,e,o,5);break;case 6:Ct=0,De=null,oi(t,e,o,6);break;case 8:zo(),Ht=6;break t;default:throw Error(u(462))}}F1();break}catch(U){wm(t,U)}while(!0);return hn=ma=null,V.H=l,V.A=r,Mt=n,yt!==null?0:(Ot=null,vt=0,ls(),Ht)}function F1(){for(;yt!==null&&!Xu();)_m(yt)}function _m(t){var e=am(t.alternate,t,En);t.memoizedProps=t.pendingProps,e===null?Ys(t):yt=e}function Vm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Wh(n,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=Wh(n,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Zr(e);default:lm(n,e),e=yt=jd(e,En),e=am(n,e,En)}t.memoizedProps=t.pendingProps,e===null?Ys(t):yt=e}function oi(t,e,n,l){hn=ma=null,Zr(e),$a=null,Wi=0;var r=e.return;try{if(L1(t,r,e,n,vt)){Ht=1,Ds(t,Ve(n,t.current)),yt=null;return}}catch(o){if(r!==null)throw yt=r,o;Ht=1,Ds(t,Ve(n,t.current)),yt=null;return}e.flags&32768?(bt||l===1?t=!0:li||(vt&536870912)!==0?t=!1:(Hn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Me.current,l!==null&&l.tag===13&&(l.flags|=16384))),Nm(e,t)):Ys(e)}function Ys(t){var e=t;do{if((e.flags&32768)!==0){Nm(e,Hn);return}t=e.return;var n=q1(e.alternate,e,En);if(n!==null){yt=n;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Nm(t,e){do{var n=G1(t.alternate,t);if(n!==null){n.flags&=32767,yt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=n}while(t!==null);Ht=6,yt=null}function Bm(t,e,n,l,r,o,h,S,T){t.cancelPendingCommit=null;do qs();while($t!==0);if((Mt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=vr,wv(t,n,o,h,S,T),t===Ot&&(yt=Ot=null,vt=0),ui=e,Gn=t,An=n,Do=o,Ro=r,Mm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tS(za,function(){return qm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=V.T,V.T=null,r=F.p,F.p=2,h=Mt,Mt|=4;try{X1(t,e,n)}finally{Mt=h,F.p=r,V.T=l}}$t=1,Um(),Lm(),Hm()}}function Um(){if($t===1){$t=0;var t=Gn,e=ui,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var l=F.p;F.p=2;var r=Mt;Mt|=4;try{gm(e,t);var o=Xo,h=Ed(t.containerInfo),S=o.focusedElem,T=o.selectionRange;if(h!==S&&S&&S.ownerDocument&&xd(S.ownerDocument.documentElement,S)){if(T!==null&&hr(S)){var O=T.start,U=T.end;if(U===void 0&&(U=O),"selectionStart"in S)S.selectionStart=O,S.selectionEnd=Math.min(U,S.value.length);else{var G=S.ownerDocument||document,_=G&&G.defaultView||window;if(_.getSelection){var N=_.getSelection(),nt=S.textContent.length,st=Math.min(T.start,nt),zt=T.end===void 0?st:Math.min(T.end,nt);!N.extend&&st>zt&&(h=zt,zt=st,st=h);var R=Td(S,st),D=Td(S,zt);if(R&&D&&(N.rangeCount!==1||N.anchorNode!==R.node||N.anchorOffset!==R.offset||N.focusNode!==D.node||N.focusOffset!==D.offset)){var z=G.createRange();z.setStart(R.node,R.offset),N.removeAllRanges(),st>zt?(N.addRange(z),N.extend(D.node,D.offset)):(z.setEnd(D.node,D.offset),N.addRange(z))}}}}for(G=[],N=S;N=N.parentNode;)N.nodeType===1&&G.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var L=G[S];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Is=!!Go,Xo=Go=null}finally{Mt=r,F.p=l,V.T=n}}t.current=e,$t=2}}function Lm(){if($t===2){$t=0;var t=Gn,e=ui,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var l=F.p;F.p=2;var r=Mt;Mt|=4;try{dm(t,e.alternate,e)}finally{Mt=r,F.p=l,V.T=n}}$t=3}}function Hm(){if($t===4||$t===3){$t=0,Gl();var t=Gn,e=ui,n=An,l=Mm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,ui=Gn=null,Ym(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(qn=null),Ju(n),e=e.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Zt,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=V.T,r=F.p,F.p=2,V.T=null;try{for(var o=t.onRecoverableError,h=0;h<l.length;h++){var S=l[h];o(S.value,{componentStack:S.stack})}}finally{V.T=e,F.p=r}}(An&3)!==0&&qs(),nn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===wo?ml++:(ml=0,wo=t):ml=0,pl(0)}}function Ym(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Pi(e)))}function qs(){return Um(),Lm(),Hm(),qm()}function qm(){if($t!==5)return!1;var t=Gn,e=Do;Do=0;var n=Ju(An),l=V.T,r=F.p;try{F.p=32>n?32:n,V.T=null,n=Ro,Ro=null;var o=Gn,h=An;if($t=0,ui=Gn=null,An=0,(Mt&6)!==0)throw Error(u(331));var S=Mt;if(Mt|=4,xm(o.current),Sm(o,o.current,h,n),Mt=S,pl(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Zt,o)}catch{}return!0}finally{F.p=r,V.T=l,Ym(t,e)}}function Gm(t,e,n){e=Ve(n,e),e=so(t.stateNode,e,2),t=Nn(t,e,2),t!==null&&(Ni(t,2),nn(t))}function Dt(t,e,n){if(t.tag===3)Gm(t,t,n);else for(;e!==null;){if(e.tag===3){Gm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qn===null||!qn.has(l))){t=Ve(n,t),n=Xh(2),l=Nn(e,n,2),l!==null&&(kh(n,l,e,t),Ni(l,2),nn(l));break}}e=e.return}}function jo(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Q1;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(Ao=!0,r.add(n),t=W1.bind(null,t,e,n),e.then(t,t))}function W1(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(vt&n)===n&&(Ht===4||Ht===3&&(vt&62914560)===vt&&300>ce()-Ns?(Mt&2)===0&&ri(t,0):Mo|=n,si===vt&&(si=0)),nn(t)}function Xm(t,e){e===0&&(e=Uf()),t=fa(t,e),t!==null&&(Ni(t,e),nn(t))}function $1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Xm(t,n)}function I1(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(e),Xm(t,n)}function tS(t,e){return zi(t,e)}var Gs=null,ci=null,_o=!1,Xs=!1,Vo=!1,kn=0;function nn(t){t!==ci&&t.next===null&&(ci===null?Gs=ci=t:ci=ci.next=t),Xs=!0,_o||(_o=!0,nS())}function pl(t,e){if(!Vo&&Xs){Vo=!0;do for(var n=!1,l=Gs;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var o=0;else{var h=l.suspendedLanes,S=l.pingedLanes;o=(1<<31-xe(42|t)+1)-1,o&=r&~(h&~S),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Km(l,o))}else o=vt,o=Kl(l,l===Ot?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Vi(l,o)||(n=!0,Km(l,o));l=l.next}while(n);Vo=!1}}function eS(){km()}function km(){Xs=_o=!1;var t=0;kn!==0&&dS()&&(t=kn);for(var e=ce(),n=null,l=Gs;l!==null;){var r=l.next,o=Zm(l,e);o===0?(l.next=null,n===null?Gs=r:n.next=r,r===null&&(ci=n)):(n=l,(t!==0||(o&3)!==0)&&(Xs=!0)),l=r}$t!==0&&$t!==5||pl(t),kn!==0&&(kn=0)}function Zm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var h=31-xe(o),S=1<<h,T=r[h];T===-1?((S&n)===0||(S&l)!==0)&&(r[h]=Rv(S,e)):T<=e&&(t.expiredLanes|=S),o&=~S}if(e=Ot,n=vt,n=Kl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&la(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Vi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&la(l),Ju(n)){case 2:case 8:n=ji;break;case 32:n=za;break;case 268435456:n=_i;break;default:n=za}return l=Qm.bind(null,t),n=zi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&la(l),t.callbackPriority=2,t.callbackNode=null,2}function Qm(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(qs()&&t.callbackNode!==n)return null;var l=vt;return l=Kl(t,t===Ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Dm(t,l,e),Zm(t,ce()),t.callbackNode!=null&&t.callbackNode===n?Qm.bind(null,t):null)}function Km(t,e){if(qs())return null;Dm(t,e,!0)}function nS(){mS(function(){(Mt&6)!==0?zi(Oi,eS):km()})}function No(){if(kn===0){var t=Pa;t===0&&(t=kl,kl<<=1,(kl&261888)===0&&(kl=256)),kn=t}return kn}function Jm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Wl(""+t)}function Pm(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function aS(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=Jm((r[pe]||null).action),h=l.submitter;h&&(e=(e=h[pe]||null)?Jm(e.formAction):h.getAttribute("formAction"),e!==null&&(o=e,h=null));var S=new es("action","action",null,l,r);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(kn!==0){var T=h?Pm(r,h):new FormData(r);to(n,{pending:!0,data:T,method:r.method,action:o},null,T)}}else typeof o=="function"&&(S.preventDefault(),T=h?Pm(r,h):new FormData(r),to(n,{pending:!0,data:T,method:r.method,action:o},o,T))},currentTarget:r}]})}}for(var Bo=0;Bo<gr.length;Bo++){var Uo=gr[Bo],iS=Uo.toLowerCase(),lS=Uo[0].toUpperCase()+Uo.slice(1);Ze(iS,"on"+lS)}Ze(Cd,"onAnimationEnd"),Ze(Dd,"onAnimationIteration"),Ze(Rd,"onAnimationStart"),Ze("dblclick","onDoubleClick"),Ze("focusin","onFocus"),Ze("focusout","onBlur"),Ze(T1,"onTransitionRun"),Ze(x1,"onTransitionStart"),Ze(E1,"onTransitionCancel"),Ze(wd,"onTransitionEnd"),Na("onMouseEnter",["mouseout","mouseover"]),Na("onMouseLeave",["mouseout","mouseover"]),Na("onPointerEnter",["pointerout","pointerover"]),Na("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yl="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(" "),sS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function Fm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var o=void 0;if(e)for(var h=l.length-1;0<=h;h--){var S=l[h],T=S.instance,O=S.currentTarget;if(S=S.listener,T!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=O;try{o(r)}catch(U){is(U)}r.currentTarget=null,o=T}else for(h=0;h<l.length;h++){if(S=l[h],T=S.instance,O=S.currentTarget,S=S.listener,T!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=O;try{o(r)}catch(U){is(U)}r.currentTarget=null,o=T}}}}function gt(t,e){var n=e[Pu];n===void 0&&(n=e[Pu]=new Set);var l=t+"__bubble";n.has(l)||(Wm(e,t,2,!1),n.add(l))}function Lo(t,e,n){var l=0;e&&(l|=4),Wm(n,t,l,e)}var ks="_reactListening"+Math.random().toString(36).slice(2);function Ho(t){if(!t[ks]){t[ks]=!0,kf.forEach(function(n){n!=="selectionchange"&&(sS.has(n)||Lo(n,!1,t),Lo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ks]||(e[ks]=!0,Lo("selectionchange",!1,e))}}function Wm(t,e,n,l){switch(Cp(e)){case 2:var r=VS;break;case 8:r=NS;break;default:r=tc}n=r.bind(null,e,n,t),r=void 0,!ir||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Yo(t,e,n,l,r){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var S=l.stateNode.containerInfo;if(S===r)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;S!==null;){if(h=ja(S),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=o=h;continue t}S=S.parentNode}}l=l.return}nd(function(){var O=o,U=nr(n),G=[];t:{var _=zd.get(t);if(_!==void 0){var N=es,nt=t;switch(t){case"keypress":if(Il(n)===0)break t;case"keydown":case"keyup":N=Iv;break;case"focusin":nt="focus",N=rr;break;case"focusout":nt="blur",N=rr;break;case"beforeblur":case"afterblur":N=rr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=n1;break;case Cd:case Dd:case Rd:N=kv;break;case wd:N=i1;break;case"scroll":case"scrollend":N=Hv;break;case"wheel":N=s1;break;case"copy":case"cut":case"paste":N=Qv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=ud;break;case"toggle":case"beforetoggle":N=r1}var st=(e&4)!==0,zt=!st&&(t==="scroll"||t==="scrollend"),R=st?_!==null?_+"Capture":null:_;st=[];for(var D=O,z;D!==null;){var L=D;if(z=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||z===null||R===null||(L=Li(D,R),L!=null&&st.push(gl(D,L,z))),zt)break;D=D.return}0<st.length&&(_=new N(_,nt,null,n,U),G.push({event:_,listeners:st}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",_&&n!==er&&(nt=n.relatedTarget||n.fromElement)&&(ja(nt)||nt[Oa]))break t;if((N||_)&&(_=U.window===U?U:(_=U.ownerDocument)?_.defaultView||_.parentWindow:window,N?(nt=n.relatedTarget||n.toElement,N=O,nt=nt?ja(nt):null,nt!==null&&(zt=d(nt),st=nt.tag,nt!==zt||st!==5&&st!==27&&st!==6)&&(nt=null)):(N=null,nt=O),N!==nt)){if(st=ld,L="onMouseLeave",R="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(st=ud,L="onPointerLeave",R="onPointerEnter",D="pointer"),zt=N==null?_:Ui(N),z=nt==null?_:Ui(nt),_=new st(L,D+"leave",N,n,U),_.target=zt,_.relatedTarget=z,L=null,ja(U)===O&&(st=new st(R,D+"enter",nt,n,U),st.target=z,st.relatedTarget=zt,L=st),zt=L,N&&nt)e:{for(st=uS,R=N,D=nt,z=0,L=R;L;L=st(L))z++;L=0;for(var lt=D;lt;lt=st(lt))L++;for(;0<z-L;)R=st(R),z--;for(;0<L-z;)D=st(D),L--;for(;z--;){if(R===D||D!==null&&R===D.alternate){st=R;break e}R=st(R),D=st(D)}st=null}else st=null;N!==null&&$m(G,_,N,st,!1),nt!==null&&zt!==null&&$m(G,zt,nt,st,!0)}}t:{if(_=O?Ui(O):window,N=_.nodeName&&_.nodeName.toLowerCase(),N==="select"||N==="input"&&_.type==="file")var Et=pd;else if(hd(_))if(yd)Et=v1;else{Et=y1;var it=p1}else N=_.nodeName,!N||N.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?O&&tr(O.elementType)&&(Et=pd):Et=g1;if(Et&&(Et=Et(t,O))){md(G,Et,n,U);break t}it&&it(t,_,O),t==="focusout"&&O&&_.type==="number"&&O.memoizedProps.value!=null&&Iu(_,"number",_.value)}switch(it=O?Ui(O):window,t){case"focusin":(hd(it)||it.contentEditable==="true")&&(qa=it,mr=O,Qi=null);break;case"focusout":Qi=mr=qa=null;break;case"mousedown":pr=!0;break;case"contextmenu":case"mouseup":case"dragend":pr=!1,Ad(G,n,U);break;case"selectionchange":if(b1)break;case"keydown":case"keyup":Ad(G,n,U)}var mt;if(cr)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else Ya?fd(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(rd&&n.locale!=="ko"&&(Ya||St!=="onCompositionStart"?St==="onCompositionEnd"&&Ya&&(mt=ad()):(Rn=U,lr="value"in Rn?Rn.value:Rn.textContent,Ya=!0)),it=Zs(O,St),0<it.length&&(St=new sd(St,t,null,n,U),G.push({event:St,listeners:it}),mt?St.data=mt:(mt=dd(n),mt!==null&&(St.data=mt)))),(mt=c1?f1(t,n):d1(t,n))&&(St=Zs(O,"onBeforeInput"),0<St.length&&(it=new sd("onBeforeInput","beforeinput",null,n,U),G.push({event:it,listeners:St}),it.data=mt)),aS(G,t,O,n,U)}Fm(G,e)})}function gl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zs(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Li(t,n),r!=null&&l.unshift(gl(t,r,o)),r=Li(t,e),r!=null&&l.push(gl(t,r,o))),t.tag===3)return l;t=t.return}return[]}function uS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $m(t,e,n,l,r){for(var o=e._reactName,h=[];n!==null&&n!==l;){var S=n,T=S.alternate,O=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||O===null||(T=O,r?(O=Li(n,o),O!=null&&h.unshift(gl(n,O,T))):r||(O=Li(n,o),O!=null&&h.push(gl(n,O,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var rS=/\r\n?/g,oS=/\u0000|\uFFFD/g;function Im(t){return(typeof t=="string"?t:""+t).replace(rS,`
49
- `).replace(oS,"")}function tp(t,e){return e=Im(e),Im(t)===e}function wt(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ua(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ua(t,""+l);break;case"className":Pl(t,"class",l);break;case"tabIndex":Pl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Pl(t,n,l);break;case"style":td(t,l,o);break;case"data":if(e!=="object"){Pl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Wl(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&wt(t,e,"name",r.name,r,null),wt(t,e,"formEncType",r.formEncType,r,null),wt(t,e,"formMethod",r.formMethod,r,null),wt(t,e,"formTarget",r.formTarget,r,null)):(wt(t,e,"encType",r.encType,r,null),wt(t,e,"method",r.method,r,null),wt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Wl(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=on);break;case"onScroll":l!=null&&gt("scroll",t);break;case"onScrollEnd":l!=null&&gt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Wl(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":gt("beforetoggle",t),gt("toggle",t),Jl(t,"popover",l);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Jl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Uv.get(n)||n,Jl(t,n,l))}}function qo(t,e,n,l,r,o){switch(n){case"style":td(t,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Ua(t,l):(typeof l=="number"||typeof l=="bigint")&&Ua(t,""+l);break;case"onScroll":l!=null&&gt("scroll",t);break;case"onScrollEnd":l!=null&&gt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),o=t[pe]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,r),typeof l=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Jl(t,n,l)}}}function ue(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",t),gt("load",t);var l=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var h=n[o];if(h!=null)switch(o){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:wt(t,e,o,h,n,null)}}r&&wt(t,e,"srcSet",n.srcSet,n,null),l&&wt(t,e,"src",n.src,n,null);return;case"input":gt("invalid",t);var S=o=h=r=null,T=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var U=n[l];if(U!=null)switch(l){case"name":r=U;break;case"type":h=U;break;case"checked":T=U;break;case"defaultChecked":O=U;break;case"value":o=U;break;case"defaultValue":S=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,e));break;default:wt(t,e,l,U,n,null)}}Ff(t,o,S,T,O,h,r,!1);return;case"select":gt("invalid",t),l=h=o=null;for(r in n)if(n.hasOwnProperty(r)&&(S=n[r],S!=null))switch(r){case"value":o=S;break;case"defaultValue":h=S;break;case"multiple":l=S;default:wt(t,e,r,S,n,null)}e=o,n=h,t.multiple=!!l,e!=null?Ba(t,!!l,e,!1):n!=null&&Ba(t,!!l,n,!0);return;case"textarea":gt("invalid",t),o=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(S=n[h],S!=null))switch(h){case"value":l=S;break;case"defaultValue":r=S;break;case"children":o=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:wt(t,e,h,S,n,null)}$f(t,l,r,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:wt(t,e,T,l,n,null)}return;case"dialog":gt("beforetoggle",t),gt("toggle",t),gt("cancel",t),gt("close",t);break;case"iframe":case"object":gt("load",t);break;case"video":case"audio":for(l=0;l<yl.length;l++)gt(yl[l],t);break;case"image":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"embed":case"source":case"link":gt("error",t),gt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:wt(t,e,O,l,n,null)}return;default:if(tr(e)){for(U in n)n.hasOwnProperty(U)&&(l=n[U],l!==void 0&&qo(t,e,U,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&wt(t,e,S,l,n,null))}function cS(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,h=null,S=null,T=null,O=null,U=null;for(N in n){var G=n[N];if(n.hasOwnProperty(N)&&G!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(N)||wt(t,e,N,null,l,G)}}for(var _ in l){var N=l[_];if(G=n[_],l.hasOwnProperty(_)&&(N!=null||G!=null))switch(_){case"type":o=N;break;case"name":r=N;break;case"checked":O=N;break;case"defaultChecked":U=N;break;case"value":h=N;break;case"defaultValue":S=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,e));break;default:N!==G&&wt(t,e,_,N,l,G)}}$u(t,h,S,T,O,U,o,r);return;case"select":N=h=S=_=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":N=T;default:l.hasOwnProperty(o)||wt(t,e,o,null,l,T)}for(r in l)if(o=l[r],T=n[r],l.hasOwnProperty(r)&&(o!=null||T!=null))switch(r){case"value":_=o;break;case"defaultValue":S=o;break;case"multiple":h=o;default:o!==T&&wt(t,e,r,o,l,T)}e=S,n=h,l=N,_!=null?Ba(t,!!n,_,!1):!!l!=!!n&&(e!=null?Ba(t,!!n,e,!0):Ba(t,!!n,n?[]:"",!1));return;case"textarea":N=_=null;for(S in n)if(r=n[S],n.hasOwnProperty(S)&&r!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:wt(t,e,S,null,l,r)}for(h in l)if(r=l[h],o=n[h],l.hasOwnProperty(h)&&(r!=null||o!=null))switch(h){case"value":_=r;break;case"defaultValue":N=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==o&&wt(t,e,h,r,l,o)}Wf(t,_,N);return;case"option":for(var nt in n)if(_=n[nt],n.hasOwnProperty(nt)&&_!=null&&!l.hasOwnProperty(nt))switch(nt){case"selected":t.selected=!1;break;default:wt(t,e,nt,null,l,_)}for(T in l)if(_=l[T],N=n[T],l.hasOwnProperty(T)&&_!==N&&(_!=null||N!=null))switch(T){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:wt(t,e,T,_,l,N)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in n)_=n[st],n.hasOwnProperty(st)&&_!=null&&!l.hasOwnProperty(st)&&wt(t,e,st,null,l,_);for(O in l)if(_=l[O],N=n[O],l.hasOwnProperty(O)&&_!==N&&(_!=null||N!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:wt(t,e,O,_,l,N)}return;default:if(tr(e)){for(var zt in n)_=n[zt],n.hasOwnProperty(zt)&&_!==void 0&&!l.hasOwnProperty(zt)&&qo(t,e,zt,void 0,l,_);for(U in l)_=l[U],N=n[U],!l.hasOwnProperty(U)||_===N||_===void 0&&N===void 0||qo(t,e,U,_,l,N);return}}for(var R in n)_=n[R],n.hasOwnProperty(R)&&_!=null&&!l.hasOwnProperty(R)&&wt(t,e,R,null,l,_);for(G in l)_=l[G],N=n[G],!l.hasOwnProperty(G)||_===N||_==null&&N==null||wt(t,e,G,_,l,N)}function ep(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],o=r.transferSize,h=r.initiatorType,S=r.duration;if(o&&S&&ep(h)){for(h=0,S=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],O=T.startTime;if(O>S)break;var U=T.transferSize,G=T.initiatorType;U&&ep(G)&&(T=T.responseEnd,h+=U*(T<S?1:(S-O)/(T-O)))}if(--l,e+=8*(o+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Go=null,Xo=null;function Qs(t){return t.nodeType===9?t:t.ownerDocument}function np(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ap(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ko(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Zo=null;function dS(){var t=window.event;return t&&t.type==="popstate"?t===Zo?!1:(Zo=t,!0):(Zo=null,!1)}var ip=typeof setTimeout=="function"?setTimeout:void 0,hS=typeof clearTimeout=="function"?clearTimeout:void 0,lp=typeof Promise=="function"?Promise:void 0,mS=typeof queueMicrotask=="function"?queueMicrotask:typeof lp<"u"?function(t){return lp.resolve(null).then(t).catch(pS)}:ip;function pS(t){setTimeout(function(){throw t})}function Zn(t){return t==="head"}function sp(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),mi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")vl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,vl(n);for(var o=n.firstChild;o;){var h=o.nextSibling,S=o.nodeName;o[Bi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&vl(t.ownerDocument.body);n=r}while(n);mi(e)}function up(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Qo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qo(n),Fu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function yS(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Bi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function gS(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=He(t.nextSibling),t===null))return null;return t}function rp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function Ko(t){return t.data==="$?"||t.data==="$~"}function Jo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function vS(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function He(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Po=null;function op(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return He(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function cp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function fp(t,e,n){switch(e=Qs(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function vl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Fu(t)}var Ye=new Map,dp=new Set;function Ks(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=F.d;F.d={f:SS,r:bS,D:TS,C:xS,L:ES,m:AS,X:CS,S:MS,M:DS};function SS(){var t=Mn.f(),e=Ls();return t||e}function bS(t){var e=_a(t);e!==null&&e.tag===5&&e.type==="form"?wh(e):Mn.r(t)}var fi=typeof document>"u"?null:document;function hp(t,e,n){var l=fi;if(l&&typeof e=="string"&&e){var r=je(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),dp.has(r)||(dp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ue(e,"link",t),te(e),l.head.appendChild(e)))}}function TS(t){Mn.D(t),hp("dns-prefetch",t,null)}function xS(t,e){Mn.C(t,e),hp("preconnect",t,e)}function ES(t,e,n){Mn.L(t,e,n);var l=fi;if(l&&t&&e){var r='link[rel="preload"][as="'+je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+je(n.imageSizes)+'"]')):r+='[href="'+je(t)+'"]';var o=r;switch(e){case"style":o=di(t);break;case"script":o=hi(t)}Ye.has(o)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ye.set(o,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Sl(o))||e==="script"&&l.querySelector(bl(o))||(e=l.createElement("link"),ue(e,"link",t),te(e),l.head.appendChild(e)))}}function AS(t,e){Mn.m(t,e);var n=fi;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+je(l)+'"][href="'+je(t)+'"]',o=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=hi(t)}if(!Ye.has(o)&&(t=v({rel:"modulepreload",href:t},e),Ye.set(o,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bl(o)))return}l=n.createElement("link"),ue(l,"link",t),te(l),n.head.appendChild(l)}}}function MS(t,e,n){Mn.S(t,e,n);var l=fi;if(l&&t){var r=Va(l).hoistableStyles,o=di(t);e=e||"default";var h=r.get(o);if(!h){var S={loading:0,preload:null};if(h=l.querySelector(Sl(o)))S.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(o))&&Fo(t,n);var T=h=l.createElement("link");te(T),ue(T,"link",t),T._p=new Promise(function(O,U){T.onload=O,T.onerror=U}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Js(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},r.set(o,h)}}}function CS(t,e){Mn.X(t,e);var n=fi;if(n&&t){var l=Va(n).hoistableScripts,r=hi(t),o=l.get(r);o||(o=n.querySelector(bl(r)),o||(t=v({src:t,async:!0},e),(e=Ye.get(r))&&Wo(t,e),o=n.createElement("script"),te(o),ue(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function DS(t,e){Mn.M(t,e);var n=fi;if(n&&t){var l=Va(n).hoistableScripts,r=hi(t),o=l.get(r);o||(o=n.querySelector(bl(r)),o||(t=v({src:t,async:!0,type:"module"},e),(e=Ye.get(r))&&Wo(t,e),o=n.createElement("script"),te(o),ue(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function mp(t,e,n,l){var r=(r=ht.current)?Ks(r):null;if(!r)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=di(n.href),n=Va(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=di(n.href);var o=Va(r).hoistableStyles,h=o.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,h),(o=r.querySelector(Sl(t)))&&!o._p&&(h.instance=o,h.state.loading=5),Ye.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ye.set(t,n),o||RS(r,t,n,h.state))),e&&l===null)throw Error(u(528,""));return h}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=hi(n),n=Va(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function di(t){return'href="'+je(t)+'"'}function Sl(t){return'link[rel="stylesheet"]['+t+"]"}function pp(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function RS(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ue(e,"link",n),te(e),t.head.appendChild(e))}function hi(t){return'[src="'+je(t)+'"]'}function bl(t){return"script[async]"+t}function yp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+je(n.href)+'"]');if(l)return e.instance=l,te(l),l;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),te(l),ue(l,"style",r),Js(l,n.precedence,t),e.instance=l;case"stylesheet":r=di(n.href);var o=t.querySelector(Sl(r));if(o)return e.state.loading|=4,e.instance=o,te(o),o;l=pp(n),(r=Ye.get(r))&&Fo(l,r),o=(t.ownerDocument||t).createElement("link"),te(o);var h=o;return h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ue(o,"link",l),e.state.loading|=4,Js(o,n.precedence,t),e.instance=o;case"script":return o=hi(n.src),(r=t.querySelector(bl(o)))?(e.instance=r,te(r),r):(l=n,(r=Ye.get(o))&&(l=v({},n),Wo(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),te(r),ue(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Js(l,n.precedence,t));return e.instance}function Js(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,o=r,h=0;h<l.length;h++){var S=l[h];if(S.dataset.precedence===e)o=S;else if(o!==r)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Fo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Wo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ps=null;function gp(t,e,n){if(Ps===null){var l=new Map,r=Ps=new Map;r.set(n,l)}else r=Ps,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var o=n[r];if(!(o[Bi]||o[ae]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(e)||"";h=t+h;var S=l.get(h);S?S.push(o):l.set(h,[o])}}return l}function vp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function wS(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Sp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function zS(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=di(l.href),o=e.querySelector(Sl(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Fs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,te(o);return}o=e.ownerDocument||e,l=pp(l),(r=Ye.get(r))&&Fo(l,r),o=o.createElement("link"),te(o);var h=o;h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ue(o,"link",l),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Fs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var $o=0;function OS(t,e){return t.stylesheets&&t.count===0&&$s(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&$s(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&$o===0&&($o=62500*fS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&$s(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>$o?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Fs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ws=null;function $s(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ws=new Map,e.forEach(jS,t),Ws=null,Fs.call(t))}function jS(t,e){if(!(e.state.loading&4)){var n=Ws.get(t);if(n)var l=n.get(null);else{n=new Map,Ws.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var h=r[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),o=n.get(h)||l,o===l&&n.set(null,r),n.set(h,r),this.count++,l=Fs.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),o?o.parentNode.insertBefore(r,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Tl={$$typeof:H,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function _S(t,e,n,l,r,o,h,S,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.hiddenUpdates=Qu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function bp(t,e,n,l,r,o,h,S,T,O,U,G){return t=new _S(t,e,n,h,T,O,U,G,S),e=1,o===!0&&(e|=24),o=Ae(3,null,null,e),t.current=o,o.stateNode=t,e=zr(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},Vr(o),t}function Tp(t){return t?(t=ka,t):ka}function xp(t,e,n,l,r,o){r=Tp(r),l.context===null?l.context=r:l.pendingContext=r,l=Vn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Nn(t,l,e),n!==null&&(Te(n,t,e),Ii(n,t,e))}function Ep(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Io(t,e){Ep(t,e),(t=t.alternate)&&Ep(t,e)}function Ap(t){if(t.tag===13||t.tag===31){var e=fa(t,67108864);e!==null&&Te(e,t,67108864),Io(t,67108864)}}function Mp(t){if(t.tag===13||t.tag===31){var e=we();e=Ku(e);var n=fa(t,e);n!==null&&Te(n,t,e),Io(t,e)}}var Is=!0;function VS(t,e,n,l){var r=V.T;V.T=null;var o=F.p;try{F.p=2,tc(t,e,n,l)}finally{F.p=o,V.T=r}}function NS(t,e,n,l){var r=V.T;V.T=null;var o=F.p;try{F.p=8,tc(t,e,n,l)}finally{F.p=o,V.T=r}}function tc(t,e,n,l){if(Is){var r=ec(l);if(r===null)Yo(t,e,l,tu,n),Dp(t,l);else if(US(r,t,e,n,l))l.stopPropagation();else if(Dp(t,l),e&4&&-1<BS.indexOf(t)){for(;r!==null;){var o=_a(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=sa(o.pendingLanes);if(h!==0){var S=o;for(S.pendingLanes|=2,S.entangledLanes|=2;h;){var T=1<<31-xe(h);S.entanglements[1]|=T,h&=~T}nn(o),(Mt&6)===0&&(Bs=ce()+500,pl(0))}}break;case 31:case 13:S=fa(o,2),S!==null&&Te(S,o,2),Ls(),Io(o,2)}if(o=ec(l),o===null&&Yo(t,e,l,tu,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else Yo(t,e,l,null,n)}}function ec(t){return t=nr(t),nc(t)}var tu=null;function nc(t){if(tu=null,t=ja(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return tu=t,null}function Cp(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Xl()){case Oi:return 2;case ji:return 8;case za:case ku:return 32;case _i:return 268435456;default:return 32}default:return 32}}var ac=!1,Qn=null,Kn=null,Jn=null,xl=new Map,El=new Map,Pn=[],BS="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".split(" ");function Dp(t,e){switch(t){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":xl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":El.delete(e.pointerId)}}function Al(t,e,n,l,r,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[r]},e!==null&&(e=_a(e),e!==null&&Ap(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function US(t,e,n,l,r){switch(e){case"focusin":return Qn=Al(Qn,t,e,n,l,r),!0;case"dragenter":return Kn=Al(Kn,t,e,n,l,r),!0;case"mouseover":return Jn=Al(Jn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return xl.set(o,Al(xl.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,El.set(o,Al(El.get(o)||null,t,e,n,l,r)),!0}return!1}function Rp(t){var e=ja(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Gf(t.priority,function(){Mp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Gf(t.priority,function(){Mp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function eu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ec(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);er=l,n.target.dispatchEvent(l),er=null}else return e=_a(n),e!==null&&Ap(e),t.blockedOn=n,!1;e.shift()}return!0}function wp(t,e,n){eu(t)&&n.delete(e)}function LS(){ac=!1,Qn!==null&&eu(Qn)&&(Qn=null),Kn!==null&&eu(Kn)&&(Kn=null),Jn!==null&&eu(Jn)&&(Jn=null),xl.forEach(wp),El.forEach(wp)}function nu(t,e){t.blockedOn===e&&(t.blockedOn=null,ac||(ac=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,LS)))}var au=null;function zp(t){au!==t&&(au=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){au===t&&(au=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(nc(l||n)===null)continue;break}var o=_a(n);o!==null&&(t.splice(e,3),e-=3,to(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function mi(t){function e(T){return nu(T,t)}Qn!==null&&nu(Qn,t),Kn!==null&&nu(Kn,t),Jn!==null&&nu(Jn,t),xl.forEach(e),El.forEach(e);for(var n=0;n<Pn.length;n++){var l=Pn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Pn.length&&(n=Pn[0],n.blockedOn===null);)Rp(n),n.blockedOn===null&&Pn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],o=n[l+1],h=r[pe]||null;if(typeof o=="function")h||zp(n);else if(h){var S=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[pe]||null)S=h.formAction;else if(nc(r)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),zp(n)}}}function Op(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function ic(t){this._internalRoot=t}iu.prototype.render=ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=we();xp(n,l,t,e,null,null)},iu.prototype.unmount=ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;xp(t.current,2,null,t,null,null),Ls(),e[Oa]=null}};function iu(t){this._internalRoot=t}iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=qf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Pn.length&&e!==0&&e<Pn[n].priority;n++);Pn.splice(n,0,t),n===0&&Rp(t)}};var jp=i.version;if(jp!=="19.2.5")throw Error(u(527,jp,"19.2.5"));F.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=p(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var HS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Zt=lu.inject(HS),Qt=lu}catch{}}return Cl.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=Hh,o=Yh,h=qh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=bp(t,1,!1,null,null,n,l,null,r,o,h,Op),t[Oa]=e.current,Ho(t),new ic(e)},Cl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=Hh,h=Yh,S=qh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=bp(t,1,!0,e,n??null,l,r,T,o,h,S,Op),e.context=Tp(null),n=e.current,l=we(),l=Ku(l),r=Vn(l),r.callback=null,Nn(n,r,l),n=l,e.current.lanes=n,Ni(e,n),nn(e),t[Oa]=e.current,Ho(t),new iu(e)},Cl.version="19.2.5",Cl}var Gp;function PS(){if(Gp)return uc.exports;Gp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),uc.exports=JS(),uc.exports}var FS=PS();const mu={scale:1,x:0,y:0};function pg(a){return 1-(1-Math.min(1,Math.max(0,a)))**5}function Xp(a,i,s){if(s>=1)return{...i};const u=pg(s);return{scale:a.scale+(i.scale-a.scale)*u,x:a.x+(i.x-a.x)*u,y:a.y+(i.y-a.y)*u}}function fc(a,i){const s=a.getBoundingClientRect(),u=i.getBoundingClientRect(),c=s.width/a.offsetWidth||1;return{x:(u.left-s.left+u.width/2)/c,y:(u.top-s.top+u.height/2)/c}}const WS=3e3;function $S(a,i){var f,m;const s=[0];for(let y=1;y<a.length;y++){const p=s[y-1],g=a[y].delayMs,v=((f=i==null?void 0:i.steps[y-1])==null?void 0:f.durationMs)??0;s.push(p+Math.max(g,v))}const u=s[s.length-1]??0,c=((m=i==null?void 0:i.steps[a.length-1])==null?void 0:m.durationMs)??0,d=u+Math.max(WS,c);return{stepStartTimesMs:s,totalDurationMs:d}}function _c(a,i,s){for(let u=i.length-1;u>=0;u--)if(a>=i[u])return Math.min(u,s);return 0}const IS=3e3;function yg(a,i,s){var d;const u=(d=i==null?void 0:i.steps[a])==null?void 0:d.durationMs;if(u!=null&&u>0)return u;const c=s[a+1];return c?c.delayMs:IS}const ne=450,gg=50,vg=1500,Eu=200,dc=600;function Sg(a){let i=a.parentElement;for(;i;){const{overflowY:s}=getComputedStyle(i);if(s==="auto"||s==="scroll")return i;i=i.parentElement}return null}function bg(a){const i=Sg(a);if(!i)return!1;const s=i.getBoundingClientRect(),u=a.getBoundingClientRect();if(u.top>=s.top&&u.bottom<=s.bottom)return!1;const d=window.scrollX,f=window.scrollY;return a.scrollIntoView({block:"center",behavior:"smooth"}),window.scrollTo(d,f),!0}function tb(a){const i=Sg(a);if(!i)return;const s=i.getBoundingClientRect(),u=a.getBoundingClientRect();if(u.top>=s.top&&u.bottom<=s.bottom)return;const d=window.scrollX,f=window.scrollY;a.scrollIntoView({block:"center",behavior:"instant"}),window.scrollTo(d,f)}const eb="data-cursor-target",nb="data-scroll-target";function Si(a){return`[${eb}="${a}"]`}function ab(a){return`[${nb}="${a}"]`}const Tg="scenar-embed",xg=1;function ib(a){return{source:Tg,v:xg,...a}}function lb(a){if(typeof a!="object"||a===null)return!1;const i=a;return i.source===Tg&&i.v===xg}function kp(a){return typeof a=="number"&&Number.isFinite(a)}function sb(a){if(!lb(a))return null;const i=a.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return kp(a.timeMs)?{type:i,timeMs:a.timeMs}:null;case"setMuted":return typeof a.muted=="boolean"?{type:i,muted:a.muted}:null;case"setVolume":return kp(a.volume)?{type:i,volume:a.volume}:null;default:return null}}const ub=E.createContext(null);function Nu(){return E.useContext(ub)}const rb={isVideoExport:!1,hideControls:!1,initialMuted:!0},ob=E.createContext(rb);function Bu(){return E.useContext(ob)}const Vc=new Map;let cb=0;function fb(a){const i=`sp-${cb++}`;return Vc.set(i,a),{id:i,unregister:()=>Vc.delete(i)}}function Zp(a){for(const[i,s]of Vc)i!==a&&s()}function sf(a){const i=a.play();return i instanceof Promise?i:Promise.resolve()}function su(a,i,s=1){return a.src=i,a.defaultPlaybackRate=s,a.load(),a.playbackRate=s,sf(a)}function db(a,i,s,u=1,c=!0){a.src=i,a.defaultPlaybackRate=u,a.load(),a.playbackRate=u;const d=()=>{a.currentTime=s,c&&sf(a).catch(()=>{})};a.readyState>=HTMLMediaElement.HAVE_METADATA?d():a.addEventListener("loadedmetadata",d,{once:!0})}function uu(a){a.pause(),a.removeAttribute("src"),a.load()}function ru(a){for(const i of a.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function hb({manifest:a,stepIndex:i,playing:s,initialMuted:u=!0,playbackRate:c=1,onClipEnded:d}){const[f,m]=E.useState(u),[y,p]=E.useState(!1),g=E.useRef(null),v=E.useRef(!1),b=E.useCallback(Q=>{Q.then(()=>p(!1),()=>p(!0))},[]),x=E.useRef(f);x.current=f;const A=E.useRef(s);A.current=s;const w=E.useRef(d);w.current=d;const j=E.useRef(c);j.current=c;const B=(a==null?void 0:a.steps[i])??null,q=(B==null?void 0:B.src)??null,H=E.useRef(!1),J=E.useCallback((Q,k)=>{H.current=!0,setTimeout(()=>{H.current=!1},0);const $=g.current;if(!$||!a||x.current)return;const K=a.steps[Q],rt=K==null?void 0:K.src;if(!rt)return;const Tt=(K==null?void 0:K.durationMs)??0;if(k>=Tt){uu($);return}db($,rt,k/1e3,j.current,A.current)},[a]);E.useEffect(()=>{!a||u||v.current||(ru(a),v.current=!0)},[a,u]),E.useEffect(()=>{const Q=g.current;if(!Q||!a)return;const k=()=>{var $;return($=w.current)==null?void 0:$.call(w)};return Q.addEventListener("ended",k),()=>Q.removeEventListener("ended",k)},[a]),E.useEffect(()=>{if(H.current){H.current=!1;return}const Q=g.current;if(!(!Q||!a)){if(x.current||!q||!A.current){uu(Q);return}b(su(Q,q,j.current))}},[i,q,a,b]),E.useEffect(()=>{const Q=g.current;!Q||!a||x.current||(s?q&&(Q.src?b(sf(Q)):b(su(Q,q,j.current))):Q.pause())},[s,q,a,b]);const W=E.useCallback(()=>{m(Q=>{const k=!Q,$=g.current;return $&&(k?(uu($),p(!1)):(a&&!v.current&&(ru(a),v.current=!0),q&&b(su($,q,j.current)))),k})},[q,a,b]),P=E.useCallback(()=>{const Q=g.current;!Q||x.current||!q||(a&&!v.current&&(ru(a),v.current=!0),b(su(Q,q,j.current)))},[q,a,b]),X=E.useCallback(Q=>{const k=g.current;k&&(k.volume=Math.max(0,Math.min(Q,1)))},[]),Z=E.useCallback(()=>{!a||v.current||(ru(a),v.current=!0)},[a]);return E.useEffect(()=>{const Q=g.current;Q&&(Q.defaultPlaybackRate=c,Q.playbackRate=c)},[c]),E.useEffect(()=>{const Q=g.current;return()=>{Q&&uu(Q)}},[]),{muted:f,toggleMute:W,audioRef:g,seekToStep:J,audioBlocked:y,unlock:P,setVolume:X,prefetch:Z}}const uf=E.createContext({});function rf(a){const i=E.useRef(null);return i.current===null&&(i.current=a()),i.current}const mb=typeof window<"u",Eg=mb?E.useLayoutEffect:E.useEffect,Uu=E.createContext(null);function of(a,i){a.indexOf(i)===-1&&a.push(i)}function Au(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const un=(a,i,s)=>s>i?i:s<a?a:s;let cf=()=>{};const ta={},Ag=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Mg(a){return typeof a=="object"&&a!==null}const Cg=a=>/^0[^.\s]+$/u.test(a);function Dg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ge=a=>a,pb=(a,i)=>s=>i(a(s)),Ul=(...a)=>a.reduce(pb),_l=(a,i,s)=>{const u=i-a;return u===0?1:(s-a)/u};class ff{constructor(){this.subscriptions=[]}add(i){return of(this.subscriptions,i),()=>Au(this.subscriptions,i)}notify(i,s,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,u);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ze=a=>a*1e3,qe=a=>a/1e3;function Rg(a,i){return i?a*(1e3/i):0}const wg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,yb=1e-7,gb=12;function vb(a,i,s,u,c){let d,f,m=0;do f=i+(s-i)/2,d=wg(f,u,c)-a,d>0?s=f:i=f;while(Math.abs(d)>yb&&++m<gb);return f}function Ll(a,i,s,u){if(a===i&&s===u)return Ge;const c=d=>vb(d,0,1,a,s);return d=>d===0||d===1?d:wg(c(d),i,u)}const zg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Og=a=>i=>1-a(1-i),jg=Ll(.33,1.53,.69,.99),df=Og(jg),_g=zg(df),Vg=a=>a>=1?1:(a*=2)<1?.5*df(a):.5*(2-Math.pow(2,-10*(a-1))),hf=a=>1-Math.sin(Math.acos(a)),Ng=Og(hf),Bg=zg(hf),Sb=Ll(.42,0,1,1),bb=Ll(0,0,.58,1),Ug=Ll(.42,0,.58,1),Tb=a=>Array.isArray(a)&&typeof a[0]!="number",Lg=a=>Array.isArray(a)&&typeof a[0]=="number",xb={linear:Ge,easeIn:Sb,easeInOut:Ug,easeOut:bb,circIn:hf,circInOut:Bg,circOut:Ng,backIn:df,backInOut:_g,backOut:jg,anticipate:Vg},Eb=a=>typeof a=="string",Qp=a=>{if(Lg(a)){cf(a.length===4);const[i,s,u,c]=a;return Ll(i,s,u,c)}else if(Eb(a))return xb[a];return a},ou=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ab(a,i){let s=new Set,u=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(g){f.has(g)&&(p.schedule(g),a()),g(m)}const p={schedule:(g,v=!1,b=!1)=>{const A=b&&c?s:u;return v&&f.add(g),A.add(g),g},cancel:g=>{u.delete(g),f.delete(g)},process:g=>{if(m=g,c){d=!0;return}c=!0;const v=s;s=u,u=v,s.forEach(y),s.clear(),c=!1,d&&(d=!1,p.process(g))}};return p}const Mb=40;function Hg(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=ou.reduce((H,J)=>(H[J]=Ab(d),H),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:g,update:v,preRender:b,render:x,postRender:A}=f,w=()=>{const H=ta.useManualTiming,J=H?c.timestamp:performance.now();s=!1,H||(c.delta=u?1e3/60:Math.max(Math.min(J-c.timestamp,Mb),1)),c.timestamp=J,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),g.process(c),v.process(c),b.process(c),x.process(c),A.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(w))},j=()=>{s=!0,u=!0,c.isProcessing||a(w)};return{schedule:ou.reduce((H,J)=>{const W=f[J];return H[J]=(P,X=!1,Z=!1)=>(s||j(),W.schedule(P,X,Z)),H},{}),cancel:H=>{for(let J=0;J<ou.length;J++)f[ou[J]].cancel(H)},state:c,steps:f}}const{schedule:jt,cancel:ea,state:re,steps:hc}=Hg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let pu;function Cb(){pu=void 0}const he={now:()=>(pu===void 0&&he.set(re.isProcessing||ta.useManualTiming?re.timestamp:performance.now()),pu),set:a=>{pu=a,queueMicrotask(Cb)}},Yg=a=>i=>typeof i=="string"&&i.startsWith(a),qg=Yg("--"),Db=Yg("var(--"),mf=a=>Db(a)?Rb.test(a.split("/*")[0].trim()):!1,Rb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Ei={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Vl={...Ei,transform:a=>un(0,1,a)},cu={...Ei,default:1},wl=a=>Math.round(a*1e5)/1e5,pf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wb(a){return a==null}const zb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yf=(a,i)=>s=>!!(typeof s=="string"&&zb.test(s)&&s.startsWith(a)||i&&!wb(s)&&Object.prototype.hasOwnProperty.call(s,i)),Gg=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,d,f,m]=u.match(pf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},Ob=a=>un(0,255,a),mc={...Ei,transform:a=>Math.round(Ob(a))},Ca={test:yf("rgb","red"),parse:Gg("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+mc.transform(a)+", "+mc.transform(i)+", "+mc.transform(s)+", "+wl(Vl.transform(u))+")"};function jb(a){let i="",s="",u="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),u=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),u=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,u+=u,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Nc={test:yf("#"),parse:jb,transform:Ca.transform},Hl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Wn=Hl("deg"),sn=Hl("%"),at=Hl("px"),_b=Hl("vh"),Vb=Hl("vw"),Jp={...sn,parse:a=>sn.parse(a)/100,transform:a=>sn.transform(a*100)},yi={test:yf("hsl","hue"),parse:Gg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+sn.transform(wl(i))+", "+sn.transform(wl(s))+", "+wl(Vl.transform(u))+")"},Wt={test:a=>Ca.test(a)||Nc.test(a)||yi.test(a),parse:a=>Ca.test(a)?Ca.parse(a):yi.test(a)?yi.parse(a):Nc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ca.transform(a):yi.transform(a),getAnimatableNone:a=>{const i=Wt.parse(a);return i.alpha=0,Wt.transform(i)}},Nb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bb(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(pf))==null?void 0:i.length)||0)+(((s=a.match(Nb))==null?void 0:s.length)||0)>0}const Xg="number",kg="color",Ub="var",Lb="var(",Pp="${}",Hb=/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 bi(a){const i=a.toString(),s=[],u={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(Hb,y=>(Wt.test(y)?(u.color.push(d),c.push(kg),s.push(Wt.parse(y))):y.startsWith(Lb)?(u.var.push(d),c.push(Ub),s.push(y)):(u.number.push(d),c.push(Xg),s.push(parseFloat(y))),++d,Pp)).split(Pp);return{values:s,split:m,indexes:u,types:c}}function Yb(a){return bi(a).values}function Zg({split:a,types:i}){const s=a.length;return u=>{let c="";for(let d=0;d<s;d++)if(c+=a[d],u[d]!==void 0){const f=i[d];f===Xg?c+=wl(u[d]):f===kg?c+=Wt.transform(u[d]):c+=u[d]}return c}}function qb(a){return Zg(bi(a))}const Gb=a=>typeof a=="number"?0:Wt.test(a)?Wt.getAnimatableNone(a):a,Xb=(a,i)=>typeof a=="number"?i!=null&&i.trim().endsWith("/")?a:0:Gb(a);function kb(a){const i=bi(a);return Zg(i)(i.values.map((u,c)=>Xb(u,i.split[c])))}const Fe={test:Bb,parse:Yb,createTransformer:qb,getAnimatableNone:kb};function pc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function Zb({hue:a,saturation:i,lightness:s,alpha:u}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=pc(y,m,a+1/3),d=pc(y,m,a),f=pc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function Mu(a,i){return s=>s>0?i:a}const Nt=(a,i,s)=>a+(i-a)*s,yc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},Qb=[Nc,Ca,yi],Kb=a=>Qb.find(i=>i.test(a));function Fp(a){const i=Kb(a);if(!i)return!1;let s=i.parse(a);return i===yi&&(s=Zb(s)),s}const Wp=(a,i)=>{const s=Fp(a),u=Fp(i);if(!s||!u)return Mu(a,i);const c={...s};return d=>(c.red=yc(s.red,u.red,d),c.green=yc(s.green,u.green,d),c.blue=yc(s.blue,u.blue,d),c.alpha=Nt(s.alpha,u.alpha,d),Ca.transform(c))},Bc=new Set(["none","hidden"]);function Jb(a,i){return Bc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function Pb(a,i){return s=>Nt(a,i,s)}function gf(a){return typeof a=="number"?Pb:typeof a=="string"?mf(a)?Mu:Wt.test(a)?Wp:$b:Array.isArray(a)?Qg:typeof a=="object"?Wt.test(a)?Wp:Fb:Mu}function Qg(a,i){const s=[...a],u=s.length,c=a.map((d,f)=>gf(d)(d,i[f]));return d=>{for(let f=0;f<u;f++)s[f]=c[f](d);return s}}function Fb(a,i){const s={...a,...i},u={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(u[c]=gf(a[c])(a[c],i[c]));return c=>{for(const d in u)s[d]=u[d](c);return s}}function Wb(a,i){const s=[],u={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][u[d]],m=a.values[f]??0;s[c]=m,u[d]++}return s}const $b=(a,i)=>{const s=Fe.createTransformer(i),u=bi(a),c=bi(i);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Bc.has(a)&&!c.values.length||Bc.has(i)&&!u.values.length?Jb(a,i):Ul(Qg(Wb(u,c),c.values),s):Mu(a,i)};function Kg(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Nt(a,i,s):gf(a)(a,i)}const Ib=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>jt.update(i,s),stop:()=>ea(i),now:()=>re.isProcessing?re.timestamp:he.now()}},Jg=(a,i,s=10)=>{let u="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)u+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},Cu=2e4;function vf(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<Cu;)i+=s,u=a.next(i);return i>=Cu?1/0:i}function tT(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(vf(u),Cu);return{type:"keyframes",ease:d=>u.next(c*d).value/i,duration:qe(c)}}const Yt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Uc(a,i){return a*Math.sqrt(1-i*i)}const eT=12;function nT(a,i,s){let u=s;for(let c=1;c<eT;c++)u=u-a(u)/i(u);return u}const gc=.001;function aT({duration:a=Yt.duration,bounce:i=Yt.bounce,velocity:s=Yt.velocity,mass:u=Yt.mass}){let c,d,f=1-i;f=un(Yt.minDamping,Yt.maxDamping,f),a=un(Yt.minDuration,Yt.maxDuration,qe(a)),f<1?(c=p=>{const g=p*f,v=g*a,b=g-s,x=Uc(p,f),A=Math.exp(-v);return gc-b/x*A},d=p=>{const v=p*f*a,b=v*s+s,x=Math.pow(f,2)*Math.pow(p,2)*a,A=Math.exp(-v),w=Uc(Math.pow(p,2),f);return(-c(p)+gc>0?-1:1)*((b-x)*A)/w}):(c=p=>{const g=Math.exp(-p*a),v=(p-s)*a+1;return-gc+g*v},d=p=>{const g=Math.exp(-p*a),v=(s-p)*(a*a);return g*v});const m=5/a,y=nT(c,d,m);if(a=ze(a),isNaN(y))return{stiffness:Yt.stiffness,damping:Yt.damping,duration:a};{const p=Math.pow(y,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const iT=["duration","bounce"],lT=["stiffness","damping","mass"];function $p(a,i){return i.some(s=>a[s]!==void 0)}function sT(a){let i={velocity:Yt.velocity,stiffness:Yt.stiffness,damping:Yt.damping,mass:Yt.mass,isResolvedFromDuration:!1,...a};if(!$p(a,lT)&&$p(a,iT))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,u=2*Math.PI/(s*1.2),c=u*u,d=2*un(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Yt.mass,stiffness:c,damping:d}}else{const s=aT({...a,velocity:0});i={...i,...s,mass:Yt.mass},i.isResolvedFromDuration=!0}return i}function Du(a=Yt.visualDuration,i=Yt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:u,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:g,duration:v,velocity:b,isResolvedFromDuration:x}=sT({...s,velocity:-qe(s.velocity||0)}),A=b||0,w=p/(2*Math.sqrt(y*g)),j=f-d,B=qe(Math.sqrt(y/g)),q=Math.abs(j)<5;u||(u=q?Yt.restSpeed.granular:Yt.restSpeed.default),c||(c=q?Yt.restDelta.granular:Yt.restDelta.default);let H,J,W,P,X,Z;if(w<1)W=Uc(B,w),P=(A+w*B*j)/W,H=k=>{const $=Math.exp(-w*B*k);return f-$*(P*Math.sin(W*k)+j*Math.cos(W*k))},X=w*B*P+j*W,Z=w*B*j-P*W,J=k=>Math.exp(-w*B*k)*(X*Math.sin(W*k)+Z*Math.cos(W*k));else if(w===1){H=$=>f-Math.exp(-B*$)*(j+(A+B*j)*$);const k=A+B*j;J=$=>Math.exp(-B*$)*(B*k*$-A)}else{const k=B*Math.sqrt(w*w-1);H=Tt=>{const xt=Math.exp(-w*B*Tt),V=Math.min(k*Tt,300);return f-xt*((A+w*B*j)*Math.sinh(V)+k*j*Math.cosh(V))/k};const $=(A+w*B*j)/k,K=w*B*$-j*k,rt=w*B*j-$*k;J=Tt=>{const xt=Math.exp(-w*B*Tt),V=Math.min(k*Tt,300);return xt*(K*Math.sinh(V)+rt*Math.cosh(V))}}const Q={calculatedDuration:x&&v||null,velocity:k=>ze(J(k)),next:k=>{if(!x&&w<1){const K=Math.exp(-w*B*k),rt=Math.sin(W*k),Tt=Math.cos(W*k),xt=f-K*(P*rt+j*Tt),V=ze(K*(X*rt+Z*Tt));return m.done=Math.abs(V)<=u&&Math.abs(f-xt)<=c,m.value=m.done?f:xt,m}const $=H(k);if(x)m.done=k>=v;else{const K=ze(J(k));m.done=Math.abs(K)<=u&&Math.abs(f-$)<=c}return m.value=m.done?f:$,m},toString:()=>{const k=Math.min(vf(Q),Cu),$=Jg(K=>Q.next(k*K).value,k,30);return k+"ms "+$},toTransition:()=>{}};return Q}Du.applyToOptions=a=>{const i=tT(a,100,Du);return a.ease=i.ease,a.duration=ze(i.duration),a.type="keyframes",a};const uT=5;function Pg(a,i,s){const u=Math.max(i-uT,0);return Rg(s-a(u),i-u)}function Lc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:g}){const v=a[0],b={done:!1,value:v},x=Z=>m!==void 0&&Z<m||y!==void 0&&Z>y,A=Z=>m===void 0?y:y===void 0||Math.abs(m-Z)<Math.abs(y-Z)?m:y;let w=s*i;const j=v+w,B=f===void 0?j:f(j);B!==j&&(w=B-v);const q=Z=>-w*Math.exp(-Z/u),H=Z=>B+q(Z),J=Z=>{const Q=q(Z),k=H(Z);b.done=Math.abs(Q)<=p,b.value=b.done?B:k};let W,P;const X=Z=>{x(b.value)&&(W=Z,P=Du({keyframes:[b.value,A(b.value)],velocity:Pg(H,Z,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:g}))};return X(0),{calculatedDuration:null,next:Z=>{let Q=!1;return!P&&W===void 0&&(Q=!0,J(Z),X(Z)),W!==void 0&&Z>=W?P.next(Z-W):(!Q&&J(Z),b)}}}function rT(a,i,s){const u=[],c=s||ta.mix||Kg,d=a.length-1;for(let f=0;f<d;f++){let m=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||Ge:i;m=Ul(y,m)}u.push(m)}return u}function oT(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const d=a.length;if(cf(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=rT(i,u,c),y=m.length,p=g=>{if(f&&g<a[0])return i[0];let v=0;if(y>1)for(;v<a.length-2&&!(g<a[v+1]);v++);const b=_l(a[v],a[v+1],g);return m[v](b)};return s?g=>p(un(a[0],a[d-1],g)):p}function cT(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=_l(0,i,u);a.push(Nt(s,1,c))}}function fT(a){const i=[0];return cT(i,a.length-1),i}function dT(a,i){return a.map(s=>s*i)}function hT(a,i){return a.map(()=>i||Ug).splice(0,a.length-1)}function zl({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=Tb(u)?u.map(Qp):Qp(u),d={done:!1,value:i[0]},f=dT(s&&s.length===i.length?s:fT(i),a),m=oT(f,i,{ease:Array.isArray(c)?c:hT(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const mT=a=>a!==null;function Lu(a,{repeat:i,repeatType:s="loop"},u,c=1){const d=a.filter(mT),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||u===void 0?d[m]:u}const pT={decay:Lc,inertia:Lc,tween:zl,keyframes:zl,spring:Du};function Fg(a){typeof a.type=="string"&&(a.type=pT[a.type])}class Sf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const yT=a=>a/100;class Ru extends Sf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var u,c;const{motionValue:s}=this.options;s&&s.updatedAt!==he.now()&&this.tick(he.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(u=this.options).onStop)==null||c.call(u))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Fg(i);const{type:s=zl,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||zl;y!==zl&&typeof m[0]!="number"&&(this.mixKeyframes=Ul(yT,Kg(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=vf(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:u,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return u.next(0);const{delay:p=0,keyframes:g,repeat:v,repeatType:b,repeatDelay:x,type:A,onUpdate:w,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,J=u;if(v){const Z=Math.min(this.currentTime,c)/m;let Q=Math.floor(Z),k=Z%1;!k&&Z>=1&&(k=1),k===1&&Q--,Q=Math.min(Q,v+1),!!(Q%2)&&(b==="reverse"?(k=1-k,x&&(k-=x/m)):b==="mirror"&&(J=f)),H=un(0,1,k)*m}let W;q?(this.delayState.value=g[0],W=this.delayState):W=J.next(H),d&&!q&&(W.value=d(W.value));let{done:P}=W;!q&&y!==null&&(P=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return X&&A!==Lc&&(W.value=Lu(g,this.options,j,this.speed)),w&&w(W.value),X&&this.finish(),W}then(i,s){return this.finished.then(i,s)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+qe(i)}get time(){return qe(this.currentTime)}set time(i){i=ze(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const s=this.generator.next(i).value;return Pg(u=>this.generator.next(u).value,i,s)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;s&&this.driver&&this.updateTime(he.now()),this.playbackSpeed=i,s&&this.driver&&(this.time=qe(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=Ib,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=s??u),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(he.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function gT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Da=a=>a*180/Math.PI,Hc=a=>{const i=Da(Math.atan2(a[1],a[0]));return Yc(i)},vT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Hc,rotateZ:Hc,skewX:a=>Da(Math.atan(a[1])),skewY:a=>Da(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Yc=a=>(a=a%360,a<0&&(a+=360),a),Ip=Hc,ty=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ey=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),ST={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ty,scaleY:ey,scale:a=>(ty(a)+ey(a))/2,rotateX:a=>Yc(Da(Math.atan2(a[6],a[5]))),rotateY:a=>Yc(Da(Math.atan2(-a[2],a[0]))),rotateZ:Ip,rotate:Ip,skewX:a=>Da(Math.atan(a[4])),skewY:a=>Da(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function qc(a){return a.includes("scale")?1:0}function Gc(a,i){if(!a||a==="none")return qc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=ST,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=vT,c=m}if(!c)return qc(i);const d=u[i],f=c[1].split(",").map(TT);return typeof d=="function"?d(f):f[d]}const bT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Gc(s,i)};function TT(a){return parseFloat(a.trim())}const Ai=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mi=new Set(Ai),ny=a=>a===Ei||a===at,xT=new Set(["x","y","z"]),ET=Ai.filter(a=>!xT.has(a));function AT(a){const i=[];return ET.forEach(s=>{const u=a.getValue(s);u!==void 0&&(i.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),i}const In={width:({x:a},{paddingLeft:i="0",paddingRight:s="0",boxSizing:u})=>{const c=a.max-a.min;return u==="border-box"?c:c-parseFloat(i)-parseFloat(s)},height:({y:a},{paddingTop:i="0",paddingBottom:s="0",boxSizing:u})=>{const c=a.max-a.min;return u==="border-box"?c:c-parseFloat(i)-parseFloat(s)},top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Gc(i,"x"),y:(a,{transform:i})=>Gc(i,"y")};In.translateX=In.x;In.translateY=In.y;const Ra=new Set;let Xc=!1,kc=!1,Zc=!1;function Wg(){if(kc){const a=Array.from(Ra).filter(u=>u.needsMeasurement),i=new Set(a.map(u=>u.element)),s=new Map;i.forEach(u=>{const c=AT(u);c.length&&(s.set(u,c),u.render())}),a.forEach(u=>u.measureInitialState()),i.forEach(u=>{u.render();const c=s.get(u);c&&c.forEach(([d,f])=>{var m;(m=u.getValue(d))==null||m.set(f)})}),a.forEach(u=>u.measureEndState()),a.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}kc=!1,Xc=!1,Ra.forEach(a=>a.complete(Zc)),Ra.clear()}function $g(){Ra.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(kc=!0)})}function MT(){Zc=!0,$g(),Wg(),Zc=!1}class bf{constructor(i,s,u,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=u,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ra.add(this),Xc||(Xc=!0,jt.read($g),jt.resolveKeyframes(Wg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:u,motionValue:c}=this;if(i[0]===null){const d=c==null?void 0:c.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(u&&s){const m=u.readValue(s,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}gT(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ra.delete(this)}cancel(){this.state==="scheduled"&&(Ra.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const CT=a=>a.startsWith("--");function Ig(a,i,s){CT(i)?a.style.setProperty(i,s):a.style[i]=s}const DT={};function t0(a,i){const s=Dg(a);return()=>DT[i]??s()}const RT=t0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),e0=t0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rl=([a,i,s,u])=>`cubic-bezier(${a}, ${i}, ${s}, ${u})`,ay={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rl([0,.65,.55,1]),circOut:Rl([.55,0,1,.45]),backIn:Rl([.31,.01,.66,-.59]),backOut:Rl([.33,1.53,.69,.99])};function n0(a,i){if(a)return typeof a=="function"?e0()?Jg(a,i):"ease-out":Lg(a)?Rl(a):Array.isArray(a)?a.map(s=>n0(s,i)||ay.easeOut):ay[a]}function wT(a,i,s,{delay:u=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const g={[i]:s};y&&(g.offset=y);const v=n0(m,c);Array.isArray(v)&&(g.easing=v);const b={delay:u,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),a.animate(g,b)}function a0(a){return typeof a=="function"&&"applyToOptions"in a}function zT({type:a,...i}){return a0(a)&&e0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class i0 extends Sf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:u,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,cf(typeof i.type!="string");const p=zT(i);this.animation=wT(s,u,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const g=Lu(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(g),Ig(s,u,g),this.animation.cancel()}y==null||y(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,u,c;const i=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(i!=null&&i.isConnected)&&((c=(u=this.animation).commitStyles)==null||c.call(u))}get duration(){var s,u;const i=((u=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:u.call(s).duration)||0;return qe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+qe(i)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(i){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ze(i),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:s,rangeEnd:u,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&RT()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ge):c(this)}}const l0={anticipate:Vg,backInOut:_g,circInOut:Bg};function OT(a){return a in l0}function jT(a){typeof a.ease=="string"&&OT(a.ease)&&(a.ease=l0[a.ease])}const vc=10;class _T extends i0{constructor(i){jT(i),Fg(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:u,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Ru({...f,autoplay:!1}),y=Math.max(vc,he.now()-this.startTime),p=un(0,vc,y-vc),g=m.sample(y).value,{name:v}=this.options;d&&v&&Ig(d,v,g),s.setWithVelocity(m.sample(Math.max(0,y-p)).value,g,p),m.stop()}}const iy=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Fe.test(a)||a==="0")&&!a.startsWith("url("));function VT(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function NT(a,i,s,u){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=iy(c,i),m=iy(d,i);return!f||!m?!1:VT(a)||(s==="spring"||a0(s))&&u}function Qc(a){a.duration=0,a.type="keyframes"}const s0=new Set(["opacity","clipPath","filter","transform"]),BT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function UT(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&BT.test(a[i]))return!0;return!1}const LT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),HT=Dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function YT(a){var v;const{motionValue:i,name:s,repeatDelay:u,repeatType:c,damping:d,type:f,keyframes:m}=a;if(!(((v=i==null?void 0:i.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=i.owner.getProps();return HT()&&s&&(s0.has(s)||LT.has(s)&&UT(m))&&(s!=="transform"||!g)&&!p&&!u&&c!=="mirror"&&d!==0&&f!=="inertia"}const qT=40;class GT extends Sf{constructor({autoplay:i=!0,delay:s=0,type:u="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:g,...v}){var A;super(),this.stop=()=>{var w,j;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=he.now();const b={autoplay:i,delay:s,type:u,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:g,...v},x=(g==null?void 0:g.KeyframeResolver)||bf;this.keyframeResolver=new x(m,(w,j,B)=>this.onKeyframesResolved(w,j,b,!B),y,p,g),(A=this.keyframeResolver)==null||A.scheduleResolve()}onKeyframesResolved(i,s,u,c){var B,q;this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:g}=u;this.resolvedAt=he.now();let v=!0;NT(i,d,f,m)||(v=!1,(ta.instantAnimations||!y)&&(g==null||g(Lu(i,u,s))),i[0]=i[i.length-1],Qc(u),u.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>qT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},A=v&&!p&&YT(x),w=(q=(B=x.motionValue)==null?void 0:B.owner)==null?void 0:q.current;let j;if(A)try{j=new _T({...x,element:w})}catch{j=new Ru(x)}else j=new Ru(x);j.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),MT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}function u0(a,i,s,u=0,c=1){const d=Array.from(a).sort((p,g)=>p.sortNodePosition(g)).indexOf(i),f=a.size,m=(f-1)*u;return typeof s=="function"?s(d,f):c===1?d*u:m-d*u}const XT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kT(a){const i=XT.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function r0(a,i,s=1){const[u,c]=kT(a);if(!u)return;const d=window.getComputedStyle(i).getPropertyValue(u);if(d){const f=d.trim();return Ag(f)?parseFloat(f):f}return mf(c)?r0(c,i,s+1):c}const ZT={type:"spring",stiffness:500,damping:25,restSpeed:10},QT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),KT={type:"keyframes",duration:.8},JT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PT=(a,{keyframes:i})=>i.length>2?KT:Mi.has(a)?a.startsWith("scale")?QT(i[1]):ZT:JT;function o0(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function Tf(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?o0(s,a):s}const FT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function WT(a){for(const i in a)if(!FT.has(i))return!0;return!1}const xf=(a,i,s,u={},c,d)=>f=>{const m=Tf(u,a)||{},y=m.delay||u.delay||0;let{elapsed:p=0}=u;p=p-ze(y);const g={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:b=>{i.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:d?void 0:c};WT(m)||Object.assign(g,PT(a,g)),g.duration&&(g.duration=ze(g.duration)),g.repeatDelay&&(g.repeatDelay=ze(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Qc(g),g.delay===0&&(v=!0)),(ta.instantAnimations||ta.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(v=!0,Qc(g),g.delay=0),g.allowFlatten=!m.type&&!m.ease,v&&!d&&i.get()!==void 0){const b=Lu(g.keyframes,m);if(b!==void 0){jt.update(()=>{g.onUpdate(b),g.onComplete()});return}}return m.isSync?new Ru(g):new GT(g)};function ly(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function Ef(a,i,s,u){if(typeof i=="function"){const[c,d]=ly(u);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=ly(u);i=i(s!==void 0?s:a.custom,c,d)}return i}function wa(a,i,s){const u=a.getProps();return Ef(u,i,s!==void 0?s:u.custom,a)}const c0=new Set(["width","height","top","left","right","bottom",...Ai]),sy=30,$T=a=>!isNaN(parseFloat(a));class IT{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var d;const c=he.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=he.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=$T(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new ff);const u=this.events[i].add(s);return i==="change"?()=>{u(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,u){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-u}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=he.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>sy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,sy);return Rg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ti(a,i){return new IT(a,i)}const Kc=a=>Array.isArray(a);function tx(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,Ti(s))}function ex(a){return Kc(a)?a[a.length-1]||0:a}function nx(a,i){const s=wa(a,i);let{transitionEnd:u={},transition:c={},...d}=s||{};d={...d,...u};for(const f in d){const m=ex(d[f]);tx(a,f,m)}}const oe=a=>!!(a&&a.getVelocity);function ax(a){return!!(oe(a)&&a.add)}function Jc(a,i){const s=a.getValue("willChange");if(ax(s))return s.add(i);if(!s&&ta.WillChange){const u=new ta.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function Af(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const ix="framerAppearId",f0="data-"+Af(ix);function d0(a){return a.props[f0]}function lx({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function h0(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?o0(d,y):y;const p=d==null?void 0:d.reduceMotion;u&&(d=u);const g=[],v=c&&a.animationState&&a.animationState.getState()[c];for(const b in m){const x=a.getValue(b,a.latestValues[b]??null),A=m[b];if(A===void 0||v&&lx(v,b))continue;const w={delay:s,...Tf(d||{},b)},j=x.get();if(j!==void 0&&!x.isAnimating()&&!Array.isArray(A)&&A===j&&!w.velocity){jt.update(()=>x.set(A));continue}let B=!1;if(window.MotionHandoffAnimation){const J=d0(a);if(J){const W=window.MotionHandoffAnimation(J,b,jt);W!==null&&(w.startTime=W,B=!0)}}Jc(a,b);const q=p??a.shouldReduceMotion;x.start(xf(b,x,A,q&&c0.has(b)?{type:!1}:w,a,B));const H=x.animation;H&&g.push(H)}if(f){const b=()=>jt.update(()=>{f&&nx(a,f)});g.length?Promise.all(g).then(b):b()}return g}function Pc(a,i,s={}){var y;const u=wa(a,i,s.type==="exit"?(y=a.presenceContext)==null?void 0:y.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(c=s.transitionOverride);const d=u?()=>Promise.all(h0(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:b}=c;return sx(a,i,p,g,v,b,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,g]=m==="beforeChildren"?[d,f]:[f,d];return p().then(()=>g())}else return Promise.all([d(),f(s.delay)])}function sx(a,i,s=0,u=0,c=0,d=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Pc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+u0(a.variantChildren,y,u,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function ux(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(d=>Pc(a,d,s));u=Promise.all(c)}else if(typeof i=="string")u=Pc(a,i,s);else{const c=typeof i=="function"?wa(a,i,s.custom):i;u=Promise.all(h0(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const rx={test:a=>a==="auto",parse:a=>a},m0=a=>i=>i.test(a),p0=[Ei,at,sn,Wn,Vb,_b,rx],uy=a=>p0.find(m0(a));function ox(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Cg(a):!0}const cx=new Set(["brightness","contrast","saturate","opacity"]);function fx(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[u]=s.match(pf)||[];if(!u)return a;const c=s.replace(u,"");let d=cx.has(i)?1:0;return u!==s&&(d*=100),i+"("+d+c+")"}const dx=/\b([a-z-]*)\(.*?\)/gu,Fc={...Fe,getAnimatableNone:a=>{const i=a.match(dx);return i?i.map(fx).join(" "):a}},Wc={...Fe,getAnimatableNone:a=>{const i=Fe.parse(a);return Fe.createTransformer(a)(i.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},ry={...Ei,transform:Math.round},hx={rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:cu,scaleX:cu,scaleY:cu,scaleZ:cu,skew:Wn,skewX:Wn,skewY:Wn,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:Vl,originX:Jp,originY:Jp,originZ:at},Mf={borderWidth:at,borderTopWidth:at,borderRightWidth:at,borderBottomWidth:at,borderLeftWidth:at,borderRadius:at,borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomRightRadius:at,borderBottomLeftRadius:at,width:at,maxWidth:at,height:at,maxHeight:at,top:at,right:at,bottom:at,left:at,inset:at,insetBlock:at,insetBlockStart:at,insetBlockEnd:at,insetInline:at,insetInlineStart:at,insetInlineEnd:at,padding:at,paddingTop:at,paddingRight:at,paddingBottom:at,paddingLeft:at,paddingBlock:at,paddingBlockStart:at,paddingBlockEnd:at,paddingInline:at,paddingInlineStart:at,paddingInlineEnd:at,margin:at,marginTop:at,marginRight:at,marginBottom:at,marginLeft:at,marginBlock:at,marginBlockStart:at,marginBlockEnd:at,marginInline:at,marginInlineStart:at,marginInlineEnd:at,fontSize:at,backgroundPositionX:at,backgroundPositionY:at,...hx,zIndex:ry,fillOpacity:Vl,strokeOpacity:Vl,numOctaves:ry},mx={...Mf,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:Fc,WebkitFilter:Fc,mask:Wc,WebkitMask:Wc},y0=a=>mx[a],px=new Set([Fc,Wc]);function g0(a,i){let s=y0(a);return px.has(s)||(s=Fe),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const yx=new Set(["auto","none","0"]);function gx(a,i,s){let u=0,c;for(;u<a.length&&!c;){const d=a[u];typeof d=="string"&&!yx.has(d)&&bi(d).values.length&&(c=a[u]),u++}if(c&&s)for(const d of i)a[d]=g0(s,c)}class vx extends bf{constructor(i,s,u,c,d){super(i,s,u,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:u}=this;if(!s||!s.current)return;super.readKeyframes();for(let g=0;g<i.length;g++){let v=i[g];if(typeof v=="string"&&(v=v.trim(),mf(v))){const b=r0(v,s.current);b!==void 0&&(i[g]=b),g===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!c0.has(u)||i.length!==2)return;const[c,d]=i,f=uy(c),m=uy(d),y=Kp(c),p=Kp(d);if(y!==p&&In[u]){this.needsMeasurement=!0;return}if(f!==m)if(ny(f)&&ny(m))for(let g=0;g<i.length;g++){const v=i[g];typeof v=="string"&&(i[g]=parseFloat(v))}else In[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,u=[];for(let c=0;c<i.length;c++)(i[c]===null||ox(i[c]))&&u.push(c);u.length&&gx(i,u,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:u}=this;if(!i||!i.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=In[u](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(u,c).jump(c,!1)}measureEndState(){var m;const{element:i,name:s,unresolvedKeyframes:u}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=u.length-1,f=u[d];u[d]=In[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([y,p])=>{i.getValue(y).set(p)}),this.resolveNoneKeyframes()}}function v0(a,i,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let u=document;const c=(s==null?void 0:s[a])??u.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(u=>u!=null)}const S0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function yu(a){return Mg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Cf}=Hg(queueMicrotask,!1),Pe={x:!1,y:!1};function b0(){return Pe.x||Pe.y}function Sx(a){return a==="x"||a==="y"?Pe[a]?null:(Pe[a]=!0,()=>{Pe[a]=!1}):Pe.x||Pe.y?null:(Pe.x=Pe.y=!0,()=>{Pe.x=Pe.y=!1})}function T0(a,i){const s=v0(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function bx(a){return!(a.pointerType==="touch"||b0())}function Tx(a,i,s={}){const[u,c,d]=T0(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const g=()=>{f.removeEventListener("pointerleave",A)},v=j=>{p&&(p(j),p=void 0),g()},b=j=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,v(j))},x=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},A=j=>{if(j.pointerType!=="touch"){if(m){y=!0;return}v(j)}},w=j=>{if(!bx(j))return;y=!1;const B=i(f,j);typeof B=="function"&&(p=B,f.addEventListener("pointerleave",A,c))};f.addEventListener("pointerenter",w,c),f.addEventListener("pointerdown",x,c)}),d}const x0=(a,i)=>i?a===i?!0:x0(a,i.parentElement):!1,Df=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,xx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ex(a){return xx.has(a.tagName)||a.isContentEditable===!0}const Ax=new Set(["INPUT","SELECT","TEXTAREA"]);function Mx(a){return Ax.has(a.tagName)||a.isContentEditable===!0}const gu=new WeakSet;function oy(a){return i=>{i.key==="Enter"&&a(i)}}function Sc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Cx=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=oy(()=>{if(gu.has(s))return;Sc(s,"down");const c=oy(()=>{Sc(s,"up")}),d=()=>Sc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",u,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",u),i)};function cy(a){return Df(a)&&!b0()}const fy=new WeakSet;function Dx(a,i,s={}){const[u,c,d]=T0(a,s),f=m=>{const y=m.currentTarget;if(!cy(m)||fy.has(m))return;gu.add(y),s.stopPropagation&&fy.add(m);const p=i(y,m),g=(x,A)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),gu.has(y)&&gu.delete(y),cy(x)&&typeof p=="function"&&p(x,{success:A})},v=x=>{g(x,y===window||y===document||s.useGlobalTarget||x0(y,x.target))},b=x=>{g(x,!1)};window.addEventListener("pointerup",v,c),window.addEventListener("pointercancel",b,c)};return u.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),yu(m)&&(m.addEventListener("focus",p=>Cx(p,c)),!Ex(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Rf(a){return Mg(a)&&"ownerSVGElement"in a}const vu=new WeakMap;let $n;const E0=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:Rf(u)&&"getBBox"in u?u.getBBox()[i]:u[s],Rx=E0("inline","width","offsetWidth"),wx=E0("block","height","offsetHeight");function zx({target:a,borderBoxSize:i}){var s;(s=vu.get(a))==null||s.forEach(u=>{u(a,{get width(){return Rx(a,i)},get height(){return wx(a,i)}})})}function Ox(a){a.forEach(zx)}function jx(){typeof ResizeObserver>"u"||($n=new ResizeObserver(Ox))}function _x(a,i){$n||jx();const s=v0(a);return s.forEach(u=>{let c=vu.get(u);c||(c=new Set,vu.set(u,c)),c.add(i),$n==null||$n.observe(u)}),()=>{s.forEach(u=>{const c=vu.get(u);c==null||c.delete(i),c!=null&&c.size||$n==null||$n.unobserve(u)})}}const Su=new Set;let gi;function Vx(){gi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Su.forEach(i=>i(a))},window.addEventListener("resize",gi)}function Nx(a){return Su.add(a),gi||Vx(),()=>{Su.delete(a),!Su.size&&typeof gi=="function"&&(window.removeEventListener("resize",gi),gi=void 0)}}function dy(a,i){return typeof a=="function"?Nx(a):_x(a,i)}function Bx(a){return Rf(a)&&a.tagName==="svg"}const Ux=[...p0,Wt,Fe],Lx=a=>Ux.find(m0(a)),hy=()=>({translate:0,scale:1,origin:0,originPoint:0}),vi=()=>({x:hy(),y:hy()}),my=()=>({min:0,max:0}),It=()=>({x:my(),y:my()}),Hx=new WeakMap;function Hu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Nl(a){return typeof a=="string"||Array.isArray(a)}const wf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zf=["initial",...wf];function Yu(a){return Hu(a.animate)||zf.some(i=>Nl(a[i]))}function A0(a){return!!(Yu(a)||a.variants)}function Yx(a,i,s){for(const u in i){const c=i[u],d=s[u];if(oe(c))a.addValue(u,c);else if(oe(d))a.addValue(u,Ti(c,{owner:a}));else if(d!==c)if(a.hasValue(u)){const f=a.getValue(u);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(u);a.addValue(u,Ti(f!==void 0?f:c,{owner:a}))}}for(const u in s)i[u]===void 0&&a.removeValue(u);return i}const wu={current:null},Of={current:!1},qx=typeof window<"u";function M0(){if(Of.current=!0,!!qx)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>wu.current=a.matches;a.addEventListener("change",i),i()}else wu.current=!1}const py=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let zu={};function C0(a){zu=a}function Gx(){return zu}class Xx{scrapeMotionValuesFromProps(i,s,u){return{}}constructor({parent:i,props:s,presenceContext:u,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:m},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=bf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=he.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,jt.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=g,this.parent=i,this.props=s,this.presenceContext=u,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=Yu(s),this.isVariantNode=A0(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const x in b){const A=b[x];p[x]!==void 0&&oe(A)&&A.set(p[x])}}mount(i){var s,u;if(this.hasBeenMounted)for(const c in this.initialValues)(s=this.values.get(c))==null||s.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=i,Hx.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((c,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Of.current||M0(),this.shouldReduceMotion=wu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(u=this.parent)==null||u.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),ea(this.notifyUpdate),ea(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const u=this.features[s];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&s0.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:g}=s.accelerate,v=new i0({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:ze(g)}),b=f(v);this.valueSubscriptions.set(i,()=>{b(),v.cancel()});return}const u=Mi.has(i);u&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&jt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in zu){const s=zu[i];if(!s)continue;const{isEnabled:u,Feature:c}=s;if(!this.features[i]&&c&&u(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let u=0;u<py.length;u++){const c=py[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=Yx(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const u=this.values.get(i);s!==u&&(u&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let u=this.values.get(i);return u===void 0&&s!==void 0&&(u=Ti(s===null?void 0:s,{owner:this}),this.addValue(i,u)),u}readValue(i,s){let u=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return u!=null&&(typeof u=="string"&&(Ag(u)||Cg(u))?u=parseFloat(u):!Lx(u)&&Fe.test(s)&&(u=g0(i,s)),this.setBaseTarget(i,oe(u)?u.get():u)),oe(u)?u.get():u}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let u;if(typeof s=="string"||typeof s=="object"){const f=Ef(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(u=f[i])}if(s&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!oe(c)?c:this.initialValues[i]!==void 0&&u===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new ff),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){Cf.render(this.render)}}class D0 extends Xx{constructor(){super(...arguments),this.KeyframeResolver=vx}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const u=i.style;return u?u[s]:void 0}removeValueFromRenderState(i,{vars:s,style:u}){delete s[i],delete u[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;oe(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class na{constructor(i){this.isMounted=!1,this.node=i}update(){}}function R0({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function kx({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function Zx(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),u=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:u.y,right:u.x}}function bc(a){return a===void 0||a===1}function $c({scale:a,scaleX:i,scaleY:s}){return!bc(a)||!bc(i)||!bc(s)}function Ma(a){return $c(a)||w0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function w0(a){return yy(a.x)||yy(a.y)}function yy(a){return a&&a!=="0%"}function Ou(a,i,s){const u=a-s,c=i*u;return s+c}function gy(a,i,s,u,c){return c!==void 0&&(a=Ou(a,c,u)),Ou(a,s,u)+i}function Ic(a,i=0,s=1,u,c){a.min=gy(a.min,i,s,u,c),a.max=gy(a.max,i,s,u,c)}function z0(a,{x:i,y:s}){Ic(a.x,i.translate,i.scale,i.originPoint),Ic(a.y,s.translate,s.scale,s.originPoint)}const vy=.999999999999,Sy=1.0000000000001;function Qx(a,i,s,u=!1){var m;const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let y=0;y<c;y++){d=s[y],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(ln(a.x,-d.scroll.offset.x),ln(a.y,-d.scroll.offset.y)),f&&(i.x*=f.x.scale,i.y*=f.y.scale,z0(a,f)),u&&Ma(d.latestValues)&&bu(a,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}i.x<Sy&&i.x>vy&&(i.x=1),i.y<Sy&&i.y>vy&&(i.y=1)}function ln(a,i){a.min+=i,a.max+=i}function by(a,i,s,u,c=.5){const d=Nt(a.min,a.max,c);Ic(a,i,s,d,u)}function Ty(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function bu(a,i,s){const u=s??a;by(a.x,Ty(i.x,u.x),i.scaleX,i.scale,i.originX),by(a.y,Ty(i.y,u.y),i.scaleY,i.scale,i.originY)}function O0(a,i){return R0(Zx(a.getBoundingClientRect(),i))}function Kx(a,i,s){const u=O0(a,s),{scroll:c}=i;return c&&(ln(u.x,c.offset.x),ln(u.y,c.offset.y)),u}const Jx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Px=Ai.length;function Fx(a,i,s){let u="",c=!0;for(let d=0;d<Px;d++){const f=Ai[d],m=a[f];if(m===void 0)continue;let y=!0;if(typeof m=="number")y=m===(f.startsWith("scale")?1:0);else{const p=parseFloat(m);y=f.startsWith("scale")?p===1:p===0}if(!y||s){const p=S0(m,Mf[f]);if(!y){c=!1;const g=Jx[f]||f;u+=`${g}(${p}) `}s&&(i[f]=p)}}return u=u.trim(),s?u=s(i,c?"":u):c&&(u="none"),u}function jf(a,i,s){const{style:u,vars:c,transformOrigin:d}=a;let f=!1,m=!1;for(const y in i){const p=i[y];if(Mi.has(y)){f=!0;continue}else if(qg(y)){c[y]=p;continue}else{const g=S0(p,Mf[y]);y.startsWith("origin")?(m=!0,d[y]=g):u[y]=g}}if(i.transform||(f||s?u.transform=Fx(i,a.transform,s):u.transform&&(u.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:g=0}=d;u.transformOrigin=`${y} ${p} ${g}`}}function j0(a,{style:i,vars:s},u,c){const d=a.style;let f;for(f in i)d[f]=i[f];c==null||c.applyProjectionStyles(d,u);for(f in s)d.setProperty(f,s[f])}function xy(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Dl={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(at.test(a))a=parseFloat(a);else return a;const s=xy(a,i.target.x),u=xy(a,i.target.y);return`${s}% ${u}%`}},Wx={correct:(a,{treeScale:i,projectionDelta:s})=>{const u=a,c=Fe.parse(a);if(c.length>5)return u;const d=Fe.createTransformer(a),f=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,y=s.y.scale*i.y;c[0+f]/=m,c[1+f]/=y;const p=Nt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},tf={borderRadius:{...Dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dl,borderTopRightRadius:Dl,borderBottomLeftRadius:Dl,borderBottomRightRadius:Dl,boxShadow:Wx};function _0(a,{layout:i,layoutId:s}){return Mi.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!tf[a]||a==="opacity")}function _f(a,i,s){var f;const u=a.style,c=i==null?void 0:i.style,d={};if(!u)return d;for(const m in u)(oe(u[m])||c&&oe(c[m])||_0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=u[m]);return d}function $x(a){return window.getComputedStyle(a)}class Ix extends D0{constructor(){super(...arguments),this.type="html",this.renderInstance=j0}readValueFromInstance(i,s){var u;if(Mi.has(s))return(u=this.projection)!=null&&u.isProjecting?qc(s):bT(i,s);{const c=$x(i),d=(qg(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return O0(i,s)}build(i,s,u){jf(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return _f(i,s,u)}}const t2={offset:"stroke-dashoffset",array:"stroke-dasharray"},e2={offset:"strokeDashoffset",array:"strokeDasharray"};function n2(a,i,s=1,u=0,c=!0){a.pathLength=1;const d=c?t2:e2;a[d.offset]=`${-u}`,a[d.array]=`${i} ${s}`}const a2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function V0(a,{attrX:i,attrY:s,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,g){if(jf(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:b}=a;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete v.transformBox);for(const x of a2)v[x]!==void 0&&(b[x]=v[x],delete v[x]);i!==void 0&&(v.x=i),s!==void 0&&(v.y=s),u!==void 0&&(v.scale=u),c!==void 0&&n2(v,c,d,f,!1)}const N0=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"]),B0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function i2(a,i,s,u){j0(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(N0.has(c)?c:Af(c),i.attrs[c])}function U0(a,i,s){const u=_f(a,i,s);for(const c in a)if(oe(a[c])||oe(i[c])){const d=Ai.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=a[c]}return u}class l2 extends D0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Mi.has(s)){const u=y0(s);return u&&u.default||0}return s=N0.has(s)?s:Af(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return U0(i,s,u)}build(i,s,u){V0(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){i2(i,s,u,c)}mount(i){this.isSVGTag=B0(i.tagName),super.mount(i)}}const s2=zf.length;function L0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?L0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<s2;s++){const u=zf[s],c=a.props[u];(Nl(c)||c===!1)&&(i[u]=c)}return i}function H0(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let u=0;u<s;u++)if(i[u]!==a[u])return!1;return!0}const u2=[...wf].reverse(),r2=wf.length;function o2(a){return i=>Promise.all(i.map(({animation:s,options:u})=>ux(a,s,u)))}function c2(a){let i=o2(a),s=Ey(),u=!0,c=!1;const d=p=>(g,v)=>{var x;const b=wa(a,v,p==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);if(b){const{transition:A,transitionEnd:w,...j}=b;g={...g,...j,...w}}return g};function f(p){i=p(a)}function m(p){const{props:g}=a,v=L0(a.parent)||{},b=[],x=new Set;let A={},w=1/0;for(let B=0;B<r2;B++){const q=u2[B],H=s[q],J=g[q]!==void 0?g[q]:v[q],W=Nl(J),P=q===p?H.isActive:null;P===!1&&(w=B);let X=J===v[q]&&J!==g[q]&&W;if(X&&(u||c)&&a.manuallyAnimateOnMount&&(X=!1),H.protectedKeys={...A},!H.isActive&&P===null||!J&&!H.prevProp||Hu(J)||typeof J=="boolean")continue;if(q==="exit"&&H.isActive&&P!==!0){H.prevResolvedValues&&(A={...A,...H.prevResolvedValues});continue}const Z=f2(H.prevProp,J);let Q=Z||q===p&&H.isActive&&!X&&W||B>w&&W,k=!1;const $=Array.isArray(J)?J:[J];let K=$.reduce(d(q),{});P===!1&&(K={});const{prevResolvedValues:rt={}}=H,Tt={...rt,...K},xt=tt=>{Q=!0,x.has(tt)&&(k=!0,x.delete(tt)),H.needsAnimating[tt]=!0;const ut=a.getValue(tt);ut&&(ut.liveStyle=!1)};for(const tt in Tt){const ut=K[tt],ft=rt[tt];if(A.hasOwnProperty(tt))continue;let M=!1;Kc(ut)&&Kc(ft)?M=!H0(ut,ft):M=ut!==ft,M?ut!=null?xt(tt):x.add(tt):ut!==void 0&&x.has(tt)?xt(tt):H.protectedKeys[tt]=!0}H.prevProp=J,H.prevResolvedValues=K,H.isActive&&(A={...A,...K}),(u||c)&&a.blockInitialAnimation&&(Q=!1);const V=X&&Z;Q&&(!V||k)&&b.push(...$.map(tt=>{const ut={type:q};if(typeof tt=="string"&&(u||c)&&!V&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,M=wa(ft,tt);if(ft.enteringChildren&&M){const{delayChildren:Y}=M.transition||{};ut.delay=u0(ft.enteringChildren,a,Y)}}return{animation:tt,options:ut}}))}if(x.size){const B={};if(typeof g.initial!="boolean"){const q=wa(a,Array.isArray(g.initial)?g.initial[0]:g.initial);q&&q.transition&&(B.transition=q.transition)}x.forEach(q=>{const H=a.getBaseTarget(q),J=a.getValue(q);J&&(J.liveStyle=!0),B[q]=H??null}),b.push({animation:B})}let j=!!b.length;return u&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(j=!1),u=!1,c=!1,j?i(b):Promise.resolve()}function y(p,g){var b;if(s[p].isActive===g)return Promise.resolve();(b=a.variantChildren)==null||b.forEach(x=>{var A;return(A=x.animationState)==null?void 0:A.setActive(p,g)}),s[p].isActive=g;const v=m(p);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:m,setActive:y,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Ey(),c=!0}}}function f2(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!H0(i,a):!1}function Aa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ey(){return{animate:Aa(!0),whileInView:Aa(),whileHover:Aa(),whileTap:Aa(),whileDrag:Aa(),whileFocus:Aa(),exit:Aa()}}function ef(a,i){a.min=i.min,a.max=i.max}function Je(a,i){ef(a.x,i.x),ef(a.y,i.y)}function Ay(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const Y0=1e-4,d2=1-Y0,h2=1+Y0,q0=.01,m2=0-q0,p2=0+q0;function me(a){return a.max-a.min}function y2(a,i,s){return Math.abs(a-i)<=s}function My(a,i,s,u=.5){a.origin=u,a.originPoint=Nt(i.min,i.max,a.origin),a.scale=me(s)/me(i),a.translate=Nt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=d2&&a.scale<=h2||isNaN(a.scale))&&(a.scale=1),(a.translate>=m2&&a.translate<=p2||isNaN(a.translate))&&(a.translate=0)}function Ol(a,i,s,u){My(a.x,i.x,s.x,u?u.originX:void 0),My(a.y,i.y,s.y,u?u.originY:void 0)}function Cy(a,i,s,u=0){const c=u?Nt(s.min,s.max,u):s.min;a.min=c+i.min,a.max=a.min+me(i)}function g2(a,i,s,u){Cy(a.x,i.x,s.x,u==null?void 0:u.x),Cy(a.y,i.y,s.y,u==null?void 0:u.y)}function Dy(a,i,s,u=0){const c=u?Nt(s.min,s.max,u):s.min;a.min=i.min-c,a.max=a.min+me(i)}function ju(a,i,s,u){Dy(a.x,i.x,s.x,u==null?void 0:u.x),Dy(a.y,i.y,s.y,u==null?void 0:u.y)}function Ry(a,i,s,u,c){return a-=i,a=Ou(a,1/s,u),c!==void 0&&(a=Ou(a,1/c,u)),a}function v2(a,i=0,s=1,u=.5,c,d=a,f=a){if(sn.test(i)&&(i=parseFloat(i),i=Nt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Nt(d.min,d.max,u);a===d&&(m-=i),a.min=Ry(a.min,i,s,m,c),a.max=Ry(a.max,i,s,m,c)}function wy(a,i,[s,u,c],d,f){v2(a,i[s],i[u],i[c],i.scale,d,f)}const S2=["x","scaleX","originX"],b2=["y","scaleY","originY"];function zy(a,i,s,u){wy(a.x,i,S2,s?s.x:void 0,u?u.x:void 0),wy(a.y,i,b2,s?s.y:void 0,u?u.y:void 0)}function Oy(a){return a.translate===0&&a.scale===1}function G0(a){return Oy(a.x)&&Oy(a.y)}function jy(a,i){return a.min===i.min&&a.max===i.max}function T2(a,i){return jy(a.x,i.x)&&jy(a.y,i.y)}function _y(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function X0(a,i){return _y(a.x,i.x)&&_y(a.y,i.y)}function Vy(a){return me(a.x)/me(a.y)}function Ny(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function an(a){return[a("x"),a("y")]}function x2(a,i,s){let u="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(u=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(u+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:g,rotateX:v,rotateY:b,skewX:x,skewY:A}=s;p&&(u=`perspective(${p}px) ${u}`),g&&(u+=`rotate(${g}deg) `),v&&(u+=`rotateX(${v}deg) `),b&&(u+=`rotateY(${b}deg) `),x&&(u+=`skewX(${x}deg) `),A&&(u+=`skewY(${A}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(u+=`scale(${m}, ${y})`),u||"none"}const k0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],E2=k0.length,By=a=>typeof a=="string"?parseFloat(a):a,Uy=a=>typeof a=="number"||at.test(a);function A2(a,i,s,u,c,d){c?(a.opacity=Nt(0,s.opacity??1,M2(u)),a.opacityExit=Nt(i.opacity??1,0,C2(u))):d&&(a.opacity=Nt(i.opacity??1,s.opacity??1,u));for(let f=0;f<E2;f++){const m=k0[f];let y=Ly(i,m),p=Ly(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Uy(y)===Uy(p)?(a[m]=Math.max(Nt(By(y),By(p),u),0),(sn.test(p)||sn.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=Nt(i.rotate||0,s.rotate||0,u))}function Ly(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const M2=Z0(0,.5,Ng),C2=Z0(.5,.95,Ge);function Z0(a,i,s){return u=>u<a?0:u>i?1:s(_l(a,i,u))}function D2(a,i,s){const u=oe(a)?a:Ti(a);return u.start(xf("",u,i,s)),u.animation}function Bl(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const R2=(a,i)=>a.depth-i.depth;class w2{constructor(){this.children=[],this.isDirty=!1}add(i){of(this.children,i),this.isDirty=!0}remove(i){Au(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(R2),this.isDirty=!1,this.children.forEach(i)}}function z2(a,i){const s=he.now(),u=({timestamp:c})=>{const d=c-s;d>=i&&(ea(u),a(d-i))};return jt.setup(u,!0),()=>ea(u)}function Tu(a){return oe(a)?a.get():a}class O2{constructor(){this.members=[]}add(i){of(this.members,i);for(let s=this.members.length-1;s>=0;s--){const u=this.members[s];if(u===i||u===this.lead||u===this.prevLead)continue;const c=u.instance;(!c||c.isConnected===!1)&&!u.snapshot&&(Au(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Au(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){var s;for(let u=this.members.indexOf(i)-1;u>=0;u--){const c=this.members[u];if(c.isPresent!==!1&&((s=c.instance)==null?void 0:s.isConnected)!==!1)return this.promote(c),!0}return!1}promote(i,s){var c;const u=this.lead;if(i!==u&&(this.prevLead=u,this.lead=i,i.show(),u)){u.updateSnapshot(),i.scheduleRender();const{layoutDependency:d}=u.options,{layoutDependency:f}=i.options;(d===void 0||d!==f)&&(i.resumeFrom=u,s&&(u.preserveOpacity=!0),u.snapshot&&(i.snapshot=u.snapshot,i.snapshot.latestValues=u.animationValues||u.latestValues),(c=i.root)!=null&&c.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(i=>{var s,u,c,d,f;(u=(s=i.options).onExitComplete)==null||u.call(s),(f=(c=i.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){var i;(i=this.lead)!=null&&i.snapshot&&(this.lead.snapshot=void 0)}}const xu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tc=["","X","Y","Z"],j2=1e3;let _2=0;function xc(a,i,s,u){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),u&&(u[a]=0))}function Q0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=d0(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",jt,!(c||d))}const{parent:u}=a;u&&!u.hasCheckedOptimisedAppear&&Q0(u)}function K0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=_2++,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(B2),this.nodes.forEach(G2),this.nodes.forEach(X2),this.nodes.forEach(U2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new w2)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new ff),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const y=this.eventHandlers.get(f);y&&y.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Rf(f)&&!Bx(f),this.instance=f;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),a){let g,v=0;const b=()=>this.root.updateBlockedByResize=!1;jt.read(()=>{v=window.innerWidth}),a(f,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,g&&g(),g=z2(b,250),xu.hasAnimatedSinceResize&&(xu.hasAnimatedSinceResize=!1,this.nodes.forEach(qy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||p.getDefaultTransition()||J2,{onLayoutAnimationStart:w,onLayoutAnimationComplete:j}=p.getProps(),B=!this.targetLayout||!X0(this.targetLayout,x),q=!v&&b;if(this.options.layoutRoot||this.resumeFrom||q||v&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Tf(A,"layout"),onPlay:w,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(g,q)}else v||qy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ea(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(k2),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Q0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const y=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),y&&this.nodes.forEach(H2),this.nodes.forEach(Hy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Yy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Y2),this.nodes.forEach(q2),this.nodes.forEach(V2),this.nodes.forEach(N2)):this.nodes.forEach(Yy),this.clearAllSnapshots();const m=he.now();re.delta=un(0,1e3/60,m-re.timestamp),re.timestamp=m,re.isProcessing=!0,hc.update.process(re),hc.preRender.process(re),hc.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(L2),this.sharedNodes.forEach(Z2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!me(this.snapshot.measuredBox.x)&&!me(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=It()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const y=u(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!G0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||Ma(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return f&&(y=this.removeTransform(y)),P2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return It();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(F2))){const{scroll:g}=this.root;g&&(ln(m.x,g.offset.x),ln(m.y,g.offset.y))}return m}removeElementScroll(f){var y;const m=It();if(Je(m,f),(y=this.scroll)!=null&&y.wasRoot)return m;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:v,options:b}=g;g!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Je(m,f),ln(m.x,v.offset.x),ln(m.y,v.offset.y))}return m}applyTransform(f,m=!1,y){var g,v;const p=y||It();Je(p,f);for(let b=0;b<this.path.length;b++){const x=this.path[b];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(ln(p.x,-x.scroll.offset.x),ln(p.y,-x.scroll.offset.y)),Ma(x.latestValues)&&bu(p,x.latestValues,(g=x.layout)==null?void 0:g.layoutBox)}return Ma(this.latestValues)&&bu(p,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),p}removeTransform(f){var y;const m=It();Je(m,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];if(!Ma(g.latestValues))continue;let v;g.instance&&($c(g.latestValues)&&g.updateSnapshot(),v=It(),Je(v,g.measurePageBox())),zy(m,g.latestValues,(y=g.snapshot)==null?void 0:y.layoutBox,v)}return Ma(this.latestValues)&&zy(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var x;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=re.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g2(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Je(this.target,this.layout.layoutBox),z0(this.target,this.targetDelta)):Je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$c(this.parent.latestValues)||w0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,m,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),ju(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Je(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var A;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===re.timestamp&&(y=!1),y)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Je(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;Qx(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=It());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),Ol(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!Ny(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ny(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),f){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vi(),this.projectionDelta=vi(),this.projectionDeltaWithTransform=vi()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},g={...this.latestValues},v=vi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=It(),x=y?y.source:void 0,A=this.layout?this.layout.source:void 0,w=x!==A,j=this.getStack(),B=!j||j.members.length<=1,q=!!(w&&!B&&this.options.crossfade===!0&&!this.path.some(K2));this.animationProgress=0;let H;this.mixTargetDelta=J=>{const W=J/1e3;Gy(v.x,f.x,W),Gy(v.y,f.y,W),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ju(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Q2(this.relativeTarget,this.relativeTargetOrigin,b,W),H&&T2(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=It()),Je(H,this.relativeTarget)),w&&(this.animationValues=g,A2(g,p,this.latestValues,W,q,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var m,y,p;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(p=(y=this.resumingFrom)==null?void 0:y.currentAnimation)==null||p.stop(),this.pendingAnimation&&(ea(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{xu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ti(0)),this.motionValue.jump(0,!1),this.currentAnimation=D2(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(j2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:g}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&J0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||It();const v=me(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+v;const b=me(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+b}Je(m,y),bu(m,g),Ol(this.projectionDeltaWithTransform,this.layoutCorrected,m,g)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new O2),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var m;const{layoutId:f}=this.options;return f?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:f}=this.options;return f?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&xc("z",f,p,this.animationValues);for(let g=0;g<Tc.length;g++)xc(`rotate${Tc[g]}`,f,p,this.animationValues),xc(`skew${Tc[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Tu(m==null?void 0:m.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Tu(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Ma(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=x2(this.projectionDeltaWithTransform,this.treeScale,g);y&&(v=y(g,v)),f.transform=v;const{x:b,y:x}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const A in tf){if(g[A]===void 0)continue;const{correct:w,applyTo:j,isCSSVariable:B}=tf[A],q=v==="none"?g[A]:w(g[A],p);if(j){const H=j.length;for(let J=0;J<H;J++)f[j[J]]=q}else B?this.options.visualElement.renderState.vars[A]=q:f[A]=q}this.options.layoutId&&(f.pointerEvents=p===this?Tu(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var m;return(m=f.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(Hy),this.root.sharedNodes.clear()}}}function V2(a){a.updateLayout()}function N2(a){var s;const i=((s=a.resumeFrom)==null?void 0:s.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:c}=a.layout,{animationType:d}=a.options,f=i.source!==a.layout.source;if(d==="size")an(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],x=me(b);b.min=u[v].min,b.max=b.min+x});else if(d==="x"||d==="y"){const v=d==="x"?"y":"x";ef(f?i.measuredBox[v]:i.layoutBox[v],u[v])}else J0(d,i.layoutBox,u)&&an(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],x=me(u[v]);b.max=b.min+x,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+x)});const m=vi();Ol(m,u,i.layoutBox);const y=vi();f?Ol(y,a.applyTransform(c,!0),i.measuredBox):Ol(y,u,i.layoutBox);const p=!G0(m);let g=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:x}=v;if(b&&x){const A=a.options.layoutAnchor||void 0,w=It();ju(w,i.layoutBox,b.layoutBox,A);const j=It();ju(j,u,x.layoutBox,A),X0(w,j)||(g=!0),v.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=w,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:y,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function B2(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function U2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function L2(a){a.clearSnapshot()}function Hy(a){a.clearMeasurements()}function H2(a){a.isLayoutDirty=!0,a.updateLayout()}function Yy(a){a.isLayoutDirty=!1}function Y2(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function q2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function qy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function G2(a){a.resolveTargetDelta()}function X2(a){a.calcProjection()}function k2(a){a.resetSkewAndRotation()}function Z2(a){a.removeLeadSnapshot()}function Gy(a,i,s){a.translate=Nt(i.translate,0,s),a.scale=Nt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Xy(a,i,s,u){a.min=Nt(i.min,s.min,u),a.max=Nt(i.max,s.max,u)}function Q2(a,i,s,u){Xy(a.x,i.x,s.x,u),Xy(a.y,i.y,s.y,u)}function K2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const J2={duration:.45,ease:[.4,0,.1,1]},ky=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Zy=ky("applewebkit/")&&!ky("chrome/")?Math.round:Ge;function Qy(a){a.min=Zy(a.min),a.max=Zy(a.max)}function P2(a){Qy(a.x),Qy(a.y)}function J0(a,i,s){return a==="position"||a==="preserve-aspect"&&!y2(Vy(i),Vy(s),.2)}function F2(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const W2=K0({attachResizeListener:(a,i)=>Bl(a,"resize",i),measureScroll:()=>{var a,i;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((i=document.body)==null?void 0:i.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ec={current:void 0},P0=K0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Ec.current){const a=new W2({});a.mount(window),a.setOptions({layoutScroll:!0}),Ec.current=a}return Ec.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Vf=E.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Ky(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function $2(...a){return i=>{let s=!1;const u=a.map(c=>{const d=Ky(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():Ky(a[c],null)}}}}function I2(...a){return E.useCallback($2(...a),a)}class tE extends E.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(yu(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=yu(u)&&u.offsetWidth||0,d=yu(u)&&u.offsetHeight||0,f=getComputedStyle(s),m=this.props.sizeRef.current;m.height=parseFloat(f.height),m.width=parseFloat(f.width),m.top=s.offsetTop,m.left=s.offsetLeft,m.right=c-m.width-m.left,m.bottom=d-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function eE({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:d}){var b;const f=E.useId(),m=E.useRef(null),y=E.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=E.useContext(Vf),g=((b=a.props)==null?void 0:b.ref)??(a==null?void 0:a.ref),v=I2(m,g);return E.useInsertionEffect(()=>{const{width:x,height:A,top:w,left:j,right:B,bottom:q}=y.current;if(i||d===!1||!m.current||!x||!A)return;const H=s==="left"?`left: ${j}`:`right: ${B}`,J=u==="bottom"?`bottom: ${q}`:`top: ${w}`;m.current.dataset.motionPopId=f;const W=document.createElement("style");p&&(W.nonce=p);const P=c??document.head;return P.appendChild(W),W.sheet&&W.sheet.insertRule(`
50
- [data-motion-pop-id="${f}"] {
51
- position: absolute !important;
52
- width: ${x}px !important;
53
- height: ${A}px !important;
54
- ${H}px !important;
55
- ${J}px !important;
56
- }
57
- `),()=>{var X;(X=m.current)==null||X.removeAttribute("data-motion-pop-id"),P.contains(W)&&P.removeChild(W)}},[i]),C.jsx(tE,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:E.cloneElement(a,{ref:v})})}const nE=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const g=rf(aE),v=E.useId();let b=!0,x=E.useMemo(()=>(b=!1,{id:v,initial:i,isPresent:s,custom:c,onExitComplete:A=>{g.set(A,!0);for(const w of g.values())if(!w)return;u&&u()},register:A=>(g.set(A,!1),()=>g.delete(A))}),[s,g,u]);return d&&b&&(x={...x}),E.useMemo(()=>{g.forEach((A,w)=>g.set(w,!1))},[s]),E.useEffect(()=>{!s&&!g.size&&u&&u()},[s]),a=C.jsx(eE,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),C.jsx(Uu.Provider,{value:x,children:a})};function aE(){return new Map}function F0(a=!0){const i=E.useContext(Uu);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,d=E.useId();E.useEffect(()=>{if(a)return c(d)},[a]);const f=E.useCallback(()=>a&&u&&u(d),[d,u,a]);return!s&&u?[!1,f]:[!0]}const fu=a=>a.key||"";function Jy(a){const i=[];return E.Children.forEach(a,s=>{E.isValidElement(s)&&i.push(s)}),i}const _u=({children:a,custom:i,initial:s=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",anchorY:y="top",root:p})=>{const[g,v]=F0(f),b=E.useMemo(()=>Jy(a),[a]),x=f&&!g?[]:b.map(fu),A=E.useRef(!0),w=E.useRef(b),j=rf(()=>new Map),B=E.useRef(new Set),[q,H]=E.useState(b),[J,W]=E.useState(b);Eg(()=>{A.current=!1,w.current=b;for(let Z=0;Z<J.length;Z++){const Q=fu(J[Z]);x.includes(Q)?(j.delete(Q),B.current.delete(Q)):j.get(Q)!==!0&&j.set(Q,!1)}},[J,x.length,x.join("-")]);const P=[];if(b!==q){let Z=[...b];for(let Q=0;Q<J.length;Q++){const k=J[Q],$=fu(k);x.includes($)||(Z.splice(Q,0,k),P.push(k))}return d==="wait"&&P.length&&(Z=P),W(Jy(Z)),H(b),null}const{forceRender:X}=E.useContext(uf);return C.jsx(C.Fragment,{children:J.map(Z=>{const Q=fu(Z),k=f&&!g?!1:b===J||x.includes(Q),$=()=>{if(B.current.has(Q))return;if(j.has(Q))B.current.add(Q),j.set(Q,!0);else return;let K=!0;j.forEach(rt=>{rt||(K=!1)}),K&&(X==null||X(),W(w.current),f&&(v==null||v()),u&&u())};return C.jsx(nE,{isPresent:k,initial:!A.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:k?void 0:$,anchorX:m,anchorY:y,children:Z},Q)})})},W0=E.createContext({strict:!1}),Py={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 Fy=!1;function iE(){if(Fy)return;const a={};for(const i in Py)a[i]={isEnabled:s=>Py[i].some(u=>!!s[u])};C0(a),Fy=!0}function $0(){return iE(),Gx()}function lE(a){const i=$0();for(const s in a)i[s]={...i[s],...a[s]};C0(i)}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","propagate","ignoreStrict","viewport"]);function Vu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||sE.has(a)}let I0=a=>!Vu(a);function uE(a){typeof a=="function"&&(I0=i=>i.startsWith("on")?!Vu(i):a(i))}try{uE(require("@emotion/is-prop-valid").default)}catch{}function rE(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||oe(a[c])||(I0(c)||s===!0&&Vu(c)||!i&&!Vu(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const qu=E.createContext({});function oE(a,i){if(Yu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||Nl(s)?s:void 0,animate:Nl(u)?u:void 0}}return a.inherit!==!1?i:{}}function cE(a){const{initial:i,animate:s}=oE(a,E.useContext(qu));return E.useMemo(()=>({initial:i,animate:s}),[Wy(i),Wy(s)])}function Wy(a){return Array.isArray(a)?a.join(" "):a}const Nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tv(a,i,s){for(const u in i)!oe(i[u])&&!_0(u,s)&&(a[u]=i[u])}function fE({transformTemplate:a},i){return E.useMemo(()=>{const s=Nf();return jf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function dE(a,i){const s=a.style||{},u={};return tv(u,s,a),Object.assign(u,fE(a,i)),u}function hE(a,i){const s={},u=dE(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=u,s}const ev=()=>({...Nf(),attrs:{}});function mE(a,i,s,u){const c=E.useMemo(()=>{const d=ev();return V0(d,i,B0(u),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};tv(d,a.style,a),c.style={...d,...c.style}}return c}const pE=["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 Bf(a){return typeof a!="string"||a.includes("-")?!1:!!(pE.indexOf(a)>-1||/[A-Z]/u.test(a))}function yE(a,i,s,{latestValues:u},c,d=!1,f){const y=(f??Bf(a)?mE:hE)(i,u,c,a),p=rE(i,typeof a=="string",d),g=a!==E.Fragment?{...p,...y,ref:s}:{},{children:v}=i,b=E.useMemo(()=>oe(v)?v.get():v,[v]);return E.createElement(a,{...g,children:b})}function gE({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:vE(s,u,c,a),renderState:i()}}function vE(a,i,s,u){const c={},d=u(a,{});for(const b in d)c[b]=Tu(d[b]);let{initial:f,animate:m}=a;const y=Yu(a),p=A0(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let g=s?s.initial===!1:!1;g=g||f===!1;const v=g?m:f;if(v&&typeof v!="boolean"&&!Hu(v)){const b=Array.isArray(v)?v:[v];for(let x=0;x<b.length;x++){const A=Ef(a,b[x]);if(A){const{transitionEnd:w,transition:j,...B}=A;for(const q in B){let H=B[q];if(Array.isArray(H)){const J=g?H.length-1:0;H=H[J]}H!==null&&(c[q]=H)}for(const q in w)c[q]=w[q]}}}return c}const nv=a=>(i,s)=>{const u=E.useContext(qu),c=E.useContext(Uu),d=()=>gE(a,i,u,c);return s?d():rf(d)},SE=nv({scrapeMotionValuesFromProps:_f,createRenderState:Nf}),bE=nv({scrapeMotionValuesFromProps:U0,createRenderState:ev}),TE=Symbol.for("motionComponentSymbol");function xE(a,i,s){const u=E.useRef(s);E.useInsertionEffect(()=>{u.current=s});const c=E.useRef(null);return E.useCallback(d=>{var m;d&&((m=a.onMount)==null||m.call(a,d));const f=u.current;if(typeof f=="function")if(d){const y=f(d);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const av=E.createContext({});function pi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function EE(a,i,s,u,c,d){var H,J;const{visualElement:f}=E.useContext(qu),m=E.useContext(W0),y=E.useContext(Uu),p=E.useContext(Vf),g=p.reducedMotion,v=p.skipAnimations,b=E.useRef(null),x=E.useRef(!1);u=u||m.renderer,!b.current&&u&&(b.current=u(a,{visualState:i,parent:f,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:g,skipAnimations:v,isSVG:d}),x.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const A=b.current,w=E.useContext(av);A&&!A.projection&&c&&(A.type==="html"||A.type==="svg")&&AE(b.current,s,c,w);const j=E.useRef(!1);E.useInsertionEffect(()=>{A&&j.current&&A.update(s,y)});const B=s[f0],q=E.useRef(!!B&&typeof window<"u"&&!((H=window.MotionHandoffIsComplete)!=null&&H.call(window,B))&&((J=window.MotionHasOptimisedAnimation)==null?void 0:J.call(window,B)));return Eg(()=>{x.current=!0,A&&(j.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),q.current&&A.animationState&&A.animationState.animateChanges())}),E.useEffect(()=>{A&&(!q.current&&A.animationState&&A.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{var W;(W=window.MotionHandoffMarkAsComplete)==null||W.call(window,B)}),q.current=!1),A.enteringChildren=void 0)}),A}function AE(a,i,s,u){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutAnchor:g,layoutCrossfade:v}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:iv(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&pi(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:v,layoutScroll:y,layoutRoot:p,layoutAnchor:g})}function iv(a){if(a)return a.options.allowProjection!==!1?a.projection:iv(a.parent)}function Ac(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&lE(u);const d=s?s==="svg":Bf(a),f=d?bE:SE;function m(p,g){let v;const b={...E.useContext(Vf),...p,layoutId:ME(p)},{isStatic:x}=b,A=cE(p),w=f(p,x);if(!x&&typeof window<"u"){CE();const j=DE(b);v=j.MeasureLayout,A.visualElement=EE(a,w,b,c,j.ProjectionNode,d)}return C.jsxs(qu.Provider,{value:A,children:[v&&A.visualElement?C.jsx(v,{visualElement:A.visualElement,...b}):null,yE(a,p,xE(w,A.visualElement,g),w,x,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=E.forwardRef(m);return y[TE]=a,y}function ME({layoutId:a}){const i=E.useContext(uf).id;return i&&a!==void 0?i+"-"+a:a}function CE(a,i){E.useContext(W0).strict}function DE(a){const i=$0(),{drag:s,layout:u}=i;if(!s&&!u)return{};const c={...s,...u};return{MeasureLayout:s!=null&&s.isEnabled(a)||u!=null&&u.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function RE(a,i){if(typeof Proxy>"u")return Ac;const s=new Map,u=(d,f)=>Ac(d,f,a,i),c=(d,f)=>u(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?u:(s.has(f)||s.set(f,Ac(f,void 0,a,i)),s.get(f))})}const wE=(a,i)=>i.isSVG??Bf(a)?new l2(i):new Ix(i,{allowProjection:a!==E.Fragment});class zE extends na{constructor(i){super(i),i.animationState||(i.animationState=c2(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Hu(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let OE=0;class jE extends na{constructor(){super(...arguments),this.id=OE++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===u)return;if(i&&u===!1){if(this.isExitComplete){const{initial:f,custom:m}=this.node.getProps();if(typeof f=="string"){const y=wa(this.node,f,m);if(y){const{transition:p,transitionEnd:g,...v}=y;for(const b in v)(d=this.node.getValue(b))==null||d.jump(v[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const _E={animation:{Feature:zE},exit:{Feature:jE}};function Yl(a){return{point:{x:a.pageX,y:a.pageY}}}const VE=a=>i=>Df(i)&&a(i,Yl(i));function jl(a,i,s,u){return Bl(a,i,VE(s),u)}const lv=({current:a})=>a?a.ownerDocument.defaultView:null,$y=(a,i)=>Math.abs(a-i);function NE(a,i){const s=$y(a.x,i.x),u=$y(a.y,i.y);return Math.sqrt(s**2+u**2)}const Iy=new Set(["auto","scroll"]);class sv{constructor(i,s,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=du(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Mc(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,w=NE(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!w)return;const{point:j}=x,{timestamp:B}=re;this.history.push({...j,timestamp:B});const{onStart:q,onMove:H}=this.handlers;A||(q&&q(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,x)},this.handlePointerMove=(x,A)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=A,this.lastMoveEventInfo=du(A,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(x,A)=>{this.end();const{onEnd:w,onSessionEnd:j,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Mc(x.type==="pointercancel"?this.lastMoveEventInfo:du(A,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,q),j&&j(x,q)},!Df(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Yl(i),p=du(y,this.transformPagePoint),{point:g}=p,{timestamp:v}=re;this.history=[{...g,timestamp:v}];const{onSessionStart:b}=s;b&&b(i,Mc(p,this.history)),this.removeListeners=Ul(jl(this.contextWindow,"pointermove",this.handlePointerMove),jl(this.contextWindow,"pointerup",this.handlePointerUp),jl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(Iy.has(u.overflowX)||Iy.has(u.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const u=i===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},d={x:c.x-s.x,y:c.y-s.y};d.x===0&&d.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(i,c),jt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ea(this.updatePoint)}}function du(a,i){return i?{point:i(a.point)}:a}function tg(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Mc({point:a},i){return{point:a,delta:tg(a,uv(i)),offset:tg(a,BE(i)),velocity:UE(i,.1)}}function BE(a){return a[0]}function uv(a){return a[a.length-1]}function UE(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=uv(a);for(;s>=0&&(u=a[s],!(c.timestamp-u.timestamp>ze(i)));)s--;if(!u)return{x:0,y:0};u===a[0]&&a.length>2&&c.timestamp-u.timestamp>ze(i)*2&&(u=a[1]);const d=qe(c.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-u.x)/d,y:(c.y-u.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function LE(a,{min:i,max:s},u){return i!==void 0&&a<i?a=u?Nt(i,a,u.min):Math.max(a,i):s!==void 0&&a>s&&(a=u?Nt(s,a,u.max):Math.min(a,s)),a}function eg(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function HE(a,{top:i,left:s,bottom:u,right:c}){return{x:eg(a.x,s,c),y:eg(a.y,i,u)}}function ng(a,i){let s=i.min-a.min,u=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,u]=[u,s]),{min:s,max:u}}function YE(a,i){return{x:ng(a.x,i.x),y:ng(a.y,i.y)}}function qE(a,i){let s=.5;const u=me(a),c=me(i);return c>u?s=_l(i.min,i.max-u,a.min):u>c&&(s=_l(a.min,a.max-c,i.min)),un(0,1,s)}function GE(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const nf=.35;function XE(a=nf){return a===!1?a=0:a===!0&&(a=nf),{x:ag(a,"left","right"),y:ag(a,"top","bottom")}}function ag(a,i,s){return{min:ig(a,i),max:ig(a,s)}}function ig(a,i){return typeof a=="number"?a:a[i]||0}const kE=new WeakMap;class ZE{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=v=>{s&&this.snapToCursor(Yl(v).point),this.stopAnimation()},f=(v,b)=>{const{drag:x,dragPropagation:A,onDragStart:w}=this.getProps();if(x&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Sx(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(B=>{let q=this.getAxisMotionValue(B).get()||0;if(sn.test(q)){const{projection:H}=this.visualElement;if(H&&H.layout){const J=H.layout.layoutBox[B];J&&(q=me(J)*(parseFloat(q)/100))}}this.originPoint[B]=q}),w&&jt.update(()=>w(v,b),!1,!0),Jc(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},m=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:A,onDirectionLock:w,onDrag:j}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:B}=b;if(A&&this.currentDirection===null){this.currentDirection=KE(B),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,B),this.updateAxis("y",b.point,B),this.visualElement.render(),j&&jt.update(()=>j(v,b),!1,!0)},y=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new sv(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:lv(this.visualElement),element:this.visualElement.current})}stop(i,s){const u=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!u)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&jt.postRender(()=>m(u,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,u){const{drag:c}=this.getProps();if(!u||!hu(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=LE(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;i&&pi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=HE(u.layoutBox,i):this.constraints=!1,this.elastic=XE(s),c!==this.constraints&&!pi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&an(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=GE(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!pi(i))return!1;const u=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Kx(u,c.root,this.visualElement.getTransformPagePoint());let f=YE(c.layout.layoutBox,d);if(s){const m=s(kx(f));this.hasMutatedConstraints=!!m,m&&(f=R0(m))}return f}startAnimation(i){const{drag:s,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=an(g=>{if(!hu(g,s,this.currentDirection))return;let v=y&&y[g]||{};(f===!0||f===g)&&(v={min:0,max:0});const b=c?200:1e6,x=c?40:1e7,A={type:"inertia",velocity:u?i[g]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...v};return this.startAxisValueAnimation(g,A)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return Jc(this.visualElement,i),u.start(xf(i,u,0,s,this.visualElement,!1))}stopAnimation(){an(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,u=this.visualElement.getProps(),c=u[s];return c||this.visualElement.getValue(i,(u.initial?u.initial[i]:void 0)||0)}snapToCursor(i){an(s=>{const{drag:u}=this.getProps();if(!hu(s,u,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s],y=d.get()||0;d.set(i[s]-Nt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:u}=this.visualElement;if(!pi(s)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};an(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=qE({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),an(f=>{if(!hu(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Nt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kE.set(this.visualElement,this);const i=this.visualElement.current,s=jl(i,"pointerdown",p=>{const{drag:g,dragListener:v=!0}=this.getProps(),b=p.target,x=b!==i&&Mx(b);g&&v&&!x&&this.start(p)});let u;const c=()=>{const{dragConstraints:p}=this.getProps();pi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),u||(u=QE(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),jt.read(c);const m=Bl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(an(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())});return()=>{m(),s(),f(),y&&y(),u&&u()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=nf,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function lg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function QE(a,i,s){const u=dy(a,lg(s)),c=dy(i,lg(s));return()=>{u(),c()}}function hu(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function KE(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class JE extends na{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new ZE(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Cc=a=>(i,s)=>{a&&jt.update(()=>a(i,s),!1,!0)};class PE extends na{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new sv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lv(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Cc(i),onStart:Cc(s),onMove:Cc(u),onEnd:(d,f)=>{delete this.session,c&&jt.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=jl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Dc=!1;class FE extends E.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u,layoutId:c}=this.props,{projection:d}=i;d&&(s.group&&s.group.add(d),u&&u.register&&c&&u.register(d),Dc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xu.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:u,drag:c,isPresent:d}=this.props,{projection:f}=u;return f&&(f.isPresent=d,i.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),Dc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||jt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:s}=this.props,{projection:u}=i;u&&(u.options.layoutAnchor=s,u.root.didUpdate(),Cf.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;Dc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function rv(a){const[i,s]=F0(),u=E.useContext(uf);return C.jsx(FE,{...a,layoutGroup:u,switchLayoutGroup:E.useContext(av),isPresent:i,safeToRemove:s})}const WE={pan:{Feature:PE},drag:{Feature:JE,ProjectionNode:P0,MeasureLayout:rv}};function sg(a,i,s){const{props:u}=a;a.animationState&&u.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=u[c];d&&jt.postRender(()=>d(i,Yl(i)))}class $E extends na{mount(){const{current:i}=this.node;i&&(this.unmount=Tx(i,(s,u)=>(sg(this.node,u,"Start"),c=>sg(this.node,c,"End"))))}unmount(){}}class IE extends na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Ul(Bl(this.node.current,"focus",()=>this.onFocus()),Bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ug(a,i,s){const{props:u}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&u.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=u[c];d&&jt.postRender(()=>d(i,Yl(i)))}class tA extends na{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=Dx(i,(c,d)=>(ug(this.node,d,"Start"),(f,{success:m})=>ug(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const af=new WeakMap,Rc=new WeakMap,eA=a=>{const i=af.get(a.target);i&&i(a)},nA=a=>{a.forEach(eA)};function aA({root:a,...i}){const s=a||document;Rc.has(s)||Rc.set(s,{});const u=Rc.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(nA,{root:a,...i})),u[c]}function iA(a,i,s){const u=aA(i);return af.set(a,s),u.observe(a),()=>{af.delete(a),u.unobserve(a)}}const lA={some:0,all:1};class sA extends na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var y;(y=this.stopObserver)==null||y.call(this);const{viewport:i={}}=this.node.getProps(),{root:s,margin:u,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:lA[c]},m=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),x=g?v:b;x&&x(p)};this.stopObserver=iA(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(uA(i,s))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function uA({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const rA={inView:{Feature:sA},tap:{Feature:tA},focus:{Feature:IE},hover:{Feature:$E}},oA={layout:{ProjectionNode:P0,MeasureLayout:rv}},cA={..._E,...rA,...WE,...oA},Cn=RE(cA,wE);function fA(){!Of.current&&M0();const[a]=E.useState(wu.current);return a}const rg=.24,dA=.42,hA=1400,mA=.15;function pA(a){return{type:"spring",visualDuration:Math.min(dA,Math.max(rg,rg+a/hA)),bounce:mA}}const yA=80,gA=12,vA=400,SA=100;function bA({target:a,containerRef:i,showRipple:s=!0,isDragging:u=!1}){const[c,d]=E.useState(null),f=E.useRef(null),m=E.useCallback(P=>{if(P===null){f.current=null,d(null);return}const X=f.current,Z=X?Math.hypot(P.x-X.x,P.y-X.y):0;f.current=P,d({pos:P,distancePx:Z})},[]),y=(c==null?void 0:c.pos)??null,p=Nu(),[g,v]=E.useState(!1),b=E.useRef(void 0),x=E.useRef(void 0),A=E.useRef(void 0),[w,j]=E.useState(null),B=E.useRef(void 0);E.useEffect(()=>{p&&a!==B.current&&(B.current=a,j(a?p.currentTimeMs:null))},[a]);const q=s&&!u&&p!=null&&w!=null&&p.currentTimeMs-w>=ne,H=p?q:g&&!u,J=E.useRef(!1);J.current=p!=null,E.useEffect(()=>{if(!J.current)return;if(!a){m(null);return}const P=i.current;if(!P)return;const X=P.querySelector(Si(a));X&&m(fc(P,X))},[a,i]),E.useEffect(()=>{if(J.current)return;if(clearTimeout(b.current),clearTimeout(x.current),clearTimeout(A.current),v(!1),!a){m(null);return}let P=!1,X=0;function Z(){if(P)return;const k=i.current;if(!k)return;const $=k.querySelector(Si(a));if(!$){X<gA&&(X++,x.current=setTimeout(Z,yA));return}const K=bg($);A.current=setTimeout(()=>{requestAnimationFrame(()=>{P||(m(fc(k,$)),s&&(b.current=setTimeout(()=>{P||v(!0)},ne)))})},K?vA:0)}const Q=requestAnimationFrame(Z);return()=>{P=!0,cancelAnimationFrame(Q),clearTimeout(x.current),clearTimeout(A.current),clearTimeout(b.current)}},[a,i,s]),E.useEffect(()=>()=>{clearTimeout(b.current),clearTimeout(x.current),clearTimeout(A.current)},[]);const W=E.useCallback(()=>{const P=i.current;if(!P||!a)return;const X=P.querySelector(Si(a));X&&m(fc(P,X))},[a,i]);return E.useEffect(()=>{if(J.current)return;const P=i.current;if(!P||!a)return;let X;const Z=new ResizeObserver(()=>{clearTimeout(X),X=setTimeout(W,SA)});return Z.observe(P),()=>{clearTimeout(X),Z.disconnect()}},[a,i,W]),C.jsx(_u,{children:y&&C.jsxs(Cn.div,{className:"pointer-events-none absolute z-50",style:{top:0,left:0},initial:{x:y.x,y:y.y,opacity:0},animate:{x:y.x,y:y.y,opacity:1},exit:{opacity:0},transition:pA((c==null?void 0:c.distancePx)??0),children:[C.jsx(Cn.span,{className:"block",animate:H?{scale:[1,.85,1]}:{scale:1},transition:{duration:.25,ease:"easeOut"},style:{transformOrigin:"top left"},children:u?C.jsx(xA,{}):C.jsx(TA,{})}),C.jsx(_u,{children:H&&C.jsx(Cn.span,{className:"absolute left-0 top-0 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/25",initial:{scale:.5,opacity:.8},animate:{scale:2.8,opacity:0},exit:{opacity:0},transition:{duration:.45,ease:"easeOut"}},"ripple")})]})})}function TA(){return C.jsx("svg",{width:"18",height:"24",viewBox:"0 0 12 16",fill:"none",className:"-translate-x-px -translate-y-px drop-shadow-sm","aria-hidden":!0,children:C.jsx("path",{d:"M1 1v11.5l3-3 2.5 5.5 2-1-2.5-5.5H10L1 1Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"})})}function xA(){return C.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",className:"-translate-x-2 -translate-y-2 drop-shadow-sm","aria-hidden":!0,children:[C.jsx("path",{d:"M4.5 8V5.5a1 1 0 0 1 2 0V4a1 1 0 0 1 2 0v.5a1 1 0 0 1 2 0V5a1 1 0 0 1 2 0v4.5a3.5 3.5 0 0 1-3.5 3.5h-1A3.5 3.5 0 0 1 4.5 9.5V8Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"}),C.jsx("path",{d:"M4.5 8H3a1.5 1.5 0 0 1 0-3h1.5",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"0.5",fill:"currentColor"})]})}function og(a){return a.scale===mu.scale&&a.x===mu.x&&a.y===mu.y}function EA(a,i){return a.scale===i.scale&&a.x===i.x&&a.y===i.y}function AA({children:a,transform:i,contentRef:s}){const{isVideoExport:u}=Bu(),c=Nu(),d=(c==null?void 0:c.currentTimeMs)??0,f=E.useRef({from:i,to:i,atTimeMs:0});if(u&&!EA(i,f.current.to)){const g=(d-f.current.atTimeMs)/dc;f.current={from:Xp(f.current.from,f.current.to,g),to:i,atTimeMs:d}}const[m,y]=E.useState(!1);if(E.useEffect(()=>{u||y(!0)},[u,i.scale,i.x,i.y]),u){const g=Xp(f.current.from,f.current.to,(d-f.current.atTimeMs)/dc);return C.jsx("div",{className:og(g)?void 0:"overflow-hidden",children:C.jsx("div",{ref:s,style:{position:"relative",transformOrigin:"0 0",transform:`translate(${g.x}px, ${g.y}px) scale(${g.scale})`},children:a})})}const p=!og(i)||m;return C.jsx("div",{className:p?"overflow-hidden":void 0,children:C.jsx(Cn.div,{ref:s,animate:{scale:i.scale,x:i.x,y:i.y},transition:{duration:dc/1e3,ease:pg},onAnimationComplete:()=>y(!1),style:{position:"relative",transformOrigin:"0 0"},children:a})})}const MA=896,CA=0,cg="relative mx-auto overflow-hidden";function DA({containerRef:a,children:i,className:s,canonicalWidth:u=MA,minZoom:c=CA,shellHeight:d,wrapperClassName:f=cg}){const{isVideoExport:m}=Bu(),y=E.useRef(null),p=E.useRef(null),[g,v]=E.useState(1),b=a??p;E.useLayoutEffect(()=>{if(m)return;const j=y.current;if(!j)return;const B=H=>{v(Math.max(Math.min(H/u,1),c))};B(j.getBoundingClientRect().width);const q=new ResizeObserver(H=>{B(H[0].contentRect.width)});return q.observe(j),()=>q.disconnect()},[m,u,c]);const x=s?`${f} ${s}`:f;if(m)return C.jsx("div",{ref:b,className:x,children:i});const A={width:u,zoom:g};d!=null&&(A["--scenar-shell-height"]=`${d}px`);const w=f===cg?{maxWidth:u}:void 0;return C.jsx("div",{ref:y,className:x,style:w,children:C.jsx("div",{ref:b,className:"relative",style:A,children:i})})}function RA({steps:a,narrationManifest:i,muted:s,playbackRate:u,isVideoExport:c,prefersReducedMotion:d}){const f=Nu(),m=a.length-1,[y,p]=E.useState(()=>d?m:0),[g,v]=E.useState(c?"playing":"idle"),b=g==="playing",x=f?_c(f.currentTimeMs,f.stepStartTimesMs,m):y,A=E.useRef(x);A.current=x;const w=E.useRef(null),j=E.useRef(0),[B,q]=E.useState(0),H=E.useRef(Math.max(u,.25));H.current=Math.max(u,.25),E.useEffect(()=>{var V,F;if(f||!b||d)return;const $=H.current;if(x>=m){const tt=!s&&i?((V=i.steps[x])==null?void 0:V.durationMs)??0:0;if(tt>0){w.current=()=>v("paused");const ut=setTimeout(()=>{w.current=null,v("paused")},(tt+2e3)/$);return()=>{clearTimeout(ut),w.current=null}}v("paused");return}const K=x+1,rt=a[K].delayMs/$,Tt=!s&&i?((F=i.steps[x])==null?void 0:F.durationMs)??0:0;if(Tt>0){let tt=!1,ut=!1,ft=!1;const M=()=>{ft||(ft=!0,w.current=null,p(K))},Y=()=>{tt&&ut&&M()};w.current=()=>{tt=!0,Y()};const I=setTimeout(()=>{ut=!0,Y()},rt),et=setTimeout(M,(Math.max(a[K].delayMs,Tt)+2e3)/$);return()=>{clearTimeout(I),clearTimeout(et),w.current=null}}const xt=setTimeout(()=>p(K),rt);return()=>clearTimeout(xt)},[f,b,x,a,m,d,s,i]);const J=E.useCallback($=>{v("paused"),p(Math.max(0,Math.min($,m)))},[m]),W=E.useCallback(($,K)=>{const rt=Math.max(0,Math.min($,K.totalDurationMs)),Tt=_c(rt,K.stepStartTimesMs,m),xt=K.stepStartTimesMs[Tt]??0;j.current=rt-xt,p(Tt),v(V=>V==="playing"?V:"paused"),q(V=>V+1)},[m]),P=E.useCallback(()=>{A.current>=m&&p(0),v("playing")},[m]),X=E.useCallback(()=>{v("paused")},[]),Z=E.useCallback(()=>{b?X():P()},[b,P,X]),Q=E.useCallback(()=>{var $;($=w.current)==null||$.call(w)},[]),k=E.useCallback($=>{w.current=$},[]);return{stepIndex:x,playbackState:g,playing:b,play:P,pause:X,togglePlay:Z,goTo:J,seekToTime:W,seekOffsetRef:j,seekGeneration:B,handleClipEnded:Q,setPendingAdvance:k,coordinatorId:void 0}}function ov(a){const i=Math.max(0,a),s=Math.floor(i/3600),u=Math.floor(i%3600/60),c=i%60,d=String(c).padStart(2,"0");return s>0?`${s}:${String(u).padStart(2,"0")}:${d}`:`${u}:${d}`}function fg(a){return ov(Math.floor(Math.max(0,a)/1e3))}function cv(a,i,s){if(s==="remaining"){const u=Math.ceil(Math.max(0,i-a)/1e3);return`-${ov(u)}`}return`${fg(a)} / ${fg(i)}`}function wA(a,i,s,u,c,d,f,m,y,p,g){const v=E.useRef(0),b=E.useRef(0),x=E.useRef(0),A=E.useRef(d);A.current=d;const w=E.useRef(s);w.current=s;const j=E.useRef(Math.max(c,.25));j.current=Math.max(c,.25);const B=g==null?void 0:g.timeLabelRef,q=g==null?void 0:g.scrubbingRef,H=(g==null?void 0:g.timeDisplayMode)??"elapsed",J=E.useRef(H);J.current=H;const W=E.useRef(""),P=E.useRef(0),X=E.useCallback(Q=>{if(q!=null&&q.current)return;const k=Math.max(0,Math.min(Q,1));P.current=k;const $=`${k*100}%`;if(f.current&&(f.current.style.width=$),m.current&&(m.current.style.left=$),B!=null&&B.current){const K=A.current,rt=cv(k*K.totalDurationMs,K.totalDurationMs,J.current);rt!==W.current&&(W.current=rt,B.current.textContent=rt)}},[f,m,B,q]),Z=E.useRef(void 0);Z.current=()=>{const Q=performance.now();b.current+=(Q-x.current)*j.current,x.current=Q;const k=A.current,$=w.current,K=k.stepStartTimesMs[$]??0,rt=$<u?k.stepStartTimesMs[$+1]??k.totalDurationMs:k.totalDurationMs,Tt=Math.max(rt-K,1),xt=Math.min(b.current/Tt,1),V=(K+xt*(rt-K))/k.totalDurationMs;X(V),v.current=requestAnimationFrame(()=>{var F;return(F=Z.current)==null?void 0:F.call(Z)})},E.useEffect(()=>(a?(x.current=performance.now(),v.current=requestAnimationFrame(()=>{var Q;return(Q=Z.current)==null?void 0:Q.call(Z)})):cancelAnimationFrame(v.current),()=>cancelAnimationFrame(v.current)),[a]),E.useEffect(()=>{b.current=y.current,y.current=0,x.current=performance.now()},[s,p,y]),E.useEffect(()=>{W.current="",X(P.current)},[H,X]),E.useEffect(()=>{if(i==="idle"){X(0);return}if(i==="paused"){const Q=w.current,k=d.stepStartTimesMs[Q]??0,$=Q<u?d.stepStartTimesMs[Q+1]??d.totalDurationMs:d.totalDurationMs,K=Math.max($-k,1),rt=Math.min(b.current/K,1),Tt=(k+rt*($-k))/d.totalDurationMs;X(Tt)}},[i,s,p,u,d,X])}function zA({size:a,className:i}){return C.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:C.jsx("path",{d:"M8 5v14l11-7z"})})}function OA({size:a,className:i}){return C.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:[C.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),C.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function jA({size:a,className:i}){return C.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:C.jsx("path",{d:"M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54z"})})}function _A({kind:a,onComplete:i}){const s=a==="play"?zA:OA;return C.jsx("div",{"aria-hidden":!0,"data-playback-burst":a,className:"pointer-events-none absolute inset-0 z-[15] flex items-center justify-center",children:C.jsx(Cn.div,{className:"flex h-16 w-16 items-center justify-center rounded-full bg-black/60 text-white",initial:{scale:.6,opacity:.9},animate:{scale:1.4,opacity:0},transition:{duration:.45,ease:"easeOut"},onAnimationComplete:i,children:C.jsx(s,{size:28,className:a==="play"?"ml-1":void 0})})})}function VA({onEnableAudio:a}){return C.jsxs(Cn.button,{type:"button",className:"absolute left-1/2 top-3 z-20 flex -translate-x-1/2 items-center gap-1.5 rounded-full bg-black/70 px-3 py-1.5 text-xs font-medium text-white shadow-lg transition-transform hover:scale-105",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},onClick:i=>{i.stopPropagation(),a()},children:[C.jsx(jA,{size:14}),"Tap to enable audio"]})}const NA=[.5,1,1.5,2];function BA({playbackRate:a,onSelectSpeed:i}){const[s,u]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{if(!s)return;const d=f=>{c.current&&!c.current.contains(f.target)&&u(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[s]),C.jsxs("div",{ref:c,className:"relative",children:[C.jsxs("button",{onClick:d=>{d.stopPropagation(),u(f=>!f)},className:"flex h-9 min-w-[2.5rem] items-center justify-center rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":`Playback speed: ${a}x`,"aria-haspopup":"true","aria-expanded":s,children:[a,"x"]}),C.jsx(_u,{children:s&&C.jsx(Cn.div,{className:"absolute bottom-full right-0 mb-1.5 rounded-md border border-border bg-card py-1 shadow-lg",initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.12,ease:"easeOut"},role:"menu","aria-label":"Playback speed",children:NA.map(d=>C.jsxs("button",{role:"menuitem",onClick:f=>{f.stopPropagation(),i(d),u(!1)},className:`flex w-full items-center justify-between gap-3 px-3 py-1 text-xs tabular-nums transition-colors hover:bg-accent ${d===a?"font-semibold text-foreground":"text-muted-foreground"}`,children:[C.jsxs("span",{children:[d,"x"]}),d===a&&C.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},d))})})]})}function UA({visible:a,playing:i,muted:s,playbackRate:u,stepTimeline:c,showSpeedControl:d,hasNarration:f,onToggleFullscreen:m,isFullscreen:y=!1,progressTrackRef:p,playheadRef:g,onTogglePlay:v,onToggleMute:b,onSelectSpeed:x,onSeekToTime:A,timeLabelRef:w,timeDisplayMode:j="elapsed",onToggleTimeDisplay:B,scrubbingRef:q}){const H=E.useMemo(()=>c.stepStartTimesMs.slice(1).map(K=>K/c.totalDurationMs*100),[c]),[J,W]=E.useState(!1),P=E.useRef(0),X=E.useCallback(K=>{P.current=K;const rt=`${K*100}%`;p.current&&(p.current.style.width=rt),g.current&&(g.current.style.left=rt),w!=null&&w.current&&(w.current.textContent=cv(K*c.totalDurationMs,c.totalDurationMs,j))},[p,g,w,c,j]),Z=E.useCallback(K=>{const rt=K.currentTarget.getBoundingClientRect();return Math.max(0,Math.min(1,(K.clientX-rt.left)/rt.width))},[]),Q=E.useCallback(K=>{K.currentTarget.setPointerCapture(K.pointerId),q&&(q.current=!0),W(!0),X(Z(K))},[q,X,Z]),k=E.useCallback(K=>{K.currentTarget.hasPointerCapture(K.pointerId)&&X(Z(K))},[X,Z]),$=E.useCallback(K=>{K.currentTarget.hasPointerCapture(K.pointerId)&&(K.currentTarget.releasePointerCapture(K.pointerId),X(Z(K)),q&&(q.current=!1),W(!1),A(P.current*c.totalDurationMs))},[X,Z,q,A,c]);return C.jsxs(Cn.div,{className:"absolute inset-x-0 bottom-0 z-20 rounded-b-lg bg-gradient-to-t from-black/70 via-black/30 to-transparent px-3 pb-2 pt-10",initial:!1,animate:{opacity:a?1:0},transition:{duration:.2},style:{pointerEvents:a?"auto":"none"},onClick:K=>K.stopPropagation(),children:[C.jsxs("div",{className:`group relative mb-2 w-full cursor-pointer rounded-full bg-white/30 transition-[height] duration-150 ${J?"h-2":"h-[5px] hover:h-2"}`,onPointerDown:Q,onPointerMove:k,onPointerUp:$,onPointerCancel:$,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[C.jsx("div",{ref:p,className:"absolute inset-y-0 left-0 rounded-full bg-white/80"}),C.jsx("div",{ref:g,className:`absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white shadow-sm transition-opacity ${J?"opacity-100":"opacity-0 group-hover:opacity-100"}`}),H.map((K,rt)=>C.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${K}%`}},rt))]}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("button",{onClick:K=>{K.stopPropagation(),v()},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":i?"Pause":"Play",children:i?C.jsx(HA,{}):C.jsx(LA,{})}),C.jsx("button",{onClick:K=>{K.stopPropagation(),f&&b()},disabled:!f,className:`flex h-9 w-9 items-center justify-center rounded transition-colors ${f?"text-white/90 hover:text-white":"text-white/40"}`,"aria-label":f?s?"Unmute narration":"Mute narration":"No narration audio",children:!f||s?C.jsx(qA,{}):C.jsx(YA,{})}),w&&C.jsx("button",{onClick:K=>{K.stopPropagation(),B==null||B()},className:"rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":j==="elapsed"?"Show remaining time":"Show elapsed time",children:C.jsx("span",{ref:w})}),C.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[d&&C.jsx(BA,{playbackRate:u,onSelectSpeed:x}),m&&C.jsx("button",{onClick:K=>{K.stopPropagation(),m()},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":y?"Exit fullscreen":"Enter fullscreen",children:y?C.jsx(XA,{}):C.jsx(GA,{})})]})]})]})}function LA(){return C.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:C.jsx("path",{d:"M8 5v14l11-7z"})})}function HA(){return C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[C.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),C.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function YA(){return C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[C.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),C.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),C.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function qA(){return C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[C.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),C.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),C.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function GA(){return C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[C.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),C.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),C.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),C.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function XA(){return C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[C.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),C.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),C.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),C.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function kA(a){const i=typeof window<"u"&&window.parent!==window,s=a.enabled&&i,u=E.useRef(s);u.current=s;const c=E.useRef(null),d=E.useRef(a.controls);d.current=a.controls;const f=E.useCallback(g=>{!u.current||typeof window>"u"||window.parent.postMessage(ib(g),c.current??"*")},[]),m=E.useCallback(g=>{const v=d.current;switch(g.type){case"play":v.play();break;case"pause":case"destroy":v.pause();break;case"seek":v.seekToTime(g.timeMs);break;case"setMuted":v.setMuted(g.muted);break;case"setVolume":v.setVolume(g.volume);break;case"prefetch":v.prefetch();break}},[]);E.useEffect(()=>{if(!s)return;const g=v=>{if(v.source!==window.parent)return;const b=sb(v.data);b&&(v.origin&&v.origin!=="null"&&(c.current=v.origin),m(b))};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[s,m]),E.useEffect(()=>{if(!s)return;const g=a.containerRef.current;if(!g||typeof ResizeObserver>"u")return;const v=new ResizeObserver(()=>{const b=g.getBoundingClientRect();f({type:"resize",widthPx:Math.round(b.width),heightPx:Math.round(b.height)})});return v.observe(g),()=>v.disconnect()},[s,a.containerRef,f]);const y=E.useRef(!1);E.useEffect(()=>{!s||y.current||(y.current=!0,f({type:"ready",totalSteps:a.totalSteps,hasNarration:a.hasNarration}))},[s,f,a.totalSteps,a.hasNarration]);const p=a.totalSteps-1;E.useEffect(()=>{s&&(a.playbackState==="playing"?f({type:"started"}):a.playbackState==="paused"&&f(a.stepIndex>=p?{type:"completed"}:{type:"paused"}))},[s,a.playbackState,a.stepIndex,p,f]),E.useEffect(()=>{if(!s)return;const g=a.stepTimeline.totalDurationMs,v=a.stepTimeline.stepStartTimesMs[a.stepIndex]??0,b=g>0?v/g:0;f({type:"stepchange",stepIndex:a.stepIndex,totalSteps:a.totalSteps}),f({type:"progress",stepIndex:a.stepIndex,totalSteps:a.totalSteps,fraction:b})},[s,a.stepIndex,a.totalSteps,a.stepTimeline,f]),E.useEffect(()=>{!s||!a.audioBlocked||f({type:"audioBlocked"})},[s,a.audioBlocked,f])}const ZA=3e3;function QA({bundle:a,steps:i,children:s,className:u,onStepChange:c,narrationManifest:d,showSpeedControl:f=!0,embed:m=!1}){const y=i??(a==null?void 0:a.steps),p=d??(a==null?void 0:a.narrationManifest);if(!y||y.length===0)throw new Error("ScenarioPlayer requires steps. Provide a `bundle` or `steps` prop.");const g=fA(),{isVideoExport:v,hideControls:b,initialMuted:x}=Bu(),A=y.length-1,w=E.useRef(null),[j,B]=E.useState(()=>{if(typeof window>"u")return 1;const qt=new URLSearchParams(window.location.search).get("__test_speed"),Zt=qt?Number(qt):NaN;return Zt>0&&Zt<=16?Zt:1}),q=v?x:!1,[H,J]=E.useState(q),W=RA({steps:y,narrationManifest:p,muted:H,playbackRate:j,isVideoExport:v,prefersReducedMotion:g}),{stepIndex:P,playbackState:X,playing:Z,play:Q,pause:k,seekToTime:$,seekOffsetRef:K,seekGeneration:rt,handleClipEnded:Tt}=W,xt=E.useRef(null);E.useEffect(()=>{if(!v)return xt.current=fb(()=>{k()}),()=>{var qt;return(qt=xt.current)==null?void 0:qt.unregister()}},[v,k]),E.useEffect(()=>{const qt=w.current;if(!qt||v)return;const Zt=new IntersectionObserver(([Qt])=>{!(Qt!=null&&Qt.isIntersecting)&&Z&&k()},{threshold:.5});return Zt.observe(qt),()=>Zt.disconnect()},[v,Z,k]);const{muted:V,toggleMute:F,audioRef:tt,seekToStep:ut,audioBlocked:ft,unlock:M,setVolume:Y,prefetch:I}=hb({manifest:p,stepIndex:P,playing:Z,initialMuted:q,playbackRate:j,onClipEnded:Tt});E.useEffect(()=>{J(V)},[V]);const et=E.useMemo(()=>$S(y,V?null:p),[y,V,p]);E.useEffect(()=>{c==null||c(y[P].data,P)},[P,y,c]);const[ot,ht]=E.useState(!0),pt=E.useRef(void 0),kt=E.useCallback(()=>{pt.current&&clearTimeout(pt.current),pt.current=setTimeout(()=>ht(!1),ZA)},[]),Ut=E.useCallback(()=>{ht(!0),X==="playing"&&kt()},[X,kt]);E.useEffect(()=>(X!=="playing"?(ht(!0),pt.current&&clearTimeout(pt.current)):kt(),()=>{pt.current&&clearTimeout(pt.current)}),[X,kt]);const Xe=E.useCallback(()=>{M(),Q(),xt.current&&Zp(xt.current.id)},[Q,M]),aa=E.useCallback(qt=>{const Zt=Math.max(0,Math.min(qt,et.totalDurationMs)),Qt=_c(Zt,et.stepStartTimesMs,A),$e=et.stepStartTimesMs[Qt]??0;ut(Qt,Math.max(0,Zt-$e)),$(Zt,et),Z&&xt.current&&Zp(xt.current.id)},[$,ut,et,A,Z]),[ia,Ci]=E.useState(null),ke=E.useCallback(qt=>{Ci(Zt=>({kind:qt,key:((Zt==null?void 0:Zt.key)??0)+1}))},[]),Di=E.useCallback(()=>Ci(null),[]),Ri=E.useCallback(()=>{Z?(ke("pause"),k()):(ke("play"),Xe())},[Z,k,Xe,ke]),Gu=E.useCallback(()=>{Z?k():Xe()},[Z,k,Xe]),ql=E.useCallback(()=>{M()},[M]),[wi,zi]=E.useState(!1),la=m&&typeof document<"u"&&document.fullscreenEnabled;E.useEffect(()=>{if(!la)return;const qt=()=>zi(document.fullscreenElement!=null);return document.addEventListener("fullscreenchange",qt),()=>document.removeEventListener("fullscreenchange",qt)},[la]);const Xu=E.useCallback(()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},[]),Gl=E.useRef(null),ce=E.useRef(null),Xl=E.useRef(null),Oi=E.useRef(!1),[ji,za]=E.useState("elapsed"),ku=E.useCallback(()=>{za(qt=>qt==="elapsed"?"remaining":"elapsed")},[]);wA(Z,X,P,A,j,et,Gl,ce,K,rt,{timeLabelRef:Xl,timeDisplayMode:ji,scrubbingRef:Oi}),kA({enabled:m,containerRef:w,playbackState:X,stepIndex:P,totalSteps:y.length,stepTimeline:et,hasNarration:!!p,audioBlocked:ft,controls:{play:Xe,pause:k,seekToTime:aa,setMuted:qt=>{V!==qt&&F()},setVolume:Y,prefetch:I}});const _i=!b,Zu=ft&&!v&&X!=="idle";return C.jsxs("div",{ref:w,className:u,"data-demo-step":P,"data-demo-state":X,"data-demo-total-steps":y.length,"data-demo-audio-blocked":ft?"":void 0,onMouseMove:_i?Ut:void 0,children:[C.jsxs("div",{className:"relative",onClick:Ri,style:{cursor:v?void 0:"pointer"},children:[s(y[P].data,P),C.jsx(_u,{children:Zu&&C.jsx(VA,{onEnableAudio:ql})}),ia&&!v&&C.jsx(_A,{kind:ia.kind,onComplete:Di},ia.key),_i&&C.jsx(UA,{visible:ot,playing:Z,muted:V,playbackRate:j,stepTimeline:et,showSpeedControl:f,hasNarration:!!p,onToggleFullscreen:la?Xu:void 0,isFullscreen:wi,progressTrackRef:Gl,playheadRef:ce,onTogglePlay:Gu,onToggleMute:F,onSelectSpeed:B,onSeekToTime:aa,timeLabelRef:Xl,timeDisplayMode:ji,onToggleTimeDisplay:ku,scrubbingRef:Oi})]}),p&&C.jsx("audio",{ref:tt,preload:"none",hidden:!0})]})}function xi(a,i){if(!a||!i)return null;const s=i.querySelector(Si(a));return!s||!(s instanceof HTMLElement)?null:s}function KA(a,i){if(!a||!i)return null;const s=i.querySelector(ab(a));return s||null}function JA(a,i){if(!i)return null;const s=i.querySelector(Si(a));return s?s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?s:s.querySelector("input, textarea"):null}function fv(a,i){const s=KA(a.target,i.containerRef.current);s&&(i.isVideoExport?tb(s):bg(s))}function dv(a,i){i.setCursorTarget(a.target)}function hv(a,i){i.setCursorTarget(void 0)}function mv(a,i){const s=xi(a.target,i.containerRef.current);s&&s.click()}function pv(a,i,s){var f;if(!a.target)return;const u=JA(a.target,s.containerRef.current);if(!u)return;const c=u instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,d=(f=Object.getOwnPropertyDescriptor(c,"value"))==null?void 0:f.set;d==null||d.call(u,i),u.dispatchEvent(new Event("input",{bubbles:!0}))}function yv(a,i){const s=xi(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerenter",{bubbles:!1})),s.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0})),s.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!1})),s.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0})),s.setAttribute("data-hover","true"))}function gv(a,i){const s=xi(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerleave",{bubbles:!1})),s.dispatchEvent(new PointerEvent("pointerout",{bubbles:!0})),s.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!1})),s.dispatchEvent(new MouseEvent("mouseout",{bubbles:!0})),s.removeAttribute("data-hover"))}function vv(a,i){const s=xi(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),s.setAttribute("data-dragging","true"))}function Sv(a,i){const s=xi(a.dragTarget,i.containerRef.current);s&&s.dispatchEvent(new PointerEvent("pointerup",{bubbles:!0}));const u=xi(a.target,i.containerRef.current);u&&u.removeAttribute("data-dragging")}const PA=1.5;function FA(a,i,s){const u=s.querySelector(Si(a));if(!u)return null;const c=s.getBoundingClientRect(),d=u.getBoundingClientRect(),f=c.width/s.offsetWidth||1,m=(d.left-c.left+d.width/2)/f,y=(d.top-c.top+d.height/2)/f;return{scale:i,x:s.offsetWidth/2-m*i,y:s.offsetHeight/2-y*i}}function bv(a,i){var d;if(!i.setViewportTransform)return;if(a.viewportReset){i.setViewportTransform({scale:1,x:0,y:0});return}if(!a.target)return;const s=((d=i.cameraRef)==null?void 0:d.current)??i.containerRef.current;if(!s)return;const u=a.viewportZoom??PA,c=FA(a.target,u,s);c&&i.setViewportTransform(c)}function WA(a,i){const{stepIndex:s,narrationManifest:u,steps:c,playbackRate:d=1}=a;E.useEffect(()=>{var g;const f=(g=c[s])==null?void 0:g.interactions;if(!f||f.length===0)return;const m=yg(s,u,c),y=Math.max(d,.25),p=[];for(const v of f){const b=v.atPercent*m/y;if(v.type==="click")p.push(setTimeout(()=>i.setCursorTarget(v.target),b)),p.push(setTimeout(()=>mv(v,i),b+ne/y));else if(v.type==="type"){const x=v.text??"";if(x.length===0)continue;const A=v.typeDelay??gg;p.push(setTimeout(()=>i.setCursorTarget(v.target),b));const w=b+ne/y;for(let j=0;j<x.length;j++){const B=x.substring(0,j+1);p.push(setTimeout(()=>pv(v,B,i),w+j*A/y))}}else if(v.type==="hover"){const x=v.hoverDuration??vg;p.push(setTimeout(()=>{var A;(A=i.setShowRipple)==null||A.call(i,!1),i.setCursorTarget(v.target)},b)),p.push(setTimeout(()=>yv(v,i),b+ne/y)),p.push(setTimeout(()=>{var A;gv(v,i),(A=i.setShowRipple)==null||A.call(i,!0)},b+(ne+x)/y))}else v.type==="drag"?(p.push(setTimeout(()=>{var x;(x=i.setShowRipple)==null||x.call(i,!1),i.setCursorTarget(v.target)},b)),p.push(setTimeout(()=>{var x;(x=i.setDragging)==null||x.call(i,!0),vv(v,i)},b+ne/y)),p.push(setTimeout(()=>i.setCursorTarget(v.dragTarget),b+(ne+Eu)/y)),p.push(setTimeout(()=>{var x,A;Sv(v,i),(x=i.setDragging)==null||x.call(i,!1),(A=i.setShowRipple)==null||A.call(i,!0)},b+(ne+Eu+ne)/y))):v.type==="viewport_transition"?p.push(setTimeout(()=>bv(v,i),b)):p.push(setTimeout(()=>$A(v,i),b))}return()=>{for(const v of p)clearTimeout(v)}},[s,u,i,c,d])}function $A(a,i){switch(a.type){case"scroll_to":fv(a,i);break;case"set_cursor":dv(a,i);break;case"clear_cursor":hv(a,i);break;default:i.setCursorTarget(a.target);break}}function IA(a,i,s){const{stepIndex:u,narrationManifest:c,steps:d}=a,f=E.useRef(new Set);E.useEffect(()=>{var x;const y=(x=d[u])==null?void 0:x.interactions;if(!y||y.length===0)return;const p=s.stepStartTimesMs[u]??0,g=s.stepStartTimesMs[u+1],v=g!=null?g-p:yg(u,c,d),b=s.currentTimeMs-p;for(const A of y){const w=A.atPercent*v;if(A.type==="click")m(`${u}-${A.atPercent}-click-cursor`,b,w,()=>{i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-click-dispatch`,b,w+ne,()=>{mv(A,i)});else if(A.type==="type"){const j=A.text??"";if(j.length===0)continue;const B=A.typeDelay??gg;m(`${u}-${A.atPercent}-type-cursor`,b,w,()=>{i.setCursorTarget(A.target)});const q=w+ne;if(b>=q){const H=Math.min(Math.floor((b-q)/B)+1,j.length);m(`${u}-${A.atPercent}-type-char-${H}`,b,0,()=>{pv(A,j.substring(0,H),i)})}}else if(A.type==="hover"){const j=A.hoverDuration??vg;m(`${u}-${A.atPercent}-hover-cursor`,b,w,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-hover-enter`,b,w+ne,()=>{yv(A,i)}),m(`${u}-${A.atPercent}-hover-leave`,b,w+ne+j,()=>{var B;gv(A,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else A.type==="drag"?(m(`${u}-${A.atPercent}-drag-cursor`,b,w,()=>{var j;(j=i.setShowRipple)==null||j.call(i,!1),i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-drag-press`,b,w+ne,()=>{var j;(j=i.setDragging)==null||j.call(i,!0),vv(A,i)}),m(`${u}-${A.atPercent}-drag-move`,b,w+ne+Eu,()=>{i.setCursorTarget(A.dragTarget)}),m(`${u}-${A.atPercent}-drag-release`,b,w+ne+Eu+ne,()=>{var j,B;Sv(A,i),(j=i.setDragging)==null||j.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):A.type==="viewport_transition"?m(`${u}-${A.atPercent}-viewport`,b,w,()=>{bv(A,i)}):m(`${u}-${A.atPercent}-${A.type}`,b,w,()=>{tM(A,i)})}}),E.useEffect(()=>{f.current.clear()},[u]);function m(y,p,g,v){p>=g&&!f.current.has(y)&&(f.current.add(y),v())}}function tM(a,i){switch(a.type){case"scroll_to":fv(a,i);break;case"set_cursor":dv(a,i);break;case"clear_cursor":hv(a,i);break;default:i.setCursorTarget(a.target);break}}function eM(a){const i=Nu(),{isVideoExport:s}=Bu(),u=E.useMemo(()=>({containerRef:a.containerRef,cameraRef:a.cameraRef,setCursorTarget:a.setCursorTarget,setShowRipple:a.setShowRipple,setDragging:a.setDragging,setViewportTransform:a.setViewportTransform,isVideoExport:s}),[a.containerRef,a.cameraRef,a.setCursorTarget,a.setShowRipple,a.setDragging,a.setViewportTransform,s]);i?IA(a,u,i):WA(a,u)}const dg="scenar";/**
58
- * @license lucide-react v1.8.0 - ISC
59
- *
60
- * This source code is licensed under the ISC license.
61
- * See the LICENSE file in the root directory of this source tree.
62
- */const Tv=(...a)=>a.filter((i,s,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===s).join(" ").trim();/**
63
- * @license lucide-react v1.8.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */const nM=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
68
- * @license lucide-react v1.8.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */const aM=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,u)=>u?u.toUpperCase():s.toLowerCase());/**
73
- * @license lucide-react v1.8.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */const hg=a=>{const i=aM(a);return i.charAt(0).toUpperCase()+i.slice(1)};/**
78
- * @license lucide-react v1.8.0 - ISC
79
- *
80
- * This source code is licensed under the ISC license.
81
- * See the LICENSE file in the root directory of this source tree.
82
- */var wc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
83
- * @license lucide-react v1.8.0 - ISC
84
- *
85
- * This source code is licensed under the ISC license.
86
- * See the LICENSE file in the root directory of this source tree.
87
- */const iM=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},lM=E.createContext({}),sM=()=>E.useContext(lM),uM=E.forwardRef(({color:a,size:i,strokeWidth:s,absoluteStrokeWidth:u,className:c="",children:d,iconNode:f,...m},y)=>{const{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:b="currentColor",className:x=""}=sM()??{},A=u??v?Number(s??g)*24/Number(i??p):s??g;return E.createElement("svg",{ref:y,...wc,width:i??p??wc.width,height:i??p??wc.height,stroke:a??b,strokeWidth:A,className:Tv("lucide",x,c),...!d&&!iM(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,j])=>E.createElement(w,j)),...Array.isArray(d)?d:[d]])});/**
88
- * @license lucide-react v1.8.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */const We=(a,i)=>{const s=E.forwardRef(({className:u,...c},d)=>E.createElement(uM,{ref:d,iconNode:i,className:Tv(`lucide-${nM(hg(a))}`,`lucide-${a}`,u),...c}));return s.displayName=hg(a),s};/**
93
- * @license lucide-react v1.8.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */const rM=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],oM=We("bell",rM);/**
98
- * @license lucide-react v1.8.0 - ISC
99
- *
100
- * This source code is licensed under the ISC license.
101
- * See the LICENSE file in the root directory of this source tree.
102
- */const cM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],fM=We("chevron-left",cM);/**
103
- * @license lucide-react v1.8.0 - ISC
104
- *
105
- * This source code is licensed under the ISC license.
106
- * See the LICENSE file in the root directory of this source tree.
107
- */const dM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hM=We("chevron-right",dM);/**
108
- * @license lucide-react v1.8.0 - ISC
109
- *
110
- * This source code is licensed under the ISC license.
111
- * See the LICENSE file in the root directory of this source tree.
112
- */const mM=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],pM=We("ellipsis-vertical",mM);/**
113
- * @license lucide-react v1.8.0 - ISC
114
- *
115
- * This source code is licensed under the ISC license.
116
- * See the LICENSE file in the root directory of this source tree.
117
- */const yM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],gM=We("globe",yM);/**
118
- * @license lucide-react v1.8.0 - ISC
119
- *
120
- * This source code is licensed under the ISC license.
121
- * See the LICENSE file in the root directory of this source tree.
122
- */const vM=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],SM=We("lock",vM);/**
123
- * @license lucide-react v1.8.0 - ISC
124
- *
125
- * This source code is licensed under the ISC license.
126
- * See the LICENSE file in the root directory of this source tree.
127
- */const bM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],TM=We("plus",bM);/**
128
- * @license lucide-react v1.8.0 - ISC
129
- *
130
- * This source code is licensed under the ISC license.
131
- * See the LICENSE file in the root directory of this source tree.
132
- */const xM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],EM=We("rotate-ccw",xM);/**
133
- * @license lucide-react v1.8.0 - ISC
134
- *
135
- * This source code is licensed under the ISC license.
136
- * See the LICENSE file in the root directory of this source tree.
137
- */const AM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],MM=We("search",AM);/**
138
- * @license lucide-react v1.8.0 - ISC
139
- *
140
- * This source code is licensed under the ISC license.
141
- * See the LICENSE file in the root directory of this source tree.
142
- */const CM=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],DM=We("star",CM);/**
143
- * @license lucide-react v1.8.0 - ISC
144
- *
145
- * This source code is licensed under the ISC license.
146
- * See the LICENSE file in the root directory of this source tree.
147
- */const RM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wM=We("x",RM),zM=420;function OM(a){const i=a.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function jM({url:a,contentKey:i,slideDirection:s,children:u,zoom:c}){const d=s==="forward"?24:s==="backward"?-24:0;return C.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border",style:{height:`var(--scenar-shell-height, ${zM}px)`,borderColor:"var(--scenar-border)",zoom:c??void 0},children:[C.jsxs("div",{className:"flex items-center bg-[var(--scenar-chrome)] px-2 pt-1.5",children:[C.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[C.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),C.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),C.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),C.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[var(--scenar-chrome-raised)] px-3 py-1.5",children:[C.jsx(gM,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),C.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:OM(a)}),C.jsx(wM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),C.jsx(TM,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),C.jsx("div",{className:"flex-1"}),C.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:C.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),C.jsxs("div",{className:"flex items-center gap-2 bg-[var(--scenar-chrome-raised)] px-2 py-1",children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx(fM,{className:"h-4 w-4 text-[#9aa0a6]"}),C.jsx(hM,{className:"h-4 w-4 text-[#9aa0a6]"}),C.jsx(EM,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),C.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[var(--scenar-chrome)] px-3 py-1.5",children:[C.jsx(SM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),C.jsx("span",{className:"truncate text-xs text-[var(--scenar-chrome-foreground)]",children:a})]}),C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx(DM,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),C.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),C.jsx(pM,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),C.jsx(Cn.div,{className:"flex-1 overflow-y-auto",style:{background:"var(--scenar-surface)"},initial:{opacity:0,x:d},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"},children:u},i)]})}function _M({header:a,sidebar:i,children:s,rightPanel:u}){return C.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[a,C.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,C.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:s}),u]})]})}function VM({appName:a,logo:i,navLinks:s,userName:u,hideSearch:c,hideNotifications:d}){var m;const f=((m=(u??a??"A")[0])==null?void 0:m.toUpperCase())??"A";return C.jsxs("header",{className:"flex h-10 shrink-0 items-center justify-between border-b border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-4",children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[i??C.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:C.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:f})}),a&&C.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:a})]}),s&&s.length>0&&C.jsx("nav",{className:"ml-4 flex items-center gap-1",children:s.map((y,p)=>C.jsx("span",{className:`rounded-md px-2.5 py-1 text-[12px] ${y.active?"bg-[var(--scenar-accent)] font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,children:y.label},p))})]}),C.jsxs("div",{className:"flex items-center gap-2.5",children:[!c&&C.jsx(MM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!d&&C.jsx(oM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),C.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:C.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:f})})]})]})}function NM({items:a,width:i=200}){return C.jsx("aside",{className:"shrink-0 overflow-y-auto border-r border-[var(--scenar-border)] bg-[var(--scenar-surface)] py-2",style:{width:i},children:a.map((s,u)=>{if(s.isSection)return C.jsx("div",{className:"px-4 pb-1 pt-3 text-[10px] font-semibold uppercase tracking-wider text-[var(--scenar-muted-foreground)]",children:s.label},u);const c=(s.depth??0)*12;return C.jsxs("div",{className:`relative flex items-center gap-2 px-4 py-1.5 text-[12px] ${s.active?"font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,style:{paddingLeft:`${16+c}px`},children:[s.active&&C.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),s.icon&&C.jsx("span",{className:"shrink-0",children:s.icon}),C.jsx("span",{className:"truncate",children:s.label})]},u)})})}function xv({title:a,subtitle:i,headerSlot:s,fields:u,submitLabel:c="Submit",footerText:d,width:f=280,children:m}){return C.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:f},children:[(s||a)&&C.jsxs("div",{className:"mb-4 text-center",children:[s&&C.jsx("div",{className:"mb-2 flex justify-center",children:s}),a&&C.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:a}),i&&C.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),C.jsx("div",{className:"space-y-2.5",children:u.map((y,p)=>C.jsxs("div",{children:[C.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:y.label}),C.jsx("div",{className:"rounded-md border border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-2.5 py-1.5 text-[12px]",children:y.type==="password"?C.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):y.value?C.jsx("span",{className:"text-[var(--scenar-foreground)]",children:y.value}):C.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:y.placeholder??""})})]},p))}),m,C.jsx("div",{className:"mt-4",children:C.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:c})}),d&&C.jsx("p",{className:"mt-3 text-center text-[11px] text-[var(--scenar-muted-foreground)]",children:d})]})}function BM({columns:a,rows:i,emptyText:s}){return C.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:C.jsxs("table",{className:"w-full text-[12px]",children:[C.jsx("thead",{children:C.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:a.map(u=>C.jsx("th",{className:`px-3 py-2 font-medium text-[var(--scenar-muted-foreground)] ${u.width??""} text-${u.align??"left"}`,children:u.label},u.key))})}),C.jsxs("tbody",{children:[i.length===0&&s&&C.jsx("tr",{children:C.jsx("td",{colSpan:a.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:s})}),i.map(u=>C.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:a.map(c=>C.jsx("td",{className:`px-3 py-2 text-[var(--scenar-foreground)] ${c.width??""} text-${c.align??"left"}`,children:u.cells[c.key]??"—"},c.key))},u.id))]})]})})}const UM={success:"bg-[#22c55e]/15 text-[#22c55e]",warning:"bg-[#eab308]/15 text-[#eab308]",error:"bg-[#ef4444]/15 text-[#ef4444]",info:"bg-[#3b82f6]/15 text-[#3b82f6]",neutral:"bg-[#94a3b8]/15 text-[#94a3b8]"};function zc({label:a,variant:i="neutral"}){return C.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${UM[i]}`,children:a})}function LM({appName:a,logo:i,subtitle:s,fields:u,submitLabel:c="Sign in",footerText:d,cardWidth:f=280,background:m,topBar:y,submitTargetId:p}){var b;const g=m??"linear-gradient(to bottom, var(--scenar-surface), color-mix(in srgb, var(--scenar-accent) 30%, var(--scenar-surface)))",v=i??C.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:C.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((b=a[0])==null?void 0:b.toUpperCase())??"A"})});return C.jsxs("div",{className:"flex h-full flex-col",style:{background:g},children:[y,C.jsx("div",{className:"flex flex-1 items-center justify-center",children:C.jsx("div",{"data-cursor-target":p,children:C.jsx(xv,{title:a,subtitle:s??"Sign in to your account",headerSlot:v,fields:u,submitLabel:c,footerText:d,width:f})})})]})}function Oc({appName:a,logo:i,navLinks:s,userName:u,sidebarItems:c,sidebarWidth:d,children:f}){return C.jsx(_M,{header:C.jsx(VM,{appName:a,logo:i,navLinks:s,userName:u}),sidebar:c?C.jsx(NM,{items:c,width:d}):void 0,children:f})}const HM=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function YM(a,i){return C.jsx(jM,{url:`https://${a.url}`,contentKey:String(i),children:GM(a.screen)})}const qM=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],jc=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function GM(a){switch(a){case"login":return C.jsx(LM,{appName:"Acme Cloud",subtitle:"Sign in to your workspace",fields:[{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Password",type:"password"}],submitLabel:"Sign in",footerText:"Forgot password?"});case"dashboard":return C.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:qM,sidebarItems:jc,children:C.jsxs("div",{className:"p-5",children:[C.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[C.jsx("img",{src:HM,alt:"Acme Cloud",width:24,height:24,className:"rounded"}),C.jsx("h2",{className:"text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Welcome back, Jordan"})]}),C.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Active projects",value:"12"},{label:"Open tasks",value:"37"},{label:"Deploys today",value:"8"}].map(i=>C.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[C.jsx("div",{className:"text-[20px] font-semibold text-[var(--scenar-foreground)]",children:i.value}),C.jsx("div",{className:"text-[11px] text-[var(--scenar-muted-foreground)]",children:i.label})]},i.label))})]})});case"projects":return C.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:jc,children:C.jsxs("div",{className:"p-5",children:[C.jsx("h2",{className:"mb-4 text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Projects"}),C.jsx(BM,{columns:[{key:"name",label:"Name"},{key:"env",label:"Environment"},{key:"status",label:"Status",align:"right"}],rows:[{id:"1",cells:{name:"checkout-api",env:"production",status:C.jsx(zc,{label:"Healthy",variant:"success"})}},{id:"2",cells:{name:"web-frontend",env:"production",status:C.jsx(zc,{label:"Deploying",variant:"info"})}},{id:"3",cells:{name:"billing-worker",env:"staging",status:C.jsx(zc,{label:"Degraded",variant:"warning"})}}]})]})});case"settings":return C.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:jc,children:C.jsx("div",{className:"flex justify-center p-6",children:C.jsx(xv,{title:"Profile",subtitle:"Update your account details",fields:[{label:"Full name",value:"Jordan Rivera"},{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Role",value:"Platform Engineer"}],submitLabel:"Save changes",width:320})})})}}const XM=[{delayMs:0,data:{url:"app.acme.cloud/login",screen:"login"}},{delayMs:2400,data:{url:"app.acme.cloud/home",screen:"dashboard"}},{delayMs:2600,data:{url:"app.acme.cloud/projects",screen:"projects"}},{delayMs:2600,data:{url:"app.acme.cloud/settings",screen:"settings"}}],kM=Object.freeze(Object.defineProperty({__proto__:null,steps:XM},Symbol.toStringTag,{value:"Module"}));function ZM(a){for(const i of Object.values(a))if(Array.isArray(i)&&i.length>0&&typeof i[0]=="object"&&i[0]!==null&&"delayMs"in i[0])return i;throw new Error("No steps array found in /home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/steps")}const mg=ZM(kM),QM=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),Ev=QM==="dark"?dg+" dark":dg;window.parent===window&&(document.body.classList.add(...Ev.split(" ")),document.body.style.background="var(--scenar-surface)");function KM(){const a=E.useRef(null),i=E.useRef(null),[s,u]=E.useState(0),[c,d]=E.useState(void 0),[f,m]=E.useState(!0),[y,p]=E.useState(!1),[g,v]=E.useState(mu),b=E.useCallback((A,w)=>{u(w),d(void 0)},[]);eM({stepIndex:s,narrationManifest:void 0,containerRef:a,cameraRef:i,setCursorTarget:d,setShowRipple:m,setDragging:p,setViewportTransform:v,steps:mg});const x={id:"welcome-tour",steps:mg,narrationManifest:void 0};return C.jsx("div",{className:Ev,children:C.jsx(DA,{containerRef:a,canonicalWidth:896,shellHeight:480,children:C.jsxs(AA,{transform:g,contentRef:i,children:[C.jsx(QA,{bundle:x,embed:!0,onStepChange:b,children:(A,w)=>YM(A,w)}),C.jsx(bA,{target:c,containerRef:i,showRipple:f,isDragging:y})]})})})}const Av=document.getElementById("root");if(!Av)throw new Error("Embed root element #root not found");FS.createRoot(Av).render(C.jsx(KM,{}));