@scenar/cli 0.9.0 → 0.10.0

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 (66) hide show
  1. package/example-bundle/assets/index-DpJUOVBT.js +388 -0
  2. package/example-bundle/assets/style-ix_q0zsc.css +1 -0
  3. package/example-bundle/embed.js +1 -1
  4. package/example-bundle/index.html +2 -2
  5. package/example-bundle/pack-manifest.json +11 -11
  6. package/example-bundle/scenario.json +6 -2
  7. package/package.json +4 -4
  8. package/src/__tests__/collect-pack-shots.test.ts +115 -0
  9. package/src/__tests__/find-authored-viewport.test.ts +58 -0
  10. package/src/__tests__/pack-generate-embed-entry.test.ts +5 -1
  11. package/src/__tests__/pack-manifest.test.ts +17 -0
  12. package/src/__tests__/read-shots.test.ts +57 -0
  13. package/src/__tests__/resolve-pack-viewport.test.ts +46 -0
  14. package/src/__tests__/run-shoot.test.ts +51 -2
  15. package/src/bundle/read-shots.d.ts +28 -0
  16. package/src/bundle/read-shots.d.ts.map +1 -0
  17. package/src/bundle/read-shots.js +28 -0
  18. package/src/bundle/read-shots.js.map +1 -0
  19. package/src/bundle/read-shots.ts +38 -0
  20. package/src/commands/pack.d.ts.map +1 -1
  21. package/src/commands/pack.js +23 -4
  22. package/src/commands/pack.js.map +1 -1
  23. package/src/commands/pack.ts +26 -5
  24. package/src/pack/build.d.ts +33 -1
  25. package/src/pack/build.d.ts.map +1 -1
  26. package/src/pack/build.js +35 -10
  27. package/src/pack/build.js.map +1 -1
  28. package/src/pack/build.ts +63 -17
  29. package/src/pack/collect-pack-shots.d.ts +47 -0
  30. package/src/pack/collect-pack-shots.d.ts.map +1 -0
  31. package/src/pack/collect-pack-shots.js +66 -0
  32. package/src/pack/collect-pack-shots.js.map +1 -0
  33. package/src/pack/collect-pack-shots.ts +89 -0
  34. package/src/pack/generate-embed-entry.d.ts +7 -0
  35. package/src/pack/generate-embed-entry.d.ts.map +1 -1
  36. package/src/pack/generate-embed-entry.js +14 -3
  37. package/src/pack/generate-embed-entry.js.map +1 -1
  38. package/src/pack/generate-embed-entry.ts +15 -3
  39. package/src/pack/pack-manifest.d.ts +12 -3
  40. package/src/pack/pack-manifest.d.ts.map +1 -1
  41. package/src/pack/pack-manifest.js +13 -3
  42. package/src/pack/pack-manifest.js.map +1 -1
  43. package/src/pack/pack-manifest.ts +13 -2
  44. package/src/pack/run-pack.d.ts +13 -2
  45. package/src/pack/run-pack.d.ts.map +1 -1
  46. package/src/pack/run-pack.js +56 -17
  47. package/src/pack/run-pack.js.map +1 -1
  48. package/src/pack/run-pack.ts +81 -19
  49. package/src/pack/viewport.d.ts +17 -0
  50. package/src/pack/viewport.d.ts.map +1 -1
  51. package/src/pack/viewport.js +19 -0
  52. package/src/pack/viewport.js.map +1 -1
  53. package/src/pack/viewport.ts +29 -0
  54. package/src/shoot/run-shoot.d.ts +6 -0
  55. package/src/shoot/run-shoot.d.ts.map +1 -1
  56. package/src/shoot/run-shoot.js +18 -0
  57. package/src/shoot/run-shoot.js.map +1 -1
  58. package/src/shoot/run-shoot.ts +19 -0
  59. package/src/util/load-ts.d.ts +35 -2
  60. package/src/util/load-ts.d.ts.map +1 -1
  61. package/src/util/load-ts.js +76 -10
  62. package/src/util/load-ts.js.map +1 -1
  63. package/src/util/load-ts.ts +87 -11
  64. package/tsconfig.tsbuildinfo +1 -1
  65. package/example-bundle/assets/index-BoIR0_nN.js +0 -147
  66. package/example-bundle/assets/style-YRMeJPPX.css +0 -1
@@ -1,147 +0,0 @@
1
- var uc={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 Lp;function eb(){if(Lp)return Ml;Lp=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 Hp;function nb(){return Hp||(Hp=1,uc.exports=eb()),uc.exports}var A=nb(),rc={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 qp;function ab(){if(qp)return ct;qp=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(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function B(C,Y,I){this.props=C,this.context=Y,this.refs=_,this.updater=I||M}B.prototype.isReactComponent={},B.prototype.setState=function(C,Y){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,Y,"setState")},B.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function U(){}U.prototype=B.prototype;function L(C,Y,I){this.props=C,this.context=Y,this.refs=_,this.updater=I||M}var J=L.prototype=new U;J.constructor=L,w(J,B.prototype),J.isPureReactComponent=!0;var $=Array.isArray;function P(){}var X={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function Q(C,Y,I){var et=I.ref;return{$$typeof:a,type:C,key:Y,ref:et!==void 0?et:null,props:I}}function k(C,Y){return Q(C.type,Y,C.props)}function W(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function K(C){var Y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(I){return Y[I]})}var rt=/\/+/g;function Tt(C,Y){return typeof C=="object"&&C!==null&&C.key!=null?K(""+C.key):Y.toString(36)}function xt(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(P,P):(C.status="pending",C.then(function(Y){C.status==="pending"&&(C.status="fulfilled",C.value=Y)},function(Y){C.status==="pending"&&(C.status="rejected",C.reason=Y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function V(C,Y,I,et,ot){var ht=typeof C;(ht==="undefined"||ht==="boolean")&&(C=null);var pt=!1;if(C===null)pt=!0;else switch(ht){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(C.$$typeof){case a:case i:pt=!0;break;case g:return pt=C._init,V(pt(C._payload),Y,I,et,ot)}}if(pt)return ot=ot(C),pt=et===""?"."+Tt(C,0):et,$(ot)?(I="",pt!=null&&(I=pt.replace(rt,"$&/")+"/"),V(ot,Y,I,"",function(Xe){return Xe})):ot!=null&&(W(ot)&&(ot=k(ot,I+(ot.key==null||C&&C.key===ot.key?"":(""+ot.key).replace(rt,"$&/")+"/")+pt)),Y.push(ot)),1;pt=0;var kt=et===""?".":et+":";if($(C))for(var Ut=0;Ut<C.length;Ut++)et=C[Ut],ht=kt+Tt(et,Ut),pt+=V(et,Y,I,ht,ot);else if(Ut=x(C),typeof Ut=="function")for(C=Ut.call(C),Ut=0;!(et=C.next()).done;)et=et.value,ht=kt+Tt(et,Ut++),pt+=V(et,Y,I,ht,ot);else if(ht==="object"){if(typeof C.then=="function")return V(xt(C),Y,I,et,ot);throw Y=String(C),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return pt}function F(C,Y,I){if(C==null)return C;var et=[],ot=0;return V(C,et,"","",function(ht){return Y.call(I,ht,ot++)}),et}function tt(C){if(C._status===-1){var Y=C._result;Y=Y(),Y.then(function(I){(C._status===0||C._status===-1)&&(C._status=1,C._result=I)},function(I){(C._status===0||C._status===-1)&&(C._status=2,C._result=I)}),C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return C._result.default;throw C._result}var ut=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ft={map:F,forEach:function(C,Y,I){F(C,function(){Y.apply(this,arguments)},I)},count:function(C){var Y=0;return F(C,function(){Y++}),Y},toArray:function(C){return F(C,function(Y){return Y})||[]},only:function(C){if(!W(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ct.Activity=v,ct.Children=ft,ct.Component=B,ct.Fragment=s,ct.Profiler=c,ct.PureComponent=L,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(C){return X.H.useMemoCache(C)}},ct.cache=function(C){return function(){return C.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(C,Y,I){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var et=w({},C.props),ot=C.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(C.type,ot,et)},ct.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},ct.createElement=function(C,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(C&&C.defaultProps)for(et in pt=C.defaultProps,pt)ot[et]===void 0&&(ot[et]=pt[et]);return Q(C,ht,ot)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(C){return{$$typeof:m,render:C}},ct.isValidElement=W,ct.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:tt}},ct.memo=function(C,Y){return{$$typeof:p,type:C,compare:Y===void 0?null:Y}},ct.startTransition=function(C){var Y=X.T,I={};X.T=I;try{var et=C(),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(C){return X.H.use(C)},ct.useActionState=function(C,Y,I){return X.H.useActionState(C,Y,I)},ct.useCallback=function(C,Y){return X.H.useCallback(C,Y)},ct.useContext=function(C){return X.H.useContext(C)},ct.useDebugValue=function(){},ct.useDeferredValue=function(C,Y){return X.H.useDeferredValue(C,Y)},ct.useEffect=function(C,Y){return X.H.useEffect(C,Y)},ct.useEffectEvent=function(C){return X.H.useEffectEvent(C)},ct.useId=function(){return X.H.useId()},ct.useImperativeHandle=function(C,Y,I){return X.H.useImperativeHandle(C,Y,I)},ct.useInsertionEffect=function(C,Y){return X.H.useInsertionEffect(C,Y)},ct.useLayoutEffect=function(C,Y){return X.H.useLayoutEffect(C,Y)},ct.useMemo=function(C,Y){return X.H.useMemo(C,Y)},ct.useOptimistic=function(C,Y){return X.H.useOptimistic(C,Y)},ct.useReducer=function(C,Y,I){return X.H.useReducer(C,Y,I)},ct.useRef=function(C){return X.H.useRef(C)},ct.useState=function(C){return X.H.useState(C)},ct.useSyncExternalStore=function(C,Y,I){return X.H.useSyncExternalStore(C,Y,I)},ct.useTransition=function(){return X.H.useTransition()},ct.version="19.2.5",ct}var Yp;function of(){return Yp||(Yp=1,rc.exports=ab()),rc.exports}var T=of(),oc={exports:{}},Cl={},cc={exports:{}},fc={};/**
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 Gp;function ib(){return Gp||(Gp=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,C=ft>>>1;ut<C;){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,M=!1,w=!1,_=!1,B=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,L=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 $(V){if(w=!1,J(V),!M)if(s(y)!==null)M=!0,P||(P=!0,K());else{var F=s(p);F!==null&&xt($,F.startTime-V)}}var P=!1,X=-1,Z=5,Q=-1;function k(){return _?!0:!(a.unstable_now()-Q<Z)}function W(){if(_=!1,P){var V=a.unstable_now();Q=V;var F=!0;try{t:{M=!1,w&&(w=!1,U(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 C=s(p);C!==null&&xt($,C.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 L=="function")K=function(){L(W)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,Tt=rt.port2;rt.port1.onmessage=W,K=function(){Tt.postMessage(null)}}else K=function(){B(W,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(){_=!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?(U(X),X=-1):w=!0,xt($,tt-ut))):(V.sortIndex=ft,i(y,V),M||x||(M=!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}}}}(fc)),fc}var Xp;function lb(){return Xp||(Xp=1,cc.exports=ib()),cc.exports}var dc={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 kp;function sb(){if(kp)return fe;kp=1;var a=of();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 Zp;function Tg(){if(Zp)return dc.exports;Zp=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(),dc.exports=sb(),dc.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 ub(){if(Qp)return Cl;Qp=1;var a=lb(),i=of(),s=Tg();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"),M=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),L=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),$=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"),W=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||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 _:return"StrictMode";case $:return"Suspense";case P:return"SuspenseList";case Q:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case L:return t.displayName||"Context";case U: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 C(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=C(null),ot=C(null),ht=C(null),pt=C(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)?up(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=up(e),t=rp(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=rp(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 O=N}Reflect.construct(t,[],G)}else{try{G.call()}catch(N){O=N}t.call(G.prototype)}}else{try{throw Error()}catch(N){O=N}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(N){if(N&&O&&typeof N.stack=="string")return[N.stack,O.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 E=h.split(`
44
- `),j=S.split(`
45
- `);for(r=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;r<j.length&&!j[r].includes("DetermineComponentFrameRoot");)r++;if(l===E.length||r===j.length)for(l=E.length-1,r=j.length-1;1<=l&&0<=r&&E[l]!==j[r];)r--;for(;1<=l&&0<=r;l--,r--)if(E[l]!==j[r]){if(l!==1||r!==1)do if(l--,r--,0>r||E[l]!==j[r]){var H=`
46
- `+E[l].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=l&&0<=r);break}}}finally{Di=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ke(n):""}function ku(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 Gl(t){try{var e="",n=null;do e+=ku(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,Zu=a.unstable_shouldYield,Xl=a.unstable_requestPaint,ce=a.unstable_now,kl=a.unstable_getCurrentPriorityLevel,_i=a.unstable_ImmediatePriority,ji=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,Qu=a.unstable_LowPriority,Oi=a.unstable_IdlePriority,Ku=a.log,Yt=a.unstable_setDisableYieldValue,Zt=null,Qt=null;function We(t){if(typeof Ku=="function"&&Yt(t),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Zt,t)}catch{}}var xe=Math.clz32?Math.clz32:Yv,Hv=Math.log,qv=Math.LN2;function Yv(t){return t>>>=0,t===0?32:31-(Hv(t)/qv|0)|0}var Zl=256,Ql=262144,Kl=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 Jl(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 Gv(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 Gf(){var t=Kl;return Kl<<=1,(Kl&62914560)===0&&(Kl=4194304),t}function Ju(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 Xv(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,E=t.expirationTimes,j=t.hiddenUpdates;for(n=h&~n;0<n;){var H=31-xe(n),G=1<<H;S[H]=0,E[H]=-1;var O=j[H];if(O!==null)for(j[H]=null,H=0;H<O.length;H++){var N=O[H];N!==null&&(N.lane&=-536870913)}n&=~G}l!==0&&Xf(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(h&~e))}function Xf(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 kf(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 Zf(t,e){var n=e&-e;return n=(n&42)!==0?1:Pu(n),(n&(t.suspendedLanes|e))!==0?0:n}function Pu(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 Fu(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:_p(t.type))}function Kf(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,_a="__reactContainer$"+Dn,$u="__reactEvents$"+Dn,kv="__reactListeners$"+Dn,Zv="__reactHandles$"+Dn,Jf="__reactResources$"+Dn,Bi="__reactMarker$"+Dn;function Wu(t){delete t[ae],delete t[pe],delete t[$u],delete t[kv],delete t[Zv]}function ja(t){var e=t[ae];if(e)return e;for(var n=t.parentNode;n;){if(e=n[_a]||n[ae]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=pp(t);t!==null;){if(n=t[ae])return n;t=pp(t)}return e}t=n,n=t.parentNode}return null}function Oa(t){if(t=t[ae]||t[_a]){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[Jf];return e||(e=t[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[Bi]=!0}var Pf=new Set,Ff={};function ua(t,e){Na(t,e),Na(t+"Capture",e)}function Na(t,e){for(Ff[t]=e,t=0;t<e.length;t++)Pf.add(e[t])}var Qv=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]*$"),$f={},Wf={};function Kv(t){return wi.call(Wf,t)?!0:wi.call($f,t)?!1:Qv.test(t)?Wf[t]=!0:($f[t]=!0,!1)}function Pl(t,e,n){if(Kv(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 Fl(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 _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function If(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Jv(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 Iu(t){if(!t._valueTracker){var e=If(t)?"checked":"value";t._valueTracker=Jv(t,e,""+t[e])}}function td(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=If(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function $l(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 Pv=/[\n"\\]/g;function je(t){return t.replace(Pv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function tr(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=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?er(t,h,_e(e)):n!=null?er(t,h,_e(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=""+_e(S):t.removeAttribute("name")}function ed(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)){Iu(t);return}n=n!=null?""+_e(n):"",e=e!=null?""+_e(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),Iu(t)}function er(t,e,n){e==="number"&&$l(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=""+_e(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 nd(t,e,n){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+_e(n):""}function ad(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=_e(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Iu(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 Fv=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 id(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||Fv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function ld(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&&id(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&id(t,o,e[o])}function nr(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 $v=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"]]),Wv=/^[\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 Wv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function on(){}var ar=null;function ir(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 sd(t){var e=Oa(t);if(e&&(t=e.stateNode)){var n=t[pe]||null;t:switch(t=e.stateNode,e.type){case"input":if(tr(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));tr(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&&td(l)}break t;case"textarea":nd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ba(t,!!n.multiple,e,!1)}}}var lr=!1;function ud(t,e,n){if(lr)return t(e,n);lr=!0;try{var l=t(e);return l}finally{if(lr=!1,(La!==null||Ha!==null)&&(Hs(),La&&(e=La,t=Ha,Ha=La=null,sd(e),t)))for(e=0;e<t.length;e++)sd(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"),sr=!1;if(cn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){sr=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{sr=!1}var Rn=null,ur=null,Il=null;function rd(){if(Il)return Il;var t,e=ur,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 Il=r.slice(t,1<l?1-l:void 0)}function ts(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 es(){return!0}function od(){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)?es:od,this.isPropagationStopped=od,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=es)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=es)},persist:function(){},isPersistent:es}),e}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ns=ye(ra),qi=v({},ra,{view:0,detail:0}),Iv=ye(qi),rr,or,Yi,as=v({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fr,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!==Yi&&(Yi&&t.type==="mousemove"?(rr=t.screenX-Yi.screenX,or=t.screenY-Yi.screenY):or=rr=0,Yi=t),rr)},movementY:function(t){return"movementY"in t?t.movementY:or}}),cd=ye(as),t1=v({},as,{dataTransfer:0}),e1=ye(t1),n1=v({},qi,{relatedTarget:0}),cr=ye(n1),a1=v({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),i1=ye(a1),l1=v({},ra,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),s1=ye(l1),u1=v({},ra,{data:0}),fd=ye(u1),r1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o1={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"},c1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=c1[t])?!!e[t]:!1}function fr(){return f1}var d1=v({},qi,{key:function(t){if(t.key){var e=r1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ts(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?o1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fr,charCode:function(t){return t.type==="keypress"?ts(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ts(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),h1=ye(d1),m1=v({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=ye(m1),p1=v({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fr}),y1=ye(p1),g1=v({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),v1=ye(g1),S1=v({},as,{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}),b1=ye(S1),T1=v({},ra,{newState:0,oldState:0}),x1=ye(T1),E1=[9,13,27,32],dr=cn&&"CompositionEvent"in window,Gi=null;cn&&"documentMode"in document&&(Gi=document.documentMode);var A1=cn&&"TextEvent"in window&&!Gi,hd=cn&&(!dr||Gi&&8<Gi&&11>=Gi),md=" ",pd=!1;function yd(t,e){switch(t){case"keyup":return E1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qa=!1;function M1(t,e){switch(t){case"compositionend":return gd(e);case"keypress":return e.which!==32?null:(pd=!0,md);case"textInput":return t=e.data,t===md&&pd?null:t;default:return null}}function C1(t,e){if(qa)return t==="compositionend"||!dr&&yd(t,e)?(t=rd(),Il=ur=Rn=null,qa=!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 hd&&e.locale!=="ko"?null:e.data;default:return null}}var D1={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 vd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!D1[t.type]:e==="textarea"}function Sd(t,e,n,l){La?Ha?Ha.push(l):Ha=[l]:La=l,e=Qs(e,"onChange"),0<e.length&&(n=new ns("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Xi=null,ki=null;function R1(t){ep(t,0)}function is(t){var e=Ui(t);if(td(e))return t}function bd(t,e){if(t==="change")return e}var Td=!1;if(cn){var hr;if(cn){var mr="oninput"in document;if(!mr){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),mr=typeof xd.oninput=="function"}hr=mr}else hr=!1;Td=hr&&(!document.documentMode||9<document.documentMode)}function Ed(){Xi&&(Xi.detachEvent("onpropertychange",Ad),ki=Xi=null)}function Ad(t){if(t.propertyName==="value"&&is(ki)){var e=[];Sd(e,ki,t,ir(t)),ud(R1,e)}}function w1(t,e,n){t==="focusin"?(Ed(),Xi=e,ki=n,Xi.attachEvent("onpropertychange",Ad)):t==="focusout"&&Ed()}function z1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return is(ki)}function _1(t,e){if(t==="click")return is(e)}function j1(t,e){if(t==="input"||t==="change")return is(e)}function O1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:O1;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 Md(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cd(t,e){var n=Md(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=Md(n)}}function Dd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Dd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Rd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=$l(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=$l(t.document)}return e}function pr(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 V1=cn&&"documentMode"in document&&11>=document.documentMode,Ya=null,yr=null,Qi=null,gr=!1;function wd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gr||Ya==null||Ya!==$l(l)||(l=Ya,"selectionStart"in l&&pr(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=Qs(yr,"onSelect"),0<l.length&&(e=new ns("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ya)))}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")},vr={},zd={};cn&&(zd=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(vr[t])return vr[t];if(!Ga[t])return t;var e=Ga[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in zd)return vr[t]=e[n];return t}var _d=ca("animationend"),jd=ca("animationiteration"),Od=ca("animationstart"),N1=ca("transitionrun"),B1=ca("transitionstart"),U1=ca("transitioncancel"),Vd=ca("transitionend"),Nd=new Map,Sr="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(" ");Sr.push("scrollEnd");function Ze(t,e){Nd.set(t,e),ua(e,[t])}var ls=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)},Oe=[],Xa=0,br=0;function ss(){for(var t=Xa,e=br=Xa=0;e<t;){var n=Oe[e];Oe[e++]=null;var l=Oe[e];Oe[e++]=null;var r=Oe[e];Oe[e++]=null;var o=Oe[e];if(Oe[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&&Bd(n,r,o)}}function us(t,e,n,l){Oe[Xa++]=t,Oe[Xa++]=e,Oe[Xa++]=n,Oe[Xa++]=l,br|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Tr(t,e,n,l){return us(t,e,n,l),rs(t)}function fa(t,e){return us(t,null,null,e),rs(t)}function Bd(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 rs(t){if(50<ml)throw ml=0,_o=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 L1(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 L1(t,e,n,l)}function xr(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 Ud(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 os(t,e,n,l,r,o){var h=0;if(l=t,typeof t=="function")xr(t)&&(h=1);else if(typeof t=="string")h=XS(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 _:h=8,r|=24;break;case B:return t=Ae(12,n,e,r|2),t.elementType=B,t.lanes=o,t;case $:return t=Ae(13,n,e,r),t.elementType=$,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 L:h=10;break t;case U: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 Er(t,e,n){return t=Ae(6,t,null,e),t.lanes=n,t}function Ld(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function Ar(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 Hd=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=Hd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Gl(e)},Hd.set(t,e),e)}return{value:t,source:e,stack:Gl(e)}}var Za=[],Qa=0,cs=null,Ki=0,Ne=[],Be=0,wn=null,Ie=1,tn="";function dn(t,e){Za[Qa++]=Ki,Za[Qa++]=cs,cs=t,Ki=e}function qd(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 Mr(t){t.return!==null&&(dn(t,1),qd(t,1,0))}function Cr(t){for(;t===cs;)cs=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 Yd(t,e){Ne[Be++]=Ie,Ne[Be++]=tn,Ne[Be++]=wn,Ie=e.id,tn=e.overflow,wn=t}var ie=null,Ot=null,bt=!1,zn=null,Ue=!1,Dr=Error(u(519));function _n(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ji(Ve(e,t)),Dr}function Gd(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),ed(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),ad(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||lp(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||_n(t,!0)}function Xd(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 Xd(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")||Qo(t.type,t.memoizedProps)),n=!n),n&&Ot&&_n(t),Xd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Ot=mp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Ot=mp(t)}else e===27?(e=Ot,Zn(t.type)?(t=$o,$o=null,Ot=t):Ot=e):Ot=ie?He(t.stateNode.nextSibling):null;return!0}function ha(){Ot=ie=null,bt=!1}function Rr(){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 wr=C(null),ma=null,hn=null;function jn(t,e,n){I(wr,e._currentValue),e._currentValue=n}function mn(t){t._currentValue=wr.current,Y(wr)}function zr(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 _r(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 E=0;E<e.length;E++)if(S.context===e[E]){o.lanes|=n,S=o.alternate,S!==null&&(S.lanes|=n),zr(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),zr(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&&_r(e,t,n,l),e.flags|=262144}function fs(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 kd(ma,t)}function ds(t,e){return ma===null&&pa(t),kd(t,e)}function kd(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 H1=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()})}},q1=a.unstable_scheduleCallback,Y1=a.unstable_NormalPriority,Kt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jr(){return{controller:new H1,data:new Map,refCount:0}}function Pi(t){t.refCount--,t.refCount===0&&q1(Y1,function(){t.controller.abort()})}var Fi=null,Or=0,Pa=0,Fa=null;function G1(t,e){if(Fi===null){var n=Fi=[];Or=0,Pa=Uo(),Fa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Or++,e.then(Zd,Zd),e}function Zd(){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 X1(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){wm=ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&G1(t,e),Qd!==null&&Qd(t,e)};var ya=C(null);function Vr(){var t=ya.current;return t!==null?t:_t.pooledCache}function hs(t,e){e===null?I(ya,ya.current):I(ya,e.pool)}function Kd(){var t=Vr();return t===null?null:{parent:Kt._currentValue,pool:t}}var $a=Error(u(460)),Nr=Error(u(474)),ms=Error(u(542)),ps={then:function(){}};function Jd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Pd(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,$d(t),t;default:if(typeof e.status=="string")e.then(on,on);else{if(t=_t,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,$d(t),t}throw va=e,$a}}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,$a):n}}var va=null;function Fd(){if(va===null)throw Error(u(459));var t=va;return va=null,t}function $d(t){if(t===$a||t===ms)throw Error(u(483))}var Wa=null,$i=0;function ys(t){var e=$i;return $i+=1,Wa===null&&(Wa=[]),Pd(Wa,t,e)}function Wi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function gs(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 Wd(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,q){return D===null||D.tag!==6?(D=Er(z,R.mode,q),D.return=R,D):(D=r(D,z),D.return=R,D)}function E(R,D,z,q){var lt=z.type;return lt===w?H(R,D,z.props.children,q,z.key):D!==null&&(D.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Z&&ga(lt)===D.type)?(D=r(D,z.props),Wi(D,z),D.return=R,D):(D=os(z.type,z.key,z.props,null,R.mode,q),Wi(D,z),D.return=R,D)}function j(R,D,z,q){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=Ar(z,R.mode,q),D.return=R,D):(D=r(D,z.children||[]),D.return=R,D)}function H(R,D,z,q,lt){return D===null||D.tag!==7?(D=da(z,R.mode,q,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=Er(""+D,R.mode,z),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return z=os(D.type,D.key,D.props,null,R.mode,z),Wi(z,D),z.return=R,z;case M:return D=Ar(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,ys(D),z);if(D.$$typeof===L)return G(R,ds(R,D),z);gs(R,D)}return null}function O(R,D,z,q){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,q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===lt?E(R,D,z,q):null;case M:return z.key===lt?j(R,D,z,q):null;case Z:return z=ga(z),O(R,D,z,q)}if(xt(z)||K(z))return lt!==null?null:H(R,D,z,q,null);if(typeof z.then=="function")return O(R,D,ys(z),q);if(z.$$typeof===L)return O(R,D,ds(R,z),q);gs(R,z)}return null}function N(R,D,z,q,lt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return R=R.get(z)||null,S(D,R,""+q,lt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return R=R.get(q.key===null?z:q.key)||null,E(D,R,q,lt);case M:return R=R.get(q.key===null?z:q.key)||null,j(D,R,q,lt);case Z:return q=ga(q),N(R,D,z,q,lt)}if(xt(q)||K(q))return R=R.get(z)||null,H(D,R,q,lt,null);if(typeof q.then=="function")return N(R,D,z,ys(q),lt);if(q.$$typeof===L)return N(R,D,z,ds(D,q),lt);gs(D,q)}return null}function nt(R,D,z,q){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=O(R,it,z[mt],q);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],q),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],q),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,q){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=O(R,it,At.value,q);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,q),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,q),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(tb){return e(R,tb)}),bt&&dn(R,mt),lt}function zt(R,D,z,q){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),q=r(D,z.props.children),q.return=R,R=q;break t}}else if(D.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Z&&ga(lt)===D.type){n(R,D.sibling),q=r(D,z.props),Wi(q,z),q.return=R,R=q;break t}n(R,D);break}else e(R,D);D=D.sibling}z.type===w?(q=da(z.props.children,R.mode,q,z.key),q.return=R,R=q):(q=os(z.type,z.key,z.props,null,R.mode,q),Wi(q,z),q.return=R,R=q)}return h(R);case M: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),q=r(D,z.children||[]),q.return=R,R=q;break t}else{n(R,D);break}else e(R,D);D=D.sibling}q=Ar(z,R.mode,q),q.return=R,R=q}return h(R);case Z:return z=ga(z),zt(R,D,z,q)}if(xt(z))return nt(R,D,z,q);if(K(z)){if(lt=K(z),typeof lt!="function")throw Error(u(150));return z=lt.call(z),st(R,D,z,q)}if(typeof z.then=="function")return zt(R,D,ys(z),q);if(z.$$typeof===L)return zt(R,D,ds(R,z),q);gs(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,D!==null&&D.tag===6?(n(R,D.sibling),q=r(D,z),q.return=R,R=q):(n(R,D),q=Er(z,R.mode,q),q.return=R,R=q),h(R)):n(R,D)}return function(R,D,z,q){try{$i=0;var lt=zt(R,D,z,q);return Wa=null,lt}catch(it){if(it===$a||it===ms)throw it;var Et=Ae(29,it,null,R.mode);return Et.lanes=q,Et.return=R,Et}finally{}}}var Sa=Wd(!0),Id=Wd(!1),On=!1;function Br(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ur(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=rs(t),Bd(t,null,n),e}return us(t,l,e,n),rs(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,kf(t,n)}}function Lr(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 Hr=!1;function tl(){if(Hr){var t=Fa;if(t!==null)throw t}}function el(t,e,n,l){Hr=!1;var r=t.updateQueue;On=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,S=r.shared.pending;if(S!==null){r.shared.pending=null;var E=S,j=E.next;E.next=null,h===null?o=j:h.next=j,h=E;var H=t.alternate;H!==null&&(H=H.updateQueue,S=H.lastBaseUpdate,S!==h&&(S===null?H.firstBaseUpdate=j:S.next=j,H.lastBaseUpdate=E))}if(o!==null){var G=r.baseState;h=0,H=j=E=null,S=o;do{var O=S.lane&-536870913,N=O!==S.lane;if(N?(vt&O)===O:(l&O)===O){O!==0&&O===Pa&&(Hr=!0),H!==null&&(H=H.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var nt=t,st=S;O=e;var zt=n;switch(st.tag){case 1:if(nt=st.payload,typeof nt=="function"){G=nt.call(zt,G,O);break t}G=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=st.payload,O=typeof nt=="function"?nt.call(zt,G,O):nt,O==null)break t;G=v({},G,O);break t;case 2:On=!0}}O=S.callback,O!==null&&(t.flags|=64,N&&(t.flags|=8192),N=r.callbacks,N===null?r.callbacks=[O]:N.push(O))}else N={lane:O,tag:S.tag,payload:S.payload,callback:S.callback,next:null},H===null?(j=H=N,E=G):H=H.next=N,h|=O;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);H===null&&(E=G),r.baseState=E,r.firstBaseUpdate=j,r.lastBaseUpdate=H,o===null&&(r.shared.lanes=0),qn|=h,t.lanes=h,t.memoizedState=G}}function th(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function eh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)th(n[t],e)}var Ia=C(null),vs=C(0);function nh(t,e){t=En,I(vs,t),I(Ia,e),En=t|e.baseLanes}function qr(){I(vs,En),I(Ia,Ia.current)}function Yr(){En=vs.current,Y(Ia),Y(vs)}var Me=C(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 Gr(t){I(Gt,Gt.current),I(Me,t),Le===null&&(Le=t)}function ah(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=C(0);function Ss(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Po(n)||Fo(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,bs=!1,ti=!1,ba=!1,Ts=0,nl=0,ei=null,k1=0;function Lt(){throw Error(u(321))}function Xr(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 kr(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?qh:lo,ba=!1,o=n(l,r),ba=!1,ti&&(o=lh(e,n,l,r)),ih(t),o}function ih(t){V.H=ll;var e=Rt!==null&&Rt.next!==null;if(pn=0,Jt=Rt=dt=null,bs=!1,nl=0,ei=null,e)throw Error(u(300));t===null||Pt||(t=t.dependencies,t!==null&&fs(t)&&(Pt=!0))}function lh(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=Yh,o=e(n,l)}while(ti);return o}function Z1(){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 Zr(){var t=Ts!==0;return Ts=0,t}function Qr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Kr(t){if(bs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}bs=!1}pn=0,Jt=Rt=dt=null,ti=!1,nl=Ts=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 xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function al(t){var e=nl;return nl+=1,ei===null&&(ei=[]),t=Pd(ei,t,e),e=dt,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?qh:lo),t}function Es(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return al(t);if(t.$$typeof===L)return le(t)}throw Error(u(438,String(t)))}function Jr(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=xs(),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 As(t){var e=Xt();return Pr(e,Rt,t)}function Pr(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,E=null,j=e,H=!1;do{var G=j.lane&-536870913;if(G!==j.lane?(vt&G)===G:(pn&G)===G){var O=j.revertLane;if(O===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),G===Pa&&(H=!0);else if((pn&O)===O){j=j.next,O===Pa&&(H=!0);continue}else G={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},E===null?(S=E=G,h=o):E=E.next=G,dt.lanes|=O,qn|=O;G=j.action,ba&&n(o,G),o=j.hasEagerState?j.eagerState:n(o,G)}else O={lane:G,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},E===null?(S=E=O,h=o):E=E.next=O,dt.lanes|=G,qn|=G;j=j.next}while(j!==null&&j!==e);if(E===null?h=o:E.next=S,!Ee(o,t.memoizedState)&&(Pt=!0,H&&(n=Fa,n!==null)))throw n;t.memoizedState=o,t.baseState=h,t.baseQueue=E,l.lastRenderedState=o}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Fr(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 sh(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,Ir(oh.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},rh.bind(null,l,r,n,e),null),_t===null)throw Error(u(349));o||(pn&127)!==0||uh(l,e,n)}return n}function uh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=dt.updateQueue,e===null?(e=xs(),dt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function rh(t,e,n,l){e.value=n,e.getSnapshot=l,ch(e)&&fh(t)}function oh(t,e,n){return n(function(){ch(e)&&fh(t)})}function ch(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ee(t,n)}catch{return!0}}function fh(t){var e=fa(t,2);e!==null&&Te(e,t,2)}function $r(t){var e=de();if(typeof t=="function"){var n=t;if(t=n(),ba){We(!0);try{n()}finally{We(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:t},e}function dh(t,e,n,l){return t.baseState=n,Pr(t,Rt,typeof l=="function"?l:yn)}function Q1(t,e,n,l,r){if(Ds(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,hh(e,o)):(o.next=n.next,e.pending=n.next=o)}}function hh(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),E=V.S;E!==null&&E(h,S),mh(t,e,S)}catch(j){Wr(t,e,j)}finally{o!==null&&h.types!==null&&(o.types=h.types),V.T=o}}else try{o=n(r,l),mh(t,e,o)}catch(j){Wr(t,e,j)}}function mh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ph(t,e,l)},function(l){return Wr(t,e,l)}):ph(t,e,n)}function ph(t,e,n){e.status="fulfilled",e.value=n,yh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,hh(t,n)))}function Wr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,yh(e),e=e.next;while(e!==l)}t.action=null}function yh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function gh(t,e){return e}function vh(t,e){if(bt){var n=_t.formState;if(n!==null){t:{var l=dt;if(bt){if(Ot){e:{for(var r=Ot,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){Ot=He(r.nextSibling),l=r.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=de(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:e},n.queue=l,n=Uh.bind(null,dt,l),l.dispatch=n,l=$r(!1),o=io.bind(null,dt,!1,l.queue),l=de(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=Q1.bind(null,dt,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function Sh(t){var e=Xt();return bh(e,Rt,t)}function bh(t,e,n){if(e=Pr(t,e,gh)[0],t=As(yn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=al(e)}catch(h){throw h===$a?ms: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},K1.bind(null,r,n),null)),[l,o,t]}function K1(t,e){t.action=e}function Th(t){var e=Xt(),n=Rt;if(n!==null)return bh(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=xs(),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 xh(){return Xt().memoizedState}function Ms(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 Cs(t,e,n,l){var r=Xt();l=l===void 0?null:l;var o=r.memoizedState.inst;Rt!==null&&l!==null&&Xr(l,Rt.memoizedState.deps)?r.memoizedState=ni(e,o,n,l):(dt.flags|=t,r.memoizedState=ni(1|e,o,n,l))}function Eh(t,e){Ms(8390656,8,t,e)}function Ir(t,e){Cs(2048,8,t,e)}function J1(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=xs(),dt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Ah(t){var e=Xt().memoizedState;return J1({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function Mh(t,e){return Cs(4,2,t,e)}function Ch(t,e){return Cs(4,4,t,e)}function Dh(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 Rh(t,e,n){n=n!=null?n.concat([t]):null,Cs(4,4,Dh.bind(null,e,t),n)}function to(){}function wh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Xr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function zh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Xr(e,l[1]))return l[0];if(l=t(),ba){We(!0);try{t()}finally{We(!1)}}return n.memoizedState=[l,e],l}function eo(t,e,n){return n===void 0||(pn&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=_m(),dt.lanes|=t,qn|=t,n)}function _h(t,e,n,l){return Ee(n,e)?n:Ia.current!==null?(t=eo(t,n,l),Ee(t,e)||(Pt=!0),t):(pn&42)===0||(pn&1073741824)!==0&&(vt&261930)===0?(Pt=!0,t.memoizedState=n):(t=_m(),dt.lanes|=t,qn|=t,e)}function jh(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,io(t,!1,e,n);try{var E=r(),j=V.S;if(j!==null&&j(S,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var H=X1(E,l);il(t,e,H,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 P1(){}function no(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=Oh(t).queue;jh(t,r,e,tt,n===null?P1:function(){return Vh(t),n(l)})}function Oh(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 Vh(t){var e=Oh(t);e.next===null&&(e=t.alternate.memoizedState),il(t,e.next.queue,{},we())}function ao(){return le(Tl)}function Nh(){return Xt().memoizedState}function Bh(){return Xt().memoizedState}function F1(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:jr()},t.payload=e;return}e=e.return}}function $1(t,e,n){var l=we();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(t)?Lh(e,n):(n=Tr(t,e,n,l),n!==null&&(Te(n,t,l),Hh(n,e,l)))}function Uh(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(Ds(t))Lh(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 us(t,e,r,0),_t===null&&ss(),!1}catch{}finally{}if(n=Tr(t,e,r,l),n!==null)return Te(n,t,l),Hh(n,e,l),!0}return!1}function io(t,e,n,l){if(l={lane:2,revertLane:Uo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ds(t)){if(e)throw Error(u(479))}else e=Tr(t,n,l,2),e!==null&&Te(e,t,2)}function Ds(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function Lh(t,e){ti=bs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Hh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,kf(t,n)}}var ll={readContext:le,use:Es,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 qh={readContext:le,use:Es,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Eh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ms(4194308,4,Dh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ms(4194308,4,t,e)},useInsertionEffect:function(t,e){Ms(4,2,t,e)},useMemo:function(t,e){var n=de();e=e===void 0?null:e;var l=t();if(ba){We(!0);try{t()}finally{We(!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){We(!0);try{n(e)}finally{We(!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=$1.bind(null,dt,t),[l.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=$r(t);var e=t.queue,n=Uh.bind(null,dt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:to,useDeferredValue:function(t,e){var n=de();return eo(n,t,e)},useTransition:function(){var t=$r(!1);return t=jh.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(),_t===null)throw Error(u(349));(vt&127)!==0||uh(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,Eh(oh.bind(null,l,o,t),[t]),l.flags|=2048,ni(9,{destroy:void 0},rh.bind(null,l,o,n,e),null),n},useId:function(){var t=de(),e=_t.identifierPrefix;if(bt){var n=tn,l=Ie;n=(l&~(1<<32-xe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ts++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=k1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ao,useFormState:vh,useActionState:vh,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=io.bind(null,dt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Jr,useCacheRefresh:function(){return de().memoizedState=F1.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)}}},lo={readContext:le,use:Es,useCallback:wh,useContext:le,useEffect:Ir,useImperativeHandle:Rh,useInsertionEffect:Mh,useLayoutEffect:Ch,useMemo:zh,useReducer:As,useRef:xh,useState:function(){return As(yn)},useDebugValue:to,useDeferredValue:function(t,e){var n=Xt();return _h(n,Rt.memoizedState,t,e)},useTransition:function(){var t=As(yn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:al(t),e]},useSyncExternalStore:sh,useId:Nh,useHostTransitionStatus:ao,useFormState:Sh,useActionState:Sh,useOptimistic:function(t,e){var n=Xt();return dh(n,Rt,t,e)},useMemoCache:Jr,useCacheRefresh:Bh};lo.useEffectEvent=Ah;var Yh={readContext:le,use:Es,useCallback:wh,useContext:le,useEffect:Ir,useImperativeHandle:Rh,useInsertionEffect:Mh,useLayoutEffect:Ch,useMemo:zh,useReducer:Fr,useRef:xh,useState:function(){return Fr(yn)},useDebugValue:to,useDeferredValue:function(t,e){var n=Xt();return Rt===null?eo(n,t,e):_h(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Fr(yn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:al(t),e]},useSyncExternalStore:sh,useId:Nh,useHostTransitionStatus:ao,useFormState:Th,useActionState:Th,useOptimistic:function(t,e){var n=Xt();return Rt!==null?dh(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Jr,useCacheRefresh:Bh};Yh.useEffectEvent=Ah;function so(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 uo={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 Gh(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 Xh(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&&uo.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 kh(t){ls(t)}function Zh(t){console.error(t)}function Qh(t){ls(t)}function Rs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Kh(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 ro(t,e,n){return n=Vn(n),n.tag=3,n.payload={element:null},n.callback=function(){Rs(t,e)},n}function Jh(t){return t=Vn(t),t.tag=3,t}function Ph(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(){Kh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Kh(e,n,l),typeof r!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function W1(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?qs():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===ps?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Vo(t,l,r)),!1;case 22:return n.flags|=65536,l===ps?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)),Vo(t,l,r)),!1}throw Error(u(435,n.tag))}return Vo(t,l,r),qs(),!1}if(bt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Dr&&(t=Error(u(422),{cause:l}),Ji(Ve(t,n)))):(l!==Dr&&(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=ro(t.stateNode,l,r),Lr(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=ro(n.stateNode,l,t),Lr(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"&&(Yn===null||!Yn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Jh(r),Ph(r,t,n,l),Lr(n,r),!1}n=n.return}while(n!==null);return!1}var oo=Error(u(461)),Pt=!1;function se(t,e,n,l){e.child=t===null?Id(e,null,n,l):Sa(e,t.child,n,l)}function Fh(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=kr(t,e,n,h,o,r),S=Zr(),t!==null&&!Pt?(Qr(t,e,r),gn(t,e,r)):(bt&&S&&Mr(e),e.flags|=1,se(t,e,l,r),e.child)}function $h(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!xr(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Wh(t,e,o,l,r)):(t=os(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!vo(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 Wh(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,vo(t,r))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,gn(t,e,r)}return co(t,e,n,l,r)}function Ih(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 tm(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&hs(e,o!==null?o.cachePool:null),o!==null?nh(e,o):qr(),ah(e);else return l=e.lanes=536870912,tm(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(hs(e,o.cachePool),nh(e,o),Un(),e.memoizedState=null):(t!==null&&hs(e,null),qr(),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 tm(t,e,n,l,r){var o=Vr();return o=o===null?null:{parent:Kt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&hs(e,null),qr(),ah(e),t!==null&&Ja(t,e,l,!0),e.childLanes=r,null}function ws(t,e){return e=_s({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function em(t,e,n){return Sa(e,t.child,null,n),t=ws(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function I1(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=ws(e,l),e.lanes=536870912,sl(null,t);if(Gr(e),(t=Ot)?(t=hp(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=Ld(t),n.return=e,e.child=n,ie=e,Ot=null)):t=null,t===null)throw _n(e);return e.lanes=536870912,null}return ws(e,l)}var o=t.memoizedState;if(o!==null){var h=o.dehydrated;if(Gr(e),r)if(e.flags&256)e.flags&=-257,e=em(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=_t,l!==null&&(h=Zf(l,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,fa(t,h),Te(l,t,h),oo;qs(),e=em(t,e,n)}else t=o.treeContext,Ot=He(h.nextSibling),ie=e,bt=!0,zn=null,Ue=!1,t!==null&&Yd(e,t),e=ws(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 zs(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 co(t,e,n,l,r){return pa(e),n=kr(t,e,n,l,void 0,r),l=Zr(),t!==null&&!Pt?(Qr(t,e,r),gn(t,e,r)):(bt&&l&&Mr(e),e.flags|=1,se(t,e,n,r),e.child)}function nm(t,e,n,l,r,o){return pa(e),e.updateQueue=null,n=lh(e,l,n,r),ih(t),l=Zr(),t!==null&&!Pt?(Qr(t,e,o),gn(t,e,o)):(bt&&l&&Mr(e),e.flags|=1,se(t,e,n,o),e.child)}function am(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=uo,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},Br(e),h=n.contextType,o.context=typeof h=="object"&&h!==null?le(h):ka,o.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(so(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&&uo.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,E=Ta(n,S);o.props=E;var j=o.context,H=n.contextType;h=ka,typeof H=="object"&&H!==null&&(h=le(H));var G=n.getDerivedStateFromProps;H=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,H||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||j!==h)&&Xh(e,o,l,h),On=!1;var O=e.memoizedState;o.state=O,el(e,l,o,r),tl(),j=e.memoizedState,S||O!==j||On?(typeof G=="function"&&(so(e,n,G,l),j=e.memoizedState),(E=On||Gh(e,n,E,l,O,j,h))?(H||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=j),o.props=l,o.state=j,o.context=h,l=E):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,Ur(t,e),h=e.memoizedProps,H=Ta(n,h),o.props=H,G=e.pendingProps,O=o.context,j=n.contextType,E=ka,typeof j=="object"&&j!==null&&(E=le(j)),S=n.getDerivedStateFromProps,(j=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||O!==E)&&Xh(e,o,l,E),On=!1,O=e.memoizedState,o.state=O,el(e,l,o,r),tl();var N=e.memoizedState;h!==G||O!==N||On||t!==null&&t.dependencies!==null&&fs(t.dependencies)?(typeof S=="function"&&(so(e,n,S,l),N=e.memoizedState),(H=On||Gh(e,n,H,l,O,N,E)||t!==null&&t.dependencies!==null&&fs(t.dependencies))?(j||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,N,E),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,N,E)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=N),o.props=l,o.state=N,o.context=E,l=H):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,zs(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 im(t,e,n,l){return ha(),e.flags|=256,se(t,e,n,l),e.child}var fo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ho(t){return{baseLanes:t,cachePool:Kd()}}function mo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function lm(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=Ot)?(t=hp(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=Ld(t),n.return=e,e.child=n,ie=e,Ot=null)):t=null,t===null)throw _n(e);return Fo(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,r?(Un(),r=e.mode,S=_s({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=ho(n),l.childLanes=mo(t,h,n),e.memoizedState=fo,sl(null,l)):(Bn(e),po(e,S))}var E=t.memoizedState;if(E!==null&&(S=E.dehydrated,S!==null)){if(o)e.flags&256?(Bn(e),e.flags&=-257,e=yo(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),S=l.fallback,r=e.mode,l=_s({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=ho(n),l.childLanes=mo(t,h,n),e.memoizedState=fo,e=sl(null,l));else if(Bn(e),Fo(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var j=h.dgst;h=j,l=Error(u(419)),l.stack="",l.digest=h,Ji({value:l,source:null,stack:null}),e=yo(t,e,n)}else if(Pt||Ja(t,e,n,!1),h=(n&t.childLanes)!==0,Pt||h){if(h=_t,h!==null&&(l=Zf(h,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,fa(t,l),Te(h,t,l),oo;Po(S)||qs(),e=yo(t,e,n)}else Po(S)?(e.flags|=192,e.child=t.child,e=null):(t=E.treeContext,Ot=He(S.nextSibling),ie=e,bt=!0,zn=null,Ue=!1,t!==null&&Yd(e,t),e=po(e,l.children),e.flags|=4096);return e}return r?(Un(),S=l.fallback,r=e.mode,E=t.child,j=E.sibling,l=fn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,j!==null?S=fn(j,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=ho(n):(r=S.cachePool,r!==null?(E=Kt._currentValue,r=r.parent!==E?{parent:E,pool:E}:r):r=Kd(),S={baseLanes:S.baseLanes|n,cachePool:r}),l.memoizedState=S,l.childLanes=mo(t,h,n),e.memoizedState=fo,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 po(t,e){return e=_s({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function _s(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function yo(t,e,n){return Sa(e,t.child,null,n),t=po(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function sm(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),zr(t.return,e,n)}function go(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 um(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&&sm(t,n,e);else if(t.tag===19)sm(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&&Ss(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),go(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&&Ss(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}go(e,!0,n,null,o,l);break;case"together":go(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),qn|=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 vo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&fs(t)))}function tS(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,Gr(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?lm(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 um(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,Ih(t,e,n,e.pendingProps);case 24:jn(e,Kt,t.memoizedState.cache)}return gn(t,e,n)}function rm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!vo(t,n)&&(e.flags&128)===0)return Pt=!1,tS(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,bt&&(e.flags&1048576)!==0&&qd(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")xr(t)?(l=Ta(t,l),e.tag=1,e=am(null,e,t,l,n)):(e.tag=0,e=co(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===J){e.tag=11,e=Fh(null,e,t,l,n);break t}else if(r===X){e.tag=14,e=$h(null,e,t,l,n);break t}}throw e=Tt(t)||t,Error(u(306,e,""))}}return e;case 0:return co(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Ta(l,e.pendingProps),am(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,Ur(t,e),el(e,l,null,n);var h=e.memoizedState;if(l=h.cache,jn(e,Kt,l),l!==o.cache&&_r(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=im(t,e,l,n);break t}else if(l!==r){r=Ve(Error(u(424)),e),Ji(r),e=im(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(Ot=He(t.firstChild),ie=e,bt=!0,zn=null,Ue=!0,n=Id(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 zs(t,e),t===null?(n=Sp(e.type,null,e.pendingProps,null))?e.memoizedState=n:bt||(n=e.type,t=e.pendingProps,l=Ks(ht.current).createElement(n),l[ae]=e,l[pe]=t,ue(l,n,t),te(l),e.stateNode=l):e.memoizedState=Sp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Xe(e),t===null&&bt&&(l=e.stateNode=yp(e.type,e.pendingProps,ht.current),ie=e,Ue=!0,r=Ot,Zn(e.type)?($o=r,Ot=He(l.firstChild)):Ot=r),se(t,e,e.pendingProps.children,n),zs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((r=l=Ot)&&(l=zS(l,e.type,e.pendingProps,Ue),l!==null?(e.stateNode=l,ie=e,Ot=He(l.firstChild),Ue=!1,r=!0):r=!1),r||_n(e)),Xe(e),r=e.type,o=e.pendingProps,h=t!==null?t.memoizedProps:null,l=o.children,Qo(r,o)?l=null:h!==null&&Qo(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=kr(t,e,Z1,null,null,n),Tl._currentValue=r),zs(t,e),se(t,e,l,n),e.child;case 6:return t===null&&bt&&((t=n=Ot)&&(n=_S(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,ie=e,Ot=null,t=!0):t=!1),t||_n(e)),null;case 13:return lm(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 Fh(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 $h(t,e,e.type,e.pendingProps,n);case 15:return Wh(t,e,e.type,e.pendingProps,n);case 19:return um(t,e,n);case 31:return I1(t,e,n);case 22:return Ih(t,e,n,e.pendingProps);case 24:return pa(e),l=le(Kt),t===null?(r=Vr(),r===null&&(r=_t,o=jr(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},Br(e),jn(e,Kt,r)):((t.lanes&n)!==0&&(Ur(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&&_r(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 So(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(Nm())t.flags|=8192;else throw va=ps,Nr}else t.flags&=-16777217}function om(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ap(e))if(Nm())t.flags|=8192;else throw va=ps,Nr}function js(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Gf():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 eS(t,e,n){var l=e.pendingProps;switch(Cr(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,Rr())),Vt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(vn(e),o!==null?(Vt(e),om(e,o)):(Vt(e),So(e,r,null,l,n))):o?o!==t.memoizedState?(vn(e),Vt(e),om(e,o)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&vn(e),Vt(e),So(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)?Gd(e):(t=yp(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))Gd(e);else{var h=Ks(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),So(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||lp(t.nodeValue,n)),t||_n(e,!0)}else t=Ks(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=Rr(),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=Rr(),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),js(e,e.updateQueue),Vt(e),null);case 4:return Ut(),t===null&&Yo(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=Ss(t),o!==null){for(e.flags|=128,ul(l,!1),t=o.updateQueue,e.updateQueue=t,js(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Ud(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()>Us&&(e.flags|=128,r=!0,ul(l,!1),e.lanes=4194304)}else{if(!r)if(t=Ss(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,js(e,t),ul(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!bt)return Vt(e),null}else 2*ce()-l.renderingStartTime>Us&&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),Yr(),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&&js(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 nS(t,e){switch(Cr(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),Yr(),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 cm(t,e){switch(Cr(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),Yr(),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 E=n,j=S;try{j()}catch(H){Dt(r,E,H)}}}l=l.next}while(l!==o)}}catch(H){Dt(e,e.return,H)}}function fm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{eh(e,n)}catch(l){Dt(t,t.return,l)}}}function dm(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 hm(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 bo(t,e,n){try{var l=t.stateNode;AS(l,t.type,n,e),l[pe]=e}catch(r){Dt(t,t.return,r)}}function mm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zn(t.type)||t.tag===4}function To(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mm(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 xo(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(xo(t,e,n),t=t.sibling;t!==null;)xo(t,e,n),t=t.sibling}function Os(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(Os(t,e,n),t=t.sibling;t!==null;)Os(t,e,n),t=t.sibling}function pm(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,Eo=!1,ym=typeof WeakSet=="function"?WeakSet:Set,ee=null;function aS(t,e){if(t=t.containerInfo,ko=tu,t=Rd(t),pr(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,E=-1,j=0,H=0,G=t,O=null;e:for(;;){for(var N;G!==n||r!==0&&G.nodeType!==3||(S=h+r),G!==o||l!==0&&G.nodeType!==3||(E=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(N=G.firstChild)!==null;)O=G,G=N;for(;;){if(G===t)break e;if(O===n&&++j===r&&(S=h),O===o&&++H===l&&(E=h),(N=G.nextSibling)!==null)break;G=O,O=G.parentNode}G=N}n=S===-1||E===-1?null:{start:S,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zo={focusedElem:t,selectionRange:n},tu=!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)Jo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Jo(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 gm(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&&fm(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{eh(t,e)}catch(h){Dt(n,n.return,h)}}break;case 27:e===null&&l&4&&pm(n);case 26:case 5:Tn(t,n),e===null&&l&4&&hm(n),l&512&&ol(n,n.return);break;case 12:Tn(t,n);break;case 31:Tn(t,n),l&4&&bm(t,n);break;case 13:Tn(t,n),l&4&&Tm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=dS.bind(null,n),jS(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 vm(t){var e=t.alternate;e!==null&&(t.alternate=null,vm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Wu(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;)Sm(t,e,n),n=n.sibling}function Sm(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,fp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),mi(t)):fp(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"&&dm(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 bm(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 Tm(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 iS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ym),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ym),e;default:throw Error(u(435,t.tag))}}function Vs(t,e){var n=iS(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=hS.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));Sm(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;)xm(e,t),e=e.sibling}var Qe=null;function xm(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=xp("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=xp("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 Ep(r,t.type,t.stateNode);else t.stateNode=Tp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Ep(r,t.type,t.stateNode):Tp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&bo(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&&bo(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,bo(t,r,n!==null?n.memoizedProps:r)),l&1024&&(Eo=!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(Fs=null,r=Qe,Qe=Js(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)}Eo&&(Eo=!1,Em(t));break;case 4:l=Qe,Qe=Js(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,Vs(t,l)));break;case 13:ve(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bs=ce()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 22:r=t.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,j=Sn,H=Ft;if(Sn=j||r,Ft=H||E,ve(e,t),Ft=H,Sn=j,Se(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||E||Sn||Ft||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){E=n=e;try{if(o=E.stateNode,r)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{S=E.stateNode;var G=E.memoizedProps.style,O=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(nt){Dt(E,E.return,nt)}}}else if(e.tag===6){if(n===null){E=e;try{E.stateNode.nodeValue=r?"":E.memoizedProps}catch(nt){Dt(E,E.return,nt)}}}else if(e.tag===18){if(n===null){E=e;try{var N=E.stateNode;r?dp(N,!0):dp(E.stateNode,!1)}catch(nt){Dt(E,E.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,Vs(t,n))));break;case 19:ve(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(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(mm(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=To(t);Os(t,o,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ua(h,""),n.flags&=-33);var S=To(t);Os(t,S,h);break;case 3:case 4:var E=n.stateNode.containerInfo,j=To(t);xo(t,j,E);break;default:throw Error(u(161))}}catch(H){Dt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Em(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Em(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;)gm(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"&&dm(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(j){Dt(l,l.return,j)}if(l=o,r=l.updateQueue,r!==null){var S=l.stateNode;try{var E=r.shared.hiddenCallbacks;if(E!==null)for(r.shared.hiddenCallbacks=null,r=0;r<E.length;r++)th(E[r],S)}catch(j){Dt(l,l.return,j)}}n&&h&64&&fm(o),ol(o,o.return);break;case 27:pm(o);case 26:case 5:xn(r,o,n),n&&l===null&&h&4&&hm(o),ol(o,o.return);break;case 12:xn(r,o,n);break;case 31:xn(r,o,n),n&&h&4&&bm(r,o);break;case 13:xn(r,o,n),n&&h&4&&Tm(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 Ao(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 Mo(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;)Am(t,e,n,l),e=e.sibling}function Am(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(E){Dt(e,e.return,E)}}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&&Ao(h,e);break;case 24:Ke(t,e,n,l),r&2048&&Mo(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,E=l,j=h.flags;switch(h.tag){case 0:case 11:case 15:ai(o,h,S,E,r),rl(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?ai(o,h,S,E,r):cl(o,h):(H._visibility|=2,ai(o,h,S,E,r)),r&&j&2048&&Ao(h.alternate,h);break;case 24:ai(o,h,S,E,r),r&&j&2048&&Mo(h.alternate,h);break;default:ai(o,h,S,E,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&&Ao(l.alternate,l);break;case 24:cl(n,l),r&2048&&Mo(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;)Mm(t,e,n),t=t.sibling}function Mm(t,e,n){switch(t.tag){case 26:ii(t,e,n),t.flags&fl&&t.memoizedState!==null&&kS(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:ii(t,e,n);break;case 3:case 4:var l=Qe;Qe=Js(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 Cm(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,Rm(l,t)}Cm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dm(t),t=t.sibling}function Dm(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,Ns(t)):dl(t);break;default:dl(t)}}function Ns(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,Rm(l,t)}Cm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ln(8,e,e.return),Ns(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ns(e));break;default:Ns(e)}t=t.sibling}}function Rm(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(vm(l),l===n){ee=null;break t}if(r!==null){r.return=o,ee=r;break t}ee=o}}}var lS={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}},sS=typeof WeakMap=="function"?WeakMap:Map,Mt=0,_t=null,yt=null,vt=0,Ct=0,De=null,Hn=!1,li=!1,Co=!1,En=0,Ht=0,qn=0,Ea=0,Do=0,Re=0,si=0,hl=null,be=null,Ro=!1,Bs=0,wm=0,Us=1/0,Ls=null,Yn=null,Wt=0,Gn=null,ui=null,An=0,wo=0,zo=null,zm=null,ml=0,_o=null;function we(){return(Mt&2)!==0&&vt!==0?vt&-vt:V.T!==null?Uo():Qf()}function _m(){if(Re===0)if((vt&536870912)===0||bt){var t=Ql;Ql<<=1,(Ql&3932160)===0&&(Ql=262144),Re=t}else Re=536870912;return t=Me.current,t!==null&&(t.flags|=32),Re}function Te(t,e,n){(t===_t&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(ri(t,0),Xn(t,vt,Re,!1)),Ni(t,n),((Mt&2)===0||t!==_t)&&(t===_t&&((Mt&2)===0&&(Ea|=n),Ht===4&&Xn(t,vt,Re,!1)),nn(t))}function jm(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?oS(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&&!uS(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 E=S.current.memoizedState.isDehydrated;if(E&&(ri(S,h).flags|=256),h=Oo(S,h,!1),h!==2){if(Co&&!E){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=Bs+300-ce(),10<r)){if(Xn(l,e,Re,!Hn),Jl(l,0,!0)!==0)break t;An=e,l.timeoutHandle=op(Om.bind(null,l,n,be,Ls,Ro,e,Re,Ea,si,Hn,o,"Throttled",-0,0),r);break t}Om(l,n,be,Ls,Ro,e,Re,Ea,si,Hn,o,null,-0,0)}}break}while(!0);nn(t)}function Om(t,e,n,l,r,o,h,S,E,j,H,G,O,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},Mm(e,o,G);var nt=(o&62914560)===o?Bs-ce():(o&4194048)===o?wm-ce():0;if(nt=ZS(G,nt),nt!==null){An=o,t.cancelPendingCommit=nt(Ym.bind(null,t,e,o,n,l,r,h,S,E,H,G,null,O,N)),Xn(t,o,h,!j);return}}Ym(t,e,o,n,l,r,h,S,E)}function uS(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&=~Do,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&&Xf(t,n,e)}function Hs(){return(Mt&6)===0?(pl(0),!1):!0}function jo(){if(yt!==null){if(Ct===0)var t=yt.return;else t=yt,hn=ma=null,Kr(t),Wa=null,$i=0,t=yt;for(;t!==null;)cm(t.alternate,t),t=t.return;yt=null}}function ri(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,DS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),An=0,jo(),_t=t,yt=n=fn(t.current,null),vt=e,Ct=0,De=null,Hn=!1,li=Vi(t,e),Co=!1,si=Re=Do=Ea=qn=Ht=0,be=hl=null,Ro=!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,ss(),n}function Vm(t,e){dt=null,V.H=ll,e===$a||e===ms?(e=Fd(),Ct=3):e===Nr?(e=Fd(),Ct=4):Ct=e===oo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,yt===null&&(Ht=1,Rs(t,Ve(e,t.current)))}function Nm(){var t=Me.current;return t===null?!0:(vt&4194048)===vt?Le===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Le:!1}function Bm(){var t=V.H;return V.H=ll,t===null?ll:t}function Um(){var t=V.A;return V.A=lS,t}function qs(){Ht=4,Hn||(vt&4194048)!==vt&&Me.current!==null||(li=!0),(qn&134217727)===0&&(Ea&134217727)===0||_t===null||Xn(_t,vt,Re,!1)}function Oo(t,e,n){var l=Mt;Mt|=2;var r=Bm(),o=Um();(_t!==t||vt!==e)&&(Ls=null,ri(t,e)),e=!1;var h=Ht;t:do try{if(Ct!==0&&yt!==null){var S=yt,E=De;switch(Ct){case 8:jo(),h=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var j=Ct;if(Ct=0,De=null,oi(t,S,E,j),n&&li){h=0;break t}break;default:j=Ct,Ct=0,De=null,oi(t,S,E,j)}}rS(),h=Ht;break}catch(H){Vm(t,H)}while(!0);return e&&t.shellSuspendCounter++,hn=ma=null,Mt=l,V.H=r,V.A=o,yt===null&&(_t=null,vt=0,ss()),h}function rS(){for(;yt!==null;)Lm(yt)}function oS(t,e){var n=Mt;Mt|=2;var l=Bm(),r=Um();_t!==t||vt!==e?(Ls=null,Us=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(Jd(o)){Ct=0,De=null,Hm(e);break}e=function(){Ct!==2&&Ct!==9||_t!==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:Jd(o)?(Ct=0,De=null,Hm(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?Ap(h):S.stateNode.complete){Ct=0,De=null;var E=S.sibling;if(E!==null)yt=E;else{var j=S.return;j!==null?(yt=j,Ys(j)):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:jo(),Ht=6;break t;default:throw Error(u(462))}}cS();break}catch(H){Vm(t,H)}while(!0);return hn=ma=null,V.H=l,V.A=r,Mt=n,yt!==null?0:(_t=null,vt=0,ss(),Ht)}function cS(){for(;yt!==null&&!Zu();)Lm(yt)}function Lm(t){var e=rm(t.alternate,t,En);t.memoizedProps=t.pendingProps,e===null?Ys(t):yt=e}function Hm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=nm(n,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=nm(n,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Kr(e);default:cm(n,e),e=yt=Ud(e,En),e=rm(n,e,En)}t.memoizedProps=t.pendingProps,e===null?Ys(t):yt=e}function oi(t,e,n,l){hn=ma=null,Kr(e),Wa=null,$i=0;var r=e.return;try{if(W1(t,r,e,n,vt)){Ht=1,Rs(t,Ve(n,t.current)),yt=null;return}}catch(o){if(r!==null)throw yt=r,o;Ht=1,Rs(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))),qm(e,t)):Ys(e)}function Ys(t){var e=t;do{if((e.flags&32768)!==0){qm(e,Hn);return}t=e.return;var n=eS(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 qm(t,e){do{var n=nS(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 Ym(t,e,n,l,r,o,h,S,E){t.cancelPendingCommit=null;do Gs();while(Wt!==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|=br,Xv(t,n,o,h,S,E),t===_t&&(yt=_t=null,vt=0),ui=e,Gn=t,An=n,wo=o,zo=r,zm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mS(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{aS(t,e,n)}finally{Mt=h,F.p=r,V.T=l}}Wt=1,Gm(),Xm(),km()}}function Gm(){if(Wt===1){Wt=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{xm(e,t);var o=Zo,h=Rd(t.containerInfo),S=o.focusedElem,E=o.selectionRange;if(h!==S&&S&&S.ownerDocument&&Dd(S.ownerDocument.documentElement,S)){if(E!==null&&pr(S)){var j=E.start,H=E.end;if(H===void 0&&(H=j),"selectionStart"in S)S.selectionStart=j,S.selectionEnd=Math.min(H,S.value.length);else{var G=S.ownerDocument||document,O=G&&G.defaultView||window;if(O.getSelection){var N=O.getSelection(),nt=S.textContent.length,st=Math.min(E.start,nt),zt=E.end===void 0?st:Math.min(E.end,nt);!N.extend&&st>zt&&(h=zt,zt=st,st=h);var R=Cd(S,st),D=Cd(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 q=G[S];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}tu=!!ko,Zo=ko=null}finally{Mt=r,F.p=l,V.T=n}}t.current=e,Wt=2}}function Xm(){if(Wt===2){Wt=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{gm(t,e.alternate,e)}finally{Mt=r,F.p=l,V.T=n}}Wt=3}}function km(){if(Wt===4||Wt===3){Wt=0,Xl();var t=Gn,e=ui,n=An,l=zm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,ui=Gn=null,Zm(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Yn=null),Fu(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&&Gs(),nn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===_o?ml++:(ml=0,_o=t):ml=0,pl(0)}}function Zm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Pi(e)))}function Gs(){return Gm(),Xm(),km(),Qm()}function Qm(){if(Wt!==5)return!1;var t=Gn,e=wo;wo=0;var n=Fu(An),l=V.T,r=F.p;try{F.p=32>n?32:n,V.T=null,n=zo,zo=null;var o=Gn,h=An;if(Wt=0,ui=Gn=null,An=0,(Mt&6)!==0)throw Error(u(331));var S=Mt;if(Mt|=4,Dm(o.current),Am(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,Zm(t,e)}}function Km(t,e,n){e=Ve(n,e),e=ro(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)Km(t,t,n);else for(;e!==null;){if(e.tag===3){Km(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Yn===null||!Yn.has(l))){t=Ve(n,t),n=Jh(2),l=Nn(e,n,2),l!==null&&(Ph(n,l,e,t),Ni(l,2),nn(l));break}}e=e.return}}function Vo(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new sS;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)||(Co=!0,r.add(n),t=fS.bind(null,t,e,n),e.then(t,t))}function fS(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,_t===t&&(vt&n)===n&&(Ht===4||Ht===3&&(vt&62914560)===vt&&300>ce()-Bs?(Mt&2)===0&&ri(t,0):Do|=n,si===vt&&(si=0)),nn(t)}function Jm(t,e){e===0&&(e=Gf()),t=fa(t,e),t!==null&&(Ni(t,e),nn(t))}function dS(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Jm(t,n)}function hS(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),Jm(t,n)}function mS(t,e){return zi(t,e)}var Xs=null,ci=null,No=!1,ks=!1,Bo=!1,kn=0;function nn(t){t!==ci&&t.next===null&&(ci===null?Xs=ci=t:ci=ci.next=t),ks=!0,No||(No=!0,yS())}function pl(t,e){if(!Bo&&ks){Bo=!0;do for(var n=!1,l=Xs;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,Wm(l,o))}else o=vt,o=Jl(l,l===_t?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Vi(l,o)||(n=!0,Wm(l,o));l=l.next}while(n);Bo=!1}}function pS(){Pm()}function Pm(){ks=No=!1;var t=0;kn!==0&&CS()&&(t=kn);for(var e=ce(),n=null,l=Xs;l!==null;){var r=l.next,o=Fm(l,e);o===0?(l.next=null,n===null?Xs=r:n.next=r,r===null&&(ci=n)):(n=l,(t!==0||(o&3)!==0)&&(ks=!0)),l=r}Wt!==0&&Wt!==5||pl(t),kn!==0&&(kn=0)}function Fm(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,E=r[h];E===-1?((S&n)===0||(S&l)!==0)&&(r[h]=Gv(S,e)):E<=e&&(t.expiredLanes|=S),o&=~S}if(e=_t,n=vt,n=Jl(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),Fu(n)){case 2:case 8:n=ji;break;case 32:n=za;break;case 268435456:n=Oi;break;default:n=za}return l=$m.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 $m(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Gs()&&t.callbackNode!==n)return null;var l=vt;return l=Jl(t,t===_t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(jm(t,l,e),Fm(t,ce()),t.callbackNode!=null&&t.callbackNode===n?$m.bind(null,t):null)}function Wm(t,e){if(Gs())return null;jm(t,e,!0)}function yS(){RS(function(){(Mt&6)!==0?zi(_i,pS):Pm()})}function Uo(){if(kn===0){var t=Pa;t===0&&(t=Zl,Zl<<=1,(Zl&261888)===0&&(Zl=256)),kn=t}return kn}function Im(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Wl(""+t)}function tp(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 gS(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=Im((r[pe]||null).action),h=l.submitter;h&&(e=(e=h[pe]||null)?Im(e.formAction):h.getAttribute("formAction"),e!==null&&(o=e,h=null));var S=new ns("action","action",null,l,r);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(kn!==0){var E=h?tp(r,h):new FormData(r);no(n,{pending:!0,data:E,method:r.method,action:o},null,E)}}else typeof o=="function"&&(S.preventDefault(),E=h?tp(r,h):new FormData(r),no(n,{pending:!0,data:E,method:r.method,action:o},o,E))},currentTarget:r}]})}}for(var Lo=0;Lo<Sr.length;Lo++){var Ho=Sr[Lo],vS=Ho.toLowerCase(),SS=Ho[0].toUpperCase()+Ho.slice(1);Ze(vS,"on"+SS)}Ze(_d,"onAnimationEnd"),Ze(jd,"onAnimationIteration"),Ze(Od,"onAnimationStart"),Ze("dblclick","onDoubleClick"),Ze("focusin","onFocus"),Ze("focusout","onBlur"),Ze(N1,"onTransitionRun"),Ze(B1,"onTransitionStart"),Ze(U1,"onTransitionCancel"),Ze(Vd,"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(" "),bS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function ep(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],E=S.instance,j=S.currentTarget;if(S=S.listener,E!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=j;try{o(r)}catch(H){ls(H)}r.currentTarget=null,o=E}else for(h=0;h<l.length;h++){if(S=l[h],E=S.instance,j=S.currentTarget,S=S.listener,E!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=j;try{o(r)}catch(H){ls(H)}r.currentTarget=null,o=E}}}}function gt(t,e){var n=e[$u];n===void 0&&(n=e[$u]=new Set);var l=t+"__bubble";n.has(l)||(np(e,t,2,!1),n.add(l))}function qo(t,e,n){var l=0;e&&(l|=4),np(n,t,l,e)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function Yo(t){if(!t[Zs]){t[Zs]=!0,Pf.forEach(function(n){n!=="selectionchange"&&(bS.has(n)||qo(n,!1,t),qo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zs]||(e[Zs]=!0,qo("selectionchange",!1,e))}}function np(t,e,n,l){switch(_p(e)){case 2:var r=JS;break;case 8:r=PS;break;default:r=nc}n=r.bind(null,e,n,t),r=void 0,!sr||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 Go(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 E=h.tag;if((E===3||E===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;S!==null;){if(h=ja(S),h===null)return;if(E=h.tag,E===5||E===6||E===26||E===27){l=o=h;continue t}S=S.parentNode}}l=l.return}ud(function(){var j=o,H=ir(n),G=[];t:{var O=Nd.get(t);if(O!==void 0){var N=ns,nt=t;switch(t){case"keypress":if(ts(n)===0)break t;case"keydown":case"keyup":N=h1;break;case"focusin":nt="focus",N=cr;break;case"focusout":nt="blur",N=cr;break;case"beforeblur":case"afterblur":N=cr;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=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=e1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=y1;break;case _d:case jd:case Od:N=i1;break;case Vd:N=v1;break;case"scroll":case"scrollend":N=Iv;break;case"wheel":N=b1;break;case"copy":case"cut":case"paste":N=s1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=dd;break;case"toggle":case"beforetoggle":N=x1}var st=(e&4)!==0,zt=!st&&(t==="scroll"||t==="scrollend"),R=st?O!==null?O+"Capture":null:O;st=[];for(var D=j,z;D!==null;){var q=D;if(z=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||z===null||R===null||(q=Li(D,R),q!=null&&st.push(gl(D,q,z))),zt)break;D=D.return}0<st.length&&(O=new N(O,nt,null,n,H),G.push({event:O,listeners:st}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",O&&n!==ar&&(nt=n.relatedTarget||n.fromElement)&&(ja(nt)||nt[_a]))break t;if((N||O)&&(O=H.window===H?H:(O=H.ownerDocument)?O.defaultView||O.parentWindow:window,N?(nt=n.relatedTarget||n.toElement,N=j,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=j),N!==nt)){if(st=cd,q="onMouseLeave",R="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(st=dd,q="onPointerLeave",R="onPointerEnter",D="pointer"),zt=N==null?O:Ui(N),z=nt==null?O:Ui(nt),O=new st(q,D+"leave",N,n,H),O.target=zt,O.relatedTarget=z,q=null,ja(H)===j&&(st=new st(R,D+"enter",nt,n,H),st.target=z,st.relatedTarget=zt,q=st),zt=q,N&&nt)e:{for(st=TS,R=N,D=nt,z=0,q=R;q;q=st(q))z++;q=0;for(var lt=D;lt;lt=st(lt))q++;for(;0<z-q;)R=st(R),z--;for(;0<q-z;)D=st(D),q--;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&&ap(G,O,N,st,!1),nt!==null&&zt!==null&&ap(G,zt,nt,st,!0)}}t:{if(O=j?Ui(j):window,N=O.nodeName&&O.nodeName.toLowerCase(),N==="select"||N==="input"&&O.type==="file")var Et=bd;else if(vd(O))if(Td)Et=j1;else{Et=z1;var it=w1}else N=O.nodeName,!N||N.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?j&&nr(j.elementType)&&(Et=bd):Et=_1;if(Et&&(Et=Et(t,j))){Sd(G,Et,n,H);break t}it&&it(t,O,j),t==="focusout"&&j&&O.type==="number"&&j.memoizedProps.value!=null&&er(O,"number",O.value)}switch(it=j?Ui(j):window,t){case"focusin":(vd(it)||it.contentEditable==="true")&&(Ya=it,yr=j,Qi=null);break;case"focusout":Qi=yr=Ya=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,wd(G,n,H);break;case"selectionchange":if(V1)break;case"keydown":case"keyup":wd(G,n,H)}var mt;if(dr)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 qa?yd(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(hd&&n.locale!=="ko"&&(qa||St!=="onCompositionStart"?St==="onCompositionEnd"&&qa&&(mt=rd()):(Rn=H,ur="value"in Rn?Rn.value:Rn.textContent,qa=!0)),it=Qs(j,St),0<it.length&&(St=new fd(St,t,null,n,H),G.push({event:St,listeners:it}),mt?St.data=mt:(mt=gd(n),mt!==null&&(St.data=mt)))),(mt=A1?M1(t,n):C1(t,n))&&(St=Qs(j,"onBeforeInput"),0<St.length&&(it=new fd("onBeforeInput","beforeinput",null,n,H),G.push({event:it,listeners:St}),it.data=mt)),gS(G,t,j,n,H)}ep(G,e)})}function gl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Qs(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 TS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ap(t,e,n,l,r){for(var o=e._reactName,h=[];n!==null&&n!==l;){var S=n,E=S.alternate,j=S.stateNode;if(S=S.tag,E!==null&&E===l)break;S!==5&&S!==26&&S!==27||j===null||(E=j,r?(j=Li(n,o),j!=null&&h.unshift(gl(n,j,E))):r||(j=Li(n,o),j!=null&&h.push(gl(n,j,E)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var xS=/\r\n?/g,ES=/\u0000|\uFFFD/g;function ip(t){return(typeof t=="string"?t:""+t).replace(xS,`
49
- `).replace(ES,"")}function lp(t,e){return e=ip(e),ip(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":Fl(t,"class",l);break;case"tabIndex":Fl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fl(t,n,l);break;case"style":ld(t,l,o);break;case"data":if(e!=="object"){Fl(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),Pl(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":Pl(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=$v.get(n)||n,Pl(t,n,l))}}function Xo(t,e,n,l,r,o){switch(n){case"style":ld(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(!Ff.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,""):Pl(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,E=null,j=null;for(l in n)if(n.hasOwnProperty(l)){var H=n[l];if(H!=null)switch(l){case"name":r=H;break;case"type":h=H;break;case"checked":E=H;break;case"defaultChecked":j=H;break;case"value":o=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,e));break;default:wt(t,e,l,H,n,null)}}ed(t,o,S,E,j,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)}ad(t,l,r,o);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:wt(t,e,E,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(j in n)if(n.hasOwnProperty(j)&&(l=n[j],l!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:wt(t,e,j,l,n,null)}return;default:if(nr(e)){for(H in n)n.hasOwnProperty(H)&&(l=n[H],l!==void 0&&Xo(t,e,H,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 AS(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,E=null,j=null,H=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":E=G;default:l.hasOwnProperty(N)||wt(t,e,N,null,l,G)}}for(var O in l){var N=l[O];if(G=n[O],l.hasOwnProperty(O)&&(N!=null||G!=null))switch(O){case"type":o=N;break;case"name":r=N;break;case"checked":j=N;break;case"defaultChecked":H=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,O,N,l,G)}}tr(t,h,S,E,j,H,o,r);return;case"select":N=h=S=O=null;for(o in n)if(E=n[o],n.hasOwnProperty(o)&&E!=null)switch(o){case"value":break;case"multiple":N=E;default:l.hasOwnProperty(o)||wt(t,e,o,null,l,E)}for(r in l)if(o=l[r],E=n[r],l.hasOwnProperty(r)&&(o!=null||E!=null))switch(r){case"value":O=o;break;case"defaultValue":S=o;break;case"multiple":h=o;default:o!==E&&wt(t,e,r,o,l,E)}e=S,n=h,l=N,O!=null?Ba(t,!!n,O,!1):!!l!=!!n&&(e!=null?Ba(t,!!n,e,!0):Ba(t,!!n,n?[]:"",!1));return;case"textarea":N=O=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":O=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)}nd(t,O,N);return;case"option":for(var nt in n)if(O=n[nt],n.hasOwnProperty(nt)&&O!=null&&!l.hasOwnProperty(nt))switch(nt){case"selected":t.selected=!1;break;default:wt(t,e,nt,null,l,O)}for(E in l)if(O=l[E],N=n[E],l.hasOwnProperty(E)&&O!==N&&(O!=null||N!=null))switch(E){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:wt(t,e,E,O,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)O=n[st],n.hasOwnProperty(st)&&O!=null&&!l.hasOwnProperty(st)&&wt(t,e,st,null,l,O);for(j in l)if(O=l[j],N=n[j],l.hasOwnProperty(j)&&O!==N&&(O!=null||N!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:wt(t,e,j,O,l,N)}return;default:if(nr(e)){for(var zt in n)O=n[zt],n.hasOwnProperty(zt)&&O!==void 0&&!l.hasOwnProperty(zt)&&Xo(t,e,zt,void 0,l,O);for(H in l)O=l[H],N=n[H],!l.hasOwnProperty(H)||O===N||O===void 0&&N===void 0||Xo(t,e,H,O,l,N);return}}for(var R in n)O=n[R],n.hasOwnProperty(R)&&O!=null&&!l.hasOwnProperty(R)&&wt(t,e,R,null,l,O);for(G in l)O=l[G],N=n[G],!l.hasOwnProperty(G)||O===N||O==null&&N==null||wt(t,e,G,O,l,N)}function sp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MS(){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&&sp(h)){for(h=0,S=r.responseEnd,l+=1;l<n.length;l++){var E=n[l],j=E.startTime;if(j>S)break;var H=E.transferSize,G=E.initiatorType;H&&sp(G)&&(E=E.responseEnd,h+=H*(E<S?1:(S-j)/(E-j)))}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 ko=null,Zo=null;function Ks(t){return t.nodeType===9?t:t.ownerDocument}function up(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 rp(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 Qo(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 Ko=null;function CS(){var t=window.event;return t&&t.type==="popstate"?t===Ko?!1:(Ko=t,!0):(Ko=null,!1)}var op=typeof setTimeout=="function"?setTimeout:void 0,DS=typeof clearTimeout=="function"?clearTimeout:void 0,cp=typeof Promise=="function"?Promise:void 0,RS=typeof queueMicrotask=="function"?queueMicrotask:typeof cp<"u"?function(t){return cp.resolve(null).then(t).catch(wS)}:op;function wS(t){setTimeout(function(){throw t})}function Zn(t){return t==="head"}function fp(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 dp(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 Jo(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":Jo(n),Wu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function zS(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 _S(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 hp(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 Po(t){return t.data==="$?"||t.data==="$~"}function Fo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jS(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 $o=null;function mp(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 pp(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 yp(t,e,n){switch(e=Ks(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]);Wu(t)}var qe=new Map,gp=new Set;function Js(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=F.d;F.d={f:OS,r:VS,D:NS,C:BS,L:US,m:LS,X:qS,S:HS,M:YS};function OS(){var t=Mn.f(),e=Hs();return t||e}function VS(t){var e=Oa(t);e!==null&&e.tag===5&&e.type==="form"?Vh(e):Mn.r(t)}var fi=typeof document>"u"?null:document;function vp(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+'"]'),gp.has(r)||(gp.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 NS(t){Mn.D(t),vp("dns-prefetch",t,null)}function BS(t,e){Mn.C(t,e),vp("preconnect",t,e)}function US(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)}qe.has(o)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),qe.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 LS(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(!qe.has(o)&&(t=v({rel:"modulepreload",href:t},e),qe.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 HS(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=qe.get(o))&&Wo(t,n);var E=h=l.createElement("link");te(E),ue(E,"link",t),E._p=new Promise(function(j,H){E.onload=j,E.onerror=H}),E.addEventListener("load",function(){S.loading|=1}),E.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ps(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},r.set(o,h)}}}function qS(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=qe.get(r))&&Io(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 YS(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=qe.get(r))&&Io(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 Sp(t,e,n,l){var r=(r=ht.current)?Js(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),qe.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},qe.set(t,n),o||GS(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 bp(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function GS(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 Tp(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),Ps(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=bp(n),(r=qe.get(r))&&Wo(l,r),o=(t.ownerDocument||t).createElement("link"),te(o);var h=o;return h._p=new Promise(function(S,E){h.onload=S,h.onerror=E}),ue(o,"link",l),e.state.loading|=4,Ps(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=qe.get(o))&&(l=v({},n),Io(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,Ps(l,n.precedence,t));return e.instance}function Ps(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 Wo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Io(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Fs=null;function xp(t,e,n){if(Fs===null){var l=new Map,r=Fs=new Map;r.set(n,l)}else r=Fs,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 Ep(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function XS(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 Ap(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function kS(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=$s.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,te(o);return}o=e.ownerDocument||e,l=bp(l),(r=qe.get(r))&&Wo(l,r),o=o.createElement("link"),te(o);var h=o;h._p=new Promise(function(S,E){h.onload=S,h.onerror=E}),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=$s.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var tc=0;function ZS(t,e){return t.stylesheets&&t.count===0&&Is(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Is(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&tc===0&&(tc=62500*MS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Is(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>tc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function $s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Is(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ws=null;function Is(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ws=new Map,e.forEach(QS,t),Ws=null,$s.call(t))}function QS(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=$s.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:L,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function KS(t,e,n,l,r,o,h,S,E){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=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Mp(t,e,n,l,r,o,h,S,E,j,H,G){return t=new KS(t,e,n,h,E,j,H,G,S),e=1,o===!0&&(e|=24),o=Ae(3,null,null,e),t.current=o,o.stateNode=t,e=jr(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},Br(o),t}function Cp(t){return t?(t=ka,t):ka}function Dp(t,e,n,l,r,o){r=Cp(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 Rp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function ec(t,e){Rp(t,e),(t=t.alternate)&&Rp(t,e)}function wp(t){if(t.tag===13||t.tag===31){var e=fa(t,67108864);e!==null&&Te(e,t,67108864),ec(t,67108864)}}function zp(t){if(t.tag===13||t.tag===31){var e=we();e=Pu(e);var n=fa(t,e);n!==null&&Te(n,t,e),ec(t,e)}}var tu=!0;function JS(t,e,n,l){var r=V.T;V.T=null;var o=F.p;try{F.p=2,nc(t,e,n,l)}finally{F.p=o,V.T=r}}function PS(t,e,n,l){var r=V.T;V.T=null;var o=F.p;try{F.p=8,nc(t,e,n,l)}finally{F.p=o,V.T=r}}function nc(t,e,n,l){if(tu){var r=ac(l);if(r===null)Go(t,e,l,eu,n),jp(t,l);else if($S(r,t,e,n,l))l.stopPropagation();else if(jp(t,l),e&4&&-1<FS.indexOf(t)){for(;r!==null;){var o=Oa(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 E=1<<31-xe(h);S.entanglements[1]|=E,h&=~E}nn(o),(Mt&6)===0&&(Us=ce()+500,pl(0))}}break;case 31:case 13:S=fa(o,2),S!==null&&Te(S,o,2),Hs(),ec(o,2)}if(o=ac(l),o===null&&Go(t,e,l,eu,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else Go(t,e,l,null,n)}}function ac(t){return t=ir(t),ic(t)}var eu=null;function ic(t){if(eu=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 eu=t,null}function _p(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(kl()){case _i:return 2;case ji:return 8;case za:case Qu:return 32;case Oi:return 268435456;default:return 32}default:return 32}}var lc=!1,Qn=null,Kn=null,Jn=null,xl=new Map,El=new Map,Pn=[],FS="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 jp(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=Oa(e),e!==null&&wp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function $S(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 Op(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,Kf(t.priority,function(){zp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Kf(t.priority,function(){zp(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 nu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ac(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);ar=l,n.target.dispatchEvent(l),ar=null}else return e=Oa(n),e!==null&&wp(e),t.blockedOn=n,!1;e.shift()}return!0}function Vp(t,e,n){nu(t)&&n.delete(e)}function WS(){lc=!1,Qn!==null&&nu(Qn)&&(Qn=null),Kn!==null&&nu(Kn)&&(Kn=null),Jn!==null&&nu(Jn)&&(Jn=null),xl.forEach(Vp),El.forEach(Vp)}function au(t,e){t.blockedOn===e&&(t.blockedOn=null,lc||(lc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,WS)))}var iu=null;function Np(t){iu!==t&&(iu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){iu===t&&(iu=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(ic(l||n)===null)continue;break}var o=Oa(n);o!==null&&(t.splice(e,3),e-=3,no(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function mi(t){function e(E){return au(E,t)}Qn!==null&&au(Qn,t),Kn!==null&&au(Kn,t),Jn!==null&&au(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);)Op(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||Np(n);else if(h){var S=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[pe]||null)S=h.formAction;else if(ic(r)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),Np(n)}}}function Bp(){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 sc(t){this._internalRoot=t}lu.prototype.render=sc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=we();Dp(n,l,t,e,null,null)},lu.prototype.unmount=sc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Dp(t.current,2,null,t,null,null),Hs(),e[_a]=null}};function lu(t){this._internalRoot=t}lu.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&&Op(t)}};var Up=i.version;if(Up!=="19.2.5")throw Error(u(527,Up,"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 IS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{Zt=su.inject(IS),Qt=su}catch{}}return Cl.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=kh,o=Zh,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=Mp(t,1,!1,null,null,n,l,null,r,o,h,Bp),t[_a]=e.current,Yo(t),new sc(e)},Cl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=kh,h=Zh,S=Qh,E=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&&(E=n.formState)),e=Mp(t,1,!0,e,n??null,l,r,E,o,h,S,Bp),e.context=Cp(null),n=e.current,l=we(),l=Pu(l),r=Vn(l),r.callback=null,Nn(n,r,l),n=l,e.current.lanes=n,Ni(e,n),nn(e),t[_a]=e.current,Yo(t),new lu(e)},Cl.version="19.2.5",Cl}var Kp;function rb(){if(Kp)return oc.exports;Kp=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(),oc.exports=ub(),oc.exports}var xg=rb();const wl={scale:1,x:0,y:0};function Eg(a){return 1-(1-Math.min(1,Math.max(0,a)))**5}function Jp(a,i,s){if(s>=1)return{...i};const u=Eg(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 hc(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 ob=3e3;function Ag(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(ob,c);return{stepStartTimesMs:s,totalDurationMs:d}}function Nc(a,i,s){for(let u=i.length-1;u>=0;u--)if(a>=i[u])return Math.min(u,s);return 0}const cb=3e3;function Mg(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:cb}const Pp=/^[a-z0-9]+(-[a-z0-9]+)*$/;function fb(a,i){var c;const s=[],u=new Map;for(let d=0;d<a.length;d++){const f=(c=a[d])==null?void 0:c.shot;if(f===void 0)continue;if(!Pp.test(f))throw new Error(`step ${d} declares shot "${f}", which is not kebab-case (expected ${Pp}); it becomes a filename and a URL segment`);const m=u.get(f);if(m!==void 0)throw new Error(`steps ${m} and ${d} both declare shot "${f}"; shot names must be unique within a scenario`);u.set(f,d);const y=i.stepStartTimesMs[d+1];s.push({name:f,timeMs:(y??i.totalDurationMs)-1,stepIndex:d})}return s}const ne=450,Cg=50,Dg=1500,Mu=200,mc=600;function Rg(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 wg(a){const i=Rg(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 db(a){const i=Rg(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 hb="data-cursor-target",mb="data-scroll-target";function Si(a){return`[${hb}="${a}"]`}function pb(a){return`[${mb}="${a}"]`}const zg="scenar-embed",_g=1;function yb(a){return{source:zg,v:_g,...a}}function gb(a){if(typeof a!="object"||a===null)return!1;const i=a;return i.source===zg&&i.v===_g}function Fp(a){return typeof a=="number"&&Number.isFinite(a)}function vb(a){if(!gb(a))return null;const i=a.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return Fp(a.timeMs)?{type:i,timeMs:a.timeMs}:null;case"setMuted":return typeof a.muted=="boolean"?{type:i,muted:a.muted}:null;case"setVolume":return Fp(a.volume)?{type:i,volume:a.volume}:null;default:return null}}const jg=T.createContext(null);function Sb({currentTimeMs:a,stepStartTimesMs:i,children:s}){return A.jsx(jg.Provider,{value:{currentTimeMs:a,stepStartTimesMs:i},children:s})}function Uu(){return T.useContext(jg)}const bb={isVideoExport:!1,hideControls:!1,initialMuted:!0},Og=T.createContext(bb);function Tb({children:a}){return A.jsx(Og.Provider,{value:{isVideoExport:!0,hideControls:!0,initialMuted:!1},children:a})}function Lu(){return T.useContext(Og)}var uu=Tg();const cf=T.createContext({});function ff(a){const i=T.useRef(null);return i.current===null&&(i.current=a()),i.current}const xb=typeof window<"u",Vg=xb?T.useLayoutEffect:T.useEffect,Hu=T.createContext(null);function df(a,i){a.indexOf(i)===-1&&a.push(i)}function Cu(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 hf=()=>{};const ta={},Ng=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Bg(a){return typeof a=="object"&&a!==null}const Ug=a=>/^0[^.\s]+$/u.test(a);function Lg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ge=a=>a,Eb=(a,i)=>s=>i(a(s)),Ll=(...a)=>a.reduce(Eb),Vl=(a,i,s)=>{const u=i-a;return u===0?1:(s-a)/u};class mf{constructor(){this.subscriptions=[]}add(i){return df(this.subscriptions,i),()=>Cu(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,Ye=a=>a/1e3;function Hg(a,i){return i?a*(1e3/i):0}const qg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,Ab=1e-7,Mb=12;function Cb(a,i,s,u,c){let d,f,m=0;do f=i+(s-i)/2,d=qg(f,u,c)-a,d>0?s=f:i=f;while(Math.abs(d)>Ab&&++m<Mb);return f}function Hl(a,i,s,u){if(a===i&&s===u)return Ge;const c=d=>Cb(d,0,1,a,s);return d=>d===0||d===1?d:qg(c(d),i,u)}const Yg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Gg=a=>i=>1-a(1-i),Xg=Hl(.33,1.53,.69,.99),pf=Gg(Xg),kg=Yg(pf),Zg=a=>a>=1?1:(a*=2)<1?.5*pf(a):.5*(2-Math.pow(2,-10*(a-1))),yf=a=>1-Math.sin(Math.acos(a)),Qg=Gg(yf),Kg=Yg(yf),Db=Hl(.42,0,1,1),Rb=Hl(0,0,.58,1),Jg=Hl(.42,0,.58,1),wb=a=>Array.isArray(a)&&typeof a[0]!="number",Pg=a=>Array.isArray(a)&&typeof a[0]=="number",zb={linear:Ge,easeIn:Db,easeInOut:Jg,easeOut:Rb,circIn:yf,circInOut:Kg,circOut:Qg,backIn:pf,backInOut:kg,backOut:Xg,anticipate:Zg},_b=a=>typeof a=="string",$p=a=>{if(Pg(a)){hf(a.length===4);const[i,s,u,c]=a;return Hl(i,s,u,c)}else if(_b(a))return zb[a];return a},ru=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jb(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 M=b&&c?s:u;return v&&f.add(g),M.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 Ob=40;function Fg(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=ru.reduce((L,J)=>(L[J]=jb(d),L),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:g,update:v,preRender:b,render:x,postRender:M}=f,w=()=>{const L=ta.useManualTiming,J=L?c.timestamp:performance.now();s=!1,L||(c.delta=u?1e3/60:Math.max(Math.min(J-c.timestamp,Ob),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),M.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(w))},_=()=>{s=!0,u=!0,c.isProcessing||a(w)};return{schedule:ru.reduce((L,J)=>{const $=f[J];return L[J]=(P,X=!1,Z=!1)=>(s||_(),$.schedule(P,X,Z)),L},{}),cancel:L=>{for(let J=0;J<ru.length;J++)f[ru[J]].cancel(L)},state:c,steps:f}}const{schedule:jt,cancel:ea,state:re,steps:pc}=Fg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let yu;function Vb(){yu=void 0}const he={now:()=>(yu===void 0&&he.set(re.isProcessing||ta.useManualTiming?re.timestamp:performance.now()),yu),set:a=>{yu=a,queueMicrotask(Vb)}},$g=a=>i=>typeof i=="string"&&i.startsWith(a),Wg=$g("--"),Nb=$g("var(--"),gf=a=>Nb(a)?Bb.test(a.split("/*")[0].trim()):!1,Bb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Wp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Ei={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Nl={...Ei,transform:a=>un(0,1,a)},ou={...Ei,default:1},zl=a=>Math.round(a*1e5)/1e5,vf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ub(a){return a==null}const Lb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sf=(a,i)=>s=>!!(typeof s=="string"&&Lb.test(s)&&s.startsWith(a)||i&&!Ub(s)&&Object.prototype.hasOwnProperty.call(s,i)),Ig=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,d,f,m]=u.match(vf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},Hb=a=>un(0,255,a),yc={...Ei,transform:a=>Math.round(Hb(a))},Ca={test:Sf("rgb","red"),parse:Ig("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+yc.transform(a)+", "+yc.transform(i)+", "+yc.transform(s)+", "+zl(Nl.transform(u))+")"};function qb(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 Bc={test:Sf("#"),parse:qb,transform:Ca.transform},ql=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),$n=ql("deg"),sn=ql("%"),at=ql("px"),Yb=ql("vh"),Gb=ql("vw"),Ip={...sn,parse:a=>sn.parse(a)/100,transform:a=>sn.transform(a*100)},yi={test:Sf("hsl","hue"),parse:Ig("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+sn.transform(zl(i))+", "+sn.transform(zl(s))+", "+zl(Nl.transform(u))+")"},$t={test:a=>Ca.test(a)||Bc.test(a)||yi.test(a),parse:a=>Ca.test(a)?Ca.parse(a):yi.test(a)?yi.parse(a):Bc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ca.transform(a):yi.transform(a),getAnimatableNone:a=>{const i=$t.parse(a);return i.alpha=0,$t.transform(i)}},Xb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kb(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(vf))==null?void 0:i.length)||0)+(((s=a.match(Xb))==null?void 0:s.length)||0)>0}const t0="number",e0="color",Zb="var",Qb="var(",ty="${}",Kb=/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(Kb,y=>($t.test(y)?(u.color.push(d),c.push(e0),s.push($t.parse(y))):y.startsWith(Qb)?(u.var.push(d),c.push(Zb),s.push(y)):(u.number.push(d),c.push(t0),s.push(parseFloat(y))),++d,ty)).split(ty);return{values:s,split:m,indexes:u,types:c}}function Jb(a){return bi(a).values}function n0({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===t0?c+=zl(u[d]):f===e0?c+=$t.transform(u[d]):c+=u[d]}return c}}function Pb(a){return n0(bi(a))}const Fb=a=>typeof a=="number"?0:$t.test(a)?$t.getAnimatableNone(a):a,$b=(a,i)=>typeof a=="number"?i!=null&&i.trim().endsWith("/")?a:0:Fb(a);function Wb(a){const i=bi(a);return n0(i)(i.values.map((u,c)=>$b(u,i.split[c])))}const Fe={test:kb,parse:Jb,createTransformer:Pb,getAnimatableNone:Wb};function gc(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 Ib({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=gc(y,m,a+1/3),d=gc(y,m,a),f=gc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function Du(a,i){return s=>s>0?i:a}const Nt=(a,i,s)=>a+(i-a)*s,vc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},tT=[Bc,Ca,yi],eT=a=>tT.find(i=>i.test(a));function ey(a){const i=eT(a);if(!i)return!1;let s=i.parse(a);return i===yi&&(s=Ib(s)),s}const ny=(a,i)=>{const s=ey(a),u=ey(i);if(!s||!u)return Du(a,i);const c={...s};return d=>(c.red=vc(s.red,u.red,d),c.green=vc(s.green,u.green,d),c.blue=vc(s.blue,u.blue,d),c.alpha=Nt(s.alpha,u.alpha,d),Ca.transform(c))},Uc=new Set(["none","hidden"]);function nT(a,i){return Uc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function aT(a,i){return s=>Nt(a,i,s)}function bf(a){return typeof a=="number"?aT:typeof a=="string"?gf(a)?Du:$t.test(a)?ny:sT:Array.isArray(a)?a0:typeof a=="object"?$t.test(a)?ny:iT:Du}function a0(a,i){const s=[...a],u=s.length,c=a.map((d,f)=>bf(d)(d,i[f]));return d=>{for(let f=0;f<u;f++)s[f]=c[f](d);return s}}function iT(a,i){const s={...a,...i},u={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(u[c]=bf(a[c])(a[c],i[c]));return c=>{for(const d in u)s[d]=u[d](c);return s}}function lT(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 sT=(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?Uc.has(a)&&!c.values.length||Uc.has(i)&&!u.values.length?nT(a,i):Ll(a0(lT(u,c),c.values),s):Du(a,i)};function i0(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Nt(a,i,s):bf(a)(a,i)}const uT=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()}},l0=(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)})`},Ru=2e4;function Tf(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<Ru;)i+=s,u=a.next(i);return i>=Ru?1/0:i}function rT(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(Tf(u),Ru);return{type:"keyframes",ease:d=>u.next(c*d).value/i,duration:Ye(c)}}const qt={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 Lc(a,i){return a*Math.sqrt(1-i*i)}const oT=12;function cT(a,i,s){let u=s;for(let c=1;c<oT;c++)u=u-a(u)/i(u);return u}const Sc=.001;function fT({duration:a=qt.duration,bounce:i=qt.bounce,velocity:s=qt.velocity,mass:u=qt.mass}){let c,d,f=1-i;f=un(qt.minDamping,qt.maxDamping,f),a=un(qt.minDuration,qt.maxDuration,Ye(a)),f<1?(c=p=>{const g=p*f,v=g*a,b=g-s,x=Lc(p,f),M=Math.exp(-v);return Sc-b/x*M},d=p=>{const v=p*f*a,b=v*s+s,x=Math.pow(f,2)*Math.pow(p,2)*a,M=Math.exp(-v),w=Lc(Math.pow(p,2),f);return(-c(p)+Sc>0?-1:1)*((b-x)*M)/w}):(c=p=>{const g=Math.exp(-p*a),v=(p-s)*a+1;return-Sc+g*v},d=p=>{const g=Math.exp(-p*a),v=(s-p)*(a*a);return g*v});const m=5/a,y=cT(c,d,m);if(a=ze(a),isNaN(y))return{stiffness:qt.stiffness,damping:qt.damping,duration:a};{const p=Math.pow(y,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const dT=["duration","bounce"],hT=["stiffness","damping","mass"];function ay(a,i){return i.some(s=>a[s]!==void 0)}function mT(a){let i={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...a};if(!ay(a,hT)&&ay(a,dT))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:qt.mass,stiffness:c,damping:d}}else{const s=fT({...a,velocity:0});i={...i,...s,mass:qt.mass},i.isResolvedFromDuration=!0}return i}function wu(a=qt.visualDuration,i=qt.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}=mT({...s,velocity:-Ye(s.velocity||0)}),M=b||0,w=p/(2*Math.sqrt(y*g)),_=f-d,B=Ye(Math.sqrt(y/g)),U=Math.abs(_)<5;u||(u=U?qt.restSpeed.granular:qt.restSpeed.default),c||(c=U?qt.restDelta.granular:qt.restDelta.default);let L,J,$,P,X,Z;if(w<1)$=Lc(B,w),P=(M+w*B*_)/$,L=k=>{const W=Math.exp(-w*B*k);return f-W*(P*Math.sin($*k)+_*Math.cos($*k))},X=w*B*P+_*$,Z=w*B*_-P*$,J=k=>Math.exp(-w*B*k)*(X*Math.sin($*k)+Z*Math.cos($*k));else if(w===1){L=W=>f-Math.exp(-B*W)*(_+(M+B*_)*W);const k=M+B*_;J=W=>Math.exp(-B*W)*(B*k*W-M)}else{const k=B*Math.sqrt(w*w-1);L=Tt=>{const xt=Math.exp(-w*B*Tt),V=Math.min(k*Tt,300);return f-xt*((M+w*B*_)*Math.sinh(V)+k*_*Math.cosh(V))/k};const W=(M+w*B*_)/k,K=w*B*W-_*k,rt=w*B*_-W*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($*k),Tt=Math.cos($*k),xt=f-K*(P*rt+_*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 W=L(k);if(x)m.done=k>=v;else{const K=ze(J(k));m.done=Math.abs(K)<=u&&Math.abs(f-W)<=c}return m.value=m.done?f:W,m},toString:()=>{const k=Math.min(Tf(Q),Ru),W=l0(K=>Q.next(k*K).value,k,30);return k+"ms "+W},toTransition:()=>{}};return Q}wu.applyToOptions=a=>{const i=rT(a,100,wu);return a.ease=i.ease,a.duration=ze(i.duration),a.type="keyframes",a};const pT=5;function s0(a,i,s){const u=Math.max(i-pT,0);return Hg(s-a(u),i-u)}function Hc({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,M=Z=>m===void 0?y:y===void 0||Math.abs(m-Z)<Math.abs(y-Z)?m:y;let w=s*i;const _=v+w,B=f===void 0?_:f(_);B!==_&&(w=B-v);const U=Z=>-w*Math.exp(-Z/u),L=Z=>B+U(Z),J=Z=>{const Q=U(Z),k=L(Z);b.done=Math.abs(Q)<=p,b.value=b.done?B:k};let $,P;const X=Z=>{x(b.value)&&($=Z,P=wu({keyframes:[b.value,M(b.value)],velocity:s0(L,Z,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:g}))};return X(0),{calculatedDuration:null,next:Z=>{let Q=!1;return!P&&$===void 0&&(Q=!0,J(Z),X(Z)),$!==void 0&&Z>=$?P.next(Z-$):(!Q&&J(Z),b)}}}function yT(a,i,s){const u=[],c=s||ta.mix||i0,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=Ll(y,m)}u.push(m)}return u}function gT(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const d=a.length;if(hf(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=yT(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=Vl(a[v],a[v+1],g);return m[v](b)};return s?g=>p(un(a[0],a[d-1],g)):p}function vT(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=Vl(0,i,u);a.push(Nt(s,1,c))}}function ST(a){const i=[0];return vT(i,a.length-1),i}function bT(a,i){return a.map(s=>s*i)}function TT(a,i){return a.map(()=>i||Jg).splice(0,a.length-1)}function _l({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=wb(u)?u.map($p):$p(u),d={done:!1,value:i[0]},f=bT(s&&s.length===i.length?s:ST(i),a),m=gT(f,i,{ease:Array.isArray(c)?c:TT(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const xT=a=>a!==null;function qu(a,{repeat:i,repeatType:s="loop"},u,c=1){const d=a.filter(xT),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||u===void 0?d[m]:u}const ET={decay:Hc,inertia:Hc,tween:_l,keyframes:_l,spring:wu};function u0(a){typeof a.type=="string"&&(a.type=ET[a.type])}class xf{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 AT=a=>a/100;class zu extends xf{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;u0(i);const{type:s=_l,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||_l;y!==_l&&typeof m[0]!="number"&&(this.mixKeyframes=Ll(AT,i0(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=Tf(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:M,onUpdate:w,finalKeyframe:_}=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),U=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let L=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)),L=un(0,1,k)*m}let $;U?(this.delayState.value=g[0],$=this.delayState):$=J.next(L),d&&!U&&($.value=d($.value));let{done:P}=$;!U&&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&&M!==Hc&&($.value=qu(g,this.options,_,this.speed)),w&&w($.value),X&&this.finish(),$}then(i,s){return this.finished.then(i,s)}get duration(){return Ye(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ye(i)}get time(){return Ye(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 s0(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=Ye(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=uT,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 MT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Da=a=>a*180/Math.PI,qc=a=>{const i=Da(Math.atan2(a[1],a[0]));return Yc(i)},CT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:qc,rotateZ:qc,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),iy=qc,ly=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),sy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),DT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ly,scaleY:sy,scale:a=>(ly(a)+sy(a))/2,rotateX:a=>Yc(Da(Math.atan2(a[6],a[5]))),rotateY:a=>Yc(Da(Math.atan2(-a[2],a[0]))),rotateZ:iy,rotate:iy,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 Gc(a){return a.includes("scale")?1:0}function Xc(a,i){if(!a||a==="none")return Gc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=DT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=CT,c=m}if(!c)return Gc(i);const d=u[i],f=c[1].split(",").map(wT);return typeof d=="function"?d(f):f[d]}const RT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Xc(s,i)};function wT(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),uy=a=>a===Ei||a===at,zT=new Set(["x","y","z"]),_T=Ai.filter(a=>!zT.has(a));function jT(a){const i=[];return _T.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})=>Xc(i,"x"),y:(a,{transform:i})=>Xc(i,"y")};In.translateX=In.x;In.translateY=In.y;const Ra=new Set;let kc=!1,Zc=!1,Qc=!1;function r0(){if(Zc){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=jT(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)})}Zc=!1,kc=!1,Ra.forEach(a=>a.complete(Qc)),Ra.clear()}function o0(){Ra.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Zc=!0)})}function OT(){Qc=!0,o0(),r0(),Qc=!1}class Ef{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),kc||(kc=!0,jt.read(o0),jt.resolveKeyframes(r0))):(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])}MT(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 VT=a=>a.startsWith("--");function c0(a,i,s){VT(i)?a.style.setProperty(i,s):a.style[i]=s}const NT={};function f0(a,i){const s=Lg(a);return()=>NT[i]??s()}const BT=f0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),d0=f0(()=>{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})`,ry={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 h0(a,i){if(a)return typeof a=="function"?d0()?l0(a,i):"ease-out":Pg(a)?Rl(a):Array.isArray(a)?a.map(s=>h0(s,i)||ry.easeOut):ry[a]}function UT(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=h0(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 m0(a){return typeof a=="function"&&"applyToOptions"in a}function LT({type:a,...i}){return m0(a)&&d0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class p0 extends xf{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,hf(typeof i.type!="string");const p=LT(i);this.animation=UT(s,u,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const g=qu(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(g),c0(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 Ye(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ye(i)}get time(){return Ye(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&&BT()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ge):c(this)}}const y0={anticipate:Zg,backInOut:kg,circInOut:Kg};function HT(a){return a in y0}function qT(a){typeof a.ease=="string"&&HT(a.ease)&&(a.ease=y0[a.ease])}const bc=10;class YT extends p0{constructor(i){qT(i),u0(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 zu({...f,autoplay:!1}),y=Math.max(bc,he.now()-this.startTime),p=un(0,bc,y-bc),g=m.sample(y).value,{name:v}=this.options;d&&v&&c0(d,v,g),s.setWithVelocity(m.sample(Math.max(0,y-p)).value,g,p),m.stop()}}const oy=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Fe.test(a)||a==="0")&&!a.startsWith("url("));function GT(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 XT(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=oy(c,i),m=oy(d,i);return!f||!m?!1:GT(a)||(s==="spring"||m0(s))&&u}function Kc(a){a.duration=0,a.type="keyframes"}const g0=new Set(["opacity","clipPath","filter","transform"]),kT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ZT(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&kT.test(a[i]))return!0;return!1}const QT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),KT=Lg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function JT(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 KT()&&s&&(g0.has(s)||QT.has(s)&&ZT(m))&&(s!=="transform"||!g)&&!p&&!u&&c!=="mirror"&&d!==0&&f!=="inertia"}const PT=40;class FT extends xf{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 M;super(),this.stop=()=>{var w,_;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(_=this.keyframeResolver)==null||_.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)||Ef;this.keyframeResolver=new x(m,(w,_,B)=>this.onKeyframesResolved(w,_,b,!B),y,p,g),(M=this.keyframeResolver)==null||M.scheduleResolve()}onKeyframesResolved(i,s,u,c){var B,U;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;XT(i,d,f,m)||(v=!1,(ta.instantAnimations||!y)&&(g==null||g(qu(i,u,s))),i[0]=i[i.length-1],Kc(u),u.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>PT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},M=v&&!p&&JT(x),w=(U=(B=x.motionValue)==null?void 0:B.owner)==null?void 0:U.current;let _;if(M)try{_=new YT({...x,element:w})}catch{_=new zu(x)}else _=new zu(x);_.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}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(),OT()),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 v0(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 $T=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WT(a){const i=$T.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function S0(a,i,s=1){const[u,c]=WT(a);if(!u)return;const d=window.getComputedStyle(i).getPropertyValue(u);if(d){const f=d.trim();return Ng(f)?parseFloat(f):f}return gf(c)?S0(c,i,s+1):c}const IT={type:"spring",stiffness:500,damping:25,restSpeed:10},tx=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),ex={type:"keyframes",duration:.8},nx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ax=(a,{keyframes:i})=>i.length>2?ex:Mi.has(a)?a.startsWith("scale")?tx(i[1]):IT:nx;function b0(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function Af(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?b0(s,a):s}const ix=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function lx(a){for(const i in a)if(!ix.has(i))return!0;return!1}const Mf=(a,i,s,u={},c,d)=>f=>{const m=Af(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};lx(m)||Object.assign(g,ax(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)&&(Kc(g),g.delay===0&&(v=!0)),(ta.instantAnimations||ta.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(v=!0,Kc(g),g.delay=0),g.allowFlatten=!m.type&&!m.ease,v&&!d&&i.get()!==void 0){const b=qu(g.keyframes,m);if(b!==void 0){jt.update(()=>{g.onUpdate(b),g.onComplete()});return}}return m.isSync?new zu(g):new FT(g)};function cy(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function Cf(a,i,s,u){if(typeof i=="function"){const[c,d]=cy(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]=cy(u);i=i(s!==void 0?s:a.custom,c,d)}return i}function wa(a,i,s){const u=a.getProps();return Cf(u,i,s!==void 0?s:u.custom,a)}const T0=new Set(["width","height","top","left","right","bottom",...Ai]),fy=30,sx=a=>!isNaN(parseFloat(a));class ux{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=sx(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 mf);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>fy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,fy);return Hg(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 ux(a,i)}const Jc=a=>Array.isArray(a);function rx(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,Ti(s))}function ox(a){return Jc(a)?a[a.length-1]||0:a}function cx(a,i){const s=wa(a,i);let{transitionEnd:u={},transition:c={},...d}=s||{};d={...d,...u};for(const f in d){const m=ox(d[f]);rx(a,f,m)}}const oe=a=>!!(a&&a.getVelocity);function fx(a){return!!(oe(a)&&a.add)}function Pc(a,i){const s=a.getValue("willChange");if(fx(s))return s.add(i);if(!s&&ta.WillChange){const u=new ta.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function Df(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const dx="framerAppearId",x0="data-"+Df(dx);function E0(a){return a.props[x0]}function hx({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function A0(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?b0(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),M=m[b];if(M===void 0||v&&hx(v,b))continue;const w={delay:s,...Af(d||{},b)},_=x.get();if(_!==void 0&&!x.isAnimating()&&!Array.isArray(M)&&M===_&&!w.velocity){jt.update(()=>x.set(M));continue}let B=!1;if(window.MotionHandoffAnimation){const J=E0(a);if(J){const $=window.MotionHandoffAnimation(J,b,jt);$!==null&&(w.startTime=$,B=!0)}}Pc(a,b);const U=p??a.shouldReduceMotion;x.start(Mf(b,x,M,U&&T0.has(b)?{type:!1}:w,a,B));const L=x.animation;L&&g.push(L)}if(f){const b=()=>jt.update(()=>{f&&cx(a,f)});g.length?Promise.all(g).then(b):b()}return g}function Fc(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(A0(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:b}=c;return mx(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 mx(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(Fc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+v0(a.variantChildren,y,u,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function px(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(d=>Fc(a,d,s));u=Promise.all(c)}else if(typeof i=="string")u=Fc(a,i,s);else{const c=typeof i=="function"?wa(a,i,s.custom):i;u=Promise.all(A0(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const yx={test:a=>a==="auto",parse:a=>a},M0=a=>i=>i.test(a),C0=[Ei,at,sn,$n,Gb,Yb,yx],dy=a=>C0.find(M0(a));function gx(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Ug(a):!0}const vx=new Set(["brightness","contrast","saturate","opacity"]);function Sx(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[u]=s.match(vf)||[];if(!u)return a;const c=s.replace(u,"");let d=vx.has(i)?1:0;return u!==s&&(d*=100),i+"("+d+c+")"}const bx=/\b([a-z-]*)\(.*?\)/gu,$c={...Fe,getAnimatableNone:a=>{const i=a.match(bx);return i?i.map(Sx).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))}},hy={...Ei,transform:Math.round},Tx={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:ou,scaleX:ou,scaleY:ou,scaleZ:ou,skew:$n,skewX:$n,skewY:$n,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:Nl,originX:Ip,originY:Ip,originZ:at},Rf={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,...Tx,zIndex:hy,fillOpacity:Nl,strokeOpacity:Nl,numOctaves:hy},xx={...Rf,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:$c,WebkitFilter:$c,mask:Wc,WebkitMask:Wc},D0=a=>xx[a],Ex=new Set([$c,Wc]);function R0(a,i){let s=D0(a);return Ex.has(s)||(s=Fe),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const Ax=new Set(["auto","none","0"]);function Mx(a,i,s){let u=0,c;for(;u<a.length&&!c;){const d=a[u];typeof d=="string"&&!Ax.has(d)&&bi(d).values.length&&(c=a[u]),u++}if(c&&s)for(const d of i)a[d]=R0(s,c)}class Cx extends Ef{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(),gf(v))){const b=S0(v,s.current);b!==void 0&&(i[g]=b),g===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!T0.has(u)||i.length!==2)return;const[c,d]=i,f=dy(c),m=dy(d),y=Wp(c),p=Wp(d);if(y!==p&&In[u]){this.needsMeasurement=!0;return}if(f!==m)if(uy(f)&&uy(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||gx(i[c]))&&u.push(c);u.length&&Mx(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 w0(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 z0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function gu(a){return Bg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:wf}=Fg(queueMicrotask,!1),Pe={x:!1,y:!1};function _0(){return Pe.x||Pe.y}function Dx(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 j0(a,i){const s=w0(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function Rx(a){return!(a.pointerType==="touch"||_0())}function wx(a,i,s={}){const[u,c,d]=j0(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const g=()=>{f.removeEventListener("pointerleave",M)},v=_=>{p&&(p(_),p=void 0),g()},b=_=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,v(_))},x=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},M=_=>{if(_.pointerType!=="touch"){if(m){y=!0;return}v(_)}},w=_=>{if(!Rx(_))return;y=!1;const B=i(f,_);typeof B=="function"&&(p=B,f.addEventListener("pointerleave",M,c))};f.addEventListener("pointerenter",w,c),f.addEventListener("pointerdown",x,c)}),d}const O0=(a,i)=>i?a===i?!0:O0(a,i.parentElement):!1,zf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,zx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _x(a){return zx.has(a.tagName)||a.isContentEditable===!0}const jx=new Set(["INPUT","SELECT","TEXTAREA"]);function Ox(a){return jx.has(a.tagName)||a.isContentEditable===!0}const vu=new WeakSet;function my(a){return i=>{i.key==="Enter"&&a(i)}}function Tc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Vx=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=my(()=>{if(vu.has(s))return;Tc(s,"down");const c=my(()=>{Tc(s,"up")}),d=()=>Tc(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 py(a){return zf(a)&&!_0()}const yy=new WeakSet;function Nx(a,i,s={}){const[u,c,d]=j0(a,s),f=m=>{const y=m.currentTarget;if(!py(m)||yy.has(m))return;vu.add(y),s.stopPropagation&&yy.add(m);const p=i(y,m),g=(x,M)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),vu.has(y)&&vu.delete(y),py(x)&&typeof p=="function"&&p(x,{success:M})},v=x=>{g(x,y===window||y===document||s.useGlobalTarget||O0(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),gu(m)&&(m.addEventListener("focus",p=>Vx(p,c)),!_x(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function _f(a){return Bg(a)&&"ownerSVGElement"in a}const Su=new WeakMap;let Wn;const V0=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:_f(u)&&"getBBox"in u?u.getBBox()[i]:u[s],Bx=V0("inline","width","offsetWidth"),Ux=V0("block","height","offsetHeight");function Lx({target:a,borderBoxSize:i}){var s;(s=Su.get(a))==null||s.forEach(u=>{u(a,{get width(){return Bx(a,i)},get height(){return Ux(a,i)}})})}function Hx(a){a.forEach(Lx)}function qx(){typeof ResizeObserver>"u"||(Wn=new ResizeObserver(Hx))}function Yx(a,i){Wn||qx();const s=w0(a);return s.forEach(u=>{let c=Su.get(u);c||(c=new Set,Su.set(u,c)),c.add(i),Wn==null||Wn.observe(u)}),()=>{s.forEach(u=>{const c=Su.get(u);c==null||c.delete(i),c!=null&&c.size||Wn==null||Wn.unobserve(u)})}}const bu=new Set;let gi;function Gx(){gi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};bu.forEach(i=>i(a))},window.addEventListener("resize",gi)}function Xx(a){return bu.add(a),gi||Gx(),()=>{bu.delete(a),!bu.size&&typeof gi=="function"&&(window.removeEventListener("resize",gi),gi=void 0)}}function gy(a,i){return typeof a=="function"?Xx(a):Yx(a,i)}function kx(a){return _f(a)&&a.tagName==="svg"}const Zx=[...C0,$t,Fe],Qx=a=>Zx.find(M0(a)),vy=()=>({translate:0,scale:1,origin:0,originPoint:0}),vi=()=>({x:vy(),y:vy()}),Sy=()=>({min:0,max:0}),It=()=>({x:Sy(),y:Sy()}),Kx=new WeakMap;function Yu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Bl(a){return typeof a=="string"||Array.isArray(a)}const jf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Of=["initial",...jf];function Gu(a){return Yu(a.animate)||Of.some(i=>Bl(a[i]))}function N0(a){return!!(Gu(a)||a.variants)}function Jx(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 _u={current:null},Vf={current:!1},Px=typeof window<"u";function B0(){if(Vf.current=!0,!!Px)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>_u.current=a.matches;a.addEventListener("change",i),i()}else _u.current=!1}const by=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ju={};function U0(a){ju=a}function Fx(){return ju}class $x{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=Ef,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=Gu(s),this.isVariantNode=N0(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 M=b[x];p[x]!==void 0&&oe(M)&&M.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,Kx.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:(Vf.current||B0(),this.shouldReduceMotion=_u.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&&g0.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:g}=s.accelerate,v=new p0({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 ju){const s=ju[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<by.length;u++){const c=by[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=Jx(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"&&(Ng(u)||Ug(u))?u=parseFloat(u):!Qx(u)&&Fe.test(s)&&(u=R0(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=Cf(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 mf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){wf.render(this.render)}}class L0 extends $x{constructor(){super(...arguments),this.KeyframeResolver=Cx}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 H0({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function Wx({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function Ix(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 xc(a){return a===void 0||a===1}function Ic({scale:a,scaleX:i,scaleY:s}){return!xc(a)||!xc(i)||!xc(s)}function Ma(a){return Ic(a)||q0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function q0(a){return Ty(a.x)||Ty(a.y)}function Ty(a){return a&&a!=="0%"}function Ou(a,i,s){const u=a-s,c=i*u;return s+c}function xy(a,i,s,u,c){return c!==void 0&&(a=Ou(a,c,u)),Ou(a,s,u)+i}function tf(a,i=0,s=1,u,c){a.min=xy(a.min,i,s,u,c),a.max=xy(a.max,i,s,u,c)}function Y0(a,{x:i,y:s}){tf(a.x,i.translate,i.scale,i.originPoint),tf(a.y,s.translate,s.scale,s.originPoint)}const Ey=.999999999999,Ay=1.0000000000001;function t2(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,Y0(a,f)),u&&Ma(d.latestValues)&&Tu(a,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}i.x<Ay&&i.x>Ey&&(i.x=1),i.y<Ay&&i.y>Ey&&(i.y=1)}function ln(a,i){a.min+=i,a.max+=i}function My(a,i,s,u,c=.5){const d=Nt(a.min,a.max,c);tf(a,i,s,d,u)}function Cy(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function Tu(a,i,s){const u=s??a;My(a.x,Cy(i.x,u.x),i.scaleX,i.scale,i.originX),My(a.y,Cy(i.y,u.y),i.scaleY,i.scale,i.originY)}function G0(a,i){return H0(Ix(a.getBoundingClientRect(),i))}function e2(a,i,s){const u=G0(a,s),{scroll:c}=i;return c&&(ln(u.x,c.offset.x),ln(u.y,c.offset.y)),u}const n2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a2=Ai.length;function i2(a,i,s){let u="",c=!0;for(let d=0;d<a2;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=z0(m,Rf[f]);if(!y){c=!1;const g=n2[f]||f;u+=`${g}(${p}) `}s&&(i[f]=p)}}return u=u.trim(),s?u=s(i,c?"":u):c&&(u="none"),u}function Nf(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(Wg(y)){c[y]=p;continue}else{const g=z0(p,Rf[y]);y.startsWith("origin")?(m=!0,d[y]=g):u[y]=g}}if(i.transform||(f||s?u.transform=i2(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 X0(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 Dy(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=Dy(a,i.target.x),u=Dy(a,i.target.y);return`${s}% ${u}%`}},l2={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)}},ef={borderRadius:{...Dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dl,borderTopRightRadius:Dl,borderBottomLeftRadius:Dl,borderBottomRightRadius:Dl,boxShadow:l2};function k0(a,{layout:i,layoutId:s}){return Mi.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!ef[a]||a==="opacity")}function Bf(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])||k0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=u[m]);return d}function s2(a){return window.getComputedStyle(a)}class u2 extends L0{constructor(){super(...arguments),this.type="html",this.renderInstance=X0}readValueFromInstance(i,s){var u;if(Mi.has(s))return(u=this.projection)!=null&&u.isProjecting?Gc(s):RT(i,s);{const c=s2(i),d=(Wg(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return G0(i,s)}build(i,s,u){Nf(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return Bf(i,s,u)}}const r2={offset:"stroke-dashoffset",array:"stroke-dasharray"},o2={offset:"strokeDashoffset",array:"strokeDasharray"};function c2(a,i,s=1,u=0,c=!0){a.pathLength=1;const d=c?r2:o2;a[d.offset]=`${-u}`,a[d.array]=`${i} ${s}`}const f2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Z0(a,{attrX:i,attrY:s,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,g){if(Nf(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 f2)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&&c2(v,c,d,f,!1)}const Q0=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"]),K0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function d2(a,i,s,u){X0(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(Q0.has(c)?c:Df(c),i.attrs[c])}function J0(a,i,s){const u=Bf(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 h2 extends L0{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=D0(s);return u&&u.default||0}return s=Q0.has(s)?s:Df(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return J0(i,s,u)}build(i,s,u){Z0(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){d2(i,s,u,c)}mount(i){this.isSVGTag=K0(i.tagName),super.mount(i)}}const m2=Of.length;function P0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?P0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<m2;s++){const u=Of[s],c=a.props[u];(Bl(c)||c===!1)&&(i[u]=c)}return i}function F0(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 p2=[...jf].reverse(),y2=jf.length;function g2(a){return i=>Promise.all(i.map(({animation:s,options:u})=>px(a,s,u)))}function v2(a){let i=g2(a),s=Ry(),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:M,transitionEnd:w,..._}=b;g={...g,..._,...w}}return g};function f(p){i=p(a)}function m(p){const{props:g}=a,v=P0(a.parent)||{},b=[],x=new Set;let M={},w=1/0;for(let B=0;B<y2;B++){const U=p2[B],L=s[U],J=g[U]!==void 0?g[U]:v[U],$=Bl(J),P=U===p?L.isActive:null;P===!1&&(w=B);let X=J===v[U]&&J!==g[U]&&$;if(X&&(u||c)&&a.manuallyAnimateOnMount&&(X=!1),L.protectedKeys={...M},!L.isActive&&P===null||!J&&!L.prevProp||Yu(J)||typeof J=="boolean")continue;if(U==="exit"&&L.isActive&&P!==!0){L.prevResolvedValues&&(M={...M,...L.prevResolvedValues});continue}const Z=S2(L.prevProp,J);let Q=Z||U===p&&L.isActive&&!X&&$||B>w&&$,k=!1;const W=Array.isArray(J)?J:[J];let K=W.reduce(d(U),{});P===!1&&(K={});const{prevResolvedValues:rt={}}=L,Tt={...rt,...K},xt=tt=>{Q=!0,x.has(tt)&&(k=!0,x.delete(tt)),L.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(M.hasOwnProperty(tt))continue;let C=!1;Jc(ut)&&Jc(ft)?C=!F0(ut,ft):C=ut!==ft,C?ut!=null?xt(tt):x.add(tt):ut!==void 0&&x.has(tt)?xt(tt):L.protectedKeys[tt]=!0}L.prevProp=J,L.prevResolvedValues=K,L.isActive&&(M={...M,...K}),(u||c)&&a.blockInitialAnimation&&(Q=!1);const V=X&&Z;Q&&(!V||k)&&b.push(...W.map(tt=>{const ut={type:U};if(typeof tt=="string"&&(u||c)&&!V&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,C=wa(ft,tt);if(ft.enteringChildren&&C){const{delayChildren:Y}=C.transition||{};ut.delay=v0(ft.enteringChildren,a,Y)}}return{animation:tt,options:ut}}))}if(x.size){const B={};if(typeof g.initial!="boolean"){const U=wa(a,Array.isArray(g.initial)?g.initial[0]:g.initial);U&&U.transition&&(B.transition=U.transition)}x.forEach(U=>{const L=a.getBaseTarget(U),J=a.getValue(U);J&&(J.liveStyle=!0),B[U]=L??null}),b.push({animation:B})}let _=!!b.length;return u&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(_=!1),u=!1,c=!1,_?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 M;return(M=x.animationState)==null?void 0:M.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=Ry(),c=!0}}}function S2(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!F0(i,a):!1}function Aa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ry(){return{animate:Aa(!0),whileInView:Aa(),whileHover:Aa(),whileTap:Aa(),whileDrag:Aa(),whileFocus:Aa(),exit:Aa()}}function nf(a,i){a.min=i.min,a.max=i.max}function Je(a,i){nf(a.x,i.x),nf(a.y,i.y)}function wy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const $0=1e-4,b2=1-$0,T2=1+$0,W0=.01,x2=0-W0,E2=0+W0;function me(a){return a.max-a.min}function A2(a,i,s){return Math.abs(a-i)<=s}function zy(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>=b2&&a.scale<=T2||isNaN(a.scale))&&(a.scale=1),(a.translate>=x2&&a.translate<=E2||isNaN(a.translate))&&(a.translate=0)}function jl(a,i,s,u){zy(a.x,i.x,s.x,u?u.originX:void 0),zy(a.y,i.y,s.y,u?u.originY:void 0)}function _y(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 M2(a,i,s,u){_y(a.x,i.x,s.x,u==null?void 0:u.x),_y(a.y,i.y,s.y,u==null?void 0:u.y)}function jy(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 Vu(a,i,s,u){jy(a.x,i.x,s.x,u==null?void 0:u.x),jy(a.y,i.y,s.y,u==null?void 0:u.y)}function Oy(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 C2(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=Oy(a.min,i,s,m,c),a.max=Oy(a.max,i,s,m,c)}function Vy(a,i,[s,u,c],d,f){C2(a,i[s],i[u],i[c],i.scale,d,f)}const D2=["x","scaleX","originX"],R2=["y","scaleY","originY"];function Ny(a,i,s,u){Vy(a.x,i,D2,s?s.x:void 0,u?u.x:void 0),Vy(a.y,i,R2,s?s.y:void 0,u?u.y:void 0)}function By(a){return a.translate===0&&a.scale===1}function I0(a){return By(a.x)&&By(a.y)}function Uy(a,i){return a.min===i.min&&a.max===i.max}function w2(a,i){return Uy(a.x,i.x)&&Uy(a.y,i.y)}function Ly(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function tv(a,i){return Ly(a.x,i.x)&&Ly(a.y,i.y)}function Hy(a){return me(a.x)/me(a.y)}function qy(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function an(a){return[a("x"),a("y")]}function z2(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:M}=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) `),M&&(u+=`skewY(${M}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 ev=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],_2=ev.length,Yy=a=>typeof a=="string"?parseFloat(a):a,Gy=a=>typeof a=="number"||at.test(a);function j2(a,i,s,u,c,d){c?(a.opacity=Nt(0,s.opacity??1,O2(u)),a.opacityExit=Nt(i.opacity??1,0,V2(u))):d&&(a.opacity=Nt(i.opacity??1,s.opacity??1,u));for(let f=0;f<_2;f++){const m=ev[f];let y=Xy(i,m),p=Xy(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Gy(y)===Gy(p)?(a[m]=Math.max(Nt(Yy(y),Yy(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 Xy(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const O2=nv(0,.5,Qg),V2=nv(.5,.95,Ge);function nv(a,i,s){return u=>u<a?0:u>i?1:s(Vl(a,i,u))}function N2(a,i,s){const u=oe(a)?a:Ti(a);return u.start(Mf("",u,i,s)),u.animation}function Ul(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const B2=(a,i)=>a.depth-i.depth;class U2{constructor(){this.children=[],this.isDirty=!1}add(i){df(this.children,i),this.isDirty=!0}remove(i){Cu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(B2),this.isDirty=!1,this.children.forEach(i)}}function L2(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 xu(a){return oe(a)?a.get():a}class H2{constructor(){this.members=[]}add(i){df(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&&(Cu(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Cu(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 Eu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ec=["","X","Y","Z"],q2=1e3;let Y2=0;function Ac(a,i,s,u){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),u&&(u[a]=0))}function av(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=E0(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&&av(u)}function iv({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=Y2++,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(k2),this.nodes.forEach(F2),this.nodes.forEach($2),this.nodes.forEach(Z2)},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 U2)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new mf),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=_f(f)&&!kx(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=L2(b,250),Eu.hasAnimatedSinceResize&&(Eu.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 M=this.options.transition||p.getDefaultTransition()||nE,{onLayoutAnimationStart:w,onLayoutAnimationComplete:_}=p.getProps(),B=!this.targetLayout||!tv(this.targetLayout,x),U=!v&&b;if(this.options.layoutRoot||this.resumeFrom||U||v&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...Af(M,"layout"),onPlay:w,onComplete:_};(p.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,U)}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(W2),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&&av(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(K2),this.nodes.forEach(ky);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(J2),this.nodes.forEach(P2),this.nodes.forEach(G2),this.nodes.forEach(X2)):this.nodes.forEach(Zy),this.clearAllSnapshots();const m=he.now();re.delta=un(0,1e3/60,m-re.timestamp),re.timestamp=m,re.isProcessing=!0,pc.update.process(re),pc.preRender.process(re),pc.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Q2),this.sharedNodes.forEach(I2)}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&&!I0(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)),aE(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(iE))){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)&&Tu(p,x.latestValues,(g=x.layout)==null?void 0:g.layoutBox)}return Ma(this.latestValues)&&Tu(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&&(Ic(g.latestValues)&&g.updateSnapshot(),v=It(),Je(v,g.measurePageBox())),Ny(m,g.latestValues,(y=g.snapshot)==null?void 0:y.layoutBox,v)}return Ma(this.latestValues)&&Ny(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(),M2(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),Y0(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||Ic(this.parent.latestValues)||q0(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(),Vu(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Je(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var M;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(M=this.parent)!=null&&M.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;t2(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():(wy(this.prevProjectionDelta.x,this.projectionDelta.x),wy(this.prevProjectionDelta.y,this.projectionDelta.y)),jl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!qy(this.projectionDelta.x,this.prevProjectionDelta.x)||!qy(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,M=this.layout?this.layout.source:void 0,w=x!==M,_=this.getStack(),B=!_||_.members.length<=1,U=!!(w&&!B&&this.options.crossfade===!0&&!this.path.some(eE));this.animationProgress=0;let L;this.mixTargetDelta=J=>{const $=J/1e3;Ky(v.x,f.x,$),Ky(v.y,f.y,$),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vu(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),tE(this.relativeTarget,this.relativeTargetOrigin,b,$),L&&w2(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=It()),Je(L,this.relativeTarget)),w&&(this.animationValues=g,j2(g,p,this.latestValues,$,U,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},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(()=>{Eu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ti(0)),this.motionValue.jump(0,!1),this.currentAnimation=N2(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(q2),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&&lv(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),Tu(m,g),jl(this.projectionDeltaWithTransform,this.layoutCorrected,m,g)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new H2),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&&Ac("z",f,p,this.animationValues);for(let g=0;g<Ec.length;g++)Ac(`rotate${Ec[g]}`,f,p,this.animationValues),Ac(`skew${Ec[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=xu(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=xu(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=z2(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 M in ef){if(g[M]===void 0)continue;const{correct:w,applyTo:_,isCSSVariable:B}=ef[M],U=v==="none"?g[M]:w(g[M],p);if(_){const L=_.length;for(let J=0;J<L;J++)f[_[J]]=U}else B?this.options.visualElement.renderState.vars[M]=U:f[M]=U}this.options.layoutId&&(f.pointerEvents=p===this?xu(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(ky),this.root.sharedNodes.clear()}}}function G2(a){a.updateLayout()}function X2(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";nf(f?i.measuredBox[v]:i.layoutBox[v],u[v])}else lv(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();jl(m,u,i.layoutBox);const y=vi();f?jl(y,a.applyTransform(c,!0),i.measuredBox):jl(y,u,i.layoutBox);const p=!I0(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 M=a.options.layoutAnchor||void 0,w=It();Vu(w,i.layoutBox,b.layoutBox,M);const _=It();Vu(_,u,x.layoutBox,M),tv(w,_)||(g=!0),v.options.layoutRoot&&(a.relativeTarget=_,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 k2(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 Z2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function Q2(a){a.clearSnapshot()}function ky(a){a.clearMeasurements()}function K2(a){a.isLayoutDirty=!0,a.updateLayout()}function Zy(a){a.isLayoutDirty=!1}function J2(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function P2(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 F2(a){a.resolveTargetDelta()}function $2(a){a.calcProjection()}function W2(a){a.resetSkewAndRotation()}function I2(a){a.removeLeadSnapshot()}function Ky(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 Jy(a,i,s,u){a.min=Nt(i.min,s.min,u),a.max=Nt(i.max,s.max,u)}function tE(a,i,s,u){Jy(a.x,i.x,s.x,u),Jy(a.y,i.y,s.y,u)}function eE(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const nE={duration:.45,ease:[.4,0,.1,1]},Py=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Fy=Py("applewebkit/")&&!Py("chrome/")?Math.round:Ge;function $y(a){a.min=Fy(a.min),a.max=Fy(a.max)}function aE(a){$y(a.x),$y(a.y)}function lv(a,i,s){return a==="position"||a==="preserve-aspect"&&!A2(Hy(i),Hy(s),.2)}function iE(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const lE=iv({attachResizeListener:(a,i)=>Ul(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}),Mc={current:void 0},sv=iv({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Mc.current){const a=new lE({});a.mount(window),a.setOptions({layoutScroll:!0}),Mc.current=a}return Mc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Uf=T.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Wy(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function sE(...a){return i=>{let s=!1;const u=a.map(c=>{const d=Wy(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():Wy(a[c],null)}}}}function uE(...a){return T.useCallback(sE(...a),a)}class rE extends T.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(gu(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=gu(u)&&u.offsetWidth||0,d=gu(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 oE({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:d}){var b;const f=T.useId(),m=T.useRef(null),y=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=T.useContext(Uf),g=((b=a.props)==null?void 0:b.ref)??(a==null?void 0:a.ref),v=uE(m,g);return T.useInsertionEffect(()=>{const{width:x,height:M,top:w,left:_,right:B,bottom:U}=y.current;if(i||d===!1||!m.current||!x||!M)return;const L=s==="left"?`left: ${_}`:`right: ${B}`,J=u==="bottom"?`bottom: ${U}`:`top: ${w}`;m.current.dataset.motionPopId=f;const $=document.createElement("style");p&&($.nonce=p);const P=c??document.head;return P.appendChild($),$.sheet&&$.sheet.insertRule(`
50
- [data-motion-pop-id="${f}"] {
51
- position: absolute !important;
52
- width: ${x}px !important;
53
- height: ${M}px !important;
54
- ${L}px !important;
55
- ${J}px !important;
56
- }
57
- `),()=>{var X;(X=m.current)==null||X.removeAttribute("data-motion-pop-id"),P.contains($)&&P.removeChild($)}},[i]),A.jsx(rE,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:T.cloneElement(a,{ref:v})})}const cE=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const g=ff(fE),v=T.useId();let b=!0,x=T.useMemo(()=>(b=!1,{id:v,initial:i,isPresent:s,custom:c,onExitComplete:M=>{g.set(M,!0);for(const w of g.values())if(!w)return;u&&u()},register:M=>(g.set(M,!1),()=>g.delete(M))}),[s,g,u]);return d&&b&&(x={...x}),T.useMemo(()=>{g.forEach((M,w)=>g.set(w,!1))},[s]),T.useEffect(()=>{!s&&!g.size&&u&&u()},[s]),a=A.jsx(oE,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),A.jsx(Hu.Provider,{value:x,children:a})};function fE(){return new Map}function uv(a=!0){const i=T.useContext(Hu);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,d=T.useId();T.useEffect(()=>{if(a)return c(d)},[a]);const f=T.useCallback(()=>a&&u&&u(d),[d,u,a]);return!s&&u?[!1,f]:[!0]}const cu=a=>a.key||"";function Iy(a){const i=[];return T.Children.forEach(a,s=>{T.isValidElement(s)&&i.push(s)}),i}const Nu=({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]=uv(f),b=T.useMemo(()=>Iy(a),[a]),x=f&&!g?[]:b.map(cu),M=T.useRef(!0),w=T.useRef(b),_=ff(()=>new Map),B=T.useRef(new Set),[U,L]=T.useState(b),[J,$]=T.useState(b);Vg(()=>{M.current=!1,w.current=b;for(let Z=0;Z<J.length;Z++){const Q=cu(J[Z]);x.includes(Q)?(_.delete(Q),B.current.delete(Q)):_.get(Q)!==!0&&_.set(Q,!1)}},[J,x.length,x.join("-")]);const P=[];if(b!==U){let Z=[...b];for(let Q=0;Q<J.length;Q++){const k=J[Q],W=cu(k);x.includes(W)||(Z.splice(Q,0,k),P.push(k))}return d==="wait"&&P.length&&(Z=P),$(Iy(Z)),L(b),null}const{forceRender:X}=T.useContext(cf);return A.jsx(A.Fragment,{children:J.map(Z=>{const Q=cu(Z),k=f&&!g?!1:b===J||x.includes(Q),W=()=>{if(B.current.has(Q))return;if(_.has(Q))B.current.add(Q),_.set(Q,!0);else return;let K=!0;_.forEach(rt=>{rt||(K=!1)}),K&&(X==null||X(),$(w.current),f&&(v==null||v()),u&&u())};return A.jsx(cE,{isPresent:k,initial:!M.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:k?void 0:W,anchorX:m,anchorY:y,children:Z},Q)})})},rv=T.createContext({strict:!1}),tg={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 eg=!1;function dE(){if(eg)return;const a={};for(const i in tg)a[i]={isEnabled:s=>tg[i].some(u=>!!s[u])};U0(a),eg=!0}function ov(){return dE(),Fx()}function hE(a){const i=ov();for(const s in a)i[s]={...i[s],...a[s]};U0(i)}const mE=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 Bu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||mE.has(a)}let cv=a=>!Bu(a);function pE(a){typeof a=="function"&&(cv=i=>i.startsWith("on")?!Bu(i):a(i))}try{pE(require("@emotion/is-prop-valid").default)}catch{}function yE(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||oe(a[c])||(cv(c)||s===!0&&Bu(c)||!i&&!Bu(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const Xu=T.createContext({});function gE(a,i){if(Gu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||Bl(s)?s:void 0,animate:Bl(u)?u:void 0}}return a.inherit!==!1?i:{}}function vE(a){const{initial:i,animate:s}=gE(a,T.useContext(Xu));return T.useMemo(()=>({initial:i,animate:s}),[ng(i),ng(s)])}function ng(a){return Array.isArray(a)?a.join(" "):a}const Lf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fv(a,i,s){for(const u in i)!oe(i[u])&&!k0(u,s)&&(a[u]=i[u])}function SE({transformTemplate:a},i){return T.useMemo(()=>{const s=Lf();return Nf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function bE(a,i){const s=a.style||{},u={};return fv(u,s,a),Object.assign(u,SE(a,i)),u}function TE(a,i){const s={},u=bE(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 dv=()=>({...Lf(),attrs:{}});function xE(a,i,s,u){const c=T.useMemo(()=>{const d=dv();return Z0(d,i,K0(u),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};fv(d,a.style,a),c.style={...d,...c.style}}return c}const EE=["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 Hf(a){return typeof a!="string"||a.includes("-")?!1:!!(EE.indexOf(a)>-1||/[A-Z]/u.test(a))}function AE(a,i,s,{latestValues:u},c,d=!1,f){const y=(f??Hf(a)?xE:TE)(i,u,c,a),p=yE(i,typeof a=="string",d),g=a!==T.Fragment?{...p,...y,ref:s}:{},{children:v}=i,b=T.useMemo(()=>oe(v)?v.get():v,[v]);return T.createElement(a,{...g,children:b})}function ME({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:CE(s,u,c,a),renderState:i()}}function CE(a,i,s,u){const c={},d=u(a,{});for(const b in d)c[b]=xu(d[b]);let{initial:f,animate:m}=a;const y=Gu(a),p=N0(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"&&!Yu(v)){const b=Array.isArray(v)?v:[v];for(let x=0;x<b.length;x++){const M=Cf(a,b[x]);if(M){const{transitionEnd:w,transition:_,...B}=M;for(const U in B){let L=B[U];if(Array.isArray(L)){const J=g?L.length-1:0;L=L[J]}L!==null&&(c[U]=L)}for(const U in w)c[U]=w[U]}}}return c}const hv=a=>(i,s)=>{const u=T.useContext(Xu),c=T.useContext(Hu),d=()=>ME(a,i,u,c);return s?d():ff(d)},DE=hv({scrapeMotionValuesFromProps:Bf,createRenderState:Lf}),RE=hv({scrapeMotionValuesFromProps:J0,createRenderState:dv}),wE=Symbol.for("motionComponentSymbol");function zE(a,i,s){const u=T.useRef(s);T.useInsertionEffect(()=>{u.current=s});const c=T.useRef(null);return T.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 mv=T.createContext({});function pi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function _E(a,i,s,u,c,d){var L,J;const{visualElement:f}=T.useContext(Xu),m=T.useContext(rv),y=T.useContext(Hu),p=T.useContext(Uf),g=p.reducedMotion,v=p.skipAnimations,b=T.useRef(null),x=T.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 M=b.current,w=T.useContext(mv);M&&!M.projection&&c&&(M.type==="html"||M.type==="svg")&&jE(b.current,s,c,w);const _=T.useRef(!1);T.useInsertionEffect(()=>{M&&_.current&&M.update(s,y)});const B=s[x0],U=T.useRef(!!B&&typeof window<"u"&&!((L=window.MotionHandoffIsComplete)!=null&&L.call(window,B))&&((J=window.MotionHasOptimisedAnimation)==null?void 0:J.call(window,B)));return Vg(()=>{x.current=!0,M&&(_.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),U.current&&M.animationState&&M.animationState.animateChanges())}),T.useEffect(()=>{M&&(!U.current&&M.animationState&&M.animationState.animateChanges(),U.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)==null||$.call(window,B)}),U.current=!1),M.enteringChildren=void 0)}),M}function jE(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:pv(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 pv(a){if(a)return a.options.allowProjection!==!1?a.projection:pv(a.parent)}function Cc(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&hE(u);const d=s?s==="svg":Hf(a),f=d?RE:DE;function m(p,g){let v;const b={...T.useContext(Uf),...p,layoutId:OE(p)},{isStatic:x}=b,M=vE(p),w=f(p,x);if(!x&&typeof window<"u"){VE();const _=NE(b);v=_.MeasureLayout,M.visualElement=_E(a,w,b,c,_.ProjectionNode,d)}return A.jsxs(Xu.Provider,{value:M,children:[v&&M.visualElement?A.jsx(v,{visualElement:M.visualElement,...b}):null,AE(a,p,zE(w,M.visualElement,g),w,x,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=T.forwardRef(m);return y[wE]=a,y}function OE({layoutId:a}){const i=T.useContext(cf).id;return i&&a!==void 0?i+"-"+a:a}function VE(a,i){T.useContext(rv).strict}function NE(a){const i=ov(),{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 BE(a,i){if(typeof Proxy>"u")return Cc;const s=new Map,u=(d,f)=>Cc(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,Cc(f,void 0,a,i)),s.get(f))})}const UE=(a,i)=>i.isSVG??Hf(a)?new h2(i):new u2(i,{allowProjection:a!==T.Fragment});class LE extends na{constructor(i){super(i),i.animationState||(i.animationState=v2(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Yu(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 HE=0;class qE extends na{constructor(){super(...arguments),this.id=HE++,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 YE={animation:{Feature:LE},exit:{Feature:qE}};function Yl(a){return{point:{x:a.pageX,y:a.pageY}}}const GE=a=>i=>zf(i)&&a(i,Yl(i));function Ol(a,i,s,u){return Ul(a,i,GE(s),u)}const yv=({current:a})=>a?a.ownerDocument.defaultView:null,ag=(a,i)=>Math.abs(a-i);function XE(a,i){const s=ag(a.x,i.x),u=ag(a.y,i.y);return Math.sqrt(s**2+u**2)}const ig=new Set(["auto","scroll"]);class gv{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=fu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Dc(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,w=XE(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!w)return;const{point:_}=x,{timestamp:B}=re;this.history.push({..._,timestamp:B});const{onStart:U,onMove:L}=this.handlers;M||(U&&U(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,M)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=M,this.lastMoveEventInfo=fu(M,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(x,M)=>{this.end();const{onEnd:w,onSessionEnd:_,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=Dc(x.type==="pointercancel"?this.lastMoveEventInfo:fu(M,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,U),_&&_(x,U)},!zf(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Yl(i),p=fu(y,this.transformPagePoint),{point:g}=p,{timestamp:v}=re;this.history=[{...g,timestamp:v}];const{onSessionStart:b}=s;b&&b(i,Dc(p,this.history)),this.removeListeners=Ll(Ol(this.contextWindow,"pointermove",this.handlePointerMove),Ol(this.contextWindow,"pointerup",this.handlePointerUp),Ol(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(ig.has(u.overflowX)||ig.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 fu(a,i){return i?{point:i(a.point)}:a}function lg(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Dc({point:a},i){return{point:a,delta:lg(a,vv(i)),offset:lg(a,kE(i)),velocity:ZE(i,.1)}}function kE(a){return a[0]}function vv(a){return a[a.length-1]}function ZE(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=vv(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=Ye(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 QE(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 sg(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 KE(a,{top:i,left:s,bottom:u,right:c}){return{x:sg(a.x,s,c),y:sg(a.y,i,u)}}function ug(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 JE(a,i){return{x:ug(a.x,i.x),y:ug(a.y,i.y)}}function PE(a,i){let s=.5;const u=me(a),c=me(i);return c>u?s=Vl(i.min,i.max-u,a.min):u>c&&(s=Vl(a.min,a.max-c,i.min)),un(0,1,s)}function FE(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 af=.35;function $E(a=af){return a===!1?a=0:a===!0&&(a=af),{x:rg(a,"left","right"),y:rg(a,"top","bottom")}}function rg(a,i,s){return{min:og(a,i),max:og(a,s)}}function og(a,i){return typeof a=="number"?a:a[i]||0}const WE=new WeakMap;class IE{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:M,onDragStart:w}=this.getProps();if(x&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Dx(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 U=this.getAxisMotionValue(B).get()||0;if(sn.test(U)){const{projection:L}=this.visualElement;if(L&&L.layout){const J=L.layout.layoutBox[B];J&&(U=me(J)*(parseFloat(U)/100))}}this.originPoint[B]=U}),w&&jt.update(()=>w(v,b),!1,!0),Pc(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},m=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:M,onDirectionLock:w,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:B}=b;if(M&&this.currentDirection===null){this.currentDirection=eA(B),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,B),this.updateAxis("y",b.point,B),this.visualElement.render(),_&&jt.update(()=>_(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 gv(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:yv(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||!du(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=QE(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=KE(u.layoutBox,i):this.constraints=!1,this.elastic=$E(s),c!==this.constraints&&!pi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&an(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=FE(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=e2(u,c.root,this.visualElement.getTransformPagePoint());let f=JE(c.layout.layoutBox,d);if(s){const m=s(Wx(f));this.hasMutatedConstraints=!!m,m&&(f=H0(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(!du(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,M={type:"inertia",velocity:u?i[g]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...v};return this.startAxisValueAnimation(g,M)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return Pc(this.visualElement,i),u.start(Mf(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(!du(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]=PE({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(!du(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;WE.set(this.visualElement,this);const i=this.visualElement.current,s=Ol(i,"pointerdown",p=>{const{drag:g,dragListener:v=!0}=this.getProps(),b=p.target,x=b!==i&&Ox(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=tA(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=Ul(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=af,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function cg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function tA(a,i,s){const u=gy(a,cg(s)),c=gy(i,cg(s));return()=>{u(),c()}}function du(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function eA(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class nA extends na{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new IE(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 Rc=a=>(i,s)=>{a&&jt.update(()=>a(i,s),!1,!0)};class aA extends na{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new gv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yv(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Rc(i),onStart:Rc(s),onMove:Rc(u),onEnd:(d,f)=>{delete this.session,c&&jt.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Ol(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 wc=!1;class iA extends T.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),wc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Eu.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}),wc=!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(),wf.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;wc=!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 Sv(a){const[i,s]=uv(),u=T.useContext(cf);return A.jsx(iA,{...a,layoutGroup:u,switchLayoutGroup:T.useContext(mv),isPresent:i,safeToRemove:s})}const lA={pan:{Feature:aA},drag:{Feature:nA,ProjectionNode:sv,MeasureLayout:Sv}};function fg(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 sA extends na{mount(){const{current:i}=this.node;i&&(this.unmount=wx(i,(s,u)=>(fg(this.node,u,"Start"),c=>fg(this.node,c,"End"))))}unmount(){}}class uA 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=Ll(Ul(this.node.current,"focus",()=>this.onFocus()),Ul(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dg(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 rA extends na{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=Nx(i,(c,d)=>(dg(this.node,d,"Start"),(f,{success:m})=>dg(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const lf=new WeakMap,zc=new WeakMap,oA=a=>{const i=lf.get(a.target);i&&i(a)},cA=a=>{a.forEach(oA)};function fA({root:a,...i}){const s=a||document;zc.has(s)||zc.set(s,{});const u=zc.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(cA,{root:a,...i})),u[c]}function dA(a,i,s){const u=fA(i);return lf.set(a,s),u.observe(a),()=>{lf.delete(a),u.unobserve(a)}}const hA={some:0,all:1};class mA 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:hA[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=dA(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(pA(i,s))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function pA({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const yA={inView:{Feature:mA},tap:{Feature:rA},focus:{Feature:uA},hover:{Feature:sA}},gA={layout:{ProjectionNode:sv,MeasureLayout:Sv}},vA={...YE,...yA,...lA,...gA},Cn=BE(vA,UE);function SA(){!Vf.current&&B0();const[a]=T.useState(_u.current);return a}function qf(a){const i=a.play();return i instanceof Promise?i:Promise.resolve()}function hu(a,i,s=1){return a.src=i,a.defaultPlaybackRate=s,a.load(),a.playbackRate=s,qf(a)}function bA(a,i,s,u=1,c=!0){a.src=i,a.defaultPlaybackRate=u,a.load(),a.playbackRate=u;const d=()=>{a.currentTime=s,c&&qf(a).catch(()=>{})};a.readyState>=HTMLMediaElement.HAVE_METADATA?d():a.addEventListener("loadedmetadata",d,{once:!0})}function mu(a){a.pause(),a.removeAttribute("src"),a.load()}function pu(a){for(const i of a.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function TA({manifest:a,stepIndex:i,playing:s,initialMuted:u=!0,playbackRate:c=1,onClipEnded:d}){const[f,m]=T.useState(u),[y,p]=T.useState(!1),g=T.useRef(null),v=T.useRef(!1),b=T.useCallback(Q=>{Q.then(()=>p(!1),()=>p(!0))},[]),x=T.useRef(f);x.current=f;const M=T.useRef(s);M.current=s;const w=T.useRef(d);w.current=d;const _=T.useRef(c);_.current=c;const B=(a==null?void 0:a.steps[i])??null,U=(B==null?void 0:B.src)??null,L=T.useRef(!1),J=T.useCallback((Q,k)=>{L.current=!0,setTimeout(()=>{L.current=!1},0);const W=g.current;if(!W||!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){mu(W);return}bA(W,rt,k/1e3,_.current,M.current)},[a]);T.useEffect(()=>{!a||u||v.current||(pu(a),v.current=!0)},[a,u]),T.useEffect(()=>{const Q=g.current;if(!Q||!a)return;const k=()=>{var W;return(W=w.current)==null?void 0:W.call(w)};return Q.addEventListener("ended",k),()=>Q.removeEventListener("ended",k)},[a]),T.useEffect(()=>{if(L.current){L.current=!1;return}const Q=g.current;if(!(!Q||!a)){if(x.current||!U||!M.current){mu(Q);return}b(hu(Q,U,_.current))}},[i,U,a,b]),T.useEffect(()=>{const Q=g.current;!Q||!a||x.current||(s?U&&(Q.src?b(qf(Q)):b(hu(Q,U,_.current))):Q.pause())},[s,U,a,b]);const $=T.useCallback(()=>{m(Q=>{const k=!Q,W=g.current;return W&&(k?(mu(W),p(!1)):(a&&!v.current&&(pu(a),v.current=!0),U&&b(hu(W,U,_.current)))),k})},[U,a,b]),P=T.useCallback(()=>{const Q=g.current;!Q||x.current||!U||(a&&!v.current&&(pu(a),v.current=!0),b(hu(Q,U,_.current)))},[U,a,b]),X=T.useCallback(Q=>{const k=g.current;k&&(k.volume=Math.max(0,Math.min(Q,1)))},[]),Z=T.useCallback(()=>{!a||v.current||(pu(a),v.current=!0)},[a]);return T.useEffect(()=>{const Q=g.current;Q&&(Q.defaultPlaybackRate=c,Q.playbackRate=c)},[c]),T.useEffect(()=>{const Q=g.current;return()=>{Q&&mu(Q)}},[]),{muted:f,toggleMute:$,audioRef:g,seekToStep:J,audioBlocked:y,unlock:P,setVolume:X,prefetch:Z}}const sf=new Map;let xA=0;function EA(a){const i=`sp-${xA++}`;return sf.set(i,a),{id:i,unregister:()=>sf.delete(i)}}function hg(a){for(const[i,s]of sf)i!==a&&s()}function AA({steps:a,narrationManifest:i,muted:s,playbackRate:u,isVideoExport:c,prefersReducedMotion:d}){const f=Uu(),m=a.length-1,[y,p]=T.useState(()=>d?m:0),[g,v]=T.useState(c?"playing":"idle"),b=g==="playing",x=f?Nc(f.currentTimeMs,f.stepStartTimesMs,m):y,M=T.useRef(x);M.current=x;const w=T.useRef(null),_=T.useRef(0),[B,U]=T.useState(0),L=T.useRef(Math.max(u,.25));L.current=Math.max(u,.25),T.useEffect(()=>{var V,F;if(f||!b||d)return;const W=L.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)/W);return()=>{clearTimeout(ut),w.current=null}}v("paused");return}const K=x+1,rt=a[K].delayMs/W,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 C=()=>{ft||(ft=!0,w.current=null,p(K))},Y=()=>{tt&&ut&&C()};w.current=()=>{tt=!0,Y()};const I=setTimeout(()=>{ut=!0,Y()},rt),et=setTimeout(C,(Math.max(a[K].delayMs,Tt)+2e3)/W);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=T.useCallback(W=>{v("paused"),p(Math.max(0,Math.min(W,m)))},[m]),$=T.useCallback((W,K)=>{const rt=Math.max(0,Math.min(W,K.totalDurationMs)),Tt=Nc(rt,K.stepStartTimesMs,m),xt=K.stepStartTimesMs[Tt]??0;_.current=rt-xt,p(Tt),v(V=>V==="playing"?V:"paused"),U(V=>V+1)},[m]),P=T.useCallback(()=>{M.current>=m&&p(0),v("playing")},[m]),X=T.useCallback(()=>{v("paused")},[]),Z=T.useCallback(()=>{b?X():P()},[b,P,X]),Q=T.useCallback(()=>{var W;(W=w.current)==null||W.call(w)},[]),k=T.useCallback(W=>{w.current=W},[]);return{stepIndex:x,playbackState:g,playing:b,play:P,pause:X,togglePlay:Z,goTo:J,seekToTime:$,seekOffsetRef:_,seekGeneration:B,handleClipEnded:Q,setPendingAdvance:k,coordinatorId:void 0}}function bv(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 mg(a){return bv(Math.floor(Math.max(0,a)/1e3))}function Tv(a,i,s){if(s==="remaining"){const u=Math.ceil(Math.max(0,i-a)/1e3);return`-${bv(u)}`}return`${mg(a)} / ${mg(i)}`}function MA(a,i,s,u,c,d,f,m,y,p,g){const v=T.useRef(0),b=T.useRef(0),x=T.useRef(0),M=T.useRef(d);M.current=d;const w=T.useRef(s);w.current=s;const _=T.useRef(Math.max(c,.25));_.current=Math.max(c,.25);const B=g==null?void 0:g.timeLabelRef,U=g==null?void 0:g.scrubbingRef,L=(g==null?void 0:g.timeDisplayMode)??"elapsed",J=T.useRef(L);J.current=L;const $=T.useRef(""),P=T.useRef(0),X=T.useCallback(Q=>{if(U!=null&&U.current)return;const k=Math.max(0,Math.min(Q,1));P.current=k;const W=`${k*100}%`;if(f.current&&(f.current.style.width=W),m.current&&(m.current.style.left=W),B!=null&&B.current){const K=M.current,rt=Tv(k*K.totalDurationMs,K.totalDurationMs,J.current);rt!==$.current&&($.current=rt,B.current.textContent=rt)}},[f,m,B,U]),Z=T.useRef(void 0);Z.current=()=>{const Q=performance.now();b.current+=(Q-x.current)*_.current,x.current=Q;const k=M.current,W=w.current,K=k.stepStartTimesMs[W]??0,rt=W<u?k.stepStartTimesMs[W+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)})},T.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]),T.useEffect(()=>{b.current=y.current,y.current=0,x.current=performance.now()},[s,p,y]),T.useEffect(()=>{$.current="",X(P.current)},[L,X]),T.useEffect(()=>{if(i==="idle"){X(0);return}if(i==="paused"){const Q=w.current,k=d.stepStartTimesMs[Q]??0,W=Q<u?d.stepStartTimesMs[Q+1]??d.totalDurationMs:d.totalDurationMs,K=Math.max(W-k,1),rt=Math.min(b.current/K,1),Tt=(k+rt*(W-k))/d.totalDurationMs;X(Tt)}},[i,s,p,u,d,X])}function CA({size:a,className:i}){return A.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:A.jsx("path",{d:"M8 5v14l11-7z"})})}function DA({size:a,className:i}){return A.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:[A.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),A.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function RA({size:a,className:i}){return A.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:A.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 wA({kind:a,onComplete:i}){const s=a==="play"?CA:DA;return A.jsx("div",{"aria-hidden":!0,"data-playback-burst":a,className:"pointer-events-none absolute inset-0 z-[15] flex items-center justify-center",children:A.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:A.jsx(s,{size:28,className:a==="play"?"ml-1":void 0})})})}function zA({onEnableAudio:a}){return A.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:[A.jsx(RA,{size:14}),"Tap to enable audio"]})}const _A=[.5,1,1.5,2];function jA({playbackRate:a,onSelectSpeed:i}){const[s,u]=T.useState(!1),c=T.useRef(null);return T.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]),A.jsxs("div",{ref:c,className:"relative",children:[A.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"]}),A.jsx(Nu,{children:s&&A.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:_A.map(d=>A.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:[A.jsxs("span",{children:[d,"x"]}),d===a&&A.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},d))})})]})}function OA({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:M,timeLabelRef:w,timeDisplayMode:_="elapsed",onToggleTimeDisplay:B,scrubbingRef:U}){const L=T.useMemo(()=>c.stepStartTimesMs.slice(1).map(K=>K/c.totalDurationMs*100),[c]),[J,$]=T.useState(!1),P=T.useRef(0),X=T.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=Tv(K*c.totalDurationMs,c.totalDurationMs,_))},[p,g,w,c,_]),Z=T.useCallback(K=>{const rt=K.currentTarget.getBoundingClientRect();return Math.max(0,Math.min(1,(K.clientX-rt.left)/rt.width))},[]),Q=T.useCallback(K=>{K.currentTarget.setPointerCapture(K.pointerId),U&&(U.current=!0),$(!0),X(Z(K))},[U,X,Z]),k=T.useCallback(K=>{K.currentTarget.hasPointerCapture(K.pointerId)&&X(Z(K))},[X,Z]),W=T.useCallback(K=>{K.currentTarget.hasPointerCapture(K.pointerId)&&(K.currentTarget.releasePointerCapture(K.pointerId),X(Z(K)),U&&(U.current=!1),$(!1),M(P.current*c.totalDurationMs))},[X,Z,U,M,c]);return A.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:[A.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:W,onPointerCancel:W,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[A.jsx("div",{ref:p,className:"absolute inset-y-0 left-0 rounded-full bg-white/80"}),A.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"}`}),L.map((K,rt)=>A.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${K}%`}},rt))]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.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?A.jsx(NA,{}):A.jsx(VA,{})}),A.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?A.jsx(UA,{}):A.jsx(BA,{})}),w&&A.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":_==="elapsed"?"Show remaining time":"Show elapsed time",children:A.jsx("span",{ref:w})}),A.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[d&&A.jsx(jA,{playbackRate:u,onSelectSpeed:x}),m&&A.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?A.jsx(HA,{}):A.jsx(LA,{})})]})]})]})}function VA(){return A.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:A.jsx("path",{d:"M8 5v14l11-7z"})})}function NA(){return A.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[A.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),A.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function BA(){return A.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:[A.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),A.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),A.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function UA(){return A.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:[A.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),A.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),A.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function LA(){return A.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:[A.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),A.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),A.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),A.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function HA(){return A.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:[A.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),A.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),A.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),A.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function qA(a){const i=typeof window<"u"&&window.parent!==window,s=a.enabled&&i,u=T.useRef(s);u.current=s;const c=T.useRef(null),d=T.useRef(a.controls);d.current=a.controls;const f=T.useCallback(g=>{!u.current||typeof window>"u"||window.parent.postMessage(yb(g),c.current??"*")},[]),m=T.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}},[]);T.useEffect(()=>{if(!s)return;const g=v=>{if(v.source!==window.parent)return;const b=vb(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]),T.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=T.useRef(!1);T.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;T.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]),T.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]),T.useEffect(()=>{!s||!a.audioBlocked||f({type:"audioBlocked"})},[s,a.audioBlocked,f])}const YA=3e3;function xv({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=SA(),{isVideoExport:v,hideControls:b,initialMuted:x}=Lu(),M=y.length-1,w=T.useRef(null),[_,B]=T.useState(()=>{if(typeof window>"u")return 1;const Yt=new URLSearchParams(window.location.search).get("__test_speed"),Zt=Yt?Number(Yt):NaN;return Zt>0&&Zt<=16?Zt:1}),U=v?x:!1,[L,J]=T.useState(U),$=AA({steps:y,narrationManifest:p,muted:L,playbackRate:_,isVideoExport:v,prefersReducedMotion:g}),{stepIndex:P,playbackState:X,playing:Z,play:Q,pause:k,seekToTime:W,seekOffsetRef:K,seekGeneration:rt,handleClipEnded:Tt}=$,xt=T.useRef(null);T.useEffect(()=>{if(!v)return xt.current=EA(()=>{k()}),()=>{var Yt;return(Yt=xt.current)==null?void 0:Yt.unregister()}},[v,k]),T.useEffect(()=>{const Yt=w.current;if(!Yt||v)return;const Zt=new IntersectionObserver(([Qt])=>{!(Qt!=null&&Qt.isIntersecting)&&Z&&k()},{threshold:.5});return Zt.observe(Yt),()=>Zt.disconnect()},[v,Z,k]);const{muted:V,toggleMute:F,audioRef:tt,seekToStep:ut,audioBlocked:ft,unlock:C,setVolume:Y,prefetch:I}=TA({manifest:p,stepIndex:P,playing:Z,initialMuted:U,playbackRate:_,onClipEnded:Tt});T.useEffect(()=>{J(V)},[V]);const et=T.useMemo(()=>Ag(y,V?null:p),[y,V,p]);T.useEffect(()=>{c==null||c(y[P].data,P)},[P,y,c]);const[ot,ht]=T.useState(!0),pt=T.useRef(void 0),kt=T.useCallback(()=>{pt.current&&clearTimeout(pt.current),pt.current=setTimeout(()=>ht(!1),YA)},[]),Ut=T.useCallback(()=>{ht(!0),X==="playing"&&kt()},[X,kt]);T.useEffect(()=>(X!=="playing"?(ht(!0),pt.current&&clearTimeout(pt.current)):kt(),()=>{pt.current&&clearTimeout(pt.current)}),[X,kt]);const Xe=T.useCallback(()=>{C(),Q(),xt.current&&hg(xt.current.id)},[Q,C]),aa=T.useCallback(Yt=>{const Zt=Math.max(0,Math.min(Yt,et.totalDurationMs)),Qt=Nc(Zt,et.stepStartTimesMs,M),We=et.stepStartTimesMs[Qt]??0;ut(Qt,Math.max(0,Zt-We)),W(Zt,et),Z&&xt.current&&hg(xt.current.id)},[W,ut,et,M,Z]),[ia,Ci]=T.useState(null),ke=T.useCallback(Yt=>{Ci(Zt=>({kind:Yt,key:((Zt==null?void 0:Zt.key)??0)+1}))},[]),Di=T.useCallback(()=>Ci(null),[]),Ri=T.useCallback(()=>{Z?(ke("pause"),k()):(ke("play"),Xe())},[Z,k,Xe,ke]),ku=T.useCallback(()=>{Z?k():Xe()},[Z,k,Xe]),Gl=T.useCallback(()=>{C()},[C]),[wi,zi]=T.useState(!1),la=m&&typeof document<"u"&&document.fullscreenEnabled;T.useEffect(()=>{if(!la)return;const Yt=()=>zi(document.fullscreenElement!=null);return document.addEventListener("fullscreenchange",Yt),()=>document.removeEventListener("fullscreenchange",Yt)},[la]);const Zu=T.useCallback(()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},[]),Xl=T.useRef(null),ce=T.useRef(null),kl=T.useRef(null),_i=T.useRef(!1),[ji,za]=T.useState("elapsed"),Qu=T.useCallback(()=>{za(Yt=>Yt==="elapsed"?"remaining":"elapsed")},[]);MA(Z,X,P,M,_,et,Xl,ce,K,rt,{timeLabelRef:kl,timeDisplayMode:ji,scrubbingRef:_i}),qA({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:Yt=>{V!==Yt&&F()},setVolume:Y,prefetch:I}});const Oi=!b,Ku=ft&&!v&&X!=="idle";return A.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:Oi?Ut:void 0,children:[A.jsxs("div",{className:"relative",onClick:Ri,style:{cursor:v?void 0:"pointer"},children:[s(y[P].data,P),A.jsx(Nu,{children:Ku&&A.jsx(zA,{onEnableAudio:Gl})}),ia&&!v&&A.jsx(wA,{kind:ia.kind,onComplete:Di},ia.key),Oi&&A.jsx(OA,{visible:ot,playing:Z,muted:V,playbackRate:_,stepTimeline:et,showSpeedControl:f,hasNarration:!!p,onToggleFullscreen:la?Zu:void 0,isFullscreen:wi,progressTrackRef:Xl,playheadRef:ce,onTogglePlay:ku,onToggleMute:F,onSelectSpeed:B,onSeekToTime:aa,timeLabelRef:kl,timeDisplayMode:ji,onToggleTimeDisplay:Qu,scrubbingRef:_i})]}),p&&A.jsx("audio",{ref:tt,preload:"none",hidden:!0})]})}function pg(a){return a.scale===wl.scale&&a.x===wl.x&&a.y===wl.y}function GA(a,i){return a.scale===i.scale&&a.x===i.x&&a.y===i.y}function Ev({children:a,transform:i,contentRef:s}){const{isVideoExport:u}=Lu(),c=Uu(),d=(c==null?void 0:c.currentTimeMs)??0,f=T.useRef({from:i,to:i,atTimeMs:0});if(u&&!GA(i,f.current.to)){const g=(d-f.current.atTimeMs)/mc;f.current={from:Jp(f.current.from,f.current.to,g),to:i,atTimeMs:d}}const[m,y]=T.useState(!1);if(T.useEffect(()=>{u||y(!0)},[u,i.scale,i.x,i.y]),u){const g=Jp(f.current.from,f.current.to,(d-f.current.atTimeMs)/mc);return A.jsx("div",{className:pg(g)?void 0:"overflow-hidden",children:A.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=!pg(i)||m;return A.jsx("div",{className:p?"overflow-hidden":void 0,children:A.jsx(Cn.div,{ref:s,animate:{scale:i.scale,x:i.x,y:i.y},transition:{duration:mc/1e3,ease:Eg},onAnimationComplete:()=>y(!1),style:{position:"relative",transformOrigin:"0 0"},children:a})})}const XA=48,kA=36;function ZA({children:a,insetX:i=XA,insetY:s=kA}){const u={boxSizing:"border-box",height:"var(--scenar-shell-height, 100%)",padding:`${s}px ${i}px`,background:"var(--scenar-backdrop)","--scenar-stage-window-height":`calc(var(--scenar-shell-height, 100%) - ${2*s}px)`},c={"--scenar-shell-height":"var(--scenar-stage-window-height)",height:"var(--scenar-stage-window-height)",overflow:"hidden",borderRadius:"var(--scenar-radius-window)",boxShadow:"var(--scenar-shadow-window)"};return A.jsx("div",{style:u,children:A.jsx("div",{style:c,children:a})})}function xi(a,i){if(!a||!i)return null;const s=i.querySelector(Si(a));return!s||!(s instanceof HTMLElement)?null:s}function QA(a,i){if(!a||!i)return null;const s=i.querySelector(pb(a));return s||null}function KA(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 Av(a,i){const s=QA(a.target,i.containerRef.current);s&&(i.isVideoExport?db(s):wg(s))}function Mv(a,i){i.setCursorTarget(a.target)}function Cv(a,i){i.setCursorTarget(void 0)}function Dv(a,i){const s=xi(a.target,i.containerRef.current);s&&s.click()}function Rv(a,i,s){var f;if(!a.target)return;const u=KA(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 wv(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 zv(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 _v(a,i){const s=xi(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),s.setAttribute("data-dragging","true"))}function jv(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 JA=1.5;function PA(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 Ov(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??JA,c=PA(a.target,u,s);c&&i.setViewportTransform(c)}function FA(a,i){const{stepIndex:s,narrationManifest:u,steps:c,playbackRate:d=1}=a;T.useEffect(()=>{var g;const f=(g=c[s])==null?void 0:g.interactions;if(!f||f.length===0)return;const m=Mg(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(()=>Dv(v,i),b+ne/y));else if(v.type==="type"){const x=v.text??"";if(x.length===0)continue;const M=v.typeDelay??Cg;p.push(setTimeout(()=>i.setCursorTarget(v.target),b));const w=b+ne/y;for(let _=0;_<x.length;_++){const B=x.substring(0,_+1);p.push(setTimeout(()=>Rv(v,B,i),w+_*M/y))}}else if(v.type==="hover"){const x=v.hoverDuration??Dg;p.push(setTimeout(()=>{var M;(M=i.setShowRipple)==null||M.call(i,!1),i.setCursorTarget(v.target)},b)),p.push(setTimeout(()=>wv(v,i),b+ne/y)),p.push(setTimeout(()=>{var M;zv(v,i),(M=i.setShowRipple)==null||M.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),_v(v,i)},b+ne/y)),p.push(setTimeout(()=>i.setCursorTarget(v.dragTarget),b+(ne+Mu)/y)),p.push(setTimeout(()=>{var x,M;jv(v,i),(x=i.setDragging)==null||x.call(i,!1),(M=i.setShowRipple)==null||M.call(i,!0)},b+(ne+Mu+ne)/y))):v.type==="viewport_transition"?p.push(setTimeout(()=>Ov(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":Av(a,i);break;case"set_cursor":Mv(a,i);break;case"clear_cursor":Cv(a,i);break;default:i.setCursorTarget(a.target);break}}function WA(a,i,s){const{stepIndex:u,narrationManifest:c,steps:d}=a,f=T.useRef(new Set);T.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:Mg(u,c,d),b=s.currentTimeMs-p;for(const M of y){const w=M.atPercent*v;if(M.type==="click")m(`${u}-${M.atPercent}-click-cursor`,b,w,()=>{i.setCursorTarget(M.target)}),m(`${u}-${M.atPercent}-click-dispatch`,b,w+ne,()=>{Dv(M,i)});else if(M.type==="type"){const _=M.text??"";if(_.length===0)continue;const B=M.typeDelay??Cg;m(`${u}-${M.atPercent}-type-cursor`,b,w,()=>{i.setCursorTarget(M.target)});const U=w+ne;if(b>=U){const L=Math.min(Math.floor((b-U)/B)+1,_.length);m(`${u}-${M.atPercent}-type-char-${L}`,b,0,()=>{Rv(M,_.substring(0,L),i)})}}else if(M.type==="hover"){const _=M.hoverDuration??Dg;m(`${u}-${M.atPercent}-hover-cursor`,b,w,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(M.target)}),m(`${u}-${M.atPercent}-hover-enter`,b,w+ne,()=>{wv(M,i)}),m(`${u}-${M.atPercent}-hover-leave`,b,w+ne+_,()=>{var B;zv(M,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else M.type==="drag"?(m(`${u}-${M.atPercent}-drag-cursor`,b,w,()=>{var _;(_=i.setShowRipple)==null||_.call(i,!1),i.setCursorTarget(M.target)}),m(`${u}-${M.atPercent}-drag-press`,b,w+ne,()=>{var _;(_=i.setDragging)==null||_.call(i,!0),_v(M,i)}),m(`${u}-${M.atPercent}-drag-move`,b,w+ne+Mu,()=>{i.setCursorTarget(M.dragTarget)}),m(`${u}-${M.atPercent}-drag-release`,b,w+ne+Mu+ne,()=>{var _,B;jv(M,i),(_=i.setDragging)==null||_.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):M.type==="viewport_transition"?m(`${u}-${M.atPercent}-viewport`,b,w,()=>{Ov(M,i)}):m(`${u}-${M.atPercent}-${M.type}`,b,w,()=>{IA(M,i)})}}),T.useEffect(()=>{f.current.clear()},[u]);function m(y,p,g,v){p>=g&&!f.current.has(y)&&(f.current.add(y),v())}}function IA(a,i){switch(a.type){case"scroll_to":Av(a,i);break;case"set_cursor":Mv(a,i);break;case"clear_cursor":Cv(a,i);break;default:i.setCursorTarget(a.target);break}}function Vv(a){const i=Uu(),{isVideoExport:s}=Lu(),u=T.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?WA(a,u,i):FA(a,u)}const Nv="data-scenar-shot-frame",tM=`[${Nv}]`,yg=33;function eM({scenarioId:a,steps:i,renderStep:s,canonicalWidth:u,shellHeight:c,narrationManifest:d,stage:f=!1,providers:m,onReady:y,onError:p}){const[g,v]=T.useState(0),b=T.useRef(0);b.current=g;const x=T.useMemo(()=>Ag(i,d??null),[i,d]),M=T.useRef(!1);T.useEffect(()=>{if(M.current)return;M.current=!0;let _;try{_=fb(i,x)}catch(U){p(U instanceof Error?U:new Error(String(U)));return}const B=()=>new Promise(U=>{requestAnimationFrame(()=>requestAnimationFrame(()=>setTimeout(U,30)))});y({shots:_,timeline:x,frameSelector:tM,setTime:U=>uu.flushSync(()=>v(U)),walkTo:async U=>{for(let L=b.current+yg;L<U;L+=yg)uu.flushSync(()=>v(L));uu.flushSync(()=>v(U)),uu.flushSync(()=>{}),await B()}})},[]);const w=A.jsx(nM,{scenarioId:a,steps:i,renderStep:s,canonicalWidth:u,shellHeight:c,narrationManifest:d,stage:f});return A.jsx(Sb,{currentTimeMs:g,stepStartTimesMs:x.stepStartTimesMs,children:A.jsx(Tb,{children:m?A.jsx(m,{children:w}):w})})}function nM({scenarioId:a,steps:i,renderStep:s,canonicalWidth:u,shellHeight:c,narrationManifest:d,stage:f}){const m=T.useRef(null),y=T.useRef(null),[p,g]=T.useState(0),[,v]=T.useState(void 0),[,b]=T.useState(!0),[,x]=T.useState(!1),[M,w]=T.useState(wl),_=T.useCallback((U,L)=>{g(L),v(void 0)},[]);Vv({stepIndex:p,narrationManifest:d,containerRef:m,cameraRef:y,setCursorTarget:v,setShowRipple:b,setDragging:x,setViewportTransform:w,steps:i});const B=T.useMemo(()=>({id:a,steps:i,narrationManifest:d}),[a,i,d]);return A.jsx("div",{[Nv]:"",ref:m,style:{width:u,position:"relative",overflow:"hidden","--scenar-shell-height":`${c}px`},children:A.jsx(Ev,{transform:M,contentRef:y,children:A.jsx(xv,{bundle:B,onStepChange:_,children:f?(U,L)=>A.jsx(ZA,{children:s(U,L)}):s})})})}const gg=.24,aM=.42,iM=1400,lM=.15;function sM(a){return{type:"spring",visualDuration:Math.min(aM,Math.max(gg,gg+a/iM)),bounce:lM}}const uM=80,rM=12,oM=400,cM=100;function fM({target:a,containerRef:i,showRipple:s=!0,isDragging:u=!1}){const[c,d]=T.useState(null),f=T.useRef(null),m=T.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=Uu(),[g,v]=T.useState(!1),b=T.useRef(void 0),x=T.useRef(void 0),M=T.useRef(void 0),[w,_]=T.useState(null),B=T.useRef(void 0);T.useEffect(()=>{p&&a!==B.current&&(B.current=a,_(a?p.currentTimeMs:null))},[a]);const U=s&&!u&&p!=null&&w!=null&&p.currentTimeMs-w>=ne,L=p?U:g&&!u,J=T.useRef(!1);J.current=p!=null,T.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(hc(P,X))},[a,i]),T.useEffect(()=>{if(J.current)return;if(clearTimeout(b.current),clearTimeout(x.current),clearTimeout(M.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 W=k.querySelector(Si(a));if(!W){X<rM&&(X++,x.current=setTimeout(Z,uM));return}const K=wg(W);M.current=setTimeout(()=>{requestAnimationFrame(()=>{P||(m(hc(k,W)),s&&(b.current=setTimeout(()=>{P||v(!0)},ne)))})},K?oM:0)}const Q=requestAnimationFrame(Z);return()=>{P=!0,cancelAnimationFrame(Q),clearTimeout(x.current),clearTimeout(M.current),clearTimeout(b.current)}},[a,i,s]),T.useEffect(()=>()=>{clearTimeout(b.current),clearTimeout(x.current),clearTimeout(M.current)},[]);const $=T.useCallback(()=>{const P=i.current;if(!P||!a)return;const X=P.querySelector(Si(a));X&&m(hc(P,X))},[a,i]);return T.useEffect(()=>{if(J.current)return;const P=i.current;if(!P||!a)return;let X;const Z=new ResizeObserver(()=>{clearTimeout(X),X=setTimeout($,cM)});return Z.observe(P),()=>{clearTimeout(X),Z.disconnect()}},[a,i,$]),A.jsx(Nu,{children:y&&A.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:sM((c==null?void 0:c.distancePx)??0),children:[A.jsx(Cn.span,{className:"block",animate:L?{scale:[1,.85,1]}:{scale:1},transition:{duration:.25,ease:"easeOut"},style:{transformOrigin:"top left"},children:u?A.jsx(hM,{}):A.jsx(dM,{})}),A.jsx(Nu,{children:L&&A.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 dM(){return A.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:A.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 hM(){return A.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:[A.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"}),A.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"})]})}const mM=896,pM=0,vg="relative mx-auto overflow-hidden";function yM({containerRef:a,children:i,className:s,canonicalWidth:u=mM,minZoom:c=pM,shellHeight:d,wrapperClassName:f=vg}){const{isVideoExport:m}=Lu(),y=T.useRef(null),p=T.useRef(null),[g,v]=T.useState(1),b=a??p;T.useLayoutEffect(()=>{if(m)return;const _=y.current;if(!_)return;const B=L=>{v(Math.max(Math.min(L/u,1),c))};B(_.getBoundingClientRect().width);const U=new ResizeObserver(L=>{B(L[0].contentRect.width)});return U.observe(_),()=>U.disconnect()},[m,u,c]);const x=s?`${f} ${s}`:f;if(m)return A.jsx("div",{ref:b,className:x,children:i});const M={width:u,zoom:g};d!=null&&(M["--scenar-shell-height"]=`${d}px`);const w=f===vg?{maxWidth:u}:void 0;return A.jsx("div",{ref:y,className:x,style:w,children:A.jsx("div",{ref:b,className:"relative",style:M,children:i})})}const Sg="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 Bv=(...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 gM=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 vM=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 bg=a=>{const i=vM(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 _c={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 SM=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},bM=T.createContext({}),TM=()=>T.useContext(bM),xM=T.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=""}=TM()??{},M=u??v?Number(s??g)*24/Number(i??p):s??g;return T.createElement("svg",{ref:y,..._c,width:i??p??_c.width,height:i??p??_c.height,stroke:a??b,strokeWidth:M,className:Bv("lucide",x,c),...!d&&!SM(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,_])=>T.createElement(w,_)),...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 $e=(a,i)=>{const s=T.forwardRef(({className:u,...c},d)=>T.createElement(xM,{ref:d,iconNode:i,className:Bv(`lucide-${gM(bg(a))}`,`lucide-${a}`,u),...c}));return s.displayName=bg(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 EM=[["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"}]],AM=$e("bell",EM);/**
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 MM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],CM=$e("chevron-left",MM);/**
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"}]],RM=$e("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 wM=[["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"}]],zM=$e("ellipsis-vertical",wM);/**
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 _M=[["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"}]],jM=$e("globe",_M);/**
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 OM=[["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"}]],VM=$e("lock",OM);/**
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 NM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],BM=$e("plus",NM);/**
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 UM=[["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"}]],LM=$e("rotate-ccw",UM);/**
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 HM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qM=$e("search",HM);/**
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 YM=[["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"}]],GM=$e("star",YM);/**
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 XM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kM=$e("x",XM),ZM=420;function QM(a){const i=a.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function KM({url:a,contentKey:i,slideDirection:s,children:u,zoom:c}){const d=s==="forward"?24:s==="backward"?-24:0;return A.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:[A.jsxs("div",{className:"flex items-center bg-[var(--scenar-chrome)] px-2 pt-1.5",children:[A.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[A.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),A.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),A.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),A.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[var(--scenar-chrome-raised)] px-3 py-1.5",children:[A.jsx(jM,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),A.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:QM(a)}),A.jsx(kM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),A.jsx(BM,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),A.jsx("div",{className:"flex-1"}),A.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:A.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),A.jsxs("div",{className:"flex items-center gap-2 bg-[var(--scenar-chrome-raised)] px-2 py-1",children:[A.jsxs("div",{className:"flex items-center gap-1",children:[A.jsx(CM,{className:"h-4 w-4 text-[#9aa0a6]"}),A.jsx(RM,{className:"h-4 w-4 text-[#9aa0a6]"}),A.jsx(LM,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),A.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[var(--scenar-chrome)] px-3 py-1.5",children:[A.jsx(VM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),A.jsx("span",{className:"truncate text-xs text-[var(--scenar-chrome-foreground)]",children:a})]}),A.jsxs("div",{className:"flex items-center gap-1",children:[A.jsx(GM,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),A.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),A.jsx(zM,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),A.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 JM({header:a,sidebar:i,children:s,rightPanel:u}){return A.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[a,A.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,A.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:s}),u]})]})}function PM({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 A.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:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[i??A.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:A.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:f})}),a&&A.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:a})]}),s&&s.length>0&&A.jsx("nav",{className:"ml-4 flex items-center gap-1",children:s.map((y,p)=>A.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))})]}),A.jsxs("div",{className:"flex items-center gap-2.5",children:[!c&&A.jsx(qM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!d&&A.jsx(AM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),A.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:A.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:f})})]})]})}function FM({items:a,width:i=200}){return A.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 A.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 A.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&&A.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),s.icon&&A.jsx("span",{className:"shrink-0",children:s.icon}),A.jsx("span",{className:"truncate",children:s.label})]},u)})})}function Uv({title:a,subtitle:i,headerSlot:s,fields:u,submitLabel:c="Submit",footerText:d,width:f=280,children:m}){return A.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:f},children:[(s||a)&&A.jsxs("div",{className:"mb-4 text-center",children:[s&&A.jsx("div",{className:"mb-2 flex justify-center",children:s}),a&&A.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:a}),i&&A.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),A.jsx("div",{className:"space-y-2.5",children:u.map((y,p)=>A.jsxs("div",{children:[A.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:y.label}),A.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"?A.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):y.value?A.jsx("span",{className:"text-[var(--scenar-foreground)]",children:y.value}):A.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:y.placeholder??""})})]},p))}),m,A.jsx("div",{className:"mt-4",children:A.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:c})}),d&&A.jsx("p",{className:"mt-3 text-center text-[11px] text-[var(--scenar-muted-foreground)]",children:d})]})}function $M({columns:a,rows:i,emptyText:s}){return A.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:A.jsxs("table",{className:"w-full text-[12px]",children:[A.jsx("thead",{children:A.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:a.map(u=>A.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))})}),A.jsxs("tbody",{children:[i.length===0&&s&&A.jsx("tr",{children:A.jsx("td",{colSpan:a.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:s})}),i.map(u=>A.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:a.map(c=>A.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 WM={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 jc({label:a,variant:i="neutral"}){return A.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${WM[i]}`,children:a})}function IM({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??A.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:A.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((b=a[0])==null?void 0:b.toUpperCase())??"A"})});return A.jsxs("div",{className:"flex h-full flex-col",style:{background:g},children:[y,A.jsx("div",{className:"flex flex-1 items-center justify-center",children:A.jsx("div",{"data-cursor-target":p,children:A.jsx(Uv,{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 A.jsx(JM,{header:A.jsx(PM,{appName:a,logo:i,navLinks:s,userName:u}),sidebar:c?A.jsx(FM,{items:c,width:d}):void 0,children:f})}const tC=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function Lv(a,i){return A.jsx(KM,{url:`https://${a.url}`,contentKey:String(i),children:nC(a.screen)})}const eC=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],Vc=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function nC(a){switch(a){case"login":return A.jsx(IM,{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 A.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:eC,sidebarItems:Vc,children:A.jsxs("div",{className:"p-5",children:[A.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[A.jsx("img",{src:tC,alt:"Acme Cloud",width:24,height:24,className:"rounded"}),A.jsx("h2",{className:"text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Welcome back, Jordan"})]}),A.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=>A.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[A.jsx("div",{className:"text-[20px] font-semibold text-[var(--scenar-foreground)]",children:i.value}),A.jsx("div",{className:"text-[11px] text-[var(--scenar-muted-foreground)]",children:i.label})]},i.label))})]})});case"projects":return A.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:Vc,children:A.jsxs("div",{className:"p-5",children:[A.jsx("h2",{className:"mb-4 text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Projects"}),A.jsx($M,{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:A.jsx(jc,{label:"Healthy",variant:"success"})}},{id:"2",cells:{name:"web-frontend",env:"production",status:A.jsx(jc,{label:"Deploying",variant:"info"})}},{id:"3",cells:{name:"billing-worker",env:"staging",status:A.jsx(jc,{label:"Degraded",variant:"warning"})}}]})]})});case"settings":return A.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:Vc,children:A.jsx("div",{className:"flex justify-center p-6",children:A.jsx(Uv,{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 aC=[{delayMs:0,data:{url:"app.acme.cloud/login",screen:"login"},shot:"login-screen"},{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"},shot:"settings-screen"}],iC=Object.freeze(Object.defineProperty({__proto__:null,steps:aC},Symbol.toStringTag,{value:"Module"}));function lC(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 uf=lC(iC),sC=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),Yf=sC==="dark"?Sg+" dark":Sg,Au=(()=>{try{return new URLSearchParams(window.location.search).get("shot")}catch{return null}})();window.parent===window&&(document.body.classList.add(...Yf.split(" ")),document.body.style.background="var(--scenar-surface)");function uC(){const a=T.useRef(null),i=T.useRef(null),[s,u]=T.useState(0),[c,d]=T.useState(void 0),[f,m]=T.useState(!0),[y,p]=T.useState(!1),[g,v]=T.useState(wl),b=T.useCallback((M,w)=>{u(w),d(void 0)},[]);Vv({stepIndex:s,narrationManifest:void 0,containerRef:a,cameraRef:i,setCursorTarget:d,setShowRipple:m,setDragging:p,setViewportTransform:v,steps:uf});const x={id:"welcome-tour",steps:uf,narrationManifest:void 0};return A.jsx("div",{className:Yf,children:A.jsx(yM,{containerRef:a,canonicalWidth:896,shellHeight:480,children:A.jsxs(Ev,{transform:g,contentRef:i,children:[A.jsx(xv,{bundle:x,embed:!0,onStepChange:b,children:(M,w)=>Lv(M,w)}),A.jsx(fM,{target:c,containerRef:i,showRipple:f,isDragging:y})]})})})}async function rC(a){xg.createRoot(a).render(A.jsx("div",{className:Yf,children:A.jsx(eM,{scenarioId:"welcome-tour",steps:uf,renderStep:Lv,canonicalWidth:896,shellHeight:480,narrationManifest:void 0,stage:!1,providers:void 0,onReady:s=>{if(window.__scenarShot=s,Au){const u=s.shots.find(c=>c.name===Au);if(!u){window.__scenarShotError='no shot named "'+Au+'" — declared: '+(s.shots.map(c=>c.name).join(", ")||"(none)");return}s.walkTo(u.timeMs)}},onError:s=>{window.__scenarShotError=(s==null?void 0:s.message)??String(s)}})}))}const rf=document.getElementById("root");if(!rf)throw new Error("Embed root element #root not found");Au!==null?rC(rf).catch(a=>{window.__scenarShotError=a instanceof Error?a.message:String(a)}):xg.createRoot(rf).render(A.jsx(uC,{}));